/* LE COMBAT DU BUREAU (le combat, lot 3, 3 octobre 2026) — la fiche d'un militaire vu, l'ordre « frapper », la fenêtre Bataille. */

/* DEUX GESTES, MÊME TAILLE (3 octobre 2026) : le ton pour agir, l'argent pour l'autre. ⚠️ DANS UNE COLONNE ÉTROITE, L'UN SOUS L'AUTRE
   (4 octobre 2026) : côte à côte dans les 300 points de la bataille, « modifier le programme » s'écrasait sur trois lignes. */
.bat-gestes { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bat-gestes > * { flex: 1 1 150px; min-width: 0; }
.bat-argent { --accent: var(--gris); }

/* ── LA FENÊTRE BATAILLE (maquette validée le 3 octobre 2026, `plan/essais/bataille.html`) ────────────────────────────────── */
/* Elle remplit sa fenêtre, sans marge, comme la carte : trois colonnes qui tiennent chacune leur défilement. */
.fenetre > .corps:has(> .bat-app) { padding: 0; gap: 0; overflow: hidden; }
.bat-app { --energie: #6fd3ff; --cinetique: var(--metal); --missile: var(--alerte); --lance: #f4f6ff;
  flex: 1; min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; }
.bat-col { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 16px; }
.bat-col.gauche { border-right: 1px solid var(--structure); background: color-mix(in srgb, var(--creux) 25%, transparent); }
.bat-col.droite { border-left: 1px solid var(--structure); background: color-mix(in srgb, var(--creux) 25%, transparent); }
/* LA COLONNE DU MILIEU DÉFILE ; SA TÊTE ET SA FRISE RESTENT (Thomas, 4 octobre 2026 : « le menu des tours en bas, on ne le voit jamais »)
   — la frise était le seul bloc qui acceptait de rétrécir : elle s'écrasait à 23 px sous la scène. Sa hauteur décide aussi de la
   scène : plus elle est basse, plus la scène se resserre (`bat-centre`, plus bas). */
.bat-centre { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; container: bat-centre / size; }
.bat-centre > .bat-tete { position: sticky; top: 0; z-index: 3; background: var(--panneau); }
.bat-centre > .bat-frise { flex: none; position: sticky; bottom: 0; z-index: 3; margin-top: auto; background: var(--panneau); }
/* LA LARGEUR DE LA FENÊTRE décide de celle des colonnes : la scène garde la place de ses groupes. */
.fenetre > .corps:has(> .bat-app) { container: bat-fenetre / inline-size; }
@container bat-fenetre (max-width: 1440px) { .bat-app { grid-template-columns: 264px minmax(0, 1fr) 284px; } }
@container bat-fenetre (max-width: 1200px) { .bat-app { grid-template-columns: 236px minmax(0, 1fr) 248px; } .bat-col { padding: 10px 11px 14px; } }
.bat-app .efface { color: var(--efface); } .bat-app .alerte { color: var(--alerte); } .bat-app .bon { color: var(--bon); }

/* MES FLOTTES DANS LA BATAILLE (4 octobre 2026) : une ligne chacune ; celle que la colonne montre porte le liseré orange des choix. */
.bat-equipe { display: flex; flex-direction: column; gap: 4px; }
.bat-equipe button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  padding: 7px 10px; font-size: 13px; color: var(--discret); background: color-mix(in srgb, var(--creux) 45%, transparent); }
.bat-equipe__nom { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bat-equipe__coques { font-size: 11px; color: var(--efface); }
/* CE QU'UN RAPPEL RETIRE (4 octobre 2026) : ce qui part avec elle, ce qui reste face à eux — sous le geste qui le décide. */
.bat-retrait { display: grid; gap: 6px; padding: 8px 10px; background: color-mix(in srgb, var(--creux) 45%, transparent); box-shadow: inset 3px 0 0 var(--signal); }
.bat-retrait span { display: block; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.bat-retrait b { font-size: 12.5px; font-weight: 500; color: var(--encre); }
.bat-retrait b.alerte { color: var(--alerte); }
.bat-equipe button:hover { background: color-mix(in srgb, var(--gris) 8%, transparent); }
.bat-equipe button:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.bat-equipe button.choisi { color: var(--encre); background: color-mix(in srgb, var(--signal) 9%, var(--creux));
  box-shadow: inset 3px 0 0 var(--signal), inset 0 0 0 1px color-mix(in srgb, var(--signal) 55%, transparent); }
.bat-equipe small { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--alerte); }

/* LE COMMANDANT ET SON PROGRAMME */
.bat-cdt { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.bat-cdt__portrait { display: block; width: 64px; height: 84px; background-size: cover; background-position: top; box-shadow: inset 0 0 0 1px var(--structureVive); background-color: var(--creux); }
.bat-cdt b { display: block; font-size: 17px; font-weight: 600; color: var(--encre); }
.bat-cdt span { display: block; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); margin-top: 2px; }
.bat-cdt em { font-style: normal; color: var(--discret); }
.bat-prog { display: flex; flex-direction: column; gap: 6px; }
.bat-lg { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; padding: 8px 10px 8px 8px; font-size: 12.5px; line-height: 1.4; color: var(--discret);
  background: color-mix(in srgb, var(--panneau) 70%, transparent); box-shadow: inset 2px 0 0 var(--structureVive); }
.bat-lg > * { grid-column: 2; }
.bat-lg__no { grid-column: 1 !important; grid-row: 1 / span 3; font-family: var(--titre); font-size: 10px; color: var(--efface); padding-top: 2px; }
.bat-lg__quand, .bat-lg__etat { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.bat-lg__quoi { color: var(--encre); }
.bat-lg.joue { box-shadow: inset 2px 0 0 var(--peuple); background: color-mix(in srgb, var(--peuple) 7%, var(--panneau)); }
.bat-lg.joue .bat-lg__etat { color: var(--peuple); }
.bat-lg.neuve { box-shadow: inset 2px 0 0 var(--signal); }
.bat-lg.neuve .bat-lg__etat { color: var(--signal); }
.bat-jauge { height: 3px; margin-top: 4px; background: color-mix(in srgb, var(--gris) 14%, transparent); position: relative; }
.bat-jauge > i { position: absolute; inset: 0 auto 0 0; background: var(--alerte); }
.bat-jauge > s { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--encre); }
.bat-bandeau { padding: 8px 10px; font-size: 12px; line-height: 1.45; color: var(--discret); background: color-mix(in srgb, var(--signal) 8%, transparent); box-shadow: inset 2px 0 0 var(--signal); }
.bat-bandeau.retraite { background: color-mix(in srgb, var(--gris) 8%, transparent); box-shadow: inset 2px 0 0 var(--gris); }

/* LA TÊTE DE LA SCÈNE, ET LE VERDICT */
.bat-tete { display: flex; align-items: baseline; gap: 14px; padding: 10px 16px 8px; border-bottom: 1px solid var(--structure); }
.bat-tete h2 { margin: 0; font-family: var(--titre); font-size: 11px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--encre); white-space: nowrap; }
.bat-tete__ou { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bat-direct { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--alerte); white-space: nowrap; }
.bat-direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--alerte); box-shadow: 0 0 6px var(--alerte); animation: bat-respire 2s ease-in-out infinite; }
.bat-direct.fini { color: var(--efface); } .bat-direct.fini i { background: var(--efface); box-shadow: none; animation: none; }
.bat-direct b { color: var(--encre); font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes bat-respire { 50% { opacity: .35; } }
.bat-verdict { --t: var(--gris); display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 12px 16px; border-bottom: 1px solid var(--structure);
  background: color-mix(in srgb, var(--t) 8%, transparent); box-shadow: inset 3px 0 0 var(--t); }
.bat-verdict.bon { --t: var(--bon); } .bat-verdict.alerte { --t: var(--alerte); } .bat-verdict.danger { --t: var(--danger); }
.bat-verdict h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--encre); }
.bat-verdict p { margin: 0; font-size: 12.5px; color: var(--discret); grid-column: 1; }
.bat-verdict__signe { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.bat-verdict__signe b { display: block; font-size: 13px; letter-spacing: .3px; text-transform: none; color: var(--encre); font-weight: 600; }
.bat-chiffres { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.bat-chiffres div { display: flex; flex-direction: column; }
.bat-chiffres b { font-size: 17px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
.bat-chiffres b.alerte { color: var(--alerte); } .bat-chiffres b.bon { color: var(--bon); } .bat-chiffres b.metal { color: var(--metal); } .bat-chiffres b.iridium { color: var(--iridium); }
.bat-chiffres span { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.bat-attente { padding: 24px 16px; }

/* LA SCÈNE, EN COUPE (4 octobre 2026 au-dessus d'un monde ; Thomas, 7 octobre 2026, dans le vide aussi : « mettre à l'horizontale comme
   pour celle des planètes ») : l'assaillant en haut, la ligne de contact horizontale, l'autre camp dessous — puis, au-dessus d'un monde,
   l'horizon. La scène pousse à la hauteur de ce qu'elle porte : rien ne se chevauche, et c'est la colonne qui défile, les tirs avec elle.
   ⚠️ LES CAMPS DU VIDE DÉFILAIENT DANS LA SCÈNE, SOUS UN CALQUE DE TIRS FIXE : les traits restaient où ils étaient. */
/* ELLE PREND LA PLACE QUI RESTE au-dessus de la frise : c'est le monde qui s'agrandit, pas un vide sous lui. */
.bat-scene { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #0b1120 0%, #04060b 60%, #000 100%); }
/* DANS LE VIDE, les deux camps se tiennent autour de la ligne, au milieu de la place. */
.bat-scene.vide { justify-content: center; }
.bat-camp__nom { position: absolute; top: 10px; left: 18px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--peuple); }
.bat-rang__nom { font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--efface); text-align: center; }
/* LE SOL SOUS LA BATAILLE (4 octobre 2026) : l'horizon du monde sur toute la largeur, son bouclier en voile, ses défenses sur la crête. */
.bat-bande { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 18px 10px; }
.bat-bande.eux .bat-camp__nom { left: auto; right: 18px; color: var(--alerte); }
.bat-rangee { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; }
.bat-rangee > .bat-rang__nom { text-align: left; }
.bat-rangee__groupes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-width: 0; }
.bat-rangee__groupes .bat-grp { flex: 0 1 200px; min-width: 150px; }
.bat-contact { position: relative; flex: none; height: 2px; margin: 18px 18px 14px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--signal) 60%, transparent) 12%, color-mix(in srgb, var(--signal) 60%, transparent) 88%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--signal) 55%, transparent); }
.bat-contact span { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); white-space: nowrap; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--signal); }
/* SES COTES, EN VARIABLES : la scène se resserre en les changeant, sans redessiner le monde. */
.bat-horizon { --h: 290px; --voile: 46px; --crete: 80px; --planete: 104px; --sous: 62px; --courbe: 54px; --descente: 116px; --plonge: 0px;
  position: relative; flex: 1 0 auto; height: calc(var(--h) + var(--plonge)); overflow: hidden; }
