/* v1.76 — Mode sombre FACULTATIF (maquette « nuit d'atelier, néon rouge »). Activé par html[data-theme="dark"]
   (bouton lune / soleil de la barre du haut, choix gardé dans ce navigateur : localStorage gme.theme).
   Jetons ici ; conversion automatique des couleurs écrites en dur dans css/dark-auto.css (GÉNÉRÉ par
   scripts/build-dark-css.mjs) ; corrections à la main en bas de ce fichier. Impression toujours en clair. */
@media screen {
html[data-theme="dark"] {
  color-scheme: dark;
  --text: #eef2f8; --text-2: #d3dbe8; --text-3: #b9c3d6; --muted: #8d9ab2; --muted-2: #6f7c95;
  --line: rgba(148, 170, 210, .14); --line-2: rgba(148, 170, 210, .09); --field-line: rgba(148, 170, 210, .24);
  --bg: #070b14; --card: #0f1726; --blue: #6ea4ff; --blue-2: #5b95ff; --red-text: #ff5a62;
  --red: #ff2a35; --red-dark: #c4111b;
  --grad-red: linear-gradient(180deg, #ff3a44 0%, #c4111b 100%);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .7);
  --shadow-red: 0 6px 20px -6px rgba(255, 42, 53, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 500px at 70% -10%, rgba(255, 42, 53, .09), transparent 60%), radial-gradient(700px 600px at 0% 100%, rgba(62, 139, 255, .05), transparent 60%); }
html[data-theme="dark"] .card, html[data-theme="dark"] .modal, html[data-theme="dark"] .dropdown {
  background: linear-gradient(180deg, rgba(17, 26, 43, .96), rgba(11, 17, 29, .96)) !important; border-color: var(--line) !important; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background-color: #0b1220 !important; color: var(--text) !important; border-color: var(--field-line) !important; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #6f7c95 !important; }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus {
  border-color: rgba(255, 42, 53, .6) !important; box-shadow: 0 0 0 4px rgba(255, 42, 53, .1) !important; }
html[data-theme="dark"] .table thead th { background: #0b1220 !important; color: var(--muted) !important; }
html[data-theme="dark"] .table td { border-color: var(--line) !important; }
html[data-theme="dark"] .table tbody tr:hover td { background: rgba(255, 255, 255, .025) !important; }
html[data-theme="dark"] .plate { color: #8fb6ff !important; }
html[data-theme="dark"] .muted { color: var(--muted) !important; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #1d2840; }
html[data-theme="dark"] .car-thumb { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
html[data-theme="dark"] .bl-plate:not(.keep-light) { background: linear-gradient(180deg, #f4f6fa 0%, #d9dfe9 100%); }
/* Bouton de thème (barre du haut) */
.theme-btn .ico-sun { display: none; } html[data-theme="dark"] .theme-btn .ico-sun { display: inline; } html[data-theme="dark"] .theme-btn .ico-moon { display: none; }
}
