/* Interface sobre aux couleurs de l'univers OVHcloud : fond gris bleuté, bleu profond pour les titres,
   bleu vif pour les actions, vert pour le stock. Site indépendant, sans élément de marque OVHcloud. */
/* Polices du thème Néon embarquées (SIL Open Font License, voir /polices/LICENCE-OFL.txt).
   Le thème clair utilise les polices du système. */
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap; src: url("/polices/rajdhani-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("/polices/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("/polices/rajdhani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("/polices/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/polices/chakra-petch-latin-700-normal.woff2") format("woff2"); }

/* Rackster : deux thèmes. « clair » (marine, orange, crème) et « neon » (noir, jaune, cyan, magenta).
   Le thème suit le système (sombre = néon) tant que le visiteur n'en a pas choisi un (js/theme.js). */
:root {
  --marine: #00185e; --bleu: #0050d7; --bleu-survol: #000e9c; --bleu-clair: #e8f0fd; --accent: #0050d7; --accent-texte: #0050d7;
  --fond: #f4f6f9; --surface: #ffffff; --surface-2: #f4f6f9; --encre: #1b2540; --doux: #4f5b78;
  --trait: #dce1ea; --trait-leger: #eceff4;
  --stock: #137a3a; --stock-texte: #ffffff; --stock-fond: #e4f4ea;
  --delai: #f29100; --delai-texte: #2b1700; --delai-fond: #fff1d9;
  --rupture: #eceff4; --rupture-texte: #5d6680;
  --erreur: #c4111a; --erreur-fond: #fde6e7;
  --carte-0: #eceff4; --carte-1: #c3d6f8; --carte-2: #7ea8f0; --carte-3: #2f6fdc; --carte-4: #000e9c;
  --serie-1: #0050d7; --serie-2: #e07b00; --serie-3: #137a3a; --serie-4: #8a3fd1; --serie-5: #c2185b; --serie-6: #00838f;
  --encart: #000e9c; --encart-titre: #ffffff; --encart-texte: #d9e3ff; --encart-bouton: #ffffff; --encart-bouton-texte: #000e9c;
  --bouton-texte: #ffffff; --lien: #0050d7; --lien-survol: #000e9c;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: var(--police);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --casse: none; --espace: 0; --espace-titre: -0.01em; --lueur-titre: none; --lueur-ok: none;
  --rayon: 8px; --rayon-bouton: 6px; --rayon-case: 4px;
  --coupe: none; --coupe-grande: none;
  color-scheme: light;
}
:root[data-theme="neon"] {
  --marine: #fcee0a; --bleu: #fcee0a; --bleu-survol: #fff86b; --bleu-clair: #1d1f10; --accent: #00f0ff; --accent-texte: #ff2e88;
  --fond: #07080f; --surface: #0e1120; --surface-2: #0a0c16; --encre: #e8ecff; --doux: #8c95bd;
  --trait: #26304d; --trait-leger: #1a2038;
  --stock: #00f0ff; --stock-texte: #041018; --stock-fond: #06262c;
  --delai: #fcee0a; --delai-texte: #141000; --delai-fond: #2a2706;
  --rupture: #151a2e; --rupture-texte: #6f789e;
  --erreur: #ff5c8a; --erreur-fond: #2c0716;
  --carte-0: #151a2e; --carte-1: #0b4250; --carte-2: #007d8c; --carte-3: #00b8c8; --carte-4: #00f0ff;
  --serie-1: #00f0ff; --serie-2: #fcee0a; --serie-3: #ff2e88; --serie-4: #9d7bff; --serie-5: #7cff6b; --serie-6: #ff9d2e;
  --encart: #12051a; --encart-titre: #ff2e88; --encart-texte: #d9c2e6; --encart-bouton: #ff2e88; --encart-bouton-texte: #12051a;
  --bouton-texte: #07080f; --lien: #00f0ff; --lien-survol: #fcee0a;
  --police: "Rajdhani", "Source Sans 3", system-ui, sans-serif;
  --police-titre: "Chakra Petch", "Rajdhani", system-ui, sans-serif;
  --casse: uppercase; --espace: 0.06em; --espace-titre: 0.04em; --lueur-titre: 0 0 18px rgb(252 238 10 / 0.35); --lueur-ok: 0 0 10px rgb(0 240 255 / 0.55);
  --rayon: 0; --rayon-bouton: 0; --rayon-case: 0;
  --coupe: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  --coupe-grande: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.5 var(--police); overflow-x: hidden; }
a { color: var(--lien); text-underline-offset: 3px; }
a:hover { color: var(--lien-survol); }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--marine); font-family: var(--police-titre); text-transform: var(--casse); letter-spacing: var(--espace-titre); }
h1 { text-shadow: var(--lueur-titre); }
h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- En-tête ---------- */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); }
.entete-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; font-family: var(--police-titre); letter-spacing: var(--espace-titre); text-decoration: none; color: var(--marine); padding: 12px 0; }
.marque:hover { color: var(--marine); }
.marque img { flex: none; width: 46px; height: 46px; object-fit: contain; }
.marque .tld { color: var(--accent); }
.logo-neon { display: none; }
:root[data-theme="neon"] .logo-clair { display: none; }
:root[data-theme="neon"] .logo-neon { display: block; }
.entete nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.entete nav a { color: var(--doux); text-decoration: none; font-weight: 600; text-transform: var(--casse); letter-spacing: var(--espace); padding: 19px 10px 17px; border-bottom: 3px solid transparent; }
.entete nav a:hover { color: var(--marine); }
.entete nav a[aria-current] { color: var(--marine); border-bottom-color: var(--accent); }
.entete .outils { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.bascule-theme { font: inherit; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); border-radius: var(--rayon-bouton); clip-path: var(--coupe); cursor: pointer; }
.bascule-theme:hover { border-color: var(--accent); }
.bascule-theme svg { width: 20px; height: 20px; }

