/*
 * ONZIVA Design System — polices et jetons
 *
 * Source : « ONZIVA Design System » (tokens.json v1, synchronisé le 17/09/2026).
 *
 * La page est toujours en onziva-clair : la préférence sombre du système n'est
 * pas suivie, pour que le bandeau vert nuit garde son contraste sur le fond
 * crème. onziva-sombre reste disponible en tant que thème de bloc, posé avec
 * la classe `.oz-sombre` sur le bandeau et sur la page de remerciement.
 *
 * Les couleurs de marque (menthe, fraise, olive) sont identiques dans les deux
 * thèmes ; seuls bg, ink, muted et les variantes *-texte changent.
 *
 * Les deux sous-ensembles de chaque police sont déclarés sous la même famille
 * avec leur unicode-range, comme en production sur www.onziva.fr.
 */

/* --- Unbounded (display) ------------------------------------------------ */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/unbounded-latin-400-normal-bdd12b34.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: "Unbounded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/unbounded-latin-ext-400-normal-4ce6a2e4.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: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/unbounded-latin-700-normal-ca4d630f.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: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/unbounded-latin-ext-700-normal-aa30b85a.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;
}

/* --- Plus Jakarta Sans (texte) ------------------------------------------ */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-400-normal-96468787.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-ext-400-normal-746760c4.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-600-normal-9288b21a.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-ext-600-normal-181ed9cb.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;
}

/* --- Jetons indépendants du mode ---------------------------------------- */

:root {
  /* Couleurs de marque : identiques dans tous les thèmes. Remplissages
     uniquement (points, barres, boutons, sigle) — jamais du texte sur bg. */
  --oz-creme: #f4f1ea;
  --oz-nuit: #17302b;
  --oz-olive: #5e8d00;
  --oz-fraise: #f9004d;
  --oz-menthe: #009079;

  /* ONZIVA s'exprime en menthe ; olive est l'accent secondaire commun. */
  --oz-primary: var(--oz-menthe);
  --oz-on-primary: #000000;
  --oz-accent: var(--oz-olive);
  --oz-on-accent: #000000;

  --oz-famille-titre: "Unbounded", system-ui, sans-serif;
  --oz-famille-texte: "Plus Jakarta Sans", system-ui, sans-serif;

  --oz-space-8: 8px;
  --oz-space-10: 10px;
  --oz-space-12: 12px;
  --oz-space-14: 14px;
  --oz-space-18: 18px;
  --oz-space-24: 24px;

  --oz-radius-barre: 2px;
  --oz-radius-bloc: 12px;
  --oz-radius-pilule: 999px;

  --oz-opacite-verrouille: 0.4;
  --oz-opacite-mention: 0.68;

  /* Zone cliquable minimale. */
  --oz-cible: 44px;

  /* Dérivés : la substitution a lieu sur l'élément qui les utilise, donc ils
     suivent le mode du bloc courant sans avoir à être redéclarés. */
  --oz-primary-texte: var(--oz-menthe-texte);
  --oz-focus: var(--oz-ink);
}

/* --- Mode clair (onziva-clair) ------------------------------------------ */

:root,
.oz-clair {
  color-scheme: light;

  /* Le logo « encre » se pose sur creme. Ces deux jetons pilotent l'affichage
     des deux fichiers : comme ils s'héritent, c'est toujours le bloc de thème
     le plus proche qui décide, même imbriqué. */
  --oz-logo-encre: block;
  --oz-logo-blanc: none;

  --oz-bg: var(--oz-creme);
  --oz-ink: #17302b;
  --oz-muted: #405550;
  --oz-olive-texte: #507900;
  --oz-fraise-texte: #da0042;
  --oz-menthe-texte: #007c68;
  --oz-hairline: rgba(23, 48, 43, 0.1);
  --oz-faint: rgba(23, 48, 43, 0.14);
  --oz-hair: rgba(23, 48, 43, 0.28);

  /* Fond propre aux contrôles : un champ se délimite par sa couleur de fond,
     jamais par un filet décoratif seul. Extension du système, non présente
     dans tokens.json. */
  --oz-champ: #fffdf8;
  --oz-tuile-primary: rgba(0, 144, 121, 0.08);
  --oz-tuile-fraise: rgba(249, 0, 77, 0.08);
  --oz-tuile-olive: rgba(94, 141, 0, 0.1);
}

/* --- Thème de bloc sombre (onziva-sombre) -------------------------------- */

/* Posé sur un bloc, jamais sur la page : bandeau d'ouverture, page de
   remerciement. Les jetons s'héritent, donc tout ce qu'il contient suit. */
.oz-sombre {
  color-scheme: dark;

  --oz-logo-encre: none;
  --oz-logo-blanc: block;

  --oz-bg: var(--oz-nuit);
  --oz-ink: #ffffff;
  --oz-muted: #b0bbb6;
  --oz-olive-texte: #71a127;
  --oz-fraise-texte: #ff586c;
  --oz-menthe-texte: #2da58d;
  --oz-hairline: rgba(255, 255, 255, 0.1);
  --oz-faint: rgba(255, 255, 255, 0.16);
  --oz-hair: rgba(255, 255, 255, 0.3);

  --oz-champ: rgba(255, 255, 255, 0.06);
  --oz-tuile-primary: rgba(0, 144, 121, 0.22);
  --oz-tuile-fraise: rgba(249, 0, 77, 0.18);
  --oz-tuile-olive: rgba(94, 141, 0, 0.22);
}
