/* ============================================
   SEZA YUGEN — Cuisine Japonaise
   Design System & Styles
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   DESIGN TOKENS — NIGHT MODE (defaut)
   ============================================ */
:root {
  --bg: #0B0B0D;
  --bg2: #1A1A1E;
  --surface: #1A1A1E;
  --gold: #D4AF37;
  --ochre: #B88A2B;
  --vermillion: #8B0000;
  --crimson: #8B0000;
  --text: #F7F7F5;
  --muted: #8A8A8A;
  --forest: #1A2A1A;
  --border: rgba(138, 138, 138, 0.12);
  --border-gold: rgba(212, 175, 55, 0.25);
  --shadow: rgba(0, 0, 0, 0.5);
  --glass: rgba(11, 11, 13, 0.85);
  --nav-h: 72px;
  --section-py: clamp(4rem, 10vw, 7rem);
  --container-px: clamp(1rem, 4vw, 4rem);
  --max-w: 1280px;
}

/* ============================================
   DAY MODE
   ============================================ */
[data-theme="day"] {
  --bg: #F3EEE7;
  --bg2: #E8E1D6;
  --surface: #E8E1D6;
  --gold: #C49A2B;
  --ochre: #A67C00;
  --vermillion: #B22222;
  --crimson: #8B1A1A;
  --text: #1C1C1C;
  --muted: #7A7A7A;
  --forest: #3A5A3A;
  --border: rgba(28, 28, 28, 0.10);
  --border-gold: rgba(196, 154, 43, 0.30);
  --shadow: rgba(0, 0, 0, 0.12);
  --glass: rgba(243, 238, 231, 0.90);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.section { padding: var(--section-py) 0; }
.section-dark { background-color: var(--bg2); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
h1, h2, h3, h4, .font-serif { font-family: 'Cormorant Garamond', serif; }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   0. SPLASH SCREEN
   ============================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  animation: splashIn 2.5s ease forwards;
}
.splash-content svg {
  width: 280px;
  height: auto;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   1. NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-px);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  max-width: var(--max-w);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
#navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  position: relative;
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s ease;
}
.theme-toggle .icon-day { display: none; }
[data-theme="day"] .theme-toggle .icon-night { display: none; }
[data-theme="day"] .theme-toggle .icon-day { display: block; }
.theme-toggle .icon-night { display: block; }
[data-theme="day"] .theme-toggle .icon-night { display: none; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-pill-gold {
  background: var(--gold);
  color: #0c0c0c;
}
.btn-pill-gold:hover {
  background: var(--ochre);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-pill-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-pill-outline:hover {
  background: var(--gold);
  color: #0c0c0c;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--text);
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================
   2. HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,8,6,0.4) 0%, rgba(13,8,6,0.7) 50%, var(--bg) 100%);
  z-index: 1;
}
[data-theme="day"] .hero-overlay {
  background: linear-gradient(180deg, rgba(243,238,231,0.2) 0%, rgba(232,225,214,0.5) 50%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--container-px);
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 300;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--muted);
  margin-bottom: 0.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}