.page { max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; }

/* ---------- Bandeau de page ---------- */
.chapeau { background: var(--surface); border-bottom: 1px solid var(--trait); }
.chapeau-in { max-width: 1240px; margin: 0 auto; padding: 30px 20px 26px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; }
.chapeau-texte { flex: 1 1 480px; min-width: 0; display: grid; gap: 8px; }
.surtitre { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-texte); }
.chapeau-texte > p:not(.surtitre) { color: var(--doux); font-size: 1.05rem; max-width: 64ch; }
.etat { font-size: 0.9rem; color: var(--doux); }
.etat.panne { color: var(--erreur); font-weight: 600; }

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; flex: 1 1 420px; }
.tuile { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); clip-path: var(--coupe); padding: 12px 16px; margin: 0; }
.tuile dt { font-size: 0.85rem; color: var(--doux); text-transform: var(--casse); letter-spacing: var(--espace); }
.tuile dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 700; color: var(--encre); line-height: 1.2; font-family: var(--police-titre); }
.tuile dd small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--doux); line-height: 1.35; }
.tuile dd .ok { color: var(--stock); }
.tuile.souci dd { color: var(--erreur); }

/* ---------- Mise en page à deux colonnes ---------- */
.colonnes { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 24px; }
.colonnes > main { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.colonne-gammes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.colonnes > aside { flex: 1 1 290px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
main.seul { padding-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* ---------- Contrôles ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.segments { display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-bouton); clip-path: var(--coupe); padding: 4px; }
.pastille { font: inherit; font-size: 0.95rem; font-weight: 700; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--rayon-bouton); background: transparent; color: var(--doux); cursor: pointer; text-transform: var(--casse); letter-spacing: var(--espace); }
.pastille:hover { color: var(--marine); background: var(--bleu-clair); }
.pastille[aria-pressed="true"] { background: var(--bleu); color: var(--bouton-texte); }
.champ-boite { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-bouton); clip-path: var(--coupe); font-size: 0.95rem; }
.champ-boite > span { color: var(--doux); }
.champ-boite select, .champ-boite input[type="date"] { border: 0; padding: 4px 0; background: transparent; width: auto; }
.recherche { flex: 1 1 200px; display: flex; }
.recherche input { flex: 1; min-height: 46px; border-radius: var(--rayon-bouton); clip-path: var(--coupe); }
input[type="checkbox"] { accent-color: var(--bleu); width: 18px; height: 18px; margin: 0; }

