/* Rassure — généré depuis tokens.json */

:root, [data-theme="light"] {
  --sapin: #1d4b3e;
  --sapin-fort: #153a30;
  --on-sapin: #f6f1e6;
  --soleil: #f2a33a;
  --on-soleil: #2a1a00;
  --surface-0: #f6f1e6;
  --surface-1: #fffdf8;
  --surface-2: #e6ede7;
  --ligne: #d8d2c4;
  --controle: #7d8782;
  --encre: #18211f;
  --encre-douce: #4f5b57;
  --ok-fond: #dcefe2;
  --ok-encre: #1a5a3d;
  --attente-fond: #fbe9c3;
  --attente-encre: #6e4600;
  --alerte: #b3261e;
  --on-alerte: #ffffff;
  --alerte-fond: #fbe0dc;
  --alerte-encre: #8c1d17;
  --focus: #0b62c4;
  --trace-prevue: #5b6b8c;
  --trace-parcourue: #1d4b3e;
  --ombre-carte: 0 1px 2px rgba(24,33,31,0.08), 0 4px 16px rgba(24,33,31,0.06);
}

[data-theme="dark"] {
  --sapin: #8fcfb2;
  --sapin-fort: #b3e0cb;
  --on-sapin: #0f2a22;
  --soleil: #f5b65c;
  --on-soleil: #2a1a00;
  --surface-0: #101816;
  --surface-1: #18231f;
  --surface-2: #22302b;
  --ligne: #33423c;
  --controle: #6f7d77;
  --encre: #eef2ee;
  --encre-douce: #a9b6b0;
  --ok-fond: #183a2b;
  --ok-encre: #9fdcbc;
  --attente-fond: #3a2c10;
  --attente-encre: #f5c97a;
  --alerte: #ff8a7a;
  --on-alerte: #3a0703;
  --alerte-fond: #3d1512;
  --alerte-encre: #ffb4a9;
  --focus: #8cc2ff;
  --trace-prevue: #9fb0d4;
  --trace-parcourue: #8fcfb2;
  --ombre-carte: 0 1px 2px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sapin: #8fcfb2;
    --sapin-fort: #b3e0cb;
    --on-sapin: #0f2a22;
    --soleil: #f5b65c;
    --on-soleil: #2a1a00;
    --surface-0: #101816;
    --surface-1: #18231f;
    --surface-2: #22302b;
    --ligne: #33423c;
    --controle: #6f7d77;
    --encre: #eef2ee;
    --encre-douce: #a9b6b0;
    --ok-fond: #183a2b;
    --ok-encre: #9fdcbc;
    --attente-fond: #3a2c10;
    --attente-encre: #f5c97a;
    --alerte: #ff8a7a;
    --on-alerte: #3a0703;
    --alerte-fond: #3d1512;
    --alerte-encre: #ffb4a9;
    --focus: #8cc2ff;
    --trace-prevue: #9fb0d4;
    --trace-parcourue: #8fcfb2;
    --ombre-carte: 0 1px 2px rgba(0,0,0,0.5);
  }
}

:root {
  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 12px;
  --espace-4: 16px;
  --espace-6: 24px;
  --espace-8: 32px;
  --espace-12: 48px;
  --rayon-s: 8px;
  --rayon-m: 14px;
  --rayon-l: 24px;
  --rayon-rond: 999px;
  --cible-min: 56px;
  --cible-sos: 88px;
  --font-display: Fraunces, Georgia, serif;
  --font-texte: "Atkinson Hyperlegible", system-ui, sans-serif;
}

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.titre-xl { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.5px; }

.titre-l { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 600; }

.titre-m { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; }

.statut { font-family: var(--font-texte); font-size: 26px; line-height: 32px; font-weight: 700; }

.heure { font-family: var(--font-texte); font-size: 34px; line-height: 38px; font-weight: 700; }

.texte-l { font-family: var(--font-texte); font-size: 18px; line-height: 27px; font-weight: 400; }

.texte { font-family: var(--font-texte); font-size: 16px; line-height: 24px; font-weight: 400; }

.bouton { font-family: var(--font-texte); font-size: 17px; line-height: 22px; font-weight: 700; }

.legende { font-family: var(--font-texte); font-size: 14px; line-height: 20px; font-weight: 400; }
