:root {
  --accent: #166534; --accent-2: #15803d; --accent-soft: #dcfce7; --on-accent: #fff;
  --bg: #f4f5f1; --surface: #ffffff; --surface-2: #f1f3ee; --line: #e3e6df;
  --text: #1c2420; --muted: #66706a; --shadow: 0 6px 24px rgba(20, 30, 25, .16);
  --danger: #b91c1c; --warn: #b45309; --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #4ade80; --accent-2: #22c55e; --accent-soft: #14321f; --on-accent: #06200f;
  --bg: #0e1311; --surface: #171e1b; --surface-2: #1f2824; --line: #2b3631;
  --text: #e5ebe7; --muted: #94a19a; --shadow: 0 6px 24px rgba(0, 0, 0, .5);
  --danger: #f87171; --warn: #fbbf24;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
svg:not(.leaflet-zoom-animated) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
a { color: var(--accent-2); }
:root[data-theme="dark"] a { color: var(--accent); }

#map { position: absolute; inset: 0; background: var(--bg); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75) !important; }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(20,25,22,.75) !important; color: #aab; }
.leaflet-bottom.leaflet-left .leaflet-control-scale { margin-bottom: calc(14px + var(--safe-bottom)); }

/* ---------- barre du haut */
#topbar { position: absolute; z-index: 1000; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-top)) 12px 0; pointer-events: none; }
#topbar > * { pointer-events: auto; }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 28px; padding: 6px 6px 6px 10px; box-shadow: var(--shadow); }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; background: #e8eef2; padding: 2px; }
#search { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; min-width: 0; padding: 8px 2px; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; flex: none; }
.icon-btn:active { background: var(--surface-2); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
#search-results { margin-top: 8px; max-height: 55vh; overflow: auto; padding: 6px; }
.result { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 12px; }
.result:active { background: var(--surface-2); }
.result small { display: block; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px;
  padding: 5px 11px 5px 6px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; }
.chip .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.chip .dot svg { width: 14px; height: 14px; stroke: none; }
.chip.off { color: var(--muted); }
.chip.off .dot { filter: grayscale(1); opacity: .45; }
.chip b { font-weight: 600; color: var(--muted); font-size: 12px; }

/* ---------- marqueurs */
.va-pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.va-pin svg { width: 19px; height: 19px; stroke: none; }
.va-pin.sel { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(22,101,52,.45), 0 2px 6px rgba(0,0,0,.35); }
.va-park { width: 24px; height: 24px; border-radius: 6px; background: #1d4ed8; color: #fff; font: 700 14px/24px system-ui; text-align: center; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.va-cluster { width: 40px; height: 40px; border-radius: 50%; background: rgba(22,101,52,.22); display: grid; place-items: center; }
.va-cluster div { width: 30px; height: 30px; border-radius: 50%; background: #166534; color: #fff; font: 700 12px/30px system-ui; text-align: center; border: 2px solid #fff; }
.va-cluster.p div { background: #1d4ed8; }
.va-wp { width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 12px/22px system-ui; text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); background: #475569; }
.va-wp.start { background: #16a34a; } .va-wp.end { background: #dc2626; }
.va-me { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.va-cursor { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid #dc2626; }

/* ---------- boutons flottants */
#fabs { position: absolute; z-index: 900; right: 12px; bottom: calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; transition: bottom .25s; }
.fab { height: 50px; min-width: 50px; border: 0; border-radius: 25px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; }
.fab-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 0 18px 0 15px; }
.fab.on { background: var(--accent-soft); color: var(--accent); }
.hint { position: absolute; z-index: 950; left: 50%; transform: translateX(-50%); top: calc(118px + var(--safe-top)); background: #1f2937; color: #fff;
  padding: 8px 14px; border-radius: 20px; font-size: 13px; box-shadow: var(--shadow); white-space: nowrap; }

/* ---------- feuille du bas */
.sheet { position: absolute; z-index: 1100; left: 0; right: 0; bottom: 0; max-height: 78vh; background: var(--surface); border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 30px rgba(0,0,0,.2); padding: 8px 16px calc(16px + var(--safe-bottom)); overflow-y: auto; overscroll-behavior: contain;
  animation: up .22s ease-out; }
.sheet.compact { max-height: 40vh; }
.sheet.half { max-height: 48vh; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.sheet-close { position: absolute; right: 8px; top: 8px; }
@media (min-width: 760px) { .sheet { left: 16px; right: auto; width: 420px; bottom: 16px; border-radius: 22px; max-height: calc(100vh - 140px); } }

.photo { margin: 4px -16px 12px; height: 220px; background: var(--surface-2); position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo .ph-wait, .photo .ph-fail { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.photo .ph-fail { display: none; }
.photo.fail img, .photo.fail .ph-wait { display: none; } .photo.fail .ph-fail { display: grid; }
.photo a { z-index: 2; }
.photo a { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 10px; text-decoration: none; }
.nophoto { margin: 4px 0 12px; height: 70px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 4px; border-radius: 12px; color: #fff; }
.badge .dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; }
.badge svg { width: 13px; height: 13px; stroke: none; }
.tag { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; background: var(--surface-2); color: var(--muted); margin: 2px 4px 2px 0; }
.tag.warn { background: #fef3c7; color: #92400e; }
:root[data-theme="dark"] .tag.warn { background: #3b2a08; color: #fbbf24; }
h3.title { margin: 8px 40px 2px 0; font-size: 20px; line-height: 1.2; }
.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.desc { font-size: 14px; margin: 8px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13.5px; margin: 10px 0; }
.kv span:nth-child(odd) { color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 14px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: transparent; background: var(--surface-2); }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; }
.links { font-size: 12.5px; margin-top: 10px; color: var(--muted); }
.links a { margin-right: 12px; }

/* ---------- itinéraire */
.wps { list-style: none; padding: 0; margin: 8px 0; }
.wps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.wps li .va-wp { flex: none; }
.wps li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wps li .icon-btn { width: 32px; height: 32px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.toggle { border: 1px solid var(--line); border-radius: 18px; padding: 5px 11px; font-size: 12.5px; background: var(--surface); }
.toggle.on { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); font-weight: 600; }
select, input[type=text], input[type=number] { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.kpi { background: var(--surface-2); border-radius: 14px; padding: 9px 10px; }
.kpi b { display: block; font-size: 18px; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: 11.5px; }
.diff { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.diff i { width: 26px; height: 6px; border-radius: 3px; display: inline-block; }
.profile { width: 100%; height: 150px; display: block; touch-action: none; }
.profile text { fill: var(--muted); font-size: 10px; stroke: none; }
.catbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.section { margin-top: 14px; }
.section h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.poi { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.poi .va-pin { width: 26px; height: 26px; flex: none; } .poi .va-pin svg { width: 16px; height: 16px; }
.poi small { color: var(--muted); display: block; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: var(--danger); font-size: 13.5px; margin: 8px 0; }

/* ---------- menu */
.backdrop { position: absolute; inset: 0; z-index: 1900; background: rgba(0,0,0,.4); }
.drawer { position: absolute; z-index: 2000; top: 0; bottom: 0; left: 0; width: min(310px, 84vw); background: var(--surface); transform: translateX(-102%);
  transition: transform .25s ease; padding: calc(18px + var(--safe-top)) 10px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 2px; }
.drawer.open { transform: none; box-shadow: var(--shadow); }
.drawer-head { display: flex; gap: 12px; align-items: center; padding: 6px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-head img { width: 52px; height: 52px; border-radius: 14px; background: #e8eef2; padding: 4px; }
.drawer-head b { font-size: 19px; display: block; }
.drawer-head small { color: var(--muted); font-size: 12.5px; }
.drawer button { display: flex; gap: 14px; align-items: center; border: 0; background: none; padding: 12px 10px; border-radius: 12px; text-align: left; font-size: 15px; }
.drawer button:active { background: var(--surface-2); }
.drawer-foot { margin-top: auto; color: var(--muted); font-size: 12px; padding: 8px 10px; }

/* ---------- pages */
.page { position: absolute; inset: 0; z-index: 2100; background: var(--bg); display: flex; flex-direction: column; animation: up .2s ease-out; }
.page-head { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-top)) 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head h2 { margin: 0; font-size: 18px; }
.page-body { flex: 1; overflow-y: auto; padding: 16px 16px calc(24px + var(--safe-bottom)); }
.page-body h3 { margin: 22px 0 8px; font-size: 15px; }
.page-body h3:first-child { margin-top: 0; }
.page-body p, .page-body li { font-size: 14px; }
.group { background: var(--surface); border-radius: 16px; padding: 4px 14px; margin-bottom: 14px; }
.group > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.group > div:last-child { border-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.field-row label { font-size: 12px; color: var(--muted); }
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 9px; font-size: 13.5px; }
.seg button.on { background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
.saved { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.saved div { flex: 1; min-width: 0; }
.saved small { color: var(--muted); display: block; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.src { background: var(--surface); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 13.5px; }
.src b { display: block; margin-bottom: 2px; }

/* ---------- fenêtre d'avertissement */
.modal-bg { position: absolute; inset: 0; z-index: 3000; background: rgba(8,14,11,.6); display: grid; place-items: center; padding: 18px; }
.modal { background: var(--surface); border-radius: 22px; padding: 22px 20px 18px; max-width: 440px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow); animation: up .25s ease-out; }
.modal-icon { width: 58px; height: 58px; margin: -4px auto 6px; border-radius: 16px; background: #e8eef2; padding: 5px; }
.modal-icon img { width: 100%; }
.modal h3 { text-align: center; margin: 4px 0 12px; font-size: 20px; }
.warn-list { list-style: none; padding: 0; margin: 0 0 12px; }
.warn-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.warn-list li:last-child { border: 0; }
.warn-list li > span:first-child { font-size: 18px; line-height: 1.2; flex: none; width: 24px; text-align: center; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-2); }

/* ---------- fonds de carte */
.bases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 12px; }
.base { border: 2px solid transparent; border-radius: 14px; padding: 0 0 6px; background: var(--surface-2); text-align: center; font-size: 12.5px; overflow: hidden; }
.base.on { border-color: var(--accent-2); font-weight: 600; }
.base div { height: 62px; background: center/cover; margin-bottom: 5px; }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.switch:last-child { border: 0; }
.switch small { display: block; color: var(--muted); font-size: 12px; }
.sw { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; border: 0; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw.on { background: var(--accent-2); } .sw.on::after { left: 21px; }

.toast { position: absolute; z-index: 4000; left: 50%; bottom: calc(90px + var(--safe-bottom)); transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 16px;
  border-radius: 14px; font-size: 13.5px; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }

/* ---------- v1.1 */
.btn-on { background: var(--accent-soft) !important; color: var(--accent) !important; border-color: var(--accent-2) !important; }
.exp { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.exp > span { flex: 1; font-size: 13.5px; font-weight: 600; min-width: 0; }
.exp > span small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.exp .btn { padding: 8px 11px; }
.pace { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; }
.pace small { display: block; color: var(--muted); font-size: 12px; }
.pace.on { border-color: var(--accent-2); background: var(--accent-soft); }
.prof { padding: 8px 0; border-bottom: 1px solid var(--line); }
.prof:last-child { border: 0; }
.va-commune span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 600 12px/1 system-ui, sans-serif; color: #3b2f63; letter-spacing: .02em;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 6px #fff; }
.va-commune.big span { font-size: 13.5px; }
:root[data-theme="dark"] .va-commune span { color: #e9e4ff; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 5px #000; }

/* ---------- v1.2 recherche */
.res-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px 2px; }
.res-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; font-size: 17px; background: var(--surface-2); border-radius: 50%; }
.va-place { width: 28px; height: 38px; background: #dc2626; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(5px, -5px);
  box-shadow: 0 3px 8px rgba(0,0,0,.35); width: 26px; height: 26px; margin: 2px 0 0 1px; }

/* ---------- v1.4 saints */
.chip-saint { background: #f3e8ff; border-color: #c4b5fd; font-weight: 600; }
.chip-saint .x { margin-left: 6px; color: #7c3aed; }
:root[data-theme="dark"] .chip-saint { background: #2e1f4d; border-color: #5b3fa0; }
.feast { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 8px 12px; margin-top: 2px;
  background: #f3e8ff; color: #3b0764; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 13px; }
.feast > span:first-child { font-size: 18px; } .feast small { display: block; opacity: .75; font-size: 11.5px; }
.feast > span:nth-child(2) { flex: 1; } .feast i { font-style: normal; padding: 4px 6px; opacity: .6; }
:root[data-theme="dark"] .feast { background: #2e1f4d; color: #ede9fe; }
.saint-tag { display: inline-flex; flex-direction: column; align-items: flex-start; border: 1px solid #c4b5fd; background: #f5f3ff; color: #4c1d95; border-radius: 12px; padding: 5px 10px; margin: 6px 6px 0 0; font-size: 13px; font-weight: 600; text-align: left; }
.saint-tag small { font-weight: 400; font-size: 11.5px; opacity: .8; }
:root[data-theme="dark"] .saint-tag { background: #2e1f4d; color: #ede9fe; border-color: #5b3fa0; }
.saint-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.group .saint-row:last-child { border-bottom: 0; }
.saint-row .sd { width: 42px; flex: none; text-align: center; color: #7c3aed; font-size: 11px; line-height: 1.1; }
.saint-row .sd b { display: block; font-size: 18px; }
.saint-row .sn { flex: 1; min-width: 0; } .saint-row .sn small { display: block; color: var(--muted); }
.saint-row .sc { color: var(--muted); font-size: 20px; }
.saint-row .va-pin { width: 28px; height: 28px; flex: none; } .saint-row .va-pin svg { width: 17px; height: 17px; }
.today { font-style: normal; color: #7c3aed; font-weight: 700; }
.saint-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.saint-head > span { width: 52px; height: 52px; border-radius: 16px; background: #f3e8ff; color: #7c3aed; display: grid; place-items: center; font-size: 26px; flex: none; }
.saint-head h2 { margin: 0; font-size: 21px; line-height: 1.2; }
:root[data-theme="dark"] .saint-head > span { background: #2e1f4d; }

/* ---------- v1.5 ajouts personnels */
.va-pin.mine { border: 2px dashed #f59e0b; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.35); }
.va-park.mine { background: #0ea5e9; border-style: dashed; border-color: #f59e0b; }
.menu-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.menu-list button { display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 10px 4px; border-radius: 12px; }
.menu-list button:active { background: var(--surface-2); }
.menu-list small { display: block; color: var(--muted); font-size: 12px; }
.only-here, .mine-box { background: #fef3c7; color: #78350f; border-radius: 12px; padding: 8px 12px; font-size: 13px; margin: 6px 0 10px; }
:root[data-theme="dark"] .only-here, :root[data-theme="dark"] .mine-box { background: #3b2a08; color: #fde68a; }
.fl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.fl input, .fl select, .fl textarea { margin-top: 4px; color: var(--text); }
textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; resize: vertical; }

/* ---------- v1.5 partage + retour d'appui */
.share-btn { margin: 10px 0 2px; border-color: #c4b5fd; color: #5b21b6; background: #f5f3ff; }
:root[data-theme="dark"] .share-btn { background: #2e1f4d; color: #ede9fe; border-color: #5b3fa0; }
.tap { animation: tapflash .45s ease-out; }
@keyframes tapflash { 0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, .95); filter: brightness(1.08); } 35% { box-shadow: 0 0 0 5px rgba(250, 204, 21, .85); } 100% { box-shadow: 0 0 0 9px rgba(250, 204, 21, 0); } }
.tap-ripple { position: fixed; z-index: 9999; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none;
  background: rgba(250, 204, 21, .45); border: 2px solid rgba(234, 179, 8, .9); animation: ripple .6s ease-out forwards; }
@keyframes ripple { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- v1.6 parkings payants, feuille réductible, toast avec action */
.va-park.paid { background: #dc2626; }
.va-cluster.pp div { background: #dc2626; }
.sheet.mini { max-height: none; overflow: hidden; padding-top: 6px; padding-bottom: calc(10px + var(--safe-bottom)); }
.sheet.mini .full { display: none; }
.sheet:not(.mini) .mini-sum { display: none; }
.mini-sum { display: flex; align-items: baseline; gap: 14px; font-size: 15px; padding: 2px 44px 2px 2px; }
.mini-sum b { font-size: 18px; } .mini-sum span { color: var(--muted); }
.mini-sum .mini-up { margin-left: auto; font-size: 12.5px; color: var(--accent-2); font-weight: 600; }
.sheet .grab { padding: 0; height: 5px; box-shadow: 0 0 0 14px transparent; touch-action: none; }
.toast.with-action { display: flex; align-items: center; gap: 12px; text-align: left; }
.toast button { border: 0; background: #4ade80; color: #052e16; font-weight: 700; border-radius: 10px; padding: 7px 14px; flex: none; }
.mini-sum, .sheet .grab, .sheet.mini { -webkit-user-select: none; user-select: none; }

/* ---------- v1.6.1 */
.sheet-min { position: absolute; right: 52px; top: 8px; }
.sheet.mini .sheet-min svg { transform: rotate(180deg); }
.sheet.mini .sheet-close, .sheet.mini .sheet-min { top: 4px; }
.toast.with-action { pointer-events: auto; }
.mini-sum { padding-right: 96px; }

/* toast avec action : texte qui passe à la ligne, gros bouton bien visible */
.toast.with-action { flex-direction: column; align-items: stretch; gap: 10px; width: min(92vw, 420px); max-width: 92vw; padding: 14px 16px; }
.toast.with-action span { min-width: 0; }
.toast.with-action small { display: block; opacity: .75; font-size: 12px; overflow-wrap: anywhere; margin-top: 2px; }
.toast.with-action button { width: 100%; padding: 11px 14px; font-size: 15px; }

/* ---------- v1.7 pastilles de regroupement : couleur unie + halo marqué, nombre seul */
.va-cluster { width: 46px; height: 46px; border-radius: 50%; background: rgba(15, 23, 42, .28); display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 2px 10px rgba(0, 0, 0, .35); }
.va-cluster div { width: 32px; height: 32px; border-radius: 50%; background: #0f172a; color: #fff; font: 700 13px/32px system-ui;
  text-align: center; border: 2px solid #fff; }
.va-cluster.mid div { font-size: 12.5px; }
.va-cluster.big div { font-size: 11.5px; }
.brand-logo { background: #fff; padding: 0; }
.drawer-head img, .modal-icon { background: #fff; padding: 0; }

/* ---------- v1.8 liste des points : poignée de glisser-déposer */
.wps li .drag { flex: none; width: 26px; text-align: center; font-size: 20px; line-height: 1; color: var(--muted); cursor: grab; touch-action: none; user-select: none; padding: 6px 0; }
.wp-ghost { opacity: .35; }
.wp-chosen { background: var(--accent-soft); border-radius: 10px; }
.wps li.loop-row { padding-left: 36px; }

/* ---------- v1.8 bandeau d'installation (version web) */
.install { display: flex; align-items: center; gap: 10px; width: 100%; border-radius: 14px; padding: 8px 10px; margin-top: 6px;
  background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.14); font-size: 13px; }
.install img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.install > span { flex: 1; min-width: 0; } .install small { display: block; color: var(--muted); font-size: 11.5px; }
.install .btn { padding: 7px 12px; font-size: 13px; flex: none; }
.install i { font-style: normal; padding: 4px 6px; color: var(--muted); cursor: pointer; }
.inst-steps { padding-left: 22px; margin: 10px 0; } .inst-steps li { margin: 8px 0; font-size: 14.5px; }
.ios-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 5px; font-size: 12px; }
