/* Bastia 2030+, charte EONA-X. Formes plates, sans ombres portées. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../assets/fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #094672;
  --navy-deep: #07324F;
  --gold: #FFD047;
  --white: #FFFFFF;
  --mist: #EFF3F6;
  --line: #D6E0E7;
  --ink: #0C2B40;
  --ink-2: #4C6578;
  --ok: #0B6B4A;
  --tight: #8A5A00;
  --out: #8E1D34;
  --unknown: #4C6578;
  --top-h: 68px;
  --rail-w: 318px;
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
body.on-map { height: 100dvh; overflow: hidden; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--navy); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 3000; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; line-height: 1.45; }

/* En-tête */
.top { height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 22px 0 14px; background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 1000; }
.top-logo img { display: block; height: 52px; width: auto; }
.top-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; white-space: nowrap; margin-right: 18px; }
.top-nav { display: flex; gap: 2px; margin-left: auto; align-self: stretch; }
.top-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; white-space: nowrap; }
.top-nav a:hover { color: var(--navy); }
.top-nav a.is-on { color: var(--navy); font-weight: 600; }
.top-nav a.is-on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 4px; background: var(--gold); }

/* Vue carte */
.view-map { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); height: calc(100dvh - var(--top-h)); }
.rail { background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; position: relative; z-index: 800; }
.rail-toggle { display: none; }
.rail-id { padding: 16px 18px 14px; background: var(--navy); color: var(--white); }
.rail-id-name { margin-bottom: 8px; }
.rail-id-name img { display: block; width: 164px; max-width: 100%; height: auto; }
.rail-id-code { font-size: 12.5px; opacity: 0.86; margin-top: 3px; }
.rail-id-stat { font-size: 12.5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.rail-block { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rail-block.is-off .makers, .rail-block.is-off .check { opacity: 0.45; }
.rail-title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.rail-hint { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin-top: 8px; }
.modes { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
.mode { display: block; width: 100%; text-align: left; padding: 7px 11px; background: var(--white); border: 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.mode:last-child { border-bottom: 0; }
.mode:hover { background: var(--mist); }
.mode.is-on { background: var(--navy); color: var(--white); font-weight: 600; box-shadow: inset 4px 0 0 var(--gold); }
.search { position: relative; }
input[type='search'], input[type='number'], select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); border-radius: 3px; font-size: 14px; }
input[type='search']:focus, input[type='number']:focus, select:focus { border-color: var(--navy); outline: 1px solid var(--navy); outline-offset: 0; }
.search-list { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border: 1px solid var(--navy); border-top: 0; z-index: 30; max-height: 280px; overflow: auto; }
.search-list li { padding: 7px 10px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--line); }
.search-list li span { color: var(--ink-2); font-size: 12.5px; }
.search-list li:hover, .search-list li.is-on { background: var(--mist); }
.search-list .search-empty { cursor: default; color: var(--ink-2); }
.makers { display: grid; gap: 0; }
.maker label { display: grid; grid-template-columns: 18px 4px 1fr; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; }
.maker-bar { display: inline-block; width: 4px; height: 26px; background: var(--navy); flex: 0 0 auto; }
.maker-text { display: block; font-size: 13.5px; line-height: 1.25; }
.maker .maker-bar { height: 46px; }
.maker-logo { display: flex !important; align-items: center; min-height: 30px; margin-bottom: 2px; }
.maker-text span { display: block; font-size: 12.5px; color: var(--ink-2); }
.maker input, .check input, .scope input { accent-color: var(--navy); width: 16px; height: 16px; margin: 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-top: 10px; cursor: pointer; }
.scope { display: grid; gap: 5px; font-size: 13.5px; }
.scope label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.compare-controls { display: grid; gap: 8px; }
.compare-controls label { font-size: 13px; display: grid; gap: 3px; color: var(--ink-2); }
.month-range input { width: 100%; accent-color: var(--navy); }
.month-range .rail-hint { color: var(--navy); font-weight: 600; font-size: 14px; margin-top: 2px; }

.map-stage { position: relative; min-width: 0; height: 100%; overflow: hidden; }
#map { position: absolute; inset: 0; background: #D9E2E9; }
.leaflet-container { font-family: var(--font); }
.tiles-muted { filter: grayscale(1) contrast(0.82) brightness(1.08); }
.leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, 0.88) !important; }
.leaflet-tooltip { font-family: var(--font); font-size: 12.5px; border: 1px solid var(--navy); border-radius: 2px; box-shadow: none; color: var(--ink); padding: 4px 8px; }
.leaflet-tooltip-top::before { border-top-color: var(--navy); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: none !important; }
.leaflet-bar a { color: var(--navy); border-bottom-color: var(--line); }
.leaflet-control-zoom { margin-bottom: 30px !important; }
.arc-hit { cursor: pointer; }

