/* style.css — L'Étoile de Mer Toliara — Design Tokens & Components */

/* =============================================
   GOOGLE FONTS — loaded in HTML <head>
   Playfair Display (display) + DM Sans (body)
   ============================================= */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* --- Type Scale (fluid) --- */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- 4px Spacing System --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-golden: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Font families --- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* =============================================
   LIGHT MODE (default)
   ============================================= */
:root, [data-theme="light"] {
  --color-bg:             #FFF8F0;
  --color-surface:        #FFFCF7;
  --color-surface-offset: #FFF3E6;
  --color-divider:        #E8DDD0;
  --color-border:         #E8DDD0;

  --color-text:           #1C1410;
  --color-text-muted:     #5C4A3A;
  --color-text-faint:     #9A8A7A;
  --color-text-inverse:   #FFF8F0;

  --color-primary:        #0A7E8C;
  --color-primary-hover:  #087068;
  --color-primary-active: #065A54;
  --color-secondary:      #E8634A;
  --color-secondary-hover:#D14F38;
  --color-tertiary:       #D4A843;
  --color-tertiary-hover: #C09530;

  --shadow-sm: 0 1px 3px rgba(28,20,16,0.06);
  --shadow-md: 0 4px 12px rgba(28,20,16,0.08);
  --shadow-lg: 0 12px 32px rgba(28,20,16,0.12);

  --nav-bg: rgba(255,248,240,0.92);
  --card-bg: #FFFCF7;
  --footer-bg: #1C1410;
  --footer-text: #F0E6D8;
}

/* =============================================
   DARK MODE
   ============================================= */
[data-theme="dark"] {
  --color-bg:             #0D1B22;
  --color-surface:        #132630;
  --color-surface-offset: #1A3040;
  --color-divider:        #243540;
  --color-border:         #243540;

  --color-text:           #F0E6D8;
  --color-text-muted:     #8A7E72;
  --color-text-faint:     #5A5048;
  --color-text-inverse:   #0D1B22;

  --color-primary:        #40B8C8;
  --color-primary-hover:  #5CCEDA;
  --color-primary-active: #2CA0B0;
  --color-secondary:      #FF7B63;
  --color-secondary-hover:#FF9580;
  --color-tertiary:       #F0C050;
  --color-tertiary-hover: #F8D070;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);

  --nav-bg: rgba(13,27,34,0.92);
  --card-bg: #132630;
  --footer-bg: #081118;
  --footer-text: #F0E6D8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0D1B22;
    --color-surface:        #132630;
    --color-surface-offset: #1A3040;
    --color-divider:        #243540;
    --color-border:         #243540;
    --color-text:           #F0E6D8;
    --color-text-muted:     #8A7E72;
    --color-text-faint:     #5A5048;
    --color-text-inverse:   #0D1B22;
    --color-primary:        #40B8C8;
    --color-primary-hover:  #5CCEDA;
    --color-primary-active: #2CA0B0;
    --color-secondary:      #FF7B63;
    --color-secondary-hover:#FF9580;
    --color-tertiary:       #F0C050;
    --color-tertiary-hover: #F8D070;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
    --nav-bg: rgba(13,27,34,0.92);
    --card-bg: #132630;
    --footer-bg: #081118;
    --footer-text: #F0E6D8;
  }
}

/* =============================================
   GLOBAL UTILITY
   ============================================= */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.section-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  transition: background var(--transition-interactive),
              box-shadow var(--transition-interactive),
              padding var(--transition-interactive);
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) var(--space-6);
}

.nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #FFF8F0;
  transition: color var(--transition-interactive);
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 0.875rem;
  }
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 400ms var(--ease-golden);
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(18deg);
}

.nav.scrolled .nav-logo {
  color: var(--color-text);
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,248,240,0.85);
  transition: color var(--transition-interactive);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition-interactive);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--color-text-muted);
}

