/* =========================================================================
   GeoHomeBase — système de design
   =========================================================================
   Une seule feuille pour toute la plateforme : site public, espace client,
   espace d'administration et ressources développeurs. Les valeurs vivent
   dans des variables : changer l'identité visuelle ne demande pas de
   toucher aux pages.
   ========================================================================= */

:root {
  /* Teintes. Le vert profond évoque la donnée géographique sans tomber
     dans le vert "carte" saturé ; l'ambre sert d'accent, jamais de fond. */
  --gh-encre:        #0B1F2A;
  --gh-encre-douce:  #1C3641;
  --gh-primaire:     #7BB100;
  --gh-primaire-fonce:#6B9A00;
  --gh-primaire-clair:#F0F7DF;
  /* Texte pose sur l'aplat vert. Le blanc n'y tient pas (2,9:1) ; l'encre
     sombre atteint 7,3:1, sur fond clair comme sur fond sombre. */
  --gh-sur-primaire: #16200A;
  --gh-accent:       #E8A33D;
  /* La marque ne depend pas du theme de la page : elle est la meme sur
     l'accueil sombre et dans la console claire. */
  --gh-marque:       #7BB100;
  --gh-danger:       #C0392B;
  --gh-succes:       #157F4C;

  --gh-texte:        #16242B;
  --gh-texte-doux:   #5B6B73;
  --gh-texte-pale:   #8A979E;

  --gh-fond:         #F6F8F8;
  --gh-surface:      #FFFFFF;
  --gh-surface-2:    #F0F4F4;
  --gh-bord:         #DDE5E5;

  --gh-rayon:        10px;
  --gh-rayon-sm:     6px;
  --gh-ombre:        0 1px 2px rgba(11, 31, 42, .06), 0 4px 16px rgba(11, 31, 42, .06);
  --gh-ombre-forte:  0 8px 32px rgba(11, 31, 42, .14);

  --gh-police: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --gh-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --gh-largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--gh-police);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gh-texte);
  background: var(--gh-fond);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gh-primaire); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--gh-encre); font-weight: 650; }
