
:root{
  --bg:#ffffff;
  --text:#0B0B0B;
  --muted:#5F6368;
  --border:#E5E7EB;
  --card:#ffffff;
  --surface:#ffffff;
  --shadow:0 14px 40px rgba(11,11,11,.10);
  --shadow2:0 8px 24px rgba(11,11,11,.10);
  --priority-ring:rgba(0,0,0,.75);
  --accent:#0B0B0B;
  --green:#16C172;
  --success-bg:#dcfce7;
  --success-border:#16a34a;
  --success-text:#166534;
  --orange:#FF7A00;
  --soon:#B0B6BF;
  --danger:#E5484D;
  --r16:16px;
  --r24:24px;
  --pad:16px;
  --max:1120px;
  --tap:52px;
  --focus: 0 0 0 3px rgba(11,11,11,.15);
}

[data-theme="dark"]{
  --bg:#0B0B0B;
  --text:#ffffff;
  --muted:#B0B6BF;
  --border:#222;
  --card:#111;
  --surface:#1a1a1a;
  --shadow:0 14px 40px rgba(0,0,0,.55);
  --shadow2:0 8px 24px rgba(0,0,0,.45);
  --priority-ring:rgba(255,255,255,.95);
  --accent:#ffffff;
  --success-bg:#0f2418;
  --success-border:#16C172;
  --success-text:#86efac;
  --focus: 0 0 0 3px rgba(255,255,255,.18);
}

*{box-sizing:border-box}

/* MOBILE FIX: Use 100dvh instead of 100vh, allow scroll */
html, body {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.35;
}

