/* ============================================================
   OhmCar — Version WEB (desktop)
   Landing + App logged-in
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EFF1F5;
  --text: #0A0F1A;
  --text-muted: #6B7280;
  --text-soft: #9AA3B2;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --primary: #10B981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-50: #ECFDF5;
  --primary-100: #D1FAE5;

  --accent: #FBBF24;
  --accent-50: #FEF3C7;

  --danger: #EF4444;
  --danger-50: #FEE2E2;
  --info: #3B82F6;
  --warning: #F59E0B;

  --dark: #0A0F1A;
  --dark-700: #111827;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10,15,26,.04), 0 1px 1px rgba(10,15,26,.03);
  --shadow-md: 0 4px 12px rgba(10,15,26,.06), 0 2px 4px rgba(10,15,26,.04);
  --shadow-lg: 0 12px 32px rgba(10,15,26,.10), 0 4px 8px rgba(10,15,26,.05);
  --shadow-xl: 0 24px 48px rgba(10,15,26,.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 72px;
  --sidebar-w: 240px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---------- Layout utils ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,185,129,.25); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1F2937; }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: var(--surface); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top Nav (public) ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  background: transparent;
}
.logo-mark.sm { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: all .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.15), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 10px;
  background: var(--accent-50);
  z-index: -1;
  border-radius: 4px;
}
.hero p {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--text); }
.hero-stat span { font-size: 14px; color: var(--text-muted); }

.hero-illu {
  background: linear-gradient(135deg, #0A0F1A 0%, #1F2937 100%);
  border-radius: var(--r-2xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}
.hero-illu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(16,185,129,.4), transparent 50%);
}
/* Scène du héros : maison + borne + voiture en charge.
   Remplace l'ancienne « mini carte » abstraite (supprimée, non conservée). */
.hero-illu-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}
.hero-illu-scene svg { width: 100%; height: auto; display: block; }

/* L'énergie qui circule dans le câble */
.ohm-cable {
  stroke-dasharray: 9 15;
  animation: ohm-flux 1.1s linear infinite;
}
@keyframes ohm-flux { to { stroke-dashoffset: -24; } }

/* Témoin de la borne */
.ohm-led { animation: ohm-clignote 1.8s ease-in-out infinite; }
@keyframes ohm-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* La charge qui monte. On met à l'échelle plutôt que d'animer l'attribut
   width : la géométrie SVG n'est pas animable partout, une transformation si. */
.ohm-jauge {
  transform-box: fill-box;
  transform-origin: left center;
  animation: ohm-charge 5s ease-in-out infinite;
}
@keyframes ohm-charge {
  0%   { transform: scaleX(.12); }
  65%  { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}

.ohm-halo { animation: ohm-respire 3.6s ease-in-out infinite; }
@keyframes ohm-respire { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }

/* Respect du réglage système « animations réduites » */
@media (prefers-reduced-motion: reduce) {
  .ohm-cable, .ohm-led, .ohm-jauge, .ohm-halo { animation: none; }
  .ohm-jauge { transform: scaleX(.75); }
}
.hero-illu-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 260px;
}
.hero-illu-card.top { top: 40px; left: 40px; animation: float1 5s ease-in-out infinite; }
.hero-illu-card.mid { top: 34%; right: 20px; transform: translateY(-50%); animation: float2 5s ease-in-out infinite .5s; }
.hero-illu-card.bot { bottom: 40px; left: 60px; animation: float1 6s ease-in-out infinite 1s; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes float2 { 0%,100%{transform:translate(0,-50%)} 50%{transform:translate(0,calc(-50% - 8px))} }
.hero-illu-card .icon { width: 40px; height: 40px; background: var(--primary-50); color: var(--primary-700); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-illu-card .label { font-size: 12px; color: var(--text-muted); }
.hero-illu-card .value { font-weight: 700; font-size: 15px; }

/* ---------- Search widget ---------- */
.search-widget {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 8px;
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr auto;
  gap: 4px;
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  border: 1px solid var(--border);
}
.search-widget .cell {
  padding: 12px 16px;
  border-radius: var(--r-md);
  transition: background .15s;
  cursor: text;
}
.search-widget .cell:hover { background: var(--surface); }
.search-widget .cell label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.search-widget .cell input, .search-widget .cell select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}
.search-widget .cell input::placeholder { color: var(--text-soft); }
.search-btn {
  width: 52px; height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: all .15s;
}
.search-btn:hover { background: var(--primary-600); transform: scale(1.05); }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  transition: all .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--text-muted); line-height: 1.6; font-size: 15px; }

