/* ============================================================
   NEKTAR — Modales : Nav Drawer + Réservation
   ============================================================ */

/* -------------------------------------------------------
   Shared — lock body scroll when any modal is open
------------------------------------------------------- */
body.modal-open { overflow: hidden; }

/* -------------------------------------------------------
   Close button (shared)
------------------------------------------------------- */
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
  z-index: 10;
}
.modal-close__bar {
  position: absolute;
  width: 18px; height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.modal-close__bar:first-child { transform: rotate(45deg); }
.modal-close__bar:last-child  { transform: rotate(-45deg); }


/* ============================================================
   1. NAV DRAWER
   ============================================================ */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
}
.nav-drawer.is-open { pointer-events: auto; }

/* Backdrop */
.nav-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 27, 62, 0.55);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.nav-drawer.is-open .nav-drawer__backdrop { opacity: 1; }

/* Panel — slides in from right */
.nav-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(85vw, 340px);
  background: var(--nektar-nuit);
  color: var(--on-photo);
  display: flex; flex-direction: column;
  padding: 64px 36px 48px 36px;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }

/* Logo */
.nav-drawer__logo {
  height: 60px;
  display: flex; align-items: center;
  margin-bottom: 44px;
}
.nav-drawer__logo img { height: 100%; width: auto; }

/* Links */
.nav-drawer__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  flex: 1;
}
.nav-drawer__links li:first-child a {
  border-top: 1px solid rgba(248, 244, 236, 0.12);
}
.nav-drawer__links li a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(248, 244, 236, 0.12);
  color: var(--on-photo); text-decoration: none;
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: 36px; letter-spacing: -0.01em; line-height: 1;
  transition: color var(--dur) var(--ease);
}
.nav-drawer__links li a:hover { color: var(--nektar-or); }
.nav-drawer__links li a.is-accent { color: var(--nektar-or); }

/* Language toggle */
.nav-drawer__lang {
  display: flex; align-items: center; gap: 10px;
  margin-top: 36px;
  font-family: var(--font-body); font-weight: 400;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--on-photo);
}
.nav-drawer__lang button {
  background: transparent; border: 0; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit;
  padding: 4px 0; opacity: 0.45;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-drawer__lang button.is-on  { opacity: 1; color: var(--nektar-or); }
.nav-drawer__lang .sep { opacity: 0.3; }

/* Footer — address */
.nav-drawer__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 244, 236, 0.12);
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-body); font-weight: 400;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-photo-muted);
  line-height: 1.9;
}


/* ============================================================
   2. RESERVATION MODAL
   ============================================================ */
.resa-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.resa-modal.is-open { pointer-events: auto; }

@media (min-width: 500px) {
  .resa-modal { align-items: center; }
}

/* Backdrop */
.resa-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 27, 62, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.resa-modal.is-open .resa-modal__backdrop { opacity: 1; }

/* Card */
.resa-modal__card {
  position: relative; z-index: 1;
  background: var(--nektar-creme);
  color: var(--nektar-nuit);
  width: 100%; max-width: 480px;
  max-height: 90svh;
  overflow-y: auto;
  padding: 48px 32px 44px 32px;
  border-top: 2px solid var(--nektar-or);
  transform: translateY(32px);
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease),
    opacity var(--dur-slow) var(--ease);
}
.resa-modal.is-open .resa-modal__card {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 500px) {
  .resa-modal__card {
    border: 1px solid var(--nektar-or);
    border-top: 2px solid var(--nektar-or);
    max-height: 92vh;
    transform: translateY(16px) scale(0.985);
  }
  .resa-modal.is-open .resa-modal__card {
    transform: translateY(0) scale(1);
  }
}

/* Header */
.resa-modal__eyebrow {
  display: block;
  font-family: var(--font-body); font-weight: 400;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--nektar-or);
  margin-bottom: 8px;
}
.resa-modal__title {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 6vw, 34px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--nektar-nuit);
  margin: 0 0 32px 0;
}

/* Form */
.resa-modal__form {
  display: flex; flex-direction: column; gap: 20px;
}
.resa-modal__row {
  display: flex; gap: 20px;
}
.resa-modal__field {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; min-width: 0;
}
.resa-modal__field label {
  font-family: var(--font-body); font-weight: 400;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--nektar-nuit-60);
}
.resa-modal__field input,
.resa-modal__field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--nektar-nuit-40);
  padding: 10px 0;
  font-family: var(--font-body); font-weight: 300;
  font-size: 16px; /* iOS: évite le zoom auto */
  color: var(--nektar-nuit);
  appearance: none; -webkit-appearance: none;
  border-radius: 0;
  outline: 0; width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.resa-modal__field input:focus,
.resa-modal__field select:focus { border-bottom-color: var(--nektar-or); }
.resa-modal__field input::placeholder { color: var(--nektar-nuit-40); }
/* Custom arrow for <select> */
.resa-modal__field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><polyline points='1,1 6,7 11,1' fill='none' stroke='%23C9A84C' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

/* Submit */
.resa-modal__submit {
  margin-top: 12px;
  align-self: flex-start;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 400;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--nektar-nuit);
  padding: 0 0 7px 0;
  border-bottom: 1px solid var(--nektar-or);
  transition: color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}
.resa-modal__submit:hover { color: var(--nektar-or); letter-spacing: 0.32em; }

/* Phone note */
.resa-modal__note {
  margin: 20px 0 0 0;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 13px; line-height: 1.55;
  color: var(--nektar-nuit-60);
  max-width: none;
}

/* Confirmation state */
.resa-modal__confirm {
  min-height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; text-align: center;
}
.resa-modal__confirm-check {
  width: 40px; height: 40px;
  border: 1px solid var(--nektar-or);
  display: flex; align-items: center; justify-content: center;
  color: var(--nektar-or);
  font-size: 18px;
}
.resa-modal__confirm p {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 20px; line-height: 1.5; color: var(--nektar-nuit);
  max-width: none; margin: 0;
}
