/* =========================================================
   ON WAY — Compagnie de Transport
   Design system — luxury tropical Caraïbes
   ========================================================= */

:root {
  /* Palette — noir dominant + accents Caraïbes */
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --ink-mute: #4a4a4a;
  --paper: #faf8f3;
  --paper-warm: #f0ebe0;
  --paper-darker: #e8e2d4;
  --turquoise: #0d9488;
  --turquoise-deep: #0f766e;
  --turquoise-light: #5eead4;
  --sand: #c9a978;
  --sand-deep: #a88a5a;
  --gold: #f5b800;
  --mangrove: #1a3d2e;
  --coral: #e87461;
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.14);

  /* Typo */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-editorial: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

/* =========================================================
   Base reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden; /* Sécurité globale contre les débordements horizontaux */
}

/* Sécurité : éviter le débordement horizontal causé par éléments inline (long mots, URLs collées) */
p, h1, h2, h3, h4, h5, h6, li, td, .card, .dash-panel {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Mobile bottom CTA — masqué par défaut (desktop), visible uniquement sur mobile */
.mobile-bottom-cta { display: none; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* =========================================================
   Typography
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p { color: var(--ink-mute); max-width: 65ch; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight { max-width: 980px; }
.container-wide { max-width: 1500px; }

.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-compact { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

/* =========================================================
   Navbar — floating glass pill
   ========================================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1320px;
  background: rgba(250, 248, 243, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.08);
}
.nav.scrolled {
  background: rgba(250, 248, 243, 0.92);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand-mark {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-brand-mark img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 0.6; }
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform .3s var(--ease-out);
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-spring);
  visibility: hidden;
}
.nav-mobile.open { transform: translateY(0); visibility: visible; }
.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); }

.btn-accent {
  background: var(--turquoise);
  color: white;
}
.btn-accent:hover { background: var(--turquoise-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-light {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
}
.btn-light:hover { background: rgba(255,255,255,0.22); }

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }

/* button-in-button — nested icon pill */
.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  transition: transform .25s var(--ease-out);
}
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-primary .btn-icon { background: rgba(255,255,255,0.16); }
.btn-ghost .btn-icon { background: rgba(10,10,10,0.06); }
.btn-ghost:hover .btn-icon { background: rgba(255,255,255,0.16); }

/* =========================================================
   Hero — cinematic
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 64px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 169, 120, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 2;
}
.hero-bg img,
.hero-bg .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.1);
}
.hero-content { position: relative; z-index: 5; }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  margin-bottom: 32px;
  font-weight: 700;
}
.hero h1 .editorial {
  color: var(--turquoise-light);
  font-size: 0.9em;
  display: inline-block;
}
.hero-sub {
  max-width: 580px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(250, 248, 243, 0.78);
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  position: absolute;
  bottom: 32px;
  right: 24px;
  z-index: 5;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 243, 0.5);
  line-height: 1.8;
}

/* =========================================================
   Sections / Cards
   ========================================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-header-text { max-width: 720px; }
.section-header h2 { margin-bottom: 16px; margin-top: 16px; }
.section-header p { font-size: 1.05rem; }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: all .3s var(--ease-out);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.12);
}
.card-feature {
  position: relative;
  overflow: hidden;
}
.card-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--ink);
}
.card-feature-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.card-feature h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card-feature p { font-size: 0.95rem; line-height: 1.55; }

/* Service tile (large, image bg) */
.service-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: white;
  background: var(--ink);
  isolation: isolate;
  cursor: pointer;
}
.service-tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform .8s var(--ease-out);
}
.service-tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.85) 100%);
}
.service-tile:hover .service-tile-bg { transform: scale(1.05); }
.service-tile-bg img { width: 100%; height: 100%; object-fit: cover; }
.service-tile-content { position: relative; z-index: 2; }
.service-tile h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.service-tile p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  max-width: 32ch;
}
.service-tile-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
}

