/* reserver.css — DA v2 */

.section__head--center { text-align: center; }
.section__head--center h1 { margin: .25rem 0 0; }
.muted { color: var(--muted); }

/* ── Conteneur centré ──────────────── */
.reservation-section {
  max-width: 1180px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 16px;
}
.reservation-section table { margin-left: auto; margin-right: auto; }

/* ── Layout ──────────────────────── */
.reservation-layout {
  display: grid;
  grid-template-columns: 520px minmax(420px, 620px);
  gap: 16px;
  align-items: start;
  justify-content: center;
}
@media (min-width: 1440px) {
  .reservation-layout { grid-template-columns: 560px minmax(440px, 640px); gap: 18px; }
}
@media (max-width: 1000px) {
  .reservation-layout { grid-template-columns: 1fr; }
}

/* ── Cartes ──────────────────────── */
.card,
.resv__calendar,
.resv__right {
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,8,0,.06);
  padding: 1.1rem 1.2rem;
}
.calendar-card { position: sticky; top: 84px; }
.details-card  { max-width: 640px; }

/* ── Pré-remplissage ─────────────── */
.prefill-summary {
  display: flex; align-items: center; gap: .5rem;
  margin: .5rem 0 .75rem; padding: .5rem .7rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-soft); font-size: .92rem;
}
.day-status {
  margin-bottom: .75rem; padding: .65rem .8rem;
  border: 1px solid #f5cfc8; border-radius: 8px;
  background: #fff5f3; color: #7a2e2e; font-size: .95rem;
}

/* ── FullCalendar ────────────────── */
#calendar { margin: .25rem; height: auto !important; }
.fc .fc-toolbar { gap: .5rem; }
.fc .fc-toolbar-title { font-size: 1rem; font-weight: 700; font-family: 'Playfair Display', Georgia, serif; }
.fc .fc-button {
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: .35rem .6rem; line-height: 1; box-shadow: none; font-family: inherit;
}
.fc .fc-button:hover   { background: var(--bg-soft); border-color: var(--line); }
.fc .fc-button:focus   { box-shadow: 0 0 0 3px rgba(181,117,46,.15); outline: 0; }
.fc .fc-button-primary { background: #fff; color: var(--text); border-color: var(--line); }
.fc .fc-col-header-cell-cushion { padding: 6px 0; font-weight: 600; font-size: .9rem; }
.fc .fc-daygrid-day-frame { padding: 2px; }
.fc .fc-daygrid-day-number { font-size: .88rem; font-weight: 600; padding: 4px; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--line); }

/* Jours fermés */
.fc-daygrid-day.is-closed { background: var(--bg-soft) !important; opacity: 1; }
.fc-daygrid-day.is-closed .fc-daygrid-day-number { color: var(--muted) !important; }

/* Jour sélectionné */
.fc-daygrid-day.is-selected-day {
  background: #fdf4e8;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.fc-daygrid-day.is-selected-day .fc-daygrid-day-number {
  color: var(--brand-dark) !important; font-weight: 700 !important;
}

/* ── Créneaux ────────────────────── */
.creneaux-container { display: block; }
.creneaux-service { display: flex; flex-wrap: wrap; gap: 6px; margin: .25rem 0 1rem; }
.creneaux-service h4 {
  flex: 0 0 100%; margin: .25rem 0 .35rem;
  font-size: .95rem; font-weight: 700; color: var(--text);
}

.btn-time {
  display: inline-block; padding: .45rem .75rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text);
  cursor: pointer; font-size: .9rem; line-height: 1; font-family: inherit;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn-time:hover  { background: var(--bg-soft); border-color: #C9BFB2; }
.btn-time:focus  { outline: none; box-shadow: 0 0 0 3px rgba(181,117,46,.15); }
.btn-time.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 12px rgba(181,117,46,.25); }
.slot-full { font-size: .88rem; color: var(--danger); padding: .35rem .6rem; }

/* ── Formulaire ──────────────────── */
.form-grid  { display: block; }
.form-row   { margin-bottom: .85rem; }
.form-row label { display: block; margin-bottom: .35rem; font-weight: 600; color: var(--text); font-size: .94rem; }

.form-row input,
.form-row textarea {
  width: 100%; padding: .72rem .9rem;
  border: 1.5px solid #DDD6CB; border-radius: 8px;
  background: #fff; font-size: .95rem; font-family: inherit; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181,117,46,.15);
  outline: none;
}

.form-actions { margin-top: 1rem; }
.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: .72rem 1.3rem;
  border-radius: 999px; border: none; font-weight: 700; font-family: inherit;
  cursor: pointer; font-size: .96rem;
  box-shadow: 0 4px 16px rgba(181,117,46,.28);
  transition: transform .12s, box-shadow .18s;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(181,117,46,.35); }
.btn:active { transform: translateY(0); }
.btn:focus  { outline: none; box-shadow: 0 0 0 3px rgba(181,117,46,.22); }

/* ── Notices ─────────────────────── */
.notice {
  background: #fdf8ee; border: 1px solid #f0d5a0;
  color: #7a5a00; padding: .65rem .85rem;
  border-radius: 8px; margin: .65rem 0 .9rem; font-size: .93rem;
}

/* ── Compat ──────────────────────── */
.resv { width: 100%; max-width: 1180px; margin: 1.5rem auto 2.5rem; }
@media (max-width: 980px) { .resv { width: 95%; grid-template-columns: 1fr; } }
.resv__hint { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
