/* Design system : source unique des tokens, chargée en dernier.
   Typo : échelle 1.25 depuis 16px pour les titres, échelle UI au pixel entier.
   Rythme : sections sur --sec-y, écart titre/contenu sur --gap-titre.
   Mouvement : une seule courbe de sortie, trois durées. */
:root{
  /* Texte UI */
  --fs-1:11px;--fs-2:12px;--fs-3:13px;--fs-4:14px;--fs-5:15px;--fs-6:16px;
  --fs-7:18px;--fs-8:22px;--fs-9:26px;
  /* Titres (1.25 : 31 / 39 / 49 / 61) */
  --fs-h4:clamp(24px,2.1vw,31px);
  --fs-h3:clamp(28px,2.6vw,39px);
  --fs-h2:clamp(32px,3.3vw,49px);
  --fs-h1:clamp(40px,4.1vw,61px);

  /* Espacements (base 8) */
  --sp-1:8px;--sp-2:16px;--sp-3:24px;--sp-4:32px;--sp-5:48px;--sp-6:64px;
  --sec-y:clamp(80px,9vw,112px);
  --gap-titre:clamp(32px,4vw,48px);

  /* Contraste : gris secondaire ramené à 3,4:1 minimum (titres) */
  --muted-2:#85858e;

  /* Mouvement */
  --ease-out:cubic-bezier(.22,.61,.36,1);
  --expo:var(--ease-out);
  --dur-1:160ms;--dur-2:240ms;--dur-3:400ms;
}

/* Hiérarchie des titres : h1 > h2 (unique) > h3 */
.hv-titre{font-size:var(--fs-h1);line-height:1.05}
.h-37,.h-45,.faq-titre{font-size:var(--fs-h2);line-height:1.08}
.h-30{font-size:var(--fs-h3);line-height:1.1}
.cmp-titre{font-size:var(--fs-h4)}
.ton2{color:var(--muted-2)}

/* Rythme vertical des sections */
.pi,.lk-avant,.branche,.comparer,.rz,.estimer,.faq,.lk-cta{padding-top:var(--sec-y);padding-bottom:var(--sec-y)}

/* Focus clavier */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
:focus:not(:focus-visible){outline:none}

/* Mouvement réduit : tout ce qui n'est pas essentiel s'arrête */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
}

/* Écart titre / contenu identique partout */
.avant-grille,.outils-grille,.rz-grille,.estim,.fx,.vs-cadre{margin-top:var(--gap-titre)}
