/* Gavo – application client : même charte que l'application chauffeur (blanc, bleu nuit, bleu ciel, Barlow) */
@font-face{font-family:"Barlow";font-weight:500;font-display:swap;src:url(/assets/fonts/barlow-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-weight:600;font-display:swap;src:url(/assets/fonts/barlow-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-weight:700;font-display:swap;src:url(/assets/fonts/barlow-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:700;font-display:swap;src:url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:800;font-display:swap;src:url(/assets/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2")}
:root{
  --sky:#2FAEE0;--sky-deep:#0B7DB5;--marine:#0A2A4A;--ice:#EEF7FC;--white:#FFFFFF;--line:#D3E5F1;--text:#12263F;--muted:#4E6278;--dim:#8DA2B6;
  --ok:#137A4B;--ok-bg:#E4F4EC;--err:#B3261E;--err-bg:#FCEBEA;--warn:#9A5B00;--warn-bg:#FFF4E0;
  --shadow:0 18px 40px -18px rgba(10,42,74,.28);
  --display:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;--body:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --top:calc(env(safe-area-inset-top) + 64px);--tab:calc(env(safe-area-inset-bottom) + 66px);--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
  color-scheme:light;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--ice);color:var(--text);font-family:var(--body);font-size:16px;line-height:1.45}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
a{color:inherit;text-decoration:none}
input,select,textarea{font:inherit;color:var(--text)}
.hidden{display:none!important}
:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
.boot{min-height:100vh;display:grid;place-items:center}

/* ---------- connexion / inscription (comme l'application chauffeur) ---------- */
.screen{min-height:100vh;background:var(--ice)}
.login-in{position:relative;max-width:460px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 36px) 20px calc(env(safe-area-inset-bottom) + 30px);text-align:center}
.langb{position:absolute;right:16px;top:calc(env(safe-area-inset-top) + 16px)}
.brandmark{width:72px;height:72px;margin:0 auto 14px}.brandmark svg{width:100%;height:100%}
h1.wm{letter-spacing:.12em}
h1{font-family:var(--display);font-weight:800;font-size:2.6rem;margin:0;line-height:1;color:var(--marine)}
h1 em{font-style:normal;color:var(--sky-deep)}
.sub{color:var(--muted);margin:6px 0 22px}
.glass{border-radius:18px;background:var(--white);border:1px solid var(--line);border-top:6px solid var(--sky);box-shadow:var(--shadow);padding:6px 18px;text-align:left;margin:0 0 18px}
.auth{padding:16px 18px 6px}
.auth-tabs{margin:0 0 6px}
.ttl{font-family:var(--display);font-weight:800;font-size:1.6rem;color:var(--marine);margin:4px 0 0}
.steps div{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:.98rem}
.steps div:last-child{border:0}
.steps span b{color:var(--marine)}
.steps div>b:first-child{flex:none;width:30px;height:30px;border-radius:50%;background:var(--sky);color:var(--marine);display:flex;align-items:center;justify-content:center;font-size:.95rem}
.pw{position:relative}.pw .field{padding-right:92px}
.eye{position:absolute;right:8px;top:7px;height:36px;padding:0 12px;border-radius:999px;font-size:.82rem;font-weight:700;color:var(--sky-deep);background:var(--ice)}
.err{color:var(--err);min-height:1.2em;font-size:.9rem;margin:0 0 10px}

/* ---------- champs, boutons (pilules du site) ---------- */
.lbl{display:block;font-size:.8rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
.field{width:100%;height:50px;border-radius:12px;border:2px solid var(--line);background:var(--white);padding:0 14px;outline:none}
textarea.field{height:auto;padding:12px 14px;resize:vertical}
.field:focus{border-color:var(--sky)}
.cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:54px;border-radius:999px;background:var(--sky);border:2px solid var(--sky);color:var(--marine);font-weight:700;font-size:1.05rem;transition:background .2s,transform .15s}
.cta:active,.btn:active{transform:translateY(1px)}
.cta.go{background:var(--marine);border-color:var(--marine);color:#fff}
.cta:disabled,.btn[disabled]{opacity:.45;pointer-events:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:46px;padding:0 18px;border-radius:999px;background:var(--white);border:2px solid var(--line);color:var(--marine);font-weight:700;font-size:.95rem}
.btn.sm{height:36px;padding:0 14px;font-size:.86rem}
.btn.pri{background:var(--sky);border-color:var(--sky);color:var(--marine)}
.btn.dark{background:var(--marine);border-color:var(--marine);color:#fff}
.btn.w{display:flex;width:100%;height:54px;font-size:1.05rem;margin-top:8px}
.btn.ghost,.ghost{display:block;width:100%;text-align:center;color:var(--sky-deep);font-weight:700;padding:14px;height:auto;border:0;background:none}
.btn.line{background:var(--white)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.note{color:var(--muted);font-size:.88rem;margin:10px 0 0}
.note b{color:var(--marine)}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
.seg button{height:46px;border-radius:999px;font-weight:700;color:var(--marine);background:var(--white);border:2px solid var(--line);white-space:nowrap}
.seg button.on{background:var(--ice);border-color:var(--sky)}
.chip,.badge{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 11px;border-radius:999px;font-size:.8rem;font-weight:600;background:var(--white);border:1.5px solid var(--line);color:var(--sky-deep);white-space:nowrap}
.chip.imm{background:var(--sky);border-color:var(--sky);color:var(--marine);font-weight:700}
.chip.go{background:var(--ok-bg);border-color:transparent;color:var(--ok)}
.chip.warn{background:var(--warn-bg);border-color:transparent;color:var(--warn)}
.chip.urg{background:var(--err);border-color:var(--err);color:#fff}
.chip.on{background:var(--ice);border-color:var(--sky);color:var(--marine)}

/* ---------- barre du haut et onglets (comme l'application chauffeur) ---------- */
.app{min-height:100vh;padding-bottom:calc(var(--tab) + 10px)}
.top{position:sticky;top:0;z-index:5;height:var(--top);padding:env(safe-area-inset-top) 16px 0;display:flex;align-items:center;gap:12px;background:var(--white);border-bottom:1px solid var(--line)}
.top .brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:800;font-size:1.3rem;color:var(--marine)}
.top .brand img{display:none}
.top .brand::before{content:"";width:34px;height:34px;border-radius:50%;background:conic-gradient(var(--sky) 0 50%,var(--white) 0 100%);box-shadow:inset 0 0 0 4px var(--sky);flex:none}
.nav{position:fixed;z-index:20;left:0;right:0;bottom:0;height:var(--tab);display:grid;grid-template-columns:repeat(3,1fr);padding:6px 8px env(safe-area-inset-bottom);background:var(--white);border-top:1px solid var(--line)}
.nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.74rem;font-weight:700;color:var(--muted)}
.nav button svg{width:22px;height:22px;stroke-width:1.9}
.nav button.on{color:var(--marine)}
.nav button.on::before{content:"";position:absolute;top:-6px;left:28%;right:28%;height:3px;border-radius:0 0 3px 3px;background:var(--sky)}
.nav button.on svg{color:var(--sky-deep)}
.nav .dot{position:absolute;top:4px;right:calc(50% - 20px);width:9px;height:9px;border-radius:50%;background:var(--sky);box-shadow:0 0 0 2px #fff}
.wrap{padding:0 16px;max-width:620px;margin:0 auto}
h2.sec{font-family:var(--display);font-weight:800;font-size:1.7rem;margin:18px 2px 12px;color:var(--marine)}

/* ---------- réserver ---------- */
#map{height:34vh;min-height:200px;max-height:330px;background:#E8EEF3}
.map-ph{height:100%;display:grid;place-items:center;color:var(--dim);font-family:var(--display);font-weight:800;font-size:1.4rem}
.maplibregl-ctrl-attrib{font-size:9px}
.panel{background:var(--white);border:1px solid var(--line);border-top:6px solid var(--sky);border-radius:18px;box-shadow:var(--shadow);padding:14px;margin:-30px 12px 0;position:relative;z-index:2}
.route{position:relative;padding-left:26px;margin:0 0 14px}
.route::before{content:"";position:absolute;left:8px;top:14px;bottom:16px;width:2px;background:var(--line)}
.panel .route{display:block;margin:0}
.panel .route .rail{display:none}
.panel .route::before{top:24px;bottom:24px}
.addr{position:relative}
.addr::before{content:"";position:absolute;left:-24px;top:18px;width:14px;height:14px;border-radius:50%;background:var(--sky);box-shadow:0 0 0 3px rgba(47,174,224,.25)}
.addr+.addr::before{background:var(--marine);box-shadow:0 0 0 3px rgba(10,42,74,.15)}
.addr input{width:100%;height:50px;border-radius:12px;border:2px solid var(--line);background:var(--white);padding:0 40px 0 14px;font-weight:700;outline:none}
.addr input:focus{border-color:var(--sky)}
.addr+.addr{margin-top:8px}
.addr .x{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:1rem;color:var(--muted);padding:6px}
.ac{position:absolute;left:0;right:0;top:calc(100% + 4px);background:var(--white);border-radius:14px;box-shadow:0 14px 34px rgba(10,42,74,.2);z-index:30;max-height:300px;overflow:auto;border:1px solid var(--line)}
.ac button{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;padding:11px 12px;border-bottom:1px solid var(--line)}
.ac button:last-child{border-bottom:0}.ac button:hover,.ac button:focus{background:var(--ice)}
.ac b{display:block;font-size:.95rem;color:var(--marine)}.ac small{color:var(--muted);font-size:.8rem}
.chips{display:flex;gap:7px;overflow-x:auto;padding:12px 0 2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}
.chips .chip{height:34px;font-weight:700;color:var(--marine);flex:none}
.panel .when{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0 0;font:inherit}
.pax{display:flex;align-items:center;justify-content:space-between;height:46px;border-radius:999px;border:2px solid var(--line);padding:0 4px 0 14px;font-weight:700;color:var(--marine)}
.pax button{width:34px;height:34px;border-radius:50%;background:var(--ice);font-size:1.15rem;font-weight:700;color:var(--marine)}
.dt{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:8px}
.dt input{height:46px;border-radius:12px;border:2px solid var(--line);background:var(--white);padding:0 12px;font-weight:700;width:100%;outline:none}
.meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.9rem;margin:16px 2px 0}
.meta span{display:inline-flex;align-items:center;gap:5px}
.vehs{display:grid;gap:10px;margin-top:12px}
.veh{position:relative;display:grid;grid-template-columns:96px 1fr auto;gap:14px;align-items:center;background:var(--white);border:2px solid var(--line);border-radius:18px;padding:10px 14px 10px 10px;text-align:left;width:100%;box-shadow:0 6px 18px -12px rgba(10,42,74,.25);transition:border-color .15s,background .15s}
.veh.on{border-color:var(--sky);background:var(--ice)}
.veh .pic{width:88px;height:52px;border-radius:0;background:transparent;display:grid;place-items:center;overflow:visible;padding:0}
.veh .pic img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.veh.on .pic{background:transparent}
.veh .vt{min-width:0}
.veh .cap{display:flex;gap:10px;margin-top:4px;font-size:.8rem;font-weight:700;color:var(--marine)}
.veh .ok{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;background:var(--sky);color:var(--marine);display:grid;place-items:center;font-weight:800;font-size:.8rem;box-shadow:0 0 0 3px var(--white)}
.veh b{display:block;font-size:1.05rem;color:var(--marine)}.veh small{color:var(--muted);font-size:.84rem}
.veh .p{font-family:var(--display);font-weight:800;font-size:1.9rem;line-height:1;color:var(--marine);text-align:right}
.veh .p small{display:block;font-family:var(--body);font-weight:600;font-size:.72rem}
.opt{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.opt:last-of-type{border-bottom:0}
.opt b{font-size:.95rem;color:var(--marine)}.opt small{display:block;color:var(--muted);font-size:.8rem}
.step{display:flex;align-items:center;gap:8px}
.step button{width:34px;height:34px;border-radius:50%;border:2px solid var(--line);background:var(--white);font-weight:800;color:var(--marine)}
.step b{min-width:16px;text-align:center}
.tog{appearance:none;-webkit-appearance:none;width:48px;height:28px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:.2s;flex:none;margin:0}
.tog::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.tog:checked{background:var(--sky)}.tog:checked::after{left:23px}
.card{border-radius:18px;padding:18px;margin:12px 0 0;background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow)}
.card h3{margin:0 0 4px;font-family:var(--display);font-weight:800;font-size:1.35rem;color:var(--marine)}
.bag{border-radius:16px;padding:14px 16px;margin-top:12px;background:var(--white);border:1px solid var(--line);border-left:4px solid #E89B2B;color:var(--muted);font-size:.9rem}
.bag label{display:flex;gap:10px;align-items:center;margin-top:10px;font-weight:700;color:var(--marine)}
.bag input{width:20px;height:20px;accent-color:var(--sky-deep)}
.cta-bar{position:fixed;left:0;right:0;bottom:var(--tab);z-index:15;padding:10px 16px 8px;background:linear-gradient(180deg,rgba(238,247,252,0),var(--ice) 28%)}
.cta-bar .cta{max-width:588px;margin:0 auto;justify-content:space-between;padding:0 24px}
.cta-bar .cta b{font-family:var(--display);font-weight:800;font-size:1.6rem}
.cta-bar small{display:block;text-align:center;color:var(--muted);font-size:.78rem;margin-top:6px}
.spacer{height:120px}

/* ---------- mes courses (comme les cartes de course du chauffeur) ---------- */
.ride{position:relative;border-radius:18px;padding:18px;margin:0 0 14px;background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow)}
.rtop{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.rmain{display:flex;gap:12px;align-items:flex-start}
.when{font-family:var(--display);font-weight:800;font-size:1.45rem;line-height:1.05;color:var(--marine);margin:0 0 14px}
.when small{display:block;font-family:var(--body);font-weight:500;font-size:.88rem;color:var(--muted);margin-top:4px}
.netbox{margin-left:auto;text-align:right;flex:none}
.netbox small{display:block;font-size:.72rem;font-weight:700;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.netbox b{display:block;font-family:var(--display);font-weight:800;font-size:2.3rem;line-height:1;color:var(--marine)}
.stop{position:relative;padding:2px 0 12px}
.stop:last-child{padding-bottom:0}
.stop::before{content:"";position:absolute;left:-24px;top:6px;width:14px;height:14px;border-radius:50%;background:var(--sky);box-shadow:0 0 0 3px rgba(47,174,224,.25)}
.stop.end::before{background:var(--marine);box-shadow:0 0 0 3px rgba(10,42,74,.15)}
.stop small{display:block;font-size:.74rem;font-weight:700;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.stop b{font-weight:700;font-size:1.08rem;line-height:1.3;color:var(--text)}
.drv{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--ice);border:1px solid var(--line);margin:0 0 4px}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--white);border:2px solid var(--sky);font-family:var(--display);font-weight:800;font-size:1.05rem;color:var(--marine);flex:none;display:grid;place-items:center}
.drv .m{flex:1;min-width:0}.drv .m b{display:block;color:var(--marine)}.drv .m small{display:block;color:var(--muted);font-size:.84rem}
.plate{display:inline-block;border:2px solid var(--marine);border-radius:6px;padding:0 7px;font-weight:700;font-size:.82rem;letter-spacing:.05em;background:var(--white);color:var(--marine);margin-top:4px}
.busy{border-radius:16px;padding:14px 16px;background:var(--white);border:1px solid var(--line);border-left:4px solid var(--sky);margin:0;color:var(--muted);font-size:.9rem}
.busy b{display:block;font-size:1rem;margin-bottom:2px;color:var(--marine)}
.acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.empty{text-align:center;color:var(--muted);padding:26px 10px 10px}
.empty b{display:block;color:var(--marine);font-family:var(--display);font-size:1.4rem;margin:10px 0 4px}

/* ---------- fenêtres (comme l'application chauffeur) ---------- */
.sheet{position:fixed;inset:0;z-index:40;background:rgba(10,42,74,.45);display:flex;align-items:flex-end;animation:fade .2s}
.sheet .in{width:100%;max-width:620px;max-height:94vh;overflow:auto;margin:0 auto;border-radius:22px 22px 0 0;background:var(--ice);padding:20px 16px calc(env(safe-area-inset-bottom) + 18px);animation:up .3s}
.sheet .bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sheet h3{margin:0 0 6px;font-family:var(--display);font-weight:800;font-size:1.5rem;color:var(--marine)}
.sheet .bar h3{margin:0}
.close{width:40px;height:40px;border-radius:50%;background:var(--white);border:1px solid var(--line);font-size:1rem;color:var(--marine)}
#tmap{height:260px;border-radius:18px;overflow:hidden;background:#E8EEF3;margin-bottom:12px;border:1px solid var(--line)}
ul.steps{list-style:none;margin:6px 0 0;padding:0 16px;border-radius:16px;background:var(--white);border:1px solid var(--line)}
ul.steps li{display:grid;grid-template-columns:18px 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);color:var(--dim);font-weight:600;font-size:.94rem}
ul.steps li:last-child{border:0}
ul.steps li i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);background:var(--white);justify-self:center}
ul.steps li.ok{color:var(--marine)}ul.steps li.ok i{background:var(--sky);border-color:var(--sky);box-shadow:0 0 0 3px rgba(47,174,224,.25)}
.eta{font-family:var(--display);font-weight:800;font-size:2.3rem;line-height:1;color:var(--marine)}
.done-ic{width:84px;height:84px;border-radius:50%;background:var(--sky);color:var(--marine);display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:2.6rem;margin:6px auto 12px;box-shadow:0 0 0 10px rgba(47,174,224,.15)}

/* ---------- profil (listes comme l'application chauffeur) ---------- */
.list{border-radius:16px;background:var(--white);border:1px solid var(--line);padding:4px 14px;margin-top:12px}
.list .it{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;font-weight:700;color:var(--marine)}
.list .it:last-child{border:0}
.list .it small{display:block;color:var(--muted);font-weight:500;font-size:.84rem}
.list .it>span:last-child{white-space:nowrap;color:var(--muted);font-weight:600}
.list .it.red{color:var(--err)}
#toast{position:fixed;z-index:60;left:16px;right:16px;top:calc(var(--top) + 10px);max-width:560px;margin:0 auto;padding:14px 16px;border-radius:14px;background:var(--marine);color:#fff;box-shadow:0 14px 34px rgba(10,42,74,.35);font-weight:600;opacity:0;transform:translateY(-8px);transition:.25s;pointer-events:none;text-align:center}
#toast.on{opacity:1;transform:none}

/* ---------- carte ---------- */
.pin{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);background:var(--sky);box-shadow:0 4px 12px rgba(10,42,74,.35);border:2px solid #fff}
.pin.b{background:var(--marine)}
.car{width:34px;height:34px;border-radius:50%;background:var(--white);display:grid;place-items:center;font-size:1.1rem;box-shadow:0 4px 12px rgba(10,42,74,.3);border:2px solid var(--sky)}
@keyframes up{from{transform:translateY(40px);opacity:0}}
@keyframes fade{from{opacity:0}}
@media (min-width:700px){#map{max-width:620px;margin:0 auto;border-radius:0 0 22px 22px}.panel{max-width:596px;margin:-30px auto 0}}
.top .hello{flex:1;min-width:0;line-height:1.15}
.top .hello small{display:block;color:var(--muted);font-size:.82rem}
.top .hello b{font-family:var(--display);font-weight:800;font-size:1.3rem;color:var(--marine)}
.gal{display:grid;grid-auto-flow:column;grid-auto-columns:72%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 2px 6px;scrollbar-width:none}.gal::-webkit-scrollbar{display:none}
.gcard{scroll-snap-align:start;border-radius:18px;background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;padding:0 0 12px}
.gimg{aspect-ratio:16/10;background:linear-gradient(160deg,var(--sky) 0%,var(--sky-deep) 45%,var(--marine) 100%)}.gimg img{width:100%;height:100%;object-fit:cover;display:block}
.gcard b{display:block;font-family:var(--display);font-weight:800;font-size:1.35rem;color:var(--marine);margin:10px 14px 0}.gcard small{display:block;color:var(--muted);margin:0 14px}
.why .it{justify-content:flex-start}.why .wic{width:40px;height:40px;border-radius:50%;background:var(--ice);display:grid;place-items:center;flex:none;font-size:1.1rem}.why .m{flex:1}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:12px}
.days button{height:40px;border-radius:50%;border:2px solid var(--line);background:var(--white);font-weight:800;color:var(--marine);aspect-ratio:1;max-width:44px;justify-self:center;width:100%}
.days button.on{background:var(--sky);border-color:var(--sky)}
.hero{border-radius:18px;padding:20px;margin:12px 0 0;background:var(--white);border:1px solid var(--line);border-top:6px solid var(--sky);box-shadow:var(--shadow)}
.hero>small{color:var(--muted);font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em}
.hero .big{font-family:var(--display);font-weight:800;font-size:3.2rem;line-height:1;margin:6px 0 4px;color:var(--marine)}
.hero>span{color:var(--muted);font-size:.88rem}
.list .it .m{flex:1;min-width:0}.list .it .m small{display:block}

/* ======================================================================
   Nouvelle interface (style « B en clair ») : carte plein écran, « Où allez-vous ? »,
   recherche d'adresse plein écran, choix du véhicule, grand délai d'arrivée, barre d'onglets flottante
   ====================================================================== */
:root{--bg:#F4F8FB;--tab:calc(env(safe-area-inset-bottom) + 86px)}
html,body{background:var(--bg)}
.app{padding-bottom:var(--tab)}
.app.nonav{padding-bottom:0}
.nav{left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 10px);height:66px;padding:0 6px;border-radius:22px;border:1px solid var(--line);box-shadow:0 18px 40px -16px rgba(10,42,74,.35);max-width:520px;margin:0 auto}
.nav button.on::before{display:none}
.nav button.on{color:var(--sky-deep)}
.back{width:44px;height:44px;border-radius:50%;background:var(--white);border:1px solid var(--line);display:grid;place-items:center;color:var(--marine);flex:none}
.back svg{width:22px;height:22px}
.back.fl{position:absolute;left:14px;top:calc(env(safe-area-inset-top) + 12px);z-index:3;box-shadow:0 8px 20px -8px rgba(10,42,74,.45);border:0}
.chg{margin-left:auto;font-size:.85rem;font-weight:700;color:var(--sky-deep);flex:none}
.da,.db{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--sky);flex:none}
.db{border-radius:2px;background:var(--marine)}

/* accueil */
.fullmap,#map.fullmap{position:fixed;inset:0;height:auto;max-height:none;min-height:0;z-index:0;border-radius:0;max-width:none;margin:0}
.hm-top{position:fixed;z-index:3;left:0;right:0;top:0;padding:calc(env(safe-area-inset-top) + 12px) 16px 40px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(var(--bg) 55%,rgba(244,248,251,0));pointer-events:none}
.hm-top>*{pointer-events:auto}
.logo{display:inline-flex;align-items:center;gap:8px;font-family:var(--display);font-weight:800;font-size:1.9rem;letter-spacing:.12em;color:var(--marine)}.logo svg{width:32px;height:32px;flex:none}
.av{width:44px;height:44px;border-radius:50%;background:var(--white);border:2px solid var(--sky);font-weight:800;color:var(--marine);box-shadow:0 6px 16px -6px rgba(10,42,74,.35)}
.hm-hi{position:fixed;z-index:3;left:16px;right:16px;top:calc(env(safe-area-inset-top) + 68px);margin:0;font-family:var(--display);font-weight:800;font-size:2.35rem;line-height:1.02;color:var(--marine);text-wrap:balance;text-shadow:0 0 18px rgba(244,248,251,.9),0 0 4px rgba(244,248,251,.9);pointer-events:none}
.hm-card{position:fixed;z-index:4;left:12px;right:12px;bottom:calc(var(--tab) + 6px);max-width:520px;margin:0 auto;max-height:calc(100vh - var(--tab) - 200px);overflow:auto;background:var(--white);border-radius:26px;padding:14px;display:flex;flex-direction:column;gap:12px;box-shadow:0 24px 50px -20px rgba(10,42,74,.45)}
.where{display:flex;align-items:center;gap:12px;height:58px;padding:0 18px;border-radius:18px;background:#EEF3F7;font-size:1.15rem;font-weight:700;color:var(--marine);width:100%;text-align:left}
.where svg{width:22px;height:22px;flex:none}
.from{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:0 6px}
.from .m{min-width:0;flex:1}.from small{display:block;font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.from b{display:block;font-size:.98rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.places{display:flex;flex-direction:column}
.prow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 4px;border-bottom:1px solid #E7EEF3}
.prow:last-child{border-bottom:0}
.prow .pic{width:40px;height:40px;border-radius:12px;background:#EEF3F7;display:grid;place-items:center;color:var(--marine);flex:none}
.prow .pic.sky{background:var(--sky);color:var(--white)}
.prow .pic svg{width:19px;height:19px}
.prow .m{min-width:0}.prow b{display:block;font-size:1rem;color:var(--marine)}
.prow small{display:block;font-size:.84rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seg2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg2 button{height:48px;border-radius:14px;border:1.5px solid var(--line);background:var(--white);font-weight:700;color:var(--marine)}
.seg2 button.on{background:var(--marine);border-color:var(--marine);color:var(--white)}

/* recherche */
.srch{min-height:100vh;background:var(--white);padding:0 16px calc(env(safe-area-inset-bottom) + 20px)}
.srch-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 10px) 0 12px;background:var(--white)}
.srch-top b{font-family:var(--display);font-weight:800;font-size:1.5rem;color:var(--marine)}
.route2{position:relative;padding-left:26px;margin-bottom:10px}
.route2::before{content:"";position:absolute;left:8px;top:24px;bottom:24px;width:2px;background:var(--line)}
.srch .places{margin-top:6px}

/* choix du véhicule */
.ch-map{position:relative}
.ch-map #map{height:36vh;min-height:220px;max-height:340px;border-radius:0;max-width:none;margin:0}
.ch-sheet{position:relative;z-index:2;margin-top:-26px;background:var(--bg);border-radius:26px 26px 0 0;padding:16px 16px 0;max-width:620px;margin-left:auto;margin-right:auto}
.trip{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:12px 14px;box-shadow:0 10px 24px -18px rgba(10,42,74,.4)}
.trip .rt{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.trip .rt span{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--marine);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.when2{display:grid;gap:8px;margin-top:12px}
.when2 .pax{border-radius:14px;border-width:1.5px;background:var(--white)}
.dt input{border-radius:14px;border-width:1.5px}
.veh{border-radius:20px;border-width:1.5px}
.cta-bar{bottom:0;padding-bottom:calc(env(safe-area-inset-bottom) + 12px);background:linear-gradient(180deg,rgba(244,248,251,0),var(--bg) 30%)}
.cta-bar .cta{border-radius:18px;height:60px;background:var(--marine);border-color:var(--marine);color:var(--white)}
.cta{border-radius:18px}

/* mes courses / profil */
.pg{padding:calc(env(safe-area-inset-top) + 18px) 16px 0;max-width:620px;margin:0 auto}
.pg-h{font-family:var(--display);font-weight:800;font-size:2.4rem;margin:0 0 14px;color:var(--marine)}
.pills{display:flex;gap:8px;margin:0 0 16px}
.pills button{height:40px;padding:0 18px;border-radius:20px;border:1.5px solid var(--line);background:var(--white);font-weight:700;color:var(--muted)}
.pills button.on{background:var(--marine);border-color:var(--marine);color:var(--white)}
.rlive{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;background:var(--sky);color:var(--marine);border-radius:22px;padding:18px;margin:0 0 12px;box-shadow:0 18px 34px -18px rgba(11,125,181,.7)}
.rlive small{font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.rlive b{font-family:var(--display);font-weight:800;font-size:1.9rem;line-height:1.05}
.rlive span{font-weight:600}
.rlive .go{display:flex;align-items:center;gap:4px;margin-top:6px;font-weight:800}
.rlive .go svg{width:18px;height:18px}
.rc{background:var(--white);border:1px solid var(--line);border-radius:22px;margin:0 0 12px;box-shadow:0 10px 24px -18px rgba(10,42,74,.35);overflow:hidden}
.rc-main{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px}
.rc-main>svg{width:20px;height:20px;color:var(--dim);flex:none}
.dbl{width:60px;flex:none;display:flex;flex-direction:column;align-items:center;padding:7px 0;border-radius:14px;background:#EEF3F7}
.dbl small{font-size:.72rem;font-weight:700;color:var(--sky-deep);text-transform:uppercase}
.dbl b{font-family:var(--display);font-weight:800;font-size:1.7rem;line-height:1;color:var(--marine)}
.rc-main .m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rc-main .m b{font-size:1.05rem;color:var(--marine);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-main .m small{color:var(--muted);font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st{font-size:.82rem;font-weight:800}.st.ok{color:var(--ok)}.st.warn{color:var(--warn)}.st.err{color:var(--err)}.st.dim{color:var(--muted)}
.rc-acts{display:flex;gap:8px;flex-wrap:wrap;padding:0 14px 14px}
.btn.cancel{border-color:#F2C6C3;color:var(--err)}
.btn.cancelw{border-color:var(--err);color:var(--err);background:var(--white);margin-top:14px}
.bigeta{border-radius:20px;background:var(--marine);color:var(--white);padding:16px 18px;margin:0 0 12px;display:flex;flex-direction:column}
.bigeta small{font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9FD8F1}
.bigeta b{font-family:var(--display);font-weight:800;font-size:3.2rem;line-height:1}
.bigeta span{color:#C9DCEA;font-size:.92rem}
.sheet .in{background:var(--bg);border-radius:26px 26px 0 0}
.card,.list{border-radius:20px}
#toast{top:calc(env(safe-area-inset-top) + 14px)}
@media (min-width:700px){.ch-map #map{max-width:none;border-radius:0}}
.sbox{position:relative;display:flex;align-items:center;gap:10px;height:58px;padding:0 8px 0 16px;border-radius:18px;background:#EEF3F7;border:2px solid transparent;margin:4px 0 8px}
.sbox:focus-within{border-color:var(--sky);background:var(--white)}
.sbox svg{width:22px;height:22px;color:var(--marine);flex:none}
.sbox input{flex:1;min-width:0;height:100%;border:0;background:transparent;font-size:1.1rem;font-weight:700;color:var(--marine);outline:none;-webkit-appearance:none}
.sbox input::-webkit-search-cancel-button{display:none}
.sbox .x{width:36px;height:36px;border-radius:50%;color:var(--muted);flex:none}
.from.mini{padding:10px 12px;margin:0 0 6px;border-radius:14px;border:1px solid var(--line)}
.rc-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0 0;margin-top:10px;border-top:1px solid var(--line);color:var(--muted);font-weight:600}
.rc-line b{color:var(--marine)}
.rc-line.big b{font-family:var(--display);font-weight:800;font-size:1.9rem;line-height:1}
.payok{display:flex;gap:10px;align-items:flex-start;text-align:left;background:var(--ok-bg);color:var(--ok);border-radius:14px;padding:12px 14px;margin:10px 0 4px;font-size:.92rem}
.payok b{color:var(--ok)}
/* repères de carte lisibles */
.mk{display:flex;flex-direction:column;align-items:center;pointer-events:none}
.mk .lab{background:var(--sky);color:#fff;font:800 12px/1 var(--font,Barlow),sans-serif;letter-spacing:.02em;padding:6px 9px;border-radius:9px;box-shadow:0 6px 14px -6px rgba(10,42,74,.6);white-space:nowrap}
.mk.b .lab{background:var(--marine)}
.mk .stem{width:2px;height:10px;background:var(--sky)}
.mk.b .stem{background:var(--marine)}
.mk .dot{width:14px;height:14px;border-radius:50%;background:#fff;border:4px solid var(--sky);box-shadow:0 2px 6px rgba(10,42,74,.35)}
.mk.b .dot{border-color:var(--marine);border-radius:3px}
.carmk{width:38px;height:38px;border-radius:50%;background:var(--marine);color:#fff;display:grid;place-items:center;border:3px solid #fff;box-shadow:0 6px 16px -4px rgba(10,42,74,.6)}
.carmk svg{width:22px;height:22px}
/* fiche course */
#tmap{height:280px;border-radius:20px;overflow:hidden;margin:0 0 12px;border:1px solid var(--line)}
.hunt{display:flex;gap:14px;align-items:center;background:var(--marine);color:#fff;border-radius:20px;padding:16px 18px;margin:0 0 12px}
.hunt b{display:block;font-family:var(--display);font-weight:800;font-size:1.4rem}
.hunt small{display:block;color:#C9DCEA;font-size:.88rem;margin-top:2px}
.pulse{flex:none;width:18px;height:18px;border-radius:50%;background:var(--sky);box-shadow:0 0 0 0 rgba(47,174,224,.7);animation:pls 1.6s infinite}
@keyframes pls{70%{box-shadow:0 0 0 14px rgba(47,174,224,0)}100%{box-shadow:0 0 0 0 rgba(47,174,224,0)}}
.frise{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 12px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:14px 6px 12px}
.fz{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.fz::before{content:"";position:absolute;top:8px;left:-50%;right:50%;height:3px;background:var(--line)}
.fz:first-child::before{display:none}
.fz.done::before,.fz.cur::before{background:var(--marine)}
.fz i{position:relative;width:18px;height:18px;border-radius:50%;background:var(--white);border:3px solid var(--line)}
.fz.done i{background:var(--marine);border-color:var(--marine)}
.fz.cur i{background:var(--sky);border-color:#BFE6F7}
.fz span{font-size:.78rem;font-weight:700;color:var(--muted)}
.fz.done span{color:var(--marine)}.fz.cur span{color:var(--sky-deep)}
.fz small{font-size:.7rem;color:var(--muted)}
.hunt{text-align:left}
.hunt .pulse{display:none}
.radar{position:relative;flex:none;width:64px;height:64px;display:grid;place-items:center}
.radar span{position:absolute;inset:0;border-radius:50%;border:2px solid var(--sky);opacity:0;animation:rad 2.4s ease-out infinite}
.radar span:nth-child(2){animation-delay:.8s}.radar span:nth-child(3){animation-delay:1.6s}
.radar b{position:relative;width:38px;height:38px;border-radius:50%;background:var(--sky);color:var(--marine);display:grid;place-items:center;box-shadow:0 0 0 4px rgba(47,174,224,.25)}
.radar b svg{width:22px;height:22px}
@keyframes rad{0%{transform:scale(.45);opacity:.9}100%{transform:scale(1.35);opacity:0}}
.dots i{font-style:normal;animation:dt 1.2s infinite;opacity:.2}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
@keyframes dt{50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.radar span,.dots i{animation:none;opacity:.6}}
/* augmenter le prix quand aucun chauffeur n'a accepté */
.boost{background:var(--white);border:2px solid var(--sky);border-radius:20px;padding:16px;margin:0 0 12px;text-align:left}
.boost>b{display:block;font-family:var(--display);font-weight:800;font-size:1.35rem;color:var(--marine)}
.boost p{margin:4px 0 12px;color:var(--muted);font-size:.92rem}
.boost p b{color:var(--marine)}
.bopts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px}
.bopts button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 4px;border-radius:16px;background:var(--marine);color:#fff}
.bopts button b{font-family:var(--display);font-weight:800;font-size:1.5rem;line-height:1}
.bopts button small{font-size:.8rem;color:#C9DCEA;font-weight:600}
.bopts button:disabled,.boost .btn:disabled{opacity:.5}
.peage{background:#FFF7E6;border:1px solid #F3D9A4;border-radius:16px;padding:12px 14px;margin:10px 0;color:#5B4210}
.peage b{color:#4A3408}
.peage small{display:block;margin-top:4px;font-size:.86rem;line-height:1.4}
.dette{display:block;width:100%;text-align:left;background:#fdecea;color:#b71c1c;border:1px solid #f5c2c0;border-radius:12px;padding:10px 12px;margin:0 0 10px;font:600 .92rem/1.3 inherit;cursor:pointer}
.qrc{width:170px;max-width:60%;margin:6px auto;background:#fff;padding:8px;border-radius:12px;border:1px solid #d6e2ec}.qrc svg{display:block;width:100%;height:auto}

.sheet .in{position:relative}.sheet .sx{position:sticky;top:0;float:right;margin:-4px -2px 6px 10px;z-index:3;box-shadow:0 2px 8px rgba(10,42,74,.12)}
.why .it>span.m{white-space:normal;color:var(--marine)}
.kmsgb{margin-top:10px}
.sheet.kchat .in{display:flex;flex-direction:column;max-height:88vh}
.kmsgs{flex:1;min-height:160px;max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px;margin:4px 0 8px}
.kmsg{max-width:84%;align-self:flex-start;background:var(--ice);border:1px solid var(--line);border-radius:16px 16px 16px 4px;padding:7px 11px}
.kmsg.me{align-self:flex-end;background:var(--marine);color:#fff;border-color:var(--marine);border-radius:16px 16px 4px 16px}
.kmsg small{display:block;font-size:.74rem;opacity:.75;margin-bottom:2px}
.kmsg p{margin:0;white-space:pre-wrap;word-break:break-word}
.kmsg img{display:block;max-width:220px;width:100%;border-radius:12px;margin:4px 0}
.kquick{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.kquick .chip{white-space:nowrap;cursor:pointer;border:1px solid var(--line);background:var(--white)}
.kform{display:flex;gap:8px;align-items:flex-end}.kform textarea{flex:1;min-width:0;resize:none;border:1px solid var(--line);border-radius:14px;padding:10px 12px;font:inherit;min-height:44px}
.kform .kph{flex:0 0 auto;padding-inline:12px;cursor:pointer}
.nb{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#E5484D;color:#fff;font-size:.75rem;font-weight:700;margin-left:6px}
.stops{display:flex;flex-direction:column;gap:6px;margin:8px 0 2px}
.stopx{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--ice,#EEF7FC);border-radius:12px;padding:8px 10px;font-weight:600;font-size:.92rem}
.stopx button{border:0;background:transparent;font-size:1rem;font-weight:800;color:var(--muted,#4E6278);cursor:pointer;padding:2px 6px}
.addstop{border:1px dashed var(--line,#D3E5F1);background:transparent;border-radius:12px;padding:9px 10px;text-align:left;font-weight:700;color:var(--sky-deep,#0B7DB5);cursor:pointer}
.addstop small{font-weight:500;color:var(--muted,#4E6278)}

.mk.s .lab{background:#E89B2B}.mk.s .stem{background:#E89B2B}.mk.s .dot{border-color:#E89B2B;width:12px;height:12px}
.veh .delai{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:3px;font-size:12px;font-weight:700;color:var(--sky,#0B7DB5)}
.veh .delai span:last-child{color:var(--marine,#0A2A4A);font-weight:600}
.prio{margin:10px 0 4px;padding:10px 12px;border-radius:14px;background:#FFF6E5;border:1px solid #F3D19B;font-size:13px;line-height:1.4;color:#5A3B00}