h1 { font-size: 2.1rem; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

code, pre { font-family: var(--gh-mono); font-size: .85em; }

/* ---------------------------------------------------------------- marque */

.gh-marque {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
}
.gh-marque:hover { text-decoration: none; }
.gh-marque svg { flex: 0 0 auto; }
.gh-marque .gh-marque-geo { color: var(--gh-primaire); }

/* ------------------------------------------------------------ navigation */

.gh-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--gh-encre);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gh-nav-in {
  max-width: var(--gh-largeur);
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.gh-nav .gh-marque { color: #fff; }
.gh-nav .gh-marque .gh-marque-geo { color: var(--gh-marque); }

.gh-nav-liens { display: flex; gap: 20px; margin-left: 10px; flex: 1; }
.gh-nav-liens a {
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.gh-nav-liens a:hover { color: #fff; text-decoration: none; }
.gh-nav-liens a.actif { color: #fff; border-bottom-color: var(--gh-accent); }

.gh-nav-actions { display: flex; align-items: center; gap: 10px; }
.gh-nav-actions .gh-btn-fantome { color: #fff; border-color: rgba(255,255,255,.3); }
.gh-nav-actions .gh-btn-fantome:hover { background: rgba(255,255,255,.1); }
.gh-nav-user { font-size: .88rem; color: rgba(255,255,255,.75); }

@media (max-width: 760px) {
  .gh-nav-in { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
  .gh-nav-liens { order: 3; width: 100%; overflow-x: auto; gap: 16px; }
}

/* --------------------------------------------------------------- boutons */

.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--gh-rayon-sm);
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.gh-btn:hover { text-decoration: none; }
.gh-btn:disabled { opacity: .55; cursor: not-allowed; }

.gh-btn-primaire { background: var(--gh-primaire); color: var(--gh-sur-primaire); }
.gh-btn-primaire:hover:not(:disabled) { background: var(--gh-primaire-fonce); }

.gh-btn-secondaire { background: var(--gh-surface); color: var(--gh-texte); border-color: var(--gh-bord); }
.gh-btn-secondaire:hover:not(:disabled) { background: var(--gh-surface-2); }

.gh-btn-fantome { background: transparent; color: var(--gh-texte); border-color: var(--gh-bord); }
.gh-btn-fantome:hover:not(:disabled) { background: var(--gh-surface-2); }

.gh-btn-danger { background: transparent; color: var(--gh-danger); border-color: #E9C4BF; }
.gh-btn-danger:hover:not(:disabled) { background: #FCEFEd; }

.gh-btn-sm { padding: 5px 11px; font-size: .82rem; }
.gh-btn-lg { padding: 12px 26px; font-size: 1rem; }

/* ------------------------------------------------------------ conteneurs */

.gh-page { max-width: var(--gh-largeur); margin: 0 auto; padding: 34px 20px 70px; }
.gh-page-etroite { max-width: 520px; }

.gh-carte {
  background: var(--gh-surface);
  border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon);
  box-shadow: var(--gh-ombre);
}
.gh-carte-corps { padding: 22px 24px; }
.gh-carte-tete {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gh-bord);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.gh-carte-tete h2, .gh-carte-tete h3 { margin: 0; }

.gh-section { margin-bottom: 34px; }
.gh-section > h2 { margin-bottom: 6px; }
.gh-section > .gh-sous-titre { color: var(--gh-texte-doux); margin-bottom: 18px; }

/* ------------------------------------------------------------ formulaires */

.gh-champ { margin-bottom: 16px; }
.gh-champ label,
.gh-label {
  display: block;
  margin-bottom: 5px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gh-texte);
}
.gh-aide { font-size: .8rem; color: var(--gh-texte-doux); margin-top: 4px; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=url], select, textarea {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: .93rem;
  color: var(--gh-texte);
  background: var(--gh-surface);
  border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gh-primaire);
  box-shadow: 0 0 0 3px var(--gh-primaire-clair);
}
input[type=file] {
  width: 100%;
  padding: 8px;
  font-size: .9rem;
  background: var(--gh-surface-2);
  border: 1px dashed var(--gh-bord);
  border-radius: var(--gh-rayon-sm);
}
input[type=checkbox] { width: auto; }

.gh-message { font-size: .88rem; margin-top: 10px; min-height: 1.2em; }
.gh-message.erreur  { color: var(--gh-danger); }
.gh-message.succes  { color: var(--gh-succes); }

/* --------------------------------------------------------------- tableaux */

.gh-tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gh-tableau th, .gh-tableau td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--gh-bord);
  vertical-align: top;
}
.gh-tableau th {
  background: var(--gh-surface-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gh-texte-doux);
  font-weight: 700;
}
.gh-tableau tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------- étiquettes */

.gh-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.gh-badge.ready, .gh-badge.active   { background: #DCF3E7; color: #10603F; }
.gh-badge.importing                 { background: #DEEAF6; color: #1B4B7E; }
.gh-badge.partial, .gh-badge.pending_payment { background: #FCF0D8; color: #7A5312; }
.gh-badge.failed, .gh-badge.suspended{ background: #FBE3E0; color: #8C2A1E; }

/* ------------------------------------------------------------------- code */

.gh-code {
  background: #0E2029;
  color: #D7E4E8;
  border-radius: var(--gh-rayon-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--gh-mono);
  font-size: .82rem;
  line-height: 1.6;
  margin: 0;
  tab-size: 2;
}
.gh-code .cm  { color: #6E8B95; font-style: italic; } /* commentaire */
.gh-code .ch  { color: #9BD8A8; }                     /* chaîne */
.gh-code .kw  { color: #7FC9E8; }                     /* mot-clé */
.gh-code .nb  { color: #E3B778; }                     /* nombre */
.gh-code .fn  { color: #E6C07B; }                     /* fonction */

.gh-lien-copiable {
  display: flex;
  gap: 7px;
  align-items: stretch;
  margin-bottom: 6px;
}
.gh-lien-copiable code {
  flex: 1;
  min-width: 0;
  background: var(--gh-surface-2);
  border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon-sm);
  padding: 7px 10px;
  font-size: .76rem;
  word-break: break-all;
  color: var(--gh-texte-doux);
}

/* --------------------------------------------------------------- grilles */

.gh-grille { display: grid; gap: 18px; }
.gh-grille-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gh-grille-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ----------------------------------------------------------------- héros */

.gh-heros {
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(123, 177, 0, .18), transparent 60%),
    linear-gradient(160deg, var(--gh-encre) 0%, var(--gh-encre-douce) 100%);
  color: #fff;
  padding: 74px 20px 84px;
}
.gh-heros-in { max-width: var(--gh-largeur); margin: 0 auto; }
.gh-heros h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  max-width: 15em;
  margin-bottom: .35em;
}
.gh-heros p.gh-accroche {
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  max-width: 44em;
  margin-bottom: 28px;
}
.gh-heros-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gh-heros .gh-btn-secondaire {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.gh-heros .gh-btn-secondaire:hover { background: rgba(255,255,255,.12); }

.gh-surtitre {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gh-accent);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- pied de page */

.gh-pied {
  background: var(--gh-encre);
  color: rgba(255,255,255,.62);
  padding: 34px 20px;
  font-size: .87rem;
  margin-top: 60px;
}
.gh-pied-in {
  max-width: var(--gh-largeur);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.gh-pied a { color: rgba(255,255,255,.82); }

/* --------------------------------------------------- barre de progression */

.gh-progression { margin-top: 18px; padding: 16px 18px; }
.gh-progression-tete {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 9px;
}
.gh-progression-phase { font-weight: 650; }
.gh-progression-pourcent {
  font-size: 1.35rem; font-weight: 700; color: var(--gh-primaire);
  font-variant-numeric: tabular-nums;
}
.gh-piste { height: 9px; background: var(--gh-surface-2); border-radius: 999px; overflow: hidden; }
.gh-remplissage {
  height: 100%; width: 0%; border-radius: 999px;
  background: var(--gh-primaire); transition: width .25s ease;
}
.gh-remplissage.indetermine {
  width: 100% !important;
  background: repeating-linear-gradient(45deg,
    var(--gh-primaire), var(--gh-primaire) 10px, #35A98F 10px, #35A98F 20px);
  animation: gh-defile 1s linear infinite;
}
@keyframes gh-defile { from { background-position: 0 0; } to { background-position: 40px 0; } }
.gh-remplissage.fini   { background: var(--gh-succes); }
.gh-remplissage.echoue { background: var(--gh-danger); }
.gh-progression-detail {
  margin-top: 8px; display: flex; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: var(--gh-texte-doux);
}
.gh-progression-erreurs {
  margin-top: 10px; padding: 9px 11px; background: #FCEFEC; border-radius: var(--gh-rayon-sm);
  font-size: .78rem; color: #8C2A1E; max-height: 150px; overflow-y: auto;
}
.gh-progression-erreurs ul { margin: 5px 0 0; padding-left: 18px; }

@media (prefers-reduced-motion: reduce) {
  .gh-remplissage { transition: none; }
  .gh-remplissage.indetermine { animation: none; }
}

/* ---------------------------------------------------------------- divers */

.gh-vide {
  padding: 40px 20px;
  text-align: center;
  color: var(--gh-texte-doux);
  border: 1px dashed var(--gh-bord);
  border-radius: var(--gh-rayon);
}
.gh-separateur { height: 1px; background: var(--gh-bord); border: none; margin: 26px 0; }
.gh-discret { color: var(--gh-texte-doux); font-size: .86rem; }
.gh-mono { font-family: var(--gh-mono); }

/* =========================================================================
   Composants de l'espace client
   =========================================================================
   Ces classes sont produites par client/app.js. Elles sont définies ici pour
   que la logique du tableau de bord n'ait pas à être réécrite à chaque
   évolution de l'identité visuelle.
   ========================================================================= */

.message { font-size: .88rem; margin-top: 10px; }
.message.error   { color: var(--gh-danger); }
.message.success { color: var(--gh-succes); }

/* --- progression d'un import --- */
#progress-box {
  margin-top: 18px; padding: 16px 18px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon);
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.progress-phase { font-weight: 650; font-size: .95rem; }
.progress-percent { font-size: 1.35rem; font-weight: 700; color: var(--gh-primaire); font-variant-numeric: tabular-nums; }
.progress-track { height: 9px; background: var(--gh-surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--gh-primaire); transition: width .25s ease; }
.progress-fill.indeterminate {
  width: 100% !important;
  background: repeating-linear-gradient(45deg, var(--gh-primaire), var(--gh-primaire) 10px, #35A98F 10px, #35A98F 20px);
  animation: gh-defile 1s linear infinite;
}
.progress-fill.done   { background: var(--gh-succes); }
.progress-fill.failed { background: var(--gh-danger); }
.progress-detail { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--gh-texte-doux); }
.progress-current { font-family: var(--gh-mono); }
.progress-errors {
  margin-top: 10px; padding: 9px 11px; background: #FCEFEC;
  border-radius: var(--gh-rayon-sm); font-size: .78rem; color: #8C2A1E;
  max-height: 150px; overflow-y: auto;
}
.progress-errors ul { margin: 5px 0 0; padding-left: 18px; }
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
  .progress-fill.indeterminate { animation: none; }
}

/* --- liens copiables --- */
.link-label {
  display: block; margin: 10px 0 3px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gh-texte-pale);
}
.link-block { margin-bottom: 12px; }
.link-row { display: flex; gap: 7px; align-items: stretch; }
code.link {
  display: block; flex: 1; min-width: 0;
  background: var(--gh-surface-2);
  border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon-sm);
  padding: 7px 10px; font-size: .74rem;
  word-break: break-all; color: var(--gh-texte-doux);
  margin-bottom: 5px;
}
.link-row code.link { margin-bottom: 0; }
.copy-btn {
  flex: 0 0 auto; padding: 4px 11px; font: inherit; font-size: .78rem; font-weight: 600;
  border: 1px solid var(--gh-bord); background: var(--gh-surface);
  color: var(--gh-texte); border-radius: var(--gh-rayon-sm); cursor: pointer;
}
.copy-btn:hover { background: var(--gh-surface-2); }
.copy-btn.copied { background: #DCF3E7; border-color: #9AD9BC; color: #10603F; }

/* --- liste des couches --- */
details.layers > summary {
  cursor: pointer; font-size: .88rem; color: var(--gh-texte);
  padding: 7px 0; user-select: none;
}
details.layers > summary strong { color: var(--gh-primaire); }
.layer-filter {
  width: 100%; margin: 8px 0 4px; padding: 7px 9px;
  font-size: .86rem; border: 1px solid var(--gh-bord); border-radius: var(--gh-rayon-sm);
}
.layer-list { margin: 6px 0 0; padding-left: 0; list-style: none; font-size: .86rem; }
.layer-list li { padding: 12px 0; border-bottom: 1px solid var(--gh-bord); }
.layer-list li:last-child { border-bottom: none; }
.layer-name { font-weight: 650; }
.layer-meta { color: var(--gh-texte-doux); font-size: .78rem; margin-left: 6px; }

/* --- réglage de l'étiquetage --- */
.etiquette { margin-top: 10px; }
.etiquette-ligne { display: flex; align-items: center; gap: 9px; }
.etiquette-etat { font-size: .8rem; color: var(--gh-texte-doux); }
.etiquette-btn {
  padding: 4px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--gh-bord); background: var(--gh-surface);
  border-radius: var(--gh-rayon-sm); color: var(--gh-texte);
}
.etiquette-btn:hover { background: var(--gh-surface-2); }
.etiquette-form {
  margin-top: 10px; padding: 14px; background: var(--gh-surface-2);
  border: 1px solid var(--gh-bord); border-radius: var(--gh-rayon-sm); font-size: .86rem;
}
.etiquette-form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: .82rem; }
.etiquette-form select, .etiquette-form input[type=number] { margin-top: 4px; font-weight: 400; }
.etiquette-toutes {
  display: flex; align-items: center; gap: 7px;
  font-weight: 400 !important; font-size: .8rem; color: var(--gh-texte-doux);
}
.etiquette-toutes input { width: auto !important; margin: 0 !important; }
.etiquette-compte { color: var(--gh-texte-pale); }
.etiquette-actions { display: flex; align-items: center; gap: 11px; }
.etiquette-appliquer {
  padding: 6px 15px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--gh-primaire); border: none; border-radius: var(--gh-rayon-sm);
}
.etiquette-appliquer:hover { background: var(--gh-primaire-fonce); }
.etiquette-msg { font-size: .8rem; color: var(--gh-succes); }
.etiquette-aide { margin: 9px 0 0; font-size: .74rem; color: var(--gh-texte-pale); }

/* --- badges de statut (mêmes noms que les statuts renvoyés par l'API) --- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
}
.badge.ready, .badge.active            { background: #DCF3E7; color: #10603F; }
.badge.importing                        { background: #DEEAF6; color: #1B4B7E; }
.badge.partial, .badge.pending_payment  { background: #FCF0D8; color: #7A5312; }
.badge.failed, .badge.suspended         { background: #FBE3E0; color: #8C2A1E; }

button.danger {
  padding: 5px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--gh-danger); background: transparent;
  border: 1px solid #E9C4BF; border-radius: var(--gh-rayon-sm);
}
button.danger:hover { background: #FCEFEC; }

/* --- onglets de l'espace d'administration --- */
nav.tabs { display: flex; gap: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--gh-bord); }
nav.tabs a {
  padding: 9px 2px; text-decoration: none; color: var(--gh-texte-doux);
  font-size: .92rem; font-weight: 600; border-bottom: 2px solid transparent;
}
nav.tabs a:hover { color: var(--gh-texte); text-decoration: none; }
nav.tabs a.active { color: var(--gh-encre); border-bottom-color: var(--gh-primaire); }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--gh-bord); vertical-align: top; }
th {
  background: var(--gh-surface-2); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gh-texte-doux); font-weight: 700;
}

/* =========================================================================
   Gestionnaire de cartes (espace client) — console « mg- »
   =========================================================================
   Mise en page de console inspirée des gestionnaires de services
   cartographiques (SuperMap iServer, ArcGIS Enterprise) : barre latérale,
   fil d'Ariane, galerie de services avec vignettes, fiche à onglets
   verticaux, assistant de publication. Clair par défaut, sombre au choix.
   ========================================================================= */

:root {
  --mg-side-fond:   #0B1F2A;
  --mg-plein:       #7BB100;   /* aplats d'action, sous encre sombre */
  --mg-plein-fonce: #6B9A00;
  --mg-vignette-fond: #EEF3F3;
  --mg-quadrillage: rgba(11, 31, 42, .055);
  --mg-top-fond:    rgba(246, 248, 248, .88);

  /* Séries catégorielles (ordre fixe, palette validée daltonisme) */
  --mg-serie-1: #2a78d6;
  --mg-serie-2: #eb6834;
  --mg-serie-3: #1baf7a;
  --mg-serie-4: #eda100;
  --mg-serie-5: #e87ba4;
  --mg-neutre:  #9AA6AB;

  /* Statuts (réservés, toujours accompagnés d'une icône et d'un libellé) */
  --mg-statut-bon:      #0ca30c;
  --mg-statut-alerte:   #fab219;
  --mg-statut-critique: #d03b3b;

  --mg-ok-fond: #DCF3E7;      --mg-ok-texte: #10603F;
  --mg-info-fond: #DEEAF6;    --mg-info-texte: #1B4B7E;
  --mg-alerte-fond: #FCF0D8;  --mg-alerte-texte: #7A5312;
  --mg-erreur-fond: #FBE3E0;  --mg-erreur-texte: #8C2A1E;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --gh-texte:        #E3EAEC;
  --gh-texte-doux:   #A3B3B9;
  --gh-texte-pale:   #74868D;
  --gh-fond:         #0F171B;
  --gh-surface:      #172126;
  --gh-surface-2:    #1E2A30;
  --gh-bord:         #2A3940;
  --gh-primaire:     #4CC3A0;
  --gh-primaire-fonce:#6FD3B5;
  --gh-primaire-clair: rgba(76, 195, 160, .14);
  --gh-danger:       #E77474;
  --gh-succes:       #5BCB92;
  --gh-ombre:        0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.25);
  --gh-ombre-forte:  0 10px 36px rgba(0,0,0,.5);

  --mg-side-fond:   #0A1216;
  --mg-plein:       #8CC70B;
  --mg-plein-fonce: #9FD92A;
  --mg-vignette-fond: #E8EEEE; /* les cartes publiées sont dessinées pour un fond clair */
  --mg-quadrillage: rgba(11, 31, 42, .06);
  --mg-top-fond:    rgba(15, 23, 27, .86);

  --mg-serie-1: #3987e5;
  --mg-serie-2: #d95926;
  --mg-serie-3: #199e70;
  --mg-serie-4: #c98500;
  --mg-serie-5: #d55181;
  --mg-neutre:  #5E6E75;

  --mg-ok-fond: rgba(12,163,12,.17);      --mg-ok-texte: #86DCA2;
  --mg-info-fond: rgba(57,135,229,.18);   --mg-info-texte: #9CC4F2;
  --mg-alerte-fond: rgba(250,178,25,.16); --mg-alerte-texte: #F4CC74;
  --mg-erreur-fond: rgba(208,59,59,.18);  --mg-erreur-texte: #F2A6A6;
}

.mg-body [hidden] { display: none !important; }
.mg-body { background: var(--gh-fond); }
.mg-body h1, .mg-body h2, .mg-body h3, .mg-body h4 { color: var(--gh-texte); }
.mg-body.mg-modale-ouverte { overflow: hidden; }
.mg-ic { width: 16px; height: 16px; flex: none; }
.mg-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mg-petit { font-size: .82rem; }
.mg-body :focus-visible { outline: 2px solid var(--gh-primaire); outline-offset: 2px; }

/* Les fonds pleins gardent un vert assez sombre pour le texte blanc */
.mg-body .gh-btn-primaire, .mg-body .etiquette-appliquer { background: var(--mg-plein); }
.mg-body .gh-btn-primaire:hover:not(:disabled),
.mg-body .etiquette-appliquer:hover { background: var(--mg-plein-fonce); }
.mg-body .progress-fill { background: var(--mg-plein); }
.mg-body .progress-fill.done { background: var(--mg-statut-bon); }
.mg-body .progress-fill.failed { background: var(--mg-statut-critique); }
html[data-theme="dark"] .mg-body .gh-btn-danger { border-color: rgba(231,116,116,.45); }
html[data-theme="dark"] .mg-body .gh-btn-danger:hover:not(:disabled) { background: var(--mg-erreur-fond); }
html[data-theme="dark"] .copy-btn.copied { background: var(--mg-ok-fond); border-color: transparent; color: var(--mg-ok-texte); }
html[data-theme="dark"] .progress-errors { background: var(--mg-erreur-fond); color: var(--mg-erreur-texte); }
html[data-theme="dark"] .badge.ready { background: var(--mg-ok-fond); color: var(--mg-ok-texte); }
html[data-theme="dark"] .badge.importing { background: var(--mg-info-fond); color: var(--mg-info-texte); }
html[data-theme="dark"] .badge.partial { background: var(--mg-alerte-fond); color: var(--mg-alerte-texte); }
html[data-theme="dark"] .badge.failed { background: var(--mg-erreur-fond); color: var(--mg-erreur-texte); }

/* ------------------------------------------------------------ structure */

.mg-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.mg-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 18px 12px 14px;
  background: var(--mg-side-fond);
  color: rgba(255,255,255,.76);
  z-index: 60;
}
.mg-side-marque { color: #fff; padding: 4px 10px; }
.mg-side-marque .gh-marque-geo { color: var(--gh-marque); }
.mg-side-sous {
  display: block; padding: 2px 10px 20px 45px;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gh-accent);
}
.mg-side-nav { display: flex; flex-direction: column; gap: 3px; }
.mg-side-nav a, .mg-side-publier {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  color: inherit; font: inherit; font-size: .92rem; font-weight: 560;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.mg-side-nav svg, .mg-side-publier svg { width: 19px; height: 19px; flex: none; }
.mg-side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.mg-side-nav a.actif { background: rgba(255,255,255,.09); color: #fff; }
.mg-side-nav a.actif::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gh-marque);
}
.mg-side-publier { margin: 6px 0; color: var(--gh-marque); background: rgba(123, 177, 0, .14); }
.mg-side-publier:hover { background: rgba(123, 177, 0, .22); }
.mg-side-compteur {
  margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-align: center; line-height: 20px;
  background: rgba(255,255,255,.1); color: #fff;
}
.mg-side-compteur:empty { display: none; }

