/* ============================================================
   ÉCRIN D'AVENTURES — Transport / Transfert
   styles/transfert.css
   ============================================================ */

/* Hero et subnav définis dans pages.css */

.page-subnav__list {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.page-subnav__link {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ea-gold-pale);
  opacity: 0.65;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-base), opacity var(--duration-base), border-color var(--duration-base);
}

.page-subnav__link:hover {
  color: var(--ea-gold);
  opacity: 1;
}

.page-subnav__link.is-active {
  color: var(--ea-gold);
  opacity: 1;
  border-bottom-color: var(--ea-gold);
}

/* -----------------------------------------------------------
   LAYOUT RÉSERVATION
   ----------------------------------------------------------- */
.booking-section {
  padding: var(--space-9) 0 var(--space-10);
  background: var(--ea-offwhite);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
  align-items: start;
}

/* -----------------------------------------------------------
   FORMULAIRE
   ----------------------------------------------------------- */
.booking-form-wrapper {
  background: var(--ea-white);
  border-top: var(--border-gold-2);
  padding: var(--space-7);
}

/* Toggle */
.booking-toggle {
  display: flex;
  border-bottom: var(--border-gold);
  margin-bottom: var(--space-7);
}

.booking-toggle__btn {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ea-charcoal);
  opacity: 0.45;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color var(--duration-base), opacity var(--duration-base), border-color var(--duration-base);
  margin-bottom: -1px;
}

.booking-toggle__btn.is-active,
.booking-toggle__btn[aria-selected="true"] {
  color: var(--ea-green);
  opacity: 1;
  border-bottom-color: var(--ea-gold);
}

.booking-toggle__btn:hover {
  opacity: 0.8;
}

/* Panels */
.booking-panel {
  animation: fadeIn var(--duration-base) var(--ease-gold);
}

.booking-panel[hidden] { display: none; }

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

/* Grilles formulaire */
.booking-form__row {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-2);
}

.booking-form__row--two   { grid-template-columns: 1fr 1fr; }
.booking-form__row--three { grid-template-columns: 1fr 1fr 1fr; }

/* Input avec icône */
.form-input-wrap {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: 0;
  bottom: var(--space-3);
  color: var(--ea-gold);
  opacity: 0.6;
  pointer-events: none;
}

.form-input--icon {
  padding-left: var(--space-5);
}

/* -----------------------------------------------------------
   OPTIONS (checkboxes personnalisées)
   ----------------------------------------------------------- */
.booking-options {
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-5);
  background: var(--ea-offwhite);
  border-left: 2px solid var(--ea-gold);
}

.booking-options__label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 9px;
  color: var(--ea-gold);
}

.booking-options__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-5);
}

.booking-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.booking-option__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.booking-option__box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ea-green);
  flex-shrink: 0;
  position: relative;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.booking-option__check:checked + .booking-option__box {
  background: var(--ea-green);
  border-color: var(--ea-green);
}

.booking-option__check:checked + .booking-option__box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 6px;
  height: 9px;
  border: 1.5px solid var(--ea-gold);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.booking-option__text {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
}

/* -----------------------------------------------------------
   TARIF DYNAMIQUE
   ----------------------------------------------------------- */
.booking-tarif {
  margin: var(--space-6) 0;
  border: var(--border-gold);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--ea-offwhite) 0%, var(--ea-cream) 100%);
  min-height: 80px;
  display: flex;
  align-items: center;
}

.booking-tarif__inner {
  width: 100%;
}

.booking-tarif__hint {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
  opacity: 0.5;
  text-align: center;
  font-style: italic;
}

.booking-tarif__loading {
  text-align: center;
  color: var(--ea-gold);
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.booking-tarif__result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.booking-tarif__meta {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
  opacity: 0.6;
}

.booking-tarif__distance {
  display: block;
  margin-bottom: var(--space-1);
}

.booking-tarif__duration {
  display: block;
}

.booking-tarif__price-wrap {
  text-align: right;
}

.booking-tarif__label {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ea-gold);
  opacity: 0.7;
  margin-bottom: var(--space-1);
}

.booking-tarif__price {
  font-family: var(--font-editorial);
  font-size: var(--fs-3xl);
  font-weight: 300;
  color: var(--ea-green);
  line-height: 1;
}

.booking-tarif__note {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  color: var(--ea-charcoal);
  opacity: 0.45;
  margin-top: var(--space-1);
}

/* Spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(181,151,74,0.3);
  border-top-color: var(--ea-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------
   CARTE TRAJET
   ----------------------------------------------------------- */
.booking-map-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 600ms var(--ease-gold, cubic-bezier(0.25,0.1,0.25,1));
  border-radius: 2px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(181,151,74,0.18);
}

.booking-map-wrap:not([hidden]) {
  max-height: 360px;
}