/* =========================================================
   Steps — comment ça marche
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  position: relative;
  padding: 40px 24px 32px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--turquoise);
  margin-bottom: 24px;
}
.step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { font-size: 0.98rem; line-height: 1.55; }

/* =========================================================
   Price calculator preview
   ========================================================= */
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 40px 80px -40px rgba(10, 10, 10, 0.18);
}
.price-card-inner {
  background: var(--paper);
  border-radius: 22px;
  padding: 32px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-row:last-child { border-bottom: none; }
.price-row .mono { font-size: 1rem; }
.price-row.total {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  font-weight: 600;
}
.price-row.total .mono { font-size: 1.4rem; }
.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.price-input-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}
.input,
.select,
.textarea {
  width: 100%;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px; /* 16px minimum pour éviter le zoom iOS au focus */
  color: var(--ink);
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px; /* touch target */
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: white;
}
.textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   FAQ — accordion
   ========================================================= */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: opacity .2s;
}
.faq-q:hover { opacity: 0.7; }
.faq-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .3s var(--ease-out);
}
.faq-toggle::before { width: 14px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 14px; }
.faq-item.open .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--ink-mute);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 80ch;
}
.faq-item.open .faq-a { max-height: 600px; }

/* =========================================================
   Stat strip
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: white;
}
.stat {
  padding: 32px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num small { font-size: 0.5em; color: var(--turquoise); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(250, 248, 243, 0.62);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--paper); }
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--paper);
  margin-bottom: 24px;
}
.footer-brand .editorial { color: var(--turquoise-light); font-weight: 400; }
.footer-tagline {
  color: rgba(250, 248, 243, 0.62);
  font-size: 0.95rem;
  max-width: 36ch;
  margin-bottom: 24px;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 248, 243, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 243, 0.5);
}
.footer-bottom a { color: rgba(250, 248, 243, 0.5); margin-right: 16px; }
.footer-bottom a:hover { color: var(--paper); }
.footer-massive {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 20vw, 18rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: rgba(250, 248, 243, 0.04);
  position: absolute;
  bottom: -2vw;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

/* =========================================================
   Marquee — communes
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-x 60s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.marquee-item { display: flex; align-items: center; gap: 48px; }
.marquee-item::after {
  content: "✦";
  color: var(--turquoise);
  font-size: 0.6em;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Tags / badges / pills
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  background: var(--paper-warm);
  color: var(--ink);
}
.badge-turquoise { background: rgba(13, 148, 136, 0.12); color: var(--turquoise-deep); }
.badge-sand { background: rgba(201, 169, 120, 0.18); color: var(--sand-deep); }
.badge-coral { background: rgba(232, 116, 97, 0.14); color: var(--coral); }
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* =========================================================
   Announce bar
   ========================================================= */
.announce {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 99;
}
.announce a { color: var(--turquoise-light); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   CTA section — full bleed
   ========================================================= */
.cta-block {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(13, 148, 136, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201, 169, 120, 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--paper); margin-bottom: 24px; }
.cta-block p { color: rgba(250, 248, 243, 0.72); margin-bottom: 32px; font-size: 1.1rem; }

/* =========================================================
   Map / Zone
   ========================================================= */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.commune-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.commune-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.commune-item .mono {
  font-size: 11px;
  color: var(--turquoise);
  letter-spacing: 0.1em;
}
.zone-graphic {
  aspect-ratio: 1 / 1;
  background: var(--paper-warm);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* =========================================================
   Auth forms
   ========================================================= */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.auth-visual {
  background: var(--ink);
  color: var(--paper);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(13, 148, 136, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(201, 169, 120, 0.3) 0%, transparent 50%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 12px; }
.auth-form p { margin-bottom: 32px; }
.auth-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--paper-warm);
  border-radius: 14px;
  margin-bottom: 32px;
}
.auth-role-btn {
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-mute);
  transition: all .2s var(--ease-out);
  text-align: center;
  cursor: pointer;
}
.auth-role-btn.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(10,10,10,0.06);
}

/* =========================================================
   Dashboard layouts
   ========================================================= */
.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100dvh;
  background: var(--paper-warm);
}
.dash-side {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.dash-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(250, 248, 243, 0.62);
  transition: all .2s;
}
.dash-nav a svg { width: 18px; height: 18px; stroke-width: 1.6; }
.dash-nav a:hover { background: rgba(255,255,255,0.05); color: var(--paper); }
.dash-nav a.active { background: rgba(255,255,255,0.08); color: var(--paper); }
.dash-side-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dash-main { padding: 32px clamp(24px, 4vw, 48px); }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.dash-kpi {
  background: white;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
}
.dash-kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.dash-kpi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.dash-kpi-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--turquoise);
}
.dash-kpi-delta.neg { color: var(--coral); }

