/* Page de statut de L'Assemblée des Défias : thème sombre, or et parchemin.
   Palette reprise du site (app/globals.css) et de WoWDB (public/wowdb.css).
   Polices du système uniquement ; aucun style en ligne (CSP stricte). */

:root {
  color-scheme: dark;
  --fond: #0e0d0b;
  --fond-haut: #1b1813;
  --carte: #161410;
  --carte-2: #1c1914;
  --carte-bord: #312b22;
  --carte-bord-fort: #4d4334;
  --or: #e3c48c;
  --or-vif: #f0d27a;
  --or-sombre: #b0925c;
  --parchemin: #f0dfbc;
  --texte: #e6dfcf;
  --terne: #b8af9c;
  --terne-2: #9d9481;
  --ok: #4fa761;
  --ok-texte: #9fe0a9;
  --mineur: #cfa935;
  --mineur-texte: #f2d77a;
  --partiel: #dc7d34;
  --partiel-texte: #f8bb8c;
  --majeur: #de4f47;
  --majeur-texte: #ffa49a;
  --maint: #4f8fd6;
  --maint-texte: #a9cbff;
  --vide: #4a4338;
  --rayon: 12px;
  --serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --ombre: inset 0 1px 0 rgba(255, 236, 190, .05), 0 12px 32px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(227, 196, 140, .11), transparent 70%),
    linear-gradient(180deg, var(--fond-haut), var(--fond) 520px);
  background-color: var(--fond);
  color: var(--texte);
  font: 15px/1.55 var(--sans);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--or); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--or-vif); }
:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 2px; border-radius: 3px; }
code { font: .85em/1.4 var(--mono); }
h1, h2, h3, h4 { margin: 0; font-weight: normal; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--or); color: #1a140a; font-weight: 600; border-radius: 6px; text-decoration: none;
}
.evitement:focus { top: 12px; }
.sans-js .js-seul { display: none !important; }

.page { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }

/* --- Bandeau des données d'exemple ------------------------------------------------- */
.bandeau-exemple {
  padding: 10px 16px; text-align: center; font-size: .875rem; color: #1d1608;
  background: repeating-linear-gradient(135deg, #e9c46a 0 14px, #dcb55a 14px 28px);
  border-bottom: 2px solid #8a6a22;
}
.bandeau-exemple strong { text-transform: uppercase; letter-spacing: .08em; margin-right: .4em; }

/* --- En-tête ------------------------------------------------------------------------ */
.entete {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 18px 0 14px;
}
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.marque-logo {
  flex: none; width: 44px; height: 44px; border-radius: 7px; border: 1px solid #8b7958;
  box-shadow: 0 0 0 2px #000, 0 0 14px rgba(227, 196, 140, .2);
}
.marque-texte { display: flex; flex-direction: column; min-width: 0; }
.marque-nom {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--or-sombre);
}
.marque-titre { font: 1.4rem/1.15 var(--serif); color: var(--or); text-shadow: 0 1px 0 #000; }
.marque:hover .marque-titre { color: var(--or-vif); }
.entete-liens { display: flex; flex-wrap: wrap; gap: 4px; }
.entete-liens a {
  color: var(--terne); text-decoration: none; padding: 6px 10px; border-radius: 7px;
  font-size: .875rem; border: 1px solid transparent;
}
.entete-liens a:hover { color: var(--or-vif); background: rgba(227, 196, 140, .07); }
.entete-liens .entete-flux { border-color: var(--carte-bord-fort); color: var(--or); }

.banniere-historique {
  border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--carte-bord-fort);
  box-shadow: 0 0 0 1px #000, 0 14px 40px rgba(0, 0, 0, .45); background: #000; line-height: 0;
}
.banniere-historique img { display: block; width: 100%; height: auto; }