.booking-map-canvas {
  width: 100%;
  height: 340px;
}

/* -----------------------------------------------------------
   SUBMIT
   ----------------------------------------------------------- */
.booking-form__submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(181,151,74,0.2);
}

.booking-submit {
  font-size: 10px;
  padding: 15px 36px;
}

.booking-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-form__mentions {
  color: var(--ea-charcoal);
  opacity: 0.45;
}

/* -----------------------------------------------------------
   ERREURS VALIDATION
   ----------------------------------------------------------- */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-bottom-color: var(--ea-burgundy);
}

.form-error-msg {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--ea-burgundy);
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error .form-error-msg { display: block; }
.form-group.has-error .form-label      { color: var(--ea-burgundy); }

/* -----------------------------------------------------------
   SIDEBAR
   ----------------------------------------------------------- */
.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(80px + var(--space-6));
}

.sidebar-block {
  background: var(--ea-white);
  border-top: var(--border-gold-2);
  padding: var(--space-6);
}

.sidebar-block__title {
  font-size: 9px;
  color: var(--ea-gold);
  margin-bottom: var(--space-5);
}

/* Garanties */
.sidebar-guarantees {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sidebar-guarantee {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.sidebar-guarantee svg {
  color: var(--ea-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-guarantee strong {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ea-green);
  margin-bottom: var(--space-1);
}

.sidebar-guarantee p {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
  opacity: 0.7;
  line-height: 1.6;
}

/* Véhicules */
.sidebar-vehicles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-vehicle {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(181,151,74,0.2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-vehicle:last-child { border-bottom: none; }

.sidebar-vehicle__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-vehicle__name {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ea-green);
}

.sidebar-vehicle__model {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 12px;
  font-weight: 300;
  color: var(--ea-charcoal);
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-vehicle__cap {
  color: var(--ea-gold);
  opacity: 0.8;
  white-space: nowrap;
}

/* Contact sidebar */
.sidebar-block--contact {
  background: var(--ea-green);
}

.sidebar-block--contact .sidebar-block__title {
  color: var(--ea-gold);
}

.sidebar-contact__text {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-gold-pale);
  opacity: 0.8;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.sidebar-contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-base);
  color: var(--ea-gold-pale);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(181,151,74,0.2);
  transition: color var(--duration-fast);
}

.sidebar-contact__link:last-child { border-bottom: none; }

.sidebar-contact__link svg { color: var(--ea-gold); }

.sidebar-contact__link:hover { color: var(--ea-gold); }

/* -----------------------------------------------------------
   MODAL CONFIRMATION
   ----------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--ea-white);
  border-top: var(--border-gold-2);
  padding: var(--space-8);
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: slideUp var(--duration-base) var(--ease-gold);
}

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

.modal__icon {
  margin: 0 auto var(--space-5);
}

.modal__title {
  margin-bottom: var(--space-4);
}

.modal__text {
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
  opacity: 0.75;
  margin-bottom: var(--space-5);
}

.modal__details {
  background: var(--ea-offwhite);
  border: var(--border-gold);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  text-align: left;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
  line-height: var(--lh-base);
}

.modal__details:empty { display: none; }

/* Chatbot (réutilisé depuis home) */
.chatbot-trigger {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 990;
  width: 52px;
  height: 52px;
  background: var(--ea-white);
  color: var(--ea-green);
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base), transform var(--duration-fast);
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.chatbot-trigger:hover { background: var(--ea-offwhite); transform: scale(1.05); }
.chatbot-window { position: fixed; bottom: calc(var(--space-6) + 64px); right: var(--space-6); z-index: 991; width: 360px; max-height: 520px; background: var(--ea-offwhite); border: var(--border-gold); display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.chatbot-window[hidden] { display: none; }
.chatbot-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); background: var(--ea-cream); border-bottom: var(--border-gold); }
.chatbot-header__identity { display: flex; align-items: center; gap: var(--space-3); }
.chatbot-close { color: var(--ea-charcoal); opacity: 0.5; transition: opacity var(--duration-fast); }
.chatbot-close:hover { opacity: 1; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); scroll-behavior: smooth; }
.chatbot-msg { max-width: 85%; padding: var(--space-3) var(--space-4); }
.chatbot-msg p { font-family: var(--font-ui); font-weight: 300; font-size: var(--fs-xs); line-height: var(--lh-base); margin: 0; }
.chatbot-msg--assistant { background: var(--ea-white); border-left: 2px solid var(--ea-gold); align-self: flex-start; }
.chatbot-msg--user { background: var(--ea-green); color: var(--ea-gold-pale); align-self: flex-end; }
.chatbot-msg--user p { color: var(--ea-gold-pale); }
.chatbot-form { display: flex; border-top: var(--border-gold); }
.chatbot-input { flex: 1; padding: var(--space-4); background: transparent; border: none; outline: none; font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ea-charcoal); }
.chatbot-input::placeholder { opacity: 0.4; }
.chatbot-send { padding: var(--space-4); color: var(--ea-gold); border-left: var(--border-gold); transition: background var(--duration-fast); }
.chatbot-send:hover { background: var(--ea-cream); }