.mg-side-pied { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.mg-side-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; }
.mg-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #1C3641; color: var(--gh-marque); font-weight: 700;
}
.mg-side-user-txt { display: flex; flex-direction: column; min-width: 0; font-size: .82rem; }
.mg-side-user-txt strong { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-side-user-txt span { color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-side-sortie {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: rgba(255,255,255,.62); font-size: .86rem;
}
.mg-side-sortie svg { width: 17px; height: 17px; }
.mg-side-sortie:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }

.mg-main { min-width: 0; display: flex; flex-direction: column; }

.mg-top {
  position: sticky; top: 0; z-index: 50;
  height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: var(--mg-top-fond);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gh-bord);
}
.mg-fil { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--gh-texte-doux); min-width: 0; }
.mg-fil a { color: var(--gh-texte-doux); }
.mg-fil a:hover { color: var(--gh-primaire); }
.mg-fil > span:last-child { color: var(--gh-texte); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-fil-sep { color: var(--gh-texte-pale); }
.mg-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.mg-icone-btn {
  width: 36px; height: 36px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--gh-bord); border-radius: 8px;
  background: var(--gh-surface); color: var(--gh-texte-doux); cursor: pointer;
}
.mg-icone-btn svg { width: 18px; height: 18px; }
.mg-icone-btn:hover { color: var(--gh-texte); background: var(--gh-surface-2); }
.mg-menu-btn { display: none; }

.mg-contenu { width: 100%; max-width: 1440px; padding: 26px 28px 70px; }
.mg-titre { font-size: 1.55rem; margin: 0 0 4px; }
.mg-sous-titre { color: var(--gh-texte-doux); margin: 0 0 22px; }

.mg-panneau {
  background: var(--gh-surface);
  border: 1px solid var(--gh-bord);
  border-radius: 12px;
  box-shadow: var(--gh-ombre);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.mg-panneau-plein { padding: 18px 20px 22px; }
.mg-panneau-titre { font-size: .95rem; font-weight: 650; margin: 0 0 14px; }
.mg-panneau-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mg-lien-discret { font-size: .86rem; }

/* --------------------------------------------------------------- accueil */

.mg-grille-accueil { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; margin-bottom: 18px; }
.mg-grille-accueil > .mg-panneau { margin-bottom: 0; }
.mg-grille-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mg-rapides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mg-rapide {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 6px 12px; border-radius: 10px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 600; line-height: 1.3;
  color: var(--gh-texte); text-align: center;
}
.mg-rapide:hover { background: var(--gh-surface-2); border-color: var(--gh-bord); text-decoration: none; }
.mg-rapide-ic {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gh-primaire-clair); color: var(--gh-primaire);
  transition: transform .15s;
}
.mg-rapide:hover .mg-rapide-ic { transform: translateY(-2px); }
.mg-rapide-ic svg { width: 23px; height: 23px; }

