[hidden]{display:none!important}
:root{
  --red:#6e2830; --red-d:#572a33; --gold:#d8ba79; --gold-d:#c9a45e; --gold-l:#f3e7cc; --ink:#1d2129; --muted:#6b7280; --line:#ebe3d3; --surface:#fff; --soft:#f6f0e3;
  --blue:#1a73e8; --green:#2f8a57; --orange:#d8ba79;
  --glass:rgba(255,255,255,.9);
  --sh:0 8px 24px rgba(17,24,39,.14),0 1px 3px rgba(17,24,39,.1);
  --sh-s:0 2px 8px rgba(17,24,39,.16);
  --r:16px;
  --st:env(safe-area-inset-top,0px); --sb:env(safe-area-inset-bottom,0px);
  --sl:env(safe-area-inset-left,0px); --sr:env(safe-area-inset-right,0px);
  --ui:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;font-family:var(--ui);color:var(--ink);background:#eceae4;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
#map{position:fixed;inset:0;background:#eceae4}
.base-plan .leaflet-tile-pane{filter:saturate(.65) brightness(1.04) contrast(.97)}
.leaflet-container{font-family:var(--ui)}
.leaflet-control-attribution{font-size:10px;background:rgba(255,255,255,.7)!important;border-radius:8px 0 0 0;margin-bottom:var(--sb)!important}
.leaflet-control-scale{margin-bottom:calc(8px + var(--sb))!important;margin-left:calc(12px + var(--sl))!important}
.leaflet-control-scale-line{border-color:var(--ink);background:rgba(255,255,255,.7);border-radius:0 0 4px 4px;font-size:10px}
.glass{background:var(--glass);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px)}

/* ---------- En-tête ---------- */
.top{position:fixed;z-index:800;top:calc(12px + var(--st));left:calc(12px + var(--sl));right:calc(76px + var(--sr));display:flex;flex-direction:column;align-items:flex-start;gap:8px;pointer-events:none}
.brand{display:flex;align-items:center;gap:10px;max-width:100%;padding:8px 14px 8px 8px;border-radius:var(--r);box-shadow:var(--sh);pointer-events:auto;
  background:var(--glass);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px)}
