/* Offmapped — direction « Nuit monochrome » ------------------------------------ */
:root {
  --bg: #0A0A0B;
  --bg-2: #141416;
  --bg-glass: rgba(20, 20, 22, .9);
  --line: #2A2A2E;
  --line-2: #3A3A40;
  --fg: #F5F5F5;
  --fg-2: #B4B4BA;
  --muted: #9A9AA2;
  --dim: #6E6E76;
  --accent: #C6F432;
  --accent-ink: #0A0A0B;
  --bad: #FF6B6B;
  --warn: #F2C94C;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); }
body { font: 500 14px/1.45 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.cap { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* Carte ------------------------------------------------------------------------ */
#map { position: fixed; inset: 0; background: #1b1b1d; }
.leaflet-container { font: inherit; background: #1b1b1d; }
.plan-dark { filter: grayscale(1) invert(.92) contrast(.9); }
.leaflet-control-attribution { background: rgba(10,10,11,.7) !important; color: var(--dim) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--bg-glass) !important; color: var(--fg) !important; border-color: var(--line) !important; }
.leaflet-tooltip { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); box-shadow: none; font-weight: 700; }
.leaflet-tooltip-top::before { border-top-color: var(--line); }
.pin-center span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 3px solid var(--bg); box-shadow: 0 0 0 8px rgba(245,245,245,.18); }

/* Boutons génériques -------------------------------------------------------------- */
.obtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); font-weight: 700;
}
.obtn:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.cta { width: 100%; height: 50px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 800; }
.cta:hover { filter: brightness(1.05); }
.cta:disabled { opacity: .35; cursor: default; filter: none; }
.pill {
  height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--dim); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pill.on { border-color: var(--fg); color: var(--fg); }