/* --- Formes d'état (jamais la couleur seule : forme + texte) ----------------------- */
.forme {
  display: inline-block; flex: none; width: .72em; height: .72em; margin-right: .45em;
  vertical-align: -.02em; background: currentColor;
}
.forme-operationnel { border-radius: 50%; color: var(--ok); }
.forme-degrade { transform: rotate(45deg) scale(.86); border-radius: 1px; color: var(--mineur); }
.forme-partielle {
  border-radius: 50%; color: var(--partiel); background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  box-shadow: inset 0 0 0 2px currentColor;
}
.forme-panne { border-radius: 2px; color: var(--majeur); }
.forme-maintenance { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2.5px var(--maint); color: var(--maint); }
.forme-bientot { border-radius: 50%; background: transparent; border: 2px dashed var(--terne-2); }
.forme-inconnu { border-radius: 50%; background: transparent; border: 2px dotted var(--terne-2); }
.forme-info { transform: rotate(45deg) scale(.86); background: transparent; box-shadow: inset 0 0 0 2px var(--or); }

.etat {
  display: inline-flex; align-items: center; white-space: nowrap; font-size: .8125rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; border: 1px solid; line-height: 1.3;
}
.etat-operationnel { color: var(--ok-texte); border-color: rgba(79, 167, 97, .45); background: rgba(79, 167, 97, .1); }
.etat-degrade { color: var(--mineur-texte); border-color: rgba(207, 169, 53, .5); background: rgba(207, 169, 53, .1); }
.etat-partielle { color: var(--partiel-texte); border-color: rgba(220, 125, 52, .5); background: rgba(220, 125, 52, .1); }
.etat-panne { color: var(--majeur-texte); border-color: rgba(222, 79, 71, .55); background: rgba(222, 79, 71, .12); }
.etat-maintenance { color: var(--maint-texte); border-color: rgba(79, 143, 214, .5); background: rgba(79, 143, 214, .1); }
.etat-bientot, .etat-inconnu { color: var(--terne); border-color: var(--carte-bord-fort); border-style: dashed; background: transparent; }

/* --- Bannière d'état global --------------------------------------------------------- */
.global {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start;
  margin: 22px 0 18px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--carte-bord-fort);
  background: var(--carte); box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.global::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--terne-2); }