.bouton { font: inherit; font-size: 0.95rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--rayon-bouton); clip-path: var(--coupe); border: 1px solid var(--bleu); background: var(--bleu); color: var(--bouton-texte); text-decoration: none; cursor: pointer; white-space: nowrap; text-transform: var(--casse); letter-spacing: var(--espace); }
.bouton:hover { background: var(--bleu-survol); border-color: var(--bleu-survol); color: var(--bouton-texte); }
.bouton.discret { background: var(--surface); color: var(--bleu); border-color: var(--trait); }
.bouton.discret:hover { background: var(--bleu-clair); color: var(--bleu-survol); }
.bouton.danger { background: var(--surface); color: var(--erreur); border-color: var(--erreur); }
.bouton.danger:hover { background: var(--erreur-fond); }
.bouton.petit { min-height: 36px; padding: 0 12px; font-size: 0.9rem; }
.bouton:disabled { opacity: 0.5; cursor: default; }
.icone { width: 44px; padding: 0; }

input[type="email"], input[type="text"], input[type="password"], input[type="search"], input[type="date"], select {
  font: inherit; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--trait); background: var(--surface); color: inherit; width: 100%;
}
input:hover, select:hover { border-color: var(--bleu); }

/* ---------- Cartes et blocs ---------- */
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); clip-path: var(--coupe-grande); padding: 20px; display: grid; gap: 14px; align-content: start; }
.bloc > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.bloc > header .aide { font-size: 0.92rem; }
.bloc > header a { margin-left: auto; font-size: 0.92rem; font-weight: 600; }
.aide, .bloc > p { color: var(--doux); font-size: 0.95rem; }
.encart { background: var(--encart); border-color: var(--encart-titre); color: var(--encart-texte); }
:root:not([data-theme="neon"]) .encart { border-color: var(--encart); }
.encart h2 { color: var(--encart-titre); }
.encart p { color: var(--encart-texte); }
.encart .bouton { background: var(--encart-bouton); color: var(--encart-bouton-texte); border-color: var(--encart-bouton); justify-self: start; }

/* ---------- Grille des stocks (modèle × datacenter) ---------- */
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--doux); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legende .l-ok { background: var(--stock); }
.legende .l-delai { background: var(--delai); }
.legende .l-non { background: var(--rupture); border: 1px solid var(--trait); }
.legende .l-na { border: 1px dashed var(--trait); }

