/* Page de réservation — s'appuie sur style.css (tokens, .panel, .btn, .kicker) */

.nav__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--fg-2); font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__back:hover { color: var(--gold-2); }

.booking {
  max-width: 760px; margin-inline: auto;
  padding: clamp(6.5rem, 14vh, 8.5rem) var(--pad) clamp(3.5rem, 8vw, 5rem);
}
.booking__head { margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.booking__head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.booking__head > p { color: var(--fg-3); }

/* ---------- Sélecteur : calendrier + heures ---------- */
.picker {
  display: grid;
  grid-template-columns: 1fr 220px;
  overflow: hidden;
}
.picker__cal { padding: clamp(1.1rem, 3vw, 1.5rem); }
.picker__times {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
}
@media (max-width: 640px) {
  .picker { grid-template-columns: 1fr; }
  .picker__times { border-left: 0; border-top: 1px solid var(--border); }
}

/* --- Calendrier --- */
.cal__bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.cal__month {
  font-family: var(--f-head); font-weight: 600; color: var(--fg);
  text-transform: capitalize; font-size: 0.98rem;
}
.cal__nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--fg-2);
  cursor: pointer; transition: color 0.15s var(--ease), border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}
.cal__nav:hover:not(:disabled) { color: var(--gold-2); border-color: var(--gold); }
.cal__nav:disabled { opacity: 0.25; cursor: default; }

.cal__weekdays, .cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.cal__weekdays { margin-bottom: 0.35rem; }
.cal__weekdays span {
  text-align: center; font-size: 0.68rem; font-weight: 600;
  color: var(--fg-3); letter-spacing: 0.02em;
}
.cal__grid { row-gap: 2px; min-height: 232px; }
.cal__loading { grid-column: 1 / -1; color: var(--fg-3); font-size: 0.9rem; padding: 1rem 0; }

.cal__day {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; width: 100%; max-width: 40px;
  border: 0; background: transparent;
  border-radius: 9px;
  color: var(--fg-2); font-size: 0.9rem; font-variant-numeric: tabular-nums;
  cursor: default; position: relative;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.cal__day--empty { visibility: hidden; }
.cal__day--out { color: var(--fg-3); opacity: 0.4; }         /* passé / hors fenêtre */
.cal__day--free {
  color: var(--fg);
  cursor: pointer;
  font-weight: 500;
}
.cal__day--free::after {                                      /* pastille "dispo" */
  content: "";
  position: absolute; bottom: 5px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.cal__day--free:hover { background: rgba(255, 138, 61, 0.12); }
.cal__day--today { box-shadow: inset 0 0 0 1px var(--border-strong); }
.cal__day--selected {
  background: var(--gold);
  color: #1d1604;
  font-weight: 600;
}
.cal__day--selected::after { background: #1d1604; }

/* --- Colonne des heures --- */
.picker__times-head {
  font-family: var(--f-head); font-weight: 600; color: var(--fg);
  font-size: 0.9rem; text-transform: capitalize;
  margin: 0 0 0.9rem;
}
.times {
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; max-height: 236px; overscroll-behavior: contain;
  padding-right: 2px;
}
.times__hint { color: var(--fg-3); font-size: 0.85rem; line-height: 1.4; }
.time-btn {
  padding: 0.6rem; border-radius: 8px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--fg);
  font-size: 0.9rem; font-variant-numeric: tabular-nums; text-align: center;
  cursor: pointer; transition: border-color 0.12s var(--ease), background 0.12s var(--ease), color 0.12s var(--ease);
}
.time-btn:hover { border-color: var(--gold); }
.time-btn.is-selected { border-color: var(--gold); background: var(--gold); color: #1d1604; font-weight: 600; }

/* ---------- Formulaire ---------- */
.form-card { margin-top: 14px; padding: clamp(1.5rem, 4vw, 2.1rem); }
.chosen {
  display: inline-block;
  color: var(--gold-2); background: rgba(255, 138, 61, 0.1);
  border: 1px solid rgba(255, 138, 61, 0.25); border-radius: 8px;
  padding: 0.5rem 0.75rem; font-size: 0.86rem; font-weight: 500; margin: 0 0 1rem;
}
.form-card__title { font-family: var(--f-head); font-size: 1.05rem; color: var(--fg); margin: 0 0 1rem; }
#booking-form { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
#booking-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--fg-3); }
#booking-form input, #booking-form textarea {
  font-family: var(--f-body); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 0.6rem 0.75rem; color: var(--fg); width: 100%;
}
#booking-form input:focus, #booking-form textarea:focus { outline: none; border-color: var(--gold); }
#booking-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ef9f9f; font-size: 0.88rem; min-height: 1em; margin: 0; }
.form-privacy { color: var(--fg-3); font-size: 0.82rem; margin: 0.6rem 0 0; }
.form-privacy a { color: var(--fg-2); }

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; padding: clamp(2.25rem, 6vw, 3rem); }
.confirmation h2 { font-size: 1.5rem; margin: 0.9rem 0 0.5rem; }
.confirmation #confirmation-text { color: var(--gold-2); font-size: 0.96rem; font-weight: 500; }
.confirmation .muted { color: var(--fg-3); font-size: 0.9rem; margin-top: 0.5rem; }
.confirmation .btn { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) { .cal__day, .cal__nav, .time-btn { transition: none; } }
