:root {
  --bg: #020617;
  --panel: #020617;
  --panel-soft: #020617;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --z1: #2563eb;
  --z2: #f59e0b;
  --z3: #10b981;
  --accent: #22c55e;
  --green: #22c55e;
  --green-focus: #4ade80;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 50%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* BANDEAU DÉFILANT (VERT) */
.ticker {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #16a34a;
  overflow: hidden;
}

.ticker__inner {
  display: inline-flex;
  gap: 48px;
  padding: 6px 16px;
  white-space: nowrap;
  animation: ticker-slide 18s linear infinite;
}

.ticker__inner span {
  color: #022c22;
  font-weight: 600;
  font-size: 14px;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* NAV PRINCIPAL (PC + MOBILE) */
.main-nav {
  position: relative;
  z-index: 9000;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

/* Logo nav */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #bbf7d0, #16a34a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #022c22;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.95),
    0 10px 30px rgba(16, 185, 129, 0.5);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text span:first-child {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.nav-logo-text span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
}

/* Liens du menu (desktop) */
.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #d1d5db;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #facc15);
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #f9fafb;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #fef9c3, #facc15);
  color: #1f2937;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 14px 30px rgba(234, 179, 8, 0.5);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover,
.nav-link-cta:focus-visible {
  filter: brightness(1.05);
}

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  padding: 6px 10px;
  cursor: pointer;
  color: #e5e7eb;
  align-items: center;
  gap: 6px;
}

.nav-toggle-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* État ouvert du burger (pour JS : .nav-toggle.is-open & .nav-links-wrapper.is-open) */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Overlay du menu mobile */
@media (max-width: 768px) {
  .main-nav-inner {
    padding-block: 8px;
  }

  .nav-links-wrapper {
    position: fixed;
    inset: 0 0 0 0;
    background: radial-gradient(circle at top, #020617, #000 70%);
    flex-direction: column;
    align-items: flex-start;
    padding: 84px 22px 22px;
    gap: 14px;
    display: none;
  }

  .nav-links-wrapper.is-open {
    display: flex;
  }

  .nav-link {
    font-size: 16px;
  }

  .nav-link-cta {
    margin-top: 8px;
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* HEADER */
.header-main {
  padding-top: 24px;
  padding-bottom: 8px;
}

.header-main h1 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: 0.03em;
}

/* Titre tricolore Navette / Aéroport / Bordeaux */
.nab-title {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nab-title .nab-word-1 {
  color: #2563eb; /* bleu */
}

.nab-title .nab-word-2 {
  color: #f9fafb; /* blanc */
}

.nab-title .nab-word-3 {
  color: #ef4444; /* rouge */
}

.subtitle {
  color: #16a34a;
  margin: 0;
}

/* --- Sélecteur de langue : 4 drapeaux SVG (PC + mobile) --- */
.lang-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
}

.lang-switcher button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* Icônes de drapeaux <img class="flag-icon"> */
.lang-switcher .flag-icon {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  display: inline-block;
}

/* État actif : léger halo autour du drapeau */
.lang-switcher button.is-active .flag-icon {
  box-shadow:
    0 0 0 2px rgba(250, 191, 36, 0.9),
    0 0 10px rgba(250, 191, 36, 0.6);
  border-radius: 4px;
}

/* CARDS GÉNÉRIQUES */
.card {
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.8);
}

/* COMMENT ÇA MARCHE ? */
.info-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.info-card ol {
  margin: 6px 0;
  padding-left: 20px;
}
.info-card li {
  margin-bottom: 4px;
  line-height: 1.5;
}
.small-muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* ZONES = BLOCS CÔTÉ À CÔTÉ (DESKTOP) */
.zones-cards {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.zones-cards h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.zones-cards-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 14px;
}

/* module mobile : caché par défaut sur desktop */
.zones-tabs-mobile {
  display: none;
}

/* zone = colonne étroite, haute (desktop) */
.zone-card {
  flex: 1;
  min-height: 340px;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #1f2937;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Couleurs des zones (desktop) */
.zone-card.z1 {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.9));
  border-left: 5px solid var(--z1);
}
.zone-card.z2 {
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.9));
  border-left: 5px solid var(--z2);
}
.zone-card.z3 {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.9));
  border-left: 5px solid var(--z3);
}
.zone-card.z4 {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
  border-left: 5px solid #38bdf8;
}
.zone-card.z5 {
  background: linear-gradient(120deg, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.9));
  border-left: 5px solid #facc15;
}
.zone-card.z6 {
  background: linear-gradient(120deg, rgba(244, 63, 94, 0.22), rgba(15, 23, 42, 0.9));
  border-left: 5px solid #f97373;
}

