/* Styles de l'interface STYYXX — uniquement des variables de tokens.css */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sx-bg); color: var(--sx-text); font-family: var(--sx-font); font-size: 15px; line-height: 1.5; }
a { color: var(--sx-navigation); }
a:hover { color: #8FE6E3; }
:focus-visible { outline: 2px solid var(--sx-navigation); outline-offset: 2px; }
.mono { font-family: var(--sx-mono); }
.muted { color: var(--sx-text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 32px; border-bottom: 1px solid var(--sx-border); }
.top .brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.top .crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.top .logo img { height: 40px; width: auto; display: block; }
.top .sep { color: #4A5E73; }
/* 22 nov. — dossier d’alerte en trois temps */
.alert-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.alert-step { display: flex; flex-direction: column; gap: 8px; }
.alert-step-h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.alert-step-n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--sx-navigation); color: var(--sx-navigation); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
@media (max-width: 900px) { .alert-steps { grid-template-columns: 1fr; } }
/* 22 nov. — carte du navire (lecture en mind mapping) */
.mm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 0.7fr) minmax(0, 1fr); gap: 0 56px; align-items: center; margin: 6px 0 4px; }
.mm-col { display: flex; flex-direction: column; gap: 10px; }
.mm-center { position: relative; z-index: 1; text-align: center; padding: 22px 16px; border-radius: 50%/38%; border: 2px solid var(--sx-navigation); background: var(--sx-panel-2, #10273E); }
.mm-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.mm-branch { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--sx-text); cursor: pointer;
  padding: 10px 12px; border-radius: 10px; background: var(--sx-panel-2, #10273E); border: 1px solid; border-left-width: 4px; }
.mm-branch:hover { background: #163150; }
.mm-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.mm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mm-body { font-size: 13px; color: var(--sx-text-2); }
.mm { position: relative; }
.mm-links { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.mm-col, .mm-center { position: relative; z-index: 1; }
@media (max-width: 900px) { .mm { grid-template-columns: 1fr; gap: 10px; } .mm-center { order: -1; border-radius: 12px; } } 
/* 22 nov. — menu des couches de la carte */
.layers-menu { position: relative; align-self: flex-end; }
.layers-menu > summary { list-style: none; cursor: pointer; }
.layers-menu > summary::-webkit-details-marker { display: none; }
.layers-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; background: var(--sx-panel); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); padding: 8px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
/* 22 nov. — chemin de travail de l’accueil */
.path-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.path-steps li { counter-increment: st; }
.path-steps a { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 8px 38px; position: relative; text-decoration: none; color: var(--sx-text); border-radius: 8px; }
.path-steps a::before { content: counter(st); position: absolute; left: 8px; top: 9px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--sx-navigation); color: var(--sx-navigation); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.path-steps a:hover { background: var(--sx-panel-2, #10273E); }
.path-steps li:not(:last-child) a::after { content: '→'; position: absolute; right: -8px; top: 9px; color: var(--sx-text-3); }
.path-steps .muted { font-size: 13px; }
/* 22 nov. — barre de rubriques (deuxième ligne de l’en-tête) */
.top .sections { flex-basis: 100%; order: 10; display: flex; gap: 4px 26px; flex-wrap: wrap; font-size: 15px; margin-top: 2px; }
.top .sections a { color: var(--sx-text-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top .sections a:hover { color: var(--sx-text); }
.top .sections { align-items: center; }
.top .sections .nav-search { order: 99; margin-left: auto; width: 260px; min-height: 36px; padding: 6px 12px; font-size: 14px; }
.top .sections .nav-spacer { display: none; }
.top .sections .nav-count { margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--sx-alerte); border: 1px solid var(--sx-alerte); }
.top .sections a[aria-current='page'] { color: var(--sx-text); font-weight: 600; border-bottom-color: var(--sx-navigation); }
.top .right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--sx-text-2); }
.alert-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--sx-radius); border: 1px solid var(--sx-alerte); color: var(--sx-alerte); font-weight: 500; text-decoration: none; }
.linkbtn { background: none; border: none; color: var(--sx-text-2); font: inherit; cursor: pointer; min-height: 44px; padding: 0 8px; }

/* Mise en page avec menu */
.layout { display: flex; flex-wrap: wrap; min-height: calc(100vh - 66px); }
.side { flex: 1 1 220px; max-width: 260px; padding: 24px 16px; border-right: 1px solid var(--sx-border); display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--sx-radius); color: var(--sx-text-3); text-decoration: none; }
.side a[aria-current="page"] { background: rgba(59, 208, 203, 0.12); color: var(--sx-navigation); font-weight: 600; }
.side a.soon { color: var(--sx-text-2); }
.content { flex: 999 1 560px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.page { width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 32px; display: flex; flex-direction: column; gap: 24px; }
h1 { margin: 0; font-size: 28px; font-weight: 600; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }
.lead { margin: 4px 0 0; color: var(--sx-text-2); font-size: 14px; max-width: 820px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }

/* Panneaux */
.panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 10px; background: var(--sx-panel); border: 1px solid var(--sx-border); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; font-size: 14px; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv .k { color: var(--sx-text-2); font-size: 13px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; }
.col-a { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.col-b { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.retenir { padding: 12px 14px; border-radius: 6px; background: var(--sx-panel-2); font-size: 13px; line-height: 1.5; color: var(--sx-text-3); }
.retenir strong { color: var(--sx-text); }
.warn { padding: 12px 14px; border-radius: 6px; background: rgba(255, 116, 116, 0.10); border: 1px solid rgba(255, 116, 116, 0.4); color: #FFB3B3; font-size: 14px; }

/* Voyants */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: rgba(96, 221, 163, 0.12); color: var(--sx-verification); }
.pill.check { background: rgba(245, 196, 75, 0.12); color: var(--sx-attention); }
.pill.div { background: rgba(255, 116, 116, 0.14); color: var(--sx-alerte); }
.pill.na { background: rgba(132, 150, 168, 0.14); color: #B5C3D1; }
.age { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.recente { background: var(--sx-observation); }
.dot.intermediaire { border: 2px solid var(--sx-observation); }
.dot.ancienne { background: var(--sx-ancienne); }
.src { font-family: var(--sx-mono); font-size: 12px; }

/* Formulaires et boutons */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sx-text-2); }
label.field.grow { flex: 1 1 320px; }
input, select { height: 44px; padding: 0 14px; border-radius: var(--sx-radius); border: 1px solid var(--sx-border-strong); background: var(--sx-panel); color: var(--sx-text); font: 15px var(--sx-font); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--sx-radius); border: 1px solid var(--sx-border); background: var(--sx-panel-2); color: var(--sx-text); font: 500 15px var(--sx-font); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--sx-navigation); color: #06222A; border: none; font-weight: 600; }
.btn.outline { background: transparent; border-color: var(--sx-navigation); color: var(--sx-navigation); }
.btn:disabled { color: #6F8396; cursor: default; }
.btn.icon { width: 44px; padding: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--sx-text-2); }
.pager .btns { display: flex; gap: 8px; }

/* Tableaux */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--sx-border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--sx-text-2); padding: 12px 16px; background: var(--sx-panel); }
td { padding: 12px 16px; border-top: 1px solid #1C2F44; vertical-align: middle; }
td a.name { color: var(--sx-text); font-weight: 600; text-decoration: none; }
td a.name:hover { color: var(--sx-navigation); }
.panel table th { background: transparent; padding: 10px 12px; }
.panel table td { padding: 10px 12px; }

/* Accueil */
.home { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.home .hero { display: flex; justify-content: center; padding: 0 0 8px; }
.home .hero img { width: min(300px, 70%); height: auto; }
/* Accueil : situation au dernier calcul */
.situation { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 1180px; width: 100%; margin: 0 auto 20px; }
.sit-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; min-height: 44px; border-radius: var(--sx-radius-lg); background: var(--sx-panel); border: 1px solid var(--sx-border); text-decoration: none; color: var(--sx-text); }
.sit-card:hover { border-color: var(--sx-navigation); }
.sit-label { font-size: 13px; color: var(--sx-text-3); text-transform: uppercase; letter-spacing: .04em; }
.sit-value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sit-detail { font-size: 13px; color: var(--sx-text-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; min-height: 160px; padding: 24px; border-radius: var(--sx-radius-lg); background: var(--sx-panel-2); border: 1px solid var(--sx-border-strong); text-decoration: none; color: var(--sx-text); }
.tile:hover { border-color: var(--sx-navigation); color: var(--sx-text); }
.tile .t { font-size: 22px; font-weight: 600; }
.tile .d { font-size: 14px; color: var(--sx-text-2); }
.tile .row { display: flex; justify-content: space-between; align-items: center; }
.tile.alert { background: rgba(255, 116, 116, 0.08); border: 2px solid var(--sx-alerte); }
.count { padding: 4px 10px; border-radius: 999px; background: var(--sx-alerte); color: #2A0B0B; font-size: 13px; font-weight: 600; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 28px; border-radius: var(--sx-radius-lg); background: var(--sx-panel); border: 1px solid var(--sx-border); text-decoration: none; color: var(--sx-text); }

/* Alertes */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sx-border-strong); background: transparent; color: var(--sx-text-3); font: 500 14px var(--sx-font); cursor: pointer; }
.chip[aria-pressed="true"] { background: rgba(59, 208, 203, 0.14); border-color: var(--sx-navigation); color: var(--sx-navigation); }
.alert-card { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 18px 20px; border-radius: 10px; background: var(--sx-panel); border: 1px solid var(--sx-border); border-left-width: 4px; }
.alert-card.a_examiner { border-left-color: var(--sx-alerte); }
.alert-card.indice { border-left-color: var(--sx-attention); }
.alert-card .main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.alert-card .meta { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* États */
.empty { padding: 32px; text-align: center; color: var(--sx-text-2); border: 1px dashed var(--sx-border-strong); border-radius: 10px; }
.loading { color: var(--sx-text-2); padding: 24px 0; }
.error { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--sx-alerte); color: #FFB3B3; }
.login { max-width: 420px; margin: 10vh auto; padding: 32px; display: flex; flex-direction: column; gap: 18px; border-radius: 12px; background: var(--sx-panel); border: 1px solid var(--sx-border); }
.login img { width: 260px; margin: 0 auto 8px; display: block; }
.login input { width: 100%; }

@media (max-width: 720px) {
  .top, .content, .page { padding-left: 16px; padding-right: 16px; }
  .side { max-width: none; border-right: none; border-bottom: 1px solid var(--sx-border); flex-direction: row; flex-wrap: wrap; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
.demo-tag { font-family: var(--sx-mono); font-size: 12px; color: var(--sx-text-2); padding: 4px 8px; border: 1px dashed #4A5E73; border-radius: 6px; }

/* ---------- Rapports (07.xx) */
.archive-week { border-top: 1px solid var(--sx-border); padding: 12px 0 4px; }
.archive-week > summary { cursor: pointer; list-style: none; min-height: 32px; display: flex; align-items: center; }
.archive-week > summary::-webkit-details-marker { display: none; }
.archive-week > summary::before { content: '▸'; color: var(--sx-text-3); margin-right: 10px; transition: transform .15s; }
.archive-week[open] > summary::before { transform: rotate(90deg); }
.archive-day { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 8px 22px; }
.archive-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't p' 'm p'; gap: 2px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--sx-border); border-radius: var(--sx-radius); background: var(--sx-panel-2); color: var(--sx-text); text-decoration: none; }
.archive-row:hover { border-color: var(--sx-navigation); }
.archive-row > :nth-child(1) { grid-area: t; } .archive-row > :nth-child(2) { grid-area: m; } .archive-row > :nth-child(3) { grid-area: p; }
.report-item { border: 1px solid var(--sx-border); border-radius: var(--sx-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--sx-panel-2); }
.report-item ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.panel textarea { width: 100%; box-sizing: border-box; background: var(--sx-bg); color: var(--sx-text); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); padding: 12px; font: 15px/1.5 var(--sx-font); resize: vertical; }
.prose { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.menu-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 300px; background: var(--sx-panel); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); padding: 6px; display: flex; flex-direction: column; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.menu-pop[hidden] { display: none; }
.menu-item { background: none; border: none; color: var(--sx-text); text-align: left; padding: 10px 12px; border-radius: 6px; font: 14px var(--sx-font); cursor: pointer; min-height: 40px; }
.menu-item:hover { background: var(--sx-panel-2); }
.print-only { display: none; }
@media print {
  :root { --sx-bg: #fff; --sx-panel: #fff; --sx-panel-2: #fff; --sx-text: #0b1520; --sx-text-2: #22313f; --sx-text-3: #3e5163; --sx-border: #b9c6d2; }
  body { background: #fff !important; color: #0b1520; }
  header, .no-print, .alert-chip, nav, .side { display: none !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .panel, .report-item { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  .print-only { display: block; }
  /* Rapport : marges portées par la page elle-même, pour que le navigateur n'imprime ni l'adresse ni la date (en-têtes et pieds) ;
     un panneau peut se couper entre deux éléments, un élément jamais */
  @page rapport { size: A4; margin: 0; }
  .report-doc { page: rapport; padding: 14mm 14mm 12mm; }
  .report-doc .panel { break-inside: auto; }
  .report-doc .panel h2 { break-after: avoid; }
  .report-doc .report-item { break-inside: avoid; }
}
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.report-map { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--sx-border); display: block; }

/* ---------- Cartes (2.0x) */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.map-box { position: relative; border: 1px solid var(--sx-border); border-radius: var(--sx-radius-lg); overflow: hidden; background: var(--sx-sea); }
.map { height: min(72vh, 760px); min-height: 460px; width: 100%; }
.map-side { gap: 12px; }
.map-side .kv { display: flex; justify-content: space-between; gap: 10px; }
.map-legend { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: rgba(13, 27, 43, 0.92); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); font-size: 12px; color: var(--sx-text-2); pointer-events: none; }
.map-legend > span { display: flex; align-items: center; gap: 8px; }
details.map-legend { pointer-events: auto; }
details.map-legend > summary { cursor: pointer; font-weight: 600; color: var(--sx-text); min-height: 24px; list-style-position: inside; }
details.map-legend:not([open]) { padding: 6px 10px; }
.lg-line { width: 22px; border-top: 2.5px solid var(--sx-navigation); display: inline-block; }
.lg-line.dashed { border-top-style: dashed; }
.lg-ring.lent { border-color: #C9D8E6; background: rgba(201, 216, 230, 0.28); }
.lg-ring.sar { border: 2px solid var(--sx-attention); background: rgba(245, 196, 75, 0.12); }
.lg-ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--sx-interferences); background: rgba(187, 154, 238, 0.18); display: inline-block; }
.map-status { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; }
.maplibregl-popup-content { background: var(--sx-panel); color: var(--sx-text); border: 1px solid var(--sx-border); border-radius: var(--sx-radius); font: 13px/1.45 var(--sx-font); padding: 12px 14px; }
.maplibregl-popup-tip { border-top-color: var(--sx-panel) !important; border-bottom-color: var(--sx-panel) !important; }
.maplibregl-popup-close-button { color: var(--sx-text-2); font-size: 18px; width: 28px; height: 28px; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-scale { background: rgba(13, 27, 43, 0.85) !important; color: var(--sx-text-2) !important; }
.maplibregl-ctrl-attrib a { color: var(--sx-text-2) !important; }
.gfw-pop { display: flex; flex-direction: column; gap: 8px; }
.gfw-ev { border-top: 1px solid var(--sx-border); padding-top: 6px; }
@media (max-width: 1100px) { .map-wrap { grid-template-columns: 1fr; } .map { height: 60vh; min-height: 360px; } }
@media (max-width: 700px) { .map-legend { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; border: none; border-top: 1px solid var(--sx-border); border-radius: 0; background: var(--sx-panel); } }
.grid-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; }
.grid-kv > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.grid-kv .muted { font-size: 12px; }

/* ---------- Découvrir STYYXX (D.01) */
.guide { display: flex; flex-direction: column; gap: 24px; }
.guide-page { background: var(--sx-panel); border: 1px solid var(--sx-border); border-radius: var(--sx-radius-lg); padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.guide-page h2 { margin: 6px 0 0; font-size: 22px; }
.guide-page h3 { margin: 0; font-size: 16px; }
.guide-cover { align-items: flex-start; }
.guide-logo { width: 220px; height: auto; }
.guide-toc { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 24px; }
.guide-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--sx-border); }
.guide-table.compact { font-size: 12.5px; }
.guide-table.compact td, .guide-table.compact th { padding: 5px 8px; }
.guide-signal { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--sx-border); }
.guide-signal p { margin: 0; font-size: 14px; }
.guide-fn { border-top: 1px solid var(--sx-border); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.guide-fn p { margin: 0; font-size: 14px; line-height: 1.45; }
.guide-fn details summary { cursor: pointer; color: var(--sx-navigation); font-size: 13px; }
.guide-retenir { color: var(--sx-text-3); }
.guide-rubrique { display: flex; flex-direction: column; gap: 10px; }
.guide-fns { gap: 28px; }
.guide-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 24px; font-size: 13px; }
.guide-src { border-top: 1px solid var(--sx-border); padding-top: 6px; }
.dot.sx-blue { background: var(--sx-observation); } .dot.sx-amber { background: var(--sx-attention); }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  .guide { gap: 0; }
  .guide-page { border: none; border-radius: 0; padding: 0; break-before: page; gap: 8px; }
  .guide-page:first-child { break-before: auto; }
  .guide-fns { display: block; column-count: 2; column-gap: 8mm; }
  .guide-rubrique { display: block; margin-bottom: 5mm; }
  .guide-rubrique > h2 { break-after: avoid; } .guide-rubrique > .lead { font-size: 10.5px; margin: 0 0 2mm; }
  .guide-sources { display: block; column-count: 2; column-gap: 8mm; font-size: 8.5px; }
  .guide-src { break-inside: avoid; padding-top: 2px; }
  .guide-fn { break-inside: avoid; padding-top: 5px; gap: 2px; }
  .guide-fn p { font-size: 9px; line-height: 1.35; }
  .guide-fn h3 { font-size: 10.5px; }
  .guide-table { font-size: 9px; } .guide-table th, .guide-table td { padding: 3px 6px; }
  .guide-signal { padding: 5px 0; gap: 4px; } .guide-signal p, .guide-list { font-size: 10px; } .guide-table.compact { font-size: 9px; }
  .guide-table.compact td, .guide-table.compact th { padding: 2px 5px; }
  .guide-logo { filter: invert(1); width: 180px; }
  .guide-page h2 { font-size: 17px; }
  .pill { border: 1px solid #8aa0b4; }
}

/* ---------- Petits écrans : aucun débordement de page (les tableaux défilent dans leur cadre) */
.layout > *, .content, .page, .cols > *, .map-wrap > *, .guide-page { min-width: 0; }
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .guide-table { display: block; overflow-x: auto; }
  .guide-page { padding: 20px 16px; }
}
.file-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.field:focus-within .file-pick .btn { outline: 2px solid var(--sx-navigation); outline-offset: 2px; }
.file-pick { min-width: 0; max-width: 100%; }
.report-item { min-width: 0; overflow-wrap: anywhere; }
.report-item .pill { white-space: normal; height: auto; min-height: 26px; line-height: 1.3; padding-top: 3px; padding-bottom: 3px; }

/* ---------- Écrans tactiles : cibles de 44 px au moins (WCAG 2.5.5) */
@media (pointer: coarse) {
  .btn, .chip, .menu-item, select, input:not([type=checkbox]):not([type=radio]), .alert-chip { min-height: 44px; }
  .chip { padding-left: 14px; padding-right: 14px; }
  header a, header button, .crumbs a, nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .report-item .pill, a > .pill, a.tap { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Téléphone : menu Navires sur une seule ligne défilante, l'entête reste compacte */
@media (max-width: 700px) {
  .layout { flex-direction: column; flex-wrap: nowrap; } .layout > .content { width: 100%; }
  .side { flex: none; max-width: none; flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; width: 100%; box-sizing: border-box; gap: 6px; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--sx-border);
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side a { flex: none; white-space: nowrap; padding: 10px 12px; scroll-snap-align: start; }
}

/* Accueil : espaces en préparation (pas de lien) */
.tile.soon { opacity: 0.72; cursor: default; }
.tile.soon:hover { border-color: var(--sx-border-strong); }
.lg-ring.avis { border: 2px dashed #FF7474; background: rgba(255, 116, 116, 0.12); border-radius: 2px; }

/* Horloges Zulu et locale de l'en-tête (demande du 13 nov.) : toujours côte à côte, compactes sur téléphone */
.clocks { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.clock { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border: 1px solid var(--sx-border); border-radius: 6px; background: var(--sx-panel); font-size: 13px; white-space: nowrap; }
.clock small { color: var(--sx-non-evaluable); font-size: 11px; }
@media (max-width: 720px) {
  .clock { padding: 2px 6px; font-size: 12px; }
  .clock small { font-size: 10px; }
  .top .logo img { height: 32px; }
  .top .crumbs > .sep:first-child { display: none; }
}

/* Encadré de carte de la fiche navire (13 nov.) */
.mini-map { height: 240px; border-radius: var(--sx-radius); overflow: hidden; border: 1px solid var(--sx-border); cursor: pointer; background: var(--sx-sea); }

/* 14 nov. — photo en tête de fiche */
.photo-strip { flex-direction: column; gap: 4px; }
@media (max-width: 600px) { .gloss { grid-template-columns: 1fr !important; } .gloss dd { margin-bottom: 8px !important; } }

/* 24 nov. — version hors ligne */
.offline-band { flex: 1 0 100%; box-sizing: border-box; padding: 6px 16px; background: color-mix(in srgb, var(--sx-attention) 18%, transparent); border-top: 1px solid var(--sx-attention); font-size: 13px; }
.offline-band strong { color: var(--sx-attention); }

/* 29 nov. (passe IHM) — téléphone : dalles de niveaux et étapes « Par où commencer » empilées, en-tête plus compacte */
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) {
  .tiles3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .path-steps { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .path-steps li:not(:last-child) a::after { content: none; }
  .path-steps a { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .top .right { gap: 8px 12px; }
  .top .right .demo-tag { font-size: 11px; padding: 3px 6px; }
}
