/* =========================
   RESERVATION
========================= */

.reservation {
  padding: 4.5rem 0 1.5rem;
  background: linear-gradient(180deg, #131516 0%, #101213 100%);
}

.reservation-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

.reservation-info,
.calendar-card {
  flex: 1;
}

.reservation-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reservation-info h2 {
  margin: 0 0 1.5rem;
  color: #ab9364;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

/* =========================
   DETAILS
========================= */

.reservation-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reservation-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reservation-times {
  align-items: flex-start;
}

.reservation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(201, 151, 104, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #a66a3f;
  font-size: 0.92rem;
}

.reservation-text {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.96rem;
  font-weight: 500;
}

.reservation-small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

/* =========================
   TIME SLOTS
========================= */

.time-slots {
  padding-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ✅ centrage */
  gap: 0.65rem;
}

.time-slot {
  min-width: 4.5rem;
  height: 2.3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(201, 151, 104, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f1f1f;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.time-slot:hover {
  background: rgba(166, 106, 63, 0.12);
  border-color: #a66a3f;
  color: #ffffff;
  transform: translateY(-1px);
}

.time-slot.active {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(166, 106, 63, 0.18);
  color: #ffffff;
  box-shadow: 0 0.5rem 1.1rem rgba(0, 0, 0, 0.14);
}

/* =========================
   FORMULAIRE
========================= */

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 23.5rem;
  margin-top: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select {
  height: 2.8rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(166, 106, 63, 0.18);
  border-radius: 0.85rem;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: #1f1f1f;
  font-size: 0.92rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #a66a3f;
  box-shadow: 0 0 0 3px rgba(166, 106, 63, 0.14);
}

.reservation-form .btn,
.reservation-info .btn {
  min-height: 2.95rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* =========================
   FEEDBACK
========================= */

.reservation-feedback {
  min-height: 1.25rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.reservation-feedback.success {
  color: #7ecb8a;
}

.reservation-feedback.error {
  color: #ff7b7b;
}

/* =========================
   CALENDRIER
========================= */

.calendar-card {
  max-width: 28rem;
  padding: 1.35rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1rem 2.4rem rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.03);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-header h3 {
  margin: 0;
  color: #1f1f1f;
  font-size: 1rem;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(166, 106, 63, 0.12);
  color: #a66a3f;
  cursor: pointer;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}

.calendar-nav:hover {
  background: rgba(166, 106, 63, 0.2);
  transform: translateY(-1px);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays {
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.calendar-weekdays span {
  color: #7b6f66;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

.calendar-grid {
  gap: 0.5rem;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 0.85rem;
  background: rgba(166, 106, 63, 0.08);
  color: #1f1f1f;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.calendar-day:hover {
  background: rgba(166, 106, 63, 0.18);
  transform: translateY(-1px);
}

.calendar-day.active,
.calendar-day.selected {
  background: #131516;
  color: #ffffff;
  box-shadow: 0 0.5rem 1.1rem rgba(0, 0, 0, 0.12);
}

.calendar-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.calendar-actions {
  margin-top: 1.15rem;
}

.calendar-actions .btn {
  width: 100%;
  height: 3rem;
  border: none;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.calendar-actions .btn-primary {
  background: #a66a3f;
  color: #fff;
  transition: background 0.22s ease;
}

.calendar-actions .btn-primary:hover {
  background: #8f5b36;
}

/* =========================
   ADMIN PANEL
========================= */

.admin-panel {
  padding: 60px 20px 100px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-panel h2,
.admin-panel h3 {
  color: #1f1f1f;
}

.admin-grid {
  display: grid;
  gap: 30px;
  margin-top: 24px;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(166, 106, 63, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f1f1f;
}

.admin-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(166, 106, 63, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-card p {
  margin: 6px 0;
  color: #1f1f1f;
}

.admin-btn {
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #a66a3f;
  color: white;
  cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 64rem) {
  .reservation-container {
    flex-direction: column;
    gap: 1.75rem;
    padding-inline: 1rem;
  }

  .reservation-info,
  .calendar-card {
    width: 100%;
  }

  .calendar-card {
    max-width: 100%;
  }

  .reservation-form {
    max-width: 100%;
  }
}

@media (max-width: 48rem) {
  .reservation {
    padding: 2.8rem 0 1rem;
  }

  .reservation-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-inline: 1rem;
  }

  .calendar-card {
    order: 1;
    max-width: 100%;
    padding: 0.95rem;
    border-radius: 1rem;
  }

  .reservation-info {
    order: 2;
  }

  .reservation-info h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.2rem, 6vw, 1.55rem);
    line-height: 1.05;
  }

  .reservation-details {
    gap: 0.7rem;
  }

  .reservation-row {
    gap: 0.55rem;
  }

  .time-slots {
    gap: 0.45rem;
    margin-top: 0.15rem;
  }

  .time-slot {
    min-width: 4.2rem;
    height: 2.2rem;
    padding: 0 0.75rem;
    font-size: 0.82rem;
  }

  .reservation-form {
    max-width: 100%;
    margin-top: 0.75rem;
    gap: 0.65rem;
  }

  .form-group {
    gap: 0.3rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group select {
    height: 2.35rem;
    padding: 0 0.78rem;
    border-radius: 0.72rem;
    font-size: 0.85rem;
  }

  .reservation-form .btn,
  .reservation-info .btn {
    min-height: 2.6rem;
    font-size: 0.88rem;
    padding-inline: 1rem;
  }

  .reservation-feedback {
    min-height: 1rem;
    margin-top: 0.55rem;
    font-size: 0.85rem;
  }

  .calendar-header {
    margin-bottom: 0.7rem;
  }

  .calendar-header h3 {
    font-size: 0.92rem;
  }

  .calendar-nav {
    width: 1.85rem;
    height: 1.85rem;
  }

  .calendar-weekdays {
    gap: 0.3rem;
    margin-bottom: 0.6rem;
  }

  .calendar-weekdays span {
    font-size: 0.72rem;
  }

  .calendar-grid {
    gap: 0.35rem;
  }

  .calendar-day {
    border-radius: 0.68rem;
    font-size: 0.8rem;
  }

  .calendar-actions {
    margin-top: 0.85rem;
  }

  .calendar-actions .btn {
    height: 2.6rem;
    font-size: 0.86rem;
  }
}
.booking-availability-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.1rem;
}

.booking-availability-panel[hidden] {
  display: none;
}

.booking-panel-title {
  margin: 0;
  color: #c99768;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

.booking-summary-btn {
  margin-top: 1rem; /* ✅ espace au-dessus */
  width: 100%; /* propre en mobile */
  align-self: flex-start;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.booking-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 32rem);
  margin: 8vh auto 0;
  padding: 1.25rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.booking-modal.is-visible .booking-modal-backdrop {
  opacity: 1;
}

.booking-modal.is-visible .booking-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.booking-modal-dialog h3 {
  margin: 0 0 1rem;
  color: #1f1f1f;
  font-size: 1.1rem;
}

.booking-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(166, 106, 63, 0.12);
  color: #1f1f1f;
  font-size: 1.1rem;
  cursor: pointer;
}

.booking-summary-content {
  display: grid;
  gap: 0.65rem;
}

.booking-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.booking-summary-label {
  color: #7b6f66;
  font-size: 0.9rem;
}

.booking-summary-value {
  color: #1f1f1f;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.booking-modal-actions {
  margin-top: 1rem;
}

.booking-modal-actions .btn {
  width: 100%;
}

@media (max-width: 48rem) {
  .booking-availability-panel {
    margin-top: 0.9rem;
    gap: 0.85rem;
  }

  .booking-panel-title {
    font-size: 0.92rem;
  }

  .booking-summary-btn {
    width: 100%;
  }

  .booking-modal-dialog {
    width: min(94vw, 30rem);
    margin-top: 6vh;
    padding: 1rem;
    border-radius: 1rem;
  }

  .booking-summary-item {
    gap: 0.75rem;
  }

  .booking-summary-label,
  .booking-summary-value {
    font-size: 0.85rem;
  }
}