/* SOUS LE VOILE : les escadrilles qui ont passé le bouclier pour frapper le sol à ce tour. */
.bat-horizon.plonge { --plonge: var(--descente); }
.bat-horizon__plongee { position: absolute; top: var(--sous); left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 14px; }
.bat-horizon__plongee > .bat-rang__nom { color: var(--energie); }
.bat-horizon__plongee .bat-grp { flex: 0 1 170px; min-width: 130px; }
/* LE MONDE : un disque immense dont on ne voit que la crête — un limbe éclairé, une atmosphère, une surface qui s'enfonce dans l'ombre. */
.bat-planete { position: absolute; left: 50%; top: calc(var(--planete) + var(--plonge)); width: 230%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #2a3b4f 0%, #17222f 2.5%, #0c131b 7%, #070b10 14%);
  box-shadow: inset 0 3px 2px -1px color-mix(in srgb, #d9ecff 70%, transparent), inset 0 14px 22px -10px color-mix(in srgb, #7fb6e6 45%, transparent),
    0 -6px 18px color-mix(in srgb, #7fb6e6 30%, transparent); }
/* SON BOUCLIER : un voile d'énergie au-dessus de l'atmosphère, qui brille de ce qu'il tient et se brise quand il tombe. */
.bat-voile { position: absolute; left: 50%; top: var(--voile); width: 236%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  opacity: calc(.25 + var(--part) * .75); border: 1.5px solid color-mix(in srgb, var(--energie) 90%, transparent);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--energie) 16%, transparent) 0%, color-mix(in srgb, var(--energie) 5%, transparent) 2.6%, transparent 3.2%);
  box-shadow: 0 -4px 16px color-mix(in srgb, var(--energie) 40%, transparent); }
