/* 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%; font-size: 15px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 1rem/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: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 1.07rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
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: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; 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: 38px; height: 38px; 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: 16px 10px 14px; border-bottom: 2px solid transparent; font-weight: 500; }
.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: 36px; height: 36px; 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: 18px; height: 18px; }

.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: 22px 20px 20px; 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: 600; 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; }

.chapeau.compact .chapeau-in { padding: 16px 20px; }
.chapeau.compact .tuile dd small { display: inline; font-size: 0.85rem; }
.chapeau.compact .tuiles { flex: 1 1 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .chapeau.compact .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .chapeau.compact .chapeau-in { padding: 12px 16px; } .chapeau.compact .tuile { padding: 8px 10px; } .chapeau.compact .tuile dt { font-size: 0.75rem; } .chapeau.compact .tuile dd { font-size: 1.1rem; } }
.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: 10px 14px; 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.3rem; font-weight: 600; 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.93rem; font-weight: 500; min-height: 30px; padding: 0 12px; 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: 38px; padding: 0 10px; 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: 38px; 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: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; 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: 32px; padding: 0 10px; font-size: 0.9rem; }
.bouton:disabled { opacity: 0.5; cursor: default; }
.icone { width: 32px; 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: 16px 18px; display: grid; gap: 12px; 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: 10px 18px; 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: 600; 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: 7px 12px 7px 20px; }
.grille .nom { font-weight: 600; font-size: 0.95rem; 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: 7px 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: 4px 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: 40px; height: 24px; border-radius: var(--rayon-case); font-size: 0.75rem; font-weight: 600; }
.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: 7px 0; border-top: 1px solid var(--trait-leger); font-size: 0.95rem; }
.fil li:first-child { border-top: 0; }
.fil .puce { width: 8px; height: 8px; border-radius: var(--rayon-puce, 50%); margin-top: 7px; flex: none; background: var(--trait); }
.fil strong { font-weight: 600; }
.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: 600; }
.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: 600; text-transform: var(--casse); letter-spacing: var(--espace); display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; 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: 600; 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: 600; 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: 600; }
.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 span { flex: 1 1 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.35rem; }
  .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; } }

/* ---------- Pages compactes (historique, alertes) ---------- */
.barre-titre { align-items: center; justify-content: space-between; }
.titre-produit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.titre-produit h1 { font-size: 1.35rem; }
.titre-produit .aide { font-size: 0.9rem; }
main.serre { gap: 14px; padding-top: 16px; }
.chiffres { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 0 auto; }
.chiffres > div { display: flex; flex-direction: column; }
.chiffres dt { font-size: 0.75rem; color: var(--doux); text-transform: uppercase; letter-spacing: 0.05em; }
.chiffres dd { margin: 0; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.defilant.limite { max-height: 340px; overflow-y: auto; }
.defilant.limite thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.dense th, table.dense td { padding: 5px 10px 5px 0; }
table.dense td { font-size: 0.88rem; }
.calendrier { min-width: 420px; gap: 3px; }
.calendrier .rangee > span:first-child { width: 48px; font-size: 0.8rem; font-weight: 600; }
.calendrier .jour { height: 14px; border-radius: 2px; min-width: 3px; }
.calendrier .rangee { gap: 2px; }
.puce-dc { min-height: 28px; font-size: 0.85rem; font-weight: 500; padding: 0 10px; }
.echelle { font-size: 0.8rem; }
.echelle i { width: 14px; height: 10px; }

/* Menu supérieur toujours visible. */
.entete { position: sticky; top: 0; z-index: 20; }
:root[data-theme="neon"] .entete { background: rgb(14 17 32 / 0.96); }

/* ---------- Page « Mes alertes » ---------- */
.bloc.etroit { max-width: 520px; }
.colonnes-compte { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .colonnes-compte { grid-template-columns: minmax(0, 1fr); } }
.form-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.form-ligne .champ { flex: 1 1 140px; min-width: 0; }
.form-ligne .champ.large { flex: 3 1 240px; }
.form-ligne fieldset.champ { flex: 0 0 auto; border: 0; padding: 0; gap: 5px; }
.form-ligne fieldset .cases { min-height: 38px; align-items: center; gap: 4px 14px; }
.form-ligne select { min-height: 38px; padding: 6px 10px; }
.form-ligne > .bouton { flex: none; }
.choix-dcs { flex: 1 1 100%; }
details > summary { cursor: pointer; color: var(--lien); font-size: 0.93rem; width: fit-content; }
details > summary:hover { color: var(--lien-survol); }
details[open] > summary { margin-bottom: 10px; }
.choix-dcs .cases { gap: 4px 16px; font-size: 0.9rem; }
.choix-dcs .cases label { min-height: 28px; }
.alertes li { padding: 8px 0; }
.alertes .cible { font-weight: 600; }
.alertes .detail { font-size: 0.85rem; }
.lien-action { font: inherit; font-size: 0.88rem; border: 0; background: none; color: var(--lien); padding: 4px 6px; cursor: pointer; border-radius: 4px; }
.lien-action:hover { background: var(--bleu-clair); }
.lien-action.danger { color: var(--erreur); }
.lien-action.danger:hover { background: var(--erreur-fond); }
.alertes .ligne { gap: 2px; }
aside .canal { padding: 8px 0; }
aside .canal strong { font-weight: 600; font-size: 0.93rem; }
.aide-ntfy .etapes { font-size: 0.88rem; margin-bottom: 8px; }
.aide-ntfy a { font-size: 0.9rem; }
.champ > span, legend { font-weight: 500; font-size: 0.88rem; color: var(--doux); }
table.dense th, table.dense td { vertical-align: middle; }

/* ---------- Historique : vue d'ensemble et fiche ---------- */
.retour { font-size: 0.88rem; text-decoration: none; flex-basis: 100%; }
.pile.serre { gap: 14px; }
.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fait { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); clip-path: var(--coupe); padding: 10px 14px; display: grid; gap: 1px; min-width: 0; }
.fait-titre { font-size: 0.75rem; color: var(--doux); text-transform: uppercase; letter-spacing: 0.05em; }
.fait-valeur { font-size: 1.1rem; font-weight: 600; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.fait-valeur { color: var(--lien); text-decoration: none; }
a.fait-valeur:hover { text-decoration: underline; }
.fait-detail { font-size: 0.82rem; color: var(--doux); }
.bloc.sans-marge { padding: 0; overflow: hidden; }
.marge { padding: 14px 18px; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.classement { font-size: 0.9rem; }
.classement th, .classement td { padding: 7px 12px; border-bottom: 1px solid var(--trait-leger); vertical-align: middle; }
.classement thead th { background: var(--surface-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; position: sticky; top: 0; }
.classement thead th.nombre .tri { justify-content: flex-end; width: 100%; }
.classement tbody th { font-weight: 400; min-width: 180px; }
.classement .nom { font-weight: 600; text-decoration: none; color: var(--encre); }
.classement .nom:hover { color: var(--lien); text-decoration: underline; }
.classement .specs { display: block; font-size: 0.8rem; color: var(--doux); max-width: 320px; }
.classement tbody tr:hover { background: var(--surface-2); }
.tri { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tri:hover { color: var(--lien); }
th[aria-sort="ascending"] .tri::after { content: "▲"; font-size: 0.65em; }
th[aria-sort="descending"] .tri::after { content: "▼"; font-size: 0.65em; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--encre); }
.jauge { display: inline-flex; align-items: center; gap: 8px; min-width: 130px; }
.jauge-fond { flex: 1; height: 6px; border-radius: 3px; background: var(--rupture); overflow: hidden; min-width: 70px; }
.jauge-fond > span { display: block; height: 100%; background: var(--stock); }
.jauge-texte { font-size: 0.82rem; width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.col-tendance { min-width: 120px; }
.tendance { width: 120px; height: 22px; display: block; }
.tendance .haut { fill: var(--stock); }
.tendance .bas { fill: var(--carte-2); }
.tendance .sans { fill: var(--trait); }
.pastille-etat { display: inline-block; font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; background: var(--rupture); color: var(--rupture-texte); white-space: nowrap; }
.pastille-etat.ok { background: var(--stock-fond); color: var(--stock); font-weight: 600; }
.graphe.heures { max-height: 150px; }
.barre-heure { fill: var(--bleu); }
#zone-heures { display: grid; gap: 6px; }

/* ---------- Mes alertes : création et liste ---------- */
.nouvelle-alerte { display: grid; gap: 12px; }
.nouvelle-alerte select { min-height: 38px; padding: 6px 10px; }
.nouvelle-alerte .puces-dc { gap: 5px; }
.pied-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.pied-form .champ { flex: none; }
.pied-form .aide { flex: 1 1 160px; padding-bottom: 6px; }
.pied-form .bouton { margin-left: auto; }
.bloc > header.marge { padding-bottom: 6px; }
#table-alertes tbody th { min-width: 150px; }
#table-alertes tr.pause .nom, #table-alertes tr.pause td { color: var(--doux); }
.interrupteur { width: 36px; height: 20px; border-radius: 999px; border: 0; background: var(--trait); position: relative; cursor: pointer; padding: 0; flex: none; transition: background 0.15s; }
.interrupteur .curseur { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: transform 0.15s; }
.interrupteur[aria-checked="true"] { background: var(--stock); }
.interrupteur[aria-checked="true"] .curseur { transform: translateX(16px); }
:root[data-theme="neon"] .interrupteur, :root[data-theme="neon"] .interrupteur .curseur { border-radius: 0; }
.puce-dc[aria-pressed="true"] { background: var(--bleu-clair); border-color: var(--bleu); color: var(--bleu); }
.puce-dc[aria-pressed="false"] { background: var(--surface); color: var(--doux); }
@media (max-width: 640px) {
  #table-alertes thead { display: none; }
  #table-alertes, #table-alertes tbody, #table-alertes tr { display: block; }
  #table-alertes tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; border-bottom: 1px solid var(--trait-leger); }
  #table-alertes th, #table-alertes td { display: block; border: 0; padding: 0; }
  #table-alertes tbody th { flex: 1 1 100%; min-width: 0; }
  #table-alertes td.nombre { margin-left: auto; }
}

/* ---------- Favoris, retours en stock, direct ---------- */
.ligne-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.ligne-nom .nom { white-space: nowrap; }
.favori { border: 0; background: none; padding: 2px; margin-left: -4px; color: var(--trait); cursor: pointer; display: inline-flex; border-radius: 4px; }
.favori:hover { color: var(--delai); }
.favori.actif { color: var(--delai); }
.reassort-recent { font-size: 0.72rem; color: var(--stock); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fil li.recent time { color: var(--bleu); font-weight: 600; }
.en-direct { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgb(34 197 94 / 0.6); animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0.55); } 70% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
@media (prefers-reduced-motion: reduce) { .en-direct { animation: none; } }

/* ---------- Style moderne (thème clair) : bandeau dégradé OVHcloud, cartes à ombre douce,
   sélecteurs segmentés, cases de stock en pastilles. Le thème néon garde son propre style. ---------- */
:root:not([data-theme="neon"]) {
  --rayon: 12px; --rayon-bouton: 8px; --rayon-case: 999px;
  --ombre: 0 1px 2px rgb(16 24 64 / 0.04), 0 2px 8px rgb(16 24 64 / 0.06);
  --ombre-haute: 0 4px 16px rgb(16 24 64 / 0.10);
  --trait: #e3e8f0; --trait-leger: #eff2f7; --fond: #f5f7fb;
  --stock: #0f8a43; --stock-fond: #e2f5ea; --delai-fond: #fff0d9; --delai-texte: #8a4b00;
}
:root:not([data-theme="neon"]) .entete { background: rgb(255 255 255 / 0.88); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom-color: var(--trait); }
:root:not([data-theme="neon"]) .entete nav a { border-radius: 8px 8px 0 0; }
:root:not([data-theme="neon"]) .chapeau { background: linear-gradient(115deg, #00185e 0%, #000e9c 48%, #0050d7 100%); border-bottom: 0; color: #fff; }
:root:not([data-theme="neon"]) .chapeau h1 { color: #fff; }
:root:not([data-theme="neon"]) .chapeau .aide, :root:not([data-theme="neon"]) .chapeau .etat, :root:not([data-theme="neon"]) .chapeau .retour { color: #c9d8ff; }
:root:not([data-theme="neon"]) .chapeau .etat.panne { color: #fff; background: rgb(196 17 26 / 0.85); padding: 4px 10px; border-radius: 6px; }
:root:not([data-theme="neon"]) .chapeau .tuile { background: rgb(255 255 255 / 0.10); border: 1px solid rgb(255 255 255 / 0.16); box-shadow: none; }
:root:not([data-theme="neon"]) .chapeau .tuile dt { color: #c9d8ff; }
:root:not([data-theme="neon"]) .chapeau .tuile dd { color: #fff; }
:root:not([data-theme="neon"]) .chapeau .tuile dd small { color: #c9d8ff; }
:root:not([data-theme="neon"]) .chapeau .tuile dd .ok { color: #7cf0a8; }
:root:not([data-theme="neon"]) .chapeau .champ-boite { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.22); color: #fff; }
:root:not([data-theme="neon"]) .chapeau .champ-boite > span { color: #c9d8ff; }
:root:not([data-theme="neon"]) .chapeau .champ-boite select { color: #fff; }
:root:not([data-theme="neon"]) .chapeau .champ-boite select option { color: var(--encre); }
:root:not([data-theme="neon"]) .bloc, :root:not([data-theme="neon"]) .gamme, :root:not([data-theme="neon"]) .fait, :root:not([data-theme="neon"]) .tuile { border-color: var(--trait); box-shadow: var(--ombre); }
:root:not([data-theme="neon"]) .gamme > header { background: var(--surface); }
:root:not([data-theme="neon"]) .grille thead th, :root:not([data-theme="neon"]) .classement thead th { background: #f8fafd; }
/* Sélecteurs segmentés : piste grise, choix en pastille blanche. */
:root:not([data-theme="neon"]) .segments { background: #eceff5; border-color: transparent; padding: 3px; }
:root:not([data-theme="neon"]) .pastille[aria-pressed="true"] { background: var(--surface); color: var(--bleu); box-shadow: 0 1px 3px rgb(16 24 64 / 0.15); }
:root:not([data-theme="neon"]) .pastille:hover { background: rgb(255 255 255 / 0.6); }
:root:not([data-theme="neon"]) .champ-boite, :root:not([data-theme="neon"]) .recherche input { box-shadow: var(--ombre); border-color: var(--trait); }
:root:not([data-theme="neon"]) input:focus, :root:not([data-theme="neon"]) select:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgb(0 80 215 / 0.15); }
:root:not([data-theme="neon"]) .bouton { box-shadow: 0 1px 2px rgb(0 80 215 / 0.25); }
:root:not([data-theme="neon"]) .bouton.discret, :root:not([data-theme="neon"]) .bouton.danger { box-shadow: none; }
/* Cases de stock : pastilles teintées, lisibles d'un coup d'œil. */
:root:not([data-theme="neon"]) .dispo { width: 44px; height: 22px; font-size: 0.72rem; }
:root:not([data-theme="neon"]) .dispo.ok { background: var(--stock-fond); color: var(--stock); box-shadow: inset 0 0 0 1px rgb(15 138 67 / 0.25); }
:root:not([data-theme="neon"]) .dispo.delai { background: var(--delai-fond); color: var(--delai-texte); box-shadow: inset 0 0 0 1px rgb(242 145 0 / 0.35); }
:root:not([data-theme="neon"]) .dispo.non { background: transparent; color: #b4bccc; }
:root:not([data-theme="neon"]) .dispo.na { border: 0; }
:root:not([data-theme="neon"]) .dispo.na::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--trait); }
:root:not([data-theme="neon"]) .legende .l-ok { background: var(--stock-fond); box-shadow: inset 0 0 0 1px rgb(15 138 67 / 0.4); }
:root:not([data-theme="neon"]) .legende .l-delai { background: var(--delai-fond); box-shadow: inset 0 0 0 1px rgb(242 145 0 / 0.5); }
:root:not([data-theme="neon"]) .legende i { border-radius: 999px; width: 14px; height: 10px; }
:root:not([data-theme="neon"]) .encart { background: linear-gradient(135deg, #000e9c, #0050d7); border: 0; }
:root:not([data-theme="neon"]) .grille tbody tr:hover, :root:not([data-theme="neon"]) .classement tbody tr:hover { background: #f6f9ff; }
:root:not([data-theme="neon"]) .grille tbody tr:hover th { background: #f6f9ff; }
.classement .specs .code { font-family: var(--mono); font-size: 0.72rem; opacity: 0.75; }

/* Stats : carte jour × heure */
.carte-chaleur { display: grid; grid-template-columns: 34px repeat(24, minmax(14px, 1fr)); gap: 2px; min-width: 460px; font-size: 0.72rem; color: var(--doux); }
.carte-chaleur .cc { aspect-ratio: 1.4; border-radius: 2px; background: color-mix(in srgb, var(--bleu) var(--i, 0%), var(--trait-leger)); }
.carte-chaleur .cc.zero { background: var(--trait-leger); opacity: 0.6; }
.cc-heure { text-align: left; white-space: nowrap; overflow: visible; }
.cc-jour { align-self: center; }
/* Lien « Soutenir » du menu */
.lien-don { font-size: 0.85rem; font-weight: 500; color: var(--lien); text-decoration: none; white-space: nowrap; }
.lien-don:hover { text-decoration: underline; }
.graphe.jours .barre-heure { fill: var(--bleu); }
.graphe.jours text { font-size: 11px; }

/* ---------- Administration ---------- */
.onglets-admin { align-self: start; justify-self: start; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.onglets-admin .pastille { white-space: nowrap; }
.admin .fait.souci .fait-valeur { color: var(--erreur); }
.admin .bloc > header .aide { flex: 1 1 auto; }
.admin .classement th, .admin .classement td { font-size: 0.86rem; }
.admin .classement tbody th { min-width: 0; font-weight: 400; }
.admin .classement td time, .admin .classement .mono { font-family: var(--mono); font-size: 0.78rem; white-space: nowrap; color: var(--encre); }
.admin .classement td.coupe { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin .classement td.vide { color: var(--doux); text-align: center; padding: 18px 12px; }
.admin .doux { color: var(--doux); }
.admin td.ko, .admin .nombre.ko { color: var(--erreur); }
.admin .message-journal { font-family: var(--mono); font-size: 0.78rem; white-space: pre-wrap; word-break: break-word; min-width: 280px; }
.admin .recherche { flex: 1 1 220px; max-width: 360px; }
.admin .recherche input { font: inherit; font-size: 0.92rem; padding: 0 12px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); }
.admin .champ-boite > span { color: var(--doux); font-size: 0.85rem; }
.admin .champ-boite select { font: inherit; font-size: 0.92rem; border: 0; background: transparent; color: var(--encre); }
.pastille-etat.ko { background: var(--erreur-fond); color: var(--erreur); }
.pastille-etat.att { background: var(--delai-fond); color: var(--delai-texte); }
.pastille-etat.neutre { background: var(--rupture); color: var(--rupture-texte); }
.pastille-etat.ok { font-weight: 500; }
/* Graphiques d'activité */
.legende-graphe { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.82rem; color: var(--doux); }
.legende-graphe span, .ligne-bulle { display: inline-flex; align-items: center; gap: 6px; }
.legende-graphe i, .ligne-bulle i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.c-ok { background: var(--bleu); } .c-ko { background: var(--erreur); } .c-att { background: var(--delai); }
.admin-barres rect.ok { fill: var(--bleu); } .admin-barres rect.ko { fill: var(--erreur); } .admin-barres rect.att { fill: var(--delai); }
.admin-barres rect.survol { fill: var(--trait-leger); }
.admin-barres text { font-size: 11px; }
.admin .infobulle { display: grid; gap: 2px; min-width: 170px; }
.admin .infobulle strong { font-weight: 500; }
/* Comptes : ligne cliquable et fiche */
.classement.cliquable tbody tr { cursor: pointer; }
.classement.cliquable tbody tr.choisie { background: var(--bleu-clair); }
.classement tbody th a, .classement td a { text-decoration: none; }
.classement tbody th a:hover, .classement td a:hover { text-decoration: underline; }
.fiche { gap: 14px; }
.fiche-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.fiche-tete h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fiche-actions .fermer { font: inherit; font-size: 1.3rem; line-height: 1; width: 32px; height: 32px; border: 0; background: transparent; color: var(--doux); cursor: pointer; border-radius: 6px; }
.fiche-actions .fermer:hover { background: var(--surface-2); color: var(--encre); }
.bouton.danger-doux { color: var(--erreur); }
.bouton.danger-doux[data-pret="oui"] { background: var(--erreur); border-color: var(--erreur); color: #fff; }
.fiche-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px 20px; }
.sous-bloc { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sous-bloc h3 { font-size: 0.92rem; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.sous-bloc h3 .aide { font-size: 0.8rem; font-weight: 400; }
.sous-bloc .classement th, .sous-bloc .classement td { padding: 6px 10px 6px 0; }
.sous-bloc .classement thead th { background: transparent; }
.reglages th { width: 40%; color: var(--doux); font-weight: 400; }
.reglages td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .admin .classement td.coupe { max-width: 160px; }
  .admin .recherche { max-width: none; }
}
.admin a.fait-valeur { color: var(--encre); }
.admin a.fait-valeur:hover { color: var(--lien); text-decoration: none; }
.admin .fait.souci a.fait-valeur { color: var(--erreur); }
:root[data-theme="neon"] .c-att, :root[data-theme="neon"] .admin-barres rect.att { background: var(--accent); fill: var(--accent); }
:root[data-theme="neon"] .pastille-etat.att { color: var(--delai); }
