/* FALOM ADMIN — FA-UX (refonte visuelle du prototype FA-02) — thème sombre noir et graphite.
   Aucune police, image ou ressource externe. Aucun style en ligne (CSP style-src 'self').
   Règles : pas de flou d'arrière-plan, pas de lueur, pas de dégradé décoratif. Seules textures permises : le bandeau
   SIMULATION (hachures d'avertissement) et l'état INDISPONIBLE (hachures fines), qui portent un sens.
   Guide complet : docs/design/FA-UX_GUIDE_STYLES.md */
:root {
  /* surfaces */
  --fond: #0b0c0e;
  --fond-2: #0a0b0e;
  --surface: #101216;
  --surface-2: #171a1f;
  --surface-3: #1e2128;
  --bord: #1f222a;
  --bord-fort: #2e323c;
  /* texte */
  --texte: #eceef2;
  --texte-2: #b9bfc9;
  --doux: #8d95a1;
  /* accent FALOM (navigation, focus) — violet de la marque FALOM (FA-UX-005), distinct du violet produit RELIX */
  --accent: #a184ff;
  --accent-teinte: #1d1638;
  /* produits — couleurs validées sur --surface (docs/validations/FA-UX-004/palette_produits_sombre.txt) */
  --relix: #8b7cf6;
  --relix-profond: #33248f;
  --relix-teinte: #1a1730;
  --legalix: #d06a2a;
  --legalix-profond: #7a3510;
  --legalix-teinte: #241811;
  --zenix: #2f9c74;
  --zenix-profond: #1f5e48;
  --zenix-teinte: #11201b;
  /* états de sécurité (réservés : jamais utilisés pour autre chose) */
  --etat-normal: #4cc38a;
  --etat-arret: #e5484d;
  --etat-perime: #e0b341;
  --etat-inconnu: #9aa3ae;
  --etat-indisponible: #f97066;
  --etat-contradictoire: #f472b6;
  /* simulation */
  --simu: #f5b544;
  /* gabarit */
  --rayon: 12px;
  --rayon-petit: 8px;
  --espace: 20px;
  --ecart: 16px;
  --police: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--fond); color: var(--texte); font: 14.5px/1.55 var(--police); min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.doux { color: var(--doux); }
.petit { font-size: 12.5px; }
.texte-danger { color: var(--etat-arret); font-weight: 650; }
.chiffre { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- bandeau permanent de simulation (au-dessus de tout) ---------- */
/* FA-UX-005 : bandeau fin et sobre (la référence n'a pas de bandeau technique lourd), toujours visible au-dessus de tout */
.bandeau-simulation {
  position: sticky; top: 0; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 3px 16px; font-size: 11px; color: var(--simu); background: #131008;
  border-bottom: 1px solid rgba(245, 181, 68, .3); text-align: center; line-height: 1.5;
}
.bandeau-simulation strong { letter-spacing: .18em; }
.bandeau-simulation span:not(.env) { color: #d9c497; }
.bandeau-simulation .env { padding: 0 8px; font-size: 10px; line-height: 1.6; }

/* ---------- fond : lignes très fines, décor seulement ---------- */
.fond-lignes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; fill: none;
  stroke: #8a6cff; stroke-opacity: .15; stroke-width: 1; }
.fond-lignes .douce { stroke-opacity: .1; }
.fond-lignes .vive { stroke: #b49cff; stroke-opacity: .32; stroke-width: 1.1; }

/* ---------- cadre : barre latérale pleine hauteur + colonne de contenu ---------- */
.cadre { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 25px); }
.cote { position: sticky; top: 25px; height: calc(100vh - 25px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 16px 14px; background: var(--fond-2); border-right: 1px solid var(--bord); }
.marque { display: flex; align-items: center; gap: 13px; white-space: nowrap; padding: 0 4px 6px; }
.marque-texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque-texte b { font-size: 22px; font-weight: 700; letter-spacing: .1em; color: var(--texte); }
.marque-texte small { font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--texte-2); margin-top: 3px; }
.marque-mobile { display: none; }
.cote-pied { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--bord);
  font-size: 12.5px; color: var(--texte-2); }
.cote-statut { display: flex; gap: 10px; align-items: flex-start; }
.cote-pied small { display: block; font-size: 11px; color: var(--doux); }
.cote-pied .filtre-scenario { display: flex; flex-direction: column; gap: 3px; }
.cote-pied select { width: 100%; font-size: 12.5px; padding: 5px 8px; }
.point-simu { width: 9px; height: 9px; border-radius: 50%; background: var(--simu); flex: none; margin-top: 5px; }
.colonne { min-width: 0; display: flex; flex-direction: column; }

/* ---------- barre du haut (FA-UX-005 : filtres repliés, période, cloche, profil) ---------- */
.barre {
  position: relative; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap;
  padding: 10px clamp(16px, 2.6vw, 40px);
}
#filtres { min-width: 0; }
.barre-outils-haut { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.filtres-menu { position: relative; }
.filtres-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--bord-fort);
  border-radius: 10px; color: var(--texte-2); font-size: 13.5px; cursor: pointer; background: var(--surface); white-space: nowrap; }
.filtres-menu summary::-webkit-details-marker { display: none; }
.filtres-menu[open] summary { border-color: var(--accent); color: var(--texte); }
.filtres-panneau { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; width: max-content; max-width: 86vw; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--bord-fort); border-radius: 12px; }
.periode-choix { position: relative; }
.periode-choix summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid var(--bord-fort);
  border-radius: 10px; background: var(--surface); color: var(--texte); cursor: pointer; }
.periode-choix summary::-webkit-details-marker { display: none; }
.periode-choix[open] summary { border-color: var(--accent); }
.periode-choix .icone { color: var(--texte-2); }
.periode-plage { font-size: 15px; white-space: nowrap; }
.periode-panneau { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--bord-fort); border-radius: 12px; }
.cloche { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: var(--texte); border-radius: 10px; }
.cloche:hover { background: var(--surface); text-decoration: none; }
.cloche .icone { stroke-width: 1.5; }
.cloche-point { position: absolute; top: 7px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--fond); }
.profil { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3);
  border: 1px solid var(--bord-fort); font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.profil-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.profil-texte select { background: transparent; border: 0; padding: 0 4px 0 0; font-size: 14.5px; color: var(--texte); max-width: 200px; cursor: pointer; }
.profil-role { font-size: 11.5px; color: var(--doux); white-space: nowrap; }
.filtres { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; }
.filtres label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.etiquette { font-size: 10.5px; color: var(--doux); text-transform: uppercase; letter-spacing: .09em; }
.etiquette-alerte { color: var(--simu); }
select, input, textarea {
  background: var(--surface); color: var(--texte); border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit);
  padding: 6px 10px; font: inherit; font-size: 13.5px; max-width: 100%;
}
textarea { resize: vertical; width: 100%; }
.env { padding: 3px 10px; border: 1px solid var(--simu); color: var(--simu); border-radius: 999px; font-size: 11.5px;
  letter-spacing: .1em; white-space: nowrap; font-weight: 600; }
.bouton-menu { display: none; background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord-fort);
  border-radius: var(--rayon-petit); padding: 6px 10px; font-size: 18px; cursor: pointer; }

/* bandeau des états non normaux : dans la barre collante, donc toujours visible */
.bandeau-etats { flex: 1 0 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.bandeau-etats:empty { display: none; }
.bandeau-etats .titre-bandeau { font-size: 12px; color: var(--texte-2); margin-right: 4px; }

/* ---------- navigation ---------- */
.menu-interieur { display: flex; flex-direction: column; gap: 9px; }
.menu-groupe { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; border-top: 1px solid var(--bord-fort); }
.menu-groupe:first-child { border-top: 0; padding-top: 4px; }
.menu-titre { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--texte-2); padding: 0 12px 6px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.menu a { display: flex; align-items: center; gap: 13px; padding: 5px 12px; border-radius: 9px; color: var(--texte);
  font-size: 14px; }
.menu a:hover { background: var(--surface); color: var(--texte); text-decoration: none; }
.menu a[aria-current="page"] { background: var(--accent-teinte); color: #fff; box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px #2f2560; }
.menu .icone { color: var(--texte-2); }
.menu a:hover .icone, .menu a[aria-current="page"] .icone { color: var(--texte); }
.menu .logo-produit { border-radius: 6px; }
.menu-libelle { min-width: 0; }
.icone { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu .logo-produit { flex: none; }
.menu-point { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; }

main { padding: 18px clamp(20px, 3vw, 56px) 44px; min-width: 0; max-width: none; }
.entete-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.entete-page h1 { margin: 0 0 2px; font-size: 38px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.entete-page p { margin: 0; }
.entete-page > div > p.doux { color: var(--texte-2); font-size: 16px; }
.entete-titre { display: flex; align-items: center; gap: 14px; min-width: 0; }
.section-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; flex-wrap: wrap; }
.section-titre h2 { margin: 0; font-size: 17px; color: var(--texte); font-weight: 650; letter-spacing: -.005em; }

/* ---------- cartes ---------- */
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: var(--espace);
  margin-bottom: var(--ecart); min-width: 0; }
.carte h2 { margin: 0 0 14px; font-size: 15px; font-weight: 650; }
.carte h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--texte-2); }
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.carte-tete h2 { margin: 0; }
.carte-tete .note { font-size: 12px; color: var(--doux); }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grille-cartes > .carte { margin-bottom: 0; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.grille-2 > .carte { margin-bottom: 0; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ecart); margin-bottom: var(--ecart); }
.grille-3 > .carte { margin-bottom: 0; }
.large-2 { grid-column: span 2; }

