/* ============================================================
   LE MANDAT — SYSTÈME DE TOKENS
   Source de vérité visuelle : le-mandat-guide-identite.html

   Deux couches :
   · FONDATIONS  (--found-*)               base sobre et durable
   · SURFACE     (--mandat-* / --step-*)   couche d'identité
   ============================================================ */

/* ============================================================ POLICES
   Auto-hébergées dans /fonts/ — fichiers .woff2 récupérés depuis
   Google Fonts (sous-ensembles latin + latin-ext suffisent pour
   le français). Source Serif 4 et IBM Plex Sans sont servis en
   variable wght : un fichier couvre toutes les graisses 400..700.
   ============================================================ */

/* Source Serif 4 — sérif (titres, corps) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-roman-latin.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: 'Source Serif 4';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-roman-latin-ext.woff2') format('woff2');
  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: 'Source Serif 4';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin.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: 'Source Serif 4';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin-ext.woff2') format('woff2');
  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;
}

/* IBM Plex Sans — sans (méta, UI, code) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  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;
}

/* ============================================================ TOKENS */
:root {

  /* ---------- COUCHE 1 — FONDATIONS ------------------------ */

  /* Surfaces — crème pâle du récap */
  --found-surface:         #F4F1E8;  /* fond général                   */
  --found-surface-raised:  #FCFBF6;  /* cartes, éléments posés         */
  --found-surface-sunken:  #EAE6D9;  /* zones de phase, encarts        */

  /* Encre — quasi-noir chaud */
  --found-ink:             #1C1A15;  /* texte principal   15,4:1       */
  --found-ink-soft:        #5A5345;  /* texte secondaire   6,7:1       */
  --found-ink-faint:       #6B6254;  /* méta, légendes     5,3:1       */

  /* Filets */
  --found-line:            #DDD6C5;  /* séparateurs décoratifs         */
  --found-line-strong:     #CABE9F;  /* bord de carte, contour de nœud */

  /* Familles */
  --found-font-serif: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --found-font-sans:  'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Échelle typographique */
  --found-text-display: 2.75rem;
  --found-text-h1:      2.125rem;
  --found-text-h2:      1.5rem;
  --found-text-h3:      1.1875rem;
  --found-text-lead:    1.1875rem;
  --found-text-body:    1.0625rem;
  --found-text-small:   0.9375rem;
  --found-text-micro:   0.75rem;

  /* Interlignes */
  --found-leading-tight: 1.16;
  --found-leading-snug:  1.34;
  --found-leading-body:  1.62;

  /* Graisses */
  --found-weight-regular:  400;
  --found-weight-medium:   500;
  --found-weight-semibold: 600;
  --found-weight-bold:     700;

  /* Interlettrage */
  --found-tracking-label: 0.10em;
  --found-tracking-tight: -0.012em;

  /* Espacements — échelle 4 px */
  --found-space-1: 4px;   --found-space-2: 8px;
  --found-space-3: 12px;  --found-space-4: 16px;
  --found-space-5: 24px;  --found-space-6: 32px;
  --found-space-7: 48px;  --found-space-8: 64px;
  --found-space-9: 96px;

  /* Rayons */
  --found-radius-control: 3px;
  --found-radius-card:    6px;
  --found-radius-pill:    999px;

  /* Ombre — minime ; le relief vient du filet et de la valeur */
  --found-shadow-card: 0 1px 2px rgba(28,26,21,.05), 0 1px 1px rgba(28,26,21,.04);

  /* Mise en page */
  --found-wrap:    1120px;
  --found-measure: 68ch;

  /* ---------- COUCHE 2 — SURFACE --------------------------- */

  /* Accent structurel — quasi-noir. Le système est monochrome
     pour tout ce qui relève de la structure (marque, action,
     focus) ; la couleur est réservée aux huit étapes. */
  --mandat-accent:        #201D17;
  --mandat-accent-strong: #14110D;  /* survol / pressé        */
  --mandat-accent-tint:   #ECE8DC;  /* fond pâle d'appui      */
  --mandat-accent-on:     #F7F4EA;  /* texte sur aplat accent */
  --mandat-focus:         #201D17;  /* anneau de focus        */

  /* Les 8 couleurs d'étape — relevées sur le récap verrouillé.
     Une couleur par étape (pas par phase). Chaque étape a sa
     teinte (nœud) et son encre (texte sur crème, >= 4,5:1). */
  --step-01: #6D7789;  --step-01-ink: #616A7A;  /* Le projet   */
  --step-02: #AF2025;  --step-02-ink: #AF2025;  /* Stratégie   */
  --step-03: #E8661B;  --step-03-ink: #AE4C14;  /* Tactique    */
  --step-04: #0E7B58;  --step-04-ink: #0E7755;  /* Opération   */
  --step-05: #7C3FEA;  --step-05-ink: #7C3FEA;  /* Tensions    */
  --step-06: #4537CE;  --step-06-ink: #4537CE;  /* Arbitrages  */
  --step-07: #9F4F13;  --step-07-ink: #9F4F13;  /* Garde-fous  */
  --step-08: #181410;  --step-08-ink: #181410;  /* Synthèse    */

  /* Regroupement structurel des phases (aucune couleur propre) :
     Phase 1 Cadrage    = étape 1
     Phase 2 Intentions = étapes 2 · 3 · 4
     Phase 3 Friction   = étapes 5 · 6
     Phase 4 Sortie     = étapes 7 · 8 */
}