.zone-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.zone-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.zone-card .price {
  margin-top: 8px;
  font-weight: 700;
  font-size: 20px;
}
.bottom-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* FORMULAIRE */
.form-wrap {
  max-width: 760px;
}
.form-wrap h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
#bookingForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
input,
select,
textarea {
  background: #020617;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--green);
  padding: 11px 13px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
textarea {
  min-height: 60px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #64748b;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-focus);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6),
              0 16px 35px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* tarif */
.fare-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.fare {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.2));
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  padding: 10px 13px;
  font-weight: 600;
}

/* case à cocher politique */
.policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.policy input {
  margin-top: 5px;
}

/* bouton centré */
.actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
#payBtn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  border: 0;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.6);
}
#payBtn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
#payBtn:disabled {
  opacity: 0.7;
  cursor: wait;
  box-shadow: none;
  transform: none;
}

/* CONDITIONS */
.conditions-card {
  max-width: 760px;
}
.conditions-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.conditions-card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}
.conditions-card li {
  margin-bottom: 4px;
}

/* FOOTER */
.footer {
  text-align: center;
  color: var(--muted);
  padding: 12px 16px 26px;
  font-size: 12px;
}
.footer small {
  display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .header-main h1 {
    font-size: 24px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  /* Titre "Tarifs fixes..." : un peu plus d'espace */
  .zones-cards h2 {
    margin-bottom: 16px;
  }

  /* On cache les 6 gros blocs de zones sur mobile */
  .zones-cards-inner,
  .zones-cards-inner .zone-card {
    display: none !important;
  }

  /* module compact des zones (onglets) sur mobile */
  .zones-tabs-mobile {
    display: block;
    margin-top: 14px;
  }

  .zones-tabs-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .zone-tab {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Couleurs par zone pour les onglets */
  .zone-tab[data-zone="1"] {
    border-color: var(--z1);
    color: var(--z1);
  }
  .zone-tab[data-zone="2"] {
    border-color: var(--z2);
    color: var(--z2);
  }
  .zone-tab[data-zone="3"] {
    border-color: var(--z3);
    color: var(--z3);
  }
  .zone-tab[data-zone="4"] {
    border-color: #38bdf8;
    color: #38bdf8;
  }
  .zone-tab[data-zone="5"] {
    border-color: #facc15;
    color: #facc15;
  }
  .zone-tab[data-zone="6"] {
    border-color: #f97373;
    color: #f97373;
  }

  .zone-tab.is-active {
    box-shadow:
      0 0 0 1px currentColor,
      0 10px 25px rgba(15, 23, 42, 0.9);
  }

  .zones-tabs-panel {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 70%);
    padding: 10px 12px;
    margin-top: 12px;
    box-shadow:
      0 16px 35px rgba(15, 23, 42, 0.9),
      0 0 0 1px rgba(15, 23, 42, 0.9);
  }

  .zones-tabs-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }

  .zones-tabs-title {
    font-size: 14px;
    font-weight: 600;
  }

  .zones-tabs-price {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    background: #020617;
    border: 1px solid currentColor;
    color: currentColor;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
    white-space: nowrap;
  }

  .zones-tabs-body {
    font-size: 12px;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    position: relative;
    margin-top: 6px;
  }

  #zonesTabsText {
    margin: 0;
  }

  .zones-tabs-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 1));
    pointer-events: none;
  }

  .zones-tabs-body.is-expanded {
    max-height: none;
  }

  .zones-tabs-body.is-expanded::after {
    display: none;
  }

  .zones-tabs-toggle {
    margin-top: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fbbf24;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
  }

  .zones-tabs-toggle:focus {
    outline: none;
    text-decoration: underline;
  }

  /* Note "Tarifs valables..." plus bas sous la liste */
  .bottom-note {
    margin-top: 28px;
  }

  .form-wrap,
  .conditions-card {
    max-width: 100%;
  }

  .ticker__inner span {
    font-size: 13px;
  }
}

/* Liens très lisibles dans les pages légales */
.legal-container a,
.legal-card a,
.legal-content a {
  color: #fef9c3;
  text-decoration: underline;
}

.legal-container a:hover,
.legal-card a:hover,
.legal-content a:hover {
  color: #facc15;
}
/* Désactivation des anciens faux drapeaux CSS */
.lang-switcher button::before {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
