/* =========================================================================
   Components — Booking Form / Reservation Wizard (refonte design)
   Wizard pixel-near : .reserve-wrap (cream-2 + gold-soft border)
   .reserve-grid (1.4fr/.9fr) : steps-bar pills + reserve-card actif | recap navy
   .struct-picker, calendar custom, .field, .radio-pills, .notice, .consent.
   Compat : conserve les anciennes classes booking-form (form actuel) en fallback.
   ========================================================================= */

/* -------- Wrapper principal (cream gradient + gold-soft border) -------- */
.reserve-wrap {
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--gold-soft);
  position: relative;
  overflow: hidden;
}

.reserve-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1000px) {
  .reserve-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* -------- Steps bar (4 pills) -------- */
.steps-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .2s;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.step-pill .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-pill.active {
  background: var(--ink);
  color: var(--cream);
}
.step-pill.active .n {
  background: var(--gold);
  color: var(--ink);
}
.step-pill.done {
  color: var(--gold);
  background: var(--gold-soft);
}
.step-pill.done .n {
  background: var(--gold);
  color: #fff;
}
@media (max-width: 700px) {
  .step-pill .lbl { display: none; }
  .step-pill { padding: 14px 10px; }
}

/* -------- Reserve card (panneau actif) -------- */
.reserve-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.reserve-card h3 {
  margin: 0 0 4px;
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 600;
}
.reserve-card .sub {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 24px;
  margin-top: 6px;
}

/* -------- Fields -------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label,
.field legend {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 154, 59, .16);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--coral);
  background: rgba(228, 99, 74, .05);
}
.field .hint {
  font-size: 12px;
  color: var(--ink-2);
}
.field .err {
  font-size: 12px;
  color: var(--coral);
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .field-row,
  .field-row-3 {
    grid-template-columns: 1fr;
  }
}

/* -------- Radio pills (civility, animator…) -------- */
.radio-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-pills label {
  flex: 1;
  min-width: 80px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  color: var(--ink);
}
.radio-pills input { display: none; }
.radio-pills input:checked + label,
.radio-pills label.checked,
.radio-pills label.is-checked {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

/* -------- Struct picker (Step 0) -------- */
.struct-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .struct-picker { grid-template-columns: 1fr; }
}
.struct-pick {
  position: relative;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
}
.struct-pick:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}
.struct-pick.selected,
.struct-pick.is-selected {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 154, 59, .18);
}
.struct-pick .ph {
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
  overflow: hidden;
  position: relative;
}
.struct-pick .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.struct-pick .check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all .2s;
}
.struct-pick.selected .check,
.struct-pick.is-selected .check {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.struct-pick .info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.struct-pick .info strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.struct-pick .info .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
}
.struct-pick .info .price {
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  border-top: 1px dashed var(--line-2);
  padding-top: 10px;
}

/* -------- Notice (info / coral) -------- */
.notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(201, 154, 59, .12);
  border: 1px solid var(--gold-soft);
  font-size: 13px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
}
.notice[hidden] { display: none; }
.notice.coral {
  background: rgba(228, 99, 74, .08);
  border-color: rgba(228, 99, 74, .25);
}
.notice .ico {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.notice.coral .ico { color: var(--coral); }

/* -------- Calendar (Step 1) -------- */
.calendar {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: 0 1px 2px rgba(16, 26, 59, .04);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 2px;
}
.cal-head button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px solid var(--line-2);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.cal-head button:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
}
.cal-head button:active { transform: scale(.94); }
.cal-month {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: capitalize;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: center;
  padding: 4px 0 10px;
  font-weight: 600;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
  font-family: var(--font-body);
}
.cal-day:not(.disabled):hover {
  background: var(--gold-soft);
  color: var(--ink);
}
.cal-day:not(.disabled):active { transform: scale(.92); }
.cal-day.disabled {
  color: rgba(22, 20, 42, .22);
  cursor: not-allowed;
}
/* Jour déjà réservé (différent d'un jour simplement hors plage) */
.cal-day.is-booked {
  color: rgba(228, 99, 74, .5);
  background:
    linear-gradient(to top left,
      transparent calc(50% - 0.7px),
      rgba(228, 99, 74, .35) calc(50% - 0.7px),
      rgba(228, 99, 74, .35) calc(50% + 0.7px),
      transparent calc(50% + 0.7px));
  cursor: not-allowed;
}
.cal-day.is-booked:hover { background-color: transparent; }
.cal-day.selected {
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(16, 26, 59, .45);
}
.cal-day.today:not(.selected) {
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}
.cal-day.other-month { opacity: 0; pointer-events: none; }

/* -------- Consent checkbox -------- */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 8px;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.consent a {
  color: var(--ink);
  text-decoration: underline;
}

/* -------- Step navigation -------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------- Recap sidebar (navy sticky) -------- */
.reserve-aside {
  align-self: stretch;
}
@media (max-width: 1000px) {
  .reserve-aside { align-self: auto; }
}
.recap {
  position: sticky;
  top: 96px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.recap h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--cream);
}
.recap .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(246, 239, 227, .15);
  font-size: 14px;
  flex-wrap: nowrap;
  gap: 12px;
}
.recap .row .lbl {
  color: rgba(246, 239, 227, .6);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.recap .row .val {
  color: var(--cream);
  font-weight: 600;
  text-align: right;
}
.recap .row .val.empty {
  color: rgba(246, 239, 227, .4);
  font-style: italic;
  font-weight: 400;
}
.recap .total {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recap .total .lbl {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.recap .total .val {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}
.recap .status {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(246, 239, 227, .06);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.recap .status .ico {
  flex-shrink: 0;
  color: var(--gold-2);
  margin-top: 1px;
}
.recap .info-note {
  font-size: 12px;
  color: rgba(246, 239, 227, .55);
  margin-top: 14px;
  line-height: 1.5;
}
.recap .info-note strong {
  color: rgba(246, 239, 227, .85);
}

/* -------- Success card (étape finale ou contact OK) -------- */
.success-card {
  text-align: center;
  padding: 48px 32px;
}
.success-card .check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  animation: pop .5s cubic-bezier(.2, 1.2, .4, 1);
}
.success-card h3 {
  font-size: 36px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
}
.success-card p {
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 auto;
}