/* MOBILE FIX: Ensure main content is scrollable with safe area */
main {
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Utility for safe bottom padding */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Inputs, consistent across all pages */
input, textarea, select{
  font:inherit;
  color:var(--text);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
}
textarea{min-height:110px; resize:vertical}
input::placeholder, textarea::placeholder{color:var(--muted)}

a{color:inherit; text-decoration:none}
a:focus, button:focus, input:focus, select:focus, textarea:focus{outline:none; box-shadow:var(--focus)}
.container{max-width:var(--max); margin:0 auto; padding:0 var(--pad)}

/* --- Content and SEO pages --- */
.page{
  padding: 40px 0 64px;
  min-height: 100dvh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.page.narrow{max-width:860px; margin:0 auto}

.hero{padding:48px 0 18px}
.hero-center{max-width:860px; margin:0 auto; text-align:center}
.hero-title{font-size:clamp(30px, 5vw, 48px); margin:0 0 12px; letter-spacing:-.03em}
.hero-sub{font-size:18px; color:var(--muted); margin:0 0 22px}

.grid3{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px}
@media (max-width:900px){.grid3{grid-template-columns:1fr;}}

.feature{padding:18px; border:1px solid var(--border); border-radius:var(--r16); background:var(--card); box-shadow:var(--shadow2)}
.feature h3{margin:0 0 8px; font-size:16px}
.feature p{margin:0; color:var(--muted)}

.cta-row{display:flex; gap:10px; justify-content:center; flex-wrap:wrap}

.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

[data-theme="dark"] .topbar{
  background:rgba(11,11,11,.78);
}

[data-theme="dark"] .topbar{background:rgba(11,11,11,.72)}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:10px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
  letter-spacing:-.03em;
}
.brand img{width:22px; height:22px}
.navmini{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.chip{
  height:40px;
  padding:0 12px;
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--card);
  box-shadow:none;
}
.chip:active{transform:scale(.98)}
.dot{width:10px; height:10px; border-radius:999px}
.dot.green{background:var(--green)}
.dot.orange{background:var(--orange)}
.dot.priority{background:#B91C1C;border:3px solid var(--priority-ring)}
.dot.soon{background:var(--soon)}
.legend-square{
  width:12px; 
  height:12px; 
  border-radius:2px; 
  display:inline-block;
}
.legend-square.biz-standard{background:#ff8c00}
.legend-square.biz-priority{
  background:#dc2626;
  box-shadow:0 0 0 2px rgba(220,38,38,0.4);
}
[data-theme="dark"] .legend-square.biz-priority{
  box-shadow:0 0 0 2px rgba(220,38,38,0.6);
}

.controls{display:flex; gap:10px; align-items:center}
.select{
  height:40px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--card);
  color:var(--text);
  padding:0 12px;
}

.btn{
  min-height:var(--tap);
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn:active{transform:scale(.98)}
.btn.primary{
  background:var(--accent);
  color:var(--bg);
  border-color:var(--accent);
}
.btn.secondary{
  background:transparent;
}
.btn.block{width:100%}

.hero{
  padding:28px 0 18px;
}
.h1{
  font-size:44px;
  letter-spacing:-.04em;
  line-height:1.02;
  margin:0 0 10px;
}
.sub{
  color:var(--muted);
  font-size:16px;
  margin:0 0 14px;
}

/* Landing hero: add spacing before the "Live only" badge */
.sub .badge{
  display:flex;
  width:fit-content;
  margin-top:10px;
}
.stack{display:grid; gap:10px}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r24);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card.pad{padding:16px}
.row{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}

.tinder-card{
  width:100%;
  min-height:var(--tap);
  padding:18px 16px;
  border-radius:var(--r24);
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:var(--shadow2);
  display:flex; align-items:center; justify-content:space-between;
  font-weight:900;
  letter-spacing:-.02em;
  transition: transform .14s ease, box-shadow .14s ease;
}
.tinder-card:active{transform:scale(.99)}
.tinder-left{display:flex; align-items:center; gap:12px}
.pulse{
  width:14px; height:14px; border-radius:999px;
  position:relative;
}
.pulse.green{background:var(--green)}
.pulse.orange{background:var(--orange)}
.pulse::after{
  content:"";
  position:absolute; inset:-10px;
  border-radius:999px;
  border:2px solid currentColor;
  opacity:.0;
  animation:pulse 1.8s ease-in-out infinite;
}
.pulse.green{color:rgba(22,193,114,.35)}
.pulse.orange{color:rgba(255,122,0,.35)}
@keyframes pulse{
  0%{transform:scale(.7); opacity:.0}
  55%{transform:scale(1); opacity:.45}
  100%{transform:scale(1.25); opacity:.0}
}

.section{padding:14px 0}
.grid2{display:grid; grid-template-columns:1fr; gap:12px}
.grid3{display:grid; grid-template-columns:1fr; gap:12px}
.small{font-size:13px; color:var(--muted)}
.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.kpi{
  border:1px solid var(--border);
  border-radius:var(--r16);
  padding:12px;
  background:var(--card);
}
.kpi b{display:block; font-size:18px}

.map-shell{border-radius:var(--r24); overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow)}
.map-top{
  padding:12px;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
  background:var(--card);
  border-bottom:1px solid var(--border);
}
.map-filters{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
#map{height:calc(100dvh - 260px); max-height:640px; width:100%; touch-action: pan-x pan-y;}
.legend{
  max-height:34vh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  position:absolute;
  left:12px;
  right:auto;
  top:12px;
  bottom:auto;
  z-index:25;
  pointer-events:auto;
  max-width:320px;
  padding:12px 14px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow2);
  backdrop-filter: blur(10px);
}
.legend span{color:var(--text); font-size:13px}
.badge{
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  display:inline-flex; align-items:center; gap:8px;
  color:var(--muted);
  font-size:13px;
}

.sheet{
  position:fixed;
  left:0; right:0; bottom:0;
  background:var(--card);
  border-top:1px solid var(--border);
  border-radius:24px 24px 0 0;
  box-shadow:0 -20px 60px rgba(0,0,0,.18);
  transform: translateY(110%);
  transition: transform .22s ease;
  z-index:100; /* AU-DESSUS du bouton Geo (90/95) */
}
.sheet.open{transform: translateY(0)}
.sheet-inner{padding:16px}
.sheet-grab{
  width:46px; height:5px; border-radius:99px;
  background:var(--border);
  margin:0 auto 12px;
}
.sheet-title{font-weight:900; letter-spacing:-.02em; font-size:20px}
.sheet-meta{color:var(--muted); font-size:13px; margin-top:6px}
.sheet-note{margin-top:10px; color:var(--text); font-size:14px}
.sheet-actions{margin-top:12px; display:grid; gap:10px}

.footer{
  padding:20px 0;
  border-top:1px solid var(--border);
  color:var(--muted);
}
.footer a{color:var(--text)}

.reveal{opacity:0; transform:translateY(10px); transition: opacity .42s ease, transform .42s ease}
.reveal.in{opacity:1; transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal{transition:none}
  .btn,.tinder-card{transition:none}
}

@media (max-width:420px){
  .h1{font-size:40px}
  #map{height:460px}
  .kpis{grid-template-columns:1fr 1fr}
}


/* Home visual system */
.home-hero{
  min-height: calc(100dvh - 68px);
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  align-items:stretch;
}
.home-visual{
  position:relative;
  border-radius:var(--r24);
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.soft-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(11,11,11,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,11,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity:.18;
}
[data-theme="dark"] .soft-grid{
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  opacity:.14;
}
.soft-noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode:multiply;
}
[data-theme="dark"] .soft-noise{opacity:.10; mix-blend-mode:screen;}
.visual-inner{
  position:relative;
  padding:16px;
  height:100%;
  display:grid;
  gap:10px;
}
.visual-title{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-weight:900; letter-spacing:-.02em;
}
.visual-sub{color:var(--muted); font-size:13px}
.visual-map{
  width:100%;
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--bg);
  overflow:hidden;
}
.city-svg{
  width:100%;
  height:auto;
  display:block;
}
.floaty{
  animation: floaty 3.2s ease-in-out infinite;
}
@keyframes floaty{
  0%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
  100%{transform:translateY(0)}
}
.stagger > *{
  opacity:0;
  transform: translateY(10px);
  animation: rise .55s ease forwards;
}
.stagger > *:nth-child(1){animation-delay:.04s}
.stagger > *:nth-child(2){animation-delay:.10s}
.stagger > *:nth-child(3){animation-delay:.16s}
.stagger > *:nth-child(4){animation-delay:.22s}
.stagger > *:nth-child(5){animation-delay:.28s}
@keyframes rise{
  to{opacity:1; transform:none}
}
.swipe-hint{
  display:flex; align-items:center; gap:10px;
  color:var(--muted);
  font-size:13px;
  margin-top:10px;
}
.swipe-pill{
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  display:inline-flex; align-items:center;
}
.swipe-dot{
  width:8px; height:8px; border-radius:999px; background:var(--muted);
  animation: dotmove 1.2s ease-in-out infinite;
}
@keyframes dotmove{
  0%{transform:translateX(0); opacity:.45}
  50%{transform:translateX(16px); opacity:1}
  100%{transform:translateX(0); opacity:.45}
}
@media (min-width: 980px){
  .home-hero{grid-template-columns: 1.1fr .9fr; gap:16px;}
  .home-hero{min-height: calc(82vh - 68px);}
}