/* Marqueurs */
.pt { position: absolute; }
.pt-dot { position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--white); box-sizing: content-box; margin: -1.5px; }
.pt-label { position: absolute; left: 13px; top: -3px; font-size: 11px; font-weight: 600; color: var(--navy); white-space: nowrap; line-height: 18px; paint-order: stroke; -webkit-text-stroke: 3px rgba(255, 255, 255, 0.9); }
.pt-major .pt-label { font-size: 15px; font-weight: 800; top: -6px; left: 14px; line-height: 24px; color: var(--navy-deep); }
.pt-major .pt-dot { width: 11px; height: 11px; left: 0; top: 0; }
.pt-seasonal .pt-dot { background: var(--navy); box-shadow: 0 0 0 3px rgba(9, 70, 114, 0.22); }
.pt-historic .pt-dot { background: #7C9AB0; }
.pt-opportunity .pt-dot { background: var(--white); border-color: var(--navy); }
.pt-extended .pt-dot { width: 5px; height: 5px; left: 3px; top: 3px; background: #9DB4C4; border-color: var(--white); border-width: 1px; }
.pt-extended .pt-label { display: none; }
.pt-state-unknown .pt-dot { background: var(--white); border-color: #7C9AB0; box-shadow: none; }
.pt-state-observed .pt-dot { background: #7C9AB0; box-shadow: none; }
.pt-selected .pt-dot { background: var(--gold); border-color: var(--navy); border-width: 2px; box-shadow: none; }
.z-far .pt:not(.pt-major) .pt-label { display: none; }
.z-mid .pt:not(.pt-major):not(.pt-featured):not(.pt-selected) .pt-label { display: none; }
.z-far .pt-major .pt-label { font-size: 12px; left: 11px; top: -5px; line-height: 20px; }
.labels-all.z-mid .pt .pt-label { display: block; }
.z-far .pt-major .pt-label { font-size: 10.5px; left: 10px; }
.z-far .pt-seasonal .pt-dot { box-shadow: none; }
.z-far .pt-dot { width: 6px; height: 6px; }
.z-far .pt-major .pt-dot { width: 8px; height: 8px; left: 1px; top: 1px; }
.z-far .ring-tag { font-size: 10.5px; }
.z-far .ring-tag-small { display: none; }
.z-far .pt-origin-label { font-size: 16px; left: 18px; top: -6px; line-height: 30px; }
.pt-origin-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--navy); border: 4px solid var(--gold); }
.pt-origin-label { position: absolute; left: 22px; top: -8px; font-weight: 800; font-size: 22px; line-height: 34px; color: var(--navy-deep); paint-order: stroke; -webkit-text-stroke: 4px rgba(255, 255, 255, 0.92); }
.ring-tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--navy-deep); background: rgba(255, 255, 255, 0.88); padding: 0 5px; }
.ring-tag b { font-weight: 700; }

