/* ==========================================================================
   Speak Chantier — design tokens (source unique, copiée dans simulateur/public/tokens.css)
   Concept : le chantier en phase d'implantation. Dalle béton (fond), graphite
   du crayon de charpentier (texte), peinture de traçage orange (action),
   cordeau bleu (l'anglais à dire), stylo rouge des redlines (corrections).
   Deux voix typographiques : Big Shoulders = l'anglais parlé et les mesures ;
   Overpass = notre français, qui explique.
   ========================================================================== */

@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/overpass-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* --- Couleur : 6 teintes nommées + dérivées --- */
  --slab:      #E9EBE6;   /* dalle béton : fond de page */
  --slab-2:    #DDE1DA;   /* bande alternée, béton plus sombre */
  --sheet:     #F7F8F5;   /* feuille / panneau posé sur la dalle */
  --graphite:  #1C2320;   /* texte principal, crayon de charpentier */
  --graphite-2:#4A5450;   /* texte secondaire */
  --rule:      #BFC6BF;   /* traits, bordures */
  --paint:     #FF5A1F;   /* peinture de traçage : action principale, bouton radio */
  --paint-ink: #B93A0B;   /* orange lisible en petit texte sur fond clair */
  --chalk:     #2A57DC;   /* cordeau bleu : l'anglais à dire, liens */
  --redline:   #CF2338;   /* stylo rouge : corrections uniquement */
  --approved:  #1E7A4C;   /* tampon « approved » : objectif atteint */
  --on-paint:  #1C2320;   /* texte posé sur l'orange */
  --scrim:     rgba(12, 16, 15, .78); /* voile sous les sous-titres vidéo */
  --night:     #101513;   /* fond des zones « en appel » et vidéo */
  --on-night:  #EEF1EC;

  /* --- Typographie --- */
  --f-voice: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --f-text:  "Overpass", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* Échelle (Bringhurst) : 14 · 17 · 21 · 24 · 36 · 48 · 72 */
  --t-xs: .8125rem;  /* 13 */
  --t-sm: .875rem;   /* 14 */
  --t-md: 1.0625rem; /* 17 = corps */
  --t-lg: 1.3125rem; /* 21 */
  --t-xl: 1.5rem;    /* 24 */
  --t-2xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem);  /* 28 → 36 */
  --t-3xl: clamp(2.125rem, 1.3rem + 3.4vw, 3rem);    /* 34 → 48 */
  --t-4xl: clamp(2.75rem, 1.4rem + 5.6vw, 4.5rem);   /* 44 → 72 */
  --lh-text: 1.6;
  --lh-tight: 1.08;

  /* --- Espace & forme --- */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --r-ctl: 4px;     /* contrôles : boutons, champs */
  --r-sheet: 2px;   /* feuilles, panneaux */
  --measure: 66ch;
  --wrap: 1240px;
  --shadow-sheet: 0 1px 0 rgba(28,35,32,.06), 0 12px 28px -18px rgba(28,35,32,.35);
  --focus: 0 0 0 3px var(--slab), 0 0 0 5px var(--chalk);
  color-scheme: light;
}

/* Nuit de chantier (thème sombre) : mêmes rôles, jamais une simple inversion */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --slab: #121816; --slab-2: #18201D; --sheet: #1D2622; --graphite: #E7EBE5; --graphite-2: #A6B0AA; --rule: #34403B;
    --paint: #FF6A2E; --paint-ink: #FF8B5C; --chalk: #8DA8FF; --redline: #FF6274; --approved: #5BCB8E; --on-paint: #141A17;
    --scrim: rgba(6, 9, 8, .8); --night: #0B0F0E; --on-night: #EEF1EC;
    --shadow-sheet: 0 1px 0 rgba(0,0,0,.4), 0 16px 32px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --slab: #121816; --slab-2: #18201D; --sheet: #1D2622; --graphite: #E7EBE5; --graphite-2: #A6B0AA; --rule: #34403B;
  --paint: #FF6A2E; --paint-ink: #FF8B5C; --chalk: #8DA8FF; --redline: #FF6274; --approved: #5BCB8E; --on-paint: #141A17;
  --scrim: rgba(6, 9, 8, .8); --night: #0B0F0E; --on-night: #EEF1EC;
  --shadow-sheet: 0 1px 0 rgba(0,0,0,.4), 0 16px 32px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}
