/* Console Fogu : feuille de style unique, sans ressource externe (CSP « default-src 'self' »).
   Grille de 8 px ; échelle typographique 12 / 13 / 14 / 15 / 20 / 24 / 28 px. */

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #5B18EB;
  --brand-fort: #4A0FD0;
  --brand-doux: #F0EAFE;
  --deep: #120D26;
  --fg: #1B1631;
  --muted: #5E5775;
  --line: #E3DCF2;
  --line-fort: #D2C8EA;
  --surface: #FFFFFF;
  --surface-2: #F7F4FE;
  --fond: #FCFBFF;
  --lagoon: #0B8576;
  --ok: #11804F;
  --ok-doux: #E7F5EE;
  --warn: #A35F00;
  --warn-doux: #FDF3E3;
  --bad: #C0264B;
  --bad-doux: #FCEBEF;
  --lateral: #120D26;
  --lateral-texte: #C8C1E0;
  --lateral-fort: #FFFFFF;
  --lateral-survol: rgba(255, 255, 255, 0.07);
  --lateral-actif: rgba(255, 255, 255, 0.12);
  --lateral-ligne: rgba(255, 255, 255, 0.10);
  --barre: #5B18EB;
  --grille: #ECE6F7;
  --survol: rgba(91, 24, 235, 0.06);
  --bulle: #120D26;
  --bulle-texte: #FFFFFF;
  --ombre: 0 1px 2px rgba(18, 13, 38, 0.05);
  --ombre-menu: 0 12px 32px rgba(18, 13, 38, 0.14), 0 2px 6px rgba(18, 13, 38, 0.06);
  --rayon: 8px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #9572FF;
    --brand-fort: #A98CFF;
    --brand-doux: #261C4A;
    --fg: #EEEAF8;
    --muted: #A9A2C2;
    --line: #2C2547;
    --line-fort: #3B3360;
    --surface: #17122E;
    --surface-2: #1E1839;
    --fond: #110C22;
    --lagoon: #3CC4B2;
    --ok: #4CC98E;
    --ok-doux: #12301F;
    --warn: #E9A84A;
    --warn-doux: #33240C;
    --bad: #F2708C;
    --bad-doux: #3A1420;
    --lateral: #0B0818;
    --barre: #9572FF;
    --grille: #2A2346;
    --survol: rgba(149, 114, 255, 0.10);
    --bulle: #F2EEFC;
    --bulle-texte: #120D26;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.30);
    --ombre-menu: 0 12px 32px rgba(0, 0, 0, 0.50), 0 2px 6px rgba(0, 0, 0, 0.30);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--fg);
  font: 14px/1.5 var(--police);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
code, .mono { font-family: var(--mono); font-size: 13px; }
strong { font-weight: 600; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 16px; border-radius: 6px;
  background: var(--surface); color: var(--fg); box-shadow: var(--ombre-menu); }
.evitement:focus { top: 16px; }

