/* =====================================================================
   JETONS DE DESIGN · SUBCO (base de l'ancien socle, voir design.md) · « Encre noire » depuis le 2026-11-10.
   Les écrans lisent les jetons de refonte.css (dans .refait) ; ces jetons-ci servent aux morceaux hérités (anciennes fenêtres, tableaux, champs).
   Mêmes valeurs que refonte/systeme/tokens.css : neutres, Geist, aucune ombre, aucun flou. Clair ici, sombre plus bas.
   Les noms historiques (--nuit, --neon, --or…) restent des alias : ne pas en créer de nouveaux.
   ===================================================================== */
:root {
  --bg: #FFFFFF; --bg-2: #FFFFFF; --surface: #F7F7F7; --surface-2: #EFEFEF; --surface-glass: #FFFFFF; --surface-sheet: #FFFFFF;
  --border: #E4E4E4; --border-soft: #EFEFEF; --border-strong: #CFCFCF; --border-white: transparent;
  --text: #111111; --text-2: #444444; --text-muted: #6E6E6E; --text-on-accent: #FFFFFF;
  --accent: #111111; --accent-glow: rgba(0, 0, 0, .12); --ink: #111111;
  --gold: #7A5A00; --success: #1B7F3E; --warning: #7A5A00; --danger: #C0392B; --info: #1D5BC7; --violet: #6B3FD1; --coral: #C0392B; --slate: #6E6E6E;

  --font-display: "Geist", -apple-system, system-ui, sans-serif;
  --font-body: "Geist", -apple-system, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-display: 600 40px/1 var(--font-display);
  --text-h1: 600 28px/1.15 var(--font-display);
  --text-h2: 600 20px/1.2 var(--font-display);
  --text-h3: 600 14px/1.3 var(--font-display);
  --text-body: 400 15px/1.5 var(--font-body);
  --text-body-strong: 550 15px/1.5 var(--font-body);
  --text-caption: 500 12px/1.35 var(--font-body);
  --tracking-caps: 0;

  --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;
  --tap: 44px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  --shadow-1: 0 0 #0000; --shadow-2: 0 0 #0000; --shadow-sheet: 0 0 #0000; --glow-accent: 0 0 0 2px var(--accent-glow); --glass-blur: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: .12s; --dur: .16s; --dur-slow: .16s;

  /* ---- Alias historiques (ne pas en ajouter) ---- */
  --nuit: var(--bg); --nuit-2: var(--bg-2); --verre: var(--surface-glass); --verre-bord: var(--border);
  --texte: var(--text); --gris: var(--text-muted); --neon: var(--accent); --or: var(--gold);
  --orange: var(--warning); --rouge: var(--danger); --ardoise: var(--slate);
  --f-jeu: var(--font-display); --f-corps: var(--font-body);
  color-scheme: light;
}
html[data-theme="sombre"] {
  --bg: #0E0E0E; --bg-2: #1C1C1C; --surface: #141414; --surface-2: #1C1C1C; --surface-glass: #141414; --surface-sheet: #1C1C1C;
  --border: #262626; --border-soft: #1C1C1C; --border-strong: #3A3A3A;
  --text: #F2F2F2; --text-2: #C8C8C8; --text-muted: #8A8A8A; --text-on-accent: #0E0E0E;
  --accent: #E8E8E8; --accent-glow: rgba(255, 255, 255, .16); --ink: #F2F2F2;
  --gold: #F2D06B; --success: #6FDB93; --warning: #F2D06B; --danger: #FF8A80; --info: #7FB3FF; --violet: #B79CFF; --coral: #FF8A80; --slate: #8A8A8A;
  color-scheme: dark;
}

/* ---- États communs des commandes (hérités par tous les boutons de l'app) ---- */
button, [role="button"], .btn-jeu, .mini, .bn-bouton, .bn-outil, .outil, .act, .res, .etape, .seg button, .hud-btn, .filtre-jour {
  cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
}
button:disabled, .btn-jeu:disabled, .mini:disabled, .act:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-jeu:active, .mini:active, .bn-bouton:active { transform: scale(.98); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