.global-operationnel { border-color: rgba(79, 167, 97, .5); background: linear-gradient(135deg, rgba(79, 167, 97, .15), rgba(79, 167, 97, .03) 60%), var(--carte); }
.global-operationnel::before { background: var(--ok); }
.global-perturbation { border-color: rgba(207, 169, 53, .55); background: linear-gradient(135deg, rgba(207, 169, 53, .16), rgba(207, 169, 53, .03) 60%), var(--carte); }
.global-perturbation::before { background: var(--mineur); }
.global-panne { border-color: rgba(222, 79, 71, .6); background: linear-gradient(135deg, rgba(222, 79, 71, .2), rgba(222, 79, 71, .04) 60%), var(--carte); }
.global-panne::before { background: var(--majeur); }
.global-maintenance, .global-maintenance-prevue { border-color: rgba(79, 143, 214, .55); background: linear-gradient(135deg, rgba(79, 143, 214, .16), rgba(79, 143, 214, .03) 60%), var(--carte); }
.global-maintenance::before, .global-maintenance-prevue::before { background: var(--maint); }
.global-icone { padding-top: 2px; }
.global-icone img { display: block; border-radius: 8px; border: 1px solid #8b7958; }
.global-texte { min-width: 0; }
.global h1 { font: 1.75rem/1.2 var(--serif); color: var(--parchemin); text-shadow: 0 1px 0 #000; }
.global-sous { margin: 6px 0 0; color: var(--texte); }

/* Symbole de la bannière : élément d'interface en CSS (coche, croix, point d'exclamation…) */
.symbole {
  position: relative; display: block; width: 48px; height: 48px; border-radius: 50%;
  background: var(--terne-2); box-shadow: 0 0 0 5px rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .4);
}
.symbole::before, .symbole::after { content: ""; position: absolute; background: #0e0d0b; }
.symbole-operationnel { background: var(--ok); }
.symbole-operationnel::before { display: none; }
.symbole-operationnel::after {
  left: 17px; top: 10px; width: 12px; height: 22px; background: none;
  border: solid #0e0d0b; border-width: 0 5px 5px 0; transform: rotate(45deg);
}
.symbole-perturbation { background: none; box-shadow: none; }
.symbole-perturbation::before {
  inset: 6px; background: var(--mineur); border-radius: 7px; transform: rotate(45deg);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .4);
}
.symbole-perturbation::after, .symbole-inconnu::after {
  content: "!"; inset: 0; background: none; color: #0e0d0b; font: 800 26px/48px var(--sans); text-align: center;
}
.symbole-panne { background: var(--majeur); border-radius: 9px; }
.symbole-panne::before, .symbole-panne::after { left: 21.5px; top: 10px; width: 5px; height: 28px; border-radius: 2px; transform: rotate(45deg); }
.symbole-panne::after { transform: rotate(-45deg); }
.symbole-maintenance, .symbole-maintenance-prevue { background: var(--maint); }
.symbole-maintenance::before, .symbole-maintenance-prevue::before { left: 22px; top: 10px; width: 4px; height: 16px; border-radius: 2px; }
.symbole-maintenance::after, .symbole-maintenance-prevue::after { left: 22px; top: 22px; width: 13px; height: 4px; border-radius: 2px; }
.symbole-inconnu::before { display: none; }
.symbole-inconnu::after { content: "?"; }

.verif { margin: 12px 0 0; font-size: .875rem; color: var(--terne); display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.verif-libelle { color: var(--terne); }
.verif-quand { color: var(--parchemin); font-weight: 600; font-variant-numeric: tabular-nums; }
.verif-rel:not(:empty)::before { content: "· "; }
.verif-note { flex-basis: 100%; color: var(--terne-2); font-size: .8125rem; }
.perime {
  margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(222, 79, 71, .6);
  background: rgba(222, 79, 71, .12); color: var(--majeur-texte); font-weight: 600; font-size: .875rem;
}

/* --- Annonces en cours -------------------------------------------------------------- */
.annonces { display: grid; gap: 12px; margin: 0 0 18px; }
.annonce {
  padding: 16px 20px 16px 22px; border-radius: var(--rayon); border: 1px solid var(--carte-bord-fort);
  background: var(--carte); box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.annonce::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--or-sombre); }
.annonce-maintenance::before { background: var(--maint); }
.annonce-degrade::before { background: var(--mineur); }
.annonce-partielle::before { background: var(--partiel); }
.annonce-panne::before { background: var(--majeur); }
.annonce-operationnel::before { background: var(--ok); }
.annonce-type {
  margin: 0 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--terne); display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.annonce-maintenance .annonce-type { color: var(--maint-texte); }
.annonce-panne .annonce-type { color: var(--majeur-texte); }
.annonce-partielle .annonce-type { color: var(--partiel-texte); }
.annonce-degrade .annonce-type { color: var(--mineur-texte); }
.annonce h3 { font: 1.2rem/1.3 var(--serif); color: var(--parchemin); }
.annonce-quand { margin: 4px 0 0; color: var(--terne); font-size: .875rem; }
.annonce-corps, .incident-texte, .maj-texte { color: var(--texte); }
.annonce-corps > :first-child, .maj-texte > :first-child, .incident-texte > :first-child { margin-top: 8px; }
.annonce-corps > :last-child, .maj-texte > :last-child, .incident-texte > :last-child { margin-bottom: 0; }
.annonce-corps ul, .incident-texte ul, .maj-texte ul { padding-left: 1.2em; }
.annonce-majs { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--carte-bord-fort); display: grid; gap: 10px; }
.annonce-majs li { font-size: .9rem; }
.maj-tete { margin: 0; color: var(--terne); }
.maj-tete strong { color: var(--parchemin); margin-left: 4px; }
.tag-exemple {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; border: 1px dashed #e9c46a;
  color: #f2d77a; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; vertical-align: .15em;
}