.nav.scrolled .nav-links a:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #FFF8F0;
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.nav.scrolled .theme-toggle {
  color: var(--color-text);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.nav.scrolled .theme-toggle:hover {
  background: var(--color-surface-offset);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-full);
  padding: 2px;
}

.nav.scrolled .lang-switcher {
  background: var(--color-surface-offset);
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  color: rgba(255,248,240,0.9);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
  line-height: 1;
}

.nav.scrolled .lang-btn {
  color: var(--color-text-muted);
}

.lang-btn:hover {
  color: #FFF8F0;
  background: rgba(255,255,255,0.15);
}

.nav.scrolled .lang-btn:hover {
  color: var(--color-text);
  background: var(--color-divider);
}

.lang-btn.active {
  color: #FFF8F0;
  background: var(--color-primary);
}

.nav.scrolled .lang-btn.active {
  color: #FFF8F0;
  background: var(--color-primary);
}

/* Mobile language switcher */
.mobile-lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: var(--space-6);
}

.mobile-lang-switcher .lang-btn {
  font-size: 13px;
  padding: 6px 14px;
  color: var(--color-text-muted);
}

.mobile-lang-switcher .lang-btn:hover {
  color: var(--color-text);
  background: var(--color-divider);
}

.mobile-lang-switcher .lang-btn.active {
  color: #FFF8F0;
  background: var(--color-primary);
}

/* Hamburger */
.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #FFF8F0;
  transition: color var(--transition-interactive);
}

.nav.scrolled .hamburger {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-interactive),
              opacity var(--transition-interactive);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-golden);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  transition: color var(--transition-interactive);
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: var(--space-20) var(--space-4) var(--space-12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,8,6,0.85) 0%,
    rgba(28,20,16,0.5) 30%,
    rgba(28,20,16,0.25) 50%,
    rgba(28,20,16,0.35) 75%,
    rgba(28,20,16,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Hero logo image */
@keyframes starfish-roll {
  0%   { transform: rotate(0deg); }
  29%  { transform: rotate(720deg); }
  71%  { transform: rotate(720deg); }
  100% { transform: rotate(0deg); }
}

.hero-logo {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.hero-logo-img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(232,99,74,0.3);
  border: 3px solid rgba(255,248,240,0.3);
  animation: starfish-roll 7s ease-in-out infinite !important;
  transform-origin: center center;
}

@media (min-width: 768px) {
  .hero-logo-img {
    width: 96px;
    height: 96px;
  }
}

/* Mobile hero: clear the fixed nav + tighten spacing + 2-col buttons */
@media (max-width: 767px) {
  .hero {
    padding-top: var(--space-24); /* 6rem — clear ~68px fixed nav with breathing room */
  }
  .hero-logo {
    margin-bottom: var(--space-2);
  }
  .hero-tagline {
    margin-bottom: var(--space-3);
  }
  .hero-social {
    margin-bottom: var(--space-3);
  }
  .hero-ctas {
    gap: var(--space-2);
  }
  .hero-ctas > .btn {
    flex: 1 1 calc(50% - var(--space-1));
    min-width: 0;
  }
}


.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #FFF8F0;
  margin-bottom: 0;
  line-height: 1.0;
  text-shadow: 0 3px 20px rgba(0,0,0,0.5);
}

.hero-title-name {
  display: block;
  font-size: var(--text-3xl);
}

.hero-title-location {
  display: block;
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FFF8F0;
  margin-top: -0.3em;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-since {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(255,248,240,0.95);
  margin-bottom: var(--space-4);
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
}

/* Hero social links */
.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,248,240,0.5);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFF8F0;
  text-decoration: none;
  transition: all var(--transition-interactive);
  flex-shrink: 0;
}

.hero-social-link:hover {
  color: #FFF8F0;
  border-color: rgba(255,248,240,0.85);
  background: rgba(255,255,255,0.22);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-social-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,248,240,0.35);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-primary);
  color: #FFF8F0;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-outline-coral {
  background: transparent;
  color: #FFF8F0;
  border: 2px solid var(--color-secondary);
}