.bat-voile.tombe { opacity: .4; border-style: dashed; border-color: color-mix(in srgb, var(--energie) 45%, transparent); box-shadow: none; background: none; }
.bat-horizon__tete { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: center; align-items: baseline; gap: 16px; pointer-events: none; }
.bat-horizon__bouclier { font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--energie); }
.bat-horizon__bouclier em { font-style: normal; color: var(--encre); font-variant-numeric: tabular-nums; letter-spacing: .4px; }
/* LE FRONT AU SOL (4 octobre 2026) : ce qui tient le contact, sur ce qui reste. */
.bat-sol__front { font-size: 11px; color: var(--efface); }
.bat-horizon__crete { position: absolute; top: calc(var(--crete) + var(--plonge)); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 0 14px; }
.bat-horizon__crete > div { flex: 0 1 132px; min-width: 96px; margin-top: calc(var(--s, 0) * var(--courbe)); }
.bat-horizon .bat-grp__vue { height: 44px; }
/* LES BÂTIMENTS VUS, DANS LA SURFACE : plus petits, sous la crête. */
.bat-horizon__surface { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 0 14px; }
.bat-horizon__surface .bat-grp { flex: 0 1 116px; min-width: 88px; opacity: .8; }
.bat-horizon__surface .bat-grp__vue { height: 26px; }
.bat-horizon__surface .bat-grp__role, .bat-horizon__surface .bat-grp__sous { display: none; }
.bat-horizon.nu .bat-horizon__crete { top: 50px; }
.bat-terrain { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--signal); white-space: nowrap; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); }

