/* /var/www/html/blitech/assets/css/reservation.css */
/* ═══════════════════════════════════════════════════════════════
   BLITECH — reservation.css
   Styles spécifiques à la page de réservation.
   Dépend de main.css (tokens : --navy, --beige, --bdim, etc.)
═══════════════════════════════════════════════════════════════ */

/* ── Layout page ────────────────────────────────────────────────── */
.resa-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

.resa-header {
  margin-bottom: 2.5rem;
}

.resa-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
}

.resa-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Stepper ────────────────────────────────────────────────────── */
.resa-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.resa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.resa-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
  transition: background 0.3s;
}

.resa-step.done:not(:last-child)::after {
  background: var(--beige);
  opacity: 0.4;
}

.resa-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.resa-step.active .resa-step-circle {
  border-color: var(--beige);
  background: var(--beige);
  color: var(--navy-dark);
}

.resa-step.done .resa-step-circle {
  border-color: var(--beige);
  background: transparent;
  color: var(--beige);
}

.resa-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: color 0.3s;
}

.resa-step.active .resa-step-label { color: var(--beige); }
.resa-step.done .resa-step-label   { color: rgba(244,215,147,0.5); }

/* ── Card ───────────────────────────────────────────────────────── */
.resa-card {
  background: var(--bdim2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: none;
  animation: resaFadeUp 0.3s ease both;
}

.resa-card.active { display: block; }

@keyframes resaFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.resa-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* ── Notice ─────────────────────────────────────────────────────── */
.resa-notice {
  background: var(--bdim2);
  border-left: 3px solid rgba(244,215,147,0.3);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.resa-zone-error {
  background: rgba(244,215,147,0.07);
  border-left: 3px solid var(--beige);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--beige-lt);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ── Services ───────────────────────────────────────────────────── */
.resa-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.resa-svc-card {
  background: var(--bdim2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.resa-svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--beige), transparent);
  transform: scaleX(0);
  transition: transform 0.35s;
}

.resa-svc-card:hover  { background: var(--bdim); border-color: var(--border2); transform: translateY(-3px); }
.resa-svc-card:hover::after,
.resa-svc-card.selected::after { transform: scaleX(1); }

.resa-svc-card.selected {
  border-color: var(--beige);
  background: linear-gradient(145deg, rgba(18,60,140,0.35), rgba(244,215,147,0.07));
}

.resa-svc-icon  { font-size: 1.4rem; margin-bottom: 0.7rem; display: block; }
.resa-svc-name  { font-family: 'Playfair Display', serif; font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; }
.resa-svc-desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.55; font-weight: 300; margin-bottom: 0.8rem; }
.resa-svc-meta  { display: flex; gap: 0.6rem; align-items: center; }
.resa-svc-price { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--beige); }
.resa-svc-duration {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); background: rgba(244,215,147,0.07);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.18rem 0.55rem;
}

.resa-custom-price { margin-top: 0.75rem; }

/* ── Formulaire ─────────────────────────────────────────────────── */
.resa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resa-form-row--full { grid-template-columns: 1fr; }

.resa-form-group { display: flex; flex-direction: column; gap: 5px; }

.resa-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,215,147,0.58);
}

.req { color: var(--beige); }

.resa-input {
  background: rgba(244,215,147,0.045);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.78rem 1rem;
  color: var(--beige-lt);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  transition: all 0.2s;
  width: 100%;
}

.resa-input:focus {
  outline: none;
  border-color: rgba(244,215,147,0.42);
  background: rgba(244,215,147,0.07);
}

.resa-input.input-valid { border-color: rgba(26,186,106,0.6); }
.resa-input.input-error { border-color: rgba(220,80,80,0.6); }

textarea.resa-input { resize: vertical; min-height: 100px; }

.resa-readonly {
  background: rgba(244,215,147,0.02) !important;
  opacity: 0.65;
  cursor: default;
}

.resa-error {
  font-size: 0.75rem;
  color: rgba(255,120,120,0.9);
  min-height: 1rem;
}

.resa-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.resa-hint a {
  color: rgba(244,215,147,0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resa-hint a:hover { color: var(--beige); }

/* ── Autocomplete adresse ───────────────────────────────────────── */
.resa-address-wrap { position: relative; }

.resa-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--navy-dark);
  border: 1px solid rgba(244,215,147,0.3);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
}

.resa-suggestion-item {
  padding: 0.7rem 1rem;
  font-size: 0.845rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  line-height: 1.4;
}

.resa-suggestion-item:last-child { border-bottom: none; }
.resa-suggestion-item:hover, .resa-suggestion-item.active {
  background: var(--bdim);
  color: var(--beige-lt);
}

.resa-suggestion-item strong { color: var(--beige); font-weight: 600; }

/* ── Boutons ────────────────────────────────────────────────────── */
.resa-btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.75rem;
}

.btn-gold[disabled] { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Quick slots ────────────────────────────────────────────────── */
.resa-week-group { margin-bottom: 1.5rem; }

.resa-week-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resa-week-label::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--beige);
}

.resa-quick-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.6rem;
  background: var(--bdim2);
}

.resa-quick-slot:hover  { background: var(--bdim); border-color: var(--border2); transform: translateY(-2px); }
.resa-quick-slot.selected { border-color: var(--beige); background: linear-gradient(145deg, rgba(18,60,140,0.35), rgba(244,215,147,0.07)); }

