/* ============================================================
   TazGo — Système visuel
   Direction : Apple-premium, minimaliste, accent vert lime
   ============================================================ */

:root {
  /* Couleurs */
  --ink: #0a0a0a;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --hairline: #e6e6e8;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ececef;
  --accent: #c6f432;
  --accent-deep: #aadb14;
  --accent-ink: #0a0a0a;
  --dark: #0a0a0a;
  --dark-2: #161617;

  /* Typo */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Manrope", system-ui, "Segoe UI", sans-serif;

  /* Rythme */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 8.5vw, 116px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-title {
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.lede {
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--muted);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn .arr {
  transition: transform 0.4s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover {
  background: #000;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--hairline);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn-light-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-light-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s, height 0.4s var(--ease);
}
.header.solid {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  height: 60px;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.25s, color 0.25s;
}
.nav a:hover {
  background: var(--bg-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toggle FR/EN */
.lang {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
}
.header.solid .lang {
  background: rgba(0, 0, 0, 0.06);
}
.lang button {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s, background 0.25s;
}
.lang button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  position: relative;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.hamburger span::before {
  top: -6px;
}
.hamburger span::after {
  top: 6px;
}
body.menu-open .hamburger span {
  background: transparent;
}
body.menu-open .hamburger span::before {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .hamburger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--pad);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.mobile-menu a {
  font-size: 9vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu .btn {
  margin-top: 28px;
  height: 58px;
  font-size: 18px;
}

/* ============================================================
   SCÈNE 3D + HÉRO
   ============================================================ */
.scene-stage {
  position: relative;
  height: 340vh;
}
.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(
      130% 100% at 50% 0%,
      #ffffff 0%,
      #f3f4ee 55%,
      #eef0e6 100%
    );
}
#bike-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Halo lumineux derrière le vélo */
.scene-sticky::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(198, 244, 50, 0.16) 0%,
    rgba(198, 244, 50, 0) 62%
  );
  pointer-events: none;
}

/* Overlays texte par phase, alignés au scroll */
.scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  opacity: 0;
  will-change: opacity, transform;
}
/* Only the active phase should capture clicks. The phase overlays are stacked
   (position:absolute; inset:0) and the hidden ones keep opacity:0 — without
   this, the invisible phase-2/3 captions sit on top of the hero and swallow
   clicks on the "Réserver" / "Voir les services" buttons. pointer-events is
   toggled per phase from app.js based on its current opacity. */
.phase {
  pointer-events: none;
}
.phase-1 {
  opacity: 1;
  pointer-events: auto;
}

/* Héro (phase 1) */
.phase-1.hero {
  justify-content: flex-start;
  padding-top: clamp(92px, 13vh, 150px);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(247, 248, 243, 0.94) 0%,
    rgba(247, 248, 243, 0.7) 36%,
    rgba(247, 248, 243, 0.34) 56%,
    rgba(247, 248, 243, 0) 74%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.3);
}
.hero h1 {
  margin-bottom: 22px;
}
.hero .lede {
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Légendes phases 2 & 3 */
.phase-caption {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.phase-caption.bottom {
  justify-content: flex-end;
  align-self: flex-end;
}
.phase-caption .eyebrow {
  margin-bottom: 14px;
  display: block;
}
.phase-caption h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  max-width: 16ch;
}
.phase-caption p {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
}
.phase-2 {
  text-align: left;
}
.phase-3 {
  text-align: left;
}
.phase-3 .phase-caption {
  margin-left: auto;
  text-align: right;
}
.phase-3 .phase-caption h2,
.phase-3 .phase-caption p {
  margin-left: auto;
}

/* Indicateur scroll */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.4s;
}
.scroll-hint .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--muted-2), transparent);
  animation: scrollLine 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
    transform-origin: bottom;
  }
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
section.block {
  padding: clamp(80px, 11vw, 168px) 0;
  position: relative;
}
.section-head {
  max-width: 880px;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 20px;
}
.section-head .lede {
  margin-top: 24px;
  max-width: 620px;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: clamp(48px, 6vw, 88px) clamp(16px, 3vw, 40px);
  text-align: center;
  border-left: 1px solid var(--hairline);
}
.stat:first-child {
  border-left: none;
}
.stat .num {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
}
.stat .num .unit {
  color: var(--accent-deep);
}
.stat .label {
  margin-top: 14px;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 3.4vw, 48px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.plan.featured {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.plan.featured h3,
.plan.featured .price .amount {
  color: #fff;
}
.plan-tag {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.plan h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.03em;
}
.plan .plan-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.plan.featured .plan-sub {
  color: var(--muted-2);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 6px;
}
.price .amount {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.price .per {
  font-size: 15px;
  color: var(--muted);
}
.plan.featured .price .per {
  color: var(--muted-2);
}
.plan .duration {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.plan.featured .duration {
  color: var(--accent);
}
.plan .btn {
  width: 100%;
  margin: 30px 0;
}
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-list li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.plan.featured .feat-list li {
  color: rgba(255, 255, 255, 0.86);
}
.feat-list .check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-list .check svg {
  width: 11px;
  height: 11px;
  stroke: var(--accent-ink);
  stroke-width: 2.6;
  fill: none;
}
.services-note {
  text-align: center;
  margin-top: 36px;
  color: var(--muted);
  font-size: 15px;
}
.services-note svg {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin-right: 6px;
  stroke: var(--accent-deep);
}

/* ---------- Pourquoi ---------- */
.why {
  background: var(--bg-2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-ico {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.why-ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Avis ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stars {
  display: flex;
  gap: 3px;
}
.stars svg {
  width: 17px;
  height: 17px;
  fill: var(--accent-deep);
}
.review p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  flex: 1;
}
.review .who {
  display: flex;
  align-items: center;
  gap: 11px;
}
.review .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}
.review .who .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.review .who .role {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-2);
}
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: clamp(40px, 6vw, 90px);
}
.faq-list {
  border-top: 1px solid var(--hairline);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  text-align: left;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq-ico {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
}
.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.faq-ico::before {
  top: 12px;
  left: 4px;
  width: 18px;
  height: 2px;
}
.faq-ico::after {
  top: 4px;
  left: 12px;
  width: 2px;
  height: 18px;
}
.faq-item.open .faq-ico::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.faq-item.open .faq-a {
  opacity: 1;
}
.faq-a-inner {
  padding: 0 4px 28px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final .glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 900px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(198, 244, 50, 0.18) 0%,
    rgba(198, 244, 50, 0) 60%
  );
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(38px, 6vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.cta-final .lede {
  color: rgba(255, 255, 255, 0.66);
  margin: 26px 0 38px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.call-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 16px;
  padding: 0 6px;
  height: 54px;
}
.call-link:hover {
  color: #fff;
}
.call-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
}

/* Carte zone desservie */
.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4 / 3.4;
}
.map-card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
}
.map-pin .pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(198, 244, 50, 0.22);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(198, 244, 50, 0.22);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(198, 244, 50, 0.05);
  }
}
.map-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(20, 20, 22, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.map-badge .t {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.map-badge .v {
  font-size: 17px;
  color: #fff;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  padding: clamp(60px, 7vw, 100px) 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand .brand {
  font-size: 26px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--muted);
  max-width: 30ch;
  font-size: 15.5px;
  margin-bottom: 24px;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.socials a:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.socials a:hover svg {
  fill: #fff;
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
  transition: fill 0.25s;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--ink-2);
  font-size: 15.5px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent-deep);
}
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom .links {
  display: flex;
  gap: 24px;
}

/* ============================================================
   MODAL RÉSERVATION
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s var(--ease);
  padding: clamp(28px, 4vw, 44px);
}
.modal-overlay.open .modal {
  transform: none;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}
.modal-head .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.modal-head h3 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.035em;
}
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.modal-close:hover {
  background: var(--bg-3);
  transform: rotate(90deg);
}
.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  stroke-width: 2;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-family: inherit;
  /* 16px min — anything smaller makes iOS Safari auto-zoom on focus, which
     shifts the layout and makes the modal fields look overlapped on iPhone. */
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-2);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  min-height: 84px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.18);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.plan-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.plan-choice label {
  position: relative;
  cursor: pointer;
}
.plan-choice input {
  position: absolute;
  opacity: 0;
}
.plan-choice .opt {
  display: block;
  height: 100%;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  transition: border-color 0.25s, background 0.25s;
}
.plan-choice input:checked + .opt {
  border-color: var(--ink);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.plan-choice .opt .n {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.plan-choice .opt .p {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.modal .btn {
  width: 100%;
  margin-top: 8px;
}
.modal-success {
  text-align: center;
  padding: 20px 0;
}
.modal-success .ok {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.modal-success .ok svg {
  width: 34px;
  height: 34px;
  stroke: var(--accent-ink);
  stroke-width: 2.4;
  fill: none;
}
.modal-success h3 {
  margin-bottom: 12px;
}
.modal-success p {
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 28px;
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.08s;
}
.reveal[data-d="2"] {
  transition-delay: 0.16s;
}
.reveal[data-d="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .why-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header-actions .btn-dark {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .services-grid,
  .cta-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
  }
  .faq-wrap {
    gap: 8px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .phase-3 .phase-caption {
    text-align: left;
  }
  .phase-3 .phase-caption h2,
  .phase-3 .phase-caption p {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }
  .stat:first-child {
    border-top: none;
  }
  .why-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ----- Booking modal on phones -----
     Anchor the modal to the top and let the whole overlay scroll, so a tall
     form is never vertically clipped / "overlapping" on short iPhone screens. */
  .modal-overlay {
    align-items: flex-start;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal {
    max-height: none;
    min-height: 100%;
    border-radius: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 22px) 20px
      calc(env(safe-area-inset-bottom, 0px) + 28px);
  }
  .modal-overlay.open .modal {
    transform: none;
  }
  .modal-head {
    margin-bottom: 22px;
  }
  /* Stack the two plan options so they aren't cramped side by side. */
  .plan-choice {
    grid-template-columns: 1fr;
  }
}

/* On very short viewports keep the modal centered but scrollable internally. */
@media (max-width: 560px) and (min-height: 760px) {
  .modal-overlay {
    align-items: center;
    padding: 16px;
  }
  .modal {
    min-height: 0;
    border-radius: var(--radius-lg);
  }
}