.icone { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ cadre : colonne latérale + contenu */
.cadre { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.colonne-laterale { background: var(--lateral); border-right: 1px solid var(--lateral-ligne); }
.lateral {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px 16px 16px;
  color: var(--lateral-texte);
}
.marque { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--lateral-fort); }
.marque:hover { text-decoration: none; }
.marque img { display: block; width: 24px; height: 35px; }
.marque-texte { display: flex; flex-direction: column; min-width: 0; }
.mot { font-family: var(--police-titre); font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.01em;
  color: var(--lateral-fort); }
.espace-nom { font-size: 12px; line-height: 16px; color: var(--lateral-texte); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-bouton {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px; border-radius: 6px; border: 0; background: none;
  color: var(--lateral-texte); font: 500 14px/20px var(--police); text-align: left; cursor: pointer;
}
.nav a:hover, .nav-bouton:hover { background: var(--lateral-survol); color: var(--lateral-fort); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--lateral-actif); color: var(--lateral-fort); }
.nav a[aria-current="page"] .icone { color: #B9A3FF; }
.nav :focus-visible, .nav-bouton:focus-visible { outline-color: #B9A3FF; }
.pastille {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: #FFB547; color: #2B1A00; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

.lateral-pied { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.amont {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--lateral-ligne); border-radius: 8px; font-size: 12px; line-height: 16px;
}
.amont .icone { margin-top: 1px; }
.amont strong { display: block; color: var(--lateral-fort); font-size: 13px; line-height: 18px; }
.amont.ue .icone { color: #5FD3A2; }
.amont.hors-ue .icone { color: #FFB547; }
.lateral-pied form { margin: 0; }

.contenu { padding: 32px 40px 64px; width: 100%; max-width: 1240px; }

.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.entete h1 { font-family: var(--police-titre); font-weight: 600; font-size: 24px; line-height: 32px;
  letter-spacing: -0.015em; }
.entete p { margin-top: 4px; color: var(--muted); }

/* ------------------------------------------------------------------ annonces */
.annonce {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: var(--rayon); background: var(--surface);
}
.annonce .icone { margin-top: 1px; }
.annonce p + p, .annonce ul { margin-top: 4px; }
.annonce ul { padding-left: 18px; margin-bottom: 0; }
.annonce.ok { background: var(--ok-doux); border-color: transparent; }
.annonce.ok .icone { color: var(--ok); }
.annonce.attente { background: var(--warn-doux); border-color: transparent; }
.annonce.attente .icone { color: var(--warn); }
.annonce.erreur { background: var(--bad-doux); border-color: transparent; }
.annonce.erreur .icone { color: var(--bad); }
.annonce.info .icone { color: var(--brand); }
.annonce .lien-action { margin-left: auto; white-space: nowrap; font-weight: 600; }
.pile > .annonce { margin-bottom: 0; }  /* dans une carte : l'écart vient de la grille */

/* ------------------------------------------------------------------ cartes */
.carte {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.contenu > .carte + .carte { margin-top: 24px; }
.carte-entete {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 24px; border-bottom: 1px solid var(--line);
}
.carte-entete h2 { font-size: 15px; line-height: 20px; font-weight: 600; }
.carte-entete .sous { color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 2px; }
.carte-entete .note { color: var(--muted); font-size: 13px; text-align: right; }
.carte-entete .note strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.carte-corps { padding: 24px; }
.carte-entete > .icone { color: var(--muted); }
.carte-pied { padding: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ indicateurs */
.indicateurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.indicateur { padding: 16px 20px 20px; display: flex; flex-direction: column; }
.indicateur .libelle { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 20px; }
.indicateur .valeur {
  margin-top: 4px; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.indicateur .valeur small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.indicateur .detail { margin-top: auto; padding-top: 12px; color: var(--muted); font-size: 13px; line-height: 18px; }
.indicateur .jauge { margin-top: 12px; }
.indicateur .jauge + .detail { padding-top: 8px; }
.detail.alerte { color: var(--warn); }
.detail.depasse { color: var(--bad); }

/* ------------------------------------------------------------------ jauges (budget) */
.jauge { height: 6px; border-radius: 3px; background: var(--grille); overflow: hidden; }
.jauge > span { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.jauge.alerte > span { background: var(--warn); }
.jauge.depasse > span { background: var(--bad); }
.budget { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.budget .jauge { width: 100%; max-width: 160px; }
.budget-texte { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-texte.alerte { color: var(--warn); }
.budget-texte.depasse { color: var(--bad); }

/* ------------------------------------------------------------------ graphique en barres (CSS seul) */
.graphique {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: 200px auto;
  column-gap: 12px; margin-top: 8px;
}
.axe-y { position: relative; grid-column: 1; grid-row: 1; }
.axe-y span {
  position: absolute; right: 0; transform: translateY(-50%);
  color: var(--muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.g-haut { top: 0; }
.g-milieu { top: 50%; }
.g-bas { top: 100%; }
.trace {
  position: relative; grid-column: 2; grid-row: 1; height: 200px;
  display: flex; align-items: stretch; border-bottom: 1px solid var(--line-fort);
}
.trace .grille { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--grille); }
.colonne { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.colonne:hover { background: var(--survol); border-radius: 4px 4px 0 0; }
.barre {
  position: relative; width: 60%; max-width: 22px; min-width: 4px;
  background: var(--barre); border-radius: 4px 4px 0 0;
}
.bulle {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 6px 10px; border-radius: 6px; background: var(--bulle); color: var(--bulle-texte);
  font-size: 12px; line-height: 16px; white-space: nowrap; pointer-events: none; box-shadow: var(--ombre-menu);
  font-variant-numeric: tabular-nums;
}
.bulle strong { font-weight: 600; margin-right: 6px; }
.colonne:hover .bulle { display: block; }
.colonne:nth-child(-n+5) .bulle { left: 0; transform: none; }
.colonne:nth-last-child(-n+4) .bulle { left: auto; right: 0; transform: none; }
.axe-x { grid-column: 2; grid-row: 2; display: flex; padding-top: 8px; }
.axe-x span { flex: 1 1 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 16px;
  font-variant-numeric: tabular-nums; }
.axe-x span.aujourdhui { color: var(--fg); font-weight: 600; }
.legende-graphique { display: flex; gap: 24px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.legende-graphique strong { color: var(--fg); font-variant-numeric: tabular-nums; }

details.donnees { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.donnees > summary { cursor: pointer; color: var(--muted); font-size: 13px; width: max-content; }
details.donnees > summary:hover { color: var(--fg); }
details.donnees table { margin-top: 12px; max-width: 360px; }

/* ------------------------------------------------------------------ tableaux */
.tableau { width: 100%; border-collapse: collapse; }
.tableau th {
  padding: 10px 16px; text-align: left; white-space: nowrap;
  color: var(--muted); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.tableau th:first-child, .tableau td:first-child { padding-left: 24px; }
.tableau th:last-child, .tableau td:last-child { padding-right: 24px; }
.carte > .tableau thead tr:first-child th:first-child { border-top-left-radius: var(--rayon); }
.carte > .tableau thead tr:first-child th:last-child { border-top-right-radius: var(--rayon); }
.carte-entete + .tableau thead th { border-radius: 0 !important; }
.tableau td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 20px; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover td { background: var(--surface-2); }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .actions { width: 1%; text-align: right; white-space: nowrap; }
.tableau .compact td { padding-top: 8px; padding-bottom: 8px; }
.tableau.serre td { padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.tableau.journal th, .tableau.journal td { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.tableau.journal th:first-child, .tableau.journal td:first-child { padding-left: 24px; }
.tableau.journal th:last-child, .tableau.journal td:last-child { padding-right: 24px; }
.tableau.journal td.resultat { white-space: normal; min-width: 120px; }
.tableau.journal .coupe { max-width: 170px; }
.tableau .nombre-gauche { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nom { display: block; font-weight: 600; color: var(--fg); }
.secondaire { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.nombre .secondaire { font-variant-numeric: tabular-nums; }
td.notes { max-width: 420px; color: var(--muted); }
.coupe { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ badges (statuts : couleur + libellé) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { color: var(--ok); background: var(--ok-doux); }
.badge.attente { color: var(--warn); background: var(--warn-doux); }
.badge.erreur { color: var(--bad); background: var(--bad-doux); }
.badge.bloque, .badge.neutre { color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge.marque { color: var(--brand); background: var(--brand-doux); }

/* ------------------------------------------------------------------ onglets de filtre */
.onglets { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.onglets a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: -1px;
  color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent;
}
.onglets a:hover { color: var(--fg); text-decoration: none; }
.onglets a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brand); }
.compte { padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: 12px; line-height: 18px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--line-fort); background: var(--surface); color: var(--fg);
  font: 500 14px/1 var(--police); white-space: nowrap; cursor: pointer; box-shadow: var(--ombre);
}
.bouton:hover { background: var(--surface-2); text-decoration: none; }
.bouton.primaire { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.bouton.primaire:hover { background: var(--brand-fort); border-color: var(--brand-fort); }
.bouton.danger { color: var(--bad); }
.bouton.danger:hover { background: var(--bad-doux); }
.bouton.petit { height: 30px; padding: 0 10px; font-size: 13px; }
.bouton.icone-seule { width: 30px; padding: 0; }
.bouton.large { width: 100%; }
@media (prefers-color-scheme: dark) { .bouton.primaire { color: #120D26; } }

/* ------------------------------------------------------------------ menus d'actions (<details>) */
details.menu { position: relative; display: inline-block; text-align: left; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { background: var(--surface-2); }
.menu-panneau {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 300px;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--rayon);
  background: var(--surface); box-shadow: var(--ombre-menu); white-space: normal;
}
.menu-panneau form { margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--fg); font: 500 14px/20px var(--police); text-align: left; cursor: pointer;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item .icone { color: var(--muted); }
.menu-item.danger, .menu-item.danger .icone { color: var(--bad); }
.menu-item.danger:hover { background: var(--bad-doux); }
.menu-formulaire { padding: 8px 10px; }
.menu-formulaire label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.menu-formulaire .ligne { display: flex; gap: 8px; }
.menu-formulaire input { height: 30px; font-size: 13px; }
.menu-formulaire .aide { margin-top: 6px; }

/* ------------------------------------------------------------------ formulaires */
.etiquette { display: block; margin-bottom: 6px; font-weight: 600; }
.aide { color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 6px; }
input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid var(--line-fort); border-radius: 6px; background: var(--surface); color: var(--fg);
  font: 14px var(--police); box-shadow: var(--ombre);
}
select { padding-right: 32px; }
input::placeholder { color: var(--muted); opacity: 0.8; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.suffixe { position: relative; }
.suffixe input { padding-right: 40px; font-variant-numeric: tabular-nums; }
.suffixe > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted);
  pointer-events: none; }

.interrupteur { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.interrupteur input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0;
  position: relative; width: 36px; height: 20px; border-radius: 10px;
  background: var(--line-fort); cursor: pointer; transition: background 0.15s;
}
.interrupteur input::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(18, 13, 38, 0.25); transition: transform 0.15s;
}
.interrupteur input:checked { background: var(--brand); }
.interrupteur input:checked::before { transform: translateX(16px); }
.interrupteur input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.interrupteur strong { display: block; }

/* ------------------------------------------------------------------ réglages */
.section-reglages {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px;
  padding: 24px; border-bottom: 1px solid var(--line);
}
.section-reglages:last-of-type { border-bottom: 0; }
.section-reglages h2 { font-size: 15px; line-height: 20px; font-weight: 600; }
.section-reglages .explication { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 18px; }
.champs { display: grid; gap: 20px; max-width: 520px; }
.champs.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.barre-envoi {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface);
  border-radius: 0 0 var(--rayon) var(--rayon);
}
.barre-envoi p { margin-right: auto; color: var(--muted); font-size: 13px; }

.code-boite { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code {
  padding: 10px 16px; border: 1px dashed var(--line-fort); border-radius: 6px; background: var(--surface-2);
  font-family: var(--mono); font-size: 20px; line-height: 28px; letter-spacing: 0.08em; color: var(--fg);
}
.extrait {
  margin: 0; padding: 16px; overflow-x: auto; border-radius: 6px;
  background: var(--deep); color: #E9E4F8; font: 13px/20px var(--mono);
}
@media (prefers-color-scheme: dark) { .extrait { background: #0B0818; box-shadow: inset 0 0 0 1px var(--line); } }
.extrait-entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.extrait-entete span { font-size: 13px; font-weight: 600; }
.pile { display: grid; gap: 16px; }

/* ------------------------------------------------------------------ états vides */
.vide { padding: 48px 24px; text-align: center; color: var(--muted); }
.vide .icone { width: 32px; height: 32px; color: var(--brand); opacity: 0.55; }
.vide strong { display: block; margin: 12px 0 4px; color: var(--fg); font-size: 15px; }
.vide p { max-width: 420px; margin: 0 auto; }
.vide .bouton { margin-top: 16px; }

/* ------------------------------------------------------------------ pages hors session (connexion, erreur) */
.page-simple { background: var(--surface-2); }
.simple { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 48px 16px; }
.simple-carte {
  width: 100%; max-width: 400px; padding: 40px 32px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(18, 13, 38, 0.05), 0 12px 40px rgba(18, 13, 38, 0.06);
}
.simple-logo { display: block; width: 36px; height: 52px; margin: 0 auto 16px; }
.simple-carte h1 { font-family: var(--police-titre); font-weight: 600; font-size: 20px; line-height: 28px;
  text-align: center; letter-spacing: -0.01em; }
.simple-carte .espace { margin-top: 4px; color: var(--muted); text-align: center; }
.simple-carte form { margin-top: 24px; display: grid; gap: 16px; }
.simple-carte .annonce { margin: 24px 0 0; }
.simple-carte .texte { margin-top: 12px; color: var(--muted); text-align: center; }
.simple-carte .bouton { margin-top: 8px; }
.simple-pied { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.simple-pied .icone { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 1100px) {
  .indicateurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-reglages { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .cadre { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: static; height: auto; gap: 16px; padding: 16px; }
  .colonne-laterale { border-right: 0; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a { width: auto; }
  .lateral-pied { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lateral-pied form { margin-left: auto; }
  .contenu { padding: 24px 16px 48px; }
  .carte-tableau { overflow-x: auto; }
  .entete { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .indicateurs, .champs.deux { grid-template-columns: minmax(0, 1fr); }
  .graphique { grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .interrupteur input, .interrupteur input::before { transition: none; }
}

/* ------------------------------------------------------------------ hauteurs et largeurs en pourcentage
   (classes générées : la CSP interdit les attributs style) */
.h-0 { height: 0%; } .h-1 { height: 1%; } .h-2 { height: 2%; } .h-3 { height: 3%; }
.h-4 { height: 4%; } .h-5 { height: 5%; } .h-6 { height: 6%; } .h-7 { height: 7%; }
.h-8 { height: 8%; } .h-9 { height: 9%; } .h-10 { height: 10%; } .h-11 { height: 11%; }
.h-12 { height: 12%; } .h-13 { height: 13%; } .h-14 { height: 14%; } .h-15 { height: 15%; }
.h-16 { height: 16%; } .h-17 { height: 17%; } .h-18 { height: 18%; } .h-19 { height: 19%; }
.h-20 { height: 20%; } .h-21 { height: 21%; } .h-22 { height: 22%; } .h-23 { height: 23%; }
.h-24 { height: 24%; } .h-25 { height: 25%; } .h-26 { height: 26%; } .h-27 { height: 27%; }
.h-28 { height: 28%; } .h-29 { height: 29%; } .h-30 { height: 30%; } .h-31 { height: 31%; }
.h-32 { height: 32%; } .h-33 { height: 33%; } .h-34 { height: 34%; } .h-35 { height: 35%; }
.h-36 { height: 36%; } .h-37 { height: 37%; } .h-38 { height: 38%; } .h-39 { height: 39%; }
.h-40 { height: 40%; } .h-41 { height: 41%; } .h-42 { height: 42%; } .h-43 { height: 43%; }
.h-44 { height: 44%; } .h-45 { height: 45%; } .h-46 { height: 46%; } .h-47 { height: 47%; }
.h-48 { height: 48%; } .h-49 { height: 49%; } .h-50 { height: 50%; } .h-51 { height: 51%; }
.h-52 { height: 52%; } .h-53 { height: 53%; } .h-54 { height: 54%; } .h-55 { height: 55%; }
.h-56 { height: 56%; } .h-57 { height: 57%; } .h-58 { height: 58%; } .h-59 { height: 59%; }
.h-60 { height: 60%; } .h-61 { height: 61%; } .h-62 { height: 62%; } .h-63 { height: 63%; }
.h-64 { height: 64%; } .h-65 { height: 65%; } .h-66 { height: 66%; } .h-67 { height: 67%; }
.h-68 { height: 68%; } .h-69 { height: 69%; } .h-70 { height: 70%; } .h-71 { height: 71%; }
.h-72 { height: 72%; } .h-73 { height: 73%; } .h-74 { height: 74%; } .h-75 { height: 75%; }
.h-76 { height: 76%; } .h-77 { height: 77%; } .h-78 { height: 78%; } .h-79 { height: 79%; }
.h-80 { height: 80%; } .h-81 { height: 81%; } .h-82 { height: 82%; } .h-83 { height: 83%; }
.h-84 { height: 84%; } .h-85 { height: 85%; } .h-86 { height: 86%; } .h-87 { height: 87%; }
.h-88 { height: 88%; } .h-89 { height: 89%; } .h-90 { height: 90%; } .h-91 { height: 91%; }
.h-92 { height: 92%; } .h-93 { height: 93%; } .h-94 { height: 94%; } .h-95 { height: 95%; }
.h-96 { height: 96%; } .h-97 { height: 97%; } .h-98 { height: 98%; } .h-99 { height: 99%; }
.h-100 { height: 100%; }
.w-0 { width: 0%; } .w-1 { width: 1%; } .w-2 { width: 2%; } .w-3 { width: 3%; }
.w-4 { width: 4%; } .w-5 { width: 5%; } .w-6 { width: 6%; } .w-7 { width: 7%; }
.w-8 { width: 8%; } .w-9 { width: 9%; } .w-10 { width: 10%; } .w-11 { width: 11%; }
.w-12 { width: 12%; } .w-13 { width: 13%; } .w-14 { width: 14%; } .w-15 { width: 15%; }
.w-16 { width: 16%; } .w-17 { width: 17%; } .w-18 { width: 18%; } .w-19 { width: 19%; }
.w-20 { width: 20%; } .w-21 { width: 21%; } .w-22 { width: 22%; } .w-23 { width: 23%; }
.w-24 { width: 24%; } .w-25 { width: 25%; } .w-26 { width: 26%; } .w-27 { width: 27%; }
.w-28 { width: 28%; } .w-29 { width: 29%; } .w-30 { width: 30%; } .w-31 { width: 31%; }
.w-32 { width: 32%; } .w-33 { width: 33%; } .w-34 { width: 34%; } .w-35 { width: 35%; }
.w-36 { width: 36%; } .w-37 { width: 37%; } .w-38 { width: 38%; } .w-39 { width: 39%; }
.w-40 { width: 40%; } .w-41 { width: 41%; } .w-42 { width: 42%; } .w-43 { width: 43%; }
.w-44 { width: 44%; } .w-45 { width: 45%; } .w-46 { width: 46%; } .w-47 { width: 47%; }
.w-48 { width: 48%; } .w-49 { width: 49%; } .w-50 { width: 50%; } .w-51 { width: 51%; }
.w-52 { width: 52%; } .w-53 { width: 53%; } .w-54 { width: 54%; } .w-55 { width: 55%; }
.w-56 { width: 56%; } .w-57 { width: 57%; } .w-58 { width: 58%; } .w-59 { width: 59%; }
.w-60 { width: 60%; } .w-61 { width: 61%; } .w-62 { width: 62%; } .w-63 { width: 63%; }
.w-64 { width: 64%; } .w-65 { width: 65%; } .w-66 { width: 66%; } .w-67 { width: 67%; }
.w-68 { width: 68%; } .w-69 { width: 69%; } .w-70 { width: 70%; } .w-71 { width: 71%; }
.w-72 { width: 72%; } .w-73 { width: 73%; } .w-74 { width: 74%; } .w-75 { width: 75%; }
.w-76 { width: 76%; } .w-77 { width: 77%; } .w-78 { width: 78%; } .w-79 { width: 79%; }
.w-80 { width: 80%; } .w-81 { width: 81%; } .w-82 { width: 82%; } .w-83 { width: 83%; }
.w-84 { width: 84%; } .w-85 { width: 85%; } .w-86 { width: 86%; } .w-87 { width: 87%; }
.w-88 { width: 88%; } .w-89 { width: 89%; } .w-90 { width: 90%; } .w-91 { width: 91%; }
.w-92 { width: 92%; } .w-93 { width: 93%; } .w-94 { width: 94%; } .w-95 { width: 95%; }
.w-96 { width: 96%; } .w-97 { width: 97%; } .w-98 { width: 98%; } .w-99 { width: 99%; }
.w-100 { width: 100%; }
