/* ============ ATLANTIQUE DRIVE BOOKING — Styles plugin ============ */
/* Hérite des variables CSS du thème (--gold, --black, etc.) */

.adb-wrap {
  --adb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: 2rem 0 4rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* === Progress bar === */
.adb-progress {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-4, #dcdad4);
  margin-bottom: 2.5rem;
}
.adb-step {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: border-color 0.3s var(--adb-ease);
  cursor: default;
}
.adb-step.active { border-bottom-color: var(--gold, #b8a37e); }
.adb-step.done { border-bottom-color: var(--gold, #b8a37e); opacity: 0.6; }
.adb-step .num {
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--gold, #b8a37e); font-weight: 600;
  text-transform: uppercase;
}
.adb-step .label {
  font-size: 14px; font-weight: 500;
  color: var(--gray-1, #4a4a4a);
}
.adb-step.active .label { color: var(--black, #0a0a0a); }

/* === Grid === */
.adb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .adb-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
}

/* === Card === */
.adb-card {
  background: var(--white, #fff);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(10,10,10,0.04), 0 4px 8px rgba(10,10,10,0.03);
}
.adb-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}
.adb-card .sub {
  color: var(--gray-1, #4a4a4a);
  font-size: 14px;
  margin: 0 0 1.5rem;
}

/* === Step panes === */
.adb-step-pane { display: none; }
.adb-step-pane.active { display: block; animation: adbFadeIn 0.4s var(--adb-ease); }
@keyframes adbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Form === */
.adb-form-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .adb-form-2col { grid-template-columns: 1fr 1fr; } }
.adb-field { display: flex; flex-direction: column; gap: 0.4rem; }
.adb-field label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gray-1, #4a4a4a);
}
.adb-field input, .adb-field select, .adb-field textarea {
  width: 100%;
  border: 1px solid var(--gray-4, #dcdad4);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 15px;
  background: var(--white, #fff);
  color: var(--black, #0a0a0a);
  outline: none;
  transition: border-color 0.2s var(--adb-ease);
}
.adb-field input:focus,
.adb-field select:focus,
.adb-field textarea:focus { border-color: var(--gold, #b8a37e); }
.adb-field textarea { resize: vertical; font-family: inherit; min-height: 90px; }

.adb-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  font-size: 13px;
  color: var(--gray-1, #4a4a4a);
  line-height: 1.5;
}
.adb-checkbox input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.adb-checkbox a {
  color: var(--gold, #b8a37e);
  text-decoration: underline;
}

/* === Vehicle radios === */
.adb-vehicles { display: grid; gap: 1rem; }
.adb-vehicle {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-4, #dcdad4);
  background: var(--white, #fff);
  cursor: pointer;
  transition: all 0.3s var(--adb-ease);
  position: relative;
}
.adb-vehicle.disabled { opacity: 0.4; pointer-events: none; }
.adb-vehicle.selected {
  border-color: var(--gold, #b8a37e);
  background: #faf9f4;
  box-shadow: 0 4px 12px rgba(184,163,126,0.15);
}
.adb-vehicle .v-img {
  width: 90px; height: 68px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-4, #dcdad4);
  filter: grayscale(30%);
  transition: filter 0.3s var(--adb-ease);
}
.adb-vehicle.selected .v-img { filter: grayscale(0%); }
.adb-vehicle h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; }
.adb-vehicle .v-specs {
  font-size: 12px;
  color: var(--gray-1, #4a4a4a);
}
.adb-vehicle .v-price {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.adb-vehicle .v-price .cur {
  font-size: 14px;
  color: var(--gold, #b8a37e);
}

/* === Recap === */
.adb-recap {
  background: var(--black, #0a0a0a);
  color: var(--white, #fff);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 7rem;
}
.adb-recap h3 {
  color: var(--white, #fff);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}
.adb-recap-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.adb-recap-line .k { color: var(--gray-3, #b0b0b0); }
.adb-recap-line .v { font-weight: 500; max-width: 60%; text-align: right; word-break: break-word; }
.adb-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gold, #b8a37e);
}
.adb-recap-total .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold, #b8a37e);
}
.adb-recap-total .v {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.adb-recap-total .cur {
  font-size: 0.7em;
  color: var(--gold, #b8a37e);
  margin-left: 4px;
}
.adb-recap-foot {
  font-size: 11px;
  color: var(--gray-3, #b0b0b0);
  margin-top: 1rem;
  line-height: 1.6;
}

/* === Stripe info === */
.adb-stripe-info {
  font-size: 12px;
  color: var(--gray-1, #4a4a4a);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.adb-stripe-info svg { color: var(--gold, #b8a37e); flex-shrink: 0; }

/* === Overlay (loading) === */
.adb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white, #fff);
}
.adb-overlay[hidden] { display: none; }
.adb-overlay-inner { text-align: center; padding: 2rem; }
.adb-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold, #b8a37e);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: adbSpin 0.8s linear infinite;
}
@keyframes adbSpin { to { transform: rotate(360deg); } }
.adb-overlay p { font-size: 14px; margin: 0; }

/* === Error message === */
.adb-error {
  padding: 1rem 1.25rem;
  background: #fdf2f2;
  border-left: 2px solid #cc0000;
  color: #8a3a3a;
  font-size: 14px;
  margin: 1rem 0;
}

/* === Confirmation page === */
.adb-confirmation {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  text-align: center;
}
.adb-conf-icon {
  width: 72px; height: 72px;
  background: var(--gold, #b8a37e);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex; align-items: center; justify-content: center;
}
.adb-confirmation h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 1.5rem auto 1rem;
}
.adb-conf-lead {
  color: var(--gray-1, #4a4a4a);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.adb-conf-ref {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-1, #4a4a4a);
}
.adb-conf-ref strong {
  color: var(--gold, #b8a37e);
  letter-spacing: 0.08em;
}
.adb-conf-card {
  background: var(--off-white, #f5f4f0);
  padding: 2rem;
  margin: 3rem auto;
  text-align: left;
  max-width: 560px;
}
.adb-conf-card h3 {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-4, #dcdad4);
}
.adb-conf-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-4, #dcdad4);
  font-size: 14px;
}
.adb-conf-row:last-of-type { border-bottom: none; }
.adb-conf-row .k {
  color: var(--gray-1, #4a4a4a);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.adb-conf-row .v { color: var(--black, #0a0a0a); font-weight: 500; }
.adb-conf-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--gold, #b8a37e);
}
.adb-conf-total .k {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-1, #4a4a4a);
}
.adb-conf-total .v {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.adb-conf-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