.gamme { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); clip-path: var(--coupe-grande); overflow: hidden; }
.gamme > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 20px; border-bottom: 1px solid var(--trait); }
.gamme > header span { font-size: 0.92rem; color: var(--doux); }
.gamme.repliee > header { border-bottom: 0; }
.replier { font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 0; margin: -4px 0; border: 0; background: none; color: var(--marine); cursor: pointer; text-align: left; }
.replier:hover { color: var(--bleu); }
.replier svg { width: 18px; height: 18px; flex: none; transition: transform 0.15s; }
.replier[aria-expanded="false"] svg { transform: rotate(-90deg); }
.gamme > header .replier span { color: inherit; font-size: inherit; }
.tout-replier { margin-left: auto; }
.gamme > header a { margin-left: auto; font-size: 0.92rem; font-weight: 600; }
.defilant { overflow-x: auto; position: relative; }
.grille { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.grille th, .grille td { border: 0; padding: 0; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.grille thead th { background: var(--surface-2); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--doux); padding: 9px 4px; text-align: center; white-space: nowrap; }
.grille thead th.col-modele { text-align: left; padding-left: 20px; min-width: 210px; }
.grille thead th.col-prix { text-align: right; padding-right: 12px; }
.grille tbody tr { border-top: 1px solid var(--trait-leger); }
.grille tbody tr:hover { background: var(--surface-2); }
.grille tbody th { text-align: left; font-weight: 400; padding: 10px 12px 10px 20px; }
.grille .nom { font-weight: 700; color: var(--encre); text-decoration: none; }
.grille .nom:hover { color: var(--accent-texte); text-decoration: underline; }
.grille .specs { display: block; font-size: 0.85rem; color: var(--doux); }
.grille td.prix { text-align: right; padding: 10px 12px; font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.grille td.prix small { display: block; font-family: inherit; font-size: 0.72rem; color: var(--doux); }
.grille td.case { text-align: center; padding: 5px 3px; }
.grille td.actions { text-align: right; padding: 5px 16px 5px 6px; white-space: nowrap; }
.dispo { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 30px; border-radius: var(--rayon-case); font-size: 0.75rem; font-weight: 700; }
.dispo.ok { background: var(--stock); color: var(--stock-texte); box-shadow: var(--lueur-ok); }
.dispo.delai { background: var(--delai); color: var(--delai-texte); }
.dispo.non { background: var(--rupture); color: var(--rupture-texte); font-weight: 400; }
.dispo.na { border: 1px dashed var(--trait); }
.vide { padding: 20px; color: var(--doux); }

/* ---------- Fil des mouvements ---------- */
.fil { list-style: none; margin: 0; padding: 0; }
.fil li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--trait-leger); font-size: 0.95rem; }
.fil li:first-child { border-top: 0; }
.fil .puce { width: 10px; height: 10px; border-radius: var(--rayon-puce, 50%); margin-top: 7px; flex: none; background: var(--trait); }
.fil .puce.plus { background: var(--stock); box-shadow: var(--lueur-ok); }
:root[data-theme="neon"] .fil .puce { --rayon-puce: 0; }
.fil .texte-fil { flex: 1; min-width: 0; }
.fil .lieu { color: var(--doux); }
.fil time { font-size: 0.82rem; color: var(--doux); white-space: nowrap; }
.plus { color: var(--stock); font-weight: 700; }
.moins { color: var(--doux); }

/* ---------- Historique : graphique et calendrier ---------- */
.puces-dc { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-dc { font: inherit; font-size: 0.9rem; font-weight: 700; text-transform: var(--casse); letter-spacing: var(--espace); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); cursor: pointer; }
.puce-dc[aria-pressed="false"] { background: var(--fond); color: var(--rupture-texte); }
.puce-dc .rond { width: 10px; height: 10px; border-radius: 50%; }
.graphe { width: 100%; height: auto; display: block; overflow: visible; }
.graphe .axe { stroke: var(--trait-leger); stroke-width: 1; }
.graphe text { fill: var(--doux); font-size: 12px; font-family: inherit; }
.graphe .courbe { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.graphe .barre { opacity: 0.9; }
.graphe .repere { stroke: var(--doux); stroke-width: 1; stroke-dasharray: 3 3; }
.infobulle { position: absolute; pointer-events: none; background: var(--encre); color: var(--fond); border-radius: 8px; padding: 8px 10px; font-size: 0.85rem; line-height: 1.4; min-width: 150px; z-index: 5; }
.zone-graphe { position: relative; }
.calendrier { display: grid; gap: 4px; min-width: 640px; }
.calendrier .rangee { display: flex; align-items: center; gap: 3px; }
.calendrier .rangee > span:first-child { width: 110px; flex: none; font-size: 0.9rem; color: var(--doux); }
.calendrier .jour { flex: 1 1 0; min-width: 5px; height: 24px; border-radius: 3px; background: var(--carte-0); }
.calendrier .jour.n1 { background: var(--carte-1); }
.calendrier .jour.n2 { background: var(--carte-2); }
.calendrier .jour.n3 { background: var(--carte-3); }
.calendrier .jour.n4 { background: var(--carte-4); }
.calendrier .jour.inconnu { background: transparent; border: 1px dashed var(--trait); }
.echelle { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--doux); }
.echelle i { width: 18px; height: 14px; border-radius: 3px; display: inline-block; }
.echelle .c0 { background: var(--carte-0); } .echelle .c1 { background: var(--carte-1); } .echelle .c2 { background: var(--carte-2); }
.echelle .c3 { background: var(--carte-3); } .echelle .c4 { background: var(--carte-4); }