.resa-qs-left { display: flex; flex-direction: column; gap: 2px; }
.resa-qs-day  { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: #fff; }
.resa-qs-time { font-size: 0.8rem; color: var(--muted); font-weight: 300; }
.resa-qs-badge {
  font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.75rem;
  border-radius: 100px; background: rgba(244,215,147,0.1);
  color: var(--beige); border: 1px solid var(--border2);
  flex-shrink: 0;
}
.resa-quick-slot.selected .resa-qs-badge { background: var(--beige); color: var(--navy-dark); border-color: var(--beige); }

.resa-no-slots { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.875rem; font-weight: 300; }

.resa-slots-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 300;
  padding: 1rem 0;
}

.resa-timepicker-wrap {
  background: rgba(244,215,147,.04);
  border: 1px solid rgba(244,215,147,.15);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}
.resa-timepicker-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.75rem;
}
.resa-timepicker-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.resa-timepicker-select {
  flex: 1;
  min-width: 140px;
}
.resa-timepicker-btn {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
}

.resa-qs-selected-feedback {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--beige);
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.resa-timepicker-toggle {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  padding: 5px 14px;
}

.resa-calendar-toggle {
  margin-top: 1rem;
  text-align: center;
}

/* ── Calendrier ─────────────────────────────────────────────────── */
.resa-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.resa-cal-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  background: var(--bdim2);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--beige);
  transition: all 0.2s;
}
.resa-cal-btn:hover  { background: var(--bdim); border-color: var(--border2); }
.resa-cal-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.resa-cal-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.resa-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 1.5rem;
}

.resa-cal-header {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resa-cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(244,215,147,0.35);
  transition: all 0.2s;
  position: relative;
}

.resa-cal-day:hover:not(:disabled):not(.empty):not(.past) { background: var(--bdim); color: var(--beige-lt); }
.resa-cal-day.has-slots  { color: var(--beige-lt); }
.resa-cal-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--beige);
  opacity: 0.6;
}
.resa-cal-day.selected   { background: var(--beige); color: var(--navy-dark); font-weight: 700; }
.resa-cal-day.today      { color: var(--beige); font-weight: 700; }
.resa-cal-day.past,
.resa-cal-day.empty      { color: rgba(244,215,147,0.12); cursor: default; pointer-events: none; }

.resa-slots-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.75rem;
}

.resa-cal-day.closed {
  color: rgba(244,215,147,0.25);
  cursor: default;
  pointer-events: none;
}
.resa-cal-day.closed::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #e05555;
  opacity: 0.8;
}

.resa-slots-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.resa-time-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bdim2);
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--beige-lt);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.resa-time-btn:hover    { border-color: var(--border2); background: var(--bdim); }
.resa-time-btn.selected { background: var(--beige); color: var(--navy-dark); border-color: var(--beige); font-weight: 700; }

/* ── Récapitulatif ──────────────────────────────────────────────── */
.resa-recap {
  background: var(--bdim2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.resa-recap-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  color: var(--beige);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.resa-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.resa-recap-row:last-child { border-bottom: none; }
.resa-recap-key   { font-size: 0.78rem; color: var(--muted); flex-shrink: 0; font-weight: 300; }
.resa-recap-val   { font-size: 0.845rem; font-weight: 600; color: var(--beige-lt); text-align: right; }
.resa-recap-total .resa-recap-key { font-weight: 700; color: var(--beige); }
.resa-recap-total .resa-recap-val { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--beige); }

.resa-submit-error {
  background: rgba(220,80,80,0.1);
  border: 1px solid rgba(220,80,80,0.3);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,150,150,0.9);
  margin-bottom: 1rem;
}

/* ── Succès ─────────────────────────────────────────────────────── */
.resa-success { text-align: center; padding: 1rem 0; }

.resa-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border: 2px solid var(--beige);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: var(--beige);
}

.resa-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.resa-success-ref {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--beige);
  background: rgba(244,215,147,0.1);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 0.5rem 1.4rem;
  margin: 0.75rem 0 1.2rem;
}

.resa-success-msg {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.resa-wa-btn {
  margin: 0 auto 0.75rem;
  justify-content: center;
}

.resa-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1rem;
}

.resa-confirm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  width: 100%;
}

.resa-confirm-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.845rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  width: 100%;
  background: rgba(244,215,147,.07);
  border: 1px solid rgba(244,215,147,.2);
  color: var(--beige-lt);
}

.resa-confirm-secondary:hover { background: rgba(244,215,147,.12); }

/* Bouton mail */
.resa-confirm-primary.mail {
  background: var(--navy-mid);
  color: var(--beige);
  border: 1px solid rgba(244,215,147,.2);
}
.resa-confirm-primary.mail:hover { background: var(--navy); transform: translateY(-1px); }

/* Bouton WhatsApp */
.resa-confirm-primary.wa { background: #25D366; color: #fff; }
.resa-confirm-primary.wa:hover { background: #1ebe5a; transform: translateY(-1px); }
.resa-confirm-secondary.wa { color: #25D366; border-color: rgba(37,211,102,.3); }
.resa-confirm-secondary.mail { color: var(--beige-lt); }

.resa-back-home {
  display: inline-flex;
  margin-top: 0.5rem;
}

/* ── WhatsApp flottant ──────────────────────────────────────────── */
.resa-wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  z-index: 100;
  transition: all 0.25s;
}
.resa-wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .resa-wrap { padding: 6rem 1rem 3rem; }
  .resa-card { padding: 1.25rem; }
  .resa-form-row { grid-template-columns: 1fr; }
  .resa-services-grid { grid-template-columns: 1fr; }
  .resa-btn-row { flex-direction: column-reverse; }
  .resa-btn-row .btn-gold,
  .resa-btn-row .btn-outline { width: 100%; justify-content: center; }
  .resa-step-label { display: none; }
}