/* ╔══════════════════════════════════════════════════════════════╗
   ║  L'AUBERGE DU TRÔNE — Styles du système de réservation    ║
   ║  Fichier : css/booking.css                                 ║
   ║                                                            ║
   ║  Ce fichier complète style.css avec les styles             ║
   ║  spécifiques à la page de réservation (reserver.html)      ║
   ╚══════════════════════════════════════════════════════════════╝ */


/* ═══════════════════════════════════════════
   1. HERO COMPACT
   ═══════════════════════════════════════════ */

.booking-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.booking-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(139,109,47,0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0a0806 0%, #12100a 60%, #0a0806 100%);
}

.booking-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.booking-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.booking-hero-desc {
  font-size: 17px;
  color: #9a9080;
  line-height: 1.7;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   2. SECTION PRINCIPALE
   ═══════════════════════════════════════════ */

.booking-section {
  padding: 0 24px 80px;
  background: linear-gradient(180deg, #0a0806, #0e0c08 50%, #0a0806);
}

.booking-container {
  max-width: 1100px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   3. ONGLETS (TABS)
   ═══════════════════════════════════════════ */

.booking-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.booking-tab {
  background: linear-gradient(180deg, rgba(20,16,10,0.9), rgba(10,8,6,0.95));
  border: 1px solid rgba(197,165,90,0.12);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.4s;
}

.booking-tab:hover {
  border-color: rgba(197,165,90,0.3);
  background: linear-gradient(180deg, rgba(30,24,14,0.9), rgba(14,11,7,0.95));
}

.booking-tab.active {
  border-color: rgba(197,165,90,0.4);
  background: linear-gradient(180deg, rgba(197,165,90,0.08), rgba(10,8,6,0.95));
}

.booking-tab.active::before {
  background: linear-gradient(90deg, transparent, #C5A55A, transparent);
}

.tab-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.tab-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: #a09880;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.booking-tab.active .tab-label {
  color: #e8dcc8;
}

.tab-desc {
  display: block;
  font-size: 12px;
  color: #6a6050;
  margin-top: 4px;
  font-style: italic;
}

.booking-tab.active .tab-desc {
  color: #C5A55A;
}


/* ═══════════════════════════════════════════
   4. LAYOUT (Calendrier + Récapitulatif)
   ═══════════════════════════════════════════ */

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}


/* ═══════════════════════════════════════════
   5. INSTRUCTIONS CONTEXTUELLES
   ═══════════════════════════════════════════ */

.booking-instructions {
  background: rgba(197,165,90,0.04);
  border: 1px solid rgba(197,165,90,0.1);
  padding: 14px 20px;
  margin-bottom: 24px;
  text-align: center;
}

.booking-instructions p {
  font-size: 14px;
  color: #C5A55A;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  margin: 0;
}


/* ═══════════════════════════════════════════
   6. CALENDRIER
   ═══════════════════════════════════════════ */

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cal-month-year {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: #e8dcc8;
  letter-spacing: 2px;
}

.cal-nav {
  background: none;
  border: 1px solid rgba(197,165,90,0.2);
  color: #C5A55A;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
}

.cal-nav:hover {
  border-color: rgba(197,165,90,0.5);
  background: rgba(197,165,90,0.08);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C5A55A;
  padding: 8px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* ─── Cellules du calendrier ─── */

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: #e8dcc8;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  border: 1px solid transparent;
  background: rgba(16,13,8,0.4);
}

.cal-cell:hover:not(.cal-empty):not(.cal-booked):not(.cal-past) {
  border-color: rgba(197,165,90,0.4);
  background: rgba(197,165,90,0.08);
  color: #f0d78c;
}

/* Cellule vide (padding) */
.cal-empty {
  background: transparent;
  cursor: default;
}

/* Jour passé */
.cal-past {
  color: #3a3528;
  cursor: not-allowed;
  background: transparent;
}

/* Aujourd'hui */
.cal-today {
  border-color: rgba(197,165,90,0.3);
}

.cal-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #C5A55A;
}

/* Date indisponible (réservée via iCal) */
.cal-booked {
  color: #5a3030;
  cursor: not-allowed;
  background: rgba(80,30,30,0.15);
  border-color: rgba(120,40,40,0.15);
}

.cal-booked::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 1px;
  background: rgba(120,50,50,0.5);
  transform: rotate(-45deg);
}

/* Date sélectionnée (check-in ou check-out) */
.cal-selected {
  background: linear-gradient(135deg, #C5A55A, #a08030) !important;
  color: #0a0806 !important;
  font-weight: 700;
  border-color: #C5A55A !important;
  box-shadow: 0 0 16px rgba(197,165,90,0.3);
}

/* Dates entre check-in et check-out */
.cal-in-range {
  background: rgba(197,165,90,0.12) !important;
  color: #f0d78c !important;
  border-color: rgba(197,165,90,0.15) !important;
}


/* ═══════════════════════════════════════════
   7. LÉGENDE
   ═══════════════════════════════════════════ */

.calendar-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(197,165,90,0.08);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7a7060;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border: 1px solid;
}

.legend-available {
  background: rgba(16,13,8,0.4);
  border-color: rgba(197,165,90,0.2);
}

.legend-booked {
  background: rgba(80,30,30,0.2);
  border-color: rgba(120,40,40,0.2);
}

.legend-selected {
  background: linear-gradient(135deg, #C5A55A, #a08030);
  border-color: #C5A55A;
}


/* ═══════════════════════════════════════════
   8. CRÉNEAUX HORAIRES (Jacuzzi)
   ═══════════════════════════════════════════ */

.time-slots-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(197,165,90,0.1);
}

.time-slots-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: #C5A55A;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-align: center;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-slot {
  padding: 14px 12px;
  text-align: center;
  background: rgba(16,13,8,0.6);
  border: 1px solid rgba(197,165,90,0.12);
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover:not(.slot-booked) {
  border-color: rgba(197,165,90,0.4);
  background: rgba(197,165,90,0.08);
}

.time-slot.slot-selected {
  background: linear-gradient(135deg, rgba(197,165,90,0.15), rgba(160,128,48,0.1));
  border-color: #C5A55A;
}

.time-slot.slot-booked {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.time-slot .slot-time {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: #e8dcc8;
  display: block;
  margin-bottom: 4px;
}

.time-slot .slot-price {
  font-size: 12px;
  color: #C5A55A;
}

.time-slot.slot-selected .slot-time {
  color: #f0d78c;
}


/* ═══════════════════════════════════════════
   9. RÉCAPITULATIF & FORMULAIRE
   ═══════════════════════════════════════════ */

.booking-summary-card {
  background: linear-gradient(180deg, rgba(22,18,10,0.95), rgba(10,8,6,0.98));
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}

.summary-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  font-weight: 700;
  color: #e8dcc8;
  margin-bottom: 20px;
  text-align: center;
}

.summary-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(197,165,90,0.05);
  border: 1px solid rgba(197,165,90,0.1);
  margin-bottom: 24px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: #C5A55A;
  letter-spacing: 1px;
}

.summary-type-icon {
  font-size: 20px;
}

.summary-details {
  margin-bottom: 28px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.summary-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a7060;
}

.summary-value {
  font-size: 15px;
  font-weight: 500;
  color: #e8dcc8;
}

.summary-divider {
  height: 1px;
  background: rgba(197,165,90,0.1);
  margin: 8px 0;
}

.summary-total .summary-label {
  color: #C5A55A;
  font-weight: 700;
}

.summary-total .summary-value {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #C5A55A;
}

/* ─── Formulaire ─── */

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

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

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8070;
}

.form-group label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: #5a5040;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(10,8,6,0.8);
  border: 1px solid rgba(197,165,90,0.15);
  color: #e8dcc8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  padding: 12px 14px;
  transition: all 0.3s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a4030;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(197,165,90,0.4);
  background: rgba(16,13,8,0.9);
  box-shadow: 0 0 12px rgba(197,165,90,0.08);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23C5A55A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: #0a0806;
  color: #e8dcc8;
}

.booking-submit {
  margin-top: 8px;
  width: 100%;
}

.booking-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.booking-submit:disabled::after {
  display: none;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: #5a5040;
  font-style: italic;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════
   10. MODAL DE CONFIRMATION
   ═══════════════════════════════════════════ */

.booking-confirmation {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirmation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,4,2,0.9);
  backdrop-filter: blur(8px);
}

.confirmation-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22,18,10,0.98), rgba(10,8,6,0.99));
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  animation: fadeInUp 0.5s ease;
}

.confirmation-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: breathe 3s ease-in-out infinite;
}

.confirmation-card h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.confirmation-card p {
  font-size: 15px;
  color: #a09880;
  line-height: 1.7;
  margin-bottom: 8px;
}

.confirmation-card .btn-royal {
  margin-top: 16px;
}


/* ═══════════════════════════════════════════
   11. RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .booking-hero {
    padding: 120px 16px 40px;
  }

  .booking-section {
    padding: 0 16px 60px;
  }

  .booking-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .booking-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }

  .tab-icon {
    font-size: 22px;
    margin-bottom: 0;
  }

  .tab-desc {
    display: none;
  }

  .calendar-weekdays span {
    font-size: 10px;
    letter-spacing: 0;
  }

  .cal-cell {
    font-size: 14px;
  }

  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-legend {
    gap: 16px;
  }

  .legend-item {
    font-size: 11px;
  }

  .booking-summary-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .booking-hero-title {
    font-size: 28px;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 12px;
  }

  .time-slots-grid {
    grid-template-columns: 1fr 1fr;
  }

  .confirmation-card {
    padding: 36px 24px;
  }
}