.btn-outline-coral:hover {
  background: var(--color-secondary);
  color: #FFF8F0;
}

.btn-coral {
  background: var(--color-secondary);
  color: #FFF8F0;
  border: 2px solid transparent;
}

.btn-coral:hover {
  background: var(--color-secondary-hover);
}

.btn-outline-gold {
  background: transparent;
  color: #FFF8F0;
  border: 2px solid var(--color-tertiary);
}

.btn-outline-gold:hover {
  background: var(--color-tertiary);
  color: #1C1410;
}

.btn-outline-light {
  background: transparent;
  color: #FFF8F0;
  border: 2px solid rgba(255,248,240,0.4);
}

.btn-outline-light:hover {
  background: rgba(255,248,240,0.15);
  border-color: rgba(255,248,240,0.7);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,248,240,0.6);
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   STORY SECTION (Notre Histoire)
   ============================================= */
.story {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--space-4);
  background: var(--color-bg);
}

.story-intro {
  text-align: center;
  max-width: var(--content-default);
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-20));
}

.story-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.story-content {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-10);
  align-items: center;
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-20));
}

@media (min-width: 768px) {
  .story-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.story-narrative {
  position: relative;
}

.story-year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.story-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 55ch;
  margin-bottom: var(--space-4);
}

.story-text-lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
}

.story-image {
  order: -1;
}

@media (min-width: 768px) {
  .story-image {
    order: 1;
  }
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .story-image img {
    height: 500px;
  }
}

/* Story details — removed, replaced by Le Lieu section */

/* =============================================
   LE LIEU SECTION
   ============================================= */
.lieu {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--space-4);
  background: var(--color-surface-offset);
}

.lieu-content {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .lieu-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.lieu-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .lieu-image img {
    height: 440px;
  }
}

.lieu-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.lieu-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 55ch;
  margin-bottom: var(--space-4);
}

.lieu-desc:last-child {
  margin-bottom: 0;
}

/* =============================================
   PARALLAX DIVIDER
   ============================================= */
.parallax-divider {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./assets/toliara-beach.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* iOS doesn't support background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .parallax-divider {
    background-attachment: scroll;
  }
}

@media (hover: none) {
  .parallax-divider {
    background-attachment: scroll;
  }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28,20,16,0.65),
    rgba(10,126,140,0.4)
  );
}

.parallax-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  color: #FFF8F0;
  text-align: center;
  padding: var(--space-4);
  max-width: 600px;
}

/* =============================================
   SPECIALTIES SECTION
   ============================================= */
.specialties {
  padding: clamp(var(--space-12), 8vw, var(--space-32)) var(--space-4);
  background: var(--color-bg);
}

.specialties-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.specialties-header .section-heading {
  margin-inline: auto;
}

/* Photo cards grid */
.photo-cards {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .photo-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .photo-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  transform-style: preserve-3d;
  perspective: 800px;
}

.photo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) rotateX(2deg);
}

.photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.photo-card-body {
  padding: var(--space-5);
}

.photo-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.photo-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Icon cards grid */
.icon-cards {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .icon-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .icon-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}

.icon-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.icon-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.icon-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.icon-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================
   TRADITIONS SECTION (Saveurs du Monde)
   ============================================= */
.traditions {
  padding: 0 var(--space-4) clamp(var(--space-12), 8vw, var(--space-32));
  background: var(--color-bg);
}

.traditions-header {
  text-align: center;
  margin-bottom: var(--space-10);
  padding-top: clamp(var(--space-10), 6vw, var(--space-20));
}

.traditions-header .section-heading {
  margin-inline: auto;
}

.traditions-header .section-text {
  margin-inline: auto;
}

.photo-cards-traditions {
  margin-bottom: var(--space-8);
}

