/* ==========================================================================
   La Petite — booking.css  (reservation.html + paiement.html)
   Light total · cohérent avec style.css (cream + cabana blue + ivory)
   ========================================================================== */

/* Page body offset: nav fixed already accounted for by main margin */
.page-booking {
  background: var(--cream);
  min-height: 100vh;
}

/* ----- Booking hero (compact, no video) ----- */
.booking-hero {
  margin-top: var(--nav-h-m);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .booking-hero { margin-top: var(--nav-h); }
}
.booking-hero__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.booking-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin: 0.65rem 0 1rem;
  color: var(--ink);
}
.booking-hero h1 em { font-style: italic; color: var(--cabana); }
.booking-hero .lead {
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* ----- Stepper ----- */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0 1rem;
  list-style: none;
}
.stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 600;
}
.stepper .step__num {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  background: var(--ivory);
  color: var(--ink-mute);
  transition: all 240ms ease;
}
.stepper .step__label { text-align: center; line-height: 1.2; }
.stepper .step.is-active .step__num {
  background: var(--cabana);
  border-color: var(--cabana);
  color: var(--ivory);
  box-shadow: 0 6px 18px -8px rgba(27, 107, 168, 0.55);
}
.stepper .step.is-active { color: var(--cabana); }
.stepper .step.is-done .step__num {
  background: var(--ivory);
  border-color: var(--cabana);
  color: var(--cabana);
}
.stepper .step.is-done { color: var(--ink-soft); }
.stepper .step + .step::before {
  content: '';
  position: absolute;
  left: -50%;
  top: 17px;
  width: 100%;
  height: 1.5px;
  background: var(--line-strong);
  z-index: -1;
}
@media (max-width: 540px) {
  .stepper .step__label { font-size: 0.68rem; }
}

/* ----- Booking main section ----- */
.booking-main { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); }

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 980px) {
  .booking-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
}

/* ----- Form ----- */
.booking-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 12px 40px -28px rgba(15, 37, 64, 0.25);
}
.bf-step {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
}
.bf-step.is-active { display: block; }
.bf-step__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.bf-step__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--cabana);
  font-size: 1.2rem;
}
.bf-step__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1.1;
}
.bf-step__sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.bf-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (min-width: 640px) { .bf-row.bf-row--2 { grid-template-columns: 1fr 1fr; } }

.bf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.bf-field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
}
.bf-field .bf-help {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 0.15rem;
  font-style: italic;
}
.bf-field input,
.bf-field select,
.bf-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.bf-field textarea { resize: vertical; min-height: 110px; }
.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus {
  outline: none;
  border-color: var(--cabana);
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(27, 107, 168, 0.15);
}
.bf-field input:invalid:not(:placeholder-shown) { border-color: var(--spritz); }

/* Setting cards (radios) */
.bf-radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
@media (min-width: 540px) { .bf-radio-grid { grid-template-columns: repeat(3, 1fr); } }
.bf-radio-card {
  position: relative;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--cream);
  padding: 1rem 1rem 0.9rem;
  cursor: pointer;
  transition: all 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bf-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.bf-radio-card .bf-radio-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
}
.bf-radio-card .bf-radio-card__hint {
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.bf-radio-card:hover {
  border-color: var(--cabana-soft);
  background: var(--ivory);
}
.bf-radio-card:has(input:checked) {
  border-color: var(--cabana);
  background: var(--cabana-pale);
  box-shadow: 0 4px 16px -6px rgba(27, 107, 168, 0.25);
}

/* Checkboxes */
.bf-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.bf-check + .bf-check { margin-top: 0.6rem; }
.bf-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--ivory);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-content: center;
  transition: all 200ms ease;
}
.bf-check input:checked {
  background: var(--cabana);
  border-color: var(--cabana);
}
.bf-check input:checked::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid var(--ivory);
  border-bottom: 2px solid var(--ivory);
  transform: rotate(-45deg) translate(1px, -1px);
}
.bf-check strong { color: var(--ink); font-weight: 600; }

/* Actions bar */
.bf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.bf-actions__left { order: 1; }
.bf-actions__right { order: 2; margin-left: auto; }
.bf-disclaimer {
  width: 100%;
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: right;
  font-style: italic;
  order: 3;
  margin-top: 0.4rem;
}

/* ----- Summary aside ----- */
.booking-summary {
  background: var(--cabana);
  color: var(--ivory);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.75rem 2rem;
  position: sticky;
  top: calc(var(--nav-h-m) + 1rem);
  box-shadow: 0 24px 60px -32px rgba(15, 37, 64, 0.5);
}
@media (min-width: 1024px) {
  .booking-summary { top: calc(var(--nav-h) + 1rem); }
}
.booking-summary__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 253, 247, 0.7);
}
.booking-summary__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0.4rem 0 1.25rem;
  color: var(--ivory);
}
.bs-block { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 253, 247, 0.15); }
.bs-block:last-of-type { border-bottom: none; }
.bs-block__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 253, 247, 0.55);
  margin-bottom: 0.35rem;
}
.bs-block__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ivory);
}
.bs-block__value.is-empty {
  font-style: italic;
  color: rgba(255, 253, 247, 0.45);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.bs-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 253, 247, 0.08);
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 253, 247, 0.88);
}
.bs-note strong { color: var(--gold); font-weight: 600; }

/* ----- Modal succès ----- */
.modal-success {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 64, 0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 240ms ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-success.is-open { display: flex; opacity: 1; }
.modal-success__card {
  background: var(--ivory);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem 2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(15, 37, 64, 0.4);
  transform: translateY(8px);
  transition: transform 280ms ease;
}
.modal-success.is-open .modal-success__card { transform: translateY(0); }
.modal-success__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cabana-pale);
  color: var(--cabana);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.modal-success__icon svg { width: 36px; height: 36px; }
.modal-success__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.modal-success__body {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.modal-success__demo {
  display: block;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}
.modal-success__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ============================ PAIEMENT page ============================ */

.payment-banner {
  background: var(--cabana);
  color: var(--ivory);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  margin-top: var(--nav-h-m);
}
@media (min-width: 1024px) { .payment-banner { margin-top: var(--nav-h); } }

.payment-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}
.payment-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin: 0.6rem auto 1.25rem;
  color: var(--ink);
  max-width: 18ch;
}
.payment-hero__body {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.payment-cards {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.payment-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) { .payment-cards__grid { grid-template-columns: repeat(3, 1fr); } }

.pay-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.pay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(15, 37, 64, 0.25);
}
.pay-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cabana-pale);
  color: var(--cabana);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-card__icon svg { width: 22px; height: 22px; }
.pay-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
}
.pay-card__sub {
  font-weight: 600;
  color: var(--cabana);
  font-size: 0.92rem;
}
.pay-card__detail {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* FAQ accordion */
.payment-faq { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.payment-faq__head { text-align: center; margin-bottom: 2.5rem; }
.payment-faq__head h2 {
  margin: 0.5rem auto 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 18ch;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  text-align: left;
}
.faq-item__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cabana);
  flex-shrink: 0;
  transition: transform 240ms ease;
}
.faq-item__icon svg { width: 14px; height: 14px; transition: transform 240ms ease; }
.faq-item.is-open .faq-item__icon { background: var(--cabana); color: var(--ivory); border-color: var(--cabana); }
.faq-item.is-open .faq-item__icon svg { transform: rotate(45deg); }
.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-item__panel-inner {
  padding: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.faq-item.is-open .faq-item__panel { max-height: 280px; }

/* Demo footer note */
.demo-note {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 1.25rem 1.25rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-mute);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
