/* ==================================================================
   BAC — jetons de la charte (seul fichier ou une couleur s'ecrit en
   hexadecimal, regle 8). Systeme neutre repris de Conversa : gris
   froids, surface blanche, un seul accent (bleu par defaut), Inter.
   L'accent et la police se surchargent depuis la page Configuration
   (_css/theme.php, charge apres cette feuille).
   ================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/_font/inter-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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/_font/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/_font/dm-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: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/_font/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/_font/hanken-grotesk-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: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/_font/hanken-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  /* Neutres (fixes) — Conversa */
  --fond:        #f6f6f7;
  --surface:     #ffffff;
  --bord:        #e5e5e8;
  --bord-fort:   #d4d4d8;
  --texte:       #18181b;
  --texte-2:     #52525b;
  --texte-3:     #71717a;
  --survol:      #f4f4f5;
  --rayon:       10px;
  --rayon-petit: 6px;
  --ombre:       0 1px 2px rgb(16 16 20 / 4%);
  --ombre-haute: 0 12px 40px rgb(16 16 20 / 14%);
  --blanc:       #ffffff;
  --voile:       rgb(20 20 19 / 62%);

  /* Accent (surcharge par theme.php) */
  --accent:       #1f48c7;
  --accent-fonce: #18389a;
  --accent-texte: #1f48c7;
  --accent-doux:  #e9edf9;
  --accent-encre: #ffffff;

  /* Tons de boutons (surcharges par theme.php, derives de l'accent) */
  --ton-vert:   #067647; --ton-vert-fonce:   #05603a; --ton-vert-doux:   #ecfdf3;
  --ton-bleu:   #175cd3; --ton-bleu-fonce:   #1849a9; --ton-bleu-doux:   #eff8ff;
  --ton-rouge:  #b42318; --ton-rouge-fonce:  #912018; --ton-rouge-doux:  #fef3f2;
  --ton-jaune:  #93370d; --ton-jaune-fonce:  #7a2e0e; --ton-jaune-doux:  #fffaeb;
  --ton-orange: #b54708; --ton-orange-fonce: #93370d; --ton-orange-doux: #fff6ed;
  --ton-gris:   #52525b; --ton-gris-fonce:   #3f3f46; --ton-gris-doux:   #f4f4f5;

  /* Semantiques (toujours doublees d'un libelle) */
  --succes: #067647; --succes-fond: #ecfdf3; --succes-bord: #abefc6;
  --alerte: #b54708; --alerte-fond: #fffaeb; --alerte-bord: #fedf89;
  --danger: #b42318; --danger-fond: #fef3f2; --danger-bord: #fecdca;
  --info:   #175cd3; --info-fond:   #eff8ff; --info-bord:   #b2ddff;

  --police: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --police-maths: 'Cambria Math', 'STIX Two Math', Cambria, 'Times New Roman', serif;

  /* --- Cours : palettes par matiere (atelier, CLAUDE.md § 6) ------ */
  --papier: #fdfbf7;
  --quadrillage: #ece5de;
  --encre: #1d2b33;
  --ligne: #ddcfc6;
  --vert-cours: #1e7a46; --vert-cours-doux: #e6f4ec;
  --rouge-cours: #b3261e; --rouge-cours-doux: #fbeceb;

  --mat-maths: #1d4fa3;     --mat-maths-doux: #ebf1fb;     --mat-maths-2: #b3261e;
  --mat-physique: #0f6b6b;  --mat-physique-doux: #e3f2f0;  --mat-physique-2: #b4520a;
  --mat-francais: #7b1e3a;  --mat-francais-doux: #f6e9ed;  --mat-francais-2: #b4520a;
  --mat-svt: #2e6b2f;       --mat-svt-doux: #e8f2e6;       --mat-svt-2: #8a5a00;
  --mat-histoire: #6b4a1e;  --mat-histoire-doux: #f5ede2;  --mat-histoire-2: #1d4fa3;
  --mat-langues: #3a3f8f;   --mat-langues-doux: #ecedf8;   --mat-langues-2: #b3261e;
  --mat-ses: #4a4a4a;       --mat-ses-doux: #efefef;       --mat-ses-2: #8a5a00;
}