.photo-cards-duo {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .photo-cards-duo {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

/* =============================================
   EVENTS SECTION
   ============================================= */
.events {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--space-4);
  background: var(--color-surface-offset);
}

.events-header {
  text-align: center;
  max-width: var(--content-default);
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.events-header .section-text {
  margin-inline: auto;
}

.events-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-golden);
}

.event-card:hover img {
  transform: scale(1.05);
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,20,16,0.85) 0%,
    rgba(28,20,16,0.3) 50%,
    transparent 100%
  );
}

.event-card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
}

.event-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #FFF8F0;
  margin-bottom: var(--space-2);
}

.event-card-desc {
  font-size: var(--text-sm);
  color: rgba(255,248,240,0.8);
  line-height: 1.6;
}

.events-footer {
  text-align: center;
  max-width: var(--content-default);
  margin-inline: auto;
}

.events-footer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 60ch;
  margin-inline: auto;
}

/* =============================================
   AMBIANCE SECTION — Photo Cards
   ============================================= */
.ambiance {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--space-4);
  background: var(--color-bg);
}

.ambiance-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.ambiance-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .ambiance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ambiance-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.ambiance-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.ambiance-card-img {
  position: relative;
  overflow: hidden;
}

.ambiance-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 500ms var(--ease-golden);
}

.ambiance-card:hover .ambiance-card-img img {
  transform: scale(1.05);
}

.ambiance-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,20,16,0.25) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.ambiance-card-body {
  padding: var(--space-5);
}

.ambiance-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.ambiance-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =============================================
   GALERIE SECTION — Static Grid
   ============================================= */
.galerie {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--space-4);
  background: var(--color-bg);
}

.galerie-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .galerie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.galerie-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.galerie-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.galerie-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.galerie-caption {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--space-4);
  background: var(--color-surface-offset);
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.contact-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-base);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

.hours-closed {
  color: var(--color-secondary) !important;
  font-weight: 600 !important;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
}

.contact-item a {
  color: var(--color-primary);
  transition: color var(--transition-interactive);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.contact-item a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: var(--color-primary-hover);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive);
}

.social-link:hover {
  background: var(--color-primary);
  color: #FFF8F0;
  transform: translateY(-2px);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive);
  margin-top: var(--space-2);
}

.maps-link:hover {
  background: var(--color-primary);
  color: #FFF8F0;
  transform: translateY(-1px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

/* Footer logo image */
.footer-logo {
  margin: 0 auto var(--space-3);
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  opacity: 0.85;
}

.footer-text {
  font-size: var(--text-sm);
  color: rgba(240,230,216,0.6);
  margin-bottom: var(--space-4);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,230,216,0.5);
  transition: color var(--transition-interactive),
              transform var(--transition-interactive);
}

.footer-socials a:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-stagger > *:nth-child(1) { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  .reveal-stagger > *:nth-child(2) { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 3% entry 38%; }
  .reveal-stagger > *:nth-child(3) { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 6% entry 41%; }
  .reveal-stagger > *:nth-child(4) { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 9% entry 44%; }
  .reveal-stagger > *:nth-child(5) { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 12% entry 47%; }
  .reveal-stagger > *:nth-child(6) { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 15% entry 50%; }
}

/* =============================================
   JS FALLBACK REVEAL (for browsers without scroll-timeline)
   ============================================= */
.js-reveal {
  opacity: 0;
  transition: opacity 600ms var(--ease-golden);
}

.js-reveal.visible {
  opacity: 1;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  z-index: 101;
  transition: width 50ms linear;
  pointer-events: none;
}

/* =============================================
   HERO ENTRANCE ANIMATION (A)
   ============================================= */
.hero-content > * {
  opacity: 0;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.2s; }  /* logo */
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }  /* title */
.hero-content > *:nth-child(3) { animation-delay: 0.55s; } /* since */
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }  /* tagline */
.hero-content > *:nth-child(5) { animation-delay: 0.85s; } /* social */
.hero-content > *:nth-child(6) { animation-delay: 1.0s; }  /* ctas */

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SECTION LABEL LETTER-SPACING REVEAL (F)
   ============================================= */
