/* ============================================================
   RÉSERVATION — assets/css/reserver.css
   Préfixe : reser-
   ============================================================ */

/* ── Hero ── */
.reser-hero {
  background: linear-gradient(135deg, #faf6e4 0%, #eef7f1 100%);
  padding: 60px 40px 50px;
  text-align: center;
  border-bottom: 1px solid #ede8dc;
}

.reser-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e8f5ec;
  color: #54a66a;
  border: 1px solid #c3e6cb;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.reser-titre {
  font-family: 'Schoolbell', cursive;
  font-size: 2.2rem;
  color: #b5833e;
  margin: 0 0 12px 0;
}

.reser-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #6b5644;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Container ── */
.reser-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Layout 2 colonnes ── */
.reser-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

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

/* ── Étapes ── */
.reser-step {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #ede8dc;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(181,131,62,0.07);
}

.reser-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.reser-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #b5833e;
  color: #fff;
  font-family: 'Schoolbell', cursive;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reser-step-titre {
  font-family: 'Schoolbell', cursive;
  font-size: 1.3rem;
  color: #b5833e;
  margin: 0;
}

.reser-opt {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 400;
}

.reser-step-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #8a7060;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.reser-step-hint i { color: #b5833e; }

/* ── Enfants ── */
.reser-info-box {
  background: #fff8c9;
  border: 1px dashed #eec9ae;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #6b5644;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reser-info-box a { color: #54a66a; font-weight: 700; }

.reser-enfants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reser-enfant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e8dfd0;
  border-radius: 14px;
  background: #fdfaf5;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  flex: 1;
  min-width: 180px;
}

.reser-enfant-card input { display: none; }

.reser-enfant-card:has(input:checked) {
  border-color: #54a66a;
  background: #e8f5ec;
}

.reser-enfant-card:has(input:checked) .reser-enfant-check {
  display: block;
  color: #54a66a;
}

.reser-enfant-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #b5833e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.reser-enfant-nom {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3d2b1f;
}

.reser-enfant-age {
  font-size: 0.78rem;
  color: #8a7060;
}

.reser-enfant-check {
  display: none;
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1rem;
}

/* ── Calendrier sélection ── */
.reser-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reser-cal-mois {
  font-family: 'Schoolbell', cursive;
  font-size: 1.2rem;
  color: #b5833e;
}

.reser-cal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e8dfd0;
  background: #fff;
  color: #b5833e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.15s;
}

.reser-cal-btn:hover { background: #b5833e; color: #fff; border-color: #b5833e; }

.reser-cal-grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #ede8dc;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.reser-cal-header {
  background: #fdfaf5;
  text-align: center;
  padding: 8px 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a7060;
  text-transform: uppercase;
}

/* Cases générées en JS */
.reser-cal-jour {
  background: #fff;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d2b1f;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
  user-select: none;
}

.reser-cal-jour.vide        { background: #fafafa; cursor: default; }
.reser-cal-jour.passe       { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.reser-cal-jour.ferme       { background: #f5f0ea; color: #c0ac98; cursor: not-allowed; }
.reser-cal-jour.complet     { background: #fff5f5; color: #d9534f; cursor: not-allowed; }
.reser-cal-jour.disponible  { border-bottom: 3px solid #54a66a; }
.reser-cal-jour.disponible:hover { background: #e8f5ec; }
.reser-cal-jour.selectionne {
  background: #54a66a !important;
  color: #fff !important;
  border-bottom-color: #3d8a55 !important;
  font-weight: 700;
}

.reser-cal-jour.aujourd-hui { font-weight: 800; }
.reser-cal-jour.aujourd-hui::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #b5833e;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

/* Tags dates sélectionnées */
.reser-dates-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  align-items: center;
}

.reser-dates-placeholder {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #c0ac98;
  font-style: italic;
}

.reser-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5ec;
  color: #2e7d47;
  border: 1px solid #c3e6cb;
  border-radius: 20px;
  padding: 4px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.reser-date-tag button {
  background: none;
  border: none;
  color: #2e7d47;
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.1s;
}

.reser-date-tag button:hover { opacity: 1; }

/* ── Formulaire ── */
.reser-horaires-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reser-form-group { margin-bottom: 14px; }
.reser-form-group:last-child { margin-bottom: 0; }

.reser-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b5833e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.reser-req { color: #e05252; }

#formReservation input[type="time"],
#formReservation textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e8dfd0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  color: #3d2b1f;
  background: #fdfaf5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#formReservation input:focus,
#formReservation textarea:focus {
  border-color: #54a66a;
  box-shadow: 0 0 0 3px rgba(84,166,106,0.12);
  background: #fff;
}

#formReservation textarea { resize: vertical; min-height: 100px; }

/* ── Bouton submit ── */
.reser-btn-submit {
  width: 100%;
  padding: 14px;
  background: #54a66a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.reser-btn-submit:hover   { background: #3d8a55; transform: translateY(-1px); }
.reser-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Feedback ── */
.reser-feedback {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.reser-feedback.success { background: #e8f5ec; color: #2e7d47; border: 1px solid #c3e6cb; }
.reser-feedback.error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ── Récapitulatif ── */
.reser-recap-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #ede8dc;
  padding: 24px 22px;
  box-shadow: 0 2px 14px rgba(181,131,62,0.07);
  position: sticky;
  top: 24px;
}

.reser-recap-titre {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Schoolbell', cursive;
  font-size: 1.3rem;
  color: #b5833e;
  margin: 0 0 20px 0;
}

.reser-recap-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ebe4;
}

.reser-recap-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.reser-recap-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b5833e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.reser-recap-val {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #3d2b1f;
  line-height: 1.5;
}

.reser-recap-info {
  background: #fdfaf5;
  border: 1px dashed #eec9ae;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: #6b5644;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
}

.reser-recap-info i { color: #b5833e; flex-shrink: 0; margin-top: 2px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .reser-hero     { padding: 40px 20px 35px; }
  .reser-titre    { font-size: 1.7rem; }
  .reser-container { padding: 28px 16px 60px; }
  .reser-horaires-grid { grid-template-columns: 1fr; }
  .reser-enfant-card { min-width: 140px; }
}