/* ==========================================================================
   SOLAR - socle commun (chargé partout, avant la feuille de l'univers)
   Polices, jetons, base, typographie, boutons, formulaires, alertes et badges,
   gabarit applicatif partagé (Solar-Admin, tableaux de bord, cockpit, espace client), utilitaires CSP.
   Univers : public.css · client.css · admin.css · dashboard.css · cockpit.css. Voir DESIGN-SYSTEM.md
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* ---------------------------------------------------------------- Tokens */
:root {
  --nuit-950: #060d1c;
  --nuit-900: #0a1630;
  --nuit-800: #10203f;
  --nuit-700: #1a2d52;
  --nuit-600: #2a3f68;
  --nuit-300: #9fb0cc;
  --nuit-100: #e6ebf3;
  --noir: #0b0f17;
  --blanc: #ffffff;
  --fond: #ffffff;
  --fond-alt: #f4f6f9;
  --ligne: #e1e6ee;
  --ligne-forte: #c9d1de;
  --texte: #0e1625;
  --texte-doux: #475166;        /* 7.4:1 sur blanc */
  --texte-inverse: #ffffff;
  --texte-inverse-doux: #c3cee0; /* 10:1 sur nuit-900 */
  --accent: #2557d6;            /* 6.1:1 sur blanc */
  --accent-clair: #e8eefc;
  --succes: #127a4a;
  --succes-fond: #e4f5ec;
  --alerte: #9a5b00;
  --alerte-fond: #fff3dc;
  --danger: #b42318;
  --danger-fond: #fde8e6;
  --info-fond: #e8eefc;

  --police-titre: "Source Serif 4", Georgia, "Times New Roman", serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-md: 1.125rem; --t-lg: 1.375rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  --e-1: .25rem; --e-2: .5rem; --e-3: .75rem; --e-4: 1rem; --e-5: 1.5rem; --e-6: 2rem; --e-7: 3rem; --e-8: 4.5rem;
  --rayon: 10px; --rayon-sm: 6px; --rayon-lg: 16px;
  --ombre: 0 1px 2px rgba(10, 22, 48, .06), 0 8px 24px rgba(10, 22, 48, .06);
  --ombre-forte: 0 20px 50px rgba(6, 13, 28, .28);
  --largeur: 1180px;
  --cible: 44px;
}
/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--police-texte); font-size: var(--t-base); line-height: 1.6; color: var(--texte); background: var(--fond); }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--nuit-700); }
h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--e-4); color: inherit; }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); font-family: var(--police-texte); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--e-4); }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid #5b8cff; outline-offset: 2px; border-radius: 4px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--blanc); color: var(--texte); padding: var(--e-3) var(--e-4); z-index: 100; }
.lien-evitement:focus { left: var(--e-4); top: var(--e-4); }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--e-4); }
@media (min-width: 768px) { .conteneur { padding: 0 var(--e-6); } }
/* ---------------------------------------------------------------- Typo utilitaires */
.petit { font-size: var(--t-sm); }
.doux { color: var(--texte-doux); }
.centre { text-align: center; }
/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: var(--cible); padding: .65rem 1.25rem; border-radius: var(--rayon-sm);
  font: 600 var(--t-sm)/1.2 var(--police-texte); text-decoration: none; cursor: pointer; border: 1.5px solid var(--nuit-900); background: var(--nuit-900); color: var(--blanc); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--nuit-700); border-color: var(--nuit-700); color: var(--blanc); }
