/* ══════════════════════════════════════════════════════════════════
   MADAL CONTROL — système visuel « Verre nuit émeraude »
   Charte : ruban émeraude → citron vert (logo MADAL), fond nuit, verre dépoli.
   Aucune ressource externe ; aucun style en ligne (CSP stricte).
   ══════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --nuit-0: #030605; --nuit-1: #06100c; --nuit-2: #0a1712; --nuit-3: #0f2019;
  --verre: rgba(255, 255, 255, .035); --verre-2: rgba(255, 255, 255, .06); --verre-3: rgba(255, 255, 255, .09);
  --bord: rgba(255, 255, 255, .075); --bord-2: rgba(255, 255, 255, .13);
  --texte: #e9f3ee; --texte-2: #a9bdb2; --texte-3: #6f857a;
  --emeraude: #10b981; --emeraude-2: #34d399; --emeraude-fonce: #0b6b43; --citron: #a3e635; --citron-2: #bef264;
  --degrade: linear-gradient(135deg, #0fa968 0%, #3cc76a 45%, #a3e635 100%);
  --degrade-doux: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(163, 230, 53, .10));
  --danger: #f87171; --danger-fond: rgba(248, 113, 113, .12);
  --attention: #fbbf24; --attention-fond: rgba(251, 191, 36, .12);
  --info: #7dd3fc; --info-fond: rgba(125, 211, 252, .10);
  --succes: #4ade80; --succes-fond: rgba(74, 222, 128, .12);
  --rayon: 18px; --rayon-s: 12px; --rayon-xs: 9px;
  --ombre: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --largeur-nav: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texte); background: var(--nuit-0);
  font: 400 14.5px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased;
}
body::before {          /* halos de lumière de la charte */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at -10% -10%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(700px 520px at 110% 110%, rgba(163, 230, 53, .09), transparent 60%),
    radial-gradient(600px 400px at 60% -20%, rgba(52, 211, 153, .06), transparent 70%),
    var(--nuit-0);
}
body::after {           /* trame discrète */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23ffffff' stroke-opacity='.025'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
}
a { color: var(--emeraude-2); text-decoration: none; }
a:hover { color: var(--citron-2); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 650; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
.num, td.num, .kpi-valeur { font-variant-numeric: tabular-nums; }
::selection { background: rgba(163, 230, 53, .3); }
:focus-visible { outline: 2px solid var(--citron); outline-offset: 2px; border-radius: 6px; }
.cache { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Structure ─────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--largeur-nav) 1fr; min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px;
  background: linear-gradient(180deg, rgba(6, 16, 12, .92), rgba(3, 6, 5, .92));
  border-right: 1px solid var(--bord); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; gap: 6px;
}
.marque { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: var(--texte); }
.marque img { width: 42px; height: 42px; filter: drop-shadow(0 0 14px rgba(52, 211, 153, .45)); }
.marque-nom { font-weight: 800; letter-spacing: .14em; font-size: 13px; line-height: 1.15; }
.marque-nom span { display: block; font-weight: 500; letter-spacing: .02em; font-size: 11px; color: var(--texte-3); }
.nav-groupe { margin-top: 14px; padding: 0 12px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--texte-3); }
.nav a.lien {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--texte-2);
  font-weight: 500; transition: background .2s, color .2s; position: relative;
}
.nav a.lien svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a.lien:hover { background: var(--verre-2); color: var(--texte); }
.nav a.lien.actif { background: var(--degrade-doux); color: var(--texte); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .22); }
.nav a.lien.actif::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--degrade); }
.nav a.lien.actif svg { color: var(--citron); opacity: 1; }
.nav-pied { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--bord); font-size: 11.5px; color: var(--texte-3); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.barre {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  background: rgba(3, 6, 5, .62); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--bord);
}
.barre-titre { font-size: 13px; color: var(--texte-3); }
.barre-titre strong { color: var(--texte); font-weight: 600; }
.barre-droite { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.puce-agent { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border-radius: 999px;
  background: var(--verre); border: 1px solid var(--bord); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  color: #052012; background: var(--degrade); }
.puce-agent small { display: block; color: var(--texte-3); font-size: 11px; line-height: 1.1; }
.puce-agent b { font-weight: 600; font-size: 12.5px; }
.btn.bouton-menu { display: none; }
.contenu { padding: 30px 32px 64px; max-width: 1480px; width: 100%; }

/* ── En-tête de page ───────────────────────────────────────────── */
.entete { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.entete h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.entete p { margin: 6px 0 0; color: var(--texte-2); }
.entete .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.surtitre { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--emeraude-2); margin-bottom: 6px; }
.degrade-texte { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Cartes et grilles ─────────────────────────────────────────── */
.carte {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); backdrop-filter: blur(14px);
}
.carte-corps { padding: 22px 24px; }
.carte-entete { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--bord); }
.carte-entete h2 { font-size: 15px; font-weight: 650; }
.carte-entete .lien-droite { margin-left: auto; font-size: 13px; }
.grille { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-principal { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.espace { margin-top: 18px; }

/* KPI */
.kpi { padding: 20px 22px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .16), transparent 70%); }
.kpi-libelle { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
.kpi-valeur { margin-top: 10px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.kpi-valeur.vedette { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-note { margin-top: 6px; font-size: 12.5px; color: var(--texte-2); }
.kpi-note.danger { color: var(--danger); }

/* Graphique (barres SVG/HTML) */
.graphe { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 220px; padding: 10px 4px 0; }
.graphe-mois { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.graphe-barres { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.barre-val { width: 42%; max-width: 18px; border-radius: 6px 6px 3px 3px; min-height: 2px; }
.barre-val.fac { background: linear-gradient(180deg, #34d399, #0b6b43); }
.barre-val.enc { background: linear-gradient(180deg, #d9f99d, #65a30d); }
.graphe-etiquette { font-size: 11px; color: var(--texte-3); text-transform: capitalize; }
.legende { display: flex; gap: 16px; font-size: 12px; color: var(--texte-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legende .fac { background: #10b981; } .legende .enc { background: #a3e635; }
.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-10{width:10%}.w-20{width:20%}.w-30{width:30%}.w-40{width:40%}.w-50{width:50%}.w-60{width:60%}.w-70{width:70%}.w-80{width:80%}.w-90{width:90%}.w-100{width:100%}
.jauge { height: 6px; border-radius: 6px; background: var(--verre-2); overflow: hidden; }
.jauge span { display: block; height: 100%; border-radius: 6px; background: var(--degrade); }

/* Alertes */
.alertes { display: flex; flex-direction: column; gap: 10px; }
.alerte { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--rayon-s);
  border: 1px solid var(--bord); background: var(--verre); color: var(--texte); }
.alerte svg { width: 18px; height: 18px; flex: none; }
.alerte.critique { background: var(--danger-fond); border-color: rgba(248, 113, 113, .25); }
.alerte.critique svg { color: var(--danger); }
.alerte.attention { background: var(--attention-fond); border-color: rgba(251, 191, 36, .25); }
.alerte.attention svg { color: var(--attention); }
.alerte .fleche { margin-left: auto; color: var(--texte-3); }
.alerte:hover { border-color: var(--bord-2); color: var(--texte); }

/* ── Tableaux ──────────────────────────────────────────────────── */
.tableau-conteneur { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tableau th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--texte-3); padding: 12px 16px; border-bottom: 1px solid var(--bord); white-space: nowrap; }
.tableau td { padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .045); vertical-align: middle; }
.tableau tbody tr { transition: background .15s; }
.tableau tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau .num, .tableau th.num { text-align: right; white-space: nowrap; }
.tableau .mono, .tableau a.mono { white-space: nowrap; }
.tableau .principal-cellule { font-weight: 600; color: var(--texte); }
.tableau .secondaire { display: block; font-size: 12px; color: var(--texte-3); margin-top: 2px; }
.vide { padding: 44px 20px; text-align: center; color: var(--texte-3); }
.vide svg { width: 34px; height: 34px; color: var(--emeraude-fonce); margin-bottom: 8px; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px;
  font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-succes { color: var(--succes); background: var(--succes-fond); border-color: rgba(74, 222, 128, .2); }
.b-attention { color: var(--attention); background: var(--attention-fond); border-color: rgba(251, 191, 36, .2); }
.b-danger { color: var(--danger); background: var(--danger-fond); border-color: rgba(248, 113, 113, .2); }
.b-info { color: var(--info); background: var(--info-fond); border-color: rgba(125, 211, 252, .2); }
.b-neutre { color: var(--texte-2); background: var(--verre-2); border-color: var(--bord); }
.b-citron { color: #0b1f05; background: var(--degrade); }
.b-citron::before { background: #0b1f05; }

/* ── Boutons ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--bord-2); background: var(--verre-2); color: var(--texte); font: inherit; font-weight: 600;
  font-size: 13.5px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--verre-3); border-color: rgba(255, 255, 255, .2); color: var(--texte); }
.btn:active { transform: translateY(1px); }
.btn-or { color: #04140b; border: 0; background: var(--degrade);
  box-shadow: 0 10px 26px -10px rgba(52, 211, 153, .65), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-or:hover { color: #04140b; box-shadow: 0 14px 34px -10px rgba(163, 230, 53, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
  background: var(--degrade); filter: saturate(1.08) brightness(1.04); }
.btn-danger { color: var(--danger); border-color: rgba(248, 113, 113, .3); background: var(--danger-fond); }
.btn-danger:hover { color: #fecaca; border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .2); }
.btn-fantome { background: transparent; border-color: transparent; color: var(--texte-2); }
.btn-petit { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn-plein { width: 100%; padding: 13px 16px; font-size: 14.5px; }
.groupe-boutons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.en-ligne { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Formulaires ───────────────────────────────────────────────── */
.formulaire { display: grid; gap: 16px; }
.formulaire .ligne { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formulaire .ligne3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.champ label, .etiquette { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--texte-2); }
.champ .aide { margin-top: 6px; font-size: 12px; color: var(--texte-3); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search],
input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--bord-2); color: var(--texte);
  background: rgba(3, 8, 6, .65); font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #536a5f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(52, 211, 153, .6);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); background: rgba(3, 10, 7, .85); }
select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9bdb2' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select option { background: var(--nuit-2); color: var(--texte); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.case { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--texte-2); cursor: pointer; }
.case input { width: 17px; height: 17px; accent-color: var(--emeraude); }
.recherche { position: relative; }
.recherche svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--texte-3); }
.recherche input { padding-left: 38px; min-width: 260px; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; }
.filtre { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--bord); color: var(--texte-2); font-size: 12.5px; font-weight: 600; }
.filtre:hover { color: var(--texte); border-color: var(--bord-2); }
.filtre.actif { color: #06170c; background: var(--degrade); border-color: transparent; }

/* ── Messages ──────────────────────────────────────────────────── */
.messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.message { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--bord);
  background: var(--verre-2); backdrop-filter: blur(12px); animation: apparition .35s ease; }
.message svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.message.succes { border-color: rgba(74, 222, 128, .28); background: var(--succes-fond); } .message.succes svg { color: var(--succes); }
.message.erreur { border-color: rgba(248, 113, 113, .3); background: var(--danger-fond); } .message.erreur svg { color: var(--danger); }
.message.info { border-color: rgba(125, 211, 252, .25); background: var(--info-fond); } .message.info svg { color: var(--info); }
.message.secret { border-color: rgba(163, 230, 53, .45); background: rgba(163, 230, 53, .1); font-weight: 600; }
.message.secret svg { color: var(--citron); }
.message .fermer { margin-left: auto; background: none; border: 0; color: var(--texte-3); cursor: pointer; padding: 0; }
@keyframes apparition { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Listes de définitions ─────────────────────────────────────── */
.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; }
.infos dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.infos dd { margin: 5px 0 0; font-weight: 550; word-break: break-word; }
.separateur { height: 1px; background: var(--bord); margin: 20px 0; }
.chronologie { display: flex; flex-direction: column; }
.chronologie .evt { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 10px 0; }
.chronologie .point { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--degrade);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.chronologie .point.gris { background: var(--texte-3); box-shadow: none; }
.texte-2 { color: var(--texte-2); } .texte-3 { color: var(--texte-3); } .petit { font-size: 12.5px; }
.droite { text-align: right; } .gras { font-weight: 650; }
.montant-fort { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.pile { display: flex; flex-direction: column; gap: 12px; }
.ligne-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pousser { margin-left: auto; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: flex-end; padding: 14px 18px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--bord); color: var(--texte-2); font-size: 13px; }
.pagination .actif { background: var(--degrade); color: #06170c; border: 0; font-weight: 700; }

/* ── Écrans d'authentification ─────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-vitrine { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--bord); background:
    radial-gradient(700px 500px at 30% 35%, rgba(16, 185, 129, .22), transparent 65%),
    radial-gradient(500px 420px at 80% 85%, rgba(163, 230, 53, .14), transparent 60%), var(--nuit-1); }
.auth-vitrine .logo-geant { width: min(360px, 60%); margin: 40px auto; display: block;
  filter: drop-shadow(0 0 60px rgba(52, 211, 153, .35)); animation: flotter 9s ease-in-out infinite; }
@keyframes flotter { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.auth-vitrine h1 { font-size: 40px; line-height: 1.08; font-weight: 750; letter-spacing: -.035em; max-width: 560px; }
.auth-vitrine p { color: var(--texte-2); max-width: 520px; font-size: 15px; }
.auth-points { display: flex; gap: 22px; flex-wrap: wrap; color: var(--texte-2); font-size: 13px; }
.auth-points span { display: inline-flex; align-items: center; gap: 8px; }
.auth-points svg { width: 16px; height: 16px; color: var(--citron); }
.auth-formulaire { display: grid; place-items: center; padding: 40px 24px; }
.auth-carte { width: 100%; max-width: 420px; padding: 38px 34px; }
.auth-carte h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-carte .sous { margin: 8px 0 26px; color: var(--texte-2); }
.champ-code { text-align: center; font-size: 30px !important; letter-spacing: .5em; font-weight: 700; padding-left: .5em !important;
  font-variant-numeric: tabular-nums; }
.qr { display: block; width: 210px; height: 210px; margin: 6px auto 14px; padding: 10px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px var(--bord-2), 0 20px 50px -20px rgba(52, 211, 153, .5); }
.cle-manuelle { text-align: center; font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--citron-2); font-size: 13px; }
.etapes { margin: 0 0 18px; padding-left: 20px; color: var(--texte-2); font-size: 13.5px; }
.etapes li { margin-bottom: 4px; }
.marque-auth { display: flex; align-items: center; gap: 12px; }
.marque-auth img { width: 46px; height: 46px; }

/* ── Erreur ────────────────────────────────────────────────────── */
.page-erreur { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.page-erreur .code { font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }

/* ── Adaptation écrans ─────────────────────────────────────────── */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-principal { grid-template-columns: 1fr; } }
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 0 auto 0 0; width: var(--largeur-nav); z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  .nav.ouvert { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
  .btn.bouton-menu { display: inline-flex; }
  .auth { grid-template-columns: 1fr; } .auth-vitrine { display: none; }
}
@media (max-width: 720px) {
  .contenu, .barre { padding-left: 16px; padding-right: 16px; }
  .g2, .g3, .g4, .formulaire .ligne, .formulaire .ligne3 { grid-template-columns: 1fr; }
  .entete h1 { font-size: 23px; } .recherche input { min-width: 0; width: 100%; }
  .puce-agent .identite { display: none; }
  .graphe { gap: 4px; } .graphe-etiquette { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