/* --- Sections ----------------------------------------------------------------------- */
.section { margin: 30px 0 0; }
.section-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.section h2, .pied h2 { font: 1.45rem/1.2 var(--serif); color: var(--or); text-shadow: 0 1px 0 #000; }
.section-note { margin: 0; color: var(--terne); font-size: .875rem; }

.legende {
  list-style: none; margin: 0 0 16px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .8125rem; color: var(--terne); border: 1px solid var(--carte-bord); border-radius: 10px; background: rgba(0, 0, 0, .18);
}
.legende li { display: flex; align-items: center; gap: 7px; }
.j-echantillon { display: inline-block; width: 9px; height: 18px; border-radius: 2px; }
.j-echantillon.j-vide { height: 9px; align-self: center; }

.groupe + .groupe { margin-top: 26px; }
.groupe-titre {
  font: .75rem/1.3 var(--sans); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or-sombre); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--carte-bord);
}
.groupe-desc { margin: 0 0 10px; color: var(--terne-2); font-size: .8125rem; }
.services { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }

/* --- Carte d'un service -------------------------------------------------------------- */
.service {
  padding: 18px 20px; border-radius: var(--rayon); border: 1px solid var(--carte-bord);
  background: linear-gradient(180deg, var(--carte-2), var(--carte)); box-shadow: var(--ombre); min-width: 0;
}
.service-panne { border-color: rgba(222, 79, 71, .55); }
.service-partielle { border-color: rgba(220, 125, 52, .5); }
.service-degrade { border-color: rgba(207, 169, 53, .45); }
.service-maintenance { border-color: rgba(79, 143, 214, .45); }
.service-bientot-carte { border-style: dashed; border-color: var(--carte-bord-fort); background: rgba(22, 20, 16, .55); box-shadow: none; }
.service-tete { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.service-icone {
  width: 40px; height: 40px; border-radius: 7px; border: 1px solid #6a5a40;
  box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, .5);
}
.service-icone-vide { display: block; background: var(--vide); }
.service-bientot-carte .service-icone { filter: grayscale(.65) brightness(.8); }
.service-nom { min-width: 0; }
.service-nom h4 { font: 1.15rem/1.25 var(--serif); }
.service-nom h4 a { color: var(--parchemin); text-decoration: none; }
.service-nom h4 a:hover { color: var(--or-vif); text-decoration: underline; }
.service-desc { margin: 2px 0 0; color: var(--terne); font-size: .8125rem; }
.service-hote { color: var(--terne-2); font-family: var(--mono); font-size: .75rem; white-space: nowrap; }
.service-hote::before { content: "· "; font-family: var(--sans); }
.service-etat { margin: 0; justify-self: end; }
.service-alerte {
  margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; font-size: .875rem;
  border: 1px solid var(--carte-bord-fort); background: rgba(0, 0, 0, .2); color: var(--texte);
}
.service-alerte-panne { border-color: rgba(222, 79, 71, .5); color: var(--majeur-texte); }
.service-alerte-partielle { border-color: rgba(220, 125, 52, .5); color: var(--partiel-texte); }
.service-alerte-degrade { border-color: rgba(207, 169, 53, .5); color: var(--mineur-texte); }
.service-alerte-maintenance { border-color: rgba(79, 143, 214, .5); color: var(--maint-texte); }
.service-bientot, .service-observation { margin: 10px 0 0; color: var(--terne); font-size: .875rem; }
.service-observation { color: var(--terne-2); font-size: .8125rem; }