/* Phase 2 – Uber style bottom sheet */
.sheet-title{
  font-size:22px;
}
.sheet-meta{
  font-size:14px;
}
.timer-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(22,193,114,.12);
  color:var(--text);
  font-weight:600;
  font-size:12px;
}
.timer-pill.orange{
  background:rgba(255,122,0,.12);
}

/* Phase 2.1 – Unlock moment */
.timer-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:800;
  font-size:12px;
  color:var(--text);
}
.timer-pill.good{background:rgba(22,193,114,.14)}
.timer-pill.mid{background:rgba(255,122,0,.12)}
.timer-pill.low{background:rgba(229,72,77,.12)}
.state-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  font-size:12px;
  font-weight:900;
  letter-spacing:-.01em;
}
.toast{
  position:fixed;
  left:50%;
  top:76px;
  transform:translateX(-50%) translateY(-16px);
  opacity:0;
  z-index:60;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.in{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.toast .toast-inner{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:var(--shadow2);
  font-weight:900;
}

/* Phase 2.1.1 – Map fixes */
#map{
  height: max(70vh, 520px);
  min-height: 520px;
  background: var(--bg);
}
@media (max-width: 520px){
  #map{
    height: 62vh;
    min-height: 420px;
  }
  .map-top{
    gap:8px;
  }
  .map-filters{
    width:100%;
  }
  .map-filters .select{
    flex:1 1 auto;
    min-width: 0;
  }
}
.map-wrap{
  position:relative;
  overflow:hidden;
  overscroll-behavior: contain;
}
.map-loading{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.map-loading .loader{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:var(--shadow2);
  font-weight:900;
}
.status-line{
  padding:10px 12px 0;
  color:var(--muted);
  font-size:13px;
}
.info-line{
  padding:8px 12px 0;
  color:var(--text);
  font-size:14px;
  font-weight:500;
}
.info-line-small{
  padding:4px 12px 8px;
  color:var(--muted);
  font-size:12px;
}

/* Phase 2.2 – Map life */
.marker{
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.92);
  cursor:pointer;
  position:relative;
  transform: translateZ(0);
}
.marker::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  opacity:.0;
  transform: scale(.7);
  border:2px solid rgba(11,11,11,.12);
  animation: markerPulse 1.9s ease-in-out infinite;
}
[data-theme="dark"] .marker::after{
  border-color: rgba(255,255,255,.14);
}
.marker.worker{background: var(--green);}
.marker.business{background: var(--orange);}
.marker.good::after{animation-duration: 2.25s;}
.marker.mid::after{animation-duration: 1.85s;}
.marker.low::after{animation-duration: 1.35s;}

@keyframes markerPulse{
  0%{opacity:.0; transform:scale(.70)}
  55%{opacity:.42; transform:scale(1.02)}
  100%{opacity:.0; transform:scale(1.22)}
}

/* Bottom sheet polish */
.sheet{
  backdrop-filter: blur(10px);
}
.sheet-note{
  border-top:1px solid var(--border);
  margin-top:12px;
  padding-top:12px;
}
.sheet-actions .btn.primary{
  font-size:16px;
  letter-spacing:-.01em;
}