.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Door Scroll Animation --- */
.door-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  pointer-events: none;
  overflow: hidden;
}
.door-half {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s linear;
}
.door-left {
  background: rgba(13, 8, 6, 0.92);
  transform: translateX(0);
}
.door-right {
  background: rgba(13, 8, 6, 0.92);
  transform: translateX(0);
}
.door-left img, .door-right img {
  position: absolute;
  width: 200%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.door-left img { right: 0; }
.door-right img { left: 0; }

/* ============================================
   3. METRICS BAR
   ============================================ */
#metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.metric-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bg);
  transition: background 0.3s ease;
}
.metric-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}
.metric-label {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

/* ============================================
   4. AMBIANCE GALLERY
   ============================================ */
#ambiance { overflow: hidden; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}
.ambiance-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}
.ambiance-grid-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}
.ambiance-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ambiance-grid-item:hover img { transform: scale(1.05); }
.ambiance-grid-item:first-child { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
.ambiance-grid-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,8,6,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ambiance-grid-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1.5rem;
  transition: background 0.3s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   5. MENU
   ============================================ */
#menu { background: var(--bg2); }
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.menu-tab {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}
.menu-tab:hover { color: var(--gold); border-color: var(--border-gold); }
.menu-tab.active {
  background: var(--gold);
  color: #0c0c0c;
  border-color: var(--gold);
}
.menu-panel {
  display: none;
  animation: menuFadeIn 0.4s ease;
}
.menu-panel.active { display: block; }
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.menu-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.menu-card-img {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.menu-card-content { flex: 1; }
.menu-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.menu-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.menu-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-align: center;
}
.menu-category-sub {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ============================================
   6. PHILOSOPHIE
   ============================================ */
#philosophy {
  position: relative;
  overflow: hidden;
}
.philosophy-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.philosophy-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.15) saturate(0.8);
}
.philosophy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 50%, var(--bg) 100%);
  z-index: 1;
}
.philosophy-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--text);
}
[data-theme="day"] .philosophy-quote { color: var(--bg); }
[data-theme="day"] .philosophy-attribution { color: var(--muted); }
.philosophy-quote::before { content: '\201C'; color: var(--gold); }
.philosophy-quote::after { content: '\201D'; color: var(--gold); }
.philosophy-attribution {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 2px;
}
.philosophy-attribution span { color: var(--gold); }

/* ============================================
   7. RÉSERVATIONS
   ============================================ */
.reserv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.reserv-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.reserv-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.reserv-detail-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.reserv-detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.reserv-detail-value {
  font-size: 1rem;
}
.reserv-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Form */
.reserv-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.reserv-form h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select {
  appearance: auto;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn-full { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ============================================
   8. ACCÈS — Volets animés + Lanternes/Pétales
   ============================================ */
#access {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

/* --- Day mode background (volets + pétales) --- */
.access-bg-day {
  position: absolute;
  inset: 0;
  z-index: 0;
}
[data-theme="night"] .access-bg-day { display: none; }

/* --- Night mode backgrounds (volets + lanternes) --- */
.access-bg-night {
  position: absolute;
  inset: 0;
  z-index: 0;
}
[data-theme="day"] .access-bg-night { display: none; }

.access-bg-open {
  position: absolute;
  inset: 0;
}
.access-bg-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Shutters (day + night) --- */
.shutter-container {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 1;
}
.shutter {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.shutter img {
  position: absolute;
  width: 200%;
  height: 100%;
  object-fit: cover;
}
.shutter-left { transform: translateX(0); }
.shutter-left img { right: 0; }
.shutter-right { transform: translateX(0); }
.shutter-right img { left: 0; }
.shutter-left.open { transform: translateX(-100%); }
.shutter-right.open { transform: translateX(100%); }

/* --- Overlay for text --- */
.access-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(11,11,13,0.25) 0%,
    rgba(11,11,13,0.45) 50%,
    rgba(11,11,13,0.7) 100%
  );
  pointer-events: none;
}
[data-theme="day"] .access-overlay {
  background: linear-gradient(180deg,
    rgba(243,238,231,0.15) 0%,
    rgba(232,225,214,0.35) 50%,
    rgba(243,238,231,0.55) 100%
  );
}

/* --- Access content --- */
.access-content {
  position: relative;
  z-index: 3;
  text-align: center;
}
.access-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.access-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  color: var(--muted);
}
.access-details span { display: flex; align-items: center; gap: 0.5rem; }
.access-btn { margin-top: 1rem; }
#access .section-title { color: var(--text); }

/* --- Floating Elements: Lanterns (night) & Petals (day) --- */
.float-container {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

/* --- Lantern (night mode) --- */
.lantern {
  position: fixed;
  bottom: -50px;
  z-index: 9999;
  width: 20px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: lanternFloat ease-in forwards;
}
.lantern svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.3));
}