/* --- Barre des 90 jours -------------------------------------------------------------- */
.barre { margin-top: 16px; }
.jours {
  --n: 90; --lb: min(15.5rem, 100%);
  position: relative; display: flex; align-items: flex-end; gap: 2px; height: 34px;
  list-style: none; margin: 0; padding: 0;
}
/* Pas de transform ni de filter sur les segments : ils feraient du segment le bloc conteneur de l'infobulle. */
.jours > li { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 2px; cursor: default; }
.jours > li:hover, .jours > li:focus { box-shadow: 0 0 0 2px var(--parchemin); }
.jours > li:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 3px; }
.j-ok { background: var(--ok); }
.j-mineur { background: var(--mineur); box-shadow: inset 0 5px 0 rgba(0, 0, 0, .42); }
.j-partiel { background: repeating-linear-gradient(135deg, var(--partiel) 0 3px, #7d4114 3px 5px); }
.j-majeur { background: repeating-linear-gradient(0deg, var(--majeur) 0 3px, #6f1d19 3px 5px); }
.j-maint { background: radial-gradient(circle, #d6e6ff 1px, transparent 1.6px) 0 0 / 5px 5px, var(--maint); }
.j-vide { background: var(--vide); height: 45% !important; }

.bulle {
  position: absolute; bottom: calc(100% + 12px); z-index: 30; width: var(--lb);
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  background: #0f0e0b; border: 1px solid var(--carte-bord-fort); border-radius: 9px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 1px #000;
  font-size: .8125rem; line-height: 1.4; color: var(--texte); text-align: left;
  visibility: hidden; opacity: 0; transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.bulle::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.jours > li:hover > .bulle, .jours > li:focus > .bulle {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
}
.jours.bulles-masquees > li > .bulle { visibility: hidden; opacity: 0; }
.bulle-date { color: var(--parchemin); font-family: var(--serif); font-size: .95rem; font-weight: normal; }
.bulle-dispo { color: var(--or); font-weight: 700; font-variant-numeric: tabular-nums; }
.bulle-etat { color: var(--terne); }
.bulle-titre { margin-top: 4px; color: var(--terne); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.bulle-incidents { margin: 0; padding-left: 1.1em; color: var(--texte); }
.bulle-aucun { color: var(--ok-texte); }

.barre-pied {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin: 8px 0 0; font-size: .75rem; color: var(--terne-2);
}
.barre-dispo { text-align: center; color: var(--terne); }
.barre-dispo strong { color: var(--parchemin); font-size: .875rem; font-variant-numeric: tabular-nums; }
.barre-pied::before, .barre-pied::after { display: none; }
.barre-debut, .barre-fin { white-space: nowrap; }
.d-court { display: none; }

/* --- Mesures ------------------------------------------------------------------------- */
.mesures {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px 18px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--carte-bord);
}
.mesure { min-width: 0; }
.mesure dt { font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var(--terne-2); margin-bottom: 4px; }
.mesure dd { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.mesure-valeur { font-size: 1.05rem; color: var(--parchemin); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
.mesure-sous { font-size: .75rem; color: var(--terne-2); }
.cert-alerte .mesure-valeur { color: var(--mineur-texte); }
.courbe .spark { display: block; width: 100%; height: 44px; overflow: visible; }
.spark-aire { fill: rgba(227, 196, 140, .14); }
.spark-ligne { fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-grille { stroke: rgba(227, 196, 140, .1); stroke-width: 1; stroke-dasharray: 2 3; }
.spark-base { stroke: var(--carte-bord-fort); stroke-width: 1; }
.spark-echec { fill: var(--majeur); }
.spark-maint { fill: var(--maint); }
.courbe-axe { display: flex; justify-content: space-between; gap: 6px; font-size: .68rem; color: var(--terne-2); margin-top: 2px; }
.familles { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.famille { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: .8125rem; }
.famille .forme { margin-right: 0; }
.famille-nom { font-weight: 700; color: var(--parchemin); min-width: 2.6em; }
.famille-val { color: var(--terne); }
.famille-ms { color: var(--texte); font-variant-numeric: tabular-nums; }
.famille-echec .famille-val { color: var(--majeur-texte); }
.famille-inconnu .famille-val { color: var(--terne-2); font-style: italic; }

/* --- Historique des incidents ------------------------------------------------------- */
.mois + .mois { margin-top: 20px; }
.mois h3 {
  font: .75rem/1.3 var(--sans); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or-sombre); padding-bottom: 8px; border-bottom: 1px solid var(--carte-bord);
}
.historique { list-style: none; margin: 0; padding: 0; }
.incident { padding: 14px 4px 14px 0; border-bottom: 1px solid var(--carte-bord); }
.incident-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.incident-ligne h4 { font: 1.05rem/1.3 var(--serif); color: var(--parchemin); flex: 1 1 14rem; min-width: 0; }
.incident-duree {
  font-variant-numeric: tabular-nums; color: var(--or); font-weight: 700; font-size: .875rem;
  padding: 2px 8px; border-radius: 6px; background: rgba(227, 196, 140, .08); border: 1px solid var(--carte-bord-fort);
}
.incident-meta { margin: 6px 0 0; color: var(--terne); font-size: .8125rem; }
.incident-detail { margin: 4px 0 0; color: var(--terne-2); font-size: .8125rem; font-family: var(--mono); }
.incident-annonce {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--carte-bord);
  background: rgba(227, 196, 140, .04);
}
.incident-annonce-titre { margin: 0; color: var(--or); font-weight: 600; font-size: .875rem; display: flex; align-items: center; flex-wrap: wrap; }
.historique-vide {
  margin: 0; padding: 18px 20px; border-radius: var(--rayon); border: 1px solid var(--carte-bord);
  background: var(--carte); color: var(--texte); display: flex; align-items: center;
}

/* --- Pied de page --------------------------------------------------------------------- */
.pied { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--carte-bord); color: var(--terne); font-size: .875rem; }
.pied-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pied h2 { font-size: 1.15rem; margin-bottom: 8px; }
.pied-liens { margin: 0 0 10px; padding-left: 1.1em; }
.pied-liens li + li { margin-top: 4px; }
.pied-details summary { cursor: pointer; color: var(--or); padding: 4px 0; }
.pied-details summary:hover { color: var(--or-vif); }
.pied-details[open] summary { margin-bottom: 8px; }
.pied-details ul { padding-left: 1.1em; }
.pied-details li + li { margin-top: 4px; }
.badges { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.badges li { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.badges code {
  display: block; max-width: 100%; overflow-x: auto; white-space: pre; padding: 6px 8px; border-radius: 6px;
  background: #0b0a08; border: 1px solid var(--carte-bord); color: var(--terne); font-size: .72rem;
}
.pied-credits { margin: 24px 0 0; font-size: .75rem; color: var(--terne-2); }

/* --- Page 404 ------------------------------------------------------------------------- */
.page-404 { padding-top: 12vh; }

/* --- Écrans moyens et petits ---------------------------------------------------------- */
@media (max-width: 820px) {
  .mesures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mesure-courbe { grid-column: 1 / -1; order: 4; }
  .mesure-familles { order: 2; }
  .mesure-cert { order: 3; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .page { padding: 0 12px 32px; }
  .jours { --n: 30; height: 30px; gap: 3px; }
  .jours > li:nth-last-child(n+31) { display: none; }
  .d-long { display: none; }
  .d-court { display: inline; }
  .global { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px 18px 20px; }
  .global h1 { font-size: 1.45rem; }
  .symbole { width: 40px; height: 40px; }
  .symbole-operationnel::after { left: 14px; top: 7px; width: 10px; height: 19px; border-width: 0 4px 4px 0; }
  .symbole-panne::before, .symbole-panne::after { left: 18px; top: 8px; width: 4px; height: 24px; }
  .symbole-perturbation::before { inset: 5px; }
  .symbole-perturbation::after, .symbole-inconnu::after { font-size: 22px; line-height: 40px; }
  .symbole-maintenance::before, .symbole-maintenance-prevue::before { left: 18px; top: 8px; height: 13px; }
  .symbole-maintenance::after, .symbole-maintenance-prevue::after { left: 18px; top: 18px; width: 11px; }
  .service { padding: 16px 14px; }
  .service-tete { grid-template-columns: 36px minmax(0, 1fr); }
  .service-icone { width: 36px; height: 36px; }
  .service-etat { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
  .pied-colonnes { grid-template-columns: minmax(0, 1fr); }
  .mesures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mesure-familles { order: 3; grid-column: 1 / -1; }
  .mesure-cert { order: 2; }
  .marque-titre { font-size: 1.25rem; }
  .barre-dispo { font-size: .72rem; }
}
@media (max-width: 380px) {
  .mesures { grid-template-columns: minmax(0, 1fr); }
  .mesure-courbe, .mesure-familles, .mesure-cert { grid-column: auto; }
  .barre-pied { flex-wrap: wrap; }
  .barre-dispo { order: -1; flex-basis: 100%; text-align: left; }
  .service-hote { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .bulle, .evitement, .banniere-historique { display: none !important; }
}

/* Positions des infobulles (générées) */
.jours>li:nth-last-child(1)>.bulle{left:clamp(0px,calc(100% - 0.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(2)>.bulle{left:clamp(0px,calc(100% - 1.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(3)>.bulle{left:clamp(0px,calc(100% - 2.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(4)>.bulle{left:clamp(0px,calc(100% - 3.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(5)>.bulle{left:clamp(0px,calc(100% - 4.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(6)>.bulle{left:clamp(0px,calc(100% - 5.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(7)>.bulle{left:clamp(0px,calc(100% - 6.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(8)>.bulle{left:clamp(0px,calc(100% - 7.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(9)>.bulle{left:clamp(0px,calc(100% - 8.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(10)>.bulle{left:clamp(0px,calc(100% - 9.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(11)>.bulle{left:clamp(0px,calc(100% - 10.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(12)>.bulle{left:clamp(0px,calc(100% - 11.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(13)>.bulle{left:clamp(0px,calc(100% - 12.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(14)>.bulle{left:clamp(0px,calc(100% - 13.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(15)>.bulle{left:clamp(0px,calc(100% - 14.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(16)>.bulle{left:clamp(0px,calc(100% - 15.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(17)>.bulle{left:clamp(0px,calc(100% - 16.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(18)>.bulle{left:clamp(0px,calc(100% - 17.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(19)>.bulle{left:clamp(0px,calc(100% - 18.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(20)>.bulle{left:clamp(0px,calc(100% - 19.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(21)>.bulle{left:clamp(0px,calc(100% - 20.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(22)>.bulle{left:clamp(0px,calc(100% - 21.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(23)>.bulle{left:clamp(0px,calc(100% - 22.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(24)>.bulle{left:clamp(0px,calc(100% - 23.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(25)>.bulle{left:clamp(0px,calc(100% - 24.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(26)>.bulle{left:clamp(0px,calc(100% - 25.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(27)>.bulle{left:clamp(0px,calc(100% - 26.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(28)>.bulle{left:clamp(0px,calc(100% - 27.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(29)>.bulle{left:clamp(0px,calc(100% - 28.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(30)>.bulle{left:clamp(0px,calc(100% - 29.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(31)>.bulle{left:clamp(0px,calc(100% - 30.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(32)>.bulle{left:clamp(0px,calc(100% - 31.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(33)>.bulle{left:clamp(0px,calc(100% - 32.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(34)>.bulle{left:clamp(0px,calc(100% - 33.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(35)>.bulle{left:clamp(0px,calc(100% - 34.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(36)>.bulle{left:clamp(0px,calc(100% - 35.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(37)>.bulle{left:clamp(0px,calc(100% - 36.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(38)>.bulle{left:clamp(0px,calc(100% - 37.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(39)>.bulle{left:clamp(0px,calc(100% - 38.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(40)>.bulle{left:clamp(0px,calc(100% - 39.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(41)>.bulle{left:clamp(0px,calc(100% - 40.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(42)>.bulle{left:clamp(0px,calc(100% - 41.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(43)>.bulle{left:clamp(0px,calc(100% - 42.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(44)>.bulle{left:clamp(0px,calc(100% - 43.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(45)>.bulle{left:clamp(0px,calc(100% - 44.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(46)>.bulle{left:clamp(0px,calc(100% - 45.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(47)>.bulle{left:clamp(0px,calc(100% - 46.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(48)>.bulle{left:clamp(0px,calc(100% - 47.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(49)>.bulle{left:clamp(0px,calc(100% - 48.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(50)>.bulle{left:clamp(0px,calc(100% - 49.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(51)>.bulle{left:clamp(0px,calc(100% - 50.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(52)>.bulle{left:clamp(0px,calc(100% - 51.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(53)>.bulle{left:clamp(0px,calc(100% - 52.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(54)>.bulle{left:clamp(0px,calc(100% - 53.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(55)>.bulle{left:clamp(0px,calc(100% - 54.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(56)>.bulle{left:clamp(0px,calc(100% - 55.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(57)>.bulle{left:clamp(0px,calc(100% - 56.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(58)>.bulle{left:clamp(0px,calc(100% - 57.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(59)>.bulle{left:clamp(0px,calc(100% - 58.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(60)>.bulle{left:clamp(0px,calc(100% - 59.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(61)>.bulle{left:clamp(0px,calc(100% - 60.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(62)>.bulle{left:clamp(0px,calc(100% - 61.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(63)>.bulle{left:clamp(0px,calc(100% - 62.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(64)>.bulle{left:clamp(0px,calc(100% - 63.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(65)>.bulle{left:clamp(0px,calc(100% - 64.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(66)>.bulle{left:clamp(0px,calc(100% - 65.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(67)>.bulle{left:clamp(0px,calc(100% - 66.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(68)>.bulle{left:clamp(0px,calc(100% - 67.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(69)>.bulle{left:clamp(0px,calc(100% - 68.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(70)>.bulle{left:clamp(0px,calc(100% - 69.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(71)>.bulle{left:clamp(0px,calc(100% - 70.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(72)>.bulle{left:clamp(0px,calc(100% - 71.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(73)>.bulle{left:clamp(0px,calc(100% - 72.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(74)>.bulle{left:clamp(0px,calc(100% - 73.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(75)>.bulle{left:clamp(0px,calc(100% - 74.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(76)>.bulle{left:clamp(0px,calc(100% - 75.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(77)>.bulle{left:clamp(0px,calc(100% - 76.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(78)>.bulle{left:clamp(0px,calc(100% - 77.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(79)>.bulle{left:clamp(0px,calc(100% - 78.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(80)>.bulle{left:clamp(0px,calc(100% - 79.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(81)>.bulle{left:clamp(0px,calc(100% - 80.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(82)>.bulle{left:clamp(0px,calc(100% - 81.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(83)>.bulle{left:clamp(0px,calc(100% - 82.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(84)>.bulle{left:clamp(0px,calc(100% - 83.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(85)>.bulle{left:clamp(0px,calc(100% - 84.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(86)>.bulle{left:clamp(0px,calc(100% - 85.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(87)>.bulle{left:clamp(0px,calc(100% - 86.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(88)>.bulle{left:clamp(0px,calc(100% - 87.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(89)>.bulle{left:clamp(0px,calc(100% - 88.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
.jours>li:nth-last-child(90)>.bulle{left:clamp(0px,calc(100% - 89.5*100%/var(--n) - var(--lb)/2),calc(100% - var(--lb)))}