.mg-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mg-chiffre { padding: 16px 14px; border-radius: 10px; background: var(--gh-surface-2); }
.mg-chiffre strong {
  display: block; font-size: 1.85rem; font-weight: 700; line-height: 1.1;
  color: var(--gh-texte); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.mg-chiffre span { font-size: .8rem; color: var(--gh-texte-doux); }

/* Graphiques « part du tout » : barre empilée + légende chiffrée */
.mg-graphe-total { font-size: .85rem; color: var(--gh-texte-doux); }
.mg-graphe-total strong { font-size: 1.35rem; color: var(--gh-texte); font-variant-numeric: tabular-nums; margin-right: 3px; }
.mg-pile { display: flex; gap: 2px; height: 14px; margin: 10px 0 14px; }
.mg-pile-seg { min-width: 4px; transition: opacity .15s; }
.mg-pile-seg:first-child { border-radius: 4px 0 0 4px; }
.mg-pile-seg:last-child { border-radius: 0 4px 4px 0; }
.mg-pile-seg:only-child { border-radius: 4px; }
.mg-pile:hover .mg-pile-seg:not(:hover) { opacity: .45; }
.mg-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mg-legende li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--gh-texte); }
.mg-legende .mg-ic { width: 14px; height: 14px; color: var(--gh-texte-doux); }
.mg-puce { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mg-legende-val { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.mg-legende-val small { font-weight: 500; color: var(--gh-texte-pale); margin-left: 7px; display: inline-block; min-width: 2.8em; text-align: right; }
.mg-graphe-vide { margin: 6px 0 0; }
.mg-graphe-note { margin: 12px 0 0; }

.mg-infobulle {
  position: fixed; z-index: 2000; pointer-events: none;
  padding: 6px 10px; border-radius: 6px;
  background: #0B1F2A; color: #fff; font-size: .78rem; box-shadow: var(--gh-ombre-forte);
}

/* ------------------------------------------------- barre d'outils, filtres */

.mg-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mg-barre-gauche { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mg-barre-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mg-filtre { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--gh-texte-doux); }
.mg-filtre select, .mg-pagination select { width: auto; padding: 7px 10px; font-size: .86rem; }
.mg-recherche { position: relative; }
.mg-recherche input { width: 230px; padding-right: 34px; }
.mg-recherche svg {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--gh-texte-pale); pointer-events: none;
}
.mg-barre-selection { padding-top: 12px; border-top: 1px solid var(--gh-bord); }
.mg-total { font-size: .84rem; color: var(--gh-texte-doux); }
#btn-selection.actif { background: var(--gh-primaire-clair); border-color: var(--gh-primaire); color: var(--gh-primaire); }
.mg-btn-danger-plein { background: var(--gh-danger); color: #fff; }
.mg-btn-danger-plein:hover:not(:disabled) { background: #A93226; }

/* ------------------------------------------------------- galerie de cartes */

.mg-grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.mg-tuile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--gh-surface);
  border: 1px solid var(--gh-bord);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.mg-tuile:hover { box-shadow: var(--gh-ombre-forte); border-color: color-mix(in srgb, var(--gh-primaire) 45%, var(--gh-bord)); }
.mg-tuile.selectionnee { border-color: var(--gh-primaire); box-shadow: 0 0 0 2px var(--gh-primaire); }
.mg-tuile-visuel { display: block; }

.mg-case {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; padding: 4px; border-radius: 6px;
  background: var(--gh-surface); box-shadow: var(--gh-ombre);
}
.mg-case input { width: 17px; height: 17px; margin: 0; accent-color: var(--mg-plein); cursor: pointer; }

.mg-vignette {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--mg-vignette-fond);
  background-image:
    linear-gradient(var(--mg-quadrillage) 1px, transparent 1px),
    linear-gradient(90deg, var(--mg-quadrillage) 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--gh-bord);
}
.mg-vignette img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s, transform .4s;
}
.mg-vignette.chargee img { opacity: 1; }
.mg-tuile:hover .mg-vignette img { transform: scale(1.03); }
.mg-vignette-repli { color: #8A979E; transition: opacity .3s; }
.mg-vignette.chargee .mg-vignette-repli { opacity: 0; }
.mg-vignette-ic { width: 54px; height: 54px; opacity: .75; }

.mg-tuile-corps { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 12px; }
.mg-tuile-titre { display: flex; align-items: center; gap: 8px; }
.mg-tuile-titre a {
  flex: 1; min-width: 0;
  font-weight: 650; color: var(--gh-texte);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mg-tuile-titre a:hover { color: var(--gh-primaire); }
.mg-tuile-titre .mg-statut { padding: 2px; }
.mg-tuile-titre .mg-statut > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.mg-statut {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px 2px 4px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.mg-statut .mg-ic {
  width: 16px; height: 16px; padding: 2px; border-radius: 50%;
  color: #fff;
}
.mg-statut.ready     { background: var(--mg-ok-fond);     color: var(--mg-ok-texte); }
.mg-statut.partial   { background: var(--mg-alerte-fond); color: var(--mg-alerte-texte); }
.mg-statut.importing { background: var(--mg-info-fond);   color: var(--mg-info-texte); }
.mg-statut.failed    { background: var(--mg-erreur-fond); color: var(--mg-erreur-texte); }
.mg-statut.ready .mg-ic     { background: var(--mg-statut-bon); }
.mg-statut.partial .mg-ic   { background: #B07A00; }
.mg-statut.importing .mg-ic { background: var(--mg-serie-1); animation: mg-tourne 1.4s linear infinite; }
.mg-statut.failed .mg-ic    { background: var(--mg-statut-critique); }
@keyframes mg-tourne { to { transform: rotate(360deg); } }

.mg-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-tag {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  font-size: .72rem; font-weight: 600;
  color: var(--gh-texte-doux); background: var(--gh-surface-2); border: 1px solid var(--gh-bord);
}
.mg-tag-discret { background: transparent; }
.mg-tag:empty { display: none; }
.mg-tuile-interfaces { font-size: .8rem; color: var(--gh-texte-doux); }
.mg-iface { margin-left: 5px; font-size: .76rem; font-weight: 700; color: var(--gh-primaire); }
.mg-tuile-meta { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--gh-texte-doux); }
.mg-tuile-meta > span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.mg-tuile-meta .mg-ic { width: 15px; height: 15px; color: var(--gh-texte-pale); }
.mg-tuile-date { margin-left: auto; }
.mg-tuile-erreur { margin: 0; font-size: .76rem; color: var(--gh-danger); line-height: 1.4; }

.mg-tuile-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gh-bord); }
.mg-action {
  display: grid; place-items: center; height: 40px;
  background: none; border: 0; border-right: 1px solid var(--gh-bord);
  color: var(--gh-texte-doux); cursor: pointer;
}
.mg-action:last-child { border-right: 0; }
.mg-action svg { width: 18px; height: 18px; }
.mg-action:hover { background: var(--gh-surface-2); color: var(--gh-primaire); text-decoration: none; }
.mg-action.copied { color: var(--gh-succes); }
.mg-action-danger:hover { color: var(--gh-danger); }
.mg-action:disabled, .mg-action[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.mg-squelette { min-height: 290px; padding: 0; }
.mg-squelette > div { background: var(--gh-surface-2); animation: mg-pulse 1.3s ease-in-out infinite; }
.mg-squelette > div:nth-child(1) { aspect-ratio: 16 / 10; }
.mg-squelette > div:nth-child(2) { height: 14px; margin: 16px 14px 10px; width: 65%; border-radius: 4px; }
.mg-squelette > div:nth-child(3) { height: 12px; margin: 0 14px; width: 40%; border-radius: 4px; }
@keyframes mg-pulse { 50% { opacity: .5; } }

.mg-vide {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 46px 20px; text-align: center;
  border: 1px dashed var(--gh-bord); border-radius: 12px;
  color: var(--gh-texte-doux);
}
.mg-vide-ic { width: 52px; height: 52px; color: var(--gh-texte-pale); }
.mg-vide strong { color: var(--gh-texte); font-size: 1.05rem; }
.mg-vide p { max-width: 34em; margin: 0 0 8px; }

.mg-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 22px; }
.mg-pagination:empty { display: none; }
.mg-pages { display: flex; align-items: center; gap: 5px; }
.mg-pages button {
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--gh-bord); border-radius: 6px;
  background: var(--gh-surface); color: var(--gh-texte); font: inherit; font-size: .86rem; cursor: pointer;
}
.mg-pages button:hover:not(:disabled) { border-color: var(--gh-primaire); color: var(--gh-primaire); }
.mg-pages button.actif { background: var(--mg-plein); border-color: var(--mg-plein); color: var(--gh-sur-primaire); }
.mg-pages button:disabled { opacity: .4; cursor: default; }
.mg-pagination-trou { color: var(--gh-texte-pale); padding: 0 2px; }

/* ----------------------------------------------------------- fiche carte */

.mg-fiche-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mg-fiche-tete .mg-titre { word-break: break-word; }
.mg-fiche-sous { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.mg-fiche-actions { display: flex; gap: 8px; }

.mg-fiche { display: grid; grid-template-columns: 230px minmax(0, 1fr); padding: 0; overflow: hidden; }
.mg-onglets { display: flex; flex-direction: column; padding: 16px 0; border-right: 1px solid var(--gh-bord); background: var(--gh-surface-2); }
.mg-onglets button {
  padding: 11px 20px; text-align: left; cursor: pointer;
  background: none; border: 0; border-right: 3px solid transparent;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--gh-texte-doux);
  margin-right: -1px;
}
.mg-onglets button:hover { color: var(--gh-texte); }
.mg-onglets button.actif { color: var(--gh-primaire); background: var(--gh-surface); border-right-color: var(--gh-primaire); }
.mg-onglet-corps { padding: 22px 28px 28px; min-width: 0; }
.mg-onglet-titre { font-size: 1.05rem; padding-bottom: 12px; margin: 0 0 18px; border-bottom: 1px solid var(--gh-bord); }
.mg-onglet-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--gh-bord); margin-bottom: 14px; }
.mg-onglet-tete .mg-onglet-titre { border: 0; margin: 0; }
.mg-onglet-tete .layer-filter { width: 280px; margin: 0 0 10px; }
.mg-compte {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  font-size: .76rem; line-height: 20px; vertical-align: middle;
  background: var(--gh-surface-2); color: var(--gh-texte-doux);
}

