/* Antennes Relais France */
:root {
  --navy: #0f2742;
  --navy-2: #1c3a5e;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #dfe4ea;
  --bg: #f5f7fa;
  --card: #fff;
  --accent: #FF7900;
  --orange: #FF7900; --sfr: #E2001A; --bouygues: #0A5BD1; --free: #8E3FC0; --autre: #0E9E8B; --other: #8B95A5;
  --g5: #0a7d4f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 4px 16px rgba(16, 32, 56, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: #0b5cad; text-underline-offset: 2px; }
a:hover { color: #083f78; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); margin: .4em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.05rem; margin: 1.3em 0 .5em; }
.h1-sub { display: block; font-size: .5em; font-weight: 500; color: var(--muted); margin-top: .35em; letter-spacing: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; }
.lead { font-size: 1.08rem; max-width: 70ch; }
.note { font-size: .85rem; color: var(--muted); }
.center { text-align: center; }
.center .search { margin: 1em auto; }

/* En-tête */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1001; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 1.08rem; white-space: nowrap; }
.brand b { color: var(--accent); }
.brand:hover { color: #fff; }
.mainnav { display: flex; gap: 16px; margin-left: auto; }
.mainnav a { color: #d6e2f0; text-decoration: none; font-size: .95rem; }
.mainnav a:hover { color: #fff; text-decoration: underline; }
.search { position: relative; display: flex; flex: 1 1 260px; max-width: 420px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px 0 0 8px; background: #fff; color: var(--ink); }
.search button { font: inherit; border: 0; background: var(--accent); color: #fff; padding: 0 14px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600; }
.search button:hover { background: #e56d00; }
.search input:focus-visible, .search button:focus-visible { outline: 3px solid #ffd2a8; outline-offset: 1px; }
.search-xl { max-width: 640px; margin: 1em 0; }
.search-xl input { padding: 14px 16px; font-size: 1.08rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-xl button { padding: 0 22px; font-size: 1.02rem; }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 1500; background: #fff; list-style: none; margin: 4px 0 0; padding: 4px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.18); border: 1px solid var(--line); }
.ac-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.ac-list li.on a, .ac-list a:hover { background: #fff3e8; }
.ac-list small { color: var(--muted); }
.ac-list em { font-style: normal; color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* Fil d'Ariane */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #a0aab6; }
.crumbs a { color: var(--muted); }

main { padding-bottom: 40px; min-height: 60vh; }

/* Accueil */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 22ch; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #0b5cad; font: inherit; cursor: pointer; padding: 4px 0; }
.btn-link:hover { text-decoration: underline; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 22px 0; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--c, var(--navy)); }
.kpi b { display: block; font-size: 1.6rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .92rem; }
.opcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.opcard { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 6px solid var(--c); transition: transform .12s; }
.opcard:hover { transform: translateY(-2px); color: var(--ink); }
.opcard-name { font-weight: 700; color: var(--c); }
.opcard-num { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.opcard-num small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.opcard-sub { font-size: .88rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }

/* Listes */
.list-count { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.list-count li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.list-count li:last-child { border-bottom: 0; }
.list-count li > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-count small { color: var(--muted); }
.cols { columns: 4 220px; column-gap: 24px; padding: 0; list-style: none; margin: 0; }
.cols li { break-inside: avoid; padding: 3px 0; }
.cols .code { display: inline-block; min-width: 2.2em; font-weight: 600; color: var(--navy); }

/* Chips opérateurs */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); margin: 2px 4px 2px 0; white-space: nowrap; }
.chip small { font-weight: 500; opacity: .85; }
.chip-other { --c: var(--other); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: -1px; }
.t-orange { color: #d96400; font-weight: 600; } .t-sfr { color: var(--sfr); font-weight: 600; } .t-bouygues { color: var(--bouygues); font-weight: 600; } .t-free { color: var(--free); font-weight: 600; }
.gen { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #eef1f5; color: #a3adb9; margin-right: 3px; }
.gen.on { background: var(--navy); color: #fff; }
.gen.on.g5G { background: var(--g5); }
.gens { margin: 6px 0 12px; }

/* Tableaux */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data, table.ops-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table th, table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table th:first-child, table td:first-child { text-align: left; }
table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; font-weight: 600; }
table tbody th { font-weight: 500; }
table tbody tr:hover { background: #fafcff; }
table tbody tr:last-child > * { border-bottom: 0; }
td.g5 { color: var(--g5); font-weight: 600; }
tr.zero { color: #9aa4b1; }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th[data-dir="asc"]::after { content: " ▲"; }
table.sortable thead th[data-dir="desc"]::after { content: " ▼"; }
.station table td, .station table th { white-space: normal; text-align: left; }
.station table td:nth-child(3), .station table td:nth-child(4), .station table td:nth-child(5) { white-space: nowrap; }
td.bands { text-align: left !important; font-size: .88rem; }
.filter-line { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.filter-line input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; min-width: 240px; }

/* Cartes */
.mapbox { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 18px 0; }
.map { height: 520px; background: #e8edf2; }
.map-home { height: 560px; }
.map-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.f-op { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.f-op input { accent-color: var(--c); width: 16px; height: 16px; }
.f-op span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.f-gen select { font: inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); }
.map-count { margin-left: auto; color: var(--muted); font-size: .85rem; }
.pop { font: 14px/1.4 var(--font); min-width: 200px; }
.pop-ops { margin: 6px 0; }
.pop-link { font-weight: 600; }
.leaflet-container a.pop-link { color: #0b5cad; }
@media (max-width: 640px) { .map { height: 400px; } .map-home { height: 420px; } }

/* Liste des sites */
.sites { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.site-card a { display: flex; flex-direction: column; gap: 3px; height: 100%; background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.site-card a:hover { border-color: #b9c7d8; }
.site-adr { font-weight: 600; color: var(--navy); }
.site-meta { font-size: .86rem; color: var(--muted); }
.site-ops { margin-top: 4px; }
.site-ops.big .chip { font-size: .9rem; padding: 4px 11px; }

/* Fiche site */
.site-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.site-top .mapbox { margin: 0; position: sticky; top: 76px; }
.site-top .map { height: 460px; }
@media (max-width: 900px) { .site-top { grid-template-columns: 1fr; } .site-top .mapbox { position: static; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.facts > div { background: var(--card); padding: 10px 14px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.ext-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; }
.station { margin: 28px 0; padding: 4px 18px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.station .table-wrap { box-shadow: none; border: 1px solid var(--line); }
.station-head h2 { margin: .7em 0 .1em; color: var(--c); }
.station-head h2 small { color: var(--muted); font-weight: 500; font-size: .7em; }
.station-meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.status.s1 { background: #e3f5ec; color: #0a6b43; }
.status.s2 { background: #fff4d9; color: #8a5a00; }
.status.s3 { background: #edf0f4; color: #4d5968; }
.az { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #c4ccd6; margin-right: 6px; vertical-align: -2px; position: relative; }
.az::after { content: ""; position: absolute; left: 6px; top: 1px; width: 2px; height: 6px; background: var(--c, var(--navy)); transform-origin: 1px 6px; transform: rotate(var(--az)); }

/* Contenus rédactionnels */
.prose { max-width: 820px; }
.prose.small { font-size: .95rem; }
.glossary dt { font-weight: 700; margin-top: 10px; color: var(--navy); }
.glossary dd { margin: 2px 0 0; }
.legend { list-style: none; padding: 0; }
.legend li { margin: 6px 0; }
.chain { counter-reset: c; list-style: none; padding: 0; }
.chain li { background: var(--card); border-left: 4px solid var(--accent); padding: 8px 12px; margin: 6px 0; border-radius: 6px; box-shadow: var(--shadow); }
.prose table.data { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose table.data td, .prose table.data th { white-space: normal; text-align: left; }
.plan { columns: 2 420px; column-gap: 32px; }
.plan section { break-inside: avoid; }
.plan ul { list-style: none; padding: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--c); font-weight: 600; }
.tabs a[aria-current] { background: var(--c); color: #fff; border-color: var(--c); }
.op-title { color: var(--c); }
.results small { color: var(--muted); }

/* Pied de page */
.footer { background: var(--navy); color: #c6d3e2; font-size: .92rem; margin-top: 40px; }
.footer a { color: #fff; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 28px; }
.footer-brand { color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
.footer-brand b { color: var(--accent); }
.footer-title { color: #fff; font-weight: 700; margin: 0 0 6px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-note { font-size: .82rem; color: #93a6bd; padding-top: 14px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; }
@media (max-width: 760px) {
  .footer-in { grid-template-columns: 1fr; gap: 10px; }
  .mainnav { margin-left: 0; order: 3; width: 100%; }
  .topbar { position: static; }
  .search { max-width: none; order: 2; flex-basis: 100%; }
  .site-top .mapbox { top: 0; }
}

/* Cartes : aide molette, infobulles, couverture */
.map { position: relative; }
.map-hint { position: absolute; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; background: rgba(15, 39, 66, .45); color: #fff; font-weight: 600; font-size: 1.05rem; text-align: center; padding: 20px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.map-hint.on { opacity: 1; }
.cov-canvas { pointer-events: none; }
.f-cov { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding-left: 10px; border-left: 1px solid var(--line); }
.f-cov span::before { content: ""; display: inline-block; width: 18px; height: 10px; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(255,121,0,.55), rgba(255,121,0,0)); margin-right: 5px; vertical-align: 0; }
.leaflet-tooltip.site-tip { padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); white-space: normal; width: 260px; }
.pop-link { color: #0b5cad; font-weight: 600; font-size: .85rem; }

/* Encadré derniers sites */
.latest { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--g5); padding: 4px 16px 10px; margin: 18px 0; }
.latest h2 { font-size: 1.1rem; margin: .8em 0 .4em; }
.latest ol { list-style: none; padding: 0; margin: 0; }
.latest li { border-bottom: 1px solid var(--line); }
.latest li:last-child { border-bottom: 0; }
.latest li a { display: grid; grid-template-columns: 9.5em 1fr; gap: 2px 12px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.latest li a:hover .latest-adr { text-decoration: underline; }
.latest time { color: var(--g5); font-weight: 600; font-size: .88rem; grid-row: span 2; }
.latest-adr { font-weight: 600; color: var(--navy); font-size: .95rem; }
.latest-adr small { font-weight: 400; color: var(--muted); }
.latest-more { margin: 6px 0 4px; font-size: .9rem; }
.latest-table td { white-space: normal; text-align: left !important; }
@media (max-width: 520px) { .latest li a { grid-template-columns: 1fr; } .latest time { grid-row: auto; } }
table tbody th[scope="row"] { text-align: left; }
.grid-2 > section > .latest:first-child { margin-top: 2.1em; }

.map-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.map-btn { font: inherit; font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.map-btn:hover { background: #eef3f9; }
.map-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.map-btn-cov::before { content: ""; display: inline-block; width: 16px; height: 9px; border-radius: 0 9px 9px 0; background: linear-gradient(90deg, rgba(255,121,0,.8), rgba(255,121,0,0)); margin-right: 6px; }

/* FAQ */
.faq { max-width: 860px; }
.faq-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px 6px; margin: 10px 0; border-left: 4px solid var(--accent); }
.faq-item h3 { margin: .7em 0 .3em; font-size: 1.02rem; }
.faq-item p { margin: 0 0 .7em; }

/* Mode déplacement */
.drive-start { max-width: 760px; margin: 0 auto; padding: 10px 0 0; }
.drive-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.drive-mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border-radius: 14px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.drive-mode:hover, .drive-mode:focus-visible { background: var(--navy); color: #fff; }
.drive-mode b { font-size: 1.15rem; }
.drive-mode span { font-size: .85rem; opacity: .8; }
.drive-pref select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); margin-left: 6px; }
body.drive-on { overflow: hidden; }
body.drive-on .topbar, body.drive-on .crumbs, body.drive-on .footer { display: none; }
.drive { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; background: #e8edf2; }
.drive[hidden] { display: none; }
.drive-viewport { position: relative; flex: 1; overflow: hidden; touch-action: none; }
.drive-rot { position: absolute; transform-origin: 50% 50%; will-change: transform; }
.drive-map { width: 100%; height: 100%; background: #e8edf2; }
.drive-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 500; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); transition: top .4s; }
.drive-top { position: absolute; top: 10px; left: 10px; right: 64px; z-index: 600; display: flex; gap: 8px; align-items: center; }
.drive-place, .drive-speed { background: rgba(15, 39, 66, .88); color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.drive-place { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.drive-place a { color: #fff; }
.drive-speed:empty { display: none; }
.drive-btns { position: absolute; top: 10px; right: 10px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.drive-btns button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font: 700 1.3rem/1 var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.drive-btns #drive-recenter { width: auto; height: auto; padding: 10px 14px; border-radius: 999px; font-size: .9rem; background: var(--accent); color: #fff; }
.compass { display: block; margin: auto; }
.drive-msg { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 600; background: rgba(0,0,0,.75); color: #fff; padding: 8px 14px; border-radius: 8px; margin: 0; font-size: .9rem; text-align: center; }
.drive-panel { background: #fff; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.15); z-index: 700; }
.drive-near { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.near { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border-top: 4px solid var(--c); background: #f5f7fa; text-decoration: none; color: var(--ink); text-align: center; }
.near b { color: var(--c); font-size: .9rem; }
.near-d { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.near-arrow { display: inline-block; margin-right: 4px; color: var(--c); font-weight: 900; }
.near-g { font-size: .75rem; font-weight: 700; background: var(--navy); color: #fff; border-radius: 4px; padding: 0 6px; }
.near-none span { font-size: .75rem; color: var(--muted); }
.near-mine { background: color-mix(in srgb, var(--c) 14%, #fff); outline: 2px solid var(--c); }
.drive-sum { margin: 8px 2px 0; font-size: .85rem; color: var(--muted); text-align: center; }
@media (min-width: 900px) { .drive { flex-direction: row; } .drive-panel { width: 320px; overflow-y: auto; } .drive-near { grid-template-columns: 1fr 1fr; } }
.btn-link + .btn-link { margin-left: 18px; }
@media (max-width: 760px) {
  .mainnav { overflow-x: auto; white-space: nowrap; gap: 14px; scrollbar-width: none; padding-bottom: 2px; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { flex: 0 0 auto; font-size: .9rem; }
}

/* Vue 3D (MapLibre, chargée à la demande) */
.map-btn-3d::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 7v10l9 5 9-5V7l-9-5Zm0 2.3 6.6 3.7L12 11.7 5.4 8 12 4.3ZM5 9.7l6 3.4v6.6l-6-3.4V9.7Zm8 10v-6.6l6-3.4v6.6l-6 3.4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 7v10l9 5 9-5V7l-9-5Zm0 2.3 6.6 3.7L12 11.7 5.4 8 12 4.3ZM5 9.7l6 3.4v6.6l-6-3.4V9.7Zm8 10v-6.6l6-3.4v6.6l-6 3.4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.map3d { background: #dfe8f1; }
.map3d-note { position: absolute; left: 8px; top: 8px; z-index: 2; max-width: calc(100% - 70px); padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--navy); font-size: .78rem; line-height: 1.35; pointer-events: none; }
.site-tip3d .maplibregl-popup-content { padding: 8px 10px; border-radius: 8px; box-shadow: 0 4px 16px rgba(15, 39, 66, .2); font: inherit; font-size: .88rem; }
.mapbox:fullscreen { border-radius: 0; margin: 0; display: flex; flex-direction: column; }
.mapbox:fullscreen .map3d { flex: 1; height: auto; }
@media (max-width: 640px) { .map3d-note { font-size: .72rem; } }
.map-bar { justify-content: space-between; padding: 7px 12px; }
.map-bar-txt { color: var(--muted); font-size: .85rem; }

/* Choix du fond de carte (plan / photos aériennes) */
.base-switch { display: inline-flex; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(15, 39, 66, .3); background: #fff; }
.base-switch button { font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 10px; border: 0; background: #fff; color: var(--navy); cursor: pointer; }
.base-switch button + button { border-left: 1px solid var(--line); }
.base-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.leaflet-control .base-switch, .base-switch.leaflet-control { margin: 10px 10px 0 0; }
.maplibregl-ctrl-top-right .base-switch { margin: 10px 10px 0 0; float: right; clear: both; pointer-events: auto; }
.map-sat .leaflet-tile-pane { filter: saturate(1.05); }

/* Infobulles de survol cliquables */
.leaflet-tooltip.site-tip, .site-tip3d .maplibregl-popup-content { pointer-events: auto; cursor: pointer; }
.pop a.pop-link { display: inline-block; margin-top: 4px; color: #0b5cad; text-decoration: none; }
.pop a.pop-link:hover { text-decoration: underline; }

/* Photos de rue (Panoramax) */
.pano { margin: 24px 0; }
.pano-frame { position: relative; aspect-ratio: 16 / 9; max-height: 460px; width: 100%; border-radius: var(--radius); overflow: hidden; background: #1c2733; box-shadow: var(--shadow); cursor: grab; touch-action: pan-y; user-select: none; }
.pano-frame.dragging { cursor: grabbing; }
.pano-frame.flat { cursor: default; }
.pano-frame:focus-visible { outline: 3px solid #0b5cad; outline-offset: 2px; }
.pano-img { position: absolute; inset: 0; background-repeat: repeat-x; background-color: #1c2733; transition: opacity .25s; }
.pano-frame.loading .pano-img { opacity: .35; }
.pano-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pano-prev { left: 10px; } .pano-next { right: 10px; }
.pano-hint, .pano-count { position: absolute; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(15,39,66,.72); color: #fff; font-size: .78rem; pointer-events: none; }
.pano-hint { left: 10px; } .pano-count { right: 10px; }
.pano-frame.flat .pano-hint { display: none; }
.pano-cap { margin: 8px 2px 0; }
@media (max-width: 640px) { .pano-frame { aspect-ratio: 4 / 3; } }

/* Frise du déploiement */
.chrono-bar { flex-wrap: nowrap; gap: 10px; }
.chrono-range { flex: 1; min-width: 80px; accent-color: var(--navy); }
.chrono-date { min-width: 88px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.chrono-play { white-space: nowrap; min-width: 96px; }
.chrono-stats { padding: 10px 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.chrono-stats p { margin: 0; }
.chrono-stats .chip { margin-left: 4px; }
.chrono-miles { margin-top: 6px !important; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.chrono-mile { white-space: nowrap; }
.chrono-mile b { color: var(--navy); }
@media (max-width: 640px) { .chrono-bar { flex-wrap: wrap; } .chrono-range { order: 5; flex-basis: 100%; } }

/* « Chez moi » */
.home-box { margin: 18px 0 26px; padding: 16px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.home-box h2 { margin-top: 0; }
.home-form { position: relative; display: flex; gap: 8px; flex-wrap: wrap; max-width: 640px; }
.home-form input { flex: 1; min-width: 220px; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.home-form input:focus { outline: 2px solid #0b5cad; outline-offset: 1px; }
.home-res { margin-top: 12px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.home-head p { margin: 0; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.home-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); border-top: 4px solid var(--c); background: #fff; color: var(--ink); text-decoration: none; }
.home-card:hover { background: color-mix(in srgb, var(--c) 6%, #fff); }
.hc-op { font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #000); }
.hc-dist { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hc-dist small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.hc-arrow { color: var(--c); flex: none; }
.hc-meta { font-size: .85rem; }
.hc-meta .gen { display: inline-block; background: var(--navy); color: #fff; border-radius: 4px; padding: 0 5px; margin-right: 3px; font-size: .75rem; font-weight: 700; }
.los { font-size: .82rem; font-weight: 600; }
.los::before { display: inline-block; width: 1.1em; }
.los-ok { color: #1e7b3a; } .los-ok::before { content: "✓"; }
.los-ko { color: #a05a00; } .los-ko::before { content: "▲"; }
.los-na { color: var(--muted); font-weight: 500; }
.home-pin { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* Tracés décoratifs des cartes : ne captent jamais la souris */
.leaflet-deco-pane, .leaflet-deco-pane * { pointer-events: none !important; }

/* Antennes en projet */
.chip-proj { background: #fff; border-style: dashed; }
.f-proj span::before { background: #fff !important; box-shadow: inset 0 0 0 2px #0f2742; outline: 1px dashed #0f2742; outline-offset: 1px; }
.pop-proj { margin-top: 4px; font-size: .85rem; }
.projects { border-top-color: #0f2742; }
.proj-tag { grid-row: span 2; align-self: start; justify-self: start; font-size: .75rem; font-weight: 700; color: #0f2742; border: 1px dashed #0f2742; border-radius: 999px; padding: 1px 8px; }

/* Bilans mensuels */
.bilan-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; font-weight: 600; }
.bilan-nav a { text-decoration: none; }
.new-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--g5, #1e7b3a); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.bilan-cta a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.bilan-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin: 18px 0; border-left: 4px solid var(--navy); }
.bilan-box p { margin: .3em 0; }

/* Explication des bandes de fréquences (fiche site) */
.band-info { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 3px; max-width: 42ch; line-height: 1.35; white-space: normal; }
table th:has(.band-info) { white-space: normal; min-width: 230px; }

/* Encart à intégrer */
.embed { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin: 22px 0; }
.embed summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.embed textarea { width: 100%; font: .82rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }

table.data.text-table td, table.data.text-table th { white-space: normal; text-align: left; vertical-align: top; }
table.data.text-table td:last-child, table.data.text-table th:last-child { text-align: right; white-space: nowrap; }
table.data.text-table th:first-child { white-space: nowrap; }