@keyframes lanternFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  12% {
    opacity: 0.8;
  }
  40% {
    transform: translateY(-40vh) translateX(var(--sway, 12px)) rotate(4deg);
  }
  70% {
    transform: translateY(-75vh) translateX(calc(var(--sway, 12px) * -0.6)) rotate(-3deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-110vh) translateX(calc(var(--sway, 12px) * 0.3)) rotate(2deg);
  }
}

/* --- Petal (day mode) --- */
.petal {
  position: fixed;
  bottom: -20px;
  z-index: 9999;
  width: 13px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: petalFloat ease-in forwards;
}
.petal svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes petalFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  15% {
    opacity: 0.9;
  }
  40% {
    transform: translateY(-35vh) translateX(var(--sway, 15px)) rotate(35deg) scale(1);
  }
  70% {
    transform: translateY(-70vh) translateX(calc(var(--sway, 15px) * -0.6)) rotate(80deg) scale(0.75);
  }
  100% {
    opacity: 0;
    transform: translateY(-105vh) translateX(calc(var(--sway, 15px) * 0.3)) rotate(130deg) scale(0.4);
  }
}

/* ============================================
   9. CTA FINAL
   ============================================ */
#cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,160,41,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   10. FOOTER
   ============================================ */
#footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-credit span { color: var(--gold); }

/* ============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================ */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .nav-actions .btn-pill { display: none; }

  .ambiance-grid { grid-template-columns: 1fr; }
  .ambiance-grid-item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16/10; }

  .reserv-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }

  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { flex-direction: column; }
  .menu-card-img { width: 100%; height: 180px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

  .reserv-ctas { flex-direction: column; }
  .reserv-ctas .btn-pill { width: 100%; justify-content: center; }

  .hero-title { letter-spacing: 3px; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #splash { display: none; }
}

/* ============================================
   MENU INTERACTIF PREMIUM — Overlay
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0c0c0c;
  display: none;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif;
}
.menu-overlay.open { display: block; }

/* --- Cover --- */
.menu-cover {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0c0c;
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.menu-cover.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}
.menu-cover-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 70vw);
  height: min(700px, 85vh);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(ellipse at center, #2A2520 0%, #1A1612 60%, #0D0B09 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(196,160,41,0.12), 0 0 30px rgba(196,160,41,0.04);
}
.menu-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 0 12px rgba(196,160,41,0.06));
}
.menu-cover-hint {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: hintPulse 2s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* --- Close Button --- */
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 2rem;
  opacity: 0;
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.menu-close.visible {
  opacity: 0.7;
  pointer-events: auto;
}
.menu-close.visible:hover {
  opacity: 1;
  background: rgba(255,255,255,0.12);
}

/* --- Pages Container --- */
.menu-pages-container {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.menu-pages-container.visible { opacity: 1; }

/* --- Individual Page --- */
.menu-page {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.96);
}
.menu-page.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.menu-page.prev {
  opacity: 0;
  transform: translateX(-8%) scale(0.96);
  pointer-events: none;
}
.menu-page.next {
  opacity: 0;
  transform: translateX(8%) scale(0.96);
  pointer-events: none;
}

/* --- Page Background --- */
.menu-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.menu-page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.12) saturate(1.1);
}
.menu-page-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(13,8,6,0.5) 0%, rgba(13,8,6,0.2) 50%, rgba(13,8,6,0.6) 100%);
}

/* --- Page Content Layout (Image Panel + Text) --- */
.menu-page-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  width: 100%;
  height: 100%;
  padding: 6rem 4rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

