:root{--navy:#1E3A54;--teal:#0A8F93;--turq:#00D3D7;--muted:#5B6B7A;--line:#DDE2E6;--soft:#F4F6F8;--tint:#E6FAFB;--green:#1FC24A;--lime:#CDFF9C;--gtxt:#127A33;--top:64px;--nav:0px}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:Rubik,Arial,sans-serif;color:var(--navy);background:var(--soft);font-size:14px;line-height:1.4;-webkit-font-smoothing:antialiased}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
a{color:var(--teal)}
button,input,select{font-family:inherit;color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}

/* ---------- barre du haut ---------- */
.top{position:fixed;inset:0 0 auto 0;height:var(--top);background:var(--navy);display:flex;align-items:center;gap:14px;padding:0 28px;z-index:1000}
.logo{display:inline-flex;align-items:center;flex:none}
.logo img{display:block;height:26px;width:auto}
.logo svg{stroke:var(--turq);width:22px;height:22px}
.logo b{color:var(--turq);font-weight:500}
.tag{height:24px;padding:0 10px;border-radius:999px;background:var(--green);color:var(--lime);font-size:12px;font-weight:500;display:inline-flex;align-items:center}
.tabs{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.08)}
.tabs a{height:40px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:14px;font-weight:500;color:#C9D6E0}
.tabs a svg{width:18px;height:18px}
.tabs a[aria-current=page]{background:#fff;color:var(--navy)}
.tabs a[aria-current=page] svg{stroke:var(--teal)}
.carchip{margin-left:auto;height:40px;padding:0 12px 0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:none;color:#fff;font-size:14px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;max-width:260px}
.carchip svg{width:18px;height:18px;stroke:var(--turq)}
.carchip .chev{width:16px;height:16px;stroke:#fff}
.carchip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

main{position:fixed;inset:var(--top) 0 var(--nav) 0;overflow:auto}
.view{min-height:100%}

/* ---------- Coût ---------- */
#v-cout{display:flex;align-items:center;justify-content:center;padding:32px}
.costcard{width:100%;max-width:1040px;display:grid;grid-template-columns:1.1fr 1fr;border-radius:24px;overflow:hidden;background:#fff}
.ctrl{padding:36px;display:flex;flex-direction:column;gap:26px}
fieldset{border:0;padding:0;margin:0}
legend,.field label,.lab span{font-size:13px;color:var(--muted);padding:0}
legend{margin-bottom:10px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tiles button{min-height:76px;border-radius:14px;border:1px solid var(--line);background:#fff;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;color:var(--navy)}
.tiles button svg{width:22px;height:22px;stroke:var(--muted)}
.tiles button[aria-pressed=true]{border:2px solid var(--teal);background:var(--tint)}
.tiles button[aria-pressed=true] svg{stroke:var(--teal)}
.field{display:flex;flex-direction:column;gap:8px}
.lab{display:flex;justify-content:space-between;align-items:baseline}
.lab b{font-size:16px;font-weight:500}
.sel{position:relative}
.sel::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);pointer-events:none}
select{width:100%;height:48px;padding:0 40px 0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:15px;appearance:none;-webkit-appearance:none}
input[type=range]{width:100%;margin:0;accent-color:var(--teal);height:24px}
.dual{position:relative;height:24px}
.dual .track{position:absolute;left:0;right:0;top:10px;height:4px;border-radius:4px;background:var(--line)}
.dual .track span{position:absolute;top:0;height:4px;border-radius:4px;background:var(--teal)}
.dual input{position:absolute;inset:0;pointer-events:none;-webkit-appearance:none;appearance:none;background:none}
.dual input::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid var(--teal);cursor:pointer}
.dual input::-moz-range-thumb{pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid var(--teal);cursor:pointer}
.dual input::-webkit-slider-runnable-track{background:none}
.res{background:var(--navy);color:#fff;padding:36px;display:flex;flex-direction:column;gap:24px}
.res .k{display:block;font-size:13px;color:#C9D6E0}
.res .big{display:block;font-size:64px;font-weight:500;line-height:1.05;margin-top:4px}
.res .sub{display:inline-flex;align-items:center;gap:6px;font-size:15px;color:#C9D6E0;margin-top:8px}
.res hr{border:0;height:1px;background:rgba(255,255,255,.14);margin:0}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid3 b{display:block;font-size:20px;font-weight:500;margin-top:2px}
.lime{color:var(--lime)}
.note{margin:0;font-size:12px;color:#9FB2C2}
.btn{min-height:50px;padding:0 22px;border-radius:999px;font-size:15px;font-weight:500;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:auto}
.btn.green{background:var(--green);color:var(--lime)}
.btn svg{width:18px;height:18px}

/* ---------- Bornes ---------- */
.mapview{position:relative;height:100%}
#map{position:absolute;inset:0;background:#EEF2F4}
.maplibregl-map{font-family:inherit}
.chips{position:absolute;top:20px;left:420px;right:20px;display:flex;flex-wrap:wrap;gap:8px;z-index:500;pointer-events:none}
.chips button{pointer-events:auto;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:14px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;box-shadow:0 2px 8px rgba(14,27,34,.08)}
.chips button[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.dot.navy{background:var(--navy)}.dot.teal{background:var(--teal)}.dot.green{background:var(--green)}
.chips button[aria-pressed=true] .dot.navy{background:#fff}
.panel{position:absolute;top:20px;left:20px;bottom:20px;width:380px;z-index:600;display:flex;flex-direction:column;gap:10px}
.grab{display:none}
.search{position:relative;display:flex;align-items:center}
.search>svg{position:absolute;left:14px;stroke:var(--muted);width:18px;height:18px}
.search input{width:100%;height:48px;padding:0 54px 0 42px;border:0;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(14,27,34,.10);font-size:15px;outline-color:var(--teal)}
.search.in input{box-shadow:none;border:1px solid var(--line);padding-right:14px}
#locate{position:absolute;right:4px;width:44px;height:44px;border:0;background:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#2F6FED}
.count{font-size:12px;color:var(--muted);padding:2px 4px;background:rgba(244,246,248,.92);border-radius:8px;align-self:flex-start}
.list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:2px}
.row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);cursor:pointer;text-align:left;width:100%;font-size:14px}
.row .t{flex:1;min-width:0;display:flex;flex-direction:column}
.row .t b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .t small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .r{display:flex;flex-direction:column;align-items:flex-end;flex:none}
.row .r b{font-weight:500}
.row .r small{font-size:12px;color:var(--teal)}
.row.sel{border:2px solid var(--teal);flex-wrap:wrap}
.row .more{display:none;width:100%;gap:8px;flex-wrap:wrap}
.row.sel .more{display:flex}
.row .more span{padding:4px 8px;border-radius:8px;background:var(--soft);font-size:12px}
.row .more span.time{background:var(--tint);color:var(--teal)}
.row .more span.off{background:#FDECEC;color:#B42318}
.row .go{width:100%;height:40px;border-radius:999px;background:var(--navy);color:#fff;font-size:14px;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:6px;margin-top:2px}
.row .go svg{width:16px;height:16px}
.miss{font-size:12px;padding:4px 6px;background:rgba(244,246,248,.92);border-radius:8px;align-self:flex-start}
.pin{width:28px;height:28px;padding:0;cursor:pointer;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 6px rgba(14,27,34,.3);display:flex;align-items:center;justify-content:center}
.pin svg{width:14px;height:14px;stroke:#fff;fill:#fff;stroke-width:1}
.pin.dc{background:var(--navy)}.pin.ac{background:var(--teal)}
.pin.on{width:36px;height:36px;z-index:2}
.me{width:18px;height:18px;border-radius:50%;background:#2F6FED;border:3px solid #fff;box-shadow:0 0 0 8px rgba(47,111,237,.15)}

/* ---------- Partage ---------- */
#v-partage{display:flex;align-items:center;justify-content:center;padding:32px}
.soon{max-width:420px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.soonic{width:64px;height:64px;border-radius:18px;background:var(--lime);display:flex;align-items:center;justify-content:center}
.soonic svg{width:30px;height:30px;stroke:var(--gtxt)}
.soon h1{margin:6px 0 0;font-size:24px;font-weight:500}
.soon p{margin:0;font-size:15px;color:var(--muted)}
.pill{margin-top:8px;height:32px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px;display:inline-flex;align-items:center}

/* ---------- Choix voiture ---------- */
dialog{border:0;border-radius:20px;padding:0;width:min(480px,94vw);max-height:80vh;color:var(--navy);display:none;flex-direction:column}
dialog[open]{display:flex}
dialog::backdrop{background:rgba(14,27,34,.55)}
.dlghead{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px 22px}
.dlghead h2{margin:0;font-size:18px;font-weight:500}
.x{width:44px;height:44px;border:0;background:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
dialog .search{margin:0 18px 10px}
.cars{list-style:none;margin:0;padding:0 10px 14px;overflow:auto}
.cars button{width:100%;min-height:56px;padding:8px 12px;border:0;background:none;border-radius:12px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;font-size:15px}
.cars button:hover,.cars button[aria-current=true]{background:var(--tint)}
.cars img{width:64px;height:40px;object-fit:cover;border-radius:8px;background:var(--soft);flex:none}
.cars small{display:block;font-size:12px;color:var(--muted)}

/* ---------- Mobile ---------- */
@media (max-width:820px){
	:root{--top:56px;--nav:64px}
	.top{padding:0 12px 0 16px;gap:10px}
	.tag{display:none}
	.logo img{height:22px}
	.tabs{position:fixed;left:0;right:0;bottom:0;top:auto;transform:none;height:var(--nav);border-radius:0;background:#fff;border-top:1px solid #EEF1F3;padding:0 0 env(safe-area-inset-bottom);gap:0}
	.tabs a{flex:1;height:100%;flex-direction:column;justify-content:center;gap:3px;font-size:12px;color:var(--muted);border-radius:0;padding:0}
	.tabs a svg{width:22px;height:22px}
	.tabs a[aria-current=page]{background:none;color:var(--teal)}
	.carchip{height:36px;font-size:13px;max-width:170px}
	#v-cout{padding:0;align-items:stretch}
	.costcard{display:flex;flex-direction:column-reverse;border-radius:0;background:var(--soft)}
	.res{border-radius:0 0 24px 24px;padding:16px 20px 22px;gap:14px}
	.res .big{font-size:44px}
	.res .btn{display:none}
	.res .note{display:none}
	.grid3 b{font-size:16px}
	.ctrl{padding:20px;gap:20px;background:var(--soft)}
	.chips{top:72px;left:12px;right:12px;flex-wrap:nowrap;overflow-x:auto}
	.chips button{flex:none}
	.panel{top:auto;left:0;right:0;bottom:0;width:auto;height:44%;background:var(--soft);border-radius:22px 22px 0 0;box-shadow:0 -4px 16px rgba(14,27,34,.10);padding:8px 12px 10px;gap:8px}
	.grab{display:block;align-self:center;width:40px;height:4px;border-radius:4px;background:#C5CDD4}
	.panel .search{position:fixed;top:calc(var(--top) + 12px);left:12px;right:12px}
	.count,.miss{background:none}
	.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{display:none}
	.maplibregl-ctrl-bottom-right{bottom:44%}
}
