/* =========================================================
   EURODOGTRAINING — style.css
   Dressage canin — Wallonie, Belgique

   Pour modifier les COULEURS du site : changez les valeurs
   dans le bloc ":root" juste en dessous. Tout le reste du
   site utilisera automatiquement les nouvelles couleurs.
   ========================================================= */

:root {
  /* --- Couleurs --- */
  --pine: #1b2b20;        /* vert pin fonce - fonds sombres, header, footer */
  --pine-2: #243a2b;      /* vert pin un peu plus clair - degrades, cartes sombres */
  --moss: #4f6b52;        /* vert mousse - accents secondaires */
  --moss-tint: #e4e9e0;   /* mousse tres clair - fonds de section alternes */
  --sand: #ece3cf;        /* beige chaud - fond principal clair */
  --bone: #f9f6ee;        /* blanc casse - fond des cartes */
  --brass: #ab8a4e;       /* bronze/laiton - accent, boutons, signature */
  --brass-dark: #8a6d39;  /* bronze fonce - survol */
  --ink: #211f18;         /* texte principal */
  --ink-soft: #5a5546;    /* texte secondaire */
  --line: rgba(33, 31, 24, 0.12);

  /* --- Typographie --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* --- Echelle d'espacement --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* --- Divers --- */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px -22px rgba(27, 43, 32, 0.45);
  --shadow-lift: 0 26px 50px -20px rgba(27, 43, 32, 0.55);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
  --container: 1180px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   TYPOGRAPHIE
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "opsz" 40;
  font-weight: 600;
  color: var(--pine);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.5vw + 1rem, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.55rem); }
h4 { font-size: 1.1rem; }
p { color: var(--ink-soft); }
.lead { font-size: 1.15rem; line-height: 1.7; }

a.link {
  color: var(--pine);
  font-weight: 600;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: var(--transition);
}
a.link:hover { color: var(--brass-dark); }

/* Etiquette "fiche de terrain" — element signature du site */
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.tag::before { content: "[ "; }
.tag::after { content: " ]"; }
.tag--light { color: var(--sand); }

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.eyebrow-row .rule { flex: 0 0 48px; height: 1px; background: var(--brass); }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--sp-24); }
.section--tight { padding-block: var(--sp-16); }
.section--alt { background: var(--moss-tint); }
.section--pine { background: var(--pine); color: var(--sand); }
.section--pine h2, .section--pine h3 { color: var(--bone); }
.section--pine p { color: rgba(249, 246, 238, 0.78); }

.section-head { max-width: 640px; margin-bottom: var(--sp-12); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  gap: var(--sp-8);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-16); }
}

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn-brass { background: var(--brass); color: var(--pine); }
.btn-brass:hover { background: var(--brass-dark); color: var(--bone); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline { border-color: rgba(249, 246, 238, 0.5); color: var(--bone); }
.btn-outline:hover { background: rgba(249, 246, 238, 0.1); border-color: var(--bone); }

.btn-outline-dark { border-color: var(--pine); color: var(--pine); }
.btn-outline-dark:hover { background: var(--pine); color: var(--bone); }

.btn-block { width: 100%; }
.btn-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* =========================================================
   EN-TETE / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: -0.01em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: var(--sp-8); }
.nav__links { display: flex; gap: var(--sp-6); }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--pine); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav__cta .btn { padding: 0.7em 1.3em; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--pine); transition: var(--transition); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav-toggle { display: flex; }
  .nav__cta .btn span.btn-label { display: none; }
  body.menu-open .site-header { background: var(--bone); }
  body.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 65px);
    background: var(--bone);
    padding: var(--sp-6);
    gap: 0;
    overflow-y: auto;
    z-index: 99;
  }
  body.menu-open .nav__links li { border-bottom: 1px solid var(--line); width: 100%; }
  body.menu-open .nav__links a { font-size: 1.15rem; display: block; padding-block: var(--sp-4); }
  body.menu-open .nav__links a::after { display: none; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   HERO — Page d'accueil
   ========================================================= */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background: var(--pine);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,43,32,0.55) 0%, rgba(27,43,32,0.55) 35%, rgba(20,32,24,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-16) var(--sp-12);
  max-width: 760px;
}
.hero__content .tag { opacity: 0; animation: fadeUp 0.8s var(--ease) 0.1s forwards; }
.hero__content h1 { color: var(--bone); margin-block: var(--sp-4) var(--sp-6); opacity: 0; animation: fadeUp 0.9s var(--ease) 0.28s forwards; }
.hero__content .lead { color: rgba(249,246,238,0.85); max-width: 56ch; margin-bottom: var(--sp-8); opacity: 0; animation: fadeUp 0.9s var(--ease) 0.46s forwards; }
.hero__content .btn-row { opacity: 0; animation: fadeUp 0.9s var(--ease) 0.64s forwards; }

