@layer components {
/* ── MODAL — booking overlay ──────────────────────────────────── */
/* JS hooks: [data-open-booking]  [data-close-booking]  [data-booking-modal] */
/* Ouverture via .open sur .modal-veil  |  Esc + clic veil → fermeture      */

.modal-veil {
  position: fixed; inset: 0;
  background: var(--mj-ink-55);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--easing);
  padding: 20px;
}
.modal-veil.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px;
  background: var(--mj-paper);
  border-radius: 32px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateY(10px) scale(0.98);
  transition: transform 280ms var(--easing);
}
.modal-veil.open .modal { transform: none; }
.modal h3 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 26px;
  color: var(--mj-aubergine);
  line-height: 1.3;
}
.modal h3 em {
  font-family: var(--font-display-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
}
.modal p { font-size: 15px; color: var(--mj-graphite); width: 100%; }
.modal-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.modal .btn { flex: 1 1 auto; justify-content: center; }
.modal-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--mj-aubergine-08);
  color: var(--mj-aubergine);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-wrap { position: relative; width: 100%; max-width: 520px; }
.modal .date-cabinet {
  display: flex;
  gap: 24px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .modal-veil { align-items: flex-end; justify-content: stretch; padding: 0; }
  .modal-wrap { max-width: 100%; }
  .modal {
    max-width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 52px 24px 32px;
    transform: translateY(100%);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .modal-close {
    top: 12px; right: 12px;
    width: 44px; height: 44px;
    background: var(--mj-aubergine-12);
    z-index: 100;
  }
  .modal-row {
    margin-top: auto;
    padding-top: 16px;
  }
  .modal-veil.open .modal { transform: translateY(0); }
}

} /* end @layer components */
