/*
 * LES FLOTTES — le dessin de la maquette validée par Thomas le 2 octobre 2026 (`plan/essais/flottes.html`), dans la charpente des
 * applications refaites : la tête, les cartes à planche, les quais, la nuée, la frise en bas (`frieze.css`).
 */
.flo-app { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.flo-tete { display: flex; align-items: baseline; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--structure); }
.flo-tete h2 { margin: 0; font-family: var(--titre); font-size: 11px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--encre); }
.flo-tete__etat { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin-left: auto; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.flo-tete__etat b { color: var(--encre); font-weight: 600; } .flo-tete__etat b.signal { color: var(--signal); }
.flo-page { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 12px; }
.flo-page > p { margin: 0; }
.flo-bande { display: flex; padding-top: 10px; border-top: 1px solid var(--structure); --frise-noms: 190px; }

/* ── Une carte : la coque en planche, le nombre, le trajet, la marche ─────────────────────────────────────────────── */
.flo-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.flo-carte {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; min-width: 0;
  background: color-mix(in srgb, var(--creux) 35%, transparent); box-shadow: inset 0 1px 0 var(--structureVive);
}
.flo-carte:hover { background: color-mix(in srgb, var(--gris) 7%, transparent); }
.flo-carte:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.flo-carte.attend { box-shadow: inset 0 2px 0 var(--alerte); }
/* L'ÉTAT-MAJOR (4 octobre 2026) : une mission groupée porte l'orange des ordres groupés ; une bataille, l'alerte. */
.flo-carte.mission { box-shadow: inset 0 2px 0 var(--signal); }
.flo-carte.combat { box-shadow: inset 0 2px 0 var(--danger, var(--alerte)); }
/* LES FLOTTES D'UNE MISSION OU D'UNE BATAILLE : une ligne chacune — son nom, et où elle en est. */
.flo-membres { display: flex; flex-direction: column; gap: 4px; }
.flo-membres > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--encre); }
.flo-membres small { flex: none; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.flo-carte > .note { margin: 0; }
.flo-coque { position: relative; display: block; height: 128px; background: var(--creux) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--structureVive); }
.flo-coque.basse { height: 96px; }
.flo-coque::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, color-mix(in srgb, var(--panneau) 94%, transparent)); }
.flo-coque__bas { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.flo-coque__bas > span { display: flex; flex-direction: column; min-width: 0; }
.flo-coque__bas b { font-size: 15px; font-weight: 600; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flo-coque__bas small { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--peuple); }
.flo-coque__bas em { font-style: normal; font-size: 28px; font-weight: 600; line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums; }
.flo-portrait {
  position: absolute; top: 8px; left: 8px; z-index: 2; width: 46px; height: 52px; background-size: 260% auto; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--structureVive);
}
.flo-portrait.f { background-position: 31% 12%; } .flo-portrait.m { background-position: 73% 9%; } .flo-portrait.serie { background-size: 300% auto; background-position: 50% 9%; }
.flo-trajet { font-size: 13px; color: var(--encre); } .flo-trajet i { font-style: normal; color: var(--efface); }
.flo-etat { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--signal); }
.flo-etat.calme { color: var(--peuple); } .flo-etat.alerte { color: var(--alerte); }
.flo-carte .crans > i { height: 3px; }
.flo-marche { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--discret); font-variant-numeric: tabular-nums; }
.flo-marche b { font-weight: 600; color: var(--signal); }
.flo-lien {
  align-self: flex-start; margin-top: 2px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gris);
  border-bottom: 1px solid var(--structureVive); padding-bottom: 2px;
}
.flo-carte:hover .flo-lien { color: var(--encre); border-color: var(--encre); }

/* ── Au mouillage : un monde, et ce qui y dort, en vignettes ──────────────────────────────────────────────────────── */
.flo-quais { display: flex; flex-direction: column; gap: 6px; }
.flo-quai { display: grid; grid-template-columns: 120px 230px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px; background: color-mix(in srgb, var(--creux) 30%, transparent); }
.flo-quai > i { height: 62px; background: var(--creux) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--structureVive); }
.flo-quai > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flo-quai b { font-size: 13px; font-weight: 600; color: var(--encre); }
.flo-quai small { font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--efface); }
.flo-jetons { display: flex; flex-wrap: wrap; gap: 6px; }
.flo-jeton { display: grid; grid-template-columns: 52px auto; gap: 8px; align-items: center; padding: 3px 10px 3px 3px; background: color-mix(in srgb, var(--creux) 55%, transparent); font-size: 12.5px; color: var(--encre); }
.flo-jeton > i { height: 32px; background: var(--creux) center / cover no-repeat; }
.flo-jeton b { font-size: 15px; font-variant-numeric: tabular-nums; }
.flo-lacher { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.flo-lacher .reglage { width: 220px; } .flo-lacher .plaque { width: 200px; }

/* ── La nuée : deux cents sondes en un bloc — ce qu'elles font ensemble, pas chacune ─────────────────────────────── */
.flo-nuee { display: grid; grid-template-columns: 300px 260px minmax(0, 1fr); gap: 18px; padding: 12px; background: color-mix(in srgb, var(--creux) 35%, transparent); box-shadow: inset 0 1px 0 var(--structureVive); }
.flo-nuee > .flo-coque { height: 100%; min-height: 200px; }
.flo-nuee__chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.flo-nuee__chiffres > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: color-mix(in srgb, var(--creux) 50%, transparent); }
.flo-nuee__chiffres b { font-size: 24px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
.flo-nuee__chiffres b.signal { color: var(--signal); }
.flo-nuee__chiffres span { font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--efface); }
.flo-nuee__cote { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flo-nuee__cote > .note { margin: 0; }
.flo-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 3px; max-height: 320px; overflow: auto; padding-right: 4px; }
.flo-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flo-deux .note { margin: 6px 0 0; }
.flo-arretees { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow: auto; }
.flo-puce {
  all: unset; cursor: pointer; padding: 3px 10px; font-size: 11.5px; color: var(--encre);
  background: color-mix(in srgb, var(--gris) 8%, transparent); box-shadow: inset 2px 0 0 var(--gris);
}
.flo-puce:hover { background: color-mix(in srgb, var(--gris) 16%, transparent); }