/* Phase 2.2.1 – Sheet close */
.sheet-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
  z-index:99; /* Juste sous le sheet (100) */
}
.sheet-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.sheet-close{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-size:22px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position: relative;
  z-index: 9999; /* AU-DESSUS de tout */
  flex-shrink: 0; /* Ne rétrécit jamais */
}

/* Zone badges on map */
.zone-badge{
  width:44px;
  height:44px;
  border-radius:50%;
  background:#14736A;
  color:#ffffff;
  font-weight:900;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(20,115,106,0.4);
  cursor:pointer;
  border:3px solid #ffffff;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.zone-badge:hover{
  transform:scale(1.1);
  box-shadow:0 6px 20px rgba(20,115,106,0.5);
}
.zone-badge:active{
  transform:scale(0.95);
}
[data-theme="dark"] .zone-badge{
  border-color:#0B0B0B;
}

/* Zone panel (liste workers par zone) */
.zone-panel{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:var(--card);
  border-top:1px solid var(--border);
  border-radius:24px 24px 0 0;
  box-shadow:0 -20px 60px rgba(0,0,0,.18);
  transform:translateY(110%);
  transition:transform .22s ease;
  z-index:40;
  max-height:80vh;
  overflow-y:auto;
}
.zone-panel.open{
  transform:translateY(0);
}
.zone-panel-inner{
  padding:16px;
}
.zone-panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.zone-panel-header h3{
  margin:0;
  font-weight:900;
  font-size:20px;
  letter-spacing:-.02em;
}
.zone-panel-close{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-size:22px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.worker-card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:16px;
  padding:14px;
  margin-bottom:10px;
  display:grid;
  gap:8px;
}
.worker-card strong{
  font-weight:900;
  font-size:16px;
  letter-spacing:-.01em;
}
.worker-card .role-line{
  color:var(--muted);
  font-size:13px;
}
.worker-card .transport-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:12px;
  background:rgba(22,193,114,.12);
  font-size:11px;
  font-weight:800;
}
.worker-card .phone-hidden{
  color:var(--muted);
  font-size:13px;
}
.worker-card .btn-whatsapp{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:999px;
  background:#14736A;
  color:#ffffff;
  font-weight:900;
  text-decoration:none;
  margin-top:8px;
}
.worker-card .btn-whatsapp:hover{
  background:#0f5a52;
}
.zone-panel-footer{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:grid;
  gap:10px;
}

/* Phase 2.3 – Social proof & anti ghost */
.social-banner{
  margin:8px 12px 0;
  padding:10px 12px;
  border-radius:12px;
  background:var(--card);
  border:1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}
.activity-low{
  opacity:.55;
}
.activity-low::after{
  content:"low activity";
  position:absolute;
  top:-18px;
  right:-4px;
  font-size:11px;
  color:var(--muted);
}

/* Language & legal readability */
.legal p{line-height:1.65}
.legal h2{margin-top:18px}