.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(249,246,238,0.18);
  padding-block: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-8);
}
.hero__stats span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(249,246,238,0.75); }
.hero__stats strong { color: var(--brass); font-weight: 600; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BANNIERE — Pages interieures
   ========================================================= */
.page-banner {
  position: relative;
  background: var(--pine);
  background-image: url("../images/motif-pattes.svg");
  background-repeat: repeat;
  background-size: 90px;
  padding-block: var(--sp-16) var(--sp-12);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,43,32,0.88), rgba(27,43,32,0.96));
}
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--bone); margin-top: var(--sp-3); }
.page-banner .lead { color: rgba(249,246,238,0.78); margin-top: var(--sp-4); max-width: 60ch; }

/* =========================================================
   CARTES
   ========================================================= */
.card {
  background: var(--bone);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  border-bottom: 3px solid var(--brass);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--moss-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.icon-circle svg { width: 26px; height: 26px; stroke: var(--pine); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: var(--sp-2); }
.card p { font-size: 0.95rem; }

/* =========================================================
   METHODE — etapes numerotees (sequence reelle)
   ========================================================= */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-8);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.step__num .big { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--pine); font-variation-settings: "SOFT" 60; line-height: 1; margin-bottom: 4px; }

/* =========================================================
   TEMOIGNAGES
   ========================================================= */
.testimonial {
  background: var(--bone);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}
.testimonial__stars { color: var(--brass); font-size: 0.9rem; letter-spacing: 2px; }
.testimonial__quote { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-variation-settings: "SOFT" 60; line-height: 1.5; }
.testimonial__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pine); color: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  flex: none;
}
.testimonial__author .name { font-weight: 600; color: var(--pine); font-size: 0.92rem; }
.testimonial__author .dog { font-size: 0.8rem; color: var(--ink-soft); }

/* =========================================================
   BLOG
   ========================================================= */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__thumb {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pine), var(--moss));
}
.post-card__thumb svg { width: 40px; height: 40px; stroke: var(--sand); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.post-card .card { border-radius: 0 0 var(--radius-md) var(--radius-md); flex: 1; }
.post-card__meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--sp-3); }

article.post { max-width: 760px; }
article.post h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-3); }
article.post p { margin-bottom: var(--sp-4); }
article.post ul { margin: var(--sp-4) 0; padding-left: 1.2rem; list-style: disc; }
article.post li { margin-bottom: var(--sp-2); color: var(--ink-soft); }

/* =========================================================
   FAQ — accordeon natif (sans JavaScript)
   ========================================================= */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pine);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--brass);
  transition: var(--transition);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item__body { padding: 0 var(--sp-6) var(--sp-6); }
.faq-item__body p { font-size: 0.96rem; }

/* =========================================================
   FORMULAIRE DE CONTACT
   ========================================================= */
.form-grid { display: grid; gap: var(--sp-5, 1.25rem); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--pine); letter-spacing: 0.02em; }
.field input, .field textarea {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  font-size: 0.96rem;
  color: var(--ink);
  transition: var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(171, 138, 78, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-info-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info-item .icon-circle { margin-bottom: 0; }
.contact-info-item h4 { margin-bottom: 2px; }
.contact-info-item a, .contact-info-item p { font-size: 0.95rem; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer { background: var(--pine); color: rgba(249,246,238,0.85); }
.site-footer a:hover { color: var(--brass); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer-grid h4 { color: var(--bone); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--sp-4); font-weight: 600; }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-grid ul a { font-size: 0.92rem; color: rgba(249,246,238,0.78); }
.footer-brand .brand__name { color: var(--bone); }
.footer-brand p { color: rgba(249,246,238,0.7); margin-block: var(--sp-4); max-width: 32ch; font-size: 0.92rem; }

.social-row { display: flex; gap: var(--sp-3); }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(249,246,238,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-row a:hover { border-color: var(--brass); background: rgba(171,138,78,0.15); }
.social-row svg { width: 17px; height: 17px; stroke: var(--bone); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.footer-bottom {
  border-top: 1px solid rgba(249,246,238,0.15);
  padding-block: var(--sp-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: rgba(249,246,238,0.55);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   BOUTON WHATSAPP FLOTTANT
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: var(--sp-6);
  bottom: var(--sp-6);
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--brass);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
  transition: var(--transition);
}
.whatsapp-float svg { width: 26px; height: 26px; stroke: var(--pine); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-float:hover { background: var(--brass-dark); transform: scale(1.06); }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--brass);
  animation: pulseRing 2.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================================
   ANIMATIONS AU DEFILEMENT
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================================
   UTILITAIRES
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-2 { gap: var(--sp-2); }
.divider { height: 1px; background: var(--line); width: 100%; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (max-width: 720px) {
  .hero { min-height: 92vh; }
  .grid-2 { gap: var(--sp-6); }
}
