/* ==========================================================================
   Marie Lacombe — design tokens
   Source : 01-DESIGN/palette + 01-DESIGN/typographies (validés en phase 3).
   Les polices sont chargées par functions.php (voir mlc_enqueue_assets).
   ========================================================================== */

:root {
  /* ---- Palette (validée, ne pas étendre) ---- */
  --color-background: #F0F0F0;
  --color-foreground: #020202;
  --color-sage-light: #BAC8BA;
  --color-forest: #3A4739;
  --color-sage: #778976;

  /* Rôles dérivés (aucune nouvelle teinte, uniquement des transparences) */
  --color-text: var(--color-foreground);
  --color-text-muted: rgb(2 2 2 / 0.62);   /* ≈ 5,8:1 sur #F0F0F0 */
  --color-line: rgb(2 2 2 / 0.14);
  --color-link: var(--color-forest);       /* 8,6:1 sur #F0F0F0 */
  --color-focus: var(--color-forest);

  /* ---- Typographie ---- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Échelle fluide (min mobile 375px → max desktop 1600px) */
  --fs-signature: clamp(4.25rem, 16.5vw, 17rem);  /* nom du Hero, « Alors, convaincus ? » */
  --fs-h2:        clamp(2.75rem, 7vw, 7.5rem);    /* titres de section */
  --fs-h3:        clamp(1.75rem, 3.2vw, 3.25rem); /* titres d'étape */
  --fs-lead:      clamp(1.25rem, 1.9vw, 1.75rem); /* accroches, chapeaux */
  --fs-figure:    clamp(5rem, 14vw, 13rem);       /* chiffre clé */
  --fs-body:      clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-small:     0.875rem;
  --fs-micro:     0.75rem;

  --lh-tight: 0.86;   /* signature Archivo 900 */
  --lh-title: 0.95;
  --lh-body: 1.6;

  --tracking-tight: -0.045em;
  --tracking-title: -0.03em;
  --tracking-label: 0.08em;

  /* ---- Espacements (base 4px) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 9rem;
  --section-gap: clamp(6rem, 14vw, 12rem);

  /* ---- Grille ---- */
  --page-margin: clamp(1rem, 4vw, 4rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --columns: 12;
  --header-height: 4rem;

  /* ---- Mouvement ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 420ms;
  --dur-slow: 900ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}