/* UN GROUPE : le héros de sa coque, son nombre, ses jauges, ses organes, ce qu'il fait — jamais un vaisseau (principe 6) */
.bat-grp { --c: var(--peuple); position: relative; display: flex; flex-direction: column; min-width: 0;
  background: color-mix(in srgb, var(--panneau) 86%, transparent); box-shadow: inset 0 0 0 1px var(--structure), inset 2px 0 0 var(--c); transition: opacity .3s; }
.bat-grp.eux { --c: var(--alerte); box-shadow: inset 0 0 0 1px var(--structure), inset -2px 0 0 var(--c); }
/* À QUI EST CHAQUE GROUPE (4 octobre 2026) : le nom de sa flotte sur la planche ; celle que la colonne montre, au liseré orange. */
.bat-grp__flotte { position: absolute; z-index: 1; top: 4px; left: 9px; max-width: calc(100% - 18px); font-size: 9.5px; line-height: 1; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--encre); text-shadow: 0 1px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bat-grp.choisi { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 70%, transparent), inset 3px 0 0 var(--signal); }
.bat-grp.choisi .bat-grp__flotte { color: var(--signal); }
.bat-grp__vue { position: relative; height: 66px; overflow: hidden; }
.bat-grp__vue img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.bat-grp.eux .bat-grp__vue img { transform: scaleX(-1); }
.bat-grp__vue::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, color-mix(in srgb, var(--panneau) 92%, transparent)); }
.bat-grp__titre { position: absolute; left: 9px; right: 9px; bottom: 3px; z-index: 1; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.bat-grp__titre b { font-size: 19px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px #000; }
.bat-grp__titre span { font-size: 11.5px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px #000; }
.bat-grp__titre i { font-style: normal; color: var(--efface); }
.bat-grp__infos { padding: 3px 9px 7px; }
.bat-grp__sous { font-size: 10px; letter-spacing: .8px; color: var(--efface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bat-grp__barres { display: grid; gap: 2px; margin-top: 3px; }
.bat-b { height: 3px; background: color-mix(in srgb, var(--gris) 12%, transparent); position: relative; }
.bat-b > i { position: absolute; inset: 0 auto 0 0; transition: width .5s ease; }
.bat-b.bouclier > i { background: var(--energie); } .bat-b.coque > i { background: var(--c); }
.bat-grp__org { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 3px; font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--efface); }
.bat-grp__org .faible { color: var(--signal); font-weight: 400; } .bat-grp__org .hs { color: var(--danger); font-weight: 400; }
.bat-grp__role { margin-top: 3px; font-size: 10.5px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bat-grp__role b { color: var(--c); font-weight: 600; }
.bat-grp.mort { opacity: .32; } .bat-grp.parti { opacity: .45; }
.bat-grp.charge { box-shadow: inset 0 0 0 1px var(--lance), 0 0 18px color-mix(in srgb, var(--lance) 45%, transparent); animation: bat-charge 1.2s ease-in-out infinite; }
@keyframes bat-charge { 50% { box-shadow: inset 0 0 0 1px var(--lance), 0 0 30px color-mix(in srgb, var(--lance) 70%, transparent); } }
.bat-grp__lance { position: absolute; z-index: 2; top: -8px; left: 10px; padding: 1px 7px; font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #000; background: var(--lance); }
.bat-grp.eux .bat-grp__lance { left: auto; right: 10px; }
.bat-grp__tombe { position: absolute; z-index: 2; top: -8px; right: 6px; font-size: 15px; font-weight: 700; color: var(--danger); text-shadow: 0 0 8px #000; animation: bat-tombe 1.6s ease-out forwards; }
.bat-grp.eux .bat-grp__tombe { right: auto; left: 6px; }
@keyframes bat-tombe { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }
.bat-grp.ciel { min-width: 170px; flex: 0 1 215px; } .bat-grp.ciel .bat-grp__vue { height: 54px; }

/* LES TIRS DU TOUR, TEINTÉS PAR L'ARME — et ce que la DCA a coupé, barré */
.bat-tirs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.bat-trait { stroke-linecap: round; stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: bat-trace 1.2s ease-out forwards; }
.bat-trait.energy { stroke: var(--energie); } .bat-trait.kinetic { stroke: var(--cinetique); } .bat-trait.missile { stroke: var(--missile); }
.bat-trait.lance { stroke: var(--lance); filter: drop-shadow(0 0 4px var(--lance)); }
/* TRACÉS, ILS RESTENT À DEMI : le tour regardé garde ses tirs, comme le rapport de la maquette. */
@keyframes bat-trace { from { stroke-dashoffset: var(--l); opacity: 1; } 70% { opacity: 1; } to { stroke-dashoffset: 0; opacity: .5; } }
.bat-coupe { stroke: var(--encre); stroke-width: 1.5; opacity: 0; animation: bat-coupe 1.3s ease-out .4s forwards; }
@keyframes bat-coupe { 40% { opacity: 1; } to { opacity: .5; } }

/* LA FRISE DES TOURS */
.bat-frise { display: flex; gap: 4px; padding: 8px 16px 10px; border-top: 1px solid var(--structure); overflow-x: auto; }
.bat-tr { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 66px; display: flex; flex-direction: column; gap: 3px; padding: 5px 6px; box-shadow: inset 0 0 0 1px var(--structure); }
.bat-tr b { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--discret); font-weight: 600; }
.bat-tr span { font-size: 10px; color: var(--efface); font-variant-numeric: tabular-nums; }
.bat-tr__p { display: flex; gap: 2px; height: 3px; }
.bat-tr__p i { display: block; height: 3px; } .bat-tr__p .m { background: var(--peuple); } .bat-tr__p .e { background: var(--alerte); }
.bat-tr:hover { background: var(--creux); }
.bat-tr.vu { box-shadow: inset 0 0 0 1px var(--encre); background: var(--creux); }
.bat-tr.avenir { cursor: default; box-shadow: inset 0 0 0 1px var(--alerte); opacity: .8; } .bat-tr.avenir b { color: var(--alerte); }

/* CE QU'ON VOIT D'EUX, ET LE FIL */
.bat-releve > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 12.5px; color: var(--discret);
  border-bottom: 1px solid color-mix(in srgb, var(--structure) 70%, transparent); }
.bat-releve > div > i { font-style: normal; font-size: 11.5px; color: var(--efface); text-align: right; }
.bat-releve > div > b { font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; text-align: right; min-width: 3ch; }
.bat-releve > div > b.alerte { color: var(--alerte); } .bat-releve > div > b.bon { color: var(--bon); }
.bat-releve > div > span small { display: block; font-size: 10.5px; color: var(--efface); }
.bat-fil { display: flex; flex-direction: column; gap: 10px; }
.bat-fil__t { all: unset; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; padding-left: 6px; gap: 2px 8px; font-size: 12.5px; line-height: 1.45; color: var(--discret); }
.bat-fil__t > b { font-size: 10px; letter-spacing: 1px; color: var(--efface); font-variant-numeric: tabular-nums; padding-top: 2px; font-weight: 400; }
.bat-fil__t > b small { display: block; font-size: 10px; opacity: .7; }
.bat-fil__t p { margin: 0 0 3px; } .bat-fil__t p:last-child { margin: 0; }
.bat-fil__t.vu { background: color-mix(in srgb, var(--gris) 6%, transparent); box-shadow: inset 2px 0 0 var(--encre); }
@media (prefers-reduced-motion: reduce) { .bat-direct i, .bat-grp.charge, .bat-trait, .bat-coupe, .bat-grp__tombe { animation: none; } .bat-trait { stroke-dashoffset: 0; opacity: .55; } .bat-coupe { opacity: .6; } }
/* CE QUI S'EST PASSÉ AU SOL (4 octobre 2026) : sous les chiffres du verdict, une ligne par fait. */
.bat-verdict__sol { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--discret); padding-top: 8px; border-top: 1px dashed var(--structure); }
.bat-verdict__sol ul { margin: 0; padding-left: 16px; font-size: 12.5px; }
.bat-verdict__sol li { margin: 2px 0; }

/* LA SCÈNE SE RESSERRE QUAND LA COLONNE EST BASSE (Thomas, 4 octobre 2026 : « un souci de responsive design ») — des planches moins
   hautes, des bandes moins aérées, un monde moins profond ; plus bas encore, la ligne de rôle se tait (le fil la dit).
   ⚠️ `:is(.au-sol, .vide)`, C'EST TOUTE SCÈNE, mais au poids de l'ancien `.au-sol` : les planches de l'horizon en dépendent. */
@container bat-centre (max-height: 980px) {
  .bat-bande { padding: 24px 16px 6px; gap: 8px; }
  .bat-contact { margin: 12px 18px 10px; }
  .bat-scene:is(.au-sol, .vide) .bat-grp__vue { height: 44px; }
  .bat-scene:is(.au-sol, .vide) .bat-grp.ciel .bat-grp__vue { height: 38px; }
  .bat-scene:is(.au-sol, .vide) .bat-grp__titre { bottom: 4px; } .bat-scene:is(.au-sol, .vide) .bat-grp__titre b { font-size: 16px; line-height: 1; }
  .bat-scene:is(.au-sol, .vide) .bat-grp__flotte { top: 3px; font-size: 9px; }
  .bat-horizon { --h: 236px; --voile: 38px; --crete: 64px; --planete: 86px; --sous: 52px; --courbe: 38px; --descente: 92px; }
  .bat-horizon .bat-grp__vue { height: 34px; }
  .bat-horizon__surface .bat-grp__vue { height: 22px; }
  .bat-verdict { padding: 10px 16px; } .bat-verdict__sol { margin-top: 4px; padding-top: 6px; }
}
@container bat-centre (max-height: 800px) {
  .bat-scene:is(.au-sol, .vide) .bat-grp__role, .bat-scene:is(.au-sol, .vide) .bat-grp__org { display: none; }
  .bat-scene:is(.au-sol, .vide) .bat-grp__vue, .bat-scene:is(.au-sol, .vide) .bat-grp.ciel .bat-grp__vue { height: 34px; }
  .bat-horizon { --h: 204px; --voile: 34px; --crete: 56px; --planete: 76px; --sous: 46px; --courbe: 28px; --descente: 76px; }
  .bat-horizon .bat-grp__vue { height: 28px; }
}
/* PLUS ÉTROITE, la scène range plus de planches par rangée. */
@container bat-centre (max-width: 760px) {
  .bat-rangee__groupes .bat-grp { flex: 0 1 140px; min-width: 120px; }
  .bat-rangee { grid-template-columns: 48px minmax(0, 1fr); }
  .bat-horizon__crete > div { min-width: 78px; }
}
/* LE FIL NOMME CELLE DE MES FLOTTES QUI A FAIT QUOI, quand elles sont plusieurs (4 octobre 2026). */
.bat-fil__qui { color: var(--encre); font-weight: 600; }

/* LA BOUCLE D'UNE PATROUILLE (M3, 4 octobre 2026) : un point par ligne, numéroté ; celui vers lequel elle va porte le filet du signal.
   En composition, ses gestes ↑ ↓ × ont le dessin de ceux d'une ligne du programme d'un commandant (`.cmd-ligne__actions`). */
.pat-boucle { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pat-boucle > li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px;
  background: color-mix(in srgb, var(--creux) 40%, transparent); box-shadow: inset 2px 0 0 var(--structure);
}
.pat-boucle > li.prochain { box-shadow: inset 2px 0 0 var(--signal); }
.pat-boucle__num { font-size: 15px; font-weight: 600; color: var(--signal); font-variant-numeric: tabular-nums; }
.pat-boucle__lieu { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pat-boucle__lieu small { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--signal); }
.pat-boucle__gestes { display: flex; gap: 4px; }
.pat-boucle__gestes button {
  all: unset; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; color: var(--discret);
  box-shadow: inset 0 0 0 1px var(--structure);
}
.pat-boucle__gestes button:hover:not(:disabled) { color: var(--encre); box-shadow: inset 0 0 0 1px var(--structureVive); }
.pat-boucle__gestes button.retirer:hover { color: var(--alerte); }
.pat-boucle__gestes button:disabled { cursor: default; opacity: 0.35; }
