/* ─────────────────────────────────────────────────────────────────
 *  origine.css — 2ᵉ famille de thèmes « Origine » (clair / sombre).
 *
 *  Complète jowwwan-tokens.css : mêmes NOMS de variables (--bg, --surface,
 *  --surface2/3, --border, --border2, --text, --text2, --text3, --accent,
 *  --accent2, --accent-soft) pour que tous les composants Jowwwan marchent
 *  à l'identique. Palette reprise de l'app Emails (« design d'origine »).
 *
 *  « Système » (suivi de l'OS) est résolu en clair/sombre côté client
 *  (theme.js, prefers-color-scheme) — pas de classe dédiée ici.
 *  À charger APRÈS jowwwan-tokens.css.
 * ───────────────────────────────────────────────────────────────── */

/* ── Polices « Origine » : Geist Sans + Geist Mono (comme l'app Emails),
 *    auto-hébergées. Déclarées ici mais téléchargées par le navigateur
 *    uniquement quand un thème Origine est actif (elles ne sont référencées
 *    que dans body.theme-clair / body.theme-sombre). ── */
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/geist-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/geist-mono-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Clair — cream lumineux, accent indigo */
body.theme-clair {
  --bg:        #f5f3ee;
  --surface:   #fdfcf9;
  --surface2:  #f0ede6;
  --surface3:  #e8e3d8;
  --border:    #d8d2c4;
  --border2:   #c4bdb0;
  --text:      #2a2520;
  --text2:     #6b6258;
  --text3:     #a09488;
  --accent:    #5b4fcf;
  --accent2:   #7c6af7;
  --accent-soft: rgba(91,79,207,0.10);
  --hour-line: rgba(0, 0, 0, 0.06);
  /* Polices Emails : Geist (sans serif éditorial), y compris pour les titres/wordmark */
  --font-display: 'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
}

/* Sombre — mêmes couleurs que le thème « Nuit » de Jowwwan (neutre + indigo) ;
 *           seule la typo (Geist) le distingue de Nuit. */
body.theme-sombre {
  --bg:        #0f0f11;
  --surface:   #17171a;
  --surface2:  #1e1e22;
  --surface3:  #26262c;
  --border:    #2e2e35;
  --border2:   #3a3a44;
  --text:      #e8e8ef;
  --text2:     #9898a8;
  --text3:     #5a5a6e;
  --accent:    #7c6af7;
  --accent2:   #a594ff;
  --accent-soft: rgba(124,106,247,0.14);
  --hour-line: rgba(255, 255, 255, 0.04);
  /* Polices Emails : Geist (sans serif éditorial), y compris pour les titres/wordmark */
  --font-display: 'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
}
