/* rabe.css — la charte commune d'Assistant Rabe (14/10/2026)
 *
 * Jusqu'ici, chaque page portait ses propres polices et ses propres
 * couleurs : « Ma fiche » en Georgia, « Diagnostic voix » en Helvetica,
 * des liens violets par défaut en sombre. C'est ce qui donnait l'impression
 * d'un site fait de morceaux.
 *
 * Cette feuille est chargée EN DERNIER par toutes les pages sauf
 * l'application (index.html, qui porte la référence de ces règles). Elle ne
 * fait que trois choses, volontairement peu :
 *   1. les deux polices de la marque, Cormorant Garamond (titres) et Jost
 *      (texte) ;
 *   2. des liens, champs et boutons dessinés pareil partout, sans arrondi
 *      (règle du 06/10/2026) ;
 *   3. les couleurs de référence, en repli seulement : une page qui définit
 *      les siennes (thème Octobre rose, Halloween…) garde la main.
 *
 * Elle est posée par `charte_commune.py`, relancé par `regenerer.py`.
 * Référence complète : le design system « Assistant Rabe » (artifact). */

@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/polices/CormorantGaramond-VariableFont_wght-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/polices/Jost-VariableFont_wght-latin.woff2') format('woff2');
}

/* 3. Les couleurs de référence — en repli (spécificité nulle). */
:where(:root) {
  --cream: #faf7f0; --sand: #f1e9d8; --card: #ffffff; --line: #e3d9c2;
  --ink: #1f2e2c; --ink-soft: #4a5754; --teal: #0e4a3f;
  --gold: #b7893f; --gold-texte: #8c6930; --terracotta-texte: #a84a26;
}
:where(:root[data-theme="dark"]) {
  --cream: #121a19; --sand: #1c2725; --card: #19231f; --line: #2d3b38;
  --ink: #edf1ec; --ink-soft: #c3cdc9; --teal: #8dd3bf;
  --gold: #d6ad61; --gold-texte: #e3c27f; --terracotta-texte: #f39a74;
}

/* 1. Les polices. */
body {
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}
h1 { font-size: max(1.9em, 30px); }
h2 { font-size: max(1.45em, 23px); }
h3 { font-size: max(1.2em, 19px); }
b, strong { font-weight: 500; }
input, textarea, select, button { font-family: inherit; }

/* 2. Liens, champs, boutons. */
a:not([class]) {
  color: var(--lien, var(--vert, var(--teal)));
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:not([class]):visited { color: var(--lien, var(--vert, var(--teal))); }
input, textarea, select, button { border-radius: 0 !important; }
:focus-visible { outline: 2px solid var(--vert, var(--teal)); outline-offset: 2px; }