/* --- Image Panel --- */
.menu-image-panel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s;
}
.menu-page.active .menu-image-panel {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.menu-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-page.active .menu-image-panel img {
  transform: scale(1.08);
}
.menu-image-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 6px 16px;
  background: rgba(13,8,6,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
}
.menu-image-secondary {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 40%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: rotate(6deg);
  transition: transform 0.6s ease;
}
.menu-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-image-panel:hover .menu-image-secondary {
  transform: rotate(0deg) scale(1.05);
}

/* --- Page Text --- */
.menu-page-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.4s;
  max-height: 90%;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.menu-page.active .menu-page-text {
  opacity: 1;
  transform: translateY(0);
}
.menu-page-text::-webkit-scrollbar { width: 3px; }
.menu-page-text::-webkit-scrollbar-track { background: transparent; }
.menu-page-text::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.menu-page-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}
.menu-page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}
.menu-page-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
}

/* Featured dish */
.menu-featured {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(196,160,41,0.06) 0%, transparent 100%);
  transition: background 0.4s ease;
}
.menu-featured:hover {
  background: linear-gradient(90deg, rgba(196,160,41,0.12) 0%, transparent 100%);
}
.menu-featured.secondary {
  border-left-color: var(--muted);
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.8rem;
}
.menu-featured.secondary:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}
.menu-featured-name {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}
.menu-featured.secondary .menu-featured-name {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}
.menu-featured-desc {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--muted);
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

/* Side list */
.menu-side-title {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-family: 'DM Sans', sans-serif;
}
.menu-side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.menu-side-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: default;
}
.menu-side-list li:hover {
  border-bottom-color: var(--border-gold);
  padding-left: 8px;
}
.dish-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text);
  margin-bottom: 0.15rem;
  transition: color 0.3s ease;
}
.menu-side-list li:hover .dish-name { color: var(--gold); }
.dish-desc {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.7rem, 0.8vw, 0.78rem);
  color: var(--muted);
  line-height: 1.4;
}
.menu-side-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* --- Navigation Arrows --- */
.menu-arrow {
  position: absolute;
  top: 50%;
  z-index: 80;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  opacity: 0;
  transition: all 0.4s ease;
}
.menu-arrow.visible {
  opacity: 0.5;
  pointer-events: auto;
}
.menu-arrow.visible:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
  border-color: var(--border-gold);
}
.menu-arrow svg { width: 24px; height: 24px; }
.menu-arrow-prev { left: 1.5rem; }
.menu-arrow-next { right: 1.5rem; }
.menu-arrow.hidden { display: none; }

/* --- Page Indicators --- */
.menu-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.menu-indicators.visible { opacity: 0.5; }
.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: all 0.4s ease;
}
.indicator.active { background: var(--gold); width: 24px; border-radius: 4px; }
.indicator:hover { background: var(--gold); opacity: 0.6; }

/* --- Responsive Menu --- */
@media (max-width: 1024px) {
  .menu-page-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 6rem 2rem 3rem;
  }
}
@media (max-width: 768px) {
  .menu-page-content {
    grid-template-columns: 1fr;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
  }
  .menu-image-panel { aspect-ratio: 16/10; max-height: 35vh; }
  .menu-image-secondary { display: none; }
  .menu-page-text { text-align: center; }
  .menu-featured { border-left: none; border-top: 2px solid var(--gold); text-align: center; }
  .menu-featured.secondary { border-top-color: var(--muted); }
  .menu-cover-inner { width: min(300px, 80vw); height: min(500px, 70vh); }
  .menu-arrow { width: 40px; height: 40px; }
  .menu-arrow svg { width: 18px; height: 18px; }
  .menu-arrow-prev { left: 0.5rem; }
  .menu-arrow-next { right: 0.5rem; }
}

@media (max-width: 480px) {
  .menu-page-content { padding: 4.5rem 1rem 2rem; }
  .menu-image-panel { max-height: 28vh; }
  .menu-cover-inner { width: min(250px, 85vw); height: min(400px, 60vh); }
  .menu-close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
}

/* ============================================
   LÉGAL — Liens footer + mention formulaire
   ============================================ */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.footer-legal a { color: var(--muted); transition: color 0.3s; }
.footer-legal a:hover { color: var(--gold); }

.form-privacy-note {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
}
.form-privacy-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
