/* Raphael Lopes : design system. Tokens. v2 « Midnight » (2026-10-30).
   Palette : Midnight Black #02070A (fond), Electric Blue #0297DE (primaire : action, lien, focus, donnée),
   Cantaloupe Orange #FC734D (secondaire : la voix — mot d'accent des titres, repères, mise en avant).
   Typo : Instrument Serif (titres), Geist (texte, interface), Geist Mono (étiquettes, index, métadonnées).
   Formes : rayons courts et hiérarchisés (4 / 8 / 12 / 16), pilule réservée aux interrupteurs et jauges.
   Sombre par défaut ; le clair s'active avec <html data-theme="light">. Source de vérité : ce fichier.
   Contraste (vérifié le 2026-10-30) : tout jeton de texte atteint 4,5:1 sur bg, bg-2, surface, surface-2 et panel, dans les deux
   thèmes ; --em (titres) vise le grand corps (≥ 3:1). En clair, le bleu de texte (#02699D) est plus sombre que l'aplat (#0279B4). */

@font-face{font-family:Geist;src:url(../fonts/geist-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Geist Mono';src:url(../fonts/geist-mono-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Instrument Serif';src:url(../fonts/instrument-serif-latin-400-italic.woff2) format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Instrument Serif';src:url(../fonts/instrument-serif-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}

:root{
  /* Nuancier (fixe, identique dans les deux thèmes) */
  --midnight-950:#02070a;--midnight-900:#050d12;--midnight-850:#08141b;--midnight-800:#0d1c25;--midnight-700:#16293a;
  --midnight-600:#28404f;--midnight-500:#4a6070;--midnight-400:#6f8494;--midnight-300:#9aabb8;--midnight-200:#c5d1da;--midnight-100:#e3eaef;--midnight-50:#f2f5f7;
  --blue-50:#e6f5fd;--blue-100:#c2e7fa;--blue-200:#8dd3f5;--blue-300:#4fbbee;--blue-400:#1fa7e6;--blue-500:#0297de;
  --blue-600:#0279b4;--blue-700:#025f8d;--blue-800:#034869;--blue-900:#04334a;--blue-950:#021e2c;
  --orange-50:#fff1ec;--orange-100:#fedcd1;--orange-200:#febba6;--orange-300:#fd9a7b;--orange-400:#fc8461;--orange-500:#fc734d;
  --orange-600:#e55a33;--orange-700:#c04524;--orange-800:#93361e;--orange-900:#6b2918;--orange-950:#3d160c;

  /* Couleurs de base (thème sombre) */
  --bg:#02070a;--bg-2:#050d12;--surface:#08141b;--surface-2:#0d1c25;
  --line:rgba(150,200,230,.10);--line-2:rgba(150,200,230,.19);
  --ink:#eef3f6;--muted:#93a5b2;--dim:#70879a;
  --accent:#0297de;--accent-2:#0279b4;--glow:#4fbbee;--accent-strong:#0297de;--on-accent:#02070a;
  --warm:#fc734d;--warm-tint:rgba(252,115,77,.12);--on-warm:#02070a;
  /* --em : mot d'accent des titres (grand corps) ; --em-text : petits textes cantaloup (index « 01 », badges), ≥ 4,5:1 */
  --em:#fc734d;--em-text:#fc734d;

  /* Matières : surfaces pleines, verre seulement pour ce qui flotte (en-tête, panneau au-dessus d'une image) */
  --header-bg:rgba(2,7,10,.74);--panel-glass:rgba(5,13,18,.78);--card:#061017;--card-soft:rgba(8,20,27,.6);
  --panel:#050e14;--panel-glow:rgba(2,151,222,.16);--window-bar:#0b1820;--stroke:rgba(141,211,245,.5);
  --feature-bg:linear-gradient(180deg,#0a1720,#050d12 70%);--band:#040b10;
  --glow-a:rgba(2,151,222,.18);--glow-b:rgba(252,115,77,.12);
  /* Aube : le dégradé de la maquette (bleu électrique qui monte vers un cœur cantaloup), pour les héros */
  --aurora:radial-gradient(60% 55% at 50% 108%,rgba(252,115,77,.42),rgba(252,115,77,0) 60%),radial-gradient(75% 85% at 50% 115%,rgba(2,151,222,.38),rgba(2,151,222,0) 70%);
  --shadow-img:rgba(0,4,8,.78);--shadow-xl:rgba(0,4,8,.82);--shadow-glass:rgba(0,4,8,.6);--hover-tint:rgba(2,151,222,.08);
  --field-bg:rgba(150,200,230,.045);

  /* États : distincts des deux couleurs de marque (le rouge tire vers le rose, l'attente vers l'ambre) */
  --ok:#3fd28f;--ok-bg:rgba(63,210,143,.12);
  --warn:#f2b544;--warn-bg:rgba(242,181,68,.12);
  --danger:#f2557a;--danger-bg:rgba(242,85,122,.12);

  /* Palette catégorielle (graphiques) : les deux couleurs de marque d'abord, puis des teintes voisines */
  --cat-1:#0297de;--cat-2:#fc734d;--cat-3:#8dd3f5;--cat-4:#f7b267;--cat-5:#3fbfa0;
  --cat-6:#9b8cff;--cat-7:#e3cf7d;--cat-8:#7a8c99;--cat-9:#f291b0;--cat-10:#5ad1e6;

  /* Typographie */
  --sans:Geist,'Helvetica Neue',Helvetica,Arial,sans-serif;
  --serif:'Instrument Serif',Georgia,'Times New Roman',serif;
  --mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --display:var(--serif);

  /* Formes : un rayon par rôle. Badge 4, contrôle 8, carte 12, grande carte et fenêtre 16. */
  --r-xs:4px;--r-sm:8px;--r-md:12px;--r-lg:16px;--r-xl:16px;--r-pill:999px;
  /* Rythme : grille de 4 */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:24px;--s-6:32px;--s-7:48px;--s-8:64px;--s-9:96px;--s-10:128px;
  --ease:cubic-bezier(.16,1,.3,1);
  --t-fast:.3s;--t-base:.55s;--t-slow:.8s;
  --max:1280px;--gutter:40px;
}

html[data-theme=light]{
  /* Clair : papier légèrement chaud (s'accorde au cantaloup), encre Midnight, bleu et orange assombris pour le contraste */
  --bg:#f5f4f0;--bg-2:#eeece6;--surface:#fdfcfa;--surface-2:#f0eee8;
  --line:rgba(2,7,10,.09);--line-2:rgba(2,7,10,.17);
  --ink:#02070a;--muted:#4f5b63;--dim:#5f6a72;
  --accent:#02699d;--accent-2:#025f8d;--glow:#02699d;--accent-strong:#0279b4;--on-accent:#ffffff;
  --warm:#e55a33;--warm-tint:rgba(229,90,51,.1);--on-warm:#02070a;
  --em:#d24e29;--em-text:#b34323;
  --header-bg:rgba(245,244,240,.82);--panel-glass:rgba(253,252,250,.86);--card:#fdfcfa;--card-soft:rgba(253,252,250,.7);
  --panel:#ebe9e3;--panel-glow:rgba(2,151,222,.12);--window-bar:#efede7;--stroke:rgba(2,95,141,.45);
  --feature-bg:linear-gradient(180deg,#fdfcfa,#f3f1ec);--band:#efede7;
  --glow-a:rgba(2,151,222,.10);--glow-b:rgba(252,115,77,.13);
  --aurora:radial-gradient(60% 55% at 50% 108%,rgba(252,115,77,.30),rgba(252,115,77,0) 62%),radial-gradient(75% 85% at 50% 115%,rgba(2,151,222,.20),rgba(2,151,222,0) 70%);
  --shadow-img:rgba(30,25,15,.28);--shadow-xl:rgba(30,25,15,.2);--shadow-glass:rgba(30,25,15,.16);--hover-tint:rgba(2,121,180,.06);
  --field-bg:rgba(2,7,10,.035);
  --ok:#0b7749;--ok-bg:rgba(11,119,73,.1);
  --warn:#855600;--warn-bg:rgba(133,86,0,.1);
  --danger:#c42a50;--danger-bg:rgba(196,42,80,.09);
  --cat-1:#0279b4;--cat-2:#e55a33;--cat-3:#4fa9d6;--cat-4:#c7801c;--cat-5:#1d8f74;
  --cat-6:#6d5bd6;--cat-7:#a88d1f;--cat-8:#5b6d7a;--cat-9:#c4527a;--cat-10:#1f97ad;
}

@media(max-width:720px){:root{--gutter:20px}}