/* Titre posé sur la carte */
.map-title { position: absolute; left: 26px; bottom: 58px; z-index: 500; pointer-events: none; max-width: min(760px, calc(100% - 300px)); }
.map-title h1 { font-size: clamp(27px, 3.45vw, 50px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: #094672; }
.map-sub { font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; color: var(--navy-deep); margin-top: 5px; }
.map-range { font-size: 13.5px; color: var(--navy-deep); margin-top: 2px; }
.map-disclaimer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 480; padding: 3px 330px 3px 26px; font-size: 11px; line-height: 1.3; color: var(--ink-2); background: rgba(255, 255, 255, 0.9); }
.map-recenter { position: absolute; left: 16px; top: 16px; z-index: 500; background: var(--white); border: 1px solid var(--navy); color: var(--navy); font-size: 13.5px; font-weight: 600; padding: 7px 12px; }
.map-recenter:hover { background: var(--navy); color: var(--white); }
.map-chip { position: absolute; left: 190px; top: 16px; z-index: 500; background: var(--gold); color: var(--ink); font-size: 13.5px; padding: 6px 8px 6px 12px; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.map-chip button { background: var(--white); border: 1px solid var(--ink); font-size: 12.5px; padding: 1px 8px; }
.map-notice { position: absolute; left: 190px; top: 16px; z-index: 500; background: var(--white); border: 1px solid var(--navy); padding: 6px 12px; font-size: 13px; max-width: 460px; }
.legend { position: absolute; right: 16px; top: 16px; z-index: 500; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); padding: 12px 14px; width: 252px; }
.legend h2 { font-size: 15px; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 2.5px 0; line-height: 1.25; }
.lg-dot, .lg-origin { flex: 0 0 18px; display: block; height: 12px; position: relative; }
.lg-dot::after, .lg-origin::after { content: ''; position: absolute; left: 4px; top: 1px; width: 10px; height: 10px; border-radius: 50%; }
.lg-origin::after { background: var(--navy); border: 3px solid var(--gold); left: 2px; top: -1px; width: 14px; height: 14px; }
.lg-annual::after { background: var(--navy); }
.lg-seasonal::after { background: var(--navy); box-shadow: 0 0 0 3px rgba(9, 70, 114, 0.22); width: 8px; height: 8px; left: 5px; top: 2px; }
.lg-historic::after { background: #7C9AB0; }
.lg-opportunity::after { background: var(--white); border: 1.5px solid var(--navy); }
.lg-line { flex: 0 0 18px; height: 2px; background: var(--navy); }
.lg-line-dash { background: repeating-linear-gradient(90deg, var(--navy) 0 4px, transparent 4px 7px); }
.lg-ring { flex: 0 0 18px; height: 14px; border: 2px solid var(--navy); border-radius: 50%; background: rgba(9, 70, 114, 0.08); }
.lg-ring-dash { border-style: dashed; }

/* Le titre laisse la place à la carte dès qu'on zoome ou qu'une fiche est ouverte */
.is-zoomed .map-title h1 { font-size: 24px; letter-spacing: -0.03em; }
.is-zoomed .map-sub, .is-zoomed .map-range { display: none; }
.has-panel .map-title, .has-panel .legend { display: none; }
.has-panel .leaflet-bottom.leaflet-right { right: 460px; }
.has-panel .map-disclaimer { display: none; }

/* Logos */
.logo { display: block; max-width: 100%; height: auto; }
.notes-grid h3 { display: flex; align-items: center; gap: 8px; }
.notes-model { font-size: 13.5px; font-weight: 600; }

/* Les constructeurs */
.cons-grid { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cons-card { height: 100%; min-height: 190px; display: flex; flex-direction: column; padding: 18px 18px 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease; }
.cons-card:hover { border-color: var(--navy); background: var(--mist); }
.cons-card-logo { flex: 1; min-height: 92px; display: flex; align-items: center; justify-content: center; }
.cons-card-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cons-card-prog { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13px; font-weight: 600; }
.cons-card-prog .maker-bar { height: 14px; }
.cons-sub { margin-top: 44px; font-size: 24px; }
.lede-small { font-size: 15.5px; margin-top: 6px; }
.notions h3 { font-size: 15px; }

.cons-back { margin: 0 0 16px; }
.cons-back-end { margin: 30px 0 0; }
.cons-head { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px 0 20px; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line); }
.cons-head-logo { display: flex; align-items: center; min-height: 92px; }
.cons-head h1 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; }
.cons-head h1:focus { outline: 0; }
.cons-head p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.cons-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.cons-tile { padding: 14px 16px 14px 0; }
.cons-tile + .cons-tile { padding-left: 16px; border-left: 1px solid var(--line); }
.cons-tile dt { font-size: 12.5px; color: var(--ink-2); }
.cons-tile dd { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.cons-tile strong { display: block; font-size: 16.5px; line-height: 1.3; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.cons-tile span { display: block; }
.cons-nav { position: sticky; top: var(--top-h); z-index: 20; display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 6px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.cons-nav button { background: none; border: 0; padding: 5px 9px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--navy); cursor: pointer; }
.cons-nav button:hover { background: var(--mist); }
.cons-part { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 0; padding-bottom: 8px; border-bottom: 3px solid var(--navy); font-size: 24px; color: var(--navy); }
.cons-part span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cons-sec { padding-top: 24px; scroll-margin-top: calc(var(--top-h) + 52px); }
.cons-sec > h3 { font-size: 20px; margin-bottom: 10px; }
.cons-intro { max-width: 78ch; font-size: 15.5px; line-height: 1.65; margin-bottom: 14px; }
.cons-dl { margin: 0; max-width: 1000px; }
.cons-dl .kv { grid-template-columns: 210px 1fr; }
.cons-h { margin: 18px 0 6px; font-size: 15.5px; font-weight: 600; color: var(--navy); }
.cons-src { margin: 4px 0 0; }
.cons-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 24px; }
.cons-people li { padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.cons-people h4 { font-size: 15px; font-weight: 600; }
.cons-role { color: var(--ink-2); margin-bottom: 3px; }
.cons-link { margin-top: 12px; }

.tl-legend { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--ink-2); }
.tl-legend li { display: flex; align-items: center; gap: 8px; }
.tl-dot { flex: 0 0 auto; display: block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--navy); background: var(--navy); }
.tl-announce .tl-dot { background: var(--gold); }
.tl-target .tl-dot { background: var(--white); border-style: dashed; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 13px 150px 1fr; gap: 14px; padding: 6px 0; font-size: 14px; line-height: 1.5; }
.tl li + li { border-top: 1px solid var(--mist); }
.tl .tl-dot { position: relative; margin-top: 4px; }
.tl-date { font-weight: 600; color: var(--navy); font-size: 13.5px; }
.tl-kind { display: inline-block; margin-right: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tl-kind::after { content: ' :'; }
.tl-target .tl-body { color: var(--ink-2); }

.fund-total { padding: 12px 16px; background: var(--mist); border-left: 4px solid var(--gold); max-width: 900px; font-size: 13.5px; line-height: 1.5; }
.fund-total-label { font-size: 12.5px; color: var(--ink-2); }
.fund-total-value { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.data-fund { min-width: 620px; }
.data-fund td:first-child { white-space: nowrap; }
.fund-amount { font-weight: 600; min-width: 140px; }
.data-prog { min-width: 920px; }
.data-prog th[scope='row'] { white-space: nowrap; }
table.data.data-compare thead th { background: var(--white); color: var(--ink); border-bottom: 2px solid var(--navy); vertical-align: bottom; }
table.data.data-compare thead th.stick { color: var(--navy); }

.sov-pills { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.sov-pills li { padding: 8px 12px; font-size: 13px; }
.sov-pills li + li { border-left: 1px solid var(--line); }
.sov-pill-label { display: block; font-size: 12.5px; color: var(--ink-2); }
.cons-synth { margin-top: 22px; padding: 14px 18px; background: var(--navy); color: var(--white); max-width: 900px; }
.cons-synth h4 { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.cons-synth p { font-size: 14.5px; line-height: 1.6; }

.nowrap { white-space: nowrap; }

/* Fiche liaison */
.panel { position: absolute; right: 0; top: 0; bottom: 0; width: 460px; max-width: 100%; z-index: 900; background: var(--white); border-left: 1px solid var(--navy); transform: translateX(100%); transition: transform 0.22s ease; }
.panel.is-open { transform: none; }
.panel-inner { height: 100%; overflow-y: auto; padding: 0 0 28px; outline: none; }
.sheet-head { padding: 18px 22px 16px; background: var(--navy); color: var(--white); position: relative; }
.sheet-head h2 { font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; padding-right: 60px; }
.sheet-code { font-size: 12.5px; font-weight: 500; opacity: 0.86; margin-bottom: 2px; }
.sheet-km { margin-top: 6px; font-size: 14px; }
.sheet-km strong { color: var(--gold); font-size: 20px; font-weight: 700; }
.sheet-head .cat { display: inline-block; margin-top: 8px; background: var(--white); color: var(--navy); border: 0; }
.sheet-close { position: absolute; z-index: 2; right: 16px; top: 16px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); color: var(--white); padding: 2px 10px; font-size: 12.5px; }
.sheet-close:hover { background: var(--white); color: var(--navy); }
.sheet-block { padding: 16px 22px 14px; border-bottom: 1px solid var(--line); }
.sheet-block h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 136px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--mist); font-size: 13.5px; line-height: 1.45; }
.kv:first-child { border-top: 0; }
.kv dt { color: var(--ink-2); font-size: 12.5px; }
.kv-block { grid-template-columns: 1fr; gap: 3px; }
.plain li { padding: 3px 0; }
.plain-links li { font-size: 13px; line-height: 1.4; padding: 5px 0; }
.src { font-size: 11.5px; color: var(--navy); }
.spark { padding: 8px 0 2px; }
.ac-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 4px; margin-bottom: 10px; }
.ac-tab { position: relative; text-align: left; background: var(--white); border: 1px solid var(--line); padding: 5px 7px 5px 12px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.ac-tab-logo { display: flex; align-items: center; min-height: 26px; margin-bottom: 3px; }
.ac-tab small { display: block; font-weight: 500; font-size: 11.5px; margin-top: 1px; }
.ac-tab-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.ac-tab:hover { background: var(--mist); }
.ac-tab.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.verdict { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.st { font-weight: 600; font-size: inherit; }
.st-ok { color: var(--ok); }
.st-tight { color: var(--tight); }
.st-out { color: var(--out); }
.st-unknown { color: var(--unknown); }
.cat { font-size: 12.5px; font-weight: 600; padding: 1px 7px; border: 1px solid var(--navy); color: var(--navy); white-space: nowrap; }
.cat-annual { background: var(--navy); color: var(--white); }
.cat-seasonal { background: #DCE8F0; border-color: #DCE8F0; }
.cat-historic { background: var(--mist); border-color: #A9BDCB; color: var(--ink-2); }
.cat-opportunity { background: var(--white); }

/* Pages */
.view-page { background: var(--white); }
.page { max-width: 1120px; margin: 0 auto; padding: 34px 28px 56px; }
.page-wide { max-width: 1380px; }
.page h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: var(--navy-deep); }
.lede { font-size: 17px; line-height: 1.55; max-width: 74ch; margin-top: 12px; color: var(--ink); }
.page h2 { font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.page h3 { font-size: 16px; font-weight: 600; color: var(--navy); }
.note { font-size: 13px; color: var(--ink-2); margin-top: 10px; max-width: 80ch; }
.chart-block { margin-top: 38px; padding-top: 22px; border-top: 3px solid var(--navy); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.chart-sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; max-width: 86ch; }
.chart { margin-top: 12px; min-height: 40px; overflow: hidden; }
.chart svg { display: block; max-width: 100%; }
.axis { font-size: 11.5px; fill: var(--ink-2); font-family: var(--font); }
.axis-tiny { font-size: 10px; }
.axis-na { font-style: normal; }
.value { font-size: 12px; font-weight: 600; fill: var(--ink); font-family: var(--font); }
.hit { outline: none; }
.hit:focus { fill: rgba(9, 70, 114, 0.1); }
.segment { display: inline-flex; border: 1px solid var(--navy); }
.segment button { background: var(--white); border: 0; padding: 5px 12px; font-size: 13.5px; font-weight: 500; }
.segment button.is-on { background: var(--navy); color: var(--white); font-weight: 600; }
.seg-small { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.chip { background: var(--white); border: 1px solid var(--line); padding: 3px 10px; font-size: 13.5px; font-weight: 500; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.table-twin { margin-top: 8px; font-size: 13.5px; }
.table-twin summary { cursor: pointer; color: var(--navy); font-weight: 500; }
.hbars { display: grid; gap: 2px; }
.hbar { display: grid; grid-template-columns: 170px 1fr 110px; align-items: center; gap: 12px; padding: 4px 6px; background: transparent; border: 0; text-align: left; width: 100%; font-size: 14px; }
button.hbar:hover { background: var(--mist); }
.hbar-label { font-weight: 500; line-height: 1.2; }
.hbar-label small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.hbar-track { display: block; height: 12px; }
.hbar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.warning { background: #FFF6D6; border-left: 5px solid var(--gold); padding: 8px 12px; font-size: 14px; margin-top: 8px; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.sim-grid label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 500; align-content: start; }
.sim-grid input[type='range'] { width: 100%; accent-color: var(--navy); }
.sim-grid output { font-weight: 700; color: var(--navy); }
.sim-result { margin-top: 14px; padding: 14px 16px; background: var(--mist); }
.sim-figure { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-deep); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 26px; margin-top: 14px; }
.facts p { font-size: 14px; margin-top: 3px; }
#contextBlock > .small { margin-top: 12px; }

/* Tableaux */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px 12px; margin-top: 22px; padding: 14px; background: var(--mist); }
.filters label { display: grid; gap: 3px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.f-search { grid-column: span 2; }
.table-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin: 12px 0; font-size: 14px; }
.table-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.btn { background: var(--navy); color: var(--white); border: 1px solid var(--navy); padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.btn:hover { background: var(--navy-deep); }
.btn-quiet { background: var(--white); color: var(--navy); }
.btn-quiet:hover { background: var(--mist); color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.data { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.data caption { caption-side: bottom; text-align: left; font-size: 12.5px; color: var(--ink-2); padding: 7px 10px; }
.data th, .data td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.data thead th { background: var(--navy); color: var(--white); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.data thead th button { background: transparent; border: 0; padding: 0; color: inherit; font-weight: 600; font-size: inherit; white-space: nowrap; }
.data tbody th { font-weight: 500; }
.data .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data tbody tr:hover { background: var(--mist); }
.data-compact { font-size: 13.5px; }
.link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; margin-right: 4px; white-space: nowrap; }
.tag span { width: 4px; height: 13px; display: inline-block; }
.data-compare { min-width: 1260px; table-layout: fixed; font-size: 13px; }
.data-compare td { overflow-wrap: anywhere; }
.data-compare th.stick { width: 138px; position: sticky; left: 0; background: var(--white); z-index: 2; font-weight: 600; color: var(--navy); }
.data-compare thead th.stick { background: var(--navy); color: var(--white); z-index: 3; }
.data-compare thead th { white-space: normal; }
.data-compare tbody tr:hover th.stick { background: var(--mist); }
.ac-head { display: flex; gap: 8px; align-items: stretch; }
.ac-head small { display: block; font-weight: 400; font-size: 12.5px; margin-top: 4px; }
.logo-link { display: inline-block; color: inherit; text-decoration: none; }
.logo-link:hover small { text-decoration: underline; }
.ac-head .maker-bar { height: auto; min-height: 30px; }
.cell-src { display: block; margin-top: 2px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 34px; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 28px; margin-top: 12px; font-size: 13.5px; }
.notes-grid h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; font-size: 14.5px; }
.notes-grid h3 .maker-bar { height: 16px; }
.notes-grid li { margin-top: 4px; }
.notions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 24px; margin: 24px 0 20px; }
.notions h2 { font-size: 16px; }
.notions p { font-size: 13.5px; margin-top: 2px; }
.data-sov { min-width: 860px; }
.data-sov td small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.sov { font-weight: 600; font-size: 13px; }
.sov-yes { color: var(--ok); }
.sov-partial { color: var(--tight); }
.sov-no { color: var(--out); }
.sov-unknown { color: var(--ink-2); }

#methodBody h2 { margin-top: 34px; padding-top: 18px; border-top: 3px solid var(--navy); }
#methodBody h3 { margin-top: 18px; }
#methodBody p { margin-top: 8px; max-width: 80ch; }
#methodBody ul { margin-top: 8px; max-width: 84ch; list-style: disc; padding-left: 20px; }
#methodBody li { margin-top: 5px; }
#methodBody .source-list { list-style: none; padding-left: 0; font-size: 14px; line-height: 1.4; }
#methodBody .table-wrap { margin-top: 10px; }
.mention { margin-top: 18px; padding: 12px 16px; border-left: 5px solid var(--gold); background: var(--mist); font-weight: 500; max-width: 84ch; }

.foot { display: flex; gap: 18px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot img { display: block; height: 56px; width: auto; }
.foot p { max-width: 90ch; }

.tip { position: fixed; z-index: 2000; background: var(--navy-deep); color: var(--white); padding: 6px 10px; font-size: 12.5px; line-height: 1.4; pointer-events: none; max-width: 260px; }

#analysisTable { font-size: 13px; }
#analysisTable th, #analysisTable td { padding: 7px 8px; }
#analysisTable thead th { vertical-align: bottom; }
#analysisTable thead th button { white-space: normal; text-align: inherit; }
#analysisTable td:nth-child(8) { min-width: 220px; }

/* Tablette */
@media (max-width: 1370px) {
  .top-nav a { padding: 0 8px; font-size: 13px; }
  .top-nav a.is-on::after { left: 8px; right: 8px; }
  .top-name { margin-right: 6px; font-size: 17px; }
}
@media (max-width: 1130px) {
  :root { --top-h: 104px; }
  .top { flex-wrap: wrap; height: var(--top-h); align-content: flex-start; padding: 6px 12px 0; gap: 2px 10px; }
  .top-logo img { height: 44px; width: auto; }
  .top-nav { width: 100%; margin-left: 0; overflow-x: auto; height: 42px; flex: 0 0 auto; order: 3; }
  .legend { width: 220px; }
}

@media (max-width: 1130px) {
  .cons-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cons-tiles { grid-template-columns: 1fr 1fr; }
  .cons-tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .cons-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --rail-w: 100%; }
  body { font-size: 15px; }
  .view-map { display: block; position: relative; height: calc(100dvh - var(--top-h)); }
  .map-stage { position: absolute; inset: 0; }
  .rail { position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 78%; z-index: 850; border-right: 0; border-top: 2px solid var(--navy); display: flex; flex-direction: column; overflow: hidden; }
  .rail-toggle { display: block; flex: 0 0 auto; width: 100%; height: 44px; background: var(--navy); color: var(--white); border: 0; font-weight: 600; font-size: 14.5px; }
  .rail-body { display: none; overflow-y: auto; }
  .rail.is-open .rail-body { display: block; }
  .rail-id { padding: 12px 14px; }
  .legend { display: none; }
  .map-title { left: 10px; bottom: 106px; max-width: calc(100% - 20px); padding: 6px 8px; background: rgba(255, 255, 255, 0.84); }
  .map-title h1 { font-size: 25px; }
  .map-sub { font-size: 13px; line-height: 1.3; }
  .map-range { font-size: 12px; }
  .map-disclaimer { bottom: 44px; padding: 3px 10px; font-size: 9.5px; line-height: 1.28; }
  .map-notice { left: 10px; right: 10px; top: 74px; max-width: none; }
  .map-recenter { left: 10px; top: 32px; }
  .map-chip { left: 10px; top: 74px; }
  .leaflet-control-zoom { display: none; }
  .leaflet-control-attribution { position: fixed; top: calc(var(--top-h) + 2px); right: 0; bottom: auto; }
  .panel { width: 100%; z-index: 900; }
  .has-panel .leaflet-bottom.leaflet-right { right: 0; }
  .kv { grid-template-columns: 112px 1fr; }
  .page { padding: 24px 16px 40px; }
  .lede { font-size: 15.5px; }
  .f-search { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .hbar { grid-template-columns: 112px 1fr 76px; gap: 8px; font-size: 13px; }
  .two-col { grid-template-columns: 1fr; }
  .cons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cons-card { min-height: 150px; padding: 12px; }
  .cons-card-logo { min-height: 72px; }
  .cons-card-meta { flex-direction: column; gap: 0; font-size: 12.5px; }
  .cons-head { grid-template-columns: 1fr; gap: 12px; }
  .cons-tiles { grid-template-columns: 1fr 1fr; }
  .cons-tile:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cons-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cons-nav { flex-wrap: nowrap; overflow-x: auto; }
  .cons-nav button { flex: 0 0 auto; }
  .cons-dl .kv { grid-template-columns: 1fr; gap: 2px; }
  .tl li { grid-template-columns: 13px 1fr; gap: 2px 12px; }
  .tl-body { grid-column: 2; }
  .sov-pills { grid-template-columns: 1fr 1fr; }
  .sov-pills li + li { border-left: 0; }
  .foot { flex-direction: column; align-items: flex-start; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .top, .rail, .legend, .map-recenter, .foot, .filters, .table-actions, .cons-nav, .cons-back { display: none !important; }
}