.btn .ico { width: 18px; height: 18px; }
.btn-contour { background: transparent; color: var(--nuit-900); border-color: var(--ligne-forte); }
.btn-contour:hover { background: var(--fond-alt); color: var(--nuit-900); border-color: var(--nuit-900); }
/* Carte claire posée sur une section sombre (tarifs) : le bouton contour reprend les couleurs claires */
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-petit { min-height: 36px; padding: .4rem .8rem; font-size: var(--t-xs); }
.btn-bloc { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.groupe-btn { display: flex; flex-wrap: wrap; gap: var(--e-3); }
/* ---------------------------------------------------------------- Header public */
.logo { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.logo-texte { display: flex; flex-direction: column; font: 500 .82rem/1.05 var(--police-texte); letter-spacing: .16em; }
.logo-texte span:last-child { font-size: .95rem; font-weight: 600; }
/* Logo officiel en image (logo_site()) : hauteur seule, largeur auto ; pastille blanche pour rester lisible sur l'en-tête sombre */
.logo-marque-image { height: 44px; width: auto; flex: 0 0 auto; padding: 3px 6px; background: var(--blanc); border-radius: 8px; }
@media (max-width: 479px) { .logo-marque-image { height: 40px; } }
.bouton-menu { display: inline-flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); border: 1px solid var(--ligne); border-radius: var(--rayon-sm); background: transparent; color: inherit; cursor: pointer; }
@media (min-width: 1024px) { .bouton-menu, .menu-mobile, .menu-mobile.ouvert { display: none; } }
/* ---------------------------------------------------------------- Hero */
.img-attente { background: linear-gradient(135deg, var(--nuit-700), var(--nuit-950) 70%); min-height: 100%; }
/* ---------------------------------------------------------------- Cartes */
.grille { display: grid; gap: var(--e-4); }
@media (min-width: 640px) { .grille-2, .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--blanc); color: var(--texte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: var(--e-5); box-shadow: 0 1px 2px rgba(10,22,48,.03); }
.carte h3 { margin: var(--e-3) 0 var(--e-2); font-size: var(--t-base); }
.carte p { color: var(--texte-doux); font-size: var(--t-sm); margin: 0; }
.carte > .ico { width: 30px; height: 30px; color: var(--nuit-900); }
.carte-ligne > .ico { flex: 0 0 auto; width: 26px; height: 26px; }
.liste-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--t-sm); }
.liste-check li { display: flex; gap: .55rem; align-items: flex-start; }
.liste-check .ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--succes); }
.section-sombre .liste-check .ico, .sombre .liste-check .ico { color: var(--texte-inverse); }
/* ---------------------------------------------------------------- Formulaires */
.formulaire { display: grid; gap: var(--e-4); }
.champ { display: grid; gap: .35rem; align-content: start; } /* champs côte à côte alignés même si l'un porte une aide */
.champ label, .champ legend { font-weight: 600; font-size: var(--t-sm); }
.champ .aide { font-size: var(--t-xs); color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: var(--cible); padding: .6rem .75rem; border: 1px solid var(--ligne-forte); border-radius: var(--rayon-sm); font: inherit; color: var(--texte); background: var(--blanc); }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--accent); outline: 3px solid rgba(37,87,214,.25); outline-offset: 0; }
.champ-case { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-sm); }
.champ-case input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.champ [aria-invalid="true"] { border-color: var(--danger); }
.erreur-champ { color: var(--danger); font-size: var(--t-xs); }
.note-dev { font-size: var(--t-xs); color: var(--alerte); background: var(--alerte-fond); padding: .4rem .6rem; border-radius: var(--rayon-sm); margin: 0; }
.ligne-2 { display: grid; gap: var(--e-4); }
@media (min-width: 640px) { .ligne-2 { grid-template-columns: 1fr 1fr; } }
/* ---------------------------------------------------------------- Alertes / badges */
.alerte { padding: var(--e-3) var(--e-4); border-radius: var(--rayon-sm); border: 1px solid; font-size: var(--t-sm); margin-bottom: var(--e-4); }
.alerte-succes { background: var(--succes-fond); border-color: #9fd8bb; color: #0b5134; }
.alerte-erreur { background: var(--danger-fond); border-color: #f2b8b2; color: #7a1a12; }
.alerte-info { background: var(--info-fond); border-color: #b9cbf6; color: #1b3a8a; }
.alerte-attention { background: var(--alerte-fond); border-color: #f2d49a; color: #6b4100; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; background: var(--fond-alt); color: var(--texte); border: 1px solid var(--ligne); white-space: nowrap; }
.badge-ok { background: var(--succes-fond); color: #0b5134; border-color: #9fd8bb; }
.badge-ko { background: var(--danger-fond); color: #7a1a12; border-color: #f2b8b2; }
.badge-att { background: var(--alerte-fond); color: #6b4100; border-color: #f2d49a; }
.badge-info { background: var(--info-fond); color: #1b3a8a; border-color: #b9cbf6; }
/* ==========================================================================
   APPLICATIONS - Solar-Admin & espace client (même gabarit)
   ========================================================================== */
.app { min-height: 100vh; background: var(--fond-alt); }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; max-width: 86vw; background: var(--nuit-950); color: var(--texte-inverse-doux); transform: translateX(-100%); transition: transform .2s; z-index: 70; overflow-y: auto; padding: var(--e-4) var(--e-3) var(--e-6); }
.app-sidebar.ouverte { transform: none; }
.app-voile { position: fixed; inset: 0; background: rgba(6,13,28,.55); z-index: 60; }
.app-voile[hidden] { display: none; }
.app-sidebar .logo { color: var(--blanc); padding: var(--e-2) var(--e-2) var(--e-4); }
.app-sidebar .fermer-sidebar { position: absolute; top: var(--e-3); right: var(--e-3); width: var(--cible); height: var(--cible); background: transparent; border: 0; color: var(--blanc); cursor: pointer; }
.nav-app { list-style: none; margin: 0; padding: 0; }
.nav-app-groupe, .nav-app-section { margin-top: var(--e-4); }
.nav-app-titre { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 var(--e-2); background: transparent; border: 0; color: #8fa0bd; font: 600 .7rem var(--police-texte); letter-spacing: .12em; text-transform: uppercase; text-align: left; cursor: pointer; }
.nav-app a, .nav-futur { display: flex; align-items: center; gap: .65rem; min-height: var(--cible); padding: 0 var(--e-3); color: var(--texte-inverse-doux); text-decoration: none; border-radius: var(--rayon-sm); font-size: var(--t-sm); }
.nav-app .ico { width: 18px; height: 18px; }
.nav-app a:hover { background: rgba(255,255,255,.06); color: var(--blanc); }
.nav-app a[aria-current="page"] { background: rgba(255,255,255,.1); color: var(--blanc); font-weight: 600; }
/* Solar-Admin : menu stable (gouttière réservée), entrée courante nette, pages à venir et intertitres */
.nav-futur { opacity: .45; cursor: default; }
.nav-section { margin: 0; color: var(--blanc); cursor: default; }
.nav-app-section .nav-app-groupe { margin: 0 0 0 var(--e-2); }
.nav-sous { padding: var(--e-3) var(--e-3) var(--e-1); font-size: .7rem; color: #8fa0bd; }
html:has(.nav-admin) { scrollbar-gutter: stable; }
.app-sidebar:has(.nav-admin) { scrollbar-gutter: stable; }
.nav-admin .nav-app a { position: relative; }
.nav-admin .nav-app a[aria-current] { background: rgba(255,255,255,.14); color: var(--blanc); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-clair); }
.nav-admin .nav-app a[aria-current] .ico { color: var(--accent-clair); }
.nav-admin .nav-app-groupe:has(a[aria-current]) .nav-app-titre { color: var(--blanc); }
/* Registre de navigation Solar-Admin (NAVIGATION.md) - le cockpit grand écran garde sa navigation figée, hors de ces règles */
.nav-registre .nav-futur { opacity: 1; color: #8fa0bd; border: 1px dashed rgba(143,160,189,.35); margin: 2px 0; cursor: not-allowed; }
.nav-registre .nav-futur:focus-visible { outline: 2px solid var(--accent-clair); outline-offset: 1px; }
.nav-registre .nav-etat { margin-left: auto; padding: 0 .4rem; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1px solid rgba(143,160,189,.45); color: #8fa0bd; white-space: nowrap; }
.nav-registre .nav-etat-partiel { border-color: rgba(245,192,74,.6); color: #f5c04a; }
.nav-registre .nav-app a, .nav-registre .nav-futur { min-width: 0; }
.nav-espace-titre { display: flex; align-items: center; gap: .55rem; margin: var(--e-4) 0 var(--e-1); padding: 0 var(--e-2); color: var(--blanc); font: 700 .78rem var(--police-texte); letter-spacing: .1em; text-transform: uppercase; }
.nav-espace-titre .ico { width: 18px; height: 18px; color: var(--accent-clair); }
.nav-espace .nav-app-groupe { margin-top: var(--e-2); }
/* Solar-Admin : barre latérale en colonne - 4 entrées toujours visibles en haut, « Ancien Menu » fixé en bas ; déplié, seul
   son contenu défile (les entrées principales et la déconnexion ne sont jamais recouvertes) */
.app-sidebar:has(.nav-v2) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: calc(var(--e-3) + env(safe-area-inset-bottom)); }
.app-sidebar:has(.nav-v2) .logo { flex: none; }
.nav-v2 { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.nav-v2 .nav-principal { flex: none; display: grid; gap: 2px; }
.nav-ancien { flex: none; min-height: 0; margin-top: auto; display: flex; flex-direction: column; padding-top: var(--e-3); border-top: 1px solid rgba(143,160,189,.25); }
.nav-ancien-titre.nav-app-titre { flex: none; min-height: var(--cible); padding: 0 var(--e-3); border-radius: var(--rayon-sm); background: rgba(255,255,255,.05); color: var(--blanc); font-size: .74rem; }
.nav-ancien-titre span { display: inline-flex; align-items: center; gap: .65rem; }
.nav-ancien-titre:hover { background: rgba(255,255,255,.1); }
.nav-ancien-titre:focus-visible { outline: 2px solid var(--accent-clair); outline-offset: 1px; }
.nav-ancien-chevron { transform: rotate(-90deg); transition: transform .15s; }
.nav-ancien-titre[aria-expanded="true"] .nav-ancien-chevron { transform: rotate(90deg); }
.nav-ancien-titre[aria-expanded="true"] { background: rgba(255,255,255,.12); }
.nav-ancien-contenu { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-top: var(--e-2); padding-right: 2px; }
.nav-ancien-contenu[hidden] { display: none; }
.nav-ancien-contenu > .nav-app-groupe { margin-top: var(--e-2); }
.nav-v2 .nav-app-section { margin-top: 0; }
.nav-ancien-contenu .nav-app-section .nav-app-groupe { margin: var(--e-1) 0 0 var(--e-2); }
/* Rubriques (D152, D154, D155, D182) : entre « Cockpit grand écran » et « Mon compte et sécurité », zone défilante propre ; les 11
   rubriques en cartes compactes, toujours visibles, la rubrique choisie marquée (catégories et sous-menus : menu droit seulement,
   D185). Écrans bas : la zone garde au moins 120 px ; Ancien Menu ouvert, elle partage la hauteur avec lui à parts égales. */
.nav-rubriques-zone { flex: 0 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: var(--e-2) 0; padding-right: 2px; }
.nav-v2:has(.nav-ancien-titre[aria-expanded="true"]) .nav-rubriques-zone { flex: 1 1 0; }
.nav-v2 .nav-principal-bas { padding-top: var(--e-2); border-top: 1px solid rgba(143,160,189,.18); }
.nav-ancien:has(> .nav-ancien-titre[aria-expanded="true"]) { flex: 1 1 0; min-height: 120px; }
@media (max-height: 650px) { .app-sidebar:has(.nav-v2) { padding-top: var(--e-2); } .app-sidebar:has(.nav-v2) .logo { padding-bottom: var(--e-2); } } /* écrans bas : logo resserré, tailles inchangées */
.nav-rubriques-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-rubrique-lien { display: flex; align-items: center; gap: .55rem; min-height: 38px; padding: 0 var(--e-2) 0 var(--e-3); border: 1px solid rgba(143,160,189,.2); border-radius: 8px;
  background: rgba(255,255,255,.035); color: #dbe3f0; text-decoration: none; font: 600 .78rem/1.25 var(--police-texte); }
.nav-rubrique-lien .ico { flex: none; width: 16px; height: 16px; color: #8fb4ff; }
.nav-rubrique-nom { flex: 1; min-width: 0; }
.nav-rubrique-lien:hover { background: rgba(255,255,255,.08); color: var(--blanc); }
.nav-rubrique-lien:focus-visible, .nav-rubrique-titre:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 1px; }
.nav-rubrique-lien[aria-current] { border-color: #6ea8ff; background: rgba(110,168,255,.18); color: var(--blanc); }
.nav-rubrique-titre { display: flex; align-items: center; gap: .5rem; margin: 0; padding: 8px var(--e-3); border: 1px solid #6ea8ff; border-radius: 8px; background: rgba(110,168,255,.12);
  font: 700 .82rem/1.25 var(--police-texte); color: var(--blanc); }
.nav-rubrique-titre:focus { outline: none; }
.nav-rubrique-titre .ico { flex: none; width: 16px; height: 16px; color: #8fb4ff; }
.nav-section-titre { margin: var(--e-3) 0 2px; padding: 0 var(--e-3); color: #a9b8d2; font: 700 .68rem/1.3 var(--police-texte); letter-spacing: .08em; text-transform: uppercase; } /* D180 */
.nav-rubrique-vide-texte { margin: 0; padding: 0 var(--e-3); color: #a9b8d2; font-size: .76rem; }
/* Menu droit (D165, D185) : complètement à droite, sous l'en-tête (écrans de 1024 px et plus), panneau sous l'en-tête sur petit
   écran. Catégories titrées, catégorie active marquée ; Agents IA & automatisations : une catégorie repliable par solution Solar
   (<details> natif, ouvert pour la solution de la page). Style sombre du menu, cartes de liens. */
.nav-section-titre.nav-section-active { color: #cfe0ff; box-shadow: inset 3px 0 0 #6ea8ff; }
.nav-categories-solutions { display: grid; gap: 4px; }
.nav-categorie-solution { border: 1px solid rgba(143,160,189,.2); border-radius: 8px; background: rgba(255,255,255,.035); }
.nav-categorie-solution summary { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: 0 var(--e-2) 0 var(--e-3); border-radius: 8px; cursor: pointer; list-style: none;
  color: #dbe3f0; font: 600 .8rem/1.25 var(--police-texte); }
.nav-categorie-solution summary::-webkit-details-marker { display: none; }
.nav-categorie-solution summary span { flex: 1; min-width: 0; }
.nav-categorie-solution summary:hover { background: rgba(255,255,255,.08); color: var(--blanc); }
.nav-categorie-solution[open] summary .nav-solution-chevron { transform: rotate(90deg); }
.nav-categorie-solution.nav-section-active { border-color: #6ea8ff; box-shadow: inset 3px 0 0 #6ea8ff; }
.nav-categorie-solution .nav-solution-carte { margin: 0 4px 4px; }
.nav-categorie-solution summary img, .nav-solution-titre img { flex: none; width: 22px; height: 22px; border-radius: 5px; object-fit: contain; }
.nav-solution-chevron { flex: none; width: 14px; height: 14px; color: #8fa0bd; }
.nav-categorie-solution summary:focus-visible, .nav-solution-titre:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 1px; }
.nav-solution-vue { display: grid; gap: 8px; align-content: start; }
.nav-solution-vue[hidden] { display: none; }
.nav-solution-titre { display: flex; align-items: center; gap: .55rem; margin: 0; padding: 8px var(--e-3); border: 1px solid #6ea8ff; border-radius: 8px; background: rgba(110,168,255,.12);
  font: 700 .86rem/1.25 var(--police-texte); color: var(--blanc); }
.nav-solution-titre:focus { outline: none; }
.nav-solution-titre .ico { flex: none; width: 18px; height: 18px; color: #8fb4ff; }
.nav-solution-carte { padding: 6px; border: 1px solid rgba(143,160,189,.22); border-radius: 10px; background: rgba(255,255,255,.04); }
.nav-solution-carte-titre { margin: 2px 6px 6px; color: #8fa0bd; font: 700 .66rem/1.3 var(--police-texte); letter-spacing: .1em; text-transform: uppercase; }
.nav-solution-carte .nav-app { display: grid; gap: 2px; }
.nav-solution-carte .nav-app a { min-height: 40px; font-size: .8rem; line-height: 1.25; }
.nav-solution { display: none; }
@media (min-width: 1024px) { /* grille du contenu : en-tête sur toute la largeur, puis page | sous-menu (hauteur réelle de l'en-tête) */
  .app-principal:has(> .nav-solution:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 256px; grid-template-rows: auto 1fr; align-items: start; }
  .app-principal:has(> .nav-solution:not([hidden])) > .app-topbar { grid-column: 1 / -1; grid-row: 1; }
  .app-principal:has(> .nav-solution:not([hidden])) > .app-contenu { grid-column: 1; grid-row: 2; }
  .nav-solution:not([hidden]) { grid-column: 2; grid-row: 2; display: block; position: sticky; top: var(--entete-admin); box-sizing: border-box; height: calc(100vh - var(--entete-admin));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: var(--e-4) var(--e-3) var(--e-5); background: var(--nuit-900); color: var(--texte-inverse-doux); border-left: 1px solid rgba(143,160,189,.18); }
}
.entete-rubriques li { position: relative; } /* description d'infobulle (visuellement cachée) contenue dans la zone défilante */
.app-principal:has(> .nav-solution:not([hidden])) .kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } /* deux barres : indicateurs selon la largeur réelle du contenu */
@media (max-width: 1023px) { /* D182 : petit écran, menu droit = panneau sous l'en-tête, avant le contenu (sous-menus de la rubrique choisie) */
  .nav-solution:not([hidden]) { display: block; margin: var(--e-3) var(--e-3) 0; padding: var(--e-3); border-radius: 12px; background: var(--nuit-900); color: var(--texte-inverse-doux); }
  .nav-solution .nav-solution-carte .nav-app { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
/* En-tête de Solar-Admin (D155) : UNE ligne - recherche, 11 rubriques (icône au-dessus, titre sur une ou deux lignes),
   alerte. Seule la zone des rubriques défile horizontalement si la largeur manque ; recherche et alerte ne bougent pas. */
:root { --entete-admin: 72px; }
.app-topbar:has(.entete-rubriques) { box-sizing: border-box; height: var(--entete-admin); min-height: 0; flex-wrap: nowrap; gap: var(--e-3); }
.app-topbar:has(.entete-rubriques) .recherche { flex: 0 1 200px; min-width: 120px; }
.entete-rubriques { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(143,160,189,.5) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 16px), transparent); }
.entete-rubriques ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 2px; margin: 0 auto; padding: 0 8px; width: max-content; }
.app-topbar .entete-rubriques a { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: max-content; min-width: 84px; max-width: 112px; height: 58px; padding: 4px 4px;
  border-radius: 8px; color: #c3cee0; text-decoration: none; text-align: center; font: 600 .68rem/1.15 var(--police-texte); white-space: normal; }
.app-topbar .entete-rubriques a .ico { flex: none; width: 18px; height: 18px; color: #8fb4ff; }
.app-topbar .entete-rubriques a span { display: block; max-height: 2.3em; overflow: hidden; text-wrap: balance; }
.app-topbar .entete-rubriques a:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-topbar .entete-rubriques a:focus-visible { outline: 2px solid #8fb4ff; outline-offset: -2px; }
.app-topbar .entete-rubriques a[aria-current] { background: rgba(110,168,255,.26); color: #fff; box-shadow: inset 0 -2px 0 #6ea8ff; }
.app-topbar .entete-rubriques a[aria-current] .ico { color: #fff; }
@media (max-width: 767px) { .app-topbar:has(.entete-rubriques) { gap: var(--e-2); padding: 0 var(--e-3); } .app-topbar:has(.entete-rubriques) .recherche { flex-basis: 110px; min-width: 96px; }
  .app-topbar:has(.entete-rubriques) .topbar-actions .badge { display: none; } }
.recherche-ico { display: none; }
/* Téléphone (< 600 px, D155) : recherche compacte - loupe dans un champ de 44 px, qui s'élargit au focus (texte d'aide alors
   lisible en entier) ; rubriques de 80 à 90 px (104 px pour « Services & solutions clients ») : deux visibles en entier à 390 px, la suivante amorcée. */
@media (max-width: 599px) {
  .app-topbar:has(.entete-rubriques) .recherche { position: relative; flex: 0 0 44px; min-width: 44px; transition: flex-basis .2s; }
  .app-topbar:has(.entete-rubriques) .recherche:focus-within { flex-basis: 168px; }
  .app-topbar:has(.entete-rubriques) .recherche input { min-height: 44px; padding-left: 36px; padding-right: 6px; }
  .app-topbar:has(.entete-rubriques) .recherche:not(:focus-within) input::placeholder { color: transparent; }
  .app-topbar:has(.entete-rubriques) .recherche-ico { display: block; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #c3cee0; pointer-events: none; }
  .app-topbar .entete-rubriques a { min-width: 80px; max-width: 90px; }
  .app-topbar .entete-rubriques a[data-rubrique="services"] { max-width: 104px; } /* « solutions clients » sur une ligne */
  .entete-rubriques ul { padding: 0 4px; }
}
.nav-infobulle { position: fixed; z-index: 90; max-width: 280px; padding: .45rem .65rem; border-radius: var(--rayon-sm); background: var(--nuit-800); color: var(--blanc); border: 1px solid var(--nuit-600); box-shadow: var(--ombre-forte); font-size: .78rem; line-height: 1.4; pointer-events: none; }
.nav-infobulle[hidden] { display: none; }
.barre-espaces { background: var(--blanc); border-bottom: 1px solid var(--ligne); overflow-x: auto; scrollbar-width: thin; }
.barre-espaces ul { list-style: none; display: flex; gap: var(--e-1); margin: 0; padding: var(--e-1) var(--e-3); min-width: max-content; }
.barre-espaces a { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--cible); padding: 0 .8rem; border-radius: var(--rayon-sm); color: var(--texte); text-decoration: none; font-size: var(--t-sm); font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.barre-espaces a:hover { background: var(--fond-alt); border-color: var(--ligne); }
.barre-espaces a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.barre-espaces a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--blanc); }
.barre-espaces .espace-accueil { border-color: var(--ligne); }
.barre-espaces .ico { width: 18px; height: 18px; flex: 0 0 auto; }
.barre-espaces .espace-long { display: none; }
@media (min-width: 900px) { .barre-espaces .espace-long { display: inline; } .barre-espaces .espace-court { display: none; } .barre-espaces ul { padding: var(--e-1) var(--e-4); } }
.app-principal { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--e-3); min-height: 64px; padding: 0 var(--e-4); background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.app-topbar .bouton-menu { flex: 0 0 auto; }
.recherche { flex: 1; max-width: 420px; }
.recherche input { width: 100%; min-height: 40px; padding: .4rem .8rem; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); background: var(--fond-alt); font: inherit; font-size: var(--t-sm); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--e-2); }
.icone-bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--cible); height: var(--cible); border-radius: var(--rayon-sm); color: var(--texte); border: 1px solid var(--ligne); background: var(--blanc); text-decoration: none; }
.pastille { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: var(--blanc); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app-contenu { padding: var(--e-5) var(--e-4) var(--e-7); max-width: 1320px; }
.app-contenu > h1 { font-size: var(--t-xl); margin-bottom: var(--e-2); }
.app-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--e-3); margin-bottom: var(--e-5); }
.app-entete h1 { margin: 0; font-size: var(--t-xl); }
.app-entete p { margin: .2rem 0 0; color: var(--texte-doux); font-size: var(--t-sm); }
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 272px 1fr; }
  .app-sidebar { position: sticky; top: 0; height: 100vh; transform: none; max-width: none; }
  .app-sidebar .fermer-sidebar, .app-topbar .bouton-menu, .app-voile { display: none !important; }
  .app-contenu { padding: var(--e-6); }
}
.kpis { display: grid; gap: var(--e-3); grid-template-columns: repeat(2, 1fr); margin-bottom: var(--e-5); }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: var(--e-4); }
.kpi span { display: block; font-size: var(--t-xs); color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kpi strong { display: block; font-size: 1.6rem; font-family: var(--police-titre); margin-top: .2rem; }
.panneau { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); margin-bottom: var(--e-5); }
.panneau-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--e-2); padding: var(--e-3) var(--e-4); border-bottom: 1px solid var(--ligne); }
.panneau-tete h2 { margin: 0; font: 600 var(--t-base) var(--police-texte); }
.panneau-corps { padding: var(--e-4); }
/* minmax(0, …) + min-width: 0 : un tableau large défile dans son panneau au lieu d'élargir la page (mobile) */
.colonnes { display: grid; gap: var(--e-5); grid-template-columns: minmax(0, 1fr); }
.colonnes > * { min-width: 0; }
@media (min-width: 1100px) {
  .colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .colonnes-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.table-defil { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 560px; }
.table th, .table td { text-align: left; padding: .65rem var(--e-4); border-bottom: 1px solid var(--ligne); vertical-align: top; }
.table th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); background: var(--fond-alt); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table td.nombre, .table th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.vide { padding: var(--e-5); text-align: center; color: var(--texte-doux); font-size: var(--t-sm); }
.fil { display: grid; gap: var(--e-3); }
.message { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: var(--e-3) var(--e-4); background: var(--blanc); }
.message.client { background: var(--fond-alt); }
.message.agent_ia { border-left: 3px solid var(--accent); }
.message.interne { border-style: dashed; background: var(--alerte-fond); }
.message-meta { font-size: var(--t-xs); color: var(--texte-doux); margin-bottom: .3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.progression { height: 8px; border-radius: 4px; background: var(--ligne); overflow: hidden; min-width: 80px; }
.progression span { display: block; height: 100%; background: var(--nuit-900); }
.progression.fini span { background: var(--succes); }
.check-vert { color: var(--succes); display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.ecran-auth { min-height: 100vh; display: grid; place-items: center; padding: var(--e-5) var(--e-4); background: radial-gradient(900px 400px at 80% 0%, var(--nuit-700), transparent 60%), var(--nuit-950); }
.ecran-auth .carte { width: 100%; max-width: 440px; padding: var(--e-6) var(--e-5); }
.ecran-auth .logo { color: var(--blanc); margin-bottom: var(--e-5); }
.ecran-auth .auth-lien { text-align: center; margin: 0; }
.ecran-auth .auth-compacte h1 { font-size: var(--t-xl); text-wrap: balance; } /* « Mot de passe oublié » sur une ligne quand la largeur le permet (D156) */
.pre { white-space: pre-wrap; word-break: break-word; font: var(--t-xs)/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fond-alt); border: 1px solid var(--ligne); border-radius: var(--rayon-sm); padding: var(--e-3); max-height: 360px; overflow: auto; }
.filtres { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: end; margin-bottom: var(--e-4); }
.filtres .champ { min-width: 160px; }
.pagination { display: flex; gap: var(--e-2); justify-content: flex-end; margin-top: var(--e-3); }
/* ---------------------------------------------------------------- Utilitaires (CSP : aucun style inline) */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--e-2); }
.mt-3 { margin-top: var(--e-3); }
.mt-4 { margin-top: var(--e-4); }
.mt-5 { margin-top: var(--e-5); }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--e-3); }
.mb-5 { margin-bottom: var(--e-5); }
.flex { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }
.entre { justify-content: space-between; }
.larg-form { max-width: 640px; }
.logo-inner { display: inline-flex; align-items: center; gap: .55rem; }
.logo-image { width: 34px; height: 34px; border-radius: 8px; background: var(--blanc); flex: none; }
.logo-image-clair { width: auto; height: 30px; flex: none; }
/* Largeurs de progression (CSP) */
.larg-0 { width: 0%; }
.larg-1 { width: 1%; }
.larg-2 { width: 2%; }
.larg-3 { width: 3%; }
.larg-4 { width: 4%; }
.larg-5 { width: 5%; }
.larg-6 { width: 6%; }
.larg-7 { width: 7%; }
.larg-8 { width: 8%; }
.larg-9 { width: 9%; }
.larg-10 { width: 10%; }
.larg-11 { width: 11%; }
.larg-12 { width: 12%; }
.larg-13 { width: 13%; }
.larg-14 { width: 14%; }
.larg-15 { width: 15%; }
.larg-16 { width: 16%; }
.larg-17 { width: 17%; }
.larg-18 { width: 18%; }
.larg-19 { width: 19%; }
.larg-20 { width: 20%; }
.larg-21 { width: 21%; }
.larg-22 { width: 22%; }
.larg-23 { width: 23%; }
.larg-24 { width: 24%; }
.larg-25 { width: 25%; }
.larg-26 { width: 26%; }
.larg-27 { width: 27%; }
.larg-28 { width: 28%; }
.larg-29 { width: 29%; }
.larg-30 { width: 30%; }
.larg-31 { width: 31%; }
.larg-32 { width: 32%; }
.larg-33 { width: 33%; }
.larg-34 { width: 34%; }
.larg-35 { width: 35%; }
.larg-36 { width: 36%; }
.larg-37 { width: 37%; }
.larg-38 { width: 38%; }
.larg-39 { width: 39%; }
.larg-40 { width: 40%; }
.larg-41 { width: 41%; }
.larg-42 { width: 42%; }
.larg-43 { width: 43%; }
.larg-44 { width: 44%; }
.larg-45 { width: 45%; }
.larg-46 { width: 46%; }
.larg-47 { width: 47%; }
.larg-48 { width: 48%; }
.larg-49 { width: 49%; }
.larg-50 { width: 50%; }
.larg-51 { width: 51%; }
.larg-52 { width: 52%; }
.larg-53 { width: 53%; }
.larg-54 { width: 54%; }
.larg-55 { width: 55%; }
.larg-56 { width: 56%; }
.larg-57 { width: 57%; }
.larg-58 { width: 58%; }
.larg-59 { width: 59%; }
.larg-60 { width: 60%; }
.larg-61 { width: 61%; }
.larg-62 { width: 62%; }
.larg-63 { width: 63%; }
.larg-64 { width: 64%; }
.larg-65 { width: 65%; }
.larg-66 { width: 66%; }
.larg-67 { width: 67%; }
.larg-68 { width: 68%; }
.larg-69 { width: 69%; }
.larg-70 { width: 70%; }
.larg-71 { width: 71%; }
.larg-72 { width: 72%; }
.larg-73 { width: 73%; }
.larg-74 { width: 74%; }
.larg-75 { width: 75%; }
.larg-76 { width: 76%; }
.larg-77 { width: 77%; }
.larg-78 { width: 78%; }
.larg-79 { width: 79%; }
.larg-80 { width: 80%; }
.larg-81 { width: 81%; }
.larg-82 { width: 82%; }
.larg-83 { width: 83%; }
.larg-84 { width: 84%; }
.larg-85 { width: 85%; }
.larg-86 { width: 86%; }
.larg-87 { width: 87%; }
.larg-88 { width: 88%; }
.larg-89 { width: 89%; }
.larg-90 { width: 90%; }
.larg-91 { width: 91%; }
.larg-92 { width: 92%; }
.larg-93 { width: 93%; }
.larg-94 { width: 94%; }
.larg-95 { width: 95%; }
.larg-96 { width: 96%; }
.larg-97 { width: 97%; }
.larg-98 { width: 98%; }
.larg-99 { width: 99%; }
.larg-100 { width: 100%; }
.carte.sombre .liste-check .ico { color: var(--blanc); }
/* Écran super ultra-large 5120 × 1440 : Jarvis 640 px, cartes jusqu'à 6 colonnes, 14 indicateurs sur une ligne */
form.inline { display: inline; margin-left: .5rem; }
/* Cibles tactiles ≥ 44 px sur mobile et écrans tactiles (WCAG 2.5.5 / exigence § 44) */
@media (max-width: 899px), (pointer: coarse) {
  .btn, .btn-petit, button, select,
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]) { min-height: 44px; }
  .panneau-tete a, .app-topbar a, .app-topbar button, .logo, .liens-pied a, footer nav a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .app-topbar button { min-width: 44px; justify-content: center; }
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
  [data-consentement-reouvrir] { display: inline-block; padding: 13px 0; }
}
/* Pages reprises de la v2 (services, réalisations) */
.h3 { font-size: var(--t-md); }
/* Placeholder des emplacements photo (en attente d'une photo importée dans Solar-Admin → Images du site) */
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: var(--e-5);
  color: #c3cee0; font-size: var(--t-sm); min-height: 220px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px), linear-gradient(135deg, var(--nuit-700), var(--nuit-950) 75%);
  border: 2px dashed rgba(143,176,255,.45); border-radius: inherit; }
.img-placeholder strong { color: var(--blanc); font-size: var(--t-md); }
.img-placeholder-format { font-size: var(--t-xs); letter-spacing: .08em; color: #9fb0cc; }
/* Solar-Map (Solar-Admin) : états calculés, couleur doublée d'un texte (jamais la couleur seule) */
.carte-legende { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); align-items: center; font-size: var(--t-sm); margin-bottom: var(--e-4); }
.carte-noeud a { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--e-2); align-items: start; padding: var(--e-2) var(--e-3); border-radius: var(--rayon-sm); text-decoration: none; color: var(--texte); border: 1px solid var(--ligne); min-height: var(--cible); }
.carte-noeud a:hover { border-color: var(--nuit-600); }
.carte-pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-top: .3rem; }
/* pastille : couleur de l'élément qui la porte directement (jamais celle d'un conteneur parent) */
.etat-vert > .carte-pastille, .etat-vert > * > .carte-pastille { background: #127a4a; }
.etat-jaune > .carte-pastille, .etat-jaune > * > .carte-pastille { background: #b7791f; }
.etat-rouge > .carte-pastille, .etat-rouge > * > .carte-pastille { background: #b42318; }
.carte-noeud.etat-rouge a { border-color: #b42318; background: var(--danger-fond); }
.carte-noeud.etat-jaune a { border-color: #e0b25c; background: var(--alerte-fond); }
strong.etat-vert { color: var(--succes); }
strong.etat-jaune { color: var(--alerte); }
strong.etat-rouge { color: var(--danger); }
strong.etat-gris { color: var(--texte-doux); }
.etat-gris > .carte-pastille, .etat-gris > * > .carte-pastille { background: #6b7280; }
.etat-bleu > .carte-pastille, .etat-bleu > * > .carte-pastille { background: #1d4ed8; }
strong.etat-bleu { color: #1d4ed8; }
.carte-noeud.etat-bleu a { border-color: #93b4f5; }
/* Solar-Map multi-vues (phase 33) : présentation fonctionnelle, design du grand écran à venir */
.carte-etat-texte { font-weight: 600; }
.carte-noeud.etat-gris a { border-style: dashed; }
/* « Voir en tant que » (D93) : bandeau d'administration, impossible à confondre avec une session client */
form[data-vet-lecture-seule] :disabled { cursor: not-allowed; opacity: .6; }
/* ---------------------------------------------------------------- Identité publique verrouillée (D97)
   Sites publics seulement (body.site-*) : bleu nuit dominant, noir profond, blanc, gris froid. Aucune couleur propre
   à un produit ; ni orange, jaune, violet, vert ni rouge. Solar-Admin et l'espace client ne sont pas concernés. */
body[class^="site-"] { --accent: #1a2d52; --accent-clair: #e6ebf3; --info-fond: #e6ebf3; }
body[class^="site-"] :focus-visible { outline-color: #1a2d52; }
body[class^="site-"] .champ input:focus, body[class^="site-"] .champ select:focus, body[class^="site-"] .champ textarea:focus { outline-color: rgba(26,45,82,.25); }
.nav-registre .nav-app .ico { flex: 0 0 auto; }
/* Onglets et galerie d'images, communs à Solar-Admin et à l'espace client (onboarding, maquettes) */
.onglets { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-bottom: var(--e-4); border-bottom: 1px solid var(--ligne); }
.onglets a { display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 var(--e-4); color: var(--texte-doux); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.onglets a:hover { color: var(--texte); }
.onglets a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.galerie-onboarding { list-style: none; margin: 0 0 var(--e-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--e-3); }
.galerie-onboarding li { display: flex; flex-direction: column; gap: var(--e-1); }
.galerie-onboarding img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); border: 1px solid var(--ligne); }
/* Réglages Solar-Chat (D159) : formulaire et aperçu côte à côte sur grand écran, empilés sur mobile */
.chat-reglages { display: grid; gap: var(--e-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .chat-reglages { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 400px); align-items: start; } .chat-reglages-apercu { position: sticky; top: calc(var(--entete-admin, 72px) + 16px); } }
.chat-reglages fieldset { margin: 0 0 var(--e-4); padding: var(--e-3) var(--e-4) var(--e-4); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.chat-reglages legend { padding: 0 .4rem; font-weight: 600; }
.chat-reglages-couleurs { display: grid; gap: var(--e-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.chat-couleur input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); background: var(--blanc); cursor: pointer; }
.chat-contraste { display: block; color: var(--texte-doux); }
.chat-contraste-ko { color: var(--danger); font-weight: 600; }
.chat-icones { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-bottom: var(--e-3); }
.chat-icone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--ligne); border-radius: 50%; cursor: pointer; }
.chat-icone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chat-icone:has(input:checked) { border: 2px solid var(--accent); background: #eef3ff; }
.chat-icone:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chat-apercu-cadre { position: relative; min-height: 600px; border: 1px dashed var(--ligne); border-radius: var(--rayon); background: repeating-linear-gradient(45deg, var(--fond-alt), var(--fond-alt) 10px, var(--blanc) 10px, var(--blanc) 20px); overflow: hidden; }
