/* Espace client LBE : thème sombre « glass ». Aucune ressource externe ; police Inter (OFL), auto-hébergée.
   --accent : couleur de l'espace (theme.php). --focal : jaune LBE, réservé à la prochaine étape. */
@font-face { font-family: "Inter"; src: url("fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #03132A;
  --fond-2: #071F3F;
  --verre: rgba(255, 255, 255, .07);
  --verre-bord: rgba(132, 218, 206, .28);
  --texte: #F2F6FA;
  --texte-2: #B9C7D8;
  --accent: #84DACE;
  --accent-texte: #FFFFFF;
  --focal: #FFCF00;
  --ok: #4ADE80;
  --attente: #FFB020;
  --encours: #7DD3FC;
  --danger: #FF8A8A;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; font-family: "Inter", system-ui, Arial, sans-serif; font-size: 16px; line-height: 1.55; color: var(--texte); background: var(--fond); position: relative; }
.fond { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(900px 600px at 85% -10%, rgba(132, 218, 206, .18), transparent 60%),
  radial-gradient(800px 700px at -10% 30%, rgba(5, 171, 196, .16), transparent 60%),
  linear-gradient(180deg, var(--fond-2) 0%, var(--fond) 70%); }
a { color: var(--accent-lien); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 1.05rem; }
.petit { font-size: .88rem; color: var(--texte-2); }
.note { color: var(--texte-2); font-size: .92rem; }
.sous-titre { color: var(--texte-2); margin: 0; font-size: 1.05rem; }
.grand { font-size: 2rem; font-weight: 800; margin: 0; }
.icone { width: 20px; height: 20px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--focal); outline-offset: 3px; border-radius: 4px; }

/* En-tête et page */
.entete { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); background: rgba(3, 19, 42, .72); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.entete .marque { max-width: 1120px; margin: 0 auto; padding: 14px 22px; font-weight: 700; letter-spacing: .02em; }
.entete .marque span { color: var(--texte-2); font-weight: 500; }
.page { max-width: 1120px; margin: 0 auto; padding: 24px 22px 48px; display: grid; gap: 22px; }
.verre { background: var(--verre); border: 1px solid var(--verre-bord); border-radius: 18px; padding: 22px; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.carte-sous { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px; }

/* Hero : logo, nom, accompagnement */
.hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-visuel { width: 120px; height: 120px; flex: 0 0 auto; display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 10px; }
.logo-client { max-width: 100%; max-height: 100%; object-fit: contain; }
.monogramme { font-size: 2rem; font-weight: 800; color: var(--fond); }
.hero-texte { flex: 1 1 260px; }

/* Focal : prochaine étape (seul élément jaune) */
.focal { border-color: rgba(255, 207, 0, .55); background: linear-gradient(135deg, rgba(255, 207, 0, .14), rgba(255, 255, 255, .04)); }
.focal-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--focal); margin-bottom: 6px; }
.focal-texte { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; }

/* Tableau de bord */
.tableau-bord { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.carte-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.carte-stat h3 { display: flex; align-items: center; gap: 8px; }
.anneau { width: 150px; height: 150px; }
.anneau-texte { font-size: 22px; font-weight: 800; fill: var(--texte); }

/* Frise d'avancement */
.frise { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid rgba(255, 255, 255, .15); display: grid; gap: 14px; }
.frise li { position: relative; padding-left: 22px; }
.frise-point { position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--texte-2); background: var(--fond); }
.frise-fait .frise-point { background: var(--ok); border-color: var(--ok); }
.frise-en_cours .frise-point { background: var(--encours); border-color: var(--encours); }
.frise .date { display: block; color: var(--texte-2); font-size: .9rem; }

/* Statuts : libellé + pictogramme (jamais la couleur seule) */
.statut { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; margin-left: 6px; vertical-align: middle; }
.statut .icone { width: 14px; height: 14px; }
.statut-ok { color: var(--ok); }
.statut-encours { color: var(--encours); }
.statut-attente { color: var(--attente); }

/* Financements */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fin-accorde { border-left: 4px solid var(--ok); }
.fin-attente { border-left: 4px solid var(--attente); }
.montant { font-size: 1.5rem; font-weight: 800; margin: 6px 0; }