/* -----------------------------------------------------------
   STEPPER — Indicateur d'étapes
   ----------------------------------------------------------- */
.booking-stepper {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(181,151,74,0.15);
}

.booking-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.booking-stepper__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(181,151,74,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ea-charcoal);
  opacity: 0.35;
  transition: all var(--duration-base);
}

.booking-stepper__label {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ea-charcoal);
  opacity: 0.35;
  transition: all var(--duration-base);
  white-space: nowrap;
}

.booking-stepper__connector {
  flex: 1;
  height: 1px;
  background: rgba(181,151,74,0.2);
  margin: 0 var(--space-2);
  margin-bottom: 20px;
  transition: background var(--duration-base);
}

/* État actif */
.booking-stepper__item.is-active .booking-stepper__num {
  background: var(--ea-green);
  border-color: var(--ea-green);
  color: var(--ea-gold);
  opacity: 1;
}
.booking-stepper__item.is-active .booking-stepper__label {
  color: var(--ea-green);
  opacity: 1;
}

/* État complété */
.booking-stepper__item.is-done .booking-stepper__num {
  background: var(--ea-gold);
  border-color: var(--ea-gold);
  color: var(--ea-white);
  opacity: 1;
}
.booking-stepper__item.is-done .booking-stepper__label {
  color: var(--ea-gold);
  opacity: 0.7;
}
.booking-stepper__item.is-done + .booking-stepper__connector {
  background: var(--ea-gold);
  opacity: 0.4;
}

/* -----------------------------------------------------------
   ÉTAPES — Steps show/hide
   ----------------------------------------------------------- */
.booking-step {
  animation: fadeIn var(--duration-base) var(--ease-gold);
}
.booking-step[hidden] { display: none; }

.booking-step__title {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ea-gold);
  margin-bottom: var(--space-6);
}

/* Navigation étapes */
.booking-step__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(181,151,74,0.2);
}

.booking-step__nav--right {
  justify-content: flex-end;
}

.btn-step-back {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ea-charcoal);
  opacity: 0.5;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3) 0;
  transition: opacity var(--duration-fast);
}
.btn-step-back:hover { opacity: 1; }

/* -----------------------------------------------------------
   CARTES VÉHICULE — Sélection radio stylée
   ----------------------------------------------------------- */
.vehicle-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.vehicle-card {
  cursor: pointer;
  display: block;
}

.vehicle-card__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vehicle-card__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(181,151,74,0.25);
  background: var(--ea-offwhite);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.vehicle-card:hover .vehicle-card__inner {
  border-color: rgba(181,151,74,0.5);
  background: var(--ea-cream);
}

.vehicle-card__radio:checked ~ .vehicle-card__inner {
  border-color: var(--ea-gold);
  background: var(--ea-cream);
  border-left: 3px solid var(--ea-gold);
}

.vehicle-card__check {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(181,151,74,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--duration-fast);
}

.vehicle-card__radio:checked ~ .vehicle-card__inner .vehicle-card__check {
  background: var(--ea-green);
  border-color: var(--ea-green);
  color: var(--ea-gold);
}

.vehicle-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.vehicle-card__name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ea-green);
}

.vehicle-card__model {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 12px;
  font-weight: 300;
  color: var(--ea-charcoal);
  opacity: 0.55;
}

.vehicle-card__cap {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-gold);
  opacity: 0.8;
}

/* Véhicule indisponible (capacité insuffisante) */
.vehicle-card.is-unavailable {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
.vehicle-card.is-unavailable .vehicle-card__inner {
  border-color: transparent;
  background: rgba(0,0,0,0.03);
}
.vehicle-card__unavail-note {
  display: block;
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  font-style: italic;
}

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .booking-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .sidebar-block--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .booking-form__row--two,
  .booking-form__row--three {
    grid-template-columns: 1fr;
  }
  .booking-options__grid {
    grid-template-columns: 1fr;
  }
  .booking-sidebar {
    grid-template-columns: 1fr;
  }
  .booking-form-wrapper {
    padding: var(--space-5);
  }
  .page-subnav__link {
    padding: var(--space-4) var(--space-4);
    font-size: 9px;
  }
}


/* ── Mapbox Marqueurs ── */
.mapbox-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.mapbox-marker--depart  { background: #c9a96e; }
.mapbox-marker--arrivee { background: #fff; }