@supports (animation-timeline: scroll()) {
  .section-label {
    animation: label-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes label-reveal {
  from { letter-spacing: 0.4em; opacity: 0; }
  to   { letter-spacing: 0.15em; opacity: 1; }
}

/* =============================================
   PREFERS-REDUCED-MOTION (J)
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-content > * { opacity: 1 !important; animation: none !important; }
}

/* =============================================
   MENU SECTION — Complete Interactive Menu
   ============================================= */

.menu-section {
  padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-4);
  background: var(--color-surface-offset);
}

.menu-section-header {
  text-align: center;
  max-width: var(--content-default);
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}

.menu-section-header .section-heading {
  margin-inline: auto;
}

/* Preview Cards — 5 clickable photo cards */
.menu-preview-cards {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}

@media (min-width: 768px) {
  .menu-preview-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .menu-preview-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

.menu-preview-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
  border: 2px solid transparent;
  display: block;
  width: 100%;
  padding: 0;
}

.menu-preview-card:hover,
.menu-preview-card:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
  outline: none;
}

.menu-preview-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 500ms var(--ease-golden);
  display: block;
}

@media (min-width: 768px) {
  .menu-preview-card img {
    height: 200px;
  }
}

.menu-preview-card:hover img {
  transform: scale(1.06);
}

.menu-preview-card-body {
  padding: var(--space-4);
}

.menu-preview-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.menu-preview-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── INTERACTIVE MENU WRAPPER ───────────────── */
.menu-interactive {
  max-width: var(--content-wide);
  margin-inline: auto;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── INTERACTIVE MENU HEADER ──────────────── */
.menu-interactive-header {
  padding: var(--space-6) var(--space-6) 0;
  text-align: center;
}

.menu-interactive-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.menu-interactive-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── TAB BAR ───────────────────────────────── */
.menu-tab-wrapper {
  position: sticky;
  top: 60px; /* below nav */
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 200ms var(--ease-golden);
}

.menu-tab-wrapper.stuck {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.menu-tab-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--space-4);
  gap: 0;
}

.menu-tab-scroll::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-interactive);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; /* sit on top of wrapper border */
}

.menu-tab:hover {
  color: var(--color-text);
}

.menu-tab.active,
.menu-tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.menu-tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

/* ── TAB PANELS ─────────────────────────────── */
.menu-panel {
  display: none;
  animation: menu-panel-enter 400ms var(--ease-golden) both;
  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--color-primary) 30%, transparent) transparent;
}

.menu-panel.active {
  display: block;
  max-height: 520px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Custom scrollbar styling for menu panels */
.menu-panel::-webkit-scrollbar {
  width: 6px;
}

.menu-panel::-webkit-scrollbar-track {
  background: transparent;
}

.menu-panel::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--color-primary) 30%, transparent);
  border-radius: 3px;
}

.menu-panel::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklab, var(--color-primary) 50%, transparent);
}

@media (max-width: 767px) {
  .menu-panel.active {
    max-height: 420px;
  }
}

/* Hint text when no category selected */
.menu-hint {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-faint);
  padding: var(--space-10) var(--space-4) var(--space-6);
  transition: opacity 300ms var(--ease-golden);
}

.menu-hint.hidden {
  display: none;
}

@keyframes menu-panel-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.menu-panel-inner {
  padding: var(--space-8) clamp(var(--space-4), 4vw, var(--space-10));
  max-width: 800px;
  margin-inline: auto;
}

/* ── CATEGORY HEADER ───────────────────────── */
.menu-category-header {
  margin-bottom: var(--space-6);
  text-align: center;
}

.menu-category-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── SUB HEADING ────────────────────────────── */
.menu-sub-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

