:root {
  --bg: #f3eadc;
  --bg2: #efe4d2;
  --paper: #fffaf3;
  --ink: #1c1914;
  --muted: #6e6458;
  --line: #e2d4c0;
  --acc: #e25a2d;
  --acc2: #c44822;
  --tea: #2f6b5a;
  --gold: #c89614;
  --solo: #2f6b5a;
  --meet: #8a4b1f;
  --high: #b03a2e;
  --mid: #b07920;
  --low: #2f6b5a;
  --shadow: 0 10px 28px rgba(40, 24, 10, .08);
  --radius: 18px;
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); min-height: 100%; }
body { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
button, input, textarea, select { font: inherit; color: inherit }
button { cursor: pointer }
img { max-width: 100%; display: block }
a { color: var(--acc2); }
#app { max-width: 720px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.logo { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.ttl { flex: 1; min-width: 0; }
.ttl h1 { margin: 0; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1.1; }
.ttl .sub { margin: 2px 0 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { border: 0; background: var(--paper); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow); }
.iconbtn[aria-expanded="true"] { outline: 2px solid var(--acc); }
main { flex: 1; padding: 4px 16px 28px; }
.view { display: none; }
.view.on { display: block; animation: in .25s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.hero { padding: 18px 4px 10px; }
.hero h2 { font-size: 1.85rem; letter-spacing: -.04em; margin: 0 0 8px; line-height: 1.15; }
.hero p { margin: 0; color: var(--muted); line-height: 1.45; }
.zz { display: inline-block; height: 7px; width: 84px; margin: 14px 0 4px; background:
  linear-gradient(135deg, transparent 0 42%, var(--acc) 42% 58%, transparent 58%) 0 0 / 14px 7px,
  linear-gradient(-135deg, transparent 0 42%, var(--gold) 42% 58%, transparent 58%) 7px 0 / 14px 7px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.langs button, .chip, .btn { border: 0; }
.langs button, .chip { background: var(--paper); border-radius: 999px; padding: 7px 12px; font-size: .82rem; font-weight: 650; box-shadow: 0 0 0 1px var(--line) inset; }
.langs button.on, .chip.on { background: var(--ink); color: #fffaf3; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.note, .hint { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.card, .box { background: var(--paper); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.tag.solo { background: #e4f0ea; color: var(--solo); }
.tag.meet { background: #f6e6d4; color: var(--meet); }
.tag.pause { background: #efe6c9; color: #7a5a10; }
.tag.low { color: var(--low); background: #e4f0ea; }
.tag.mid { color: var(--mid); background: #f7edd6; }
.tag.high { color: var(--high); background: #f8e4e0; }
.btn { background: var(--acc); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 750; box-shadow: var(--shadow); }
.btn:disabled { opacity: .55; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.tea { background: var(--tea); }
.btn.full, .rowbtns .btn { width: 100%; }
.rowbtns { display: grid; gap: 8px; margin: 14px 0; }
.rowbtns.two { grid-template-columns: 1fr 1fr; }
.f { display: block; margin: 12px 0; }
.f span { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 6px; }
.f input, .f textarea { width: 100%; border: 0; background: var(--bg); border-radius: 12px; padding: 12px; box-shadow: 0 0 0 1px var(--line) inset; }
.toggles { display: grid; gap: 8px; margin: 14px 0; }
.toggle { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); padding: 12px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line) inset; }
.toggle input { margin-top: 3px; accent-color: var(--acc); }
.toggle b { display: block; font-size: .92rem; }
.toggle small { color: var(--muted); }
.wx { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); padding: 4px 0 2px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 16px; }
.actions .btn:last-child { grid-column: 1 / -1; }
.banner { background: #efe6c9; border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.banner h3 { margin: 0 0 6px; font-size: .98rem; }
.banner p { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
#map { height: 240px; border-radius: 16px; margin: 10px 0 14px; box-shadow: var(--shadow); }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { position: relative; padding: 0 0 18px 28px; }
.stops li:before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 0; width: 2px; background: var(--line); }
.stops li:last-child:before { display: none; }
.dot { position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px #f3eadc; }
.dot.pause { background: var(--gold); }
.time { font-size: .75rem; font-weight: 700; color: var(--muted); }
.preview { width: 100%; border-radius: 16px; max-height: 280px; object-fit: cover; background: #ddd; }
.why { font-size: .88rem; background: #eef4f1; border-radius: 12px; padding: 10px 12px; color: #2a4a40; margin-top: 8px; }
.conf { font-size: .86rem; padding: 8px 10px; border-radius: 10px; margin: 8px 0; }
.conf.low { background: #f8e4e0; }
.conf.mid { background: #f7edd6; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fffaf3; padding: 10px 16px; border-radius: 999px; font-size: .88rem; z-index: 80; max-width: 90%; text-align: center; }
.sheet { position: fixed; inset: 0; background: rgba(28,25,20,.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet .in { background: var(--paper); width: min(720px, 100%); max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 16px 16px 28px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.ml-outils { margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.ml-outils a { font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.ml-outils a:hover { text-decoration: underline; text-underline-offset: 2px; }
.seo-about { margin-top: 28px; color: var(--muted); }
.seo-about h2 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.seo-about p { margin: 6px 0; font-size: .88rem; line-height: 1.45; }
.navmini { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.navmini button { background: none; border: 0; color: var(--acc2); font-weight: 700; font-size: .82rem; padding: 0; }
.offlinebar { background: #efe6c9; color: #5c4a18; text-align: center; font-size: .8rem; font-weight: 700; padding: 6px 10px; }
.leaflet-container { font: inherit; background: #e8dfcf; }
@media (min-width: 720px) {
  #map { height: 320px; }
  .hero h2 { font-size: 2.1rem; }
}
