/* monitoring.eduzonelab.com — structure commune aux trois styles (les couleurs viennent de style-*.css).
   Téléphone d'abord ; aucune règle ne doit faire défiler la page de côté. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: var(--taille, 16px);
  line-height: 1.45;
  color: var(--texte);
  background: var(--fond);
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 1.2em; }
p { margin: 0 0 .6em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.icone { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.icone--petite { width: .95em; height: .95em; }
.icone--grande { width: 2.2rem; height: 2.2rem; }
.icone--pastille { width: 1em; height: 1em; }
.icone--bon { color: var(--bon); }

.aller-au-contenu { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.aller-au-contenu:focus { left: 8px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- en-tête et navigation ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: var(--marque); color: var(--marque-texte); border-bottom: 1px solid var(--marque-bord, transparent); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1240px; margin: 0 auto; }
.marque { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.marque img { border-radius: 7px; }
.marque__nom { font-size: 1.05rem; }
.marque__sous { font-weight: 500; opacity: .75; font-size: .85rem; }
.fraicheur { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; opacity: .9; white-space: nowrap; }
.fraicheur__point { width: 8px; height: 8px; border-radius: 50%; background: var(--bon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bon) 25%, transparent); }
.fraicheur--vieille .fraicheur__point { background: var(--critique); box-shadow: 0 0 0 3px color-mix(in srgb, var(--critique) 25%, transparent); }
.nav-principale { display: none; }
.nav-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--nav-bas-fond, var(--surface)); border-top: 1px solid var(--bord);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-bas__lien { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .7rem; color: var(--texte-3); text-decoration: none; min-height: 56px; justify-content: center; }
.nav-bas__lien .icone { width: 1.45rem; height: 1.45rem; }
.nav-bas__lien.actif { color: var(--accent); font-weight: 600; }

@media (min-width: 760px) {
  .nav-bas { display: none; }
  .nav-principale { display: flex; gap: 4px; padding: 0 12px; max-width: 1240px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
  .nav-principale__lien { display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: inherit; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; opacity: .82; font-size: .93rem; }
  .nav-principale__lien:hover { opacity: 1; }
  .nav-principale__lien.actif { opacity: 1; border-bottom-color: var(--nav-actif, currentColor); font-weight: 600; }
}

/* ---------- page ---------- */
.contenu { max-width: 1240px; margin: 0 auto; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .contenu { padding: 24px 24px 40px; } }
.page-connexion .contenu { padding-bottom: 40px; }
.titre-page { margin-bottom: 16px; }
.titre-page h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fil { margin-bottom: 6px; font-size: .9rem; }
.fil a { text-decoration: none; }
.discret { color: var(--texte-3); }
.note { color: var(--texte-3); font-size: .86rem; }
.petit { font-size: .82rem; }
.bloc-ligne { display: block; font-weight: 400; }
.bloc { margin: 0 0 28px; }
.bloc__titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bloc__lien { font-size: .88rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.bloc--deux { display: grid; gap: 20px; }
@media (min-width: 900px) { .bloc--deux { grid-template-columns: 1fr 1fr; align-items: start; } }
details.bloc > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: var(--carte-espace, 16px); }
.message { padding: 10px 14px; border-radius: var(--rayon); margin-bottom: 14px; border: 1px solid var(--bord); background: var(--surface); }
.message--erreur { border-color: var(--critique); background: var(--critique-fond); }
.message--info { border-color: var(--bon); background: var(--bon-fond); }