.pill span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.seg { display: flex; gap: 4px; }
.seg button { flex: 1; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.seg button.on { border-color: var(--fg); color: var(--fg); }
.link { border: 0; padding: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: none; cursor: pointer; }
.link.quiet { color: var(--muted); }

/* Barre du haut ---------------------------------------------------------------- */
.topbar { position: fixed; z-index: 1500; left: 24px; right: 24px; top: 20px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.glass { background: var(--bg-glass); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand { color: var(--fg); text-decoration: none; }
/* Premium */
svg.i.lock { width: 12px; height: 12px; stroke-width: 2.4; }
.pbadge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.locked { position: relative; opacity: .45; cursor: pointer; }
.locked > * { pointer-events: none; }
.radius-btn + .suggest ~ .pop .pill.lock, #radiusChips .pill.lock { color: var(--dim); border-style: dashed; }
#radiusChips .pill.lock::after { content: " ✦"; color: var(--accent); }
.acct-admin { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.small { font-size: 12px; }
.md-card a { color: var(--fg); }
.md-btns a.obtn { text-decoration: none; }
.md-accept { border-color: var(--accent) !important; background: var(--accent); color: var(--accent-ink); }
.verify-note { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 10px; font-size: 13px; color: var(--fg-2); }
.verify-note .link { justify-self: start; }
.acct-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-cta .obtn { text-decoration: none; height: 44px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.search { position: relative; display: flex; align-items: center; gap: 10px; width: 420px; height: 48px; padding: 0 6px 0 16px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; }
.search input::placeholder { color: var(--dim); }
.radius-btn { height: 36px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--accent); font-weight: 800; white-space: nowrap; }
.suggest { position: absolute; left: 0; right: 0; top: 54px; margin: 0; padding: 6px; list-style: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.suggest li small { display: block; color: var(--muted); font-weight: 500; }
.suggest li:hover, .suggest li.on { background: rgba(255,255,255,.06); }
.pop { position: absolute; right: 0; top: 54px; width: 300px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.pop .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop input[type=range] { width: 100%; accent-color: var(--accent); }
.spacer { flex: 1; }
.tbtn { height: 48px; padding: 0 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); white-space: nowrap; }
.tbtn.icon { width: 48px; padding: 0; justify-content: center; }
.tbtn[aria-pressed="true"] { border-color: var(--fg); }
.map-seg { display: flex; gap: 4px; padding: 4px; }
.map-seg button { height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; }
.map-seg button.on { border-color: var(--fg); color: var(--fg); }
.drone-legend { position: fixed; z-index: 1000; right: 24px; top: 80px; width: 260px; padding: 14px; display: grid; gap: 8px; font-size: 13px; }
.drone-legend input { width: 100%; accent-color: var(--accent); }

/* Panneau ----------------------------------------------------------------------- */
.panel {
  position: fixed; z-index: 1001; left: 24px; top: 84px; bottom: 24px; width: 420px;
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.handle { display: none; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ph { padding: 18px 18px 14px; display: grid; gap: 14px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ph h1 small { color: var(--dim); font-size: inherit; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.status { margin: 0 18px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--fg-2); }
.status.err { border-color: var(--bad); color: var(--bad); }
.status.prep { display: grid; gap: 12px; padding: 14px; }
.status.prep p { margin: 0; color: var(--muted); font-size: 13px; }
.prep-head { display: flex; align-items: center; gap: 2px; color: var(--fg); font-size: 15px; }
.prep-row { display: grid; gap: 7px; }
.prep-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.prep-line b { color: var(--fg); font-weight: 800; white-space: nowrap; }
.prep-line span { color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prep-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.prep-bar i { height: 4px; border-radius: 2px; background: var(--line); }
.prep-bar i.done { background: var(--accent); }
.prep-bar i.now { background: linear-gradient(90deg, var(--line) 0 30%, var(--accent) 50%, var(--line) 70%); background-size: 300% 100%; animation: prep 1.4s linear infinite; }
@keyframes prep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.prep-row.err .prep-line span { color: var(--bad); }
.spin { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.pf { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }

/* Carte de résultat (vignette photo) ------------------------------------------------ */
.card { position: relative; flex: none; height: 150px; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--bg-2); outline: 2px solid transparent; outline-offset: -2px; }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover img { transform: scale(1.03); }
.card.sel { outline-color: var(--accent); }
.card.v-no img { filter: grayscale(1) brightness(.6); }
img.broken { visibility: hidden; }  /* pas de texte alternatif affiché si la photo reste indisponible */
.card .ov { position: absolute; inset: auto 0 0 0; padding: 44px 14px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; background: linear-gradient(to top, rgba(10,10,11,.95), rgba(10,10,11,0)); }
.card .ov > div { min-width: 0; }
.card .t { font-weight: 800; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .s { font-size: 13px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .dr { flex: none; font-size: 12px; font-weight: 800; }
.dr-bad { color: var(--bad); } .dr-mid { color: var(--warn); } .dr-ok { color: var(--accent); } .dr-sp { color: #B9A7FF; }
.card .badge { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.safety { margin: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-left: 3px solid var(--warn); border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
/* Préfixés par .card : le .badge générique (section compte, plus bas) ne doit pas les griser. */
.card .badge-yes { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.card .badge-no { background: rgba(10,10,11,.8); color: var(--muted); border: 1px solid var(--line-2); }
.card .qa { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.card:hover .qa, .card:focus-within .qa { opacity: 1; }
@media (hover: none) { .card .qa { opacity: 1; } }
.qbtn { height: 32px; min-width: 32px; padding: 0 9px; display: grid; place-items: center; border: 1px solid rgba(245,245,245,.45); border-radius: 8px; background: rgba(10,10,11,.75); color: var(--fg); font-size: 12px; font-weight: 800; text-decoration: none; }
.qbtn:hover { border-color: var(--fg); }
.qbtn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.qbtn svg { width: 15px; height: 15px; }
.more { flex: none; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); font-weight: 700; }

/* Fiche ------------------------------------------------------------------------- */
.hero { position: relative; flex: none; height: 260px; background: var(--bg-2); }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .fade { position: absolute; inset: auto 0 0 0; height: 150px; background: linear-gradient(to top, var(--bg), rgba(10,10,11,0)); pointer-events: none; }
.hero .tl, .hero .tr { position: absolute; top: 14px; display: flex; gap: 8px; }
.hero .tl { left: 14px; } .hero .tr { right: 14px; }
.hbtn { height: 40px; min-width: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(245,245,245,.4); border-radius: 10px; background: rgba(10,10,11,.6); color: var(--fg); font-size: 13px; font-weight: 800; text-decoration: none; }
.hbtn:hover { border-color: var(--fg); }
.hero .ttl { position: absolute; left: 20px; right: 20px; bottom: 10px; }
.hero h2 { margin: 6px 0 0; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.hero input.name { width: 100%; margin-top: 6px; padding: 0 0 2px; border: 0; border-bottom: 1px dashed var(--line-2); outline: 0; background: transparent; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.body { flex: 1; min-height: 0; overflow: auto; padding: 8px 20px 4px; display: flex; flex-direction: column; gap: 18px; }
.meta { font-size: 14px; color: var(--fg-2); }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.addr-txt { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.addr-txt b { font-weight: 800; font-size: 14px; }
.addr-txt small { color: var(--muted); font-size: 12px; }
.addr .obtn { flex: none; border-color: var(--fg); }
.rv-addr { margin-top: 6px; font-size: 14px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.vseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vseg button { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; }
.vseg button.on { border-color: var(--fg); color: var(--fg); }
.vseg button.on[data-v="yes"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 12px 0; min-width: 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts small { display: block; font-size: 12px; color: var(--muted); }
.facts b { display: block; margin-top: 3px; font-weight: 800; }
.facts p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.note { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.note textarea { resize: vertical; min-height: 64px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); font-size: 14px; outline: 0; }
.note textarea:focus { border-color: var(--line-2); }
.why { display: grid; gap: 8px; font-size: 14px; }
.why a { color: var(--fg); text-decoration: none; font-weight: 800; }
.why a:hover { color: var(--accent); }
.why span { color: var(--muted); }
.tags summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }
.tags table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; }
.tags td { padding: 3px 6px 3px 0; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.tags td:first-child { color: var(--muted); width: 40%; }
.acts { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 20px 20px; }
.acts a, .acts button { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 700; }
.acts a:hover, .acts button:hover { border-color: var(--line-2); }
.danger { color: var(--bad) !important; }

/* Filtres ------------------------------------------------------------------------ */
.fhead { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; }
.fhead h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fbody { flex: 1; min-height: 0; overflow: auto; padding: 0 20px; }
.fsec { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.check { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-weight: 700; font-size: 15px; cursor: pointer; }
.check small { color: var(--dim); font-weight: 600; margin-left: 4px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.types { display: flex; flex-wrap: wrap; gap: 6px; }
.types .pill { height: 30px; padding: 0 12px; font-size: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch b { display: block; font-size: 15px; }
.switch small { color: var(--muted); font-size: 13px; }
.switch input { appearance: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: var(--accent-ink); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.field input { width: 110px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; outline: 0; text-align: right; }
.login { display: flex; gap: 8px; }
.login input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; outline: 0; }
.err { color: var(--bad); font-size: 13px; margin: 0; }
.acct-form { display: grid; gap: 8px; margin-top: 4px; }
.acct-form input[type=email], .acct-form input[type=password] { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; outline: 0; }
.acct-form input:focus { border-color: var(--line-2); }
.acct-submit { border-color: var(--fg); }
.cgu { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-2); }
.cgu input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.cgu a, .legal-links a { color: var(--fg-2); }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-mail { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { flex: none; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); }
.badge.on { border-color: var(--accent); color: var(--accent); }
.premium { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.premium b { color: var(--accent); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; }
.legal-links a { color: var(--dim); }

/* Revue -------------------------------------------------------------------------- */
.review { position: fixed; inset: 0; z-index: 2000; display: flex; background: var(--bg); }
.rv-photo { position: relative; flex: 1; min-width: 0; background: #111; }
.rv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-photo .ring { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; }
.rv-tabs { position: absolute; left: 24px; top: 24px; display: flex; gap: 4px; padding: 4px; }
.rv-tabs button, .rv-tabs a { white-space: nowrap; height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; text-decoration: none; }
.rv-tabs .on { border-color: var(--fg); color: var(--fg); }
.rv-tabs a:hover, .rv-tabs button:hover { color: var(--fg); }
.rv-side { width: 460px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.rv-top { display: flex; align-items: center; gap: 14px; padding: 22px 26px; }
.rv-top b { font-size: 14px; color: var(--muted); white-space: nowrap; }
.bar { flex: 1; height: 3px; background: var(--line); }
.bar i { display: block; height: 3px; background: var(--accent); transition: width .2s; }
.rv-main { flex: 1; min-height: 0; overflow: auto; padding: 8px 26px 0; display: flex; flex-direction: column; gap: 20px; touch-action: pan-y; }
.rv-main h2 { margin: 8px 0 0; font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.rv-main[data-swipe="yes"] { box-shadow: inset 0 0 0 2px var(--accent); }
.rv-main[data-swipe="no"] { box-shadow: inset 0 0 0 2px var(--fg); }
.rv-dec { padding: 22px 26px 26px; display: grid; gap: 14px; }
.rv-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-btns button { height: 62px; border-radius: 12px; font-size: 16px; font-weight: 800; }
.rv-no { border: 1px solid var(--fg); background: transparent; color: var(--fg); }
.rv-yes { border: 0; background: var(--accent); color: var(--accent-ink); }
.rv-current { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.rv-current-yes { background: var(--accent); color: var(--accent-ink); }
.rv-current-no { border: 1px solid var(--line-2); color: var(--muted); }
.rv-btns button.current { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px currentColor; }
.rv-yes.current { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.rv-keys { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.rv-done { flex: 1; display: grid; place-content: center; gap: 14px; text-align: center; padding: 30px; }
.rv-done h2 { margin: 0; font-size: 30px; font-weight: 800; }

/* Snake --------------------------------------------------------------------------- */
.snake { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.sn-card { width: min(440px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 14px; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.sn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sn-prep { display: flex; align-items: center; gap: 2px; font-size: 16px; }
.sn-bars { display: grid; gap: 10px; }
.sn-ready { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--accent); border-radius: 12px; }
.sn-ready span { font-weight: 700; }
.sn-board { position: relative; }
.sn-board canvas { display: block; width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; touch-action: none; }
.sn-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 16px; text-align: center; pointer-events: none; border-radius: 12px; background: rgba(10,10,11,.62); }
.sn-msg b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sn-msg span { color: var(--muted); font-size: 13px; }
.sn-foot { display: flex; justify-content: space-between; font-size: 14px; }
.sn-foot b { font-weight: 800; }
.sn-pad { display: none; grid-template-columns: repeat(3, 56px); gap: 6px; justify-content: center; }
.sn-pad button { height: 48px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); font-size: 16px; }
.sn-pad button:first-child { grid-column: 2; }
.sn-hint { margin: 0; font-size: 12px; text-align: center; }
@media (hover: none) { .sn-pad { display: grid; } .sn-hint { display: none; } }

/* Confirmation ----------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.md-card { width: min(400px, 100%); padding: 22px; display: grid; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.md-card h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.md-card p { margin: 0; color: var(--fg-2); }
.md-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.md-btns .obtn { height: 46px; }
.md-btns .obtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.md-danger { border-color: var(--bad) !important; color: var(--bad); }

.toast { position: fixed; z-index: 3000; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 800; box-shadow: var(--shadow); }
kbd { font: 700 11px "Manrope", sans-serif; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }

@media (max-width: 1100px) and (min-width: 761px) {
  .brand, #droneLayerBtn span { display: none; }
  .search { width: 360px; }
}

/* Mobile --------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .topbar { left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); gap: 8px; }
  .brand, .topbar .spacer, #droneLayerBtn span, .map-seg { display: none; }
  .search { flex: 1; width: auto; }
  .tbtn { width: 48px; padding: 0; justify-content: center; }
  .drone-legend { right: 12px; top: 72px; }
  .panel {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; height: var(--sheet-h, 52dvh);
    border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
    transition: height .25s ease; padding-bottom: env(safe-area-inset-bottom);
  }
  .panel.dragging { transition: none; }
  /* Zone de prise large (le trait seul ne fait que 4 px) : facile à attraper au doigt. */
  .handle { display: grid; place-items: center; min-height: 28px; padding: 10px 0 6px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
  .handle span { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); }
  .ph { padding-top: 4px; }
  .ph h1 { font-size: 22px; }
  .hero { height: 230px; }
  /* Sur mobile, la fiche défile d'un bloc (photo comprise) : le contenu n'est jamais écrasé. */
  #viewDetail { overflow-y: auto; overscroll-behavior: contain; }
  #viewDetail .body { flex: none; overflow: visible; }
  .addr { flex-direction: column; align-items: stretch; }
  .addr .obtn { width: 100%; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review { flex-direction: column; }
  .rv-photo { flex: none; height: 50vh; }
  .rv-tabs { left: 12px; top: calc(64px + env(safe-area-inset-top)); flex-direction: column; }
  .rv-side { width: auto; flex: 1; min-height: 0; border-left: 0; }
  .rv-top { position: fixed; left: 0; right: 0; top: 0; z-index: 1; padding: calc(14px + env(safe-area-inset-top)) 14px 14px; background: linear-gradient(to bottom, rgba(10,10,11,.8), rgba(10,10,11,0)); }
  .rv-top b { color: var(--fg); }
  .rv-main { padding: 18px 20px 0; gap: 12px; }
  .rv-main h2 { font-size: 28px; }
  .rv-main .why, .rv-main .note { display: none; }
  .rv-dec { padding: 12px 20px 22px; }
  .rv-keys span { display: none; }
}