.menu-sub-heading:first-child {
  margin-top: 0;
}

/* ── FEATURED CARD — Le Plateau Royal ──────── */
.menu-featured-card {
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--color-primary) 12%, var(--color-surface)),
    color-mix(in oklab, var(--color-tertiary) 10%, var(--color-surface))
  );
  border: 1.5px solid var(--color-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.menu-featured-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-tertiary) 15%, transparent);
  pointer-events: none;
}

.menu-featured-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: var(--space-3);
  background: color-mix(in oklab, var(--color-tertiary) 12%, transparent);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in oklab, var(--color-tertiary) 40%, transparent);
}

.menu-featured-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.menu-featured-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.menu-featured-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.menu-featured-price {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-tertiary);
  white-space: nowrap;
}

.menu-featured-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ── MENU LIST ──────────────────────────────── */
.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  animation: menu-item-enter 300ms var(--ease-golden) both;
}

.menu-item:last-child {
  border-bottom: none;
}

@keyframes menu-item-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.menu-item-detail {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.menu-item-dots {
  flex: 1;
  min-width: var(--space-4);
  height: 1px;
  border-bottom: 1.5px dotted var(--color-divider);
  margin-bottom: 4px;
  align-self: end;
}

.menu-item-price {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-secondary);
  white-space: nowrap;
  text-align: right;
}

/* Arrivage badge */
.menu-badge-arrivage {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
  border-radius: var(--radius-full);
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: var(--space-1);
  white-space: nowrap;
}

/* ── INFO BAR ───────────────────────────────── */
.menu-info-bar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: color-mix(in oklab, var(--color-primary) 8%, var(--color-surface));
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.menu-info-bar svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 1px;
}

.menu-info-bar-soft {
  background: color-mix(in oklab, var(--color-tertiary) 8%, var(--color-surface));
  border-color: color-mix(in oklab, var(--color-tertiary) 20%, transparent);
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.menu-info-bar-soft svg {
  color: var(--color-tertiary);
}

/* ── MENU FOOTER ────────────────────────────── */
.menu-footer {
  padding: var(--space-8) clamp(var(--space-4), 4vw, var(--space-10));
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  background: color-mix(in oklab, var(--color-surface) 80%, var(--color-surface-offset));
}

.menu-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  max-width: 55ch;
  text-align: center;
  line-height: 1.6;
}

.menu-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-text-faint);
}

/* Teal outline button variant */
.btn-outline-teal {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-teal:hover {
  background: var(--color-primary);
  color: #FFF8F0;
}

.menu-see-all-btn {
  min-width: 200px;
}

/* =============================================
   FULL MENU MODAL
   ============================================= */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-modal[hidden] {
  display: none;
}

.menu-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-backdrop-enter 300ms var(--ease-golden) both;
}

@keyframes modal-backdrop-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.menu-modal-container {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - var(--space-8));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: var(--space-4);
  animation: modal-enter 350ms var(--ease-golden) both;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: linear-gradient(
    to right,
    color-mix(in oklab, var(--color-primary) 10%, var(--color-surface)),
    var(--color-surface)
  );
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.menu-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.menu-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive);
  flex-shrink: 0;
}

.menu-modal-close:hover {
  background: color-mix(in oklab, var(--color-secondary) 15%, var(--color-surface-offset));
  color: var(--color-secondary);
  transform: scale(1.08);
}

.menu-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: var(--space-4) var(--space-6) var(--space-8);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.menu-modal-body::-webkit-scrollbar {
  width: 5px;
}

.menu-modal-body::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

/* Accordion sections */
.menu-modal-section {
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-2);
  margin-bottom: 0;
}

.menu-modal-section:last-of-type {
  border-bottom: none;
}

.menu-modal-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-4) 0;
  list-style: none;
  user-select: none;
}

.menu-modal-section-title::-webkit-details-marker {
  display: none;
}