/* Trust strip */
.trust-strip{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.trust-card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:14px;
  padding:12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.trust-ico{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(127,127,127,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.trust-title{
  font-weight:950;
  letter-spacing:-.02em;
  font-size:14px;
  color:var(--text);
  margin:0;
}
.trust-sub{
  margin-top:8px;
  padding-top:10px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
@media (max-width: 820px){
  .trust-strip{grid-template-columns:1fr; }
}

/* Phase 3.1.2 – Home spacing */
.container{padding-left:14px;padding-right:14px}
.section{margin-top:22px}
.hero{padding-top:18px;padding-bottom:10px}
.hero .h1{margin-top:8px;margin-bottom:10px}
.hero .muted{margin-top:0;margin-bottom:12px}
.hero .row{gap:10px;flex-wrap:wrap}
.trust-strip{margin-top:16px;margin-bottom:18px}
.trust-card{padding:14px}
.trust-sub{margin-top:10px}
.topbar{padding:12px 14px}
.nav{gap:10px;flex-wrap:wrap}
.pill{margin:0}


/* PHASE314_PRO_LAYOUT */
:root{
  --maxw: 980px;
}

.container{
  max-width: var(--maxw);
  margin-left:auto;
  margin-right:auto;
  padding-left:16px;
  padding-right:16px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
}

.topbar .brand{
  gap:10px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

.right{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.hero.section{
  padding-top:22px;
  padding-bottom:18px;
}

.section{
  margin-top:22px;
}

.hero .h1{
  margin-top:12px;
  margin-bottom:10px;
  letter-spacing:-.03em;
}

.hero .muted{
  margin:0 0 14px 0;
  max-width: 54ch;
}

.hero .row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.trust-wrap{
  margin-top:16px;
  margin-bottom:20px;
}

.trust-strip{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.trust-card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:16px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.trust-ico{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(127,127,127,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:18px;
}

.trust-title{
  font-weight:950;
  font-size:14px;
  color:var(--text);
  line-height:1.1;
}

.trust-mini{
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
}

.trust-sub{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  text-align:center;
}

@media (max-width: 900px){
  .trust-strip{grid-template-columns: 1fr; }
  .hero .muted{max-width:none;}
  .right{justify-content:flex-start;}
}

/* Pricing badges responsiveness */
.payment-badges{width:100%;max-width:320px;height:auto;display:block}

/* Home: no decorative grid/noise */
.home .soft-grid, .home .soft-noise{display:none !important;}


/* Dark mode: make home map city labels readable */
[data-theme="dark"] .home-map text{ fill: rgba(255,255,255,0.85) !important; }

/* Home preview map (SVG) city labels */
.city-svg text{ fill: rgba(11,11,11,0.62) !important; }
[data-theme="dark"] .city-svg text{ fill: rgba(255,255,255,0.85) !important; }


/* Sheet details */
.kvList{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.kv{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.kv > span{color:var(--muted);font-size:13px;line-height:1.2;min-width:92px}
.kv > strong{font-weight:900;text-align:right}
.kv .muted{color:var(--muted);text-align:right}
.kv .chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.kv .chips .chip{height:32px;padding:0 10px;font-size:13px}


/* Role badge on live map sheet */
.role-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  background: var(--success, #16a34a);
  color:#fff;
  margin-right:8px;
}

/* Toggle filters for workers/businesses */
.toggle-filter{
  min-width:44px;
  padding:8px;
  opacity:0.4;
  transition:opacity 0.15s ease;
}
.toggle-filter.active{
  opacity:1;
}
.toggle-filter .dot{
  width:12px;
  height:12px;
}


/* Pricing page: center the Stripe secure payment block */
.secure-card{text-align:center;}
.secure-card .payment-badges{margin:0 auto;}

/* === CERTIFICATIONS === */
.cert-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  margin: 8px 0;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
  transition: opacity 0.2s;
}

.cert-item:hover {
  opacity: 0.7;
}

.cert-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--green);
}

.cert-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.cert-badge.rsa {
  background: #E8F5E9;
  color: #2E7D32;
}

[data-theme="dark"] .cert-badge.rsa {
  background: #1B5E20;
  color: #A5D6A7;
}

.cert-badge.white {
  background: #FFF3E0;
  color: #E65100;
}

[data-theme="dark"] .cert-badge.white {
  background: #E65100;
  color: #FFE0B2;
}

.cert-badge.first {
  background: #E3F2FD;
  color: #1565C0;
}

[data-theme="dark"] .cert-badge.first {
  background: #0D47A1;
  color: #90CAF9;
}

.cert-badge.fork {
  background: #F3E5F5;
  color: #6A1B9A;
}

[data-theme="dark"] .cert-badge.fork {
  background: #4A148C;
  color: #CE93D8;
}

/* === TIER BADGES === */
.tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.tier-badge.verified {
  background: #E8F5E9;
  color: #2E7D32;
}

[data-theme="dark"] .tier-badge.verified {
  background: #1B5E20;
  color: #A5D6A7;
}

.tier-badge.plus {
  background: #FFF3E0;
  color: #E65100;
}

[data-theme="dark"] .tier-badge.plus {
  background: #E65100;
  color: #FFE0B2;
}

.tier-badge.featured {
  background: #FFEBEE;
  color: #C62828;
}

[data-theme="dark"] .tier-badge.featured {
  background: #B71C1C;
  color: #FFCDD2;
}

/* === LEGEND SECTIONS === */
.legend-section {
  margin-bottom: 12px;
}

.legend-section:last-child {
  margin-bottom: 0;
}

.legend-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--muted);
}


/* Map toggles */
.toggle-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.toggle{border:1px solid rgba(255,255,255,0.18);background:rgba(0,0,0,0.25);color:var(--text);padding:10px 12px;border-radius:12px;font-weight:600;cursor:pointer;transition:transform .08s ease,background .15s ease,border-color .15s ease}
.toggle.active{background:rgba(255,255,255,0.10);border-color:rgba(255,255,255,0.26)}
.toggle:active{transform:scale(0.98)}
body.light .toggle{background:rgba(0,0,0,0.04);border-color:rgba(0,0,0,0.10)}
body.light .toggle.active{background:rgba(0,0,0,0.07);border-color:rgba(0,0,0,0.14)}


.map-wrap{min-height:360px}
body.map-page .map-wrap{position:relative;}
#map{height:clamp(360px, 58vh, 600px);min-height:360px;width:100%}


/* Pricing: service areas line */
.service-areas{display:block;width:100%;text-align:center;margin-top:18px;margin-bottom:10px;opacity:.85;}


.no-page-scroll{overflow:hidden;}

/* Geolocate button - visible on all devices */
.geolocate-btn{
  position: fixed;
  right: 14px;
  top: 95px; /* Position parfaite */
  z-index: 90;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.95);
  color: #111827;
  border-radius: 999px;
  padding: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.2s;
}

/* CACHER quand sheet ouvert */
.sheet.open ~ * .geolocate-btn {
  opacity: 0;
  pointer-events: none;
}

.geolocate-btn:hover{
  background: rgba(255,255,255,1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.geolocate-btn:active{
  transform: scale(0.95);
}

.geolocate-btn.loading{
  opacity: 0.6;
}

.geolocate-cta{
  position: fixed;
  right: 14px;
  top: 150px; /* Sous le bouton Geo */
  z-index: 89;
  background: rgba(22, 163, 74, 0.95);
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  max-width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  line-height: 1.3;
}

.geolocate-cta.show{
  display: block;
}

@media (max-width: 768px) {
  /* Geolocate button et CTA déjà définis dans mobile-map-fix.css */
  
  /* Filters button position aussi dans mobile-map-fix.css */
}

/* User location marker (blue dot) */
.user-location-marker {
  width: 20px;
  height: 20px;
  background: #4285F4;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
}

/* Pulsing circle around marker */
.user-location-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  animation: pulse-location 2s infinite;
}

@keyframes pulse-location {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}


@supports (height: 100dvh){
  #map{height:clamp(340px, 56dvh, 600px);}
  .legend{max-height:30dvh;}
}
body.no-scroll{
  overflow:hidden;
  }


@media (max-width: 768px){
  #map{height:48vh; max-height:none;}

  /* TOPBAR MOBILE - VERSION PAR DÉFAUT */
  .topbar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    padding: 12px !important;
    background: rgba(255,255,255, 0.95) !important;
    backdrop-filter: blur(10px);
  }
  
  /* TOPBAR MAP PAGE - VERSION COMPACTE */
  body.map-page .topbar{
    padding: 8px 12px !important;
  }
  
  [data-theme="dark"] .topbar{
    background: rgba(11,11,11, 0.90) !important;
  }
  
  /* Logo + Dark seulement visibles sur mobile */
  .topbar-inner{
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  /* CACHER les boutons navigation sur mobile MAP PAGE SEULEMENT */
  body.map-page .navmini{
    display: none !important;
  }
  
  /* Sur autres pages, garder navmini mais en version mobile - LIGNE COMPLÈTE */
  .navmini{
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    order: 10;
  }
  
  .navmini .chip{
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
    justify-content: center;
  }
  
  .brand{
    font-size: 18px;
  }
  
  .brand img{
    width: 20px;
    height: 20px;
  }
  
  .controls .btn{
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }
  
  /* Padding main selon la page */
  main{
    padding-top: 130px !important; /* Pages normales avec navmini */
  }
  
  body.map-page main{
    padding-top: 52px !important; /* Map page compacte */
  }

  /* LÉGENDE MOBILE - BAS À GAUCHE FORCÉ */
  .legend{
    position: fixed !important;
    top: auto !important;
    bottom: 14px !important;
    left: 14px !important;
    right: auto !important;
    transform: none !important;
    max-width: min(240px, calc(100vw - 100px));
    max-height: 24vh;
    overflow: auto;
    padding: 8px 10px;
    font-size: 12px;
  }
  .legend .row{
    width: auto;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
  }
  .legend .row span:last-child{
    display: block;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    font-size: 11px;
  }
  .legend-section{
    gap: 4px;
  }
  .legend-title{
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
}


/* Sheet banner visual system */
.sheet-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.sheet-h1{font-size:20px;font-weight:900;line-height:1.1}
.sheet-h2{font-size:13px;color:var(--muted);margin-top:4px}
.sheet-head-right{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}

.entity-pill{display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:11px;letter-spacing:.5px;padding:6px 10px}
.entity-pill.worker{border-radius:999px;background:#e6f4ff;color:#0b4f7a}
.entity-pill.business{border-radius:10px;background:#fff2e6;color:#8a3a00}

.tier-pill{display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:11px;padding:6px 10px;border-radius:999px}
.tier-pill.free{background:#f2f2f2;color:#666}
.tier-pill.basic{background:#dcfce7;color:#166534;border:1px solid #86efac}
.tier-pill.plus{background:#ddd6fe;color:#5b21b6;border:1px solid #a78bfa}
.tier-pill.pro{background:#fef3c7;color:#92400e;border:1px solid #fbbf24;box-shadow:0 0 12px rgba(251,191,36,0.3)}
.tier-pill.standard{background:#fed7aa;color:#9a3412}
.tier-pill.priority{background:#fecaca;color:#991b1b;border:1px solid #f87171;box-shadow:0 0 12px rgba(248,113,113,0.3)}
.tier-pill.verified{background:#dcfce7;color:#166534}

.sheet-meta-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}
.sheet-chiprow{display:flex;gap:6px;flex-wrap:wrap}
.sheet-meta-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

.activity-pill{display:inline-flex;align-items:center;font-weight:900;font-size:11px;padding:6px 10px;border-radius:999px}
.form-help{display:block;margin-top:6px;}
.activity-pill.now{background:#e9fff1;color:#0b5d2a}
.activity-pill.today{background:#fff7e0;color:#6b4e00}
.activity-pill.new{background:var(--surface);color:var(--text);border:1px solid var(--border)}

.chip-transport{background:#e3f2fd;color:#1565c0}
.chip-distance{background:#f3f4ff;color:#2b2f84}
.chip-cert{background:#f2f7f2;color:#0b5d2a;font-weight:900}
.chip-role{background:#f2f2f2;color:#333}
.chip-standard{background:#fff4e8;color:#8a3a00;font-weight:900}
.chip-priority{background:#ffe7ea;color:#8b0010;font-weight:900}


/* Spiderfy markers */
.spider-marker{
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  cursor: pointer;
}
.spider-worker{
  border-radius: 999px;
  background: #2563EB;
}
.spider-biz{
  border-radius: 6px;
  background: #C2410C;
}


/* =====================================================
   V4.2 GPS STRICT - MODAL STYLES
   ===================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-footer .btn {
  flex: 1;
  max-width: 200px;
}

/* GPS Explainer specific */
.modal.gps-explainer .checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.modal.gps-explainer .checklist li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

.modal.gps-explainer .checklist li:last-child {
  border-bottom: none;
}

.modal.gps-explainer .trust-note {
  padding: 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.modal.gps-explainer .trust-note small {
  display: block;
  line-height: 1.5;
  opacity: 0.9;
}

/* Warning modal */
.modal.warning .modal-header {
  background: rgba(245, 158, 11, 0.1);
  border-bottom-color: rgba(245, 158, 11, 0.2);
}

/* Suggestion box in too-far modal */
.suggestion {
  margin-top: 20px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.suggestion h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.suggestion p {
  margin-bottom: 16px;
}

.suggestion .btn {
  width: 100%;
}

/* Light mode adjustments */
body.light .modal {
  background: #fff;
}

body.light .modal-header,
body.light .modal-footer {
  border-color: rgba(0, 0, 0, 0.1);
}

body.light .modal.gps-explainer .checklist li {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light .modal.gps-explainer .trust-note {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
}

body.light .suggestion {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  .modal-footer .btn {
    max-width: none;
  }
}


/* Partners page components */
.tile{
  border:1px solid var(--card-line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  border-radius:18px;
  padding:14px;
}
.tile-t{font-weight:800;margin-bottom:6px}
.steps{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.step{display:flex;gap:12px;align-items:flex-start}
.step .dot{margin-top:4px}
.step-t{font-weight:800;margin-bottom:4px}


/* Form helper text */
.hint{margin-top:6px;font-size:12px;line-height:1.35;color:var(--muted)}

.security-note{
  margin-top:8px;
  padding:10px 12px;
  background:rgba(22, 163, 74, 0.08);
  border-left:3px solid #16a34a;
  border-radius:6px;
  font-size:13px;
  line-height:1.4;
  color:var(--text);
  font-weight:500;
}

@media (max-width: 768px) {
  .security-note{
    font-size:12px;
    padding:8px 10px;
  }
}


/* Language flag (image based, no emoji fallback) */
.lang-flag{
  width:20px;
  height:14px;
  border-radius:4px;
  background-size:cover;
  background-position:center;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
  flex:0 0 auto;
}
.lang-flag.en{background-image:url(../img/flags/en.svg)}
.lang-flag.fr{background-image:url(../img/flags/fr.svg)}
.lang-flag.es{background-image:url(../img/flags/es.svg)}
.lang-flag.it{background-image:url(../img/flags/it.svg)}
.lang-flag.pt{background-image:url(../img/flags/pt.svg)}
.lang-flag.de{background-image:url(../img/flags/de.svg)}
.lang-flag.ja{background-image:url(../img/flags/ja.svg)}
.lang-flag.ko{background-image:url(../img/flags/ko.svg)}
.lang-flag.zh{background-image:url(../img/flags/zh.svg)}
.lang-flag.hi{background-image:url(../img/flags/hi.svg)}

/* JOBELLO_MOBILE_MAP_SMOOTH_PATCH */
@media (max-width: 768px){
  .map-shell{ overflow: visible; }

  /* Keep filters accessible while browsing the map */
  .map-top{
    position: sticky;
    top: 64px;
    z-index: 50;
  }

  /* Multi-row filters (everything visible, no horizontal swipe) */
  .map-filters{
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
    gap: 10px;
  }
  .map-filters select,
  .map-filters .select{
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }
  /* Keep the two dot toggle buttons visible on their own row */
  .map-filters > div{
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  /* Stable viewport height on mobile */
  #map{
    height: calc(var(--vh, 1vh) * 100 - 64px - 74px);
    max-height: none;
  }
  .map-wrap{
    height: calc(var(--vh, 1vh) * 100 - 64px - 74px);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet{
    padding-bottom: env(safe-area-inset-bottom);
  }
}



/* Mobile map UX: keep map full-screen, open filters in a panel to avoid vertical scrolling */
@media (max-width: 768px){
  body.map-page{
    height: 100%;
  }
  body.map-page{
    overflow: hidden;
  }

  /* make map take full remaining viewport */
  body.map-page #map{
    height: calc(var(--vh, 1vh) * 100);
    max-height: none;
  }

  
  /* ensure map is not cut by elements above (make it full-screen layer) */
  body.map-page #map{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    max-height: none;
    z-index: 10;
  }
/* filters panel overlays the map */
  body.map-page .filters-panel{
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 110;
    padding: 12px 12px 10px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform 180ms ease;
    max-height: 46vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.map-page .filters-panel.is-open{
    transform: translateY(0);
  }
  
  [data-theme="dark"] body.map-page .filters-panel{
    background: rgba(11,11,11,0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* floating button - À MI-HAUTEUR GAUCHE, discret */
  body.map-page .filters-toggle{
    position: fixed;
    left: 14px;
    top: 50%; /* MI-HAUTEUR de l'écran */
    transform: translateY(-50%); /* Centré verticalement */
    z-index: 35;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.95);
    color: #111827;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  [data-theme="dark"] body.map-page .filters-toggle{
    background: rgba(11,11,11,0.95);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
  }

  /* reduce header height if possible */
  header{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* keep legend from blocking too much */
  .map-legend{
    max-width: calc(100% - 28px);
  }
}

/* SAFE AREA / MOBILE SCROLL FIX */
html, body {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
}

.page, main {
  min-height: 100dvh;
}

main {
  padding-bottom: calc(env(safe-area-inset-bottom) + 72px);
}


/* Mobile: header always clickable over map */
.map-page .top-nav,
.map-page header,
.map-page .header,
.map-page .nav,
.map-page .nav-bar {
  position: relative;
  z-index: 9999;
}

/* Map stays under UI */
.map-page #map,
.map-page .mapboxgl-map,
.map-page .map-container {
  z-index: 1;
}

/* FORCE UI INTERACTION OVER MAP */
.map-page .top-nav,
.map-page header,
.map-page .header,
.map-page .nav,
.map-page .nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  pointer-events: auto;
}

.map-page #map,
.map-page .mapboxgl-map,
.map-page .map-container {
  pointer-events: auto;
}

/* MAP TOP OFFSET (prevents map overlay over header on mobile) */
@media (max-width: 1024px) {
  .map-page #map {
    top: 64px;
  }
}

/* Responsive safety: prevent long strings from breaking layout */
.card, .feature, .small, p, li, a {
  overflow-wrap:anywhere;
  word-break:break-word;
}

@media (max-width:480px){
  input, textarea, select{ font-size:16px; }
}


/* === Friction reduction v1: clear zone rule + optional details === */
.zone-note{
  margin-top:10px;
  padding:10px 12px;
  background:rgba(239, 68, 68, 0.08);
  border-left:3px solid rgba(239, 68, 68, 0.85);
  border-radius:6px;
  font-size:13px;
  line-height:1.4;
  color:var(--text);
  font-weight:700;
}
.optional-details{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}
.optional-details > summary{
  cursor:pointer;
  font-weight:900;
  list-style:none;
  outline:none;
}
.optional-details > summary::-webkit-details-marker{ display:none; }
.optional-details[open] > summary{ margin-bottom:10px; }
.biz-clarity{
  margin-top:10px;
  padding:10px 12px;
  background:rgba(16, 185, 129, 0.08);
  border-left:3px solid rgba(16, 185, 129, 0.85);
  border-radius:6px;
  font-size:13px;
  line-height:1.4;
  color:var(--text);
  font-weight:800;
}


/* UX frictionfix: steps + zone note */
.steps-box{background:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:14px;margin:12px 0;}
.steps-title{font-weight:700;margin-bottom:8px;}
.steps-list{margin:0;padding-left:18px;}
.steps-list li{margin:6px 0;}
.steps-note{margin-top:10px;font-size:0.95rem;opacity:0.85;}
.zone-note{background:rgba(220,38,38,0.08);border:1px solid rgba(220,38,38,0.20);border-radius:10px;padding:10px;margin:10px 0;font-weight:600;}