/* carte produit */
/* la couleur du produit reste sur le logo, les indicateurs et les graphiques : pas sur le cadre de la carte */
.carte-produit { position: relative; display: flex; flex-direction: column; gap: 16px; }
.carte-produit.produit-relix, .produit-relix { --p: var(--relix); --p-profond: var(--relix-profond); --p-teinte: var(--relix-teinte); }
.carte-produit.produit-legalix, .produit-legalix { --p: var(--legalix); --p-profond: var(--legalix-profond); --p-teinte: var(--legalix-teinte); }
.carte-produit.produit-zenix, .produit-zenix { --p: var(--zenix); --p-profond: var(--zenix-profond); --p-teinte: var(--zenix-teinte); }
.produit-tete { display: flex; align-items: center; gap: 12px; }
.produit-tete h2 { margin: 0; font-size: 16px; letter-spacing: .12em; font-weight: 700; }
.produit-tete .secteur { font-size: 12px; color: var(--doux); }
.produit-tete .pastille-etat { margin-left: auto; }
.logo-produit { display: block; flex: none; border-radius: 11px; }
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.chiffres > div { min-width: 0; }
.chiffres dt { font-size: 11.5px; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.chiffres dd { margin: 2px 0 0; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.chiffres dd.texte-doux, .chiffres dd .unite { font-size: 13px; font-weight: 500; color: var(--doux); }
.chiffres .large { grid-column: 1 / -1; }
.chiffres.chiffres-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.chiffres-4 .tuile-kpi { padding: 2px 20px; border-left: 1px solid var(--bord); }
.chiffres-4 .tuile-kpi:first-child { padding-left: 0; border-left: 0; }
.chiffres-4 dd { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
/* carte produit : DOM inchangé (campagnes, relances, réponses, taux, état) ; les relances passent en tête, en grand */
.kpi-produit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.kpi-produit .k-relances { grid-column: 1 / -1; order: -1; padding-bottom: 14px; border-bottom: 1px solid var(--bord); }
.kpi-produit .k-relances dd { font-size: 38px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin-top: 4px; }
.kpi-produit .k-campagnes dd, .kpi-produit .k-reponses dd, .kpi-produit .k-taux dd { font-size: 21px; font-weight: 650; }
.kpi-produit .k-etat { order: 9; }
.kpi-produit > div { display: flex; flex-direction: column; }
.kpi-produit > div > dt { flex: 1 0 auto; }
.kpi-produit dt { font-size: 11px; letter-spacing: .07em; }
.variation { margin-top: 4px; font-size: 12.5px; color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.variation .doux { font-weight: 400; }
.mini-courbe { display: flex; flex-direction: column; gap: 4px; }
.pied-carte { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--bord); padding-top: 12px; font-size: 12.5px; color: var(--doux); }
.mention-fictif { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--simu); border: 1px solid rgba(245, 181, 68, .45);
  border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.valeurs-absentes { border: 1px dashed var(--bord-fort); border-radius: var(--rayon-petit); padding: 14px; color: var(--texte-2); font-size: 13px; }
.valeurs-absentes strong { display: block; margin-bottom: 4px; color: var(--texte); }

/* ---------- états de sécurité ---------- */
.pastille { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 650;
  letter-spacing: .08em; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.pastille-simule { color: var(--simu); border-color: rgba(245, 181, 68, .6); background: rgba(245, 181, 68, .08); }
.pastille-inconnu { color: var(--etat-inconnu); border-color: var(--bord-fort); border-style: dashed; background: rgba(255, 255, 255, .02); }
.pastille-danger { color: var(--etat-indisponible); border-color: rgba(249, 112, 102, .6); background: rgba(249, 112, 102, .08); }
.pastille-attente { color: var(--etat-perime); border-color: rgba(224, 179, 65, .5); background: rgba(224, 179, 65, .06); }
.pastille-reel-inactif { color: #5f6672; border-color: #3a3f48; text-decoration: line-through; }
.pastille-neutre { color: var(--texte-2); border-color: var(--bord-fort); background: var(--surface-2); }
.etat-normal { color: var(--etat-normal); border-color: rgba(76, 195, 138, .5); background: rgba(76, 195, 138, .07); }
.etat-arret { color: #fff; border-color: var(--etat-arret); background: var(--etat-arret); }
.etat-perime { color: var(--etat-perime); border-color: var(--etat-perime); border-style: dotted; background: rgba(224, 179, 65, .08); }
.etat-inconnu { color: var(--etat-inconnu); border-color: var(--etat-inconnu); border-style: dashed; background: transparent; }
.etat-indisponible { color: var(--etat-indisponible); border-color: var(--etat-indisponible); background: rgba(249, 112, 102, .1); }
.etat-contradictoire { color: var(--etat-contradictoire); border-color: var(--etat-contradictoire); border-style: double; border-width: 3px;
  padding: 0 7px; background: rgba(244, 114, 182, .08); }

/* traitement de la carte selon l'état : la bordure et un bandeau interne ne disparaissent jamais */
.cadre-etat { border: 1px solid var(--bord); }
.carte.cadre-arret { border-color: var(--etat-arret); box-shadow: inset 0 0 0 1px var(--etat-arret); }
.carte.cadre-perime { border-color: var(--etat-perime); border-style: dotted; }
.carte.cadre-inconnu { border-color: var(--etat-inconnu); border-style: dashed; }
.carte.cadre-indisponible { border-color: var(--etat-indisponible);
  background: repeating-linear-gradient(135deg, var(--surface) 0 10px, #1b1716 10px 12px); }
.carte.cadre-contradictoire { border: 3px double var(--etat-contradictoire); }
.carte-produit.cadre-arret, .carte-produit.cadre-perime, .carte-produit.cadre-inconnu, .carte-produit.cadre-indisponible,
.carte-produit.cadre-contradictoire { border-top-width: 3px; }
.bandeau-carte { display: flex; gap: 8px; align-items: flex-start; border-radius: var(--rayon-petit); padding: 9px 12px; font-size: 13px; }
.bandeau-carte strong { white-space: nowrap; }
.bandeau-arret { background: var(--etat-arret); color: #fff; }
.bandeau-perime { background: rgba(224, 179, 65, .12); color: #f3d88e; border: 1px dotted var(--etat-perime); }
.bandeau-inconnu { background: rgba(154, 163, 174, .08); color: var(--texte-2); border: 1px dashed var(--etat-inconnu); }
.bandeau-indisponible { background: rgba(249, 112, 102, .12); color: #fbb4ad; border: 1px solid var(--etat-indisponible); }
.bandeau-contradictoire { background: rgba(244, 114, 182, .1); color: #f9b8d9; border: 3px double var(--etat-contradictoire); }
.chiffres dd.absent, .kpi-produit .k-relances dd.absent, .kpi-produit div dd.absent { font-size: 15px; font-weight: 600; color: var(--doux);
  letter-spacing: .02em; padding-top: 6px; }
.valeurs-anciennes dd:not(.texte-doux) { color: var(--doux); }
.valeurs-anciennes .valeur-ancienne { text-decoration: line-through; text-decoration-color: rgba(224, 179, 65, .6); }
.bandeau-carte { flex-direction: column; gap: 3px; }
.bandeau-carte span { min-width: 0; }
.valeurs-anciennes dd .age { display: block; font-size: 11px; color: var(--etat-perime); text-decoration: none; font-weight: 500; }

/* ---------- tableaux ---------- */
.tableau-defilant { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--doux);
  font-weight: 550; padding: 8px 10px; border-bottom: 1px solid var(--bord-fort); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--bord); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.col-large { min-width: 200px; }
.col-moyenne { min-width: 150px; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.cellule-produit { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; letter-spacing: .06em; }

/* ---------- boutons, formulaires, alertes ---------- */
.bouton { background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit);
  padding: 8px 14px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bouton:hover { border-color: var(--accent); }
.bouton-principal { background: #12303d; border-color: #2a6a85; }
.bouton-petit { padding: 5px 10px; font-size: 12.5px; }
.bouton-inactif, .bouton[disabled] { opacity: .55; cursor: not-allowed; border-style: dashed; }
.bouton-inactif:hover, .bouton[disabled]:hover { border-color: var(--bord-fort); }
.etiquette-nc { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux);
  border: 1px solid var(--bord-fort); border-radius: 4px; padding: 0 5px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.formulaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.formulaire label { display: flex; flex-direction: column; gap: 4px; color: var(--doux); font-size: 13px; }
.formulaire .large { grid-column: 1 / -1; }
.alerte { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.alerte p { margin: 6px 0 0; }
.alerte-ok { border-color: rgba(76, 195, 138, .45); background: rgba(76, 195, 138, .07); }
.alerte-refus { border-color: rgba(249, 112, 102, .5); background: rgba(249, 112, 102, .08); }
.alerte-info { border-color: rgba(92, 200, 245, .45); background: rgba(92, 200, 245, .06); }
.liste-simple { margin: 0; padding-left: 18px; }
.liste-simple li { margin: 4px 0; }
.liste-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vide { text-align: center; padding: 36px 18px; }
.pied { margin-top: 32px; text-align: center; }
.cadre-noscript { padding: 24px; }

/* sélecteur de période (segments) */
.segments { display: inline-flex; border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit); overflow: hidden; }
.segments button { background: transparent; color: var(--texte-2); border: 0; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.segments button + button { border-left: 1px solid var(--bord-fort); }
.segments button[aria-pressed="true"] { background: var(--surface-3); color: var(--texte); font-weight: 600; }
.barre-outils { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- listes de panneaux ---------- */
.liste-panneau { list-style: none; margin: 0; padding: 0; }
.liste-panneau li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.liste-panneau li:last-child { border-bottom: 0; padding-bottom: 0; }
.liste-panneau li:first-child { padding-top: 0; }
.liste-panneau .corps { flex: 1; min-width: 0; }
.liste-panneau .corps span { display: block; font-size: 12px; color: var(--doux); }
.puce-produit { width: 8px; height: 8px; border-radius: 50%; background: var(--p); flex: none; margin-top: 7px; }
.gravite { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 7px; border-radius: 4px;
  border: 1px solid var(--bord-fort); color: var(--texte-2); white-space: nowrap; }
.gravite-elevee { color: #fbb4ad; border-color: rgba(249, 112, 102, .55); }
.gravite-moyenne { color: #f3d88e; border-color: rgba(224, 179, 65, .5); }

/* barres horizontales (réponses, campagnes) : ordre FIXE des produits */
.barres { display: flex; flex-direction: column; gap: 14px; }
.barre-ligne { display: grid; grid-template-columns: 92px minmax(0, 1fr) 118px; gap: 12px; align-items: center; }
.barre-ligne .nom { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; display: flex; align-items: center; gap: 7px; }
.barre-ligne .valeur { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.barre-ligne .valeur span { display: block; font-size: 11.5px; color: var(--doux); }
.piste { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; display: flex; gap: 2px; }
.remplissage { height: 100%; background: var(--p); border-radius: 0 4px 4px 0; min-width: 2px; }
.segment { height: 100%; background: var(--p); flex: 1 1 0; min-width: 3px; }
.segment:last-child { border-radius: 0 4px 4px 0; }
.segment-suspendues { background: repeating-linear-gradient(135deg, var(--p) 0 3px, transparent 3px 5px); }
.produit-falom { --p: var(--accent); }
.menu-etat { margin-left: auto; border: 1px solid; border-radius: 4px; padding: 0 5px; font-size: 11px; line-height: 1.5; }
.lien-etat { display: inline-flex; align-items: center; gap: 6px; color: var(--texte-2); font-size: 12.5px; }
.lien-etat:hover { text-decoration: none; color: var(--texte); }
.segment-terminees { opacity: .3; }
.piste-absente { height: 10px; border: 1px dashed var(--bord-fort); border-radius: 5px; }
.legende-ligne { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--texte-2); margin-top: 12px; }
.legende-ligne .cle { margin-right: 6px; }

/* ---------- graphiques ---------- */
.graphique { position: relative; width: 100%; min-height: 44px; }
.graphique svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.graphique svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ligne-grille { stroke: var(--bord); stroke-width: 1; }
.ligne-base { stroke: var(--bord-fort); stroke-width: 1; }
.texte-axe { fill: var(--doux); font-size: 11px; font-variant-numeric: tabular-nums; }
.texte-direct { fill: var(--texte-2); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }
.trace { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trace-relix { stroke: var(--relix); } .point-relix { fill: var(--relix); }
.trace-legalix { stroke: var(--legalix); } .point-legalix { fill: var(--legalix); }
.trace-zenix { stroke: var(--zenix); } .point-zenix { fill: var(--zenix); }
.trace-secondaire { stroke: var(--texte-2); stroke-dasharray: 5 4; }
circle.trace-secondaire { fill: var(--texte-2); stroke: none; }
.point { stroke: var(--surface); stroke-width: 2; }
.curseur { stroke: var(--bord-fort); stroke-width: 1; }
.infobulle { position: absolute; z-index: 5; min-width: 170px; background: var(--surface-3); border: 1px solid var(--bord-fort);
  border-radius: var(--rayon-petit); padding: 8px 10px; font-size: 12px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.infobulle[hidden] { display: none; }
.infobulle em { color: var(--simu); font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.cle { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: var(--p); }
.cle-relix { background: var(--relix); } .cle-legalix { background: var(--legalix); } .cle-zenix { background: var(--zenix); }
.cle-secondaire { background: var(--texte-2); }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--texte-2); margin-top: 10px; }
.non-trace { font-size: 12px; color: var(--doux); margin-top: 8px; }

/* ---------- tableau de bord (FA-UX-002) : grille 12 colonnes, chiffres en avant ---------- */
.grille-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ecart); margin-bottom: var(--ecart); }
.grille-12 > .carte { margin-bottom: 0; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; }

/* synthèse : sur le fond, sans carte (hiérarchie : étiquette, grand chiffre, répartition, détail) */
.synthese { min-width: 0; padding: 4px 8px 0 2px; }
.etiquette-kpi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--texte-2); }
.kpi-heros { margin: 10px 0 2px; font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-heros.absent { font-size: 24px; color: var(--doux); font-weight: 650; letter-spacing: 0; padding: 14px 0 6px; }
.sous-kpi { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.activite { display: flex; gap: 3px; height: 6px; max-width: 560px; border-radius: 3px; overflow: hidden; }
.activite span { flex: 1 1 0; height: 100%; background: var(--p); }
.activite span:first-child { border-radius: 3px 0 0 3px; } .activite span:last-child { border-radius: 0 3px 3px 0; }
.liste-activite { list-style: none; margin: 18px 0 0; padding: 0; max-width: 560px; }
.liste-activite li { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 14px; align-items: center; padding: 9px 0;
  border-bottom: 1px solid var(--bord); font-size: 14px; }
.liste-activite li:last-child { border-bottom: 0; }
.liste-activite .nom { display: flex; align-items: center; gap: 9px; color: var(--texte-2); letter-spacing: .06em; font-weight: 600; font-size: 13px; }
.liste-activite .puce-produit { margin-top: 0; }
.liste-activite .part { text-align: right; font-weight: 650; color: var(--texte); }
.stats-secondaires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; max-width: 560px; }
.stats-secondaires > div { padding: 0 16px; border-left: 1px solid var(--bord); min-width: 0; }
.stats-secondaires > div:first-child { padding-left: 0; border-left: 0; }
.stats-secondaires dt { font-size: 12px; color: var(--doux); }
.stats-secondaires dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stats-secondaires dd .doux { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.non-compte { margin: 12px 0 0; font-size: 12.5px; color: var(--texte-2); border-left: 2px solid var(--bord-fort); padding-left: 10px; }

/* état des systèmes : tuiles logo / icône, nom, fraîcheur, pastille ou compteur */
.liste-systemes { list-style: none; margin: 0; padding: 0; }
.ligne-systeme { display: flex; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.ligne-systeme:first-child { padding-top: 0; }
.ligne-systeme:last-child { border-bottom: 0; padding-bottom: 0; }
.ligne-systeme .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne-systeme .corps strong { font-size: 14px; letter-spacing: .08em; }
.ligne-systeme .corps a { color: var(--texte); font-weight: 600; font-size: 14px; }
.ligne-systeme .corps span { font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface-3);
  color: var(--texte-2); }
.compteur { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }

/* chiffre de tête d'un panneau */
.kpi-panneau { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: -2px 0 18px; }
.kpi-panneau strong { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-panneau strong.absent { font-size: 18px; color: var(--doux); font-weight: 650; letter-spacing: 0; }
.kpi-panneau span { font-size: 13px; color: var(--doux); }
.note-pied { margin: 14px 0 0; font-size: 12px; color: var(--doux); }

/* anneaux de taux de réponse (une mesure par produit, ordre fixe) */
.anneaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.anneau { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.anneau svg { display: block; }
.anneau-fond { stroke: var(--surface-3); }
.anneau-arc { stroke-linecap: round; }
.anneau-texte { fill: var(--texte); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.anneau .nom { font-size: 12px; font-weight: 650; letter-spacing: .08em; margin-top: 2px; }
.anneau .det { font-size: 12px; color: var(--doux); }
.anneau-absent { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed var(--bord-fort); display: grid; place-items: center;
  font-size: 22px; color: var(--doux); }

/* ---------- tableau de bord (FA-UX-005 = reproduction fidèle de la référence approuvée par le fondateur) ---------- */
.s3 { grid-column: span 3; } .s9 { grid-column: span 9; }
.marque-logo { display: inline-flex; }
.marque-logo .logo-produit { border-radius: 12px; }
img.logo-produit { object-fit: cover; border-radius: 22%; }
.sr-seulement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.carte-tete h2 { display: flex; align-items: center; gap: 11px; }
.carte-tete h2 .icone { color: var(--texte); }
.titre-note { font-size: 12.5px; font-weight: 400; color: var(--texte-2); }
.lien-pied { display: inline-block; margin-top: 10px; }

/* rangée héros : zone centrale (indicateurs + scène) | colonne de droite */
.rangee-heros { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; margin-bottom: 10px; }
.zone-centrale { min-width: 0; display: flex; flex-direction: column; }

/* indicateurs : grands chiffres, icônes au trait, filets fins entre eux, sans boîte */
.bande-kpi { position: relative; padding: 10px 0 0; }
.bande-kpi::before { content: ""; position: absolute; left: 4px; top: 0; width: 58px; height: 2px; border-radius: 2px; background: var(--accent); }
.kpi-ligne { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { display: flex; gap: 16px; align-items: flex-start; padding: 6px 18px; border-left: 1px solid var(--bord-fort); min-width: 0; }
.kpi:first-child { border-left: 0; padding-left: 6px; }
.kpi-icone { color: var(--texte); padding-top: 3px; flex: none; }
.kpi-icone .icone { stroke-width: 1.35; }
.kpi-corps { display: flex; flex-direction: column; min-width: 0; }
.kpi-corps strong { font-size: 27px; font-weight: 650; letter-spacing: -.01em; line-height: 1.12; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-corps strong.absent { font-size: 15px; color: var(--doux); font-weight: 650; letter-spacing: 0; padding: 6px 0 3px; white-space: normal; }
.kpi-titre { font-size: 13px; color: var(--texte-2); line-height: 1.35; margin-top: 2px; }
.kpi-detail { font-size: 12px; color: var(--doux); margin-top: 6px; }
.kpi .variation { display: inline-block; width: max-content; margin-top: 7px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; }
.bande-kpi > .non-compte { margin: 12px 0 0 6px; }

/* scène orbitale : planète dominante au centre, produits sans cadre autour */
.scene { position: relative; }
.scene-cadre { position: relative; width: 100%; aspect-ratio: 1000 / 360; margin: 10px 0 26px; }
/* FA-UX-005 : tableau de bord sur un seul écran. La scène prend la hauteur qui reste (100vh moins les autres blocs),
   au plus toute la largeur, au moins 600 px de large ; sous ce minimum (écran très bas), la page défile. */
.vue-tableau { --hors-scene: 586px; }
.vue-tableau[data-vue="tableau"] .scene-cadre { width: min(100%, max(600px, calc((var(--hauteur-ref, 100vh) - var(--hors-scene)) * 1000 / 360))); margin-inline: auto; }
main:has(> #contenu > [data-vue="tableau"]) { padding-bottom: 8px; }
main:has(> #contenu > [data-vue="tableau"]) > .pied { display: none; }
.a-surveiller .section-titre { margin-top: 22px; }
.a-surveiller .section-titre h2 { display: flex; align-items: center; gap: 9px; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.planete-mobile { display: none; overflow: visible; }
.planete-grille { fill: none; stroke: #8ea2ff; stroke-opacity: .06; stroke-width: 1; }
/* terres en points (tracés à bouts ronds, reprojetés pendant la rotation) */
.planete-pts { fill: none; stroke-linecap: round; }
.planete-pts-jour { stroke: #d3d7ec; stroke-opacity: .9; stroke-width: 1.7; }
.planete-pts-penombre { stroke: #c9cde3; stroke-opacity: .6; stroke-width: 1.5; }
.planete-pts-nuit { stroke: #b9bdd6; stroke-opacity: .35; stroke-width: 1.3; }
.planete-pts-villes { stroke: #ffae5c; stroke-opacity: .95; stroke-width: 2.3; }
.planete-nom { fill: #ffffff; font-size: 30px; font-weight: 650; letter-spacing: .1em; }
.planete-sous { fill: #e8eaff; font-size: 9.5px; font-weight: 600; letter-spacing: .3em; }
.anneau-orbite { stroke: #6b6f97; stroke-opacity: .8; stroke-width: 1.2; }
.anneau-orbite.anneau-avant { stroke: #a9d6ff; stroke-opacity: .95; stroke-width: 1.6; }
.orbite-lueur { fill: none; stroke: #6fb8ff; stroke-width: 6; stroke-opacity: .55; }
.lien { stroke-width: 1.6; stroke-linecap: round; stroke-opacity: .85; stroke-dasharray: 1.3 1.5; transition: stroke-opacity .2s, stroke-width .2s; }
.lien-relix { stroke: var(--relix); } .lien-legalix { stroke: var(--legalix); } .lien-zenix { stroke: var(--zenix); }
/* un lien non NORMAL prend la couleur et le trait de son état (jamais la couleur « en service » du produit) */
.lien.lien-etat-arret { stroke: var(--etat-arret); stroke-dasharray: 5 2.5; stroke-opacity: .95; }
.lien.lien-etat-perime { stroke: var(--etat-perime); stroke-dasharray: .3 2.4; stroke-width: 2.6; stroke-opacity: .9; }
.lien.lien-etat-inconnu { stroke: var(--etat-inconnu); stroke-dasharray: 3 3; stroke-opacity: .7; }
.lien.lien-etat-indisponible { stroke: var(--etat-indisponible); stroke-dasharray: 34 100; stroke-opacity: .9; }
.lien.lien-etat-contradictoire { stroke: var(--etat-contradictoire); stroke-dasharray: 8 2 1 2; stroke-width: 2.2; stroke-opacity: .95; }
.signal { stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 24.9; animation: signal 2.8s linear infinite; }
.signal-relix { stroke: var(--relix); } .signal-legalix { stroke: var(--legalix); } .signal-zenix { stroke: var(--zenix); }
@keyframes signal { to { stroke-dashoffset: -25; } }
.point-orbite { stroke-width: 2; }
.point-plein.point-relix { fill: #c9c0ff; } .point-plein.point-legalix { fill: #ffc59a; } .point-plein.point-zenix { fill: #8be3c0; }
.point-plein { stroke: var(--fond); }
.point-creux { fill: var(--fond); stroke: var(--etat-inconnu); }
/* lueur néon sur le bord de la planète, au point de liaison d'un produit NORMAL (flou SVG, pas de filtre CSS) */
.lueur { stroke-width: 6; stroke-linecap: round; stroke-opacity: .85; }
.lueur-trait { stroke-width: 2.4; stroke-linecap: round; }
.lueur-point { fill-opacity: .85; }
.lueur-relix { stroke: var(--relix); fill: var(--relix); }
.lueur-legalix { stroke: #ff8a3d; fill: #ff8a3d; }
.lueur-zenix { stroke: #34d399; fill: #34d399; }
.lueur.lueur-zenix { stroke-opacity: .5; } .lueur-point.lueur-zenix { fill-opacity: .55; }
.lueur-coeur { fill: #fff; fill-opacity: .9; }
/* halo des points d'un produit NORMAL (lueur légère « néon », sans filtre) */
.aura { fill-opacity: .22; }
.aura-relix { fill: var(--relix); } .aura-legalix { fill: var(--legalix); } .aura-zenix { fill: var(--zenix); }
/* survol d'un produit : seul un lien NORMAL s'épaissit ; un lien d'état garde son trait */
.scene-cadre:has(.noeud-relix:hover, .noeud-relix:focus-visible) .lien-relix.lien-etat-normal,
.scene-cadre:has(.noeud-legalix:hover, .noeud-legalix:focus-visible) .lien-legalix.lien-etat-normal,
.scene-cadre:has(.noeud-zenix:hover, .noeud-zenix:focus-visible) .lien-zenix.lien-etat-normal { stroke-opacity: 1; stroke-width: 2.6; }
.scene-noeuds { position: absolute; inset: 0; pointer-events: none; }
.noeud { position: absolute; pointer-events: auto; display: flex; gap: 14px; align-items: flex-start; padding: 6px 10px 8px 6px;
  border: 1px solid transparent; border-radius: 14px; color: var(--texte); transition: background .2s, border-color .2s; }
.noeud:hover, .noeud:focus-visible { text-decoration: none; background: rgba(255, 255, 255, .03); border-color: var(--bord); }
.noeud .logo-produit { border-radius: 13px; }
.noeud-relix { left: 5%; top: 19%; }
.noeud-legalix { left: 76.5%; top: 19%; }
.noeud-zenix { left: 43.4%; top: 86%; }
.noeud-texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.noeud-nom { display: flex; flex-direction: column; line-height: 1.22; }
.noeud-nom strong { font-size: 19px; letter-spacing: .02em; font-weight: 650; }
.noeud-nom span { font-size: 14px; color: var(--texte-2); }
.noeud-mesure { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; white-space: nowrap; }
.noeud-valeur { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.noeud-valeur.absent { font-size: 14px; color: var(--doux); font-weight: 650; letter-spacing: .02em; }
.noeud-valeur.valeurs-anciennes { display: inline-flex; align-items: baseline; gap: 7px; color: var(--doux); }
.noeud-valeur .age { font-size: 11.5px; color: var(--etat-perime); font-weight: 500; letter-spacing: 0; }
.noeud-unite { font-size: 12.5px; color: var(--doux); }
.noeud-pied { display: flex; gap: 5px; align-items: center; margin-top: 5px; white-space: nowrap; }
.noeud-pied .pastille { font-size: 9.5px; padding: 0 6px; }
.noeud-pied .mention-fictif { font-size: 9px; }
/* un produit non NORMAL garde un cadre au trait de son état : le problème se voit au premier regard */
.noeud.noeud-etat-arret { border-color: var(--etat-arret); box-shadow: inset 0 0 0 1px var(--etat-arret); }
.noeud.noeud-etat-perime { border-color: var(--etat-perime); border-style: dotted; }
.noeud.noeud-etat-inconnu { border-color: var(--etat-inconnu); border-style: dashed; }
.noeud.noeud-etat-indisponible { border-color: var(--etat-indisponible); }
.noeud.noeud-etat-contradictoire { border: 3px double var(--etat-contradictoire); }
.scene-aide { position: absolute; left: 6px; bottom: 2px; max-width: 30%; margin: 0; font-size: 11px; line-height: 1.45; color: var(--doux); }
/* ZENIX (sous la planète) : nom à gauche, relances et état à droite, sur deux lignes comme la référence */
.noeud-zenix .noeud-texte { display: grid; grid-template-columns: auto auto; column-gap: 22px; align-items: start; }
.noeud-zenix .noeud-nom { grid-row: span 2; }
.noeud-zenix .noeud-mesure { margin-top: 1px; }
.noeud-zenix .noeud-pied { margin-top: 4px; }

/* colonne de droite : deux panneaux forts */
.colonne-etat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.colonne-etat > .carte { margin-bottom: 0; }
.panneau-lateral { padding: 13px 18px 8px; border-radius: 14px; border-color: var(--bord-fort); }
.panneau-lateral .carte-tete { margin-bottom: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--bord); flex-wrap: nowrap; }
.panneau-lateral h2 { font-size: 17px; font-weight: 650; }
.verifies { font-size: 12px; color: var(--doux); white-space: nowrap; }
.verifies strong { color: var(--texte); font-variant-numeric: tabular-nums; }
.liste-systemes .ligne-systeme { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 42px; gap: 12px; padding: 6px 0; }
.liste-systemes .ligne-systeme:first-child { padding-top: 6px; }
.nom-systeme { font-size: 14.5px; font-weight: 600; letter-spacing: .03em; }
.liste-systemes .pastille { font-size: 10px; padding: 1px 7px; }
.liste-systemes .pastille-etat.etat-normal { border-color: transparent; background: transparent; color: var(--texte); letter-spacing: .04em; font-weight: 500; font-size: 12.5px; padding: 0; }
.liste-systemes .pastille-etat.etat-normal span { color: var(--etat-normal); font-size: 10px; }
.age-systeme { font-size: 13px; color: var(--texte); text-align: right; }
.compte-alertes { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12.5px;
  font-weight: 700; background: #3b2a7a; color: #e5dcff; border: 1px solid #6b55c9; }
.liste-alertes li { padding: 0; border-bottom: 1px solid var(--bord); }
.liste-alertes li:first-child { padding-top: 0; }
.alerte-lien { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 2px 6px 14px; margin: 3px 0; color: var(--texte); border-left: 3px solid var(--bord-fort); }
.alerte-lien:hover { text-decoration: none; background: var(--surface-2); }
.gravite-bord-elevee .alerte-lien { border-left-color: #f97066; }
.gravite-bord-moyenne .alerte-lien { border-left-color: #f0a33c; }
.gravite-bord-faible .alerte-lien { border-left-color: #e0c341; }
.alerte-lien .corps { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; font-weight: 550; }
.alerte-lien .corps span { display: block; font-size: 12.5px; color: var(--texte-2); margin-top: 3px; font-weight: 400; }
.chevron { color: var(--texte-2); font-size: 22px; line-height: 1; }

/* rangée de trois cartes d'analyse : un cadre, filets verticaux */
.rangee-analyses { display: grid; grid-template-columns: 1.12fr .92fr 1fr; background: var(--surface); border: 1px solid var(--bord);
  border-radius: 14px; margin: 0 0 10px; }
.panneau { padding: 12px 22px 10px; min-width: 0; border-left: 1px solid var(--bord); }
.panneau:first-child { border-left: 0; }
.panneau .carte-tete { margin-bottom: 10px; }
.panneau .legende { margin-top: 4px; justify-content: center; }
.panneau .legende span { display: inline-flex; align-items: center; gap: 7px; }
.reponses-corps { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 0; }
.donut { display: block; flex: none; }
.donut-arc { stroke-linecap: butt; }
.donut-centre { fill: var(--texte); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-sous { fill: var(--texte-2); font-size: 12.5px; }
.donut-absent { width: 146px; height: 146px; flex: none; border-radius: 50%; border: 2px dashed var(--bord-fort); display: grid; place-items: center;
  color: var(--doux); font-size: 13px; }
.legende-donut { list-style: none; margin: 0; padding: 0; flex: 1 1 108px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.legende-donut li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 14px; }
.legende-donut .nom { flex: 1 1 auto; font-weight: 550; letter-spacing: .03em; }
.legende-donut .part { font-weight: 600; font-variant-numeric: tabular-nums; }
.legende-donut li > .pastille { flex-basis: 100%; width: max-content; max-width: 100%; margin-left: 25px; font-size: 9.5px; padding: 0 6px; }
.cle-carree { width: 13px; height: 13px; border-radius: 3px; display: inline-block; flex: none; }
.campagnes-tete { display: flex; align-items: center; gap: 22px; margin: 6px 0 16px; }
.campagnes-grand { display: flex; flex-direction: column; padding-right: 24px; border-right: 1px solid var(--bord-fort); }
.campagnes-grand strong { font-size: 44px; font-weight: 700; line-height: 1.02; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.campagnes-grand strong.absent { font-size: 15px; color: var(--doux); }
.campagnes-grand span { font-size: 16px; color: var(--texte-2); }
.campagnes-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; flex: 1; }
.campagnes-legende li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; color: var(--texte); }
.campagnes-legende b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.seg-cle { width: 9px; height: 9px; border-radius: 50%; }
.seg-actives { background: var(--accent); }
.seg-suspendues { border: 1.5px solid var(--accent); }
.seg-terminees { background: #6d7380; }
.progression { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.progression-plein { display: block; height: 100%; border-radius: 5px; background: var(--accent); }

/* tableau « Activité récente » : pleine largeur, en-têtes en casse normale */
.carte-activite { padding: 10px 22px 4px; border-radius: 14px; margin-bottom: 0; }
.carte-activite .carte-tete { margin-bottom: 2px; }
.table-activite th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--texte-2); font-weight: 500; padding: 2px 12px 6px; }
.table-activite td { padding: 4px 12px; font-size: 14px; vertical-align: middle; }
.table-activite .cellule-produit { font-weight: 550; letter-spacing: .03em; gap: 10px; }
.col-evolution { width: 200px; }
.evolution { display: inline-flex; align-items: center; gap: 12px; }
.evolution .graphique { width: 92px; min-height: 26px; }
.evolution .variation { margin: 0; }
.table-fine td { padding: 9px 10px; }
.table-fine th { padding: 7px 10px; }
.table-activite td { padding: 4px 12px; }
.statut-campagne { display: inline-flex; align-items: center; gap: 8px; text-transform: capitalize; }
.statut-campagne i { width: 8px; height: 8px; border-radius: 50%; background: var(--texte-2); }
.statut-campagne.statut-active i { background: var(--accent); }
.statut-campagne.statut-suspendue i { background: transparent; border: 1.5px solid var(--texte-2); }

/* ---------- galerie des états, guide de styles ---------- */
.galerie-etats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.regle-etat { font-size: 12.5px; color: var(--texte-2); margin: 0; }
.nuancier { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.nuance { border: 1px solid var(--bord); border-radius: var(--rayon-petit); overflow: hidden; font-size: 12px; }
.nuance .echantillon { height: 46px; }
.nuance div:last-child { padding: 8px 10px; }
.nuance code { color: var(--doux); }
.ech-fond { background: var(--fond); } .ech-surface { background: var(--surface); } .ech-surface-2 { background: var(--surface-2); }
.ech-bord { background: var(--bord-fort); } .ech-texte { background: var(--texte); } .ech-accent { background: var(--accent); }
.ech-relix { background: var(--relix); } .ech-legalix { background: var(--legalix); } .ech-zenix { background: var(--zenix); }
.ech-normal { background: var(--etat-normal); } .ech-arret { background: var(--etat-arret); } .ech-perime { background: var(--etat-perime); }
.ech-inconnu { background: var(--etat-inconnu); } .ech-indisponible { background: var(--etat-indisponible); }
.ech-contradictoire { background: var(--etat-contradictoire); } .ech-simu { background: var(--simu); }
.typo-exemple { display: grid; gap: 8px; }
.typo-heros { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.typo-h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; } .typo-h2 { font-size: 15px; font-weight: 650; }
.typo-kpi { font-size: 38px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.typo-etiquette { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); }
.icones-guide { margin-top: 14px; color: var(--texte-2); }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- menu latéral en capsule (FA-UX-005, demande du fondateur : boutons ronds à icônes, nom au survol) ----------
   Ordinateur seulement ; sur téléphone, le menu qui s'ouvre garde les libellés complets. */
@media (min-width: 901px) {
  .cadre { grid-template-columns: 92px minmax(0, 1fr); }
  .cote { align-items: center; gap: 10px; padding: 14px 0 10px; background: transparent; border-right: 0; overflow: visible; z-index: 30; }
  .cote .marque { padding: 0; }
  .cote .marque-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu { width: 58px; }
  .menu-interieur { gap: 4px; padding: 10px; align-items: flex-start; background: #121219; border: 1px solid var(--bord-fort); border-radius: 30px;
    transition: border-radius .45s var(--souple); }
  .menu-groupe { gap: 4px; padding-top: 3px; border-top: 0; align-items: flex-start; }
  .menu-groupe + .menu-groupe::before { content: ""; width: 22px; height: 1px; background: var(--bord-fort); margin: 2px 0 2px 8px; }
  .menu-titre { max-height: 0; opacity: 0; overflow: hidden; white-space: nowrap; padding: 0 10px; transition: max-height .45s var(--souple), opacity .3s, padding .45s var(--souple); }
  .menu ul { gap: 4px; align-items: flex-start; }
  .menu a { position: relative; width: 38px; height: 38px; padding: 0 10.5px; gap: 12px; justify-content: flex-start; border-radius: 19px; overflow: hidden;
    transition: width .45s var(--souple), background .2s, color .2s;
    background: var(--surface-2); color: var(--texte-2); }
  .menu a:hover { background: var(--surface-3); color: var(--texte); }
  .menu a[aria-current="page"] { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px #c9b8ff; }
  .menu a[aria-current="page"] .icone { color: #fff; }
  .menu a .logo-produit { width: 22px; height: 22px; border-radius: 6px; }
  .menu a .icone { width: 17px; height: 17px; }
  .menu-libelle { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--souple), opacity .25s; }
  /* nom de la page au survol ou au focus clavier */
  .menu a::after { content: attr(data-libelle); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap;
    padding: 5px 10px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--bord-fort); color: var(--texte); font-size: 13px;
    opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 35; }
  .menu a:hover::after, .menu a:focus-visible::after { opacity: 1; }
  .menu-etat { position: absolute; top: -3px; right: -5px; margin: 0; background: var(--fond); font-size: 10px; }
  .cote-pied { border-top: 0; padding: 0; align-items: center; }
  .cote-statut { position: relative; }
  .cote-statut > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .point-simu { margin-top: 0; width: 11px; height: 11px; }
  /* capsule centrée à la verticale (demande du fondateur) : logo en haut, point de simulation en bas */
  .cote .menu { margin-block: auto; align-self: flex-start; margin-left: 17px; }
  .cote-pied { margin-top: 0; }
}
.lien-detail { color: var(--accent); }
.panneau-lateral .carte-tete h2 { white-space: nowrap; }

/* ---------- tailles d'écran ---------- */
/* grand écran : la barre du haut partage la ligne du titre (comme la référence) */
@media (min-width: 1400px) {
  .vue-tableau { --hors-scene: 566px; }
  .barre { height: 92px; margin-bottom: -92px; pointer-events: none; padding-left: clamp(20px, 3vw, 56px); padding-right: clamp(20px, 3vw, 56px); }
  .barre > * { pointer-events: auto; }
  main { padding-top: 18px; }
  #message:not(:empty), .entete-page:first-child { padding-right: 720px; min-height: 66px; }
  .entete-page:first-child { align-items: center; }
}
/* 1400–1559 px : barre du haut compacte (icônes) pour rester sur la ligne du titre */
@media (min-width: 1400px) and (max-width: 1559px) {
  .vue-tableau { --hors-scene: 556px; }
  #message:not(:empty), .entete-page:first-child { padding-right: 540px; }
  .periode-plage, .filtres-menu summary > span { display: none; }
  .entete-page:first-child { align-items: center; }
}
/* bandeau des états à surveiller : toujours visible sur ordinateur (fixé en bas à droite, la barre ne colle plus) */
@media (min-width: 901px) {
  .bandeau-etats { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(640px, calc(100vw - 280px)); padding: 10px 14px;
    background: var(--surface-3); border: 1px solid var(--etat-perime); border-radius: 12px; }
}
@media (max-width: 1520px) {
  .kpi { gap: 12px; padding: 6px 14px; }
  .kpi-icone .icone { width: 24px; height: 24px; }
  .kpi-corps strong { font-size: 24px; }
  .rangee-heros { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
}
@media (max-width: 1399px) {
  .barre { justify-content: flex-end; }
}
@media (max-width: 1300px) {
  .rangee-heros { grid-template-columns: minmax(0, 1fr); }
  .colonne-etat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .rangee-analyses { grid-template-columns: minmax(0, 1fr); }
  .panneau { border-left: 0; border-top: 1px solid var(--bord); }
  .panneau:first-child { border-top: 0; }
  .kpi-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .kpi:nth-child(4) { border-left: 0; padding-left: 6px; }
  .grille-3 { grid-template-columns: minmax(0, 1fr); }
  .large-2 { grid-column: auto; }
  .chiffres.chiffres-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .chiffres-4 .tuile-kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .s5, .s7, .s8 { grid-column: 1 / -1; }
  .s4 { grid-column: span 6; }
}
/* scène en liste lisible (petite planète + produits empilés) dès que le schéma deviendrait trop petit */
@media (max-width: 1100px) {
  .scene-cadre, .vue-tableau[data-vue="tableau"] .scene-cadre { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 8px 0 12px; }
  .scene-svg { display: none; }
  .aide-bureau { display: none; }
  .scene-aide { position: static; max-width: none; margin: 0 0 8px; }
  .noeud-zenix .noeud-texte { display: flex; }
  .planete-mobile { display: block; }
  .scene-noeuds { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; pointer-events: auto; }
  .noeud { position: static; width: auto; border-color: var(--bord); background: var(--surface); }
}
@media (max-width: 900px) {
  .bouton-menu { display: inline-block; }
  .bandeau-simulation { gap: 2px 8px; padding: 4px 12px; }
  .barre { padding: 10px 16px; gap: 10px; top: 0; position: relative; flex-wrap: wrap; justify-content: space-between; }
  .barre-droite { flex: 1 1 100%; order: 3; }
  .barre-outils-haut { justify-content: flex-start; }
  .cadre { grid-template-columns: minmax(0, 1fr); }
  .cote { position: fixed; z-index: 40; inset: 0 auto 0 0; top: 0; height: 100vh; width: 268px; transform: translateX(-100%);
    transition: transform .2s ease; padding-top: 64px; }
  body.menu-ouvert .cote { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .marque-mobile { display: flex; padding: 0; }
  .marque-mobile .marque-texte b { font-size: 16px; }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche dt { margin-top: 6px; }
  .filtres label { flex: 1 1 140px; }
  .filtres select { width: 100%; }
  .grille-2 { grid-template-columns: minmax(0, 1fr); }
  .barre-ligne { grid-template-columns: 80px minmax(0, 1fr) 96px; gap: 8px; }
  .s4 { grid-column: 1 / -1; }
  .entete-page h1 { font-size: 25px; }
  .kpi-heros { font-size: 44px; }
  .kpi-produit .k-relances dd { font-size: 32px; }
  .chiffres-4 dd { font-size: 24px; }
  .chiffres-4 .tuile-kpi { padding: 2px 14px; }
  .colonne-etat { display: flex; }
  .kpi-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-left: 0; padding: 4px 8px 4px 2px; }
  .kpi:first-child { padding-left: 2px; }
  .kpi-icone { display: none; }
  .profil-role .etiquette-alerte { display: block; }
}
@media (max-width: 520px) {
  .periode-plage { display: none; }
  .profil-texte select { max-width: 140px; }
  .barre-outils-haut { gap: 8px; justify-content: space-between; }
  .filtres-menu summary > span { display: none; }
  .filtres-menu summary { padding: 9px 10px; }
}
@media (max-width: 420px) {
  .anneau svg { width: 68px; height: 68px; }
  .anneau-absent { width: 68px; height: 68px; }
  .liste-activite li { grid-template-columns: minmax(0, 1fr) auto 58px; gap: 10px; }
  .stats-secondaires { grid-template-columns: minmax(0, 1fr); }
  .stats-secondaires > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0;
    border-left: 0; border-top: 1px solid var(--bord); }
  .stats-secondaires > div:first-child { border-top: 0; }
  .stats-secondaires dd { margin: 0; text-align: right; font-size: 18px; }
}
.fiche { display: grid; grid-template-columns: minmax(150px, 280px) minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; }
.fiche > div { display: contents; }
.fiche dt { color: var(--doux); }
.fiche dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .fiche { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .signal { animation: none; } * { animation: none !important; } }
/* FA-UX-004 : titres des panneaux d'analyse au même poids que la référence */
.panneau h2 { margin: 0; font-size: 16px; font-weight: 650; }

/* ---------- FA-UX-005 : cases « luxe » (structure de l'image d'exemple du fondateur, sans couleur ajoutée) ----------
   Cases séparées, coins très arrondis, fond graphite légèrement relevé, bord fin translucide, reflet intérieur en haut
   (ombres « inset » seulement), icônes de titre dans une pastille. */
.carte, .panneau-lateral, .carte-activite, .rangee-analyses > .panneau {
  border-radius: 20px; background: #111219; border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .015); transition: border-color .2s; }
.carte:hover, .rangee-analyses > .panneau:hover { border-color: rgba(255, 255, 255, .12); }
.rangee-analyses { background: transparent; border: 0; border-radius: 0; gap: 16px; }
.rangee-analyses > .panneau { padding: 10px 20px 6px; }
.panneau-lateral { padding: 11px 18px 5px; }
.carte-activite { padding: 8px 22px 2px; }
.liste-systemes .ligne-systeme { padding: 5px 0; }
.panneau-lateral .carte-tete, .carte-activite .carte-tete { border-bottom-color: rgba(255, 255, 255, .06); }
.carte-tete h2 .icone { box-sizing: content-box; width: 15px; height: 15px; padding: 5px; border-radius: 10px; background: #1a1c25;
  border: 1px solid rgba(255, 255, 255, .06); color: var(--texte); }
.table-activite thead th { background: #15161e; border-bottom: 0; }
.table-activite thead th:first-child { border-radius: 10px 0 0 10px; }
.table-activite thead th:last-child { border-radius: 0 10px 10px 0; }
.table-activite tbody td { border-bottom-color: rgba(255, 255, 255, .05); }
.compte-alertes { border-radius: 9px; }
.filtres-menu summary, .periode-choix summary { border-radius: 12px; background: #111219; border-color: rgba(255, 255, 255, .08); }
.alerte-lien { border-radius: 0 10px 10px 0; }
.alerte-lien:hover { background: #171822; }
@media (max-width: 1180px) {
  .rangee-analyses > .panneau { border-top: 1px solid rgba(255, 255, 255, .07); }
}
/* étiquettes autour de la planète, sobres comme la référence : état NORMAL en point + mot, sans cadre */
.noeud-pied .pastille-etat.etat-normal { border-color: transparent; background: transparent; padding: 0; color: var(--texte-2); font-weight: 500; letter-spacing: .04em; }
.noeud-pied .pastille-etat.etat-normal span { color: var(--etat-normal); }
.noeud-pied .mention-fictif { border-color: transparent; padding: 0; color: #b49a62; }
.noeud-valeur { font-size: 15px; font-weight: 650; }
.noeud-unite { font-size: 12px; }
/* aire très légère sous les courbes, comme la référence */
.aire { stroke: none; fill-opacity: .1; }
.aire-relix { fill: var(--relix); } .aire-legalix { fill: var(--legalix); } .aire-zenix { fill: var(--zenix); }

/* ---------- FA-UX-005 : animations fluides (demande du fondateur) ----------
   Toutes en CSS, sans script ; toutes arrêtées par « prefers-reduced-motion ». Les lueurs et signaux n'existent que pour
   un produit NORMAL : aucune animation ne présente un produit douteux comme actif. */
@keyframes respire { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes scintille { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes derive { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@keyframes pulsation { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes reflet { to { stroke-dashoffset: -100; } }
@keyframes apparition { from { opacity: 0; transform: perspective(900px) rotateX(14deg) translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes eclosion { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.planete-atmosphere { animation: respire 5s ease-in-out infinite; }
.planete-pts-villes { animation: scintille 3.6s ease-in-out infinite; }
.lueur, .lueur-point { animation: pulsation 2.8s ease-in-out infinite; }
.orbite-reflet { fill: none; stroke: #e2f2ff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 4 96; stroke-opacity: .9;
  animation: reflet 12s linear infinite; }
.scene-svg .planete { transform-box: fill-box; transform-origin: center; animation: eclosion .9s cubic-bezier(.2, .7, .2, 1) both; }
/* arrivée en douceur des blocs du tableau de bord, en cascade */
.vue-tableau .bande-kpi, .vue-tableau .scene-noeuds .noeud, .vue-tableau .colonne-etat > *, .vue-tableau .rangee-analyses > *, .vue-tableau .carte-activite {
  animation: apparition .75s cubic-bezier(.2, .8, .2, 1) backwards; }
.vue-tableau .colonne-etat > :nth-child(2), .vue-tableau .rangee-analyses > :nth-child(2), .vue-tableau .noeud-legalix { animation-delay: .08s; }
.vue-tableau .rangee-analyses > :nth-child(3), .vue-tableau .noeud-zenix { animation-delay: .16s; }
.vue-tableau .carte-activite { animation-delay: .22s; }
/* interactions au survol */
.noeud { transition: transform .25s ease, background .2s, border-color .2s; }
.noeud:hover, .noeud:focus-visible { transform: translateY(-3px); }
.kpi { transition: background .2s; border-radius: 10px; }
.kpi:hover { background: rgba(255, 255, 255, .025); }
.liste-systemes .ligne-systeme { transition: background .2s; border-radius: 8px; }
.liste-systemes .ligne-systeme:hover { background: rgba(255, 255, 255, .03); }
.table-activite tbody tr { transition: background .2s; }

/* ---------- FA-UX-005 : relances lisibles autour de la planète ---------- */
.noeud-mesure { display: inline-flex; width: max-content; align-items: baseline; gap: 6px; margin-top: 7px; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.noeud .noeud-valeur { font-size: 20px; font-weight: 700; color: #fff; }
.noeud-unite { font-size: 13px; color: var(--texte-2); }
.noeud-zenix .noeud-mesure { margin-top: 0; }
.noeud-nom strong { font-size: 22px; }
.noeud-nom span { font-size: 15px; }
.noeud .logo-produit { border-radius: 15px; }
.noeud-mesure { padding: 4px 13px; }

/* ---------- FA-UX-005 : la capsule du menu se déroule au survol (et au clavier), en douceur ---------- */
:root { --souple: cubic-bezier(.22, .8, .2, 1); }
@media (min-width: 901px) {
  .cote .menu { transition: width .45s var(--souple); }
  .cote:hover .menu, .cote:focus-within .menu { width: 236px; }
  .cote:hover .menu-interieur, .cote:focus-within .menu-interieur { border-radius: 22px; }
  .cote:hover .menu a, .cote:focus-within .menu a { width: 214px; }
  .cote:hover .menu-libelle, .cote:focus-within .menu-libelle { max-width: 170px; opacity: 1; transition: max-width .45s var(--souple), opacity .35s .08s; }
  .cote:hover .menu-titre, .cote:focus-within .menu-titre { max-height: 22px; opacity: 1; padding: 4px 10px 2px; font-size: 10px; }
  .cote:hover .menu a::after, .cote:focus-within .menu a::after { display: none; }
  .cote:hover .menu-etat, .cote:focus-within .menu-etat { position: static; margin-left: auto; }
}
/* étiquettes des produits proportionnelles à la scène : grandes sur grand écran, jamais sur la planète ni la colonne */
.scene-cadre { container-type: inline-size; }
.noeud { gap: clamp(8px, 1.4cqw, 14px); }
.noeud .logo-produit { width: clamp(38px, 5.8cqw, 58px); height: clamp(38px, 5.8cqw, 58px); }
.noeud-nom strong { font-size: clamp(15px, 2.2cqw, 22px); }
.noeud-nom span { font-size: clamp(12px, 1.5cqw, 15px); }
.noeud .noeud-valeur { font-size: clamp(15px, 2cqw, 20px); }
.noeud-unite { font-size: clamp(11px, 1.3cqw, 13px); }
.noeud-mesure { padding: clamp(2px, .4cqw, 4px) clamp(8px, 1.3cqw, 13px); }

/* ---------- FA-UX-005 : effets spéciaux (demande du fondateur) ----------
   Anneau néon qui tourne autour du logo d'un produit NORMAL (accéléré au survol), liseré lumineux qui fait le tour d'une
   case survolée, inclinaison 3D vers la souris (script), arrivée des pages en fondu glissé. Dégradés coniques seulement ;
   tout s'arrête si l'utilisateur réduit les mouvements. */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes anneau-tourne { to { --angle: 360deg; } }
@keyframes page-entree { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.noeud { --logo: clamp(38px, 5.8cqw, 58px); isolation: isolate; transition: transform .35s var(--souple), background .25s, border-color .25s; }
.noeud.noeud-etat-normal::before { content: ""; position: absolute; z-index: 1; pointer-events: none; left: 4px; top: 4px;
  width: calc(var(--logo) + 4px); height: calc(var(--logo) + 4px); box-sizing: border-box; padding: 1px; border-radius: 17px;
  background: conic-gradient(from var(--angle), transparent 0 68%, var(--p) 86%, transparent 100%);
  -webkit-mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0); mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
  opacity: .55; transition: opacity .4s; animation: anneau-tourne 9s linear infinite; }
.noeud.noeud-etat-normal:hover::before, .noeud.noeud-etat-normal:focus-visible::before { opacity: .95; }
.noeud:hover, .noeud:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .03); }
.carte, .rangee-analyses > .panneau { position: relative; transition: transform .35s var(--souple), border-color .2s; }
.carte::before, .rangee-analyses > .panneau::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 62%, var(--accent) 80%, #e9e2ff 84%, var(--accent) 88%, transparent 100%);
  -webkit-mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0); mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s; animation: anneau-tourne 4s linear infinite; }
.carte:hover::before, .rangee-analyses > .panneau:hover::before { opacity: 1; }
.entree-page { transform-origin: 50% 0; animation: page-entree .5s var(--souple) backwards; }
.entete-page > div > p.doux { line-height: 1.3; }

/* ---------- FA-UX-005 : cases interactives (demande du fondateur) : un clic ouvre la page de détail ---------- */
[data-cible] { cursor: pointer; }
.tete-droite { display: inline-flex; align-items: center; gap: 8px; }
.lien-case { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; line-height: 1;
  color: var(--texte-2); border: 1px solid var(--bord-fort); transition: color .25s, border-color .25s, transform .35s var(--souple); }
.lien-case:hover { text-decoration: none; }
[data-cible]:hover > .carte-tete .lien-case, .lien-case:focus-visible { color: #fff; border-color: var(--accent); transform: translateX(2px); }
.ligne-systeme[data-cible], .legende-donut li[data-cible] { border-radius: 8px; transition: background .2s; }
.ligne-systeme[data-cible]:hover, .legende-donut li[data-cible]:hover, .table-activite tr[data-cible]:hover td { background: rgba(255, 255, 255, .045); }

/* FA-UX-005 : nuages légers (points blancs étirés) qui dérivent un peu plus vite que les terres */
.planete-pts-nuages { stroke: #e8ecff; stroke-opacity: .22; stroke-width: 3; }

/* ---------- Validation FA-UX (14 nov. 2026) : revue indépendante ---------- */
/* Produit douteux en orbite : la mention « non retenue » garde une taille modeste (la case ne déborde plus sous la
   colonne de droite) et la case est opaque, au-dessus de l'orbite et des liaisons : aucune ligne ne traverse la
   pastille d'état (mention de sécurité toujours lisible). */
.noeud .noeud-valeur.absent { font-size: 14px; font-weight: 650; color: var(--doux); }
.noeud:not(.noeud-etat-normal) { z-index: 2; background: var(--fond); }
.noeud:not(.noeud-etat-normal):hover, .noeud:not(.noeud-etat-normal):focus-visible { background: var(--fond); }
/* État des systèmes : pastille d'état compacte, séparée du nom du produit */
.liste-systemes .pastille-etat:not(.etat-normal) { font-size: 9px; padding: 0 5px; letter-spacing: .04em; margin-left: 6px; }
/* Activité récente : nom du produit = lien vers sa vue (clavier), même apparence que le texte */
.lien-produit { color: inherit; }
.lien-produit:hover { text-decoration: none; color: #fff; }
/* case LEGALIX d'un produit douteux (plus large) : alignée sur le bord droit de la scène, jamais sous la colonne de droite */
.noeud-legalix:not(.noeud-etat-normal) { left: auto; right: 0; }
.noeud-relix:not(.noeud-etat-normal) { left: 0; } /* idem à gauche : la case ne recouvre jamais la planète */
/* point d'attache RELIX / LEGALIX : les cases montent un peu pour que son halo ne touche jamais « NORMAL · FICTIF »
   (écran 1440 px, revue indépendante) */
.noeud-relix, .noeud-legalix { top: 12%; }
/* Téléphone et tablette (≤ 1100 px) : les cases produit forment une liste. Elles restent « positionnées » (relative,
   sans décalage) : leur liseré lumineux reste autour de leur logo au lieu de se coller au coin de la scène. */
@media (max-width: 1100px) {
  .scene-noeuds .noeud { position: relative; inset: auto; }
  .scene-noeuds .noeud:not(.noeud-etat-normal) { background: var(--surface); }
}
.titre-note { white-space: nowrap; } /* « (30 j · moyenne 7 j) » ne se coupe jamais au milieu (téléphone) */

/* Fond d'espace discret derrière la planète (demande du fondateur, 14 nov. 2026) : points fixes de faible opacité ;
   seules les étoiles proches scintillent très lentement (arrêté si l'utilisateur réduit les mouvements). */
.etoiles { fill: none; stroke: #dfe4ff; stroke-linecap: round; pointer-events: none; }
.etoiles-loin { stroke-width: 1; stroke-opacity: .3; }
.etoiles-moyen { stroke-width: 1.4; stroke-opacity: .48; }
.etoiles-proche { stroke-width: 1.8; stroke-opacity: .6; stroke: #f1eaff; animation: scintille 7s ease-in-out infinite; }

/* Téléphone et tablette (demande du fondateur, 14 nov. 2026) : animations légères plus visibles. Planète un peu plus
   grande avec orbite et étoiles ; logo qui flotte doucement, pour un produit NORMAL seulement ; un
   produit douteux reste fixe. Tout s'arrête si l'utilisateur réduit les mouvements. */
@keyframes flotte { from { transform: translateY(1px); } to { transform: translateY(-3px); } }
@media (max-width: 1100px) {
  .planete-mobile { max-width: 100%; height: auto; }
  .scene-noeuds .noeud.noeud-etat-normal .logo-produit { animation: flotte 3.2s ease-in-out infinite alternate; }
  .scene-noeuds .noeud-legalix.noeud-etat-normal .logo-produit { animation-delay: -1s; }
  .scene-noeuds .noeud-zenix.noeud-etat-normal .logo-produit { animation-delay: -2s; }
}

/* FA-UX-006 (14 nov. 2026) : le sélecteur « * » ne touche pas les pseudo-éléments. Les anneaux lumineux ::before
   (logos des produits, cases, panneaux) continuaient donc de tourner malgré la demande de réduire les mouvements.
   Ils sont maintenant arrêtés eux aussi (défaut trouvé par navigateur_mobile.js). */
@media (prefers-reduced-motion: reduce) { *::before, *::after { animation: none !important; transition: none !important; } }
