/* Tokens : source unique des valeurs de design (gared-design, codage.md §2).
   Alimenté par docs/design/matiere/tokens.json ; aucune autre feuille ne porte de couleur, de taille ni de durée en dur. */
@font-face { font-family: 'Config Condensed'; src: url('/polices/ConfigCondensedBold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Config'; src: url('/polices/Config-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root, html.light {
  --bg: #ffffff;
  --surface: #f4f2f7;
  --surface-2: #e9e5ef;
  --border: #ddd8e4;
  --marque: #4c0297;
  --on-marque: #ffffff;
  --coffret: #4c0297;
  --on-coffret: #ffffff;
  --action-sur-coffret: #d1271c;
  --text: #17141c;
  --text-2: #5d5866;
  --action: #d1271c;
  --on-action: #ffffff;
  --focus: #4c0297;
  --verrou: #5d5866;
  --danger: #b4231a;
  --voile: #17141c99;
  color-scheme: light;
}
html.dark {
  --bg: #121014;
  --surface: #1c1920;
  --surface-2: #26222b;
  --border: #332e39;
  --marque: #c9a4ff;
  --on-marque: #121014;
  --coffret: #4c0297;
  --on-coffret: #ffffff;
  --action-sur-coffret: #ff6b5e;
  --text: #efedf2;
  --text-2: #a9a4b0;
  --action: #ff6b5e;
  --on-action: #121014;
  --focus: #c9a4ff;
  --verrou: #a9a4b0;
  --danger: #ff8a7e;
  --voile: #060507cc;
  color-scheme: dark;
}

:root {
  --police-titre: 'Config Condensed', system-ui, sans-serif;
  --police-texte: Config, system-ui, sans-serif;

  /* Échelle typographique fermée (téléphone ; paliers 768 et 1024 px plus bas) */
  --t-hero: 40px;
  --t-section: 32px;
  --t-sous: 21px;
  --t-intro: 19px;
  --t-corps: 16px;
  --t-petit: 14px;
  --t-legende: 13px;
  --t-chiffre: 28px;
  --t-pastille: 14px;
  --t-vedette: 104px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-section: 64px;
  --grille-gap: 6px;
  --coffret-pad: 20px;
  --coffret-marge: 8px;
  --vedette-min: 132px;
  --page-pad: 16px;
  --largeur: 1120px;
  --cible: 44px;
  --space-20: 20px;        /* hors grille 4/8 : repris tel quel de la maquette validée (statut, bandeau, bouton) */
  --space-12: 12px;
  --focus-trait: 2px;
  --pastille-min: 22px;
  --pastille-pad: 3px 5px;
  --fenetre-max: 640px;
  --bouton-h: 48px;
  --pill-option: 64px;
  --pill-h: 40px;
  --pill-pad: 2px;
  --logo-h: 32px;
  --logo-w: 96px;
  --cadenas: 12px;
  --cadenas-marge: 6px;
  --icone: 24px;
  --icone-petite: 20px;

  --radius-control: 8px;
  --radius-porte: 12px;
  --radius-fenetre: 20px;
  --radius-pill: 999px;

  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-tremble: 280ms;
  --dur-slow: 400ms;
  --dur-indicateur: 300ms;
  --ease-productif: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-expressif: cubic-bezier(0.2, 0, 0, 1);
  --ease-indicateur: cubic-bezier(0.22, 1, 0.36, 1);
  --appui: 0.97;
  --tremble: 4px;
}
@media (max-width: 359px) {
  :root { --pill-option: 56px; --t-chiffre: 22px; --cadenas: 10px; --cadenas-marge: 4px; } /* logo + pill tiennent à 320 px ; portes de 48 px */
}
@media (min-width: 768px) {
  :root {
    --t-hero: 56px; --t-section: 40px; --t-sous: 24px; --t-intro: 21px; --t-corps: 17px;
    --t-chiffre: 32px; --t-pastille: 16px; --t-vedette: 152px;
    --grille-gap: 10px; --coffret-pad: 32px; --coffret-marge: 32px; --vedette-min: 168px; --page-pad: 32px;
  }
}
@media (min-width: 1024px) {
  :root { --t-hero: 72px; --t-section: 48px; --t-sous: 28px; --t-chiffre: 36px; --coffret-pad: 48px; }
}