/* ---------- Features ---------- */
.features-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .features-2col { grid-template-columns: 1fr; } }
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.feature-item p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

.feature-showcase {
  background: linear-gradient(135deg, #0A0F1A 0%, #1F2937 100%);
  border-radius: var(--r-2xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(16,185,129,.3), transparent 50%);
}

/* ---------- Spots grid ---------- */
.spots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .spots-grid { grid-template-columns: 1fr; } }
.spot-card-web {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.spot-card-web:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.spot-card-web .img {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.spot-card-web .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spot-card-web:hover .img img { transform: scale(1.05); }
.spot-card-web .badge-abs {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}
.spot-card-web .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.spot-card-web .title { font-size: 17px; font-weight: 700; }
.spot-card-web .addr { font-size: 13px; color: var(--text-muted); }
.spot-card-web .meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.spot-card-web .price { margin-left: auto; font-weight: 700; color: var(--primary); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
}
.testimonial .stars { color: var(--accent); margin-bottom: 12px; font-size: 18px; }
.testimonial p { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.testimonial .name { font-weight: 700; font-size: 14px; }
.testimonial .role { color: var(--text-muted); font-size: 13px; }

/* ---------- Host CTA ---------- */
.host-cta {
  background: linear-gradient(135deg, #0A0F1A 0%, #1F2937 100%);
  border-radius: var(--r-2xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .host-cta { grid-template-columns: 1fr; padding: 40px; } }
.host-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.35), transparent 70%);
  filter: blur(40px);
}
.host-cta h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.host-cta h2 .hl { color: var(--primary); }
.host-cta p { color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.host-cta .box-calc {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.host-cta .box-calc .label { color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 6px; }
.host-cta .box-calc .value { font-size: 36px; font-weight: 800; color: var(--primary); }
.host-cta .box-calc .note { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all .15s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--text-muted);
  transition: transform .2s;
  font-weight: 300;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--primary); }
.faq-item p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: 12px; }

/* ---------- Final CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%);
}
.cta-banner h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; position: relative; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 32px; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .15s;
}
.social-icons a:hover { background: var(--primary); }

/* ============================================================
   APP — Logged in (desktop)
   ============================================================ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo { padding: 4px 12px 24px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .15s;
  cursor: pointer;
}
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.active { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.side-link.active svg { stroke: var(--primary); }
.side-link svg { width: 20px; height: 20px; stroke-width: 2; }
.side-link .badge-dot {
  margin-left: auto;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
}
.side-section { font-size: 11px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; padding: 16px 14px 8px; }
.side-user {
  margin-top: auto;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-user .avatar { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.side-user .name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.side-user .email { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }

.main {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  outline: none;
  transition: all .15s;
}
.topbar-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-50); }
.topbar-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn-web {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--text);
  transition: background .15s;
  position: relative;
}
.icon-btn-web:hover { background: var(--surface); }
.icon-btn-web .dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--danger);
  border: 2px solid var(--bg);
  border-radius: 50%;
}

.content { flex: 1; padding: 32px; max-width: 1400px; width: 100%; margin: 0 auto; }
.content-wide { padding: 0; max-width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.page-head .sub { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

/* ---------- App: map view ---------- */
.map-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: calc(100vh - var(--nav-h));
}
.map-results {
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}
.map-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.map-split #mapWeb { width: 100%; height: 100%; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.result-card-web {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all .15s;
}
.result-card-web:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.result-card-web .thumb { width: 80px; height: 80px; border-radius: var(--r-md); object-fit: cover; flex-shrink: 0; }
.result-card-web .body { flex: 1; min-width: 0; }
.result-card-web .title { font-weight: 700; font-size: 15px; }
.result-card-web .addr { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.result-card-web .meta { display: flex; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.result-card-web .price { font-weight: 700; color: var(--primary); font-size: 15px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip.primary { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); }

/* ---------- Stats cards ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.stat-card .label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; }
.stat-card .delta { font-size: 13px; font-weight: 600; margin-top: 4px; }
.stat-card .delta.up { color: var(--primary-700); }
.stat-card .delta.down { color: var(--danger); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: left; }
.table th { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.table td { border-bottom: 1px solid var(--border); font-size: 14px; }
.table tr:hover { background: var(--surface); }
.table .status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); }
.table .status.confirmed { background: var(--primary-50); color: var(--primary-700); }
.table .status.pending { background: var(--accent-50); color: #92400E; }
.table .status.completed { background: var(--surface-2); color: var(--text-muted); }
.table .status.cancelled { background: var(--danger-50); color: #991B1B; }

/* Spot detail modal/page */
.spot-hero {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 16/7;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.spot-hero img { width: 100%; height: 100%; object-fit: cover; }
.spot-hero .big { grid-row: 1 / 3; }
.spot-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .spot-detail-grid { grid-template-columns: 1fr; } }
.sticky-booking {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.features-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.feature-box { background: var(--surface); padding: 14px; border-radius: var(--r-md); display: flex; gap: 10px; align-items: center; }
.feature-box svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.feature-box .l { font-size: 12px; color: var(--text-muted); }
.feature-box .v { font-size: 14px; font-weight: 600; }

/* Avatar */
.avatar {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.xl { width: 96px; height: 96px; font-size: 36px; }

/* Host request card */
.req-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.req-card .actions { display: flex; gap: 8px; }

/* Availability */
.avail-row-web {
  display: grid;
  grid-template-columns: 80px 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.avail-row-web:last-child { border-bottom: none; }
.slot-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-chip { padding: 6px 12px; background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-100); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; }
.slot-chip.closed { background: var(--surface); color: var(--text-muted); border-color: var(--border); }

.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0;
  background: var(--border-strong);
  border-radius: var(--r-full);
  transition: .2s;
  cursor: pointer;
}
.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

/* ---------- Badges ---------- */
.energy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
}
.energy-badge.solar { background: #FEF3C7; color: #B45309; }
.energy-badge.wind { background: #DBEAFE; color: #1D4ED8; }
.energy-badge.trad { background: var(--surface-2); color: var(--text-muted); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; color: var(--accent); }
.stars svg.off { color: var(--border-strong); }

/* Screens (sections) ------ */
.screen-web { display: none; }
.screen-web.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; animation: fade .2s; }
.modal-web {
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-web h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-web .sub { color: var(--text-muted); margin-bottom: 24px; }

/* Form fields */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: all .15s;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* Leaflet marker */
.custom-marker {
  width: 40px; height: 40px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.custom-marker svg { transform: rotate(45deg); color: #fff; width: 18px; height: 18px; }
.custom-marker.accent { background: var(--accent); }
.custom-marker.dark { background: var(--dark); }

/* ---------- Ad slot (Google Ads / partenaires) ---------- */
.ad-slot {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #FEFCE8 0%, #FFFFFF 100%);
  border: 1px solid #FDE68A;
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all .15s;
}
.ad-slot:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ad-slot::before {
  content: 'Annonce';
  position: absolute;
  top: 8px; right: 10px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .5px;
  z-index: 2;
}
.ad-slot .thumb {
  width: 80px; height: 80px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
}
.ad-slot .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad-slot .brand { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.ad-slot .title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ad-slot .subtitle { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
.ad-slot .cta { font-size: 12px; font-weight: 700; color: var(--primary-700); margin-top: auto; align-self: flex-start; }

/* ---------- Payment method cards (wallet / card) ---------- */
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .15s;
  background: var(--bg);
}
.payment-option:hover { border-color: var(--border-strong); }
.payment-option.active {
  border-color: var(--primary);
  background: var(--primary-50);
}
.payment-option input[type="radio"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.payment-option .po-body { flex: 1; min-width: 0; }
.payment-option .po-title {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.payment-option .po-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* ---------- Validation method option cards ---------- */
.validation-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .15s;
  background: var(--bg);
}
.validation-option:hover { border-color: var(--border-strong); background: var(--surface); }
.validation-option.active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.validation-option input[type="radio"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.validation-option .vo-body { flex: 1; }
.validation-option .vo-title {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.validation-option .vo-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.validation-option.disabled {
  opacity: .45;
  cursor: not-allowed;
  background: var(--surface);
}
.validation-option.disabled .vo-title::after {
  content: ' · Indisponible sur votre borne';
  color: var(--danger);
  font-weight: 500;
  font-size: 12px;
}

/* ---------- Stepper (page propose) ---------- */
.step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.step-pill span {
  width: 22px; height: 22px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.step-pill.active {
  background: var(--primary-50);
  border-color: var(--primary-100);
  color: var(--primary-700);
}
.step-pill.active span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ---------- Language picker ---------- */
.lang-picker {
  position: relative;
  display: inline-block;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.lang-trigger:hover { background: var(--surface-2); }
.lang-trigger .chev {
  font-size: 10px;
  color: var(--text-muted);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.lang-picker.open .lang-menu { display: flex; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: none;
  border: none;
  transition: background .15s;
}
.lang-option:hover { background: var(--surface); }
.lang-option.active { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-label { flex: 1; }
.lang-check { color: var(--primary); font-weight: 700; }

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.fw-700 { font-weight: 700; }
.fs-14 { font-size: 14px; }
.fs-13 { font-size: 13px; }
.fs-18 { font-size: 18px; }
.fs-24 { font-size: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ================================================================
   MOBILE — ajouté le 31/10/2026
   Mesure d'origine : à 375 px de large, la page faisait 1023 px.
   Trois paliers, placés en FIN de feuille pour qu'un modificateur
   suive toujours la règle de base qu'il modifie.
     860 px : la barre de navigation ne tient plus -> menu replié
     640 px : téléphone (typographie, grilles, marges)
     400 px : petit téléphone
   ================================================================ */

/* --- Remplacement des tailles de titre écrites en style en ligne --- */
.section-title.title-36 { font-size: 36px; }
.section-title.title-40 { font-size: 40px; }

/* --- Menu replié : la case à cocher porte l'état, aucun JavaScript --- */
.nav-burger-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-burger { display: none; }

@media (max-width: 860px) {
  .navbar { height: auto; }
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: var(--nav-h);
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo { flex: 1 1 auto; font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; }

  .nav-burger {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 11px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .nav-burger-input:focus-visible + .nav-burger { outline: 2px solid var(--text); outline-offset: 2px; }
  .nav-burger-input:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger-input:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-burger-input:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links, .nav-cta {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-burger-input:checked ~ .nav-links,
  .nav-burger-input:checked ~ .nav-cta { display: flex; }
  .nav-links { order: 3; padding-top: 10px; border-top: 1px solid var(--border); }
  .nav-cta   { order: 4; padding-bottom: 10px; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .nav-cta .btn { width: 100%; }

  /* Le choix de langue devient une ligne pleine largeur, menu déroulé en place */
  .lang-picker { width: 100%; }
  .lang-trigger { width: 100%; justify-content: space-between; }
  .lang-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .container, .container-wide { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero h1 .hl { white-space: normal; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .hero-grid { gap: 32px; }

  /* 4 colonnes dans 343 px, c'était la cause du débordement principal */
  .search-widget { grid-template-columns: 1fr; max-width: 100%; }
  .search-widget .btn { width: 100%; }

  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .hero-stat strong { font-size: 22px; }

  .hero-illu { aspect-ratio: auto; min-height: 300px; padding: 20px; }
  .hero-illu-card { position: static; margin-bottom: 10px; }

  .section-title,
  .section-title.title-36,
  .section-title.title-40 { font-size: 26px; letter-spacing: -.5px; }
  .section-sub { font-size: 16px; }

  .steps, .features-2col, .spots-grid, .testimonials,
  .host-cta, .features-2, .map-split, .spot-hero,
  .req-card, .avail-row-web, .spot-detail-grid { grid-template-columns: 1fr; }
  .host-cta { padding: 28px 20px; }
  .host-cta .box-calc .value { font-size: 28px; }

  .cta-banner { padding: 36px 20px; }
  .cta-banner h2 { font-size: 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }

  .btn-lg { width: 100%; }
  .modal-web { padding: 24px 20px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 29px; }
  .section-title,
  .section-title.title-36,
  .section-title.title-40 { font-size: 23px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* Titre de la page « Proposer ma borne » : sortie du style en ligne pour être
   réductible sur téléphone (un style en ligne ne se surcharge pas sans !important). */
.h1-42 { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin: 16px 0 12px; }
@media (max-width: 640px) { .h1-42 { font-size: 28px; letter-spacing: -.5px; } }
@media (max-width: 400px) { .h1-42 { font-size: 25px; } }

/* ================================================================
   Grilles sorties des styles en ligne (31/10/2026)
   Un style en ligne ne se surcharge pas : il fallait des classes
   pour que ces grilles puissent se replier sur téléphone.
   ================================================================ */
.g-2col { display: grid; grid-template-columns: 1fr 1fr; }
.g-4col { display: grid; grid-template-columns: repeat(4, 1fr); }
.g-2-1  { display: grid; grid-template-columns: 2fr 1fr; }
.g-1-2  { display: grid; grid-template-columns: 1fr 2fr; }
.phone-mock { width: 280px; height: 580px; }

@media (max-width: 860px) { .g-4col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .g-2col, .g-4col, .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
  .phone-mock { width: 100%; max-width: 280px; height: 560px; }
}

/* ================================================================
   Géolocalisation — « me localiser » (31/10/2026)
   ================================================================ */
.search-widget .cell { position: relative; }
.search-widget .cell input[data-champ-adresse] { padding-right: 38px; }
.topbar-search input[data-champ-adresse] { padding-right: 40px; }

.geo-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.geo-btn svg { width: 18px; height: 18px; }
.geo-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }
.geo-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.topbar-search .geo-btn-topbar { right: 6px; width: 30px; height: 30px; }
.topbar-search .geo-btn-topbar svg { width: 16px; height: 16px; }

.geo-map-btn {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 500;
  width: 42px; height: 42px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.geo-map-btn svg { width: 20px; height: 20px; }
.geo-map-btn:hover { color: var(--primary); border-color: var(--primary); }

.geo-btn.occupe, .geo-map-btn.occupe { opacity: .65; pointer-events: none; }
.geo-btn.occupe svg, .geo-map-btn.occupe svg { animation: geo-tourne 1s linear infinite; }
@keyframes geo-tourne { to { transform: rotate(360deg); } }

/* Le point « vous êtes ici » posé sur la carte */
.geo-moi { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.geo-moi-pt {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 2px 6px rgba(0,0,0,.3);
}

/* ============================================================
   Calculateur de recharge (panneau de réservation)
   Écrit en classes, jamais en style inline : une grille posée en
   inline ne peut plus être redressée par une requête de média,
   et c'est exactement ce qui avait cassé l'affichage téléphone.
   ============================================================ */
.bk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.calc-unit { position: relative; display: flex; align-items: center; }
.calc-unit .input { padding-right: 46px; }
.calc-unit > span {
  position: absolute; right: 12px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  pointer-events: none;
}
.calc-fixe .input { background: var(--surface-2); color: var(--text-muted); cursor: default; }

.calc {
  margin-top: 4px; padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.calc-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted); margin-bottom: 10px;
}
.calc-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.calc-mode {
  padding: 8px 6px; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.calc-mode:hover { border-color: var(--border-strong); color: var(--text); }
.calc-mode.active {
  background: var(--primary-50); color: var(--primary-700);
  border-color: var(--primary); 
}
.calc-pane .field:last-child { margin-bottom: 0; }
.calc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-grid2 .field { margin-bottom: 0; }

.calc-res { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.calc-line > span { color: var(--text-muted); }
.calc-line > strong { font-weight: 600; white-space: nowrap; }
.calc-line.calc-min > span,
.calc-line.calc-min > strong { font-style: italic; color: var(--text-soft); }
.calc-sep { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.calc-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border);
}
.calc-total > span { font-size: 16px; font-weight: 700; }
.calc-total > strong { font-size: 24px; font-weight: 800; color: var(--primary-700); white-space: nowrap; }
.calc-note { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 10px 0 0; }
.calc-note.calc-bride {
  margin: 0 0 8px; padding: 8px 10px;
  background: var(--accent-50); color: #92400E;
  border-radius: var(--r-sm);
}

/* Téléphone : les deux colonnes ne tiennent plus, les modes non plus. */
@media (max-width: 640px) {
  .bk-row2, .calc-grid2 { grid-template-columns: 1fr; }
  .calc-modes { grid-template-columns: 1fr; }
  .calc-total > strong { font-size: 21px; }
}

/* ============================================================
   Comment l'hôte veut être payé (écran Paiements)
   ============================================================ */
.payout-choix { display: grid; gap: 10px; }
.payout-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.payout-option:hover { border-color: var(--border-strong); }
.payout-option.active { border-color: var(--primary); background: var(--primary-50); }
.payout-option input { margin-top: 3px; accent-color: var(--primary); flex: 0 0 auto; }

.payout-msg {
  margin-top: 12px; padding: 10px 12px;
  font-size: 13px; line-height: 1.5;
  border-radius: var(--r-sm);
}
.payout-msg.payout-info { background: var(--surface); color: var(--text-muted); }
.payout-msg.payout-ok { background: var(--primary-50); color: var(--primary-700); }
.payout-msg.payout-avert { background: var(--accent-50); color: #92400E; }

/* ============================================================
   Écrans applicatifs sur téléphone — la barre latérale en tiroir
   ------------------------------------------------------------
   ⛔ Mesuré le 02/11/2026 : à 375 px, scrollWidth valait 552 px.
   `.app-layout` est une grille `240px 1fr` et la barre latérale
   restait DANS LE FLUX : `main` démarrait à x=240 et finissait à
   552. Aucune requête de média ne la repliait. L'accueil public,
   lui, tenait bien à 375 px.
   Le bouton vit dans la barre supérieure de `app-map`, qui sert de
   gabarit cloné dans tous les autres écrans : une seule retouche.
   ============================================================ */
.app-burger { display: none; }

@media (max-width: 860px) {
  .app-layout { grid-template-columns: 1fr; }

  .app-burger {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 40px; height: 40px; padding: 8px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
  }
  .app-burger svg { width: 22px; height: 22px; }

  /* Sortie du flux : c'est elle qui poussait le contenu hors de l'écran. */
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 264px; max-width: 86vw;
    height: 100%;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-layout.menu-ouvert .sidebar { transform: translateX(0); }

  /* Le voile, sans balise supplémentaire. */
  .app-layout.menu-ouvert::after {
    content: ''; position: fixed; inset: 0;
    background: rgba(10, 15, 26, .45);
    z-index: 50;
  }

  .topbar { padding: 0 16px; gap: 12px; }
  .content, .content-wide { padding-left: 16px; padding-right: 16px; }
}

/* Le tiroir n'a aucun sens au-delà : on le remet dans le flux. */
@media (min-width: 861px) {
  .app-layout.menu-ouvert .sidebar { transform: none; }
}

/* ------------------------------------------------------------
   ⛔ L'ECLATEMENT DE GRILLE — la vraie cause du débordement
   ------------------------------------------------------------
   Sortir la barre latérale du flux ne suffisait pas : `main` mesurait
   encore 670 px dans une fenêtre de 375. Un `1fr` vaut en réalité
   `minmax(auto, 1fr)`, et ce minimum `auto` est la largeur MINIMALE DU
   CONTENU : la colonne grossit donc au-delà de son conteneur, et aucune
   requête de média n'y change rien. Il faut `minmax(0, 1fr)` sur la
   colonne ET `min-width: 0` sur l'élément de grille, sinon le contenu
   impose sa loi.
   Mesuré le 02/11/2026 : app-profile 670 px, app-bookings 592, app-host
   587, app-payments 581, app-host-station 545, app-spot 422.
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .main { min-width: 0; }
  .content, .content-wide { min-width: 0; }

  /* La barre supérieure passe sur deux rangs : la recherche dessous. */
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding: 10px 16px;
  }
  .topbar-search {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
  .topbar-actions { margin-left: auto; }

  /* Les en-têtes de page portent un bouton à droite : il descend. */
  .page-head { flex-wrap: wrap; gap: 12px; }

  /* Les tableaux larges défilent DANS leur carte, pas dans la page. */
  .card { overflow-x: auto; }
  .table { min-width: 0; }
}

/* ================================================================
   Grilles — toutes les colonnes en minmax(0, …)   (02/11/2026)
   ----------------------------------------------------------------
   ⛔ `1fr` vaut `minmax(auto, 1fr)` : le minimum est la largeur
   MINIMALE DU CONTENU, donc une colonne unique peut être plus large
   que son conteneur. Mesuré : `.spot-detail-grid` à 389,8 px et
   `.req-card` à 349,8 px dans une fenêtre de 375, alors que les deux
   étaient DÉJÀ sur une seule colonne. `minmax(0, …)` l'interdit.
   Ces règles sont placées APRÈS les définitions de base, qu'elles
   corrigent — voir la règle du modificateur après la base.
   ================================================================ */
.g-2col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1  { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2  { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-15-1 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }

@media (max-width: 860px) {
  .g-4col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .g-2col, .g-4col, .g-2-1, .g-1-2, .g-3col, .g-15-1,
  .spot-detail-grid, .req-card, .features-2, .features-2col, .map-split,
  .spot-hero, .avail-row-web, .steps, .spots-grid, .testimonials,
  .host-cta, .footer-grid, .hero-stats, .search-widget {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Un élément de grille garde min-width:auto par défaut : il peut donc
     imposer sa largeur à la colonne. On le lui retire. */
  .g-2col > *, .g-4col > *, .g-2-1 > *, .g-1-2 > *, .g-3col > *, .g-15-1 > *,
  .spot-detail-grid > *, .req-card > *, .features-2 > *, .map-split > * {
    min-width: 0;
  }
}

/* Le fil des étapes et les boutons d'une demande : des rangées en flex qui
   ne se repliaient pas. Mesuré à 375 px : le fil montait à 560 px, les
   boutons à 383. Le conteneur du fil était écrit en style en ligne — il a
   reçu une classe, puisqu'un style en ligne ne se surcharge pas. */
.stepper { display: flex; }
@media (max-width: 640px) {
  .stepper { flex-wrap: wrap; }
  .req-card .actions { flex-wrap: wrap; }
  .req-card .actions .btn { flex: 1 1 auto; }
}