.brand__mark{width:36px;height:36px;border-radius:11px;background:var(--red);display:grid;place-items:center;flex:none;box-shadow:0 3px 8px rgba(110,40,48,.35)}
.brand__mark svg{width:20px;height:20px;fill:#fff}
.brand__txt{min-width:0}
.brand__t{font-weight:700;font-size:15px;line-height:1.2;letter-spacing:-.1px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.brand__s{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.chips{display:flex;gap:6px;max-width:calc(100vw - 100px);overflow-x:auto;padding:2px 2px 6px;pointer-events:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
.chip{--c:var(--red);flex:none;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 10px;border:0;border-radius:999px;cursor:pointer;
  background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--sh-s);font-weight:600;font-size:13px;color:var(--muted);transition:background .15s,color .15s}
.chip__dot{width:12px;height:12px;border-radius:50%;border:2px solid var(--c);background:transparent;transition:background .15s}
.chip[aria-pressed=true]{background:var(--c);color:var(--fg,#fff)}
.chip[aria-pressed=true] .chip__dot{background:var(--fg,#fff);border-color:var(--fg,#fff)}

/* ---------- Contrôles ---------- */
.ctrls{position:fixed;z-index:800;top:calc(12px + var(--st));right:calc(12px + var(--sr));display:flex;flex-direction:column;border-radius:var(--r);overflow:hidden;box-shadow:var(--sh);
  background:var(--glass);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px)}
.ctrl{width:48px;height:48px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;padding:0;position:relative}
.ctrl+.ctrl::before{content:"";position:absolute;top:0;left:10px;right:10px;height:1px;background:var(--line)}
.ctrl svg{width:22px;height:22px;fill:var(--ink)}
.ctrl:hover{background:rgba(0,0,0,.04)}
.ctrl[aria-pressed=true] svg,.ctrl[aria-expanded=true] svg{fill:var(--red)}

.layers{position:fixed;z-index:810;top:calc(12px + var(--st));right:calc(72px + var(--sr));width:min(320px,calc(100vw - 96px));border-radius:var(--r);box-shadow:var(--sh);
  background:var(--surface);padding:12px 6px 8px;max-height:calc(100% - 120px - var(--st) - var(--sb));overflow:auto;animation:pop .16s ease-out}
@keyframes pop{from{opacity:0;transform:scale(.97)}}
.layers__h{font-weight:700;font-size:15px;padding:0 10px 6px}
.lay{border-top:1px solid var(--line);padding:2px 0}
.lay__row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:600;font-size:14px}
.lay__row:hover{background:var(--soft)}
.lay__row.is-sub{padding-left:22px;font-weight:500}
.lay__dot{width:12px;height:12px;border-radius:50%;background:var(--c);flex:none}
.lay__line{width:22px;height:4px;border-radius:2px;background:var(--c);flex:none}
.lay__line[data-style=dotted]{background:radial-gradient(circle,var(--c) 1.8px,transparent 2px) 0 50%/6px 4px repeat-x}
.lay__line[data-style=dashed]{background:linear-gradient(90deg,var(--c) 60%,transparent 60%) 0 0/8px 4px repeat-x}
.lay__name{flex:1;min-width:0;line-height:1.25}
.lay__name small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.lay__labels{border-top:1px solid var(--line);border-radius:0 0 10px 10px}
.layers__note{font-size:12.5px;line-height:1.45;color:var(--muted);margin:6px 10px 2px;padding-top:8px;border-top:1px solid var(--line)}
.layers__note:empty{display:none}
.switch{appearance:none;-webkit-appearance:none;width:40px;height:24px;border-radius:999px;background:#d1d5db;position:relative;flex:none;cursor:pointer;margin:0;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch:checked{background:var(--red)}
.switch:checked::after{transform:translateX(16px)}

/* ---------- Localisation ---------- */
.locate{position:fixed;z-index:800;right:calc(12px + var(--sr));bottom:calc(36px + var(--sb));width:56px;height:56px;border-radius:50%;border:0;
  background:var(--surface);box-shadow:var(--sh);display:grid;place-items:center;cursor:pointer;transition:bottom .25s,background .15s}
.locate svg{width:26px;height:26px;fill:var(--ink)}
.locate[data-state=on] svg{fill:var(--blue)}
.locate[data-state=follow]{background:var(--blue)} .locate[data-state=follow] svg{fill:#fff}
.locate[data-state=wait] svg{animation:spin 1s linear infinite;fill:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}
body.has-sheet .locate{bottom:calc(var(--sheet-h,0px) + 14px)}

/* ---------- Repères ---------- */
.pin-wrap,.lbl-wrap,.dist-wrap,.arrow-wrap{background:none;border:0}
.pin{--c:var(--red);position:absolute;left:-18px;top:-44px;width:36px;height:36px;border-radius:50% 50% 50% 6px;transform:rotate(-45deg);background:var(--c);
  border:2.5px solid #fff;box-shadow:-1px 3px 8px rgba(17,24,39,.35);display:grid;place-items:center;transition:transform .15s;transform-origin:50% 50%}
.pin i{transform:rotate(45deg);display:grid;place-items:center;font-style:normal;color:#fff;font-weight:700;font-size:16px;line-height:1}
.pin svg{width:18px;height:18px;fill:#fff}
.pin.is-round{left:-14px;top:-14px;width:28px;height:28px;border-radius:50%;transform:none;border-width:2px}
.pin.is-round i{transform:none} .pin.is-round svg{width:15px;height:15px}
.is-sel .pin{transform:rotate(-45deg) scale(1.22)}
.is-sel .pin.is-round{transform:scale(1.25)}

.lbl{--c:var(--red);position:absolute;left:0;top:0;transform:translate(-50%,calc(-100% - 50px));background:var(--surface);border-radius:10px;padding:5px 10px 5px 9px;
  box-shadow:var(--sh-s);white-space:nowrap;text-align:left;cursor:pointer;border-left:3px solid var(--c);line-height:1.2}
.lbl.pos-bottom{transform:translate(-50%,8px)}
.lbl.for-round{transform:translate(-50%,calc(-100% - 20px))} .lbl.for-round.pos-bottom{transform:translate(-50%,20px)}
.lbl b{display:block;font-weight:700;font-size:13px;color:var(--ink)}
.lbl small{display:block;font-size:11px;color:var(--muted);font-weight:500;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.z-small .lbl{display:none}
.z-mid .lbl small{display:none}
.z-mid .lbl{padding:3px 8px 3px 7px}
.hide-labels .lbl{display:none}

.dist{--c:var(--ink);position:absolute;left:0;top:0;transform:translate(-50%,-50%);background:var(--surface);border-radius:999px;padding:4px 11px;white-space:nowrap;
  text-align:center;line-height:1.15;box-shadow:var(--sh-s);border:2px solid var(--c)}
.dist b{font-size:13px;font-weight:700;color:var(--c)}
.dist small{display:block;font-size:10px;color:var(--muted);font-weight:500}
.z-small .dist{display:none}
.arrow{--c:var(--red);position:absolute;left:0;top:0;width:16px;height:16px;border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.arrow::after{content:"";position:absolute;left:50%;top:50%;width:0;height:0;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-bottom:6px solid #fff;transform:translate(-50%,-60%)}
.z-small .arrow{display:none}

/* Position */
.me{position:absolute;left:0;top:0;width:22px;height:22px;transform:translate(-50%,-50%)}
.me__dot{position:absolute;inset:0;border-radius:50%;background:var(--blue);border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.me__pulse{position:absolute;inset:-10px;border-radius:50%;background:rgba(26,115,232,.3);animation:pulse 2s ease-out infinite}
.me__head{position:absolute;left:50%;top:50%;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:22px solid rgba(26,115,232,.45);
  transform-origin:50% 100%;margin:-33px 0 0 -10px;display:none}
.me.has-head .me__head{display:block}
@keyframes pulse{from{transform:scale(.5);opacity:1}to{transform:scale(1.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.me__pulse{animation:none;opacity:.35}.locate[data-state=wait] svg,.layers,.sheet{animation:none}}

/* ---------- Fiche ---------- */
.sheet{position:fixed;z-index:900;left:var(--sl);right:var(--sr);bottom:0;background:var(--surface);border-radius:22px 22px 0 0;box-shadow:0 -6px 30px rgba(17,24,39,.18);
  max-height:68vh;overflow:auto;padding-bottom:calc(12px + var(--sb));animation:up .22s cubic-bezier(.2,.8,.2,1)}
.sheet__grip{width:40px;height:5px;border-radius:3px;background:#d1d5db;margin:8px auto 0}
@media (min-width:760px){
  .sheet{left:calc(14px + var(--sl));right:auto;bottom:calc(14px + var(--sb));width:390px;border-radius:20px;box-shadow:var(--sh)}
  .sheet__grip{display:none}
}
@keyframes up{from{transform:translateY(24px);opacity:0}}
.sheet__head{display:flex;align-items:center;gap:12px;padding:12px 14px 4px 16px}
.badge{--c:var(--red);width:44px;height:44px;border-radius:14px;background:var(--c);display:grid;place-items:center;flex:none;color:#fff;font-weight:700;font-size:18px}
.badge svg{width:22px;height:22px;fill:#fff}
.badge.is-line{background:color-mix(in srgb,var(--c) 14%,#fff)}
.badge.is-line span{width:24px;height:6px;border-radius:3px;background:var(--c);transform:rotate(-30deg)}
.sheet__ttl{flex:1;min-width:0}
.sheet__k{font-size:12.5px;font-weight:500;color:var(--muted);line-height:1.3}
.sheet h2{font-weight:700;font-size:20px;line-height:1.2;margin:1px 0 0;letter-spacing:-.2px}
.sheet__x{width:36px;height:36px;border:0;background:var(--soft);border-radius:50%;cursor:pointer;display:grid;place-items:center;flex:none;padding:0}
.sheet__x svg{width:18px;height:18px;fill:var(--muted)}
.sheet__body{padding:8px 16px 6px}
.sheet__body p{margin:0 0 12px;font-size:14px;line-height:1.55;color:#374151}
.sheet__meta{font-size:13px;color:var(--muted)!important;margin:-4px 0 12px!important}
.stats{display:flex;gap:8px;margin:2px 0 12px}
.stats>div{flex:1;background:var(--soft);border-radius:12px;padding:9px 12px}
.stats b{display:block;font-size:20px;font-weight:700;line-height:1.1;letter-spacing:-.3px}
.stats span{font-size:12px;color:var(--muted)}
.acts{display:flex;gap:8px;flex-wrap:wrap}
.btn{flex:1 1 auto;min-height:46px;padding:8px 16px;border:0;border-radius:12px;background:var(--soft);font-weight:600;font-size:14.5px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--ink);transition:background .15s,transform .1s}
.btn:hover{background:#e8e9ec}
.btn svg{width:20px;height:20px;fill:currentColor}
.btn.is-primary{background:var(--red);color:#fff;box-shadow:0 4px 12px rgba(110,40,48,.3)}
.btn.is-primary:hover{background:var(--red-d)}
.btn.is-ghost{flex:0 1 auto;background:transparent;border:1.5px solid var(--line)}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.5;cursor:default}
.warn{background:#f8f0de;border-radius:10px;padding:8px 12px;font-size:13px!important;color:#6b4f1d!important}

.toast{position:fixed;z-index:1000;left:50%;top:calc(120px + var(--st));transform:translateX(-50%);background:rgba(29,33,41,.92);color:#fff;padding:10px 16px;border-radius:12px;
  font-size:13.5px;font-weight:500;max-width:90vw;text-align:center;box-shadow:var(--sh);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* ---------- Administration ---------- */
.adminbar{position:fixed;z-index:950;left:calc(12px + var(--sl));right:calc(80px + var(--sr));bottom:calc(36px + var(--sb));display:flex;gap:4px;overflow-x:auto;
  background:rgba(29,33,41,.94);padding:6px;border-radius:14px;box-shadow:var(--sh);scrollbar-width:none;width:max-content;max-width:calc(100vw - 104px)}
@media (min-width:760px){.adminbar{left:50%;right:auto;transform:translateX(-50%)}}
body.has-sheet .adminbar{display:none}
.adminbar button,.adminbar__file{flex:none;border:0;background:transparent;color:#e5e7eb;font-weight:600;font-size:13px;padding:8px 12px;border-radius:9px;cursor:pointer;white-space:nowrap}
.adminbar button:hover,.adminbar__file:hover{background:rgba(255,255,255,.1)}
.adminbar button.is-on{background:var(--blue);color:#fff}
.adminbar .is-primary{background:var(--red);color:#fff}
.adminbar .is-primary:disabled{background:rgba(255,255,255,.08);color:#9ca3af;cursor:default}
.adminbar__file input{display:none}
body.adding #map{cursor:crosshair}
body.adding .pin-wrap,body.adding .lbl-wrap,body.adding .lbl{pointer-events:none}
.form{display:grid;gap:10px}
.form label,.flabel{display:grid;gap:4px;font-size:12.5px;font-weight:600;color:var(--muted)}
.flabel{margin-bottom:4px}
.form input,.form select,.form textarea{font:inherit;font-size:15px;color:var(--ink);border:1.5px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;width:100%}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(26,115,232,.15)}
.form textarea{min-height:64px;resize:vertical}
.form .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.form .chk{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink);font-weight:500}
.form .chk input{width:20px;height:20px;accent-color:var(--red);flex:none}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatch{width:32px;height:32px;border-radius:50%;background:var(--c);border:3px solid #fff;box-shadow:0 0 0 1.5px var(--line);cursor:pointer;padding:0;position:relative}
.swatch[aria-pressed=true]{box-shadow:0 0 0 2.5px var(--ink)}
.swatch.is-custom{background:conic-gradient(red,orange,yellow,lime,cyan,blue,magenta,red);display:block;overflow:hidden}
.swatch.is-custom input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer;padding:0;border:0}
.catrow{display:grid;grid-template-columns:1fr 44px 32px 34px;gap:6px;align-items:center;margin-bottom:6px}
.catrow input[type=checkbox]{width:20px;height:20px;accent-color:var(--red)}
.catrow input[type=color]{padding:2px;height:38px}
.catrow button{border:0;background:var(--soft);height:34px;border-radius:8px;cursor:pointer}
.hist{list-style:none;padding:0;margin:0;font-size:14px}
.hist li{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.hist button{border:0;background:var(--soft);font-weight:600;padding:6px 12px;border-radius:8px;cursor:pointer}
dialog{border:0;border-radius:20px;box-shadow:var(--sh);padding:22px;width:min(360px,90vw)}
dialog::backdrop{background:rgba(17,24,39,.4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
dialog h2{font-weight:700;margin:0 0 14px;font-size:20px}
dialog label{display:grid;gap:6px;font-weight:600;font-size:13px;color:var(--muted)}
dialog input{font:inherit;font-size:16px;border:1.5px solid var(--line);border-radius:10px;padding:10px}
dialog .row{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
dialog .row button{border:0;background:var(--soft);font-weight:600;padding:10px 16px;border-radius:10px;cursor:pointer}
dialog .row .is-primary{background:var(--red);color:#fff}
.err{color:var(--red-d);font-size:13px;font-weight:500;margin:8px 0 0;min-height:1em}
.leaflet-pm-toolbar{display:none}

/* ---------- 1.2 : infos contextuelles, services, parcours ---------- */
.pin.is-pt{background:#fff;border:2.5px solid var(--c);box-shadow:0 2px 6px rgba(17,24,39,.3);width:30px;height:30px;left:-15px;top:-15px}
.pin.is-pt svg{fill:var(--c)} .pin.is-pt i{color:var(--c)}
.pin em{position:absolute;right:-8px;top:-7px;min-width:17px;height:17px;border-radius:9px;background:var(--ink);color:#fff;font:700 10px/17px var(--ui);text-align:center;padding:0 3px;border:1.5px solid #fff}
.z-tiny .pin.is-pt{width:20px;height:20px;left:-10px;top:-10px;border-width:2px} .z-tiny .pin.is-pt svg{width:11px;height:11px} .z-tiny .pin em{display:none}
.km{--c:var(--red);position:absolute;left:0;top:0;transform:translate(-50%,-50%);min-width:22px;height:22px;border-radius:11px;background:var(--c);color:#fff;border:2px solid #fff;
  font:700 11px/18px var(--ui);text-align:center;padding:0 4px;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.km5{min-width:28px;height:28px;border-radius:14px;font-size:13px;line-height:24px}
.z-tiny .km{display:none}
.z-small .km:not(.km5){display:none}
.z-small .km5{display:block}
.status{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;padding:5px 12px 5px 10px;border-radius:999px;margin:0 0 12px;background:var(--soft);color:var(--muted)}
.status span{width:8px;height:8px;border-radius:50%;background:currentColor}
.status.is-now{background:#e7f6ec;color:#1e7a44}
.status.is-now span{animation:blink 1.6s ease-in-out infinite}
.status.is-next{background:#f6ecd6;color:#6b4f1d}
@keyframes blink{50%{opacity:.3}}
.svcs,.svc-pick{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.svc{--c:var(--ink);display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;padding:4px 10px 4px 6px;border-radius:999px;background:color-mix(in srgb,var(--c) 12%,#fff);color:color-mix(in srgb,var(--c) 75%,#000)}
.svc svg{width:16px;height:16px;fill:var(--c)}
.svc-pick .svc{cursor:pointer;background:var(--soft);color:var(--muted)}
.svc-pick .svc input{position:absolute;opacity:0;width:0;height:0}
.svc-pick .svc:has(input:checked){background:color-mix(in srgb,var(--c) 16%,#fff);color:color-mix(in srgb,var(--c) 75%,#000);box-shadow:inset 0 0 0 1.5px var(--c)}
.svc-pick .svc:focus-within{outline:3px solid var(--blue)}
.slots{background:var(--soft);border-radius:12px;padding:6px 12px 8px;margin:0 0 12px}
.slots__day{font-size:12px;font-weight:600;color:var(--muted);padding:6px 0 2px;text-transform:none}
.slots__day::first-letter{text-transform:uppercase}
.slot{display:flex;gap:12px;padding:5px 0;font-size:14px;line-height:1.35;border-top:1px solid rgba(0,0,0,.05)}
.slots__day+.slot{border-top:0}
.slot__t{flex:none;min-width:92px;font-weight:700;font-variant-numeric:tabular-nums}
.slot.is-past{color:#9ca3af} .slot.is-past .slot__t{font-weight:600}
.slot.is-now .slot__t{color:#1e7a44}
.more{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--red);text-decoration:none;margin:0 0 12px}
.more svg{width:16px;height:16px;fill:currentColor}
.sheet__body p{margin:0 0 10px}
.slotrow{display:grid;grid-template-columns:1.3fr 1fr 1fr 34px;gap:6px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.slotrow input{padding:6px!important;font-size:14px!important}
.slotrow .slotrow__l{grid-column:1/-1}
.slotrow button{border:0;background:var(--soft);border-radius:8px;cursor:pointer;display:grid;place-items:center}
.slotrow button svg{width:14px;height:14px;fill:var(--muted)}
.sheet-tall .locate{opacity:0;pointer-events:none}
.form .svc{display:inline-flex;gap:6px;font-size:12.5px}
.slotrow{grid-template-columns:1fr 1fr 34px}
.slotrow input{min-width:0;width:100%}
.slotrow [data-k=day]{grid-column:1/3;grid-row:1}
.slotrow button{grid-column:3;grid-row:1}
.slotrow [data-k=from]{grid-column:1;grid-row:2}
.slotrow [data-k=to]{grid-column:2/4;grid-row:2}
.slotrow .slotrow__l{grid-column:1/-1;grid-row:3}
.form input,.form select,.form textarea{min-width:0}

/* ---------- 1.4 : écran de connexion ---------- */
.auth{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:calc(16px + var(--st)) 16px calc(16px + var(--sb));
  background:rgba(236,234,228,.55);-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);animation:fade .2s ease-out}
@keyframes fade{from{opacity:0}}
.auth__card{width:min(380px,100%);background:var(--surface);border-radius:24px;box-shadow:0 20px 60px rgba(17,24,39,.25);padding:28px 24px 18px;display:grid;gap:12px}
.auth__mark{width:52px;height:52px;border-radius:16px;background:var(--red);display:grid;place-items:center;box-shadow:0 6px 16px rgba(110,40,48,.35);margin-bottom:4px}
.auth__mark svg{width:26px;height:26px;fill:#fff}
.auth h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.3px}
.auth__sub{margin:-6px 0 4px;color:var(--muted);font-size:14px;line-height:1.5}
.auth__f{display:grid;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
.pw{position:relative;display:block}
.pw input{width:100%;font:inherit;font-size:16px;color:var(--ink);border:1.5px solid var(--line);border-radius:12px;padding:12px 48px 12px 14px;background:#fff}
.pw input:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 4px rgba(26,115,232,.15)}
.pw__eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;background:transparent;border-radius:10px;cursor:pointer;display:grid;place-items:center}
.pw__eye svg{width:20px;height:20px;fill:var(--muted)}
.pw__eye[aria-pressed=true] svg{fill:var(--blue)}
.auth__hint{margin:-4px 0 0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.auth__rm{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer}
.auth__rm input{width:20px;height:20px;accent-color:var(--red);margin:0}
.auth .err{margin:0;min-height:0}
.auth .err:empty{display:none}
.auth__go{width:100%;min-height:50px;font-size:15.5px;position:relative}
.auth__go.is-busy{color:transparent}
.auth__go.is-busy::after{content:"";position:absolute;width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .8s linear infinite}
.auth__back{border:0;background:none;color:var(--muted);font-weight:600;font-size:14px;padding:8px;cursor:pointer}
.shake{animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}
@media (prefers-reduced-motion:reduce){.shake,.auth{animation:none}}
body.has-auth .ctrls,body.has-auth .top,body.has-auth .locate{visibility:hidden}
.sec{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}

/* ---------- Charte 2026 : bordeaux #6e2830 / #572a33, or vieilli #d8ba79 ---------- */
.brand__mark,.auth__mark{background:var(--red)}
.brand__mark svg,.auth__mark svg{fill:#fff}
.brand{border:1px solid rgba(216,186,121,.45)}
.ctrl[aria-pressed=true] svg,.ctrl[aria-expanded=true] svg{fill:var(--red)}
.switch:checked{background:var(--red)}
.btn:hover{background:#efe6d3}
.btn.is-primary{box-shadow:0 4px 12px rgba(110,40,48,.3)}
.more{color:var(--red)}
.lay__row:hover{background:var(--soft)}
.chip{color:#6b5a4a}
.adminbar .is-primary{background:var(--red)}
.toast{background:rgba(87,42,51,.95)}
.auth{background:rgba(243,231,204,.55)}
.slot.is-now .slot__t{color:#1e7a44}
.pin.on-light i{color:#3a1d22} .pin.on-light svg{fill:#3a1d22}
.badge{color:var(--fg,#fff)} .badge svg{fill:var(--fg,#fff)}
/* Points de parcours sur fond clair (or) : pastille pleine, picto bordeaux */
.pin.is-pt.on-light{background:var(--c);border-color:#fff;box-shadow:0 0 0 1.5px #b39653,0 2px 6px rgba(17,24,39,.3)}
.pin.is-pt.on-light svg{fill:#3a1d22} .pin.is-pt.on-light i{color:#3a1d22}
.pin.on-light:not(.is-pt){box-shadow:0 0 0 1.5px #b39653,-1px 3px 8px rgba(17,24,39,.35)}
.dist b{color:var(--fg2,var(--c))}
.km{box-shadow:0 0 0 1px rgba(0,0,0,.12),0 1px 4px rgba(0,0,0,.3)}
.chip[aria-pressed=true]{box-shadow:inset 0 0 0 1px rgba(0,0,0,.08),var(--sh-s)}
.brand{padding:9px 14px}
.auth__head{display:flex;align-items:center;gap:12px}
.auth__head .auth__mark{width:44px;height:44px;border-radius:14px;margin:0;flex:none}
.auth__head .auth__mark svg{width:22px;height:22px}
.auth__head h2{font-size:20px;line-height:1.2}
.auth__sub{margin:0 0 4px}
/* Boutons +/− : seulement avec une souris (sur mobile on pince) */
.ctrl--zoom{display:none}
@media (hover:hover) and (pointer:fine){.ctrl--zoom{display:grid}}

/* ---------- 1.6 : une pastille par service sur le parcours ---------- */
.svcrow{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:flex;padding:2px;border-radius:999px;background:#fff;box-shadow:0 2px 6px rgba(17,24,39,.3);transition:transform .15s}
.sb{--c:var(--red);width:26px;height:26px;border-radius:50%;background:var(--c);display:grid;place-items:center;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.sb+.sb{margin-left:2px}
.sb svg{width:15px;height:15px;fill:var(--fg,#fff)}
.sb.is-legend{width:24px;height:24px;flex:none}
.sb.is-legend svg{width:14px;height:14px}
.is-sel .svcrow{transform:translate(-50%,-50%) scale(1.18)}
.z-tiny .sb{width:18px;height:18px} .z-tiny .sb svg{width:11px;height:11px}
.svc svg{width:16px;height:16px}
