/* SmartTrack — mise en page (charte AGL : couleurs uniquement par var(--…), clair par défaut, 360 px). */
* { box-sizing: border-box; }
a { color: var(--acc); }
button, input, select { font: inherit; color: var(--ink); }
.cache, [hidden] { display: none !important; }

/* En-tête */
header.tete { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 8px 16px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] header.tete { background: rgba(9,21,33,.92); }
header.tete img { height: 38px; }
header.tete nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
header.tete nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .8px; font-size: 12px; color: var(--ink);
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
header.tete nav a.actif { background: var(--hl); color: var(--acc); font-weight: 700; }
.sync { font-size: 12px; white-space: nowrap; }
.sync.retard { color: var(--warn); font-weight: 700; }
.bouton-icone { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.bandeau-demo { background: var(--hl); border-bottom: 2px solid var(--warn); padding: 6px 16px; font-weight: 700; color: var(--ink); }
.bandeau-demo a { margin-left: 8px; }

main { padding: 16px; max-width: 1500px; margin: 0 auto; }
.surtitre { text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; font-weight: 700; color: var(--acc); }
h1 { margin: 2px 0 0; font-size: 22px; }
h1 em { font-style: normal; color: var(--acc); }
.entete-vue { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px;
  cursor: pointer; text-align: left; }
.kpi:hover, .kpi.actif { border-color: var(--acc); }
.kpi .lib { text-transform: uppercase; font-size: 11px; letter-spacing: .6px; font-weight: 700; }
.kpi .val { font-size: 26px; font-weight: 700; margin: 2px 0; }
.kpi .sous { font-size: 12px; }
.segments { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 8px 0 6px; background: var(--chip); }
.segments button { border: 0; padding: 0; cursor: pointer; min-width: 4px; }
.legende { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.legende button { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.pastille { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.s-marche { background: var(--ok); } .s-arret { background: var(--info); } .s-silencieux { background: var(--warn); }
.jauge { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.jauge i { display: block; height: 100%; }

/* Carte */
.zone-carte { position: relative; height: calc(100vh - 250px); min-height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel2); }
#carte { position: absolute; inset: 0; }
.filtre-actif { position: absolute; top: 10px; left: 10px; z-index: 5; background: var(--panel); border: 1px solid var(--acc);
  border-radius: 20px; padding: 4px 12px; font-weight: 700; cursor: pointer; }
.choix-pays { display: flex; gap: 6px; }
.choix-pays button { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 4px 12px; cursor: pointer; }
.choix-pays button.actif { border-color: var(--acc); color: var(--acc); font-weight: 700; }

/* Tiroir (fiche, alertes) */
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 40; background: var(--panel);
  border-left: 1px solid var(--line); box-shadow: -8px 0 30px #0a22401f; overflow-y: auto; padding: 16px; transform: translateX(105%);
  transition: transform .25s; }
.tiroir.ouvert { transform: none; }
.tiroir .fermer { float: right; }
.cartes-etat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.cartes-etat div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cartes-etat b { display: block; font-size: 18px; }
@media (max-width: 600px) {
  .tiroir { top: auto; height: 62vh; width: 100vw; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0;
    transform: translateY(105%); }
  .zone-carte { height: 60vh; min-height: 320px; }
  header.tete { gap: 8px; padding: 8px; }
  header.tete img { height: 30px; }
  .sync { display: none; }
  header.tete nav a { padding: 6px 6px; letter-spacing: .3px; font-size: 11px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 6px; }
  .kpis > :first-child { grid-column: 1 / -1; }
  .kpi { padding: 8px 10px; } .kpi .val { font-size: 18px; } .kpi .sous { display: none; }
  .segments { height: 16px; }
  .legende { gap: 6px; } .legende button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 14px; }
}

/* Tableaux, formulaires */
.carte-blanche { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.clic { cursor: pointer; } tr.clic:hover { background: var(--hl); }
.table-defile { overflow-x: auto; }
.recherche { width: 100%; max-width: 360px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-bottom: 8px; }
.onglets { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.onglets button { border: 1px solid var(--line); background: var(--panel); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.onglets button.actif { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn { background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.btn.sec { background: none; color: var(--acc); border: 1px solid var(--acc); }
.btn:disabled { opacity: .5; cursor: wait; }
label.champ { display: block; margin: 8px 0; font-weight: 700; }
label.champ input, label.champ select { display: block; width: 100%; max-width: 420px; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-weight: 400; }
.badge { display: inline-block; border: 1.5px solid currentColor; border-radius: 12px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.b-ok { color: var(--ok); } .b-warn { color: var(--warn); } .b-bad { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; background: var(--btn); color: var(--btn-ink);
  padding: 10px 16px; border-radius: 8px; max-width: 90vw; }
.toast.erreur { background: var(--bad); color: #fff; }
.lien-unique { word-break: break-all; background: var(--hl); padding: 8px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .tiroir { transition: none; } }

/* ------------------------------------------------------------------ Assistant (modèle Sentinelle) */
.ass-bouton { position: fixed; right: 18px; bottom: 18px; z-index: 45; background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 26px;
  padding: 12px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px #0a224033; display: flex; gap: 8px; align-items: center; }
.ass-pouls { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: cv-pouls 1.8s infinite; }
.ass-panneau { position: fixed; right: 16px; top: 76px; bottom: 16px; width: 380px; z-index: 45; display: flex; flex-direction: column;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 14px 40px #0a22401f; }
:root[data-theme="dark"] .ass-panneau { background: rgba(16,32,48,.94); }
.ass-panneau header { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ass-panneau header b { flex: 1; }
.ass-etat { font-size: 12px; color: var(--acc); }
.ass-voix #ass-micro { background: var(--bad); color: #fff; border-color: var(--bad); animation: cv-pouls 1.4s infinite; }
.ass-eveil #ass-eveil { border-color: var(--acc); color: var(--acc); }
.ass-temoin { background: var(--hl); padding: 6px 12px; font-size: 12px; font-weight: 700; }
.ass-temoin button { background: none; border: 0; color: var(--acc); text-decoration: underline; cursor: pointer; }
.ass-fil { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ass-msg { padding: 8px 11px; border-radius: 10px; max-width: 92%; line-height: 1.45; }
.ass-msg.moi { align-self: flex-end; background: var(--btn); color: var(--btn-ink); }
.ass-msg.ia { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); }
.ass-msg.attente { opacity: .7; }
#ass-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
#ass-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

/* Canevas : verre dépoli, entrée floutée, reflet balayant, pastille qui pulse, barres qui poussent, jauge qui se remplit */
.ass-canevas { position: fixed; left: 32px; bottom: 32px; z-index: 35; width: min(420px, calc(100vw - 460px)); }
.cv { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 50px #0a224029;
  animation: cv-entre .6s cubic-bezier(.2,.8,.2,1) both; --c: var(--info); }
:root[data-theme="dark"] .cv { background: rgba(12,26,40,.88); }
.cv.n-critique, .cv .n-critique { --c: var(--bad); } .cv.n-alerte, .cv .n-alerte { --c: var(--warn); }
.cv.n-ok, .cv .n-ok { --c: var(--ok); } .cv.n-veille, .cv .n-veille { --c: var(--acc); }
.cv.part { animation: cv-sort 1.2s ease both; }
/* 26/10/2026 : parties du canevas l'une après l'autre, puis estompé (voix : 10 s après la dernière) */
.cv-part { animation: cv-partie .7s calc(var(--i, 0) * .6s) cubic-bezier(.2,.8,.2,1) both; }
@keyframes cv-partie { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } }
/* Voile d'écoute « Sentinelle » : translucide, sans texte, au centre bas de l'écran */
.ass-ecoute { position: fixed; left: 50%; bottom: 56px; z-index: 60; width: 150px; height: 150px; margin-left: -75px; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--info) 30%, transparent) 0%, transparent 70%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ec-entre .5s ease both; }
.ass-ecoute[hidden] { display: none; }
.ass-ecoute i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--info) 55%, transparent);
  animation: ec-onde 2.4s ease-out infinite; opacity: 0; }
.ass-ecoute i:nth-child(2) { animation-delay: .8s; } .ass-ecoute i:nth-child(3) { animation-delay: 1.6s; }
.ass-ecoute b { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%;
  background: color-mix(in srgb, var(--info) 60%, transparent); box-shadow: 0 0 24px var(--info); animation: ec-pouls 1.8s ease-in-out infinite; }
.ass-ecoute.parle i { animation-duration: 1.1s; border-color: color-mix(in srgb, var(--ok) 70%, transparent); }
.ass-ecoute.parle b { background: color-mix(in srgb, var(--ok) 70%, transparent); box-shadow: 0 0 30px var(--ok); animation-duration: .6s; }
@keyframes ec-entre { from { opacity: 0; transform: scale(.6); } }
@keyframes ec-onde { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ec-pouls { 50% { transform: scale(1.25); } }
.cv-balai { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-100%); animation: cv-balai 1.6s .2s ease-out; pointer-events: none; }
.cv-tete { display: flex; gap: 10px; align-items: flex-start; }
.cv-tete > div { flex: 1; }
.cv-pouls { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--c); animation: cv-pouls 1.8s infinite; flex: none; }
.cv-titre { font-weight: 700; font-size: 15px; } .cv-sous { font-size: 12px; }
.cv-fermer { padding: 2px 7px; }
.cv-heros { margin: 10px 0 6px; } .cv-heros b { font-size: 34px; color: var(--c); } .cv-heros span { font-weight: 700; }
.cv-jauge { width: 110px; height: 110px; float: right; margin: -4px 0 4px 8px; }
.cv-jauge circle { fill: none; stroke-width: 10; } .cv-jauge .fond { stroke: var(--chip); }
.cv-jauge .val { stroke: var(--c); stroke-dasharray: 327; stroke-dashoffset: 327; transform: rotate(-90deg); transform-origin: 60px 60px;
  animation: cv-jauge 1.4s .3s cubic-bezier(.2,.8,.2,1) forwards; stroke-linecap: round; }
.cv-jauge .cible { stroke: var(--ink); stroke-width: 2; } .cv-jauge text { font: 700 18px var(--font); fill: var(--ink); }
.cv-barres { clear: both; display: grid; gap: 6px; margin-top: 8px; }
.cv-barre { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.cv-barre i { height: 10px; border-radius: 5px; background: var(--c); width: 0; animation: cv-pousse .9s var(--d) cubic-bezier(.2,.8,.2,1) forwards; }
.cv-liste { clear: both; list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.cv-liste li { display: flex; gap: 6px; align-items: center; opacity: 0; animation: cv-ligne .5s var(--d) both; }
.cv-liste li b { margin-left: auto; }
.cv-liste .pastille { background: var(--c); }
.cv .clic { cursor: pointer; } .cv .clic:hover { color: var(--acc); }
.cv-constat { margin: 10px 0 0; } .cv-action { margin: 4px 0 0; font-weight: 700; color: var(--acc); }
@keyframes cv-entre { from { opacity: 0; filter: blur(10px); transform: scale(.94); } }
@keyframes cv-sort { to { opacity: 0; transform: translateY(10px); } }
@keyframes cv-balai { to { transform: translateX(100%); } }
@keyframes cv-pouls { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, currentColor) 50%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes cv-pousse { to { width: var(--w); } }
@keyframes cv-ligne { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes cv-jauge { from { stroke-dashoffset: 327; } to { stroke-dashoffset: var(--o); } }
@media (max-width: 600px) {
  .ass-panneau { left: 0; right: 0; top: auto; bottom: 0; width: 100vw; height: 50vh; border-radius: 14px 14px 0 0; }
  .ass-canevas-mobile .cv { margin: 0 10px 6px; padding: 10px 12px; } .ass-canevas-mobile .cv-heros b { font-size: 24px; }
  .ass-canevas-mobile .cv-jauge { width: 80px; height: 80px; }
  .ass-ouvert .zone-carte { height: 42vh; min-height: 260px; }
  .ass-bouton { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv, .cv-balai, .cv-pouls, .ass-pouls, .cv-liste li, .cv-part, .ass-ecoute i, .ass-ecoute b { animation: none; opacity: 1; }
  .ass-ecoute i { opacity: .5; }
  .cv-barre i { animation: none; width: var(--w); } .cv-jauge .val { animation: none; stroke-dashoffset: var(--o); }
}

/* Types de carte */
.fonds { position: absolute; left: 10px; bottom: 28px; z-index: 5; display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 3px; box-shadow: var(--shadow); flex-wrap: wrap; max-width: calc(100% - 20px); }
.fonds button { border: 0; background: none; padding: 5px 9px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.fonds button.actif { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
@media (max-width: 600px) { .fonds { bottom: 24px; } .fonds button { padding: 4px 6px; font-size: 11px; } }
.cv-courbe { width: 100%; margin-top: 8px; clear: both; }
.cv-courbe .aire { fill: color-mix(in srgb, var(--c) 18%, transparent); animation: cv-ligne .8s .6s both; }
.cv-courbe .ligne { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cv-trace 1.6s .2s ease-out forwards; }
.cv-courbe .moy { stroke: var(--ink); stroke-dasharray: 4 4; opacity: .5; }
.cv-courbe text { font: 11px var(--font); fill: var(--ink); }
@keyframes cv-trace { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cv-courbe .ligne { animation: none; stroke-dashoffset: 0; } .cv-courbe .aire { animation: none; } }
.ass-visuel { width: 100%; border-radius: 8px; display: block; }
.ass-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.cv-image { width: 100%; border-radius: 8px; margin-top: 8px; display: block; }
.ass-canevas:has(.cv-image) { width: min(640px, calc(100vw - 460px)); }
.rap-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rap-visuel { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; background: var(--chip); min-height: 160px; }
.drapeau { width: 20px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.drapeau + .drapeau { margin-left: -2px; }
.choix-pays button { display: inline-flex; align-items: center; }
/* Rejeu de l'historique */
.btn-rejeu { position: absolute; top: 10px; right: 52px; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 6px 12px; cursor: pointer; font-weight: 700; box-shadow: var(--shadow); }
.btn-rejeu:hover { border-color: var(--acc); color: var(--acc); }
.rejeu { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 6; width: min(760px, calc(100% - 20px));
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; box-shadow: 0 14px 40px #0a22402e; display: grid; gap: 8px; }
:root[data-theme="dark"] .rejeu { background: rgba(16,32,48,.92); }
.rejeu-l1, .rejeu-l2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rejeu select, .rejeu input[type=date] { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.rejeu-horloge { flex: 1; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--acc); }
.rejeu input[type=range] { flex: 1; accent-color: var(--acc); }
@media (max-width: 600px) { .btn-rejeu { top: auto; bottom: 64px; right: 10px; } .rejeu { bottom: 110px; } .rejeu-horloge { flex-basis: 100%; text-align: left; } }

/* 26/10/2026 — corrections du contrôle UI/UX (fabrique/controles/20261026-ux2.md) */
.zone-carte { height: calc(100dvh - 310px); }                                   /* bas de carte visible à 900 px */
.tiroir { top: 55px; }                                                           /* l'en-tête reste accessible */
body:has(.tiroir.ouvert) .ass-bouton { display: none; }
@media (min-width: 1100px) { body.ass-ouvert:not(.mur) main { margin-right: 412px; } }  /* le panneau ne cache plus la carte */
@media (max-width: 600px) {
  .btn-rejeu { top: 10px; bottom: auto; right: 48px; }                          /* B2 : ne recouvre plus les fonds */
  .ass-canevas-mobile { max-height: 45%; overflow-y: auto; }                    /* B3 : le fil reste lisible */
  header.tete { flex-wrap: wrap; } header.tete nav { order: 3; flex-basis: 100%; }  /* menu complet visible */
  .tiroir { top: auto; }
  .fonds button, .choix-pays button, .legende button, .onglets button { min-height: 34px; }
  .zone-carte { height: 60vh; }
}
.regle-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.regle-form p { grid-column: 1 / -1; }
input.param { width: 110px; text-align: right; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
/* Légende de la carte (26/10/2026) */
.legende-carte { position: absolute; right: 10px; bottom: 28px; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); font-size: 12px; max-width: 230px; }
.legende-carte summary { cursor: pointer; padding: 6px 10px; font-weight: 700; list-style: none; }
.legende-carte summary::-webkit-details-marker { display: none; }
.legende-carte summary::before { content: "▸ "; color: var(--acc); }
.legende-carte[open] summary::before { content: "▾ "; }
.legende-carte ul { list-style: none; margin: 0; padding: 0 10px 8px; display: grid; gap: 4px; }
.legende-carte li { display: flex; align-items: center; gap: 8px; }
.lg-cercle { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--acc); }
.lg-tirets { width: 22px; height: 0; border-top: 3px dashed var(--acc); }
.lg-points { width: 22px; height: 0; border-top: 3px dotted var(--acc); }
@media (max-width: 600px) { .legende-carte { bottom: 30px; } }
.lg-types { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 6px 10px 8px; border-top: 1px solid var(--line); }
.lg-types span { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.picto { flex: none; vertical-align: middle; }
.picto-cell { color: var(--acc); margin-right: 6px; }
.lg-sous { border-top: 1px solid var(--line); } .lg-sous summary { padding: 5px 10px; font-weight: 700; cursor: pointer; font-size: 12px; }
.lg-sous .lg-types { border-top: 0; }
/* Écoute automatique : invite discrète tant que le micro n'a jamais été autorisé sur ce poste */
body.eveil-a-autoriser #ass-eveil { border-color: var(--warn); color: var(--warn); animation: cv-pouls 1.8s infinite; }
body.ass-eveil .ass-bouton .ass-pouls { background: var(--ok); }
/* Sous-titres translucides de Sentinelle : montent de bas en haut puis s'effacent (26/10/2026) */
#sous-titres { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 44; width: min(760px, 92vw); height: 46vh;
  pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }
body.ass-ouvert #sous-titres { left: calc(50% - 200px); }
.st-ligne { max-width: 100%; padding: 9px 16px; border-radius: 14px; font-size: 18px; line-height: 1.4; text-align: center; color: #fff;
  background: rgba(10, 34, 64, .55); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 10px 30px rgba(10,34,64,.25); text-shadow: 0 1px 2px rgba(0,0,0,.35);
  animation: st-monte 14s linear forwards; }
.st-ligne.moi { background: rgba(20, 70, 124, .38); font-size: 15px; font-style: italic; }
:root[data-theme="dark"] .st-ligne { background: rgba(9, 21, 33, .6); border-color: rgba(101,217,197,.25); }
@keyframes st-monte { 0% { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(4px); } 6% { opacity: 1; transform: translateY(0); filter: none; }
  70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-38vh); } }
@keyframes st-fond { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 600px) { #sous-titres { bottom: 52vh; height: 30vh; } .st-ligne { font-size: 15px; } body.ass-ouvert #sous-titres { left: 50%; } }
@media (prefers-reduced-motion: reduce) { .st-ligne { animation: st-fond 9s linear forwards; } }
body.mur #sous-titres { bottom: 120px; }

/* Opérations terrain : profondeur, hiérarchie et retours immédiats. */
.kpi { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px #0a224018; }
.kpi .val { font-variant-numeric: tabular-nums; }
.ass-raccourcis { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); }
.ass-raccourcis button { background: var(--hl); border: 1px solid var(--line); color: var(--acc); border-radius: 14px; padding: 5px 9px; cursor: pointer; font-size: 12px; }
.ass-msg.attente { border-left: 3px solid var(--acc); animation: attente-pouls 1.4s ease-in-out infinite alternate; }
@keyframes attente-pouls { from { opacity: .6; } to { opacity: 1; } }
.mobilite-indicateurs { display: flex; align-items: center; gap: 28px; padding: 15px 20px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg,var(--panel),var(--hl)); box-shadow: var(--shadow); }
.mobilite-indicateurs div { display: grid; gap: 2px; }
.mobilite-indicateurs span { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.mobilite-indicateurs b { font-size: 26px; font-variant-numeric: tabular-nums; }
.mobilite-indicateurs small { margin-left: auto; max-width: 230px; }
.mobilite-grille { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 16px; min-height: 600px; height: calc(100vh - 280px); }
.mobilite-panneau { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow: auto; box-shadow: var(--shadow); }
.mobilite-panneau .recherche { margin-top: 12px; }
#mobilite-liste { max-height: 205px; overflow: auto; margin: 8px -6px 16px; }
.gps-engin { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.gps-engin > span:nth-child(2) { flex: 1; }
.gps-engin small { display: block; font-size: 11px; margin-top: 3px; }
.gps-engin:hover, .gps-engin.actif { background: var(--hl); }
#mobilite-selection { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
#mobilite-selection h3 { font-size: 20px; margin: 6px 0; }
.coordonnees { font-variant-numeric: tabular-nums; color: var(--acc); }
.mobilite-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mobilite-options select { width: 100%; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 12px; }
.mobilite-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mobilite-actions button { padding: 8px 9px; font-size: 12px; }
#mobilite-resultat, #mobilite-temps { font-size: 12px; line-height: 1.65; }
.mobilite-carte { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel2); box-shadow: 0 14px 40px #0a22401a; }
#carte-mobilite { position: absolute; inset: 52px 0 0; }
.mobilite-outils { position: absolute; top: 0; left: 0; right: 0; height: 52px; display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--panel); overflow: auto; }
.mobilite-outils button { white-space: nowrap; cursor: pointer; border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: var(--panel); font-size: 12px; }
.mobilite-outils .actif, .mobilite-outils [aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.mobilite-statut { position: absolute; top: 64px; left: 12px; max-width: calc(100% - 70px); padding: 7px 11px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; font-size: 11px; pointer-events: none; }
.mobilite-legende { position: absolute; bottom: 34px; left: 12px; display: flex; flex-wrap: wrap; gap: 12px; background: var(--panel); border-radius: 8px; padding: 8px 12px; font-size: 11px; pointer-events: none; }
.mobilite-couverture { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.5; }
.mobilite-couverture b { color: var(--acc); }
@media (max-width: 900px) { .mobilite-grille { grid-template-columns: 260px minmax(0,1fr); } }
@media (max-width: 650px) {
  .mobilite-indicateurs { gap: 18px; padding: 12px; flex-wrap: wrap; }
  .mobilite-indicateurs b { font-size: 23px; } .mobilite-indicateurs small { flex-basis: 100%; margin: 0; max-width: none; }
  .mobilite-grille { display: flex; flex-direction: column-reverse; height: auto; }
  .mobilite-carte { height: 52vh; min-height: 360px; } .mobilite-panneau { max-height: none; }
  #mobilite-liste { max-height: 180px; } .mobilite-outils { padding: 6px; }
  .mobilite-legende { gap: 8px; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) { .kpi { transition: none; } .kpi:hover { transform: none; } .ass-msg.attente { animation: none; } }

/* 27/10/2026 (lot 3) : alertes de la fiche et plis fermés */
.liste-alertes { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.liste-alertes li { border-left: 3px solid var(--warn); padding: 4px 8px; background: var(--chip); border-radius: 4px; }
details.pli { border-top: 1px solid var(--line, var(--chip)); padding: 6px 0; }
details.pli summary { cursor: pointer; font-weight: 700; }
details.pli ul { padding-left: 18px; margin: 6px 0; }