/* ---------- bandeau d'état et points ---------- */
.bandeau { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--rayon); margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--bord); border-left: 6px solid var(--bon); box-shadow: var(--ombre); }
.bandeau h1 { margin: 0 0 2px; font-size: 1.45rem; }
.bandeau p { margin: 0; color: var(--texte-2); }
.bandeau__icone { color: var(--bon); display: flex; }
.bandeau--avertissement { border-left-color: var(--avertissement); }
.bandeau--avertissement .bandeau__icone { color: var(--avertissement-icone, var(--avertissement)); }
.bandeau--critique { border-left-color: var(--critique); }
.bandeau--critique .bandeau__icone { color: var(--critique); }
.points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.point { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); }
.point__icone { display: flex; padding-top: 2px; color: var(--critique); }
.point--avertissement .point__icone { color: var(--avertissement-icone, var(--avertissement)); }
.point__texte { flex: 1; min-width: 0; }
.point__gravite { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.point__texte strong { display: block; }
.point__detail { color: var(--texte-3); font-size: .86rem; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.point__lien { display: flex; align-self: center; color: var(--texte-3); padding: 6px; }

/* ---------- pastilles et badges (toujours icône + mot) ---------- */
.pastille { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  white-space: nowrap; background: var(--neutre-fond); color: var(--texte); line-height: 1.5; }
.pastille--bon { background: var(--bon-fond); } .pastille--bon .icone { color: var(--bon); }
.pastille--serieux { background: var(--serieux-fond); } .pastille--serieux .icone { color: var(--serieux-icone, var(--serieux)); }
.pastille--critique { background: var(--critique-fond); } .pastille--critique .icone { color: var(--critique); }
.pastille--neutre .icone { color: var(--texte-3); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: var(--neutre-fond); color: var(--texte-2); white-space: nowrap; }
.badge--bon { background: var(--bon-fond); color: var(--texte); } .badge--bon .icone { color: var(--bon); }
.badge--serieux { background: var(--serieux-fond); color: var(--texte); }
.badge--critique { background: var(--critique-fond); color: var(--texte); } .badge--critique .icone { color: var(--critique); }

/* ---------- tuiles ---------- */
.tuiles { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (max-width: 519px) {
  .tuile { padding: 12px; }
  .tuile__valeur { font-size: calc(var(--valeur-taille, 2rem) * .8); }
  .tuile__detail { font-size: .8rem; }
  .tuile__etiquette { font-size: .8rem; }
}
@media (max-width: 339px) { .tuiles { grid-template-columns: 1fr; } }
@media (min-width: 1000px) { .tuiles { grid-template-columns: repeat(4, 1fr); } .tuiles--3 { grid-template-columns: repeat(3, 1fr); } .tuiles--2 { grid-template-columns: 1fr 1fr; } }
.tuile { position: relative; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: var(--carte-espace, 16px); min-width: 0; }
.tuile__etiquette { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--texte-2); font-size: var(--etiquette-taille, .9rem); font-weight: 600; }
.tuile__etiquette .icone { color: var(--texte-3); }
.tuile__valeur { font-size: var(--valeur-taille, 2rem); font-weight: 700; margin: 0 0 6px; line-height: 1.1; letter-spacing: -.01em; }
.tuile__valeur--petite { font-size: 1.4rem; }
.tuile__valeur--double { display: flex; flex-direction: column; font-size: 1.25rem; gap: 2px; }
.tuile__sur { font-size: .55em; font-weight: 600; color: var(--texte-3); margin-left: 2px; }
.tuile__detail { margin: 4px 0 0; color: var(--texte-2); font-size: .86rem; }
.tuile__lien { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: .86rem; font-weight: 600; text-decoration: none; }

/* jauge : piste dans une teinte plus claire de la même couleur */
.jauge { height: 8px; border-radius: 999px; background: var(--jauge-piste); overflow: hidden; margin: 6px 0 8px; }
.jauge__rempli { height: 100%; border-radius: 999px; background: var(--serie-1); }
.jauge--serieux .jauge__rempli { background: var(--serieux); }
.jauge--critique .jauge__rempli { background: var(--critique); }

/* petite courbe des tuiles */
.courbe { height: 38px; margin: 2px 0 4px; }
.courbe svg { display: block; width: 100%; height: 38px; overflow: visible; }
.courbe__aire { fill: var(--serie-1); opacity: .1; }
.courbe__ligne { fill: none; stroke: var(--texte-3); stroke-width: 1.5; stroke-linejoin: round; }
.courbe__point { fill: var(--serie-1); stroke: var(--surface); stroke-width: 2; }

/* ---------- sites ---------- */
.grille-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grille-sites { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grille-sites { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .grille-sites { grid-template-columns: repeat(4, 1fr); } }
.site { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; color: var(--texte); text-decoration: none;
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.site:hover { border-color: var(--accent); }
.site--panne { border-color: var(--critique); }
.site__haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.site__nom { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site__ligne { font-size: .86rem; color: var(--texte-2); }
.site__ligne--discrete { color: var(--texte-3); }
.site__pied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }

/* style C : les feux */
.liste-feux { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feu { display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 64px; text-decoration: none; color: var(--texte);
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); }
.feu__lampe { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--bon-fond); color: var(--bon); }
.feu__lampe .icone { width: 26px; height: 26px; }
.feu--panne .feu__lampe { background: var(--critique-fond); color: var(--critique); }
.feu--attention .feu__lampe, .feu--lent .feu__lampe { background: var(--serieux-fond); color: var(--serieux-icone, var(--serieux)); }
.feu--inconnu .feu__lampe { background: var(--neutre-fond); color: var(--texte-3); }
.feu__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feu__texte strong { font-size: 1.08rem; }
.feu__texte span { color: var(--texte-2); font-size: .9rem; }
.feu__fleche { color: var(--texte-3); }
.plus-de-details { margin-top: 12px; }

/* ---------- graphiques ---------- */
.grille-graphiques { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grille-graphiques { grid-template-columns: 1fr 1fr; } }
.graphique { margin: 0; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 14px 10px; min-width: 0; }
.graphique__entete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.graphique__titre { font-weight: 700; }
.graphique__periode { color: var(--texte-3); font-size: .84rem; white-space: nowrap; }
.graphique__zone { position: relative; width: 100%; min-height: 120px; touch-action: pan-y; }
.graphique__zone svg { display: block; width: 100%; overflow: visible; }
.graphique__zone text { fill: var(--texte-axe); font-size: 11px; font-family: inherit; }
.graphique__zone .grille { stroke: var(--grille); stroke-width: 1; shape-rendering: crispEdges; }
.graphique__zone .base { stroke: var(--axe); stroke-width: 1; shape-rendering: crispEdges; }
.graphique__zone .serie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graphique__zone .serie--1 { stroke: var(--serie-1); } .graphique__zone .serie--2 { stroke: var(--serie-2); }
.graphique__zone .aire { fill: var(--serie-1); opacity: .1; stroke: none; }
.graphique__zone .point-fin { stroke: var(--surface); stroke-width: 2; }
.graphique__zone .point-fin--1 { fill: var(--serie-1); } .graphique__zone .point-fin--2 { fill: var(--serie-2); }
.graphique__zone .reticule { stroke: var(--texte-3); stroke-width: 1; shape-rendering: crispEdges; }
.graphique__zone .vide { fill: var(--texte-3); font-size: 13px; }
.infobulle { position: absolute; top: 0; z-index: 5; pointer-events: none; min-width: 120px; padding: 8px 10px; border-radius: 8px;
  background: var(--infobulle-fond, var(--surface)); color: var(--texte); border: 1px solid var(--bord); box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: .82rem; }
.infobulle__temps { color: var(--texte-3); margin-bottom: 4px; white-space: nowrap; }
.infobulle__ligne { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.infobulle__ligne strong { font-size: .95rem; }
.infobulle__ligne span { color: var(--texte-2); }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; padding: 0; font-size: .82rem; color: var(--texte-2); }
.legende li { display: flex; align-items: center; gap: 6px; }
.cle-ligne { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--serie-1); }
.cle-ligne--2 { background: var(--serie-2); }
.graphique__tableau { margin-top: 6px; font-size: .84rem; }
.graphique__tableau summary { cursor: pointer; color: var(--texte-3); }
.graphique__tableau table { width: 100%; border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
.graphique__tableau td, .graphique__tableau th { padding: 3px 6px; border-bottom: 1px solid var(--grille); text-align: right; }
.graphique__tableau td:first-child, .graphique__tableau th:first-child { text-align: left; }
.periodes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.periodes__choix { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte-2); text-decoration: none; font-size: .86rem; font-weight: 600; min-height: 34px; display: inline-flex; align-items: center; }
.periodes__choix--actif { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }

/* barres « qui consomme » */
.barres { margin: 0 0 18px; }
.barres:last-child { margin-bottom: 0; }
.barres figcaption { font-weight: 700; margin-bottom: 8px; }
.barres ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.barres li { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.barres__nom { color: var(--texte); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barres__piste { height: 12px; }
.barres__barre { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--serie-1); min-width: 2px; }
.barres__valeur { color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- tableaux ---------- */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau th, .tableau td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--grille); vertical-align: top; }
.tableau thead th { font-size: .78rem; color: var(--texte-3); font-weight: 600; white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.tableau tbody th { font-weight: 600; }
.tableau tbody th a { text-decoration: none; }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne--arretee { opacity: .7; }

/* listes */
.liste-simple { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-simple li { display: flex; align-items: flex-start; gap: 10px; }
.liste-simple li > span:not(.pastille) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.liste-alertes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.liste-alertes li { display: flex; gap: 10px; align-items: flex-start; }
.liste-chiffres { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.liste-chiffres li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; border-bottom: 1px solid var(--grille); padding-bottom: 5px; }
.liste-chiffres li span { color: var(--texte-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.liste-chiffres code { min-width: 0; }
.chiffres { display: grid; gap: 12px; margin: 0 0 12px; }
.chiffres dt { font-weight: 700; }
.chiffres dd { margin: 0; }
.chiffres--serres { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 12px; font-size: .86rem; }
.chiffres--serres dt { font-weight: 600; color: var(--texte-2); }
.dossier summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; padding: 6px 0; border-bottom: 1px solid var(--grille); }
.dossier summary span { font-variant-numeric: tabular-nums; color: var(--texte-2); }
.dossier .liste-chiffres { margin: 8px 0 12px 12px; }

/* sauvegardes */
.liste-sauvegardes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .liste-sauvegardes { grid-template-columns: 1fr 1fr; } }
.sauvegarde { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 12px 14px; }
.sauvegarde--echec { border-color: var(--critique); }
.sauvegarde__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sauvegarde__details { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 0 0 6px; font-size: .86rem; }
.sauvegarde__details dt { color: var(--texte-3); font-size: .78rem; }
.sauvegarde__details dd { margin: 0; }
.sauvegarde__detail { font-size: .84rem; background: var(--critique-fond); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }

/* menu « Plus » */
.menu-plus { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.menu-plus a { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); color: var(--texte); text-decoration: none; }
.menu-plus a > span { flex: 1; }
.menu-plus .icone { color: var(--texte-3); width: 1.4rem; height: 1.4rem; }

/* ---------- formulaires et boutons ---------- */
.formulaire { display: grid; gap: 14px; }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input:not([type]), input[inputmode] {
  font: inherit; font-weight: 400; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--bord-champ, var(--bord)); background: var(--champ-fond, var(--surface)); color: var(--texte); width: 100%; min-height: 46px; }
.champ-code { font-size: 1.5rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 16px; min-height: 44px;
  border-radius: 10px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); cursor: pointer; text-decoration: none; }
.bouton--principal { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.bouton-lien { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 2px; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.carte--connexion { max-width: 420px; margin: 8vh auto 0; text-align: left; padding: 28px 24px; }
.carte--connexion h1 { margin-top: 10px; }
.carte--connexion__logo { border-radius: 12px; }
.carte--activation { max-width: 520px; }
.etape { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin-top: 10px; }
.etape span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-texte); align-items: center; justify-content: center; font-size: .85rem; }
.qr { background: #fff; padding: 8px; border-radius: 10px; width: max-content; max-width: 100%; }
.qr svg { display: block; width: 220px; height: auto; }
.cle-secrete { display: inline-block; background: var(--surface-2); padding: 3px 6px; border-radius: 6px; user-select: all; }
.carte--erreur { max-width: 520px; margin: 10vh auto 0; }

/* ---------- pied de page ---------- */
.pied { max-width: 1240px; margin: 0 auto; padding: 0 16px calc(90px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--texte-3); }
@media (min-width: 760px) { .pied { padding: 0 24px 30px; } }
.pied__styles { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; align-items: center; }
.pied__styles a { color: var(--texte-3); }
.pied__styles a.actif { color: var(--texte); font-weight: 700; text-decoration: none; }
.pied__deconnexion { margin: 0; }

/* rafraîchissement en douceur : on garde l'ancien affichage, un peu estompé */
.contenu.rafraichit { opacity: .96; transition: opacity .2s; }

/* largeurs des jauges et barres (0 à 100 %) : classes plutôt que styles en ligne (politique de sécurité) */
.j-0{width:0}.j-1{width:1%}.j-2{width:2%}.j-3{width:3%}.j-4{width:4%}.j-5{width:5%}.j-6{width:6%}.j-7{width:7%}.j-8{width:8%}.j-9{width:9%}
.j-10{width:10%}.j-11{width:11%}.j-12{width:12%}.j-13{width:13%}.j-14{width:14%}.j-15{width:15%}.j-16{width:16%}.j-17{width:17%}.j-18{width:18%}.j-19{width:19%}
.j-20{width:20%}.j-21{width:21%}.j-22{width:22%}.j-23{width:23%}.j-24{width:24%}.j-25{width:25%}.j-26{width:26%}.j-27{width:27%}.j-28{width:28%}.j-29{width:29%}
.j-30{width:30%}.j-31{width:31%}.j-32{width:32%}.j-33{width:33%}.j-34{width:34%}.j-35{width:35%}.j-36{width:36%}.j-37{width:37%}.j-38{width:38%}.j-39{width:39%}
.j-40{width:40%}.j-41{width:41%}.j-42{width:42%}.j-43{width:43%}.j-44{width:44%}.j-45{width:45%}.j-46{width:46%}.j-47{width:47%}.j-48{width:48%}.j-49{width:49%}
.j-50{width:50%}.j-51{width:51%}.j-52{width:52%}.j-53{width:53%}.j-54{width:54%}.j-55{width:55%}.j-56{width:56%}.j-57{width:57%}.j-58{width:58%}.j-59{width:59%}
.j-60{width:60%}.j-61{width:61%}.j-62{width:62%}.j-63{width:63%}.j-64{width:64%}.j-65{width:65%}.j-66{width:66%}.j-67{width:67%}.j-68{width:68%}.j-69{width:69%}
.j-70{width:70%}.j-71{width:71%}.j-72{width:72%}.j-73{width:73%}.j-74{width:74%}.j-75{width:75%}.j-76{width:76%}.j-77{width:77%}.j-78{width:78%}.j-79{width:79%}
.j-80{width:80%}.j-81{width:81%}.j-82{width:82%}.j-83{width:83%}.j-84{width:84%}.j-85{width:85%}.j-86{width:86%}.j-87{width:87%}.j-88{width:88%}.j-89{width:89%}
.j-90{width:90%}.j-91{width:91%}.j-92{width:92%}.j-93{width:93%}.j-94{width:94%}.j-95{width:95%}.j-96{width:96%}.j-97{width:97%}.j-98{width:98%}.j-99{width:99%}
.j-100{width:100%}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (forced-colors: active) { .jauge__rempli, .barres__barre { background: CanvasText; } .pastille { border: 1px solid CanvasText; } }