.mg-infos { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 26px; align-items: start; margin-bottom: 22px; }
.mg-vignette-grande { aspect-ratio: 3 / 2; border: 1px solid var(--gh-bord); border-radius: 8px; }
.mg-props { margin: 0; }
.mg-prop { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--gh-bord); font-size: .9rem; }
.mg-prop:last-child { border-bottom: 0; }
.mg-prop dt { color: var(--gh-texte-doux); }
.mg-prop dd { margin: 0; word-break: break-word; }
.mg-props-larges .mg-prop { grid-template-columns: 210px minmax(0, 1fr); }
.mg-renvoi { font-size: .86rem; color: var(--gh-texte-doux); margin: 14px 0 0; }

.mg-alerte {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; margin: 0 0 18px; border-radius: 8px;
  background: var(--mg-erreur-fond); color: var(--mg-erreur-texte); font-size: .86rem;
}
.mg-alerte .mg-ic { width: 18px; height: 18px; margin-top: 1px; }
.mg-alerte-info { background: var(--gh-primaire-clair); color: var(--gh-texte); margin-top: 18px; }
.mg-alerte-info .mg-ic { color: var(--gh-primaire); }

.mg-couches > li { padding: 10px 0; }
.mg-couches summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 2px 0; }
.mg-couches summary::-webkit-details-marker { display: none; }
.mg-couches summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 8px; height: 8px; border-right: 2px solid var(--gh-texte-pale); border-bottom: 2px solid var(--gh-texte-pale);
  transform: rotate(-45deg); transition: transform .15s;
}
.mg-couches details[open] summary::after { transform: rotate(45deg); }
.mg-couches .layer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mg-couches .layer-meta { flex: none; margin-left: 0; }
.mg-couche-ic {
  width: 30px; height: 30px; flex: none; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--gh-primaire-clair); color: var(--gh-primaire);
}
.mg-couche-ic .mg-ic { width: 17px; height: 17px; }
.mg-couche-corps { padding: 4px 0 6px 40px; }

.mg-ressources { display: grid; gap: 14px; }
.mg-ressource { padding: 14px 16px; border: 1px solid var(--gh-bord); border-radius: 10px; }
.mg-ressource-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-ressource h3 { margin: 0; font-size: .95rem; }
.mg-ressource p { margin: 6px 0 10px; font-size: .86rem; color: var(--gh-texte-doux); }
.mg-ressource-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .8rem; color: var(--gh-texte-doux); }
.mg-formats-sortie code { padding: 1px 6px; border-radius: 4px; background: var(--gh-surface-2); font-size: .74rem; }
.mg-methode {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 4px;
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; font-family: var(--gh-mono);
}
.mg-methode.get  { background: var(--mg-ok-fond); color: var(--mg-ok-texte); }
.mg-methode.post { background: var(--mg-alerte-fond); color: var(--mg-alerte-texte); }

.mg-integration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.mg-integration h3 { font-size: 1rem; margin-bottom: 4px; }
.mg-code-zone { position: relative; }
.mg-code-zone .gh-code { max-height: 360px; font-size: .76rem; white-space: pre; padding-top: 40px; }
.mg-code-copier { position: absolute; top: 8px; right: 8px; z-index: 1; }

.mg-zone-danger {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding: 16px 18px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--gh-danger) 40%, var(--gh-bord));
}
.mg-zone-danger p { margin: 2px 0 0; }

.mg-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.mg-note { display: flex; gap: 12px; padding: 14px; border-radius: 10px; background: var(--gh-surface-2); }
.mg-note svg { width: 22px; height: 22px; flex: none; color: var(--gh-primaire); }
.mg-note p { margin: 0; font-size: .86rem; color: var(--gh-texte-doux); }
.mg-note strong { color: var(--gh-texte); }

/* ------------------------------------------------- assistant d'hébergement */

.mg-modale-fond {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(6, 16, 21, .58); backdrop-filter: blur(2px);
}
.mg-modale {
  width: min(780px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--gh-surface); color: var(--gh-texte);
  border: 1px solid var(--gh-bord); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  animation: mg-apparait .18s ease-out;
}
@keyframes mg-apparait { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.mg-modale-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 4px; }
.mg-modale-tete h2 { margin: 0 0 2px; font-size: 1.25rem; }
.mg-modale form { padding: 18px 24px 0; }
.mg-modale-pied {
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  margin: 22px -24px 0; padding: 14px 24px 18px;
  background: var(--gh-surface); border-top: 1px solid var(--gh-bord);
}
.mg-espace { flex: 1; }
.mg-modale-petite { width: min(470px, 100%); padding: 22px 24px 0; }
.mg-modale-petite h2 { margin: 0 0 8px; font-size: 1.15rem; }
.mg-modale-petite p { color: var(--gh-texte-doux); margin: 0; }
.mg-modale-petite .mg-modale-pied { margin-top: 20px; }

