/* ── Section fond ── */

.resa-bg {
  height: calc(100vh - 72px);
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--noir);
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 28px,
      rgba(200, 169, 110, 0.05) 28px, rgba(200, 169, 110, 0.05) 29px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 28px,
      rgba(200, 169, 110, 0.05) 28px, rgba(200, 169, 110, 0.05) 29px
    );
}

/* ── Modal ── */

.resa-modal {
  background-color: var(--blanc);
  width: min(900px, 100%);
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.4);
}

/* ── Barre de progression ── */

.resa-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 3px;
  flex-shrink: 0;
}

.resa-prog-seg {
  background-color: rgba(138, 138, 130, 0.2);
  transition: background-color 0.3s;
}

.resa-prog-seg.done {
  background-color: var(--noir);
}

/* ── En-tête ── */

.resa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid rgba(138, 138, 130, 0.18);
  flex-shrink: 0;
}

.resa-header-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.resa-brand {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--noir);
  text-decoration: none;
}

.resa-step-indicator {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.resa-header-tag {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-close {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--gris);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  transition: color 0.2s;
}

.resa-close:hover {
  color: var(--noir);
}

/* ── Steps ── */

@keyframes resa-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.resa-step {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.resa-step.active {
  display: flex;
  animation: resa-fade-in 0.28s ease forwards;
}

.resa-step-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.8rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.resa-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  color: var(--noir);
  flex-shrink: 0;
}

.resa-title em {
  font-style: italic;
  color: var(--or);
}

/* ── Footer des étapes ── */

.resa-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  border-top: 1px solid rgba(138, 138, 130, 0.18);
  gap: 1rem;
}

.resa-footer-hint {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-btn-next {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--noir);
  color: var(--blanc);
  border: 1px solid var(--noir);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.resa-btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.resa-btn-next:not(:disabled):hover {
  background-color: var(--or);
  border-color: var(--or);
  color: var(--noir);
}

.resa-btn-back {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--gris);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.resa-btn-back:hover {
  color: var(--noir);
}

/* ─────────────────────────────────────
   ÉTAPE 1 — Calendrier
───────────────────────────────────── */

.resa-step1-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
}

.resa-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.resa-cal-month-label {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--noir);
}

.resa-cal-nav {
  background: none;
  border: 1px solid rgba(138, 138, 130, 0.3);
  color: var(--noir);
  width: 1.9rem;
  height: 1.9rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.resa-cal-nav:hover {
  background-color: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}

.resa-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.4rem;
}

.resa-cal-weekdays span {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  text-align: center;
  padding: 0.3rem 0;
}

.resa-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  color: var(--noir);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.cal-day:hover:not(.closed):not(.past):not(.empty):not(.selected) {
  background-color: rgba(26, 26, 24, 0.08);
}

.cal-day.selected:hover {
  background-color: var(--noir);
  color: var(--blanc);
}

.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--or);
}

.cal-day.selected {
  background-color: var(--noir);
  color: var(--blanc);
}

.cal-day.selected.today::after {
  background-color: var(--or);
}

.cal-day.closed {
  color: rgba(138, 138, 130, 0.4);
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.past {
  color: rgba(138, 138, 130, 0.28);
  cursor: not-allowed;
}

.cal-day.empty {
  cursor: default;
}

.resa-cal-legend {
  display: flex;
  gap: 1.4rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: .8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--or);
  display: inline-block;
  flex-shrink: 0;
}

.legend-closed-ex {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  text-decoration: line-through;
  color: rgba(138, 138, 130, 0.4);
  display: inline-block;
}

.legend-sel {
  width: 12px;
  height: 12px;
  background-color: var(--noir);
  display: inline-block;
  flex-shrink: 0;
}

/* Panneau de sélection de date */

.resa-date-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.resa-date-display {
  display: flex;
  flex-direction: column;
}

.resa-sub-label {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  display: block;
  margin-bottom: 0.65rem;
}

.resa-date-big {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  color: var(--noir);
  line-height: 1.3;
}

.resa-date-sub {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 0.5rem;
}

.resa-bonsavoir {
  background-color: rgba(200, 169, 110, 0.1);
  border-left: 2px solid var(--or);
  padding: 1rem 1.1rem;
}

.resa-bonsavoir-title {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  display: block;
  margin-bottom: 0.55rem;
}

.resa-bonsavoir-text {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  line-height: 1.75;
  color: var(--noir);
}

/* ─────────────────────────────────────
   ÉTAPE 2 — Service & couverts
───────────────────────────────────── */

/* Recap bar (pills) */

.resa-recap-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.resa-recap-pill {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--noir);
  border: 1px solid rgba(138, 138, 130, 0.32);
  padding: 0.28rem 0.75rem;
}

/* Blocs */

.resa-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.resa-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resa-block-label {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-tables-left {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or);
}

/* Cartes de service */

.resa-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.resa-service-card {
  border: 1px solid rgba(138, 138, 130, 0.25);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s, border-color 0.2s;
}

.resa-service-card:hover:not(.active) {
  border-color: rgba(26, 26, 24, 0.4);
}

.resa-service-card.active {
  background-color: var(--noir);
  border-color: var(--noir);
}

.resa-service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--noir);
}