.dash-panel {
  background: white;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-panel-head h3 { font-size: 1.1rem; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.dash-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.dash-table tr:last-child td { border-bottom: none; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.status-success { background: rgba(13, 148, 136, 0.12); color: var(--turquoise-deep); }
.status-pending { background: rgba(201, 169, 120, 0.18); color: var(--sand-deep); }
.status-active  { background: rgba(13, 148, 136, 0.16); color: var(--turquoise-deep); }
.status-active::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); animation: pulse 2s infinite; }
.status-cancel  { background: rgba(232, 116, 97, 0.14); color: var(--coral); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Toast / contact float
   ========================================================= */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -16px rgba(10,10,10,0.4);
  transition: transform .2s var(--ease-out);
}
.float-btn:hover { transform: translateY(-3px); }
.float-btn.whatsapp { background: #25d366; color: white; }
.float-btn svg { width: 22px; height: 22px; stroke-width: 2; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .map-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { min-height: 280px; padding: 32px; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px 14px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    /* Indicateur de scroll : gradient subtil à droite */
    background: linear-gradient(to right, var(--ink) 0%, var(--ink) 92%, rgba(10,10,10,0.85) 100%);
  }
  /* Bouton Déconnexion : visible dans la nav horizontale mobile */
  .dash-side-foot {
    display: flex;
    flex-shrink: 0;
    margin-left: auto; /* pousse à droite */
    padding: 0;
  }
  .dash-side-foot a {
    padding: 10px 14px !important;
    font-size: 13px;
    border-radius: 8px;
    background: rgba(232,116,97,0.18);
    color: var(--paper) !important;
    white-space: nowrap;
  }
  .dash-side-foot a svg { width: 16px; height: 16px; }
  .dash-nav { display: flex; gap: 4px; flex-shrink: 0; }
  .dash-side-brand { padding: 8px 12px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta-group .btn { display: none; }
  .nav-burger { display: flex; }
  .nav { top: 12px; padding: 8px 8px 8px 20px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .commune-list { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { display: none; }
  /* Tableaux : scroll horizontal au lieu de masquer des colonnes
     (un chauffeur DOIT voir Prix/Distance/Statut/Actions sur son téléphone).
     On rend le tableau scrollable horizontalement via un wrapper natif. */
  .dash-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }
  /* Re-active le layout table à l'intérieur du wrapper scrollable */
  .dash-table > thead, .dash-table > tbody { display: table; width: 100%; min-width: 640px; }
  .dash-table th, .dash-table td { white-space: nowrap; }
  /* La 1ʳᵉ colonne (date/nom) peut wrap pour économiser de la place */
  .dash-table th:first-child, .dash-table td:first-child { white-space: normal; }
  /* Indicateur visuel discret qu'on peut scroller */
  .dash-panel { position: relative; }

  /* ─── Lisibilité mobile : taille des libellés "mono" et "eyebrow" augmentée ─── */
  .eyebrow { font-size: 12px; letter-spacing: 0.18em; }
  .mono[style*="font-size: 10px"],
  .mono[style*="font-size:10px"] { font-size: 12px !important; }
  .mono[style*="font-size: 11px"],
  .mono[style*="font-size:11px"] { font-size: 12px !important; }
  /* Textes secondaires souvent passés en inline 12-13px → minimum 14px sur mobile */
  [style*="font-size: 12px"][style*="color: var(--ink-mute)"],
  [style*="font-size:12px"][style*="color: var(--ink-mute)"],
  [style*="font-size: 13px"][style*="color: var(--ink-mute)"],
  [style*="font-size:13px"][style*="color: var(--ink-mute)"] { font-size: 14px !important; line-height: 1.4 !important; }
  /* Body : augmente la taille de base pour le confort de lecture */
  body { font-size: 17px; }
  /* Nav dashboard horizontal : items compacts (sinon ne tiennent pas tous à l'écran) */
  .dash-nav a {
    padding: 10px 12px !important;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Sur mobile, on cache le SVG des nav dashboard pour gagner de la place et tout afficher */
  .dash-nav a svg { width: 16px; height: 16px; }
  /* Le brand "ON WAY" sidebar : caché sur très petit écran (le logo seul suffit) */
  .dash-side-brand span:last-child { display: none; }
  .dash-side-brand { padding: 4px 8px !important; }
  /* Boutons : taille minimum tactile 44px */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; padding: 10px 16px !important; font-size: 14px; }
  /* KPI dashboards : labels mieux espacés */
  .dash-kpi-label { font-size: 13px; }
  .dash-kpi-value { font-size: 1.9rem; }
  .dash-kpi-delta { font-size: 13px; }

  /* Sections : padding vertical drastiquement réduit (était 64-140px) */
  .section { padding: 48px 0; }
  .section-compact { padding: 32px 0; }

  /* Container : padding latéral plus serré sur mobile */
  .container { padding: 0 16px; }

  /* Cards : padding adaptatif */
  .card { padding: 20px; }
  .dash-panel { padding: 18px; }

  /* Hero : pas trop grand sur mobile */
  .hero { padding: 90px 0 40px; min-height: auto; }
  .hero h1 { margin-bottom: 16px; }

  /* Section header : moins de marge */
  .section-header { margin-bottom: 24px; gap: 12px; }

  /* Images : sécurité responsive */
  img, video, svg { max-width: 100%; height: auto; }

  /* Titres : line-height confortable */
  h1, h2, h3 { line-height: 1.15; }
}
@media (max-width: 480px) {
  .dash-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 32px; }
  .card { padding: 18px; }
  /* Plus petit écran : on relève encore le confort */
  body { font-size: 17px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.25rem; }
  .section { padding: 36px 0; }
  /* Container plus serré sur très petit écran */
  .container { padding: 0 14px; }
}

/* =========================================================
   Mobile fix — force inline grids to collapse to single column
   (inline styles otherwise override responsive class rules)
   ========================================================= */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Force inline grid items to take full width on mobile */
  [style*="grid-template-rows: 1fr 1fr"],
  [style*="grid-template-rows:1fr 1fr"] {
    grid-template-rows: auto auto !important;
  }
  /* Reset order:-1 reversals on mobile so visual+text stack naturally */
  [style*="order: -1"],
  [style*="order:-1"] {
    order: 0 !important;
  }
  /* Service tiles : reduce min-height on mobile */
  .service-tile[style*="min-height: 480px"],
  .service-tile[style*="min-height:480px"] {
    min-height: 320px !important;
  }
  /* Stats inside testimonials/grids : wrap properly */
  [style*="display: flex"][style*="gap: 32px"] {
    flex-wrap: wrap !important;
  }
  /* Stat value numbers should not break weirdly */
  .display {
    word-break: normal;
    overflow-wrap: normal;
  }
  /* Inline padding huge values reduce on mobile */
  [style*="padding: 40px"],
  [style*="padding:40px"] {
    padding: 24px !important;
  }
  [style*="padding: 48px"],
  [style*="padding:48px"] {
    padding: 24px !important;
  }
  [style*="padding: 60px"],
  [style*="padding:60px"] {
    padding: 28px !important;
  }
  /* Modal overlays inline : padding réduit sur mobile + scroll vertical */
  [style*="position: fixed"][style*="inset: 0"] {
    padding: 12px !important;
    -webkit-overflow-scrolling: touch;
  }
  /* Cartes de modal : prennent tout l'écran mobile, padding plus serré */
  [style*="position: fixed"][style*="inset: 0"] > div[style*="max-width:"] {
    max-width: 100% !important;
    padding: 24px !important;
    border-radius: 16px !important;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* =========================================================
     MOBILE — Fixes systémiques (issus de l'audit complet)
     ========================================================= */

  /* 1. Headers de page (sections avec padding 160px en haut) → 100px sur mobile */
  section[style*="padding: 160px 0 64px"],
  section[style*="padding:160px 0 64px"] { padding: 100px 0 40px !important; }
  section[style*="padding: 160px 0 120px"],
  section[style*="padding:160px 0 120px"] { padding: 100px 0 48px !important; }
  section[style*="padding: 160px"]:not([style*="padding: 160px 0 64px"]):not([style*="padding: 160px 0 120px"]) { padding: 100px 0 40px !important; }

  /* 2. Touch targets ≥ 44px (norme Apple HIG / Android Material) */
  .btn-sm { min-height: 44px !important; padding: 12px 18px !important; font-size: 14px; }
  .filter-chip { min-height: 38px; padding: 10px 14px; font-size: 13px; }
  .row-actions button { width: 40px !important; height: 40px !important; }
  /* Boutons "fermeture" de modals (id contient close ou ×) */
  button[id$="-close"], button[id*="close-"] { width: 44px !important; height: 44px !important; }

  /* 3. Extension du catch des grids inline non-standardisés */
  [style*="grid-template-columns: auto 1fr auto"],
  [style*="grid-template-columns:auto 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  [style*="grid-template-columns: 3fr 1fr"],
  [style*="grid-template-columns:3fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 4. Inline font-size sur h1/h2/h3 → réduit pour mobile */
  h2[style*="font-size: 2rem"], h2[style*="font-size:2rem"],
  h2[style*="font-size: 2.2rem"], h2[style*="font-size:2.2rem"],
  h2[style*="font-size: 1.8rem"], h2[style*="font-size:1.8rem"],
  h2[style*="font-size: 1.6rem"], h2[style*="font-size:1.6rem"] {
    font-size: 1.5rem !important;
  }
  h3[style*="font-size: 1.6rem"], h3[style*="font-size:1.6rem"],
  h3[style*="font-size: 1.5rem"], h3[style*="font-size:1.5rem"],
  h3[style*="font-size: 1.4rem"], h3[style*="font-size:1.4rem"] {
    font-size: 1.25rem !important;
  }

  /* 5. Padding inline 32-60px sur cards et panels → réduit drastiquement */
  [style*="padding: 32px 40px"], [style*="padding:32px 40px"],
  [style*="padding: 48px 40px"], [style*="padding:48px 40px"] {
    padding: 22px 16px !important;
  }
  /* Padding inline 36px (modals) → 22px */
  [style*="padding: 36px"]:not([style*="padding: 36px 22"]) { padding: 22px !important; }
  /* Margin-bottom 64-120px entre sections → drastique réduction */
  [style*="margin-bottom: 120px"], [style*="margin-bottom:120px"] { margin-bottom: 48px !important; }
  [style*="margin-bottom: 80px"], [style*="margin-bottom:80px"] { margin-bottom: 40px !important; }
  [style*="margin-bottom: 64px"], [style*="margin-bottom:64px"] { margin-bottom: 32px !important; }

  /* 6. Hero : pas plein écran sur mobile (était min-height: 100dvh) */
  .hero { min-height: auto !important; padding: 100px 0 48px !important; }

  /* 7. Service tiles : padding/min-height réduits */
  .service-tile { padding: 22px !important; min-height: 280px !important; }
  .service-tile h3[style*="font-size"] { font-size: 1.3rem !important; }

  /* 8. Footer : moins gourmand */
  .footer { padding: 48px 0 24px; }
  .footer-grid { gap: 28px; margin-bottom: 32px; }
  .footer-massive { display: none; } /* texte décoratif géant retiré sur mobile */

  /* 9. Booking (reservation.html) : padding du formulaire CRITIQUE */
  .booking-top { padding: 12px 16px !important; }
  .booking-form-panel { padding: 20px 16px !important; }
  .booking-visual-panel { padding: 24px 16px !important; }
  .booking-visual-panel .display { font-size: clamp(2.4rem, 11vw, 4rem) !important; }

  /* 10. CTA block : padding plus humain */
  .cta-block { padding: 32px 20px !important; border-radius: 20px !important; }

  /* 11. Legal pages */
  .legal { padding: 100px 0 56px !important; }

  /* 12. Tables hors-dashboard (confidentialite, services) : sécurité scroll */
  .data-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table > thead, .data-table > tbody { display: table; width: 100%; min-width: 480px; }

  /* 13. Stepper réservation : font + spacing réduit pour tenir sur 360px */
  .stepper-item { font-size: 11px; }
  .stepper { gap: 8px; }

  /* 14. Boutons inline trop compacts (Maps/Waze, ★ Noter, etc.) — élargir le clic */
  a[style*="padding: 6px 10px"], a[style*="padding:6px 10px"],
  button[style*="padding: 6px 10px"], button[style*="padding:6px 10px"],
  button[style*="padding: 6px 12px"], button[style*="padding:6px 12px"] {
    padding: 10px 14px !important;
    font-size: 13px !important;
    min-height: 38px;
  }

  /* 15. Inputs natifs type="number" avec width inline réduit */
  input[type="number"][style*="width: 80px"] { width: 100% !important; min-height: 44px; }

  /* 16. Banner active-ride (passager) : grille 4 cols → 2x2 plus compact */
  #active-ride-banner [style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  /* Bouton "Annuler ma course" : large, visible, en bas du banner */
  #ride-cancel-actions {
    flex-basis: 100% !important;
    order: 99 !important;
    width: 100% !important;
    margin-top: 16px;
  }
  #ride-cancel-btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 14px;
    padding: 14px 20px !important;
  }
  /* "Appeler le chauffeur" : large aussi */
  #ride-driver-actions {
    flex-basis: 100% !important;
    width: 100%;
    margin-top: 12px;
  }
  #ride-call-btn { width: 100%; min-height: 48px; justify-content: center; }

  /* 17. Dashboard layout : padding adapté + header plus compact */
  .dash-main { padding: 16px 14px; }
  .dash-header { margin-bottom: 20px; gap: 12px; }
  .dash-header h1 { font-size: 1.6rem; }
  .dash-grid { gap: 12px; margin-bottom: 20px; }
  .dash-kpi { padding: 18px 16px; }
  .dash-kpi-value { font-size: 1.7rem; }

  /* 18. Sidebar dashboard (en mode horizontal mobile) : indication scroll */
  .dash-side { padding: 12px 14px !important; gap: 8px !important; }
  .dash-nav a { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
  .dash-side-brand { padding: 6px 10px !important; flex-shrink: 0; }

  /* 19. Sticky bottom CTA universel pour les pages publiques (réserver) */
  /* Activé par ajout de la classe .has-bottom-cta sur le body */
  body.has-bottom-cta { padding-bottom: 80px; }
  .mobile-bottom-cta {
    display: flex !important; /* override le display:none de la règle globale */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 248, 243, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 90;
    gap: 8px;
  }
  .mobile-bottom-cta .btn { flex: 1; }

  /* 20. Tarifs : grilles tarifaires VTC plus compactes */
  .card[style*="padding: 32px"], .card[style*="padding:32px"] { padding: 20px !important; }
}

/* Très petit écran (iPhone SE) : encore plus serré */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .card { padding: 16px !important; }
  .dash-panel { padding: 14px !important; }
  .hero { padding: 80px 0 32px !important; }
  body { font-size: 16px; } /* on revient à 16 sur très petit écran (la place est précieuse) */
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}
}

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.text-mute { color: var(--ink-mute); }
.text-turquoise { color: var(--turquoise); }
.text-sand { color: var(--sand-deep); }
.bg-paper { background: var(--paper); }
.bg-paper-warm { background: var(--paper-warm); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h2, .bg-ink h3 { color: var(--paper); }
.bg-ink p { color: rgba(250, 248, 243, 0.72); }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Noise overlay — subtle film grain */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Google Places Autocomplete (new PlaceAutocompleteElement)
   ========================================================= */
gmp-place-autocomplete,
.onway-pac-element {
  display: block;
  width: 100%;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  /* Custom properties exposed by the Maps web component */
  --gmpx-color-surface: var(--paper-warm);
  --gmpx-color-on-surface: var(--ink);
  --gmpx-color-on-surface-variant: var(--ink-mute);
  --gmpx-color-primary: var(--ink);
  --gmpx-font-family-base: inherit;
  --gmpx-font-family-headings: inherit;
  --gmpx-font-size-base: 0.95rem;
}
gmp-place-autocomplete:focus-within,
.onway-pac-element:focus-within {
  border-color: var(--ink);
  background: white;
}
/* Wrap around the autocomplete inside .input-with-action so the geo button stays aligned */
.input-with-action gmp-place-autocomplete,
.input-with-action .onway-pac-element {
  flex: 1;
}

/* Force light color scheme pour éviter le fullscreen modal noir sur mobile */
gmp-place-autocomplete,
.onway-pac-element {
  color-scheme: light;
}

/* Sur mobile, le composant se développe en fullscreen modal — on force un fond clair */
@media (max-width: 768px) {
  gmp-place-autocomplete::part(input),
  gmp-place-autocomplete::part(predictions-container) {
    background: white !important;
    color: var(--ink) !important;
  }
  gmp-place-autocomplete {
    background: white !important;
    --gmpx-color-surface: #ffffff;
    --gmpx-color-on-surface: var(--ink);
  }
}