.mg-etapes { display: flex; list-style: none; margin: 14px 24px 0; padding: 0; }
.mg-etapes li {
  flex: 1; display: flex; align-items: center; gap: 9px;
  font-size: .86rem; font-weight: 600; color: var(--gh-texte-pale);
}
.mg-etapes li:last-child { flex: none; }
.mg-etapes li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 10px; background: var(--gh-bord); border-radius: 2px; }
.mg-etapes li span {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  border: 2px solid var(--gh-bord);
}
.mg-etapes li.actif { color: var(--gh-texte); }
.mg-etapes li.actif span { border-color: var(--gh-primaire); color: var(--gh-primaire); }
.mg-etapes li.fait { color: var(--gh-texte-doux); }
.mg-etapes li.fait span { background: var(--mg-plein); border-color: var(--mg-plein); color: #fff; }
.mg-etapes li.fait::after { background: var(--mg-plein); }

.mg-depot {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 20px; margin-bottom: 4px; text-align: center; cursor: pointer;
  border: 2px dashed var(--gh-bord); border-radius: 12px; background: var(--gh-surface-2);
  transition: border-color .15s, background .15s;
}
.mg-depot input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mg-depot:hover, .mg-depot.survol { border-color: var(--gh-primaire); background: var(--gh-primaire-clair); }
.mg-depot.rempli { border-style: solid; border-color: var(--gh-primaire); }
.mg-depot-ic { width: 42px; height: 42px; color: var(--gh-primaire); }
.mg-depot-titre { font-weight: 650; word-break: break-all; }
.mg-depot-aide { font-size: .82rem; color: var(--gh-texte-doux); }
.mg-depot-aide.alerte { color: #8A5A00; font-weight: 600; }
html[data-theme="dark"] .mg-depot-aide.alerte { color: #F4CC74; }

.mg-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mg-formats button {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center;
  padding: 11px 12px; text-align: left; cursor: pointer;
  background: var(--gh-surface); color: var(--gh-texte);
  border: 1px solid var(--gh-bord); border-radius: 10px; font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.mg-formats button svg { grid-row: span 2; width: 26px; height: 26px; color: var(--gh-texte-pale); }
.mg-formats button strong { font-size: .88rem; }
.mg-formats button small { font-size: .74rem; color: var(--gh-texte-doux); }
.mg-formats button:hover { border-color: var(--gh-primaire); }
.mg-formats button.actif { border-color: var(--gh-primaire); box-shadow: 0 0 0 3px var(--gh-primaire-clair); }
.mg-formats button.actif svg { color: var(--gh-primaire); }

.mg-astuce {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 16px 0 0; padding: 11px 13px; border-radius: 8px;
  font-size: .82rem; color: var(--gh-texte-doux); background: var(--gh-surface-2);
}
.mg-astuce svg { width: 18px; height: 18px; flex: none; color: var(--gh-primaire); margin-top: 1px; }

.mg-recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.mg-recap-ligne { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--gh-bord); border-radius: 10px; }
.mg-recap-ligne .mg-ic { width: 22px; height: 22px; color: var(--gh-primaire); }
.mg-recap-ligne span { display: flex; flex-direction: column; min-width: 0; }
.mg-recap-ligne strong { font-size: .88rem; word-break: break-all; }
.mg-recap-ligne small { font-size: .76rem; color: var(--gh-texte-doux); }

.mg-services-prevus ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mg-services-prevus li { display: flex; gap: 11px; padding: 7px 0; font-size: .86rem; color: var(--gh-texte-doux); }
.mg-services-prevus li strong { color: var(--gh-texte); }
.mg-services-prevus svg { width: 20px; height: 20px; flex: none; color: var(--gh-primaire); }

.mg-pipeline { list-style: none; display: flex; margin: 6px 0 18px; padding: 0; }
.mg-pipeline li {
  position: relative; flex: 1;
  padding-top: 28px; text-align: center;
  font-size: .76rem; font-weight: 600; color: var(--gh-texte-pale);
}
.mg-pipeline li::before {
  content: ""; position: absolute; top: 3px; left: 50%; z-index: 1;
  width: 18px; height: 18px; transform: translateX(-50%);
  border: 2px solid var(--gh-bord); border-radius: 50%; background: var(--gh-surface);
  box-sizing: border-box;
}
.mg-pipeline li::after {
  content: ""; position: absolute; top: 11px; left: -50%;
  width: 100%; height: 2px; background: var(--gh-bord);
}
.mg-pipeline li:first-child::after { display: none; }
.mg-pipeline li.fait { color: var(--gh-texte-doux); }
.mg-pipeline li.fait::before { background: var(--mg-plein); border-color: var(--mg-plein); }
.mg-pipeline li.fait::after, .mg-pipeline li.actif::after { background: var(--mg-plein); }
.mg-pipeline li.actif { color: var(--gh-texte); }
.mg-pipeline li.actif::before { border-color: var(--gh-primaire); box-shadow: 0 0 0 4px var(--gh-primaire-clair); animation: mg-pulse 1.2s ease-in-out infinite; }
.mg-pipeline li.echec { color: var(--gh-danger); }
.mg-pipeline li.echec::before { background: var(--mg-statut-critique); border-color: var(--mg-statut-critique); }

.mg-modale #progress-box { margin-top: 0; }

.mg-resultat {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 16px; padding: 14px; border-radius: 12px;
  background: var(--mg-ok-fond); border: 1px solid color-mix(in srgb, var(--mg-statut-bon) 30%, transparent);
}
.mg-vignette-resultat { width: 200px; flex: none; aspect-ratio: 20 / 13; border: 1px solid var(--gh-bord); border-radius: 8px; }
.mg-resultat-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mg-resultat-corps .gh-discret { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mg-resultat-liens { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .84rem; }
.mg-resultat-liens a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.mg-arriere-plan { margin: 12px 0 0; font-size: .8rem; }

.mg-pastille {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #0B1F2A; color: #fff; font: inherit; font-size: .86rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.mg-pastille-anneau {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: var(--gh-marque);
  animation: mg-tourne .9s linear infinite;
}
.mg-pastille.fini .mg-pastille-anneau { animation: none; border-color: var(--gh-marque); background: var(--gh-marque); }
.mg-pastille.echec .mg-pastille-anneau { animation: none; border-color: #E06B6B; background: #E06B6B; }

.mg-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1100; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 8px;
  background: #0B1F2A; color: #fff; font-size: .88rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  border-left: 4px solid #8A979E;
}
.mg-toast.succes { border-left-color: var(--gh-marque); }
.mg-toast.erreur { border-left-color: #E06B6B; }

@media (prefers-reduced-motion: reduce) {
  .mg-statut.importing .mg-ic, .mg-pastille-anneau, .mg-pipeline li.actif::before, .mg-squelette > div { animation: none; }
  .mg-tuile:hover .mg-vignette img { transform: none; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .mg-grille-accueil { grid-template-columns: minmax(0, 1fr); }
  .mg-grille-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mg-infos { grid-template-columns: minmax(0, 1fr); }
  .mg-vignette-grande { max-width: 520px; }
  .mg-integration { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .mg-shell { grid-template-columns: minmax(0, 1fr); }
  .mg-side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 264px;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.35);
  }
  .mg-side-ouvert .mg-side { transform: none; }
  .mg-side-ouvert .mg-main::before {
    content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(6,16,21,.45);
  }
  .mg-menu-btn { display: inline-grid; }
  .mg-grille-stats { grid-template-columns: minmax(0, 1fr); }
  .mg-fiche { grid-template-columns: minmax(0, 1fr); }
  .mg-onglets { flex-direction: row; overflow-x: auto; padding: 0 8px; border-right: 0; border-bottom: 1px solid var(--gh-bord); }
  .mg-onglets button { white-space: nowrap; border-right: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px; padding: 13px 14px; }
  .mg-onglets button.actif { border-bottom-color: var(--gh-primaire); }
  .mg-notes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mg-top { padding: 0 16px; gap: 10px; }
  .mg-top-actions .gh-btn { padding: 7px 10px; font-size: 0; gap: 0; }
  .mg-top-actions .gh-btn .mg-ic { width: 18px; height: 18px; }
  .mg-fil > *:not(:last-child) { display: none; }
  .mg-contenu { padding: 20px 16px 60px; }
  .mg-onglet-corps { padding: 18px 16px 22px; }
  .mg-rapides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mg-chiffres { grid-template-columns: minmax(0, 1fr); }
  .mg-chiffre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .mg-barre-filtres, .mg-recherche, .mg-recherche input { width: 100%; }
  .mg-filtre { flex: 1 1 140px; }
  .mg-filtre select { flex: 1; }
  .mg-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-recap { grid-template-columns: minmax(0, 1fr); }
  .mg-resultat { flex-direction: column; }
  .mg-vignette-resultat { width: 100%; }
  .mg-prop, .mg-props-larges .mg-prop { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mg-pipeline li { font-size: .66rem; }
  .mg-etapes li { font-size: 0; gap: 0; }
  .mg-etapes li span { font-size: .8rem; }
  .mg-onglet-tete .layer-filter { width: 100%; }
  .mg-couche-corps { padding-left: 0; }
  .mg-modale-fond { padding: 0; place-items: end stretch; }
  .mg-modale { max-height: 94vh; border-radius: 14px 14px 0 0; }
  .mg-modale-pied { flex-wrap: wrap; }
  .mg-fiche-actions { width: 100%; }
}

/* =========================================================================
   Analyse spatiale (espace client) — « an- »
   ========================================================================= */

.mg-rapides { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }

.an-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.an-moteur {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  background: var(--gh-surface); border: 1px solid var(--gh-bord); color: var(--gh-texte-doux);
}
.an-moteur-point { width: 8px; height: 8px; border-radius: 50%; background: var(--gh-texte-pale); }
.an-moteur.ok .an-moteur-point { background: var(--mg-statut-bon); box-shadow: 0 0 0 3px var(--mg-ok-fond); }
.an-moteur.ko { color: var(--mg-erreur-texte); border-color: color-mix(in srgb, var(--mg-statut-critique) 40%, var(--gh-bord)); }
.an-moteur.ko .an-moteur-point { background: var(--mg-statut-critique); }

.an-espace { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.an-config { margin: 0; padding: 0; min-width: 0; }
.an-etape { padding: 16px 18px; border-bottom: 1px solid var(--gh-bord); }
.an-etape:last-child { border-bottom: 0; }
.an-etape-titre { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: .95rem; }
.an-num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .75rem;
  background: var(--mg-plein); color: #fff;
}
.an-couches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.an-puce {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; background: var(--gh-surface-2); color: var(--gh-texte-doux);
}
.an-puce .mg-ic { width: 14px; height: 14px; color: var(--gh-primaire); }

.an-recherche input { width: 100%; }
.an-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.an-filtre {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .76rem; font-weight: 600;
  background: var(--gh-surface); color: var(--gh-texte-doux); border: 1px solid var(--gh-bord);
}
.an-filtre .mg-ic { width: 14px; height: 14px; }
.an-filtre:hover { border-color: var(--gh-primaire); color: var(--gh-texte); }
.an-filtre.actif { background: var(--gh-primaire-clair); border-color: var(--gh-primaire); color: var(--gh-primaire); }

.an-modeles { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.an-groupe {
  display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; padding: 0 2px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gh-texte-pale);
}
.an-groupe:first-child { margin-top: 0; }
.an-groupe .mg-ic { width: 13px; height: 13px; }
.an-modele {
  display: flex; align-items: stretch; border-radius: 9px; border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.an-modele:hover { background: var(--gh-surface-2); }
.an-modele.actif { background: var(--gh-primaire-clair); border-color: var(--gh-primaire); }
.an-modele.indisponible { opacity: .55; }
.an-modele-corps {
  flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 9px 4px 9px 9px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--gh-texte);
}
.an-modele-ic {
  width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--gh-surface-2); color: var(--gh-primaire);
}
.an-modele.actif .an-modele-ic { background: var(--gh-surface); }
.an-modele-ic .mg-ic { width: 18px; height: 18px; }
.an-modele-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-modele-txt strong { font-size: .88rem; }
.an-modele-txt > span { font-size: .78rem; color: var(--gh-texte-doux); line-height: 1.35; }
.an-modele-types { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.an-modele-types em {
  display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: .68rem; font-weight: 600;
  padding: 1px 6px; border-radius: 4px; background: var(--gh-surface); border: 1px solid var(--gh-bord); color: var(--gh-texte-doux);
}
.an-modele-types em .mg-ic { width: 11px; height: 11px; }
.an-modele-types em.an-raison { border-color: transparent; background: var(--mg-alerte-fond); color: var(--mg-alerte-texte); }
.an-modele-info {
  flex: none; width: 36px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 0; border-left: 1px solid transparent; color: var(--gh-texte-pale); border-radius: 0 9px 9px 0;
}
.an-modele-info .mg-ic { width: 18px; height: 18px; }
.an-modele-info:hover { color: var(--gh-primaire); background: var(--gh-surface); }
.an-aucun { padding: 12px 4px; }

.an-choisi-carte {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin-bottom: 14px;
  border-radius: 10px; background: var(--gh-surface-2);
}
.an-choisi-carte > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.an-choisi-carte strong { font-size: .9rem; }
.an-choisi-carte > div span { font-size: .76rem; color: var(--gh-texte-doux); }
.an-choisi-carte .gh-btn { flex: none; margin-left: auto; }
.an-params { padding-top: 4px; border-top: 1px dashed var(--gh-bord); margin-top: 4px; }
.an-params .gh-champ:first-child { margin-top: 12px; }
.an-nombre { display: flex; align-items: center; gap: 8px; }
.an-nombre span { font-size: .85rem; color: var(--gh-texte-doux); min-width: 1.5em; }
.an-case { display: flex; align-items: center; gap: 9px; margin: 6px 0 14px; font-size: .88rem; cursor: pointer; }
.an-case input { width: 17px; height: 17px; accent-color: var(--mg-plein); margin: 0; }
.an-lancer { width: 100%; margin-top: 4px; }

.an-resultats { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.an-carte-zone { position: relative; margin: 0; padding: 0; overflow: hidden; }
.an-map { height: 520px; background: var(--mg-vignette-fond); }
.an-progression {
  position: absolute; inset: 0; z-index: 800; display: grid; place-items: center;
  background: rgba(6, 16, 21, .32); backdrop-filter: blur(1.5px);
}
.an-progression-boite {
  width: min(360px, 90%); display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
  border-radius: 12px; background: var(--gh-surface); box-shadow: var(--gh-ombre-forte); text-align: center;
}
.an-progression-boite span { font-size: .85rem; color: var(--gh-texte-doux); min-height: 1.3em; }
.an-progression-boite .progress-fill { transition: width .4s ease; }
.an-progression-boite .gh-btn { align-self: center; margin-top: 4px; }

.an-interpretation { margin: 0; }
.an-vide { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--gh-texte-doux); }
.an-vide strong { color: var(--gh-texte); }
.an-vide p { max-width: 38em; margin: 0; font-size: .9rem; }

.an-res-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.an-res-tete h2 { margin: 2px 0; font-size: 1.25rem; }
.an-res-cat, .an-fiche-cat {
  display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gh-primaire);
}
.an-res-cat .mg-ic, .an-fiche-cat .mg-ic { width: 14px; height: 14px; }
.an-res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.an-menu { position: relative; }
.an-menu-liste {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 240px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 10px;
  background: var(--gh-surface); border: 1px solid var(--gh-bord); box-shadow: var(--gh-ombre-forte);
}
.an-menu-liste button {
  text-align: left; padding: 8px 10px; border-radius: 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .86rem; color: var(--gh-texte);
}
.an-menu-liste button:hover { background: var(--gh-surface-2); }

.an-resume {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
  font-size: 1.02rem; font-weight: 600; line-height: 1.45;
  background: var(--gh-primaire-clair); color: var(--gh-texte); border-left: 4px solid var(--gh-primaire);
}
.an-indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.an-indic { padding: 12px 14px; border-radius: 10px; background: var(--gh-surface-2); }
.an-indic strong { display: block; font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--gh-texte); }
.an-indic strong small { font-size: .8rem; color: var(--gh-texte-doux); }
.an-indic span { font-size: .78rem; color: var(--gh-texte-doux); }
.an-indic em { display: block; margin-top: 3px; font-style: normal; font-size: .7rem; color: var(--gh-texte-pale); line-height: 1.3; }

.an-jauge { margin: 6px 0 22px; padding: 26px 8px 0; }
.an-jauge-piste {
  position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--mg-serie-2), var(--gh-surface-2) 47%, var(--gh-surface-2) 53%, var(--mg-serie-1));
}
.an-jauge-repere { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--gh-texte-pale); transform: translateX(-1px); }
.an-jauge-repere em { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72rem; color: var(--gh-texte-doux); white-space: nowrap; }
.an-jauge-curseur {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--gh-texte); border: 3px solid var(--gh-surface); box-shadow: var(--gh-ombre);
}
.an-jauge-curseur b { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .8rem; white-space: nowrap; }
.an-jauge-bornes { display: flex; justify-content: space-between; margin-top: 22px; font-size: .76rem; font-weight: 600; color: var(--gh-texte-doux); }