.resa-service-card.active .resa-service-name {
  color: var(--blanc);
}

.resa-service-hours {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gris);
}

.resa-service-card.active .resa-service-hours {
  color: var(--or);
}

.resa-service-desc {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--gris);
}

.resa-service-card.active .resa-service-desc {
  color: rgba(200, 169, 110, 0.65);
}

/* Créneaux horaires */

.resa-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resa-slot {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(138, 138, 130, 0.28);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--noir);
}

.resa-slot:hover:not(.active) {
  border-color: var(--noir);
}

.resa-slot.active {
  background-color: #7a1f40;
  border-color: #7a1f40;
  color: var(--blanc);
}

/* Boutons couverts */

.resa-covers-grid {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.resa-cover-btn {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(138, 138, 130, 0.28);
  background: none;
  color: var(--noir);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.resa-cover-btn:hover:not(.active) {
  border-color: var(--noir);
}

.resa-cover-btn.active {
  background-color: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}

.resa-covers-note {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--gris);
}

/* ─────────────────────────────────────
   ÉTAPE 3 — Coordonnées
───────────────────────────────────── */

.resa-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.resa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.resa-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.resa-form-group-full {
  grid-column: 1 / -1;
}

.resa-form-label {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6em;
}

.resa-form-input {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--noir);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(138, 138, 130, 0.38);
  padding: 0.55rem 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.resa-form-input:focus {
  border-bottom-color: var(--or);
}

.resa-form-input::placeholder {
  color: rgba(138, 138, 130, 0.5);
}

.resa-textarea {
  resize: none;
  height: 4.5rem;
  line-height: 1.6;
  padding-top: 0.4rem;
}

.resa-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resa-tag {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(138, 138, 130, 0.32);
  color: var(--gris);
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.resa-tag:hover,
.resa-tag.active {
  background-color: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}

.resa-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
}

.resa-checkbox {
  flex-shrink: 0;
  margin-top: 2px;
  width: 13px;
  height: 13px;
  accent-color: var(--noir);
  cursor: pointer;
}

.resa-checkbox-text {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  line-height: 1.65;
  color: var(--gris);
}

.resa-link {
  color: var(--noir);
  text-underline-offset: 3px;
}

/* ─────────────────────────────────────
   ÉTAPE 4 — Confirmation
───────────────────────────────────── */

.resa-confirm-banner {
  background-color: rgba(200, 169, 110, 0.1);
  border-left: 3px solid var(--or);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.resa-confirm-ref {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0;
}

.resa-confirm-line {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--noir);
  margin: 0;
}

/* Ticket */

.resa-ticket {
  border: 1px solid rgba(138, 138, 130, 0.22);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  flex-shrink: 0;
}

.resa-ticket-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.resa-ticket-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--noir);
  line-height: 1.2;
}

.resa-ticket-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--or);
}

.resa-ticket-meta {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-ticket-who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 138, 130, 0.15);
}

.resa-ticket-col {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.resa-ticket-col-label {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-ticket-col-value {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--noir);
}

.resa-ticket-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.resa-qr {
  width: 76px;
  height: 76px;
  background-image:
    repeating-conic-gradient(var(--noir) 0% 25%, transparent 0% 50%);
  background-size: 10px 10px;
  opacity: 0.18;
  border: 1px solid rgba(26, 26, 24, 0.12);
}

.resa-qr-label {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
}

/* Actions */

.resa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  flex-shrink: 0;
}

.resa-action-card {
  border: 1px solid rgba(138, 138, 130, 0.22);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.resa-action-danger {
  border-color: rgba(180, 40, 40, 0.2);
}

.resa-action-title {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
}

.resa-action-danger .resa-action-title {
  color: #b42828;
}

.resa-action-desc {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--gris);
  margin: 0;
}

.resa-action-btn {
  font-family: 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(138, 138, 130, 0.32);
  color: var(--noir);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.resa-action-btn:hover {
  background-color: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}

.resa-action-btn-danger {
  border-color: rgba(180, 40, 40, 0.3);
  color: #b42828;
}

.resa-action-btn-danger:hover {
  background-color: #b42828;
  border-color: #b42828;
  color: var(--blanc);
}

/* ─────────────────────────────────────
   Responsive — Mobile (≤ 768px)
───────────────────────────────────── */

@media (max-width: 768px) {

  .resa-bg {
    height: auto;
    min-height: calc(100vh - 72px);
    padding: 0;
    align-items: stretch;
    scroll-snap-align: none;
    flex-shrink: unset;
  }

  .resa-modal {
    height: auto;
    min-height: calc(100vh - 72px);
    box-shadow: none;
  }

  .resa-header {
    padding: 1rem 1.25rem;
  }

  .resa-header-tag {
    display: none;
  }

  .resa-step-inner {
    padding: 1.4rem 1.25rem;
  }

  .resa-footer {
    padding: 0.9rem 1.25rem;
  }

  .resa-step1-layout {
    grid-template-columns: 1fr;
  }

  .resa-service-cards {
    grid-template-columns: 1fr;
  }

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

  .resa-ticket {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resa-ticket-qr-col {
    display: none;
  }

  .resa-ticket-who {
    grid-template-columns: 1fr 1fr;
  }

  .resa-actions {
    grid-template-columns: 1fr;
  }
}
