/* Calendrier de réservation Initia — vue semaine
   Réutilise --beige/--mint/--sky/--lavender/--moss/--ink de shared.css */

/* Override shared.css : le panneau booking grandit selon son contenu (grille
   dense). Par défaut, shared.css le met en position absolute pour overlay —
   on annule ça ici. booking.css est chargé APRÈS shared.css donc la cascade
   naturelle suffit, pas besoin de !important. */
.contact-panel[data-tab="booking"] {
  position: relative;
  inset: auto;
}
.contact-panel:not(.active) {
  display: none;
}
.contact-panel.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ------- Stepper / header ------- */

.booking-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.booking-back {
  background: none;
  border: none;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.booking-back:hover { color: #111; }
.booking-back[hidden] { display: none; }

.booking-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
}

/* ------- Step containers ------- */

.booking-step { display: none; }
.booking-step[data-active] { display: flex; flex-direction: column; gap: 16px; }

/* ------- Step 1 : Type picker ------- */

.booking-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-type {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.booking-type:hover {
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.booking-type[data-accent="mint"]     { background: var(--mint); }
.booking-type[data-accent="sky"]      { background: var(--sky); }
.booking-type[data-accent="lavender"] { background: var(--lavender); }

.booking-type-icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  color: #111;
}
.booking-type-body { flex: 1; min-width: 0; }
.booking-type-title {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #111;
}
.booking-type-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 3px;
}
.booking-type-arrow {
  opacity: 0.4;
  transition: transform 0.2s, opacity 0.2s;
}
.booking-type:hover .booking-type-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ------- Step 2 : Week view ------- */

.booking-weeknav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}
.booking-weeknav-label {
  font-family: 'Funnel Display', sans-serif;
  font-size: 0.95rem;
  color: #111;
}
.booking-weeknav-tz {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.booking-weeknav-btn {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #111;
}
.booking-weeknav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.booking-week-scroll {
  height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding-right: 4px;
  flex: 0 0 auto;
}
.booking-week-scroll::-webkit-scrollbar { width: 6px; }
.booking-week-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

.booking-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.booking-day {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.booking-day-head {
  text-align: center;
  margin-bottom: 4px;
}
.booking-day-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.45);
}
.booking-day-num {
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.25rem;
  color: #111;
  line-height: 1.1;
  margin-top: 1px;
}
.booking-day.is-today .booking-day-num { color: #111; }
.booking-day.is-today .booking-day-num::after {
  content: "";
  display: block;
  width: 16px; height: 2px;
  background: var(--ink, #111);
  border-radius: 2px;
  margin: 2px auto 0;
}

.booking-slot {
  background: var(--mint);
  border: none;
  border-radius: 6px;
  padding: 3px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  line-height: 1.1;
  color: #111;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
}
.booking-slot:hover {
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}
.booking-slot.is-selected {
  background: #111;
  color: #fff;
}

.booking-empty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 6px 0;
}

.booking-loading, .booking-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.5);
}
.booking-error { color: #a04040; }

/* ------- Step 3 : Form ------- */

.booking-form-summary {
  background: var(--sky);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.booking-form-summary-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.5);
}
.booking-form-summary-when {
  font-family: 'Funnel Display', sans-serif;
  font-size: 0.95rem;
  color: #111;
}

/* Honeypot: invisible to humans, filled by bots */
.booking-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* ------- Step 4 : Confirmation ------- */

.booking-done {
  text-align: center;
  padding: 30px 12px;
  background: var(--lavender);
  border-radius: 14px;
}
.booking-done-check {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  color: #111;
}
.booking-done-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: #111;
}
.booking-done-text {
  font-family: 'Funnel Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 18px;
}
.booking-done-meet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Funnel Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.booking-done-meet:hover { filter: brightness(1.1); }

/* ------- Mobile ------- */

@media (max-width: 640px) {
  .booking-week-scroll {
    height: 360px;
    overflow-x: auto;
  }
  .booking-week {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
  }
  .booking-day { min-width: 72px; }
  .booking-type-sub { font-size: 0.68rem; }
}