.an-sous-titre { display: flex; align-items: center; gap: 7px; margin: 18px 0 8px; font-size: .95rem; }
.an-sous-titre .mg-ic { width: 17px; height: 17px; color: var(--gh-primaire); }
.an-texte p { margin: 0 0 .7em; line-height: 1.6; }
.an-limites { margin: 0; padding-left: 18px; color: var(--gh-texte-doux); font-size: .86rem; }
.an-limites li { margin-bottom: 5px; }
.an-tableau-zone { position: relative; max-height: 380px; overflow: auto; border: 1px solid var(--gh-bord); border-radius: 8px; }
/* Les libellés pour lecteurs d'écran (.mg-sr) sont en position absolue :
   leur bouton doit les contenir, sinon ils débordent de la page sur mobile. */
.mg-action { position: relative; }
.an-tableau { font-size: .84rem; }
.an-tableau th { position: sticky; top: 0; z-index: 1; }
.an-tableau td { font-variant-numeric: tabular-nums; }
.an-tableau-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.an-technique { margin-top: 18px; font-size: .85rem; }
.an-technique summary { cursor: pointer; color: var(--gh-texte-doux); font-weight: 600; }
.an-technique code, .an-algos code { padding: 1px 6px; border-radius: 4px; background: var(--gh-surface-2); font-size: .78rem; }

.an-heberger {
  margin: 0 0 16px; padding: 14px; border-radius: 10px;
  border: 1px dashed var(--gh-primaire); background: var(--gh-surface);
}
.an-heberger p { margin: 2px 0 10px; }
.an-heberger-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.an-heberger-ligne input { flex: 1 1 220px; }
.an-heberger-ligne select { flex: 0 1 200px; width: auto; }

.an-historique td { vertical-align: middle; }
.an-nowrap { white-space: nowrap; }
.an-resume-court { max-width: 380px; font-size: .82rem; color: var(--gh-texte-doux); }
.an-ligne-active td { background: var(--gh-primaire-clair); }
.an-suppr { display: inline-grid; width: 32px; height: 30px; border: 0; vertical-align: middle; border-radius: 6px; }

/* Légende et popups sur la carte */
.an-legende-carte {
  max-width: 260px; max-height: 300px; overflow-y: auto; padding: 10px 12px; border-radius: 8px;
  background: var(--gh-surface); color: var(--gh-texte); box-shadow: var(--gh-ombre-forte); font-size: .76rem;
}
.an-leg-bloc + .an-leg-bloc { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--gh-bord); }
.an-leg-bloc strong { display: block; margin-bottom: 4px; font-size: .78rem; }
.an-leg-bloc ul { list-style: none; margin: 0; padding: 0; }
.an-leg-bloc li { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.an-leg-bloc li span { flex: 1; }
.an-leg-bloc li small { color: var(--gh-texte-pale); font-variant-numeric: tabular-nums; }
.an-pl { width: 14px; height: 11px; flex: none; border-radius: 2px; border: 1px solid rgba(0, 0, 0, .12); }
.an-pl.ligne { height: 3px; border: 0; }
.an-pl.point { width: 10px; height: 10px; border-radius: 50%; }
.an-popup table { border-collapse: collapse; margin-top: 6px; font-size: .78rem; }
.an-popup th, .an-popup td { padding: 2px 8px 2px 0; border: 0; background: none; text-transform: none; letter-spacing: 0; font-size: .78rem; vertical-align: top; }
.an-popup th { color: #5b6b73; font-weight: 600; }

/* Fiche descriptive d'un modèle */
.an-fiche { width: min(760px, 100%); }
.an-fiche-corps { padding: 6px 24px 4px; }
.an-fiche-corps section { margin-bottom: 14px; }
.an-fiche-corps h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font-size: .9rem; color: var(--gh-texte); }
.an-fiche-corps h3 .mg-ic { width: 16px; height: 16px; color: var(--gh-primaire); }
.an-fiche-corps p { margin: 0; line-height: 1.55; }
.an-fiche-resume { font-size: 1.02rem; font-weight: 600; margin-bottom: 14px !important; }
.an-fiche-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.an-liste { margin: 0; padding-left: 18px; font-size: .88rem; }
.an-liste li { margin-bottom: 5px; }
.an-entrees { list-style: none; padding-left: 0; }
.an-fiche-lecture { padding: 12px 14px; border-radius: 10px; background: var(--gh-primaire-clair); }
.an-fiche-pied { margin-top: 10px; }

html[data-theme="dark"] .leaflet-control-layers,
html[data-theme="dark"] .leaflet-bar a { background: var(--gh-surface); color: var(--gh-texte); border-color: var(--gh-bord); }
html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip { background: var(--gh-surface); color: var(--gh-texte); }
html[data-theme="dark"] .an-popup th { color: var(--gh-texte-doux); }

@media (max-width: 1180px) {
  .an-espace { grid-template-columns: minmax(0, 1fr); }
  .an-config { position: static; max-height: none; }
  .an-modeles { max-height: 360px; }
}
@media (max-width: 640px) {
  .an-map { height: 380px; }
  .an-fiche-grille { grid-template-columns: minmax(0, 1fr); }
  .an-fiche-corps { padding: 6px 16px 4px; }
  .an-res-actions { width: 100%; }
}

/* Proposition de style automatique (fiche > Couches & données) */
.mg-style-auto {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 12px 0 16px; padding: 12px 14px;
  border: 1px solid var(--gh-bord); border-radius: var(--gh-rayon);
  background: var(--gh-surface-2);
}
.mg-style-auto p { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.5; }
.mg-style-auto .style-auto-msg { flex-basis: 100%; font-size: 12.5px; }
.mg-style-auto .style-auto-msg:empty { display: none; }

/* =========================================================================
   Mes modèles d'analyse (espace client) — « mo- »
   ========================================================================= */

.mo-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mo-etapes {
  list-style: none; margin: 18px 0 26px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: mo;
}
.mo-etapes li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--gh-bord); border-radius: var(--gh-rayon);
  background: var(--gh-surface);
}
.mo-etapes li > span {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: var(--gh-surface-2); color: var(--gh-primaire);
}
.mo-etapes li div { font-size: .86rem; color: var(--gh-texte-doux); line-height: 1.45; }
.mo-etapes li b { display: block; color: var(--gh-texte); margin-bottom: 2px; font-size: .92rem; }
.mo-etapes code {
  background: var(--gh-surface-2); padding: 1px 5px; border-radius: 5px;
  font-size: .85em; color: var(--gh-texte);
}

