/* schanalyse — jetons « Abysse » (docs/BRIEF.md). Source unique, partagée par le site et l'app. */

@font-face {
  font-family: "Onest";
  src: url("../polices/onest-latin-wght-normal.3db826ed1c5d.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
  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: "Onest";
  src: url("../polices/onest-latin-ext-wght-normal.3e2cb9888206.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
  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: "Schibsted Grotesk";
  src: url("../polices/schibsted-grotesk-latin-wght-normal.ba4038fc5cb5.woff2") format("woff2-variations");
  font-weight: 400 900; font-display: swap;
  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: "Schibsted Grotesk";
  src: url("../polices/schibsted-grotesk-latin-ext-wght-normal.65233324c912.woff2") format("woff2-variations");
  font-weight: 400 900; font-display: swap;
  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;
}

:root {
  color-scheme: light;
  --fond: #f4f6f9;
  --surface: #ffffff;
  --encre: #0b1b33;
  --encre-2: #55627a;
  --trait: #e3e8ef;
  --trait-fort: #c9d2de;
  --primaire: #163f86;
  --primaire-survol: #11336e;
  --primaire-doux: #e7eef9;
  --sur-primaire: #ffffff;
  --cristal: #9142ad;
  --cristal-doux: #f5ecf9;
  --succes: #1d6e4c;
  --echec: #b23a3a;
  --echec-doux: #fbeeee;
  --attention: #8a5a00;
  --abysse: #0b1b33;        /* le panneau profond, identique dans les deux thèmes */
  --abysse-ligne: #7fb6e8;
  --anneau: #2f6fd6;
  --donnee: #2f66c9;
  --donnee-cristal: #a5408f;
  --donnee-lavis: rgb(47 102 201 / 0.1);
  --donnee-bas: #b0627a;    /* « moins bien que d'habitude » dans les graphes divergents (pas l'ambre des alertes) */

  --police: "Onest", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --police-chiffres: "Schibsted Grotesk", "Onest", ui-sans-serif, system-ui, sans-serif;
  --rayon: 12px;
  --rayon-petit: 8px;
  --ombre: 0 1px 2px rgb(11 27 51 / 0.06), 0 8px 24px -12px rgb(11 27 51 / 0.18);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="sombre"] {
  color-scheme: dark;
  --fond: #09131f;
  --surface: #0f1c2e;
  --encre: #e5ecf5;
  --encre-2: #94a3b8;
  --trait: #1c2c44;
  --trait-fort: #2b3e5a;
  --primaire: #78a9ec;
  --primaire-survol: #93bbf1;
  --primaire-doux: #162a48;
  --sur-primaire: #071222;
  --cristal: #cf93e3;
  --cristal-doux: #231c3d;
  --succes: #5cc596;
  --echec: #f08a8a;
  --echec-doux: #2c1a20;
  --attention: #e5b45c;
  --abysse: #0d1f3a;      /* plus clair que le fond sombre : la barre du haut reste visible */
  --anneau: #93bbf1;
  --donnee: #3478d0;
  --donnee-cristal: #c2729f;
  --donnee-lavis: rgb(52 120 208 / 0.14);
  --donnee-bas: #d08aa0;
  --ombre: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    color-scheme: dark;
    --fond: #09131f;
    --surface: #0f1c2e;
    --encre: #e5ecf5;
    --encre-2: #94a3b8;
    --trait: #1c2c44;
    --trait-fort: #2b3e5a;
    --primaire: #78a9ec;
    --primaire-survol: #93bbf1;
    --primaire-doux: #162a48;
    --sur-primaire: #071222;
    --cristal: #cf93e3;
    --cristal-doux: #231c3d;
    --succes: #5cc596;
    --echec: #f08a8a;
    --echec-doux: #2c1a20;
    --attention: #e5b45c;
    --abysse: #0d1f3a;      /* plus clair que le fond sombre : la barre du haut reste visible */
    --anneau: #93bbf1;
  --donnee: #3478d0;
  --donnee-cristal: #c2729f;
  --donnee-lavis: rgb(52 120 208 / 0.14);
  --donnee-bas: #d08aa0;
    --ombre: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

