/*
 * Boninotes — jetons de conception et fontes.
 *
 * Les couleurs sont déclarées ici et nulle part ailleurs : aucun composant
 * n'écrit une valeur hexadécimale en dur (SPEC §8).
 *
 * Les fontes sont servies depuis /assets/fonts, jamais depuis Google Fonts —
 * aucune dépendance à un tiers, aucune adresse IP d'élève transmise, et
 * l'application fonctionne hors ligne.
 */

/* ── Bricolage Grotesque — l'interface ───────────────────────────────── */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-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;
}

/* ── Newsreader — les réponses de Bonni et les grands titres ─────────── */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-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: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-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: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italique-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;
}

/* ── Jetons ──────────────────────────────────────────────────────────── */

:root {
  /* Papier */
  --paper: #f6f6f1;
  --paper-2: #edede5;
  --card: #fcfcf8;

  /* Encre */
  --ink: #1a1a17;
  --ink-2: #55554c;
  --ink-3: #8c8c81;
  --ink-4: #b2b2a6;

  /* Traits */
  --rule: #deded4;
  --rule-soft: #e6e6dc;
  --rule-strong: #d4d4c8;
  --chip: #eaeae0;

  /* Lignes du cahier — texture uniquement, jamais un texte ni une bordure */
  --seyes: #c9d3e8;

  /* Un seul accent : le rouge du stylo de correction */
  --accent: #c0341a;
  --accent-hover: #9c2a13;
  --accent-wash: #fbefea;
  --accent-wash-2: #f7e2dc;

  /* Sémantique, jamais décoratif */
  --success: #2f6b4f;
  --success-wash: #e4efe7;

  /* Fontes */
  --sans: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Rayons : contrôles, puis cartes et champ de saisie */
  --rayon-controle: 9px;
  --rayon-carte: 13px;

  /* Largeurs de référence */
  --rail: 72px;
  --panneau: 300px;
  --colonne-lecture: 740px;
}