/* ---------- Formulaires, compte, alertes ---------- */
.formulaire { display: grid; gap: 14px; max-width: 620px; }
.champ { display: grid; gap: 5px; }
.champ > span, legend { font-weight: 600; font-size: 0.95rem; }
fieldset { border: 1px solid var(--trait); border-radius: 10px; padding: 12px 16px 14px; margin: 0; display: grid; gap: 10px; }
.cases { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.95rem; }
.cases label { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.ligne { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.message { padding: 12px 16px; border-radius: 10px; background: var(--stock-fond); color: var(--stock); border: 1px solid var(--stock); font-weight: 600; }
.message.erreur { background: var(--erreur-fond); color: var(--erreur); border-color: var(--erreur); }
.canal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--trait-leger); }
.canal:first-of-type { border-top: 0; }
.canal > div { flex: 1 1 240px; min-width: 0; }
.canal strong { display: block; }
.canal .detail { font-size: 0.92rem; color: var(--doux); word-break: break-all; }
.etiquette { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--stock-fond); color: var(--stock); white-space: nowrap; }
.etiquette.off { background: var(--rupture); color: var(--rupture-texte); }
.etapes { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; color: var(--doux); font-size: 0.95rem; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--trait-leger); border-radius: 5px; padding: 1px 5px; word-break: break-all; }

.alertes { list-style: none; padding: 0; margin: 0; display: grid; }
.alertes li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--trait-leger); }
.alertes li:first-child { border-top: 0; }
.alertes li > div { flex: 1 1 260px; min-width: 0; }
.alertes .cible { font-weight: 700; display: block; }
.alertes .detail { font-size: 0.9rem; color: var(--doux); display: block; }
.alertes li.pause .cible { color: var(--doux); }

/* ---------- Tableaux (historique, administration) ---------- */
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--trait-leger); vertical-align: top; }
th { font-size: 0.8rem; font-weight: 600; color: var(--doux); }
td.mono, td time { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
td.texte { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 0.8rem; }
.code { font-family: var(--mono); font-size: 0.78rem; color: var(--doux); }
.niveau-erreur { color: var(--erreur); font-weight: 700; }
.niveau-avert { color: var(--delai-texte); background: var(--delai-fond); font-weight: 600; }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--trait); background: var(--surface); margin-top: 40px; }
.pied-in { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--doux); }
.pied-in a { margin-left: auto; }
.prose { max-width: 70ch; display: grid; gap: 14px; padding-top: 32px; }
.prose h2 { margin-top: 12px; }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .entete-in { gap: 0 12px; }
  .entete nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .entete nav a { padding: 10px 8px 9px; white-space: nowrap; }
  .entete .outils { margin-left: auto; padding: 8px 0; }
  .marque span { font-size: 1.15rem; }
  .chapeau-in { padding-top: 22px; }
  .grille thead th.col-modele { min-width: 160px; }
}
.pile { display: grid; gap: 20px; }

/* ---------- Mascotte et décor ---------- */
.mascotte { flex: none; object-fit: contain; align-self: center; }
:root[data-theme="neon"] .mascotte.logo-neon { display: block; width: 190px; height: 190px; margin-bottom: -26px; filter: drop-shadow(0 0 24px rgb(0 240 255 / 0.25)); }
:root[data-theme="neon"] .chapeau {
  background: linear-gradient(90deg, rgb(7 8 15 / 0.96) 0%, rgb(7 8 15 / 0.82) 45%, rgb(7 8 15 / 0.55) 100%), url("/ville-neon.webp") center 70% / cover no-repeat;
  border-bottom: 1px solid #fcee0a;
}
:root[data-theme="neon"] .chapeau .tuile { background: rgb(14 17 32 / 0.85); }
:root[data-theme="neon"] .entete { border-bottom-color: #2a2410; }
:root[data-theme="neon"] .surtitre::before { content: "// "; }
@media (max-width: 640px) { .mascotte { display: none !important; } }

/* Colonne « Modèle » figée pendant le défilement horizontal de la grille. */
.grille thead th.col-modele, .grille tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.grille thead th.col-modele { background: var(--surface-2); }
.grille tbody tr:hover th { background: var(--surface-2); }
@media (max-width: 640px) { .grille tbody th, .grille thead th.col-modele { box-shadow: 1px 0 0 var(--trait); } .grille .specs { max-width: 180px; } }