/* Prochaines étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.etape { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px 16px; }
.etape-corps { flex: 1 1 260px; display: grid; gap: 4px; }
.etape-fait .etape-corps strong { text-decoration: line-through; text-decoration-color: var(--texte-2); }
.etape-etat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge-attente, .badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 176, 32, .15); color: var(--attente); border: 1px solid rgba(255, 176, 32, .5); margin-left: 6px; }
.badge { background: rgba(132, 218, 206, .15); color: var(--accent-lien); border-color: rgba(132, 218, 206, .5); }

/* Formulaires et boutons */
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="file"], select, textarea {
  font: inherit; color: var(--texte); background: rgba(3, 19, 42, .6); border: 1px solid rgba(185, 199, 216, .4); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
button, .bouton { font: inherit; font-weight: 700; color: var(--accent-texte); background: var(--accent); border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
button.secondaire { background: transparent; color: var(--accent-lien); border: 1px solid var(--accent); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button:hover { filter: brightness(1.08); }
form.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
form.depot, form.message-form, .admin-bloc form { display: grid; gap: 10px; margin-top: 14px; }
.ligne-admin { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.ligne-etape input[type="text"] { flex: 1 1 160px; }
.case { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.case input { width: auto; }
.connexion { max-width: 420px; margin: 60px auto; display: grid; gap: 14px; }
.alerte { color: var(--danger); font-weight: 600; margin: 0; }
.sortie { margin-top: 4px; }

/* Sommaire */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a { color: var(--texte); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 12px; font-size: .9rem; text-decoration: none; }
.sommaire a:hover { border-color: var(--accent); }

/* Listes, tableaux, messages */
.liste { padding-left: 18px; margin: 0; display: grid; gap: 8px; }
.liste.messages { padding: 0; list-style: none; }
.liste.messages li { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 12px; }
.liste.messages p { margin: 6px 0 0; }
.tableau { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); vertical-align: top; }
th { color: var(--texte-2); font-weight: 600; }

/* Vide élégant */
.vide { display: flex; align-items: center; gap: 12px; color: var(--texte-2); padding: 10px 4px; }
.vide-icone .icone { width: 26px; height: 26px; color: var(--accent); }
.vide p { margin: 0; }

/* Vue administrateur */
.bandeau-admin { background: rgba(255, 207, 0, .14); border: 1px solid rgba(255, 207, 0, .6); color: var(--texte); border-radius: 14px; padding: 12px 16px; }
.bandeau-admin a { color: var(--focal); font-weight: 700; }
.admin-bloc { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* SEO (rendu v1 et v2) */
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.evolution.hausse { color: var(--ok); }
.evolution.baisse { color: var(--danger); }
.evolution.stable { color: var(--texte-2); }
figure.graphique { margin: 14px 0; }
figure.graphique svg { width: 100%; height: auto; display: block; }
figure figcaption { color: var(--texte-2); font-size: .88rem; margin-top: 6px; }
.legende-graphique { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--texte-2); }
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.heat td { text-align: center; font-variant-numeric: tabular-nums; font-size: .85rem; }
.heat td.cellule { font-weight: 700; color: #03132A; min-width: 46px; }

/* Pied */
.pied { max-width: 1120px; margin: 0 auto; padding: 18px 22px 36px; color: var(--texte-2); font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.pied a { color: var(--texte); }

/* Mobile */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .page { padding: 16px 14px 36px; gap: 16px; }
  .verre { padding: 16px; border-radius: 14px; }
  .hero-visuel { width: 96px; height: 96px; }
  .anneau { width: 124px; height: 124px; }
  .etape { flex-direction: column; }
  .ligne-admin { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* SEO v2 : répartition, carte de chaleur, Core Web Vitals (libellé + couleur) */
.repartition { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.liste-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.heat td.cellule { border-radius: 6px; color: #03132A; font-weight: 800; }
.heat th.gauche { text-align: left; font-weight: 600; color: var(--texte); }
.heat td.vide { color: var(--texte-2); background: rgba(255, 255, 255, .04); }
.pos-b1 { background: #6EE7B7; }
.pos-b2 { background: #A7F3D0; }
.pos-b3 { background: #FDE68A; }
.pos-b4 { background: #FCA5A5; }
.cwv { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.cwv-bon { color: var(--ok); }
.cwv-moyen { color: var(--attente); }
.cwv-mauvais { color: var(--danger); }
.opportunites li { line-height: 1.5; }
.source { color: var(--texte-2); font-size: .85rem; margin-top: 18px; }
.evolution { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.evolution .icone { width: 14px; height: 14px; }

/* Logo de l'espace : taille lisible pour les logos larges (SVG 5:1) comme pour les carrés */
.hero-visuel { width: auto; min-width: 120px; height: auto; min-height: 120px; padding: 14px 18px; }
.logo-client { width: 220px; max-width: 100%; height: auto; max-height: 96px; object-fit: contain; }

/* Plaque du logo : clair (logo à texte sombre) ou sombre (logo à texte blanc), champ « logo_fond » de la fiche */
.hero-visuel.fond-clair { background: #FFFFFF; }
.hero-visuel.fond-sombre { background: #0B2B4A; border: 1px solid rgba(255, 255, 255, .18); }

/* Mise en page : aucune section ne déborde de l'écran (tableaux défilables dans leur carte) */
.page { grid-template-columns: minmax(0, 1fr); }
.page > *, .verre, .carte-sous { min-width: 0; max-width: 100%; }
.verre { overflow: hidden; }
.tableau { max-width: 100%; }

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

/* ===== Rendu visuel SEO v2 ===== */
.remplissage { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, .55)); box-shadow: 0 0 12px -2px var(--accent); }
.barre { height: 10px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.barre-h { display: block; flex: 1; height: 12px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.barre-h .remplissage { height: 100%; }
.spark { width: 120px; height: 34px; display: block; }
.cible .spark { width: 100%; height: 56px; }
.kpi-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kpi-carte { position: relative; overflow: hidden; }
.kpi-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.08), transparent 45%); pointer-events: none; }
.grad-section { background: linear-gradient(135deg, rgba(132,218,206,.10), rgba(255,207,0,.05) 60%, transparent); border-radius: 16px; padding: 4px 0 2px; }
.bloc-seo { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin-top: 10px; }
.bloc-seo > h3 { font-size: 1.1rem; color: var(--accent-lien); margin-bottom: 10px; }
.graphique svg { width: 100%; height: auto; display: block; }
.graphique .barre-impr { fill: url(#grad-impr); }
.graphique .ligne-clic { stroke: var(--accent); }
.graphique .pt-clic { fill: var(--focal); stroke: #03132A; stroke-width: 2; }
.graphique .axe { fill: var(--texte-2); font-size: 15px; }
.legende-graphique { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--texte-2); margin-top: 6px; }
.pastille.clic { background: var(--accent); }
.pastille.impr { background: rgba(132,218,206,.35); }
.voir-tableau { margin-top: 10px; }
.voir-tableau summary { cursor: pointer; color: var(--accent-lien); font-weight: 600; }
.appareils { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 26px; align-items: center; }
.anneau-appareils svg { width: 100%; max-width: 240px; height: auto; display: block; }
.anneau-texte { font-size: 22px; font-weight: 800; fill: var(--texte); }
.anneau-sous { font-size: 13px; fill: var(--texte-2); }
.barres-appareils { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ligne-tete, .ligne-pied { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.ligne-pied { color: var(--texte-2); font-size: .85rem; }
.liste-visuelle { display: grid; gap: 12px; }
.ligne-visuelle { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 6px 16px; align-items: center; }
.lv-label { font-weight: 600; overflow-wrap: anywhere; }
.lv-texte { font-size: .9rem; color: var(--texte-2); }
.opportunites { display: grid; gap: 14px; }
.opp { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; }
.opp-tete { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.jauge { height: 12px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12)); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.jauge .remplissage { background: linear-gradient(90deg, var(--focal), var(--accent)); box-shadow: 0 0 12px -2px var(--focal); }
.jauge-legende { display: flex; justify-content: space-between; font-size: .78rem; color: var(--texte-2); }
.opp-texte { margin: 8px 0 0; font-size: .92rem; }
.cibles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cible h3 { font-size: .98rem; overflow-wrap: anywhere; }
.cible-pos { margin: 6px 0; }
.grand-petit { font-size: 1.6rem; font-weight: 800; color: var(--accent-lien); }
.avis { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.avis-tete { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.avis-ligne .barre .remplissage { background: linear-gradient(90deg, var(--focal), var(--accent)); }
.frise-actions { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--accent); display: grid; gap: 14px; }
.frise-actions li { position: relative; padding-left: 16px; display: grid; gap: 2px; }
.frise-actions li::before { content: ""; position: absolute; left: -17px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.frise-date { font-size: .82rem; color: var(--texte-2); }
.frise-verif { font-size: .85rem; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
.frise-verif .icone { width: 14px; height: 14px; }
.en-clair { font-size: 1.02rem; line-height: 1.7; padding: 14px 16px; background: rgba(255,255,255,.05); border-left: 3px solid var(--focal); border-radius: 10px; }
.perf .statut { margin-left: 0; }
.evolution.baisse { color: var(--danger); }
.evolution.hausse { color: var(--ok); }
@media (max-width: 700px) {
  .appareils { grid-template-columns: 1fr; }
  .ligne-visuelle { grid-template-columns: 1fr; }
}

/* ===== Logos : taille lisible, plaque claire (texte foncé) ou transparente ===== */
.hero-visuel { width: auto; min-width: 0; height: auto; min-height: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hero-visuel.fond-clair { background: #FFFFFF; border-radius: 16px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.hero-visuel.fond-transparent { background: transparent; }
.hero-visuel.fond-sombre { background: #0B2B4A; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 14px 18px; }
.logo-client { display: block; width: auto; height: 76px; max-width: 280px; max-height: none; object-fit: contain; }
.hero-visuel .monogramme { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: rgba(255,255,255,.1); color: var(--accent-lien); font-size: 1.6rem; }
@media (max-width: 700px) { .logo-client { height: 60px; } }

/* ===== Liste d'administration : cartes par espace ===== */
.grille-espaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 12px; }
.espace-carte { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); border-top: 4px solid var(--couleur, var(--accent)); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.18); min-width: 0; }
.espace-tete { display: flex; gap: 14px; align-items: center; min-width: 0; }
.esp-logo { flex: 0 0 auto; display: grid; place-items: center; min-width: 0; min-height: 64px; }
.esp-logo.fond-clair { background: #FFFFFF; border-radius: 12px; padding: 6px 10px; }
.esp-logo img { display: block; height: 64px; width: auto; max-width: 180px; object-fit: contain; }
.espace-texte { min-width: 0; }
.espace-texte h3 { font-size: 1.1rem; overflow-wrap: break-word; hyphens: auto; margin: 0 0 4px; }
.espace-bas { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.mini .anneau { width: 72px; height: 72px; }
.mini .anneau-texte { font-size: 26px; }
.espace-infos { margin: 0; display: grid; gap: 8px; }
.espace-infos div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 4px; }
.espace-infos dt { color: var(--texte-2); font-size: .86rem; }
.espace-infos dd { margin: 0; font-weight: 600; text-align: right; }
.espace-action button { width: 100%; background: var(--couleur, var(--accent)); color: var(--accent-texte); }

/* ===== Verre plus net, dégradés de section, pastilles d'état plus vivantes ===== */
.verre { background: linear-gradient(150deg, rgba(255,255,255,.11), rgba(255,255,255,.035) 55%, rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 22px 55px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.20), inset 0 -1px 0 rgba(255,255,255,.04); }
.fond { background:
  radial-gradient(900px 640px at 88% -12%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
  radial-gradient(760px 620px at -12% 34%, color-mix(in srgb, var(--focal) 10%, transparent), transparent 60%),
  radial-gradient(700px 500px at 60% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
  linear-gradient(180deg, #0A2446 0%, var(--fond) 72%); }
.statut { border-width: 1px; box-shadow: 0 0 0 3px rgba(255,255,255,.03); }
.statut-ok { color: #6EF2A0; background: rgba(74,222,128,.16); }
.statut-encours { color: #8EE0FF; background: rgba(125,211,252,.16); }
.statut-attente { color: #FFC24D; background: rgba(255,176,32,.16); }
.kpi-carte .grand { background: linear-gradient(90deg, #FFFFFF, color-mix(in srgb, var(--accent) 70%, #FFFFFF)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bloc-seo > h3 { background: linear-gradient(90deg, var(--accent-lien), var(--focal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bandeau-admin { background: linear-gradient(90deg, rgba(255,207,0,.22), rgba(255,207,0,.06)); }

/* Appareils : même couleur que la part correspondante de l'anneau (barres et pastilles de légende) */
.app-mobile { background: #84DACE; }
.app-ordinateur { background: #FFCF00; }
.app-tablette { background: #FD2AD4; }
.pastille.app-mobile { background: #84DACE; }
.pastille.app-ordinateur { background: #FFCF00; }
.pastille.app-tablette { background: #FD2AD4; }
.pastille.app-autre { background: #B9C7D8; }
.remplissage.app-mobile, .remplissage.app-ordinateur, .remplissage.app-tablette { box-shadow: 0 0 10px -2px currentColor; }
/* Logos de l'administration : boîte fixe, le logo s'inscrit dedans (carré ou large) */
.esp-logo { width: 180px; height: 84px; }
.esp-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
/* Logos de l'administration : boîte 150 x 80, logo plafonné en hauteur (les logos carrés ne dominent pas) */
.esp-logo { width: 150px; height: 80px; }
.esp-logo img { width: auto; height: auto; max-width: 150px; max-height: 70px; }
/* Logos (administration et en-têtes) : marge intérieure de 12 px dans la plaque, hauteur 70 px, jamais de débordement */
.esp-logo { box-sizing: border-box; width: 170px; height: 94px; display: grid; place-items: center; min-width: 0; }
.esp-logo.fond-clair { padding: 12px; background: #FFFFFF; border-radius: 12px; }
.esp-logo img { display: block; box-sizing: border-box; height: 70px; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-visuel.fond-clair { padding: 12px; box-sizing: border-box; }
.hero-visuel .logo-client { box-sizing: border-box; height: 70px; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