.mo-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mo-carte {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border: 1px solid var(--gh-bord); border-radius: var(--gh-rayon);
  background: var(--gh-surface);
}
.mo-squelette { height: 150px; background: var(--gh-surface-2); border-color: transparent; animation: mg-pulse 1.3s infinite; }
.mo-carte-titre h3 { margin: 0 0 8px; font-size: 1.08rem; }
.mo-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.mo-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: var(--gh-surface-2); color: var(--gh-texte-doux); border: 1px solid var(--gh-bord);
}
.mo-badge .mg-ic { width: 13px; height: 13px; }
.mo-badge.ok { background: rgba(21,127,76,.12); color: var(--gh-succes); border-color: transparent; }
.mo-badge.echec { background: rgba(197,43,43,.12); color: #c52b2b; border-color: transparent; }
.mo-badge.en-cours { background: rgba(232,163,61,.14); color: #a86a12; border-color: transparent; }
.mo-badge.neutre { }
.mo-carte-meta { margin: 0; font-size: .82rem; color: var(--gh-texte-pale); }
.mo-alerte, .mo-encours {
  display: flex; gap: 8px; align-items: flex-start; margin: 0;
  font-size: .85rem; padding: 9px 11px; border-radius: 8px; line-height: 1.4;
}
.mo-alerte { background: rgba(197,43,43,.08); color: #a32020; }
.mo-encours { background: var(--gh-surface-2); color: var(--gh-texte-doux); }
.mo-alerte .mg-ic, .mo-encours .mg-ic { flex: none; margin-top: 1px; }
.mo-carte-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.mo-danger { color: #c52b2b; }

.mo-vide {
  grid-column: 1 / -1; text-align: center; max-width: 460px; margin: 20px auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mo-vide-ic { width: 46px; height: 46px; color: var(--gh-primaire); opacity: .8; }
.mo-vide h3 { margin: 4px 0 0; }
.mo-vide p { color: var(--gh-texte-doux); margin: 0 0 8px; line-height: 1.55; }

/* Dépôt */
.mo-modale { width: min(560px, 100%); }
.mo-modale-large { width: min(720px, 100%); }
.mo-depot-corps { padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.mo-zone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  padding: 30px 20px; border: 2px dashed var(--gh-bord); border-radius: 12px;
  background: var(--gh-surface-2); text-align: center; transition: border-color .15s, background .15s;
}
.mo-zone.survol, .mo-zone:hover { border-color: var(--gh-primaire); }
.mo-zone.rempli { border-style: solid; border-color: var(--gh-primaire); }
.mo-zone-ic { width: 32px; height: 32px; color: var(--gh-primaire); }
.mo-securite {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; background: var(--gh-surface-2);
  font-size: .84rem; color: var(--gh-texte-doux); line-height: 1.5;
}
.mo-securite .mg-ic { flex: none; color: var(--gh-primaire); margin-top: 1px; }
.mo-securite p { margin: 0; }
.mo-message { margin: 0; font-size: .86rem; color: #c52b2b; min-height: 1.2em; }
.mo-message:empty { min-height: 0; }

/* Rapport */
.mo-rapport-corps { padding: 8px 24px 4px; display: flex; flex-direction: column; gap: 14px; }
.mo-rapport-bandeau {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px;
}
.mo-rapport-bandeau.ok { background: rgba(21,127,76,.1); }
.mo-rapport-bandeau.echec { background: rgba(197,43,43,.1); }
.mo-rapport-bandeau .mg-ic { flex: none; width: 24px; height: 24px; }
.mo-rapport-bandeau.ok .mg-ic { color: var(--gh-succes); }
.mo-rapport-bandeau.echec .mg-ic { color: #c52b2b; }
.mo-rapport-bandeau strong { display: block; }
.mo-rapport-bandeau span { font-size: .86rem; color: var(--gh-texte-doux); }
.mo-ctl-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mo-ctl { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--gh-bord); }
.mo-ctl-tete { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.mo-ctl-tete .mg-ic { width: 16px; height: 16px; flex: none; }
.mo-ctl.ok .mo-ctl-tete .mg-ic { color: var(--gh-succes); }
.mo-ctl.echec { border-color: rgba(197,43,43,.4); }
.mo-ctl.echec .mo-ctl-tete .mg-ic { color: #c52b2b; }
.mo-ctl.alerte .mo-ctl-tete .mg-ic { color: #a86a12; }
.mo-ctl-details { margin: 7px 0 0; padding-left: 24px; font-size: .85rem; color: var(--gh-texte-doux); line-height: 1.5; }
.mo-apercu { padding: 12px 14px; border-radius: 10px; background: var(--gh-surface-2); }
.mo-apercu h4 { margin: 0 0 6px; font-size: .9rem; }
.mo-apercu-resume { margin: 0 0 6px; font-weight: 600; }
.mo-rapport-meta { margin: 0; }

@media (max-width: 720px) {
  .mo-etapes { grid-template-columns: 1fr; }
}

/* Administration — onglet « Modèles à relire » */
.adm-pastille {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px; border-radius: 999px; background: #c52b2b; color: #fff; font-size: .72rem; font-weight: 700;
}
.adm-modeles { display: flex; flex-direction: column; gap: 14px; }
.adm-modele { padding: 18px; border: 1px solid var(--gh-bord); border-radius: var(--gh-rayon); background: var(--gh-surface); }
.adm-modele-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.adm-modele-tete h3 { margin: 0 0 3px; font-size: 1.1rem; }
.adm-modele-meta { margin: 0; font-size: .82rem; color: var(--gh-texte-pale); }
.adm-modele-resume { margin: 10px 0 6px; color: var(--gh-texte-doux); }
.adm-modele-controle { margin: 4px 0; font-size: .86rem; color: var(--gh-texte-doux); }
.adm-modele-note { margin: 4px 0; font-size: .86rem; color: #a32020; }
.adm-badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.adm-badge.en-attente { background: rgba(232,163,61,.16); color: #a86a12; }
.adm-badge.ok { background: rgba(21,127,76,.14); color: var(--gh-succes); }
.adm-badge.echec { background: rgba(197,43,43,.12); color: #c52b2b; }
.adm-modele-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.adm-modele-actions button {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--mg-plein);
  background: var(--mg-plein); color: #fff; font-weight: 600; cursor: pointer; font-size: .88rem;
}
.adm-modele-actions button.secondaire { background: var(--gh-surface); color: var(--gh-texte); border-color: var(--gh-bord); }
.adm-modele-actions button.danger { background: #fff; color: #c52b2b; border-color: rgba(197,43,43,.4); }
.adm-modele-actions button:disabled { opacity: .5; cursor: not-allowed; }
.an-modele-types em.an-perso { background: rgba(232,163,61,.16); color: #9a6210; border-color: transparent; }
.an-fiche-perso {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px;
  padding: 10px 12px; border-radius: 10px; background: var(--gh-surface-2);
  font-size: .86rem; color: var(--gh-texte-doux); line-height: 1.45;
}
.an-fiche-perso .mg-ic { flex: none; color: var(--gh-primaire); margin-top: 1px; }

/* ===================================================================== */
/*  Produits 3D — espace client                                          */
/* ===================================================================== */

.o3-formats {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px;
}
.o3-formats li {
  background: var(--gh-surface); border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon-sm); padding: 11px 13px;
  font-size: .82rem; color: var(--gh-texte-doux); line-height: 1.5;
}
.o3-formats b {
  display: block; color: var(--gh-encre); font-family: var(--gh-mono);
  font-size: .78rem; margin-bottom: 3px;
}

.o3-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

.o3-carte {
  background: var(--gh-surface); border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--gh-ombre);
}
.o3-tete { display: flex; align-items: center; gap: 9px; }
.o3-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; color: var(--gh-texte-doux);
}
.o3-type svg { width: 15px; height: 15px; }
.o3-tete .mg-etat { margin-left: auto; }

.o3-carte h3 { margin: 0; font-size: .98rem; color: var(--gh-encre); }

.o3-faits { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; }
.o3-faits span {
  font-family: var(--gh-mono); font-size: .72rem; color: var(--gh-texte-doux);
  font-variant-numeric: tabular-nums;
}
.o3-erreur {
  margin: 0; font-size: .8rem; color: var(--gh-danger);
  background: #FDF0EE; border-radius: var(--gh-rayon-sm); padding: 7px 9px;
}
.o3-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }

.o3-vide {
  grid-column: 1 / -1; text-align: center; padding: 42px 22px;
  background: var(--gh-surface); border: 1px dashed var(--gh-bord);
  border-radius: var(--gh-rayon); color: var(--gh-texte-doux);
}
.o3-vide b { display: block; color: var(--gh-encre); font-size: 1rem; margin-bottom: 7px; }
.o3-vide p { margin: 0 auto; max-width: 52ch; font-size: .88rem; line-height: 1.6; }

.o3-url {
  display: block; font-family: var(--gh-mono); font-size: .72rem;
  background: var(--gh-fond); border: 1px solid var(--gh-bord);
  border-radius: var(--gh-rayon-sm); padding: 8px 10px;
  word-break: break-all; color: var(--gh-texte); line-height: 1.5;
}

.o3-jauge-rail {
  height: 6px; border-radius: 99px; background: var(--gh-bord); overflow: hidden;
}
.o3-jauge-rail i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: var(--gh-primaire); transition: width .25s;
}