.menu-modal-section-title::after {
  content: '+';
  margin-left: auto;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
  font-family: var(--font-body);
}

details[open] .menu-modal-section-title::after {
  content: '−';
}

.menu-modal-section-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-tertiary);
  background: color-mix(in oklab, var(--color-tertiary) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-tertiary) 30%, transparent);
  border-radius: var(--radius-full);
  padding: 2px var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Modal featured (Plateau Royal) */
.menu-modal-featured {
  background: color-mix(in oklab, var(--color-tertiary) 8%, var(--color-surface));
  border: 1px solid color-mix(in oklab, var(--color-tertiary) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
}

.menu-modal-featured-label {
  flex: 0 0 100%;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-tertiary);
}

.menu-modal-featured-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

.menu-modal-featured-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  flex: 1;
}

.menu-modal-featured-price {
  font-weight: 700;
  color: var(--color-tertiary);
  font-size: var(--text-base);
  white-space: nowrap;
}

/* Modal list */
.menu-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.menu-modal-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.menu-modal-list li:last-child {
  border-bottom: none;
}

.menu-modal-list li span:first-child {
  color: var(--color-text);
  flex: 1;
}

.menu-modal-list li span:last-child {
  color: var(--color-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.menu-modal-list li em {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  display: block;
  margin-top: 1px;
}

.menu-modal-sub {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px dashed var(--color-divider);
}

.menu-modal-note-inline {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-3);
}

/* Modal arrivage note */
.menu-modal-arrivage-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  padding: var(--space-5) 0 var(--space-2);
  border-top: 1px dashed var(--color-divider);
  margin-top: var(--space-4);
  line-height: 1.6;
}

/* Scroll-to-top button in modal */
.menu-modal-scroll-top {
  position: sticky;
  bottom: var(--space-4);
  left: calc(100% - 60px);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFF8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              opacity var(--transition-interactive);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  margin: 0 0 var(--space-4) auto;
}

.menu-modal-scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.menu-modal-scroll-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE: Mobile adjustments for menu
   ============================================= */
@media (max-width: 639px) {
  .menu-tab {
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-3);
  }

  .menu-item {
    grid-template-columns: 1fr auto;
  }

  .menu-item-dots {
    display: none;
  }

  .menu-featured-title {
    font-size: var(--text-lg);
  }

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

  .menu-modal-container {
    margin-top: 0;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    max-height: 95vh;
    align-self: flex-end;
    max-width: 100%;
  }

  .menu-modal {
    padding: 0;
    align-items: flex-end;
  }
}

/* Staggered item entrance animation */
.menu-panel.active .menu-item:nth-child(1)  { animation-delay: 0ms; }
.menu-panel.active .menu-item:nth-child(2)  { animation-delay: 40ms; }
.menu-panel.active .menu-item:nth-child(3)  { animation-delay: 80ms; }
.menu-panel.active .menu-item:nth-child(4)  { animation-delay: 120ms; }
.menu-panel.active .menu-item:nth-child(5)  { animation-delay: 160ms; }
.menu-panel.active .menu-item:nth-child(6)  { animation-delay: 200ms; }
.menu-panel.active .menu-item:nth-child(7)  { animation-delay: 240ms; }
.menu-panel.active .menu-item:nth-child(8)  { animation-delay: 280ms; }
.menu-panel.active .menu-item:nth-child(9)  { animation-delay: 320ms; }
.menu-panel.active .menu-item:nth-child(10) { animation-delay: 360ms; }
.menu-panel.active .menu-item:nth-child(n+11) { animation-delay: 400ms; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(18, 12, 8, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 248, 240, 0.18);
  color: rgba(255, 248, 240, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease,
              background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(232, 99, 74, 0.3);
  border-color: rgba(232, 99, 74, 0.45);
  color: #FFF8F0;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.back-to-top:active {
  transform: scale(0.9);
}
