/* Base Styles & Variables */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&display=swap');

:root {
    --primary: #000000; /* black for key text */
    --secondary: #f5f5f5; /* fallback subtle gray */
    --accent: #9A452B; /* terracotta */
    --ivory: #EDDFC0; /* lighter ivory */
    --redbeige: #9A452B; /* alias for clarity */
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.4);
    
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
    
    --transition: all 0.3s ease;
}

/* Very small phones: keep header compact while preserving proportions */
@media (max-width: 480px) {
    .navbar { padding: 0.7rem 0; }
    .logo-img { height: 38px; }
    .btn-reserve { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
    .navbar .container { gap: 8px; }
    /* Ensure faster marquee speed on small phones */
    #gallery .marquee-track { animation: marquee-left 25s linear infinite !important; }
    #contact .cta-content .marquee-track { animation: marquee-left 25s linear infinite !important; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo-img {
        height: 36px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    /* Tighter, tactile transitions like category pills */
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    border: none;
    outline: none;
    will-change: transform;
}

/* Amplified hover animation for all primary/outline buttons */
.btn:hover,
.btn:focus-visible {
    transform: translateZ(0) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(0,0,0,0.16); }

.btn-primary {
    background-color: var(--redbeige);
    color: var(--ivory);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}
.btn-primary:hover {
    background-color: #7F3A2B; /* slightly darker terracotta on hover */
    color: var(--ivory);
}

  /* Hero-specific primary button text color override */
  .hero .btn-primary {
      color: #ffffff;
      background-color: #9A452B; /* solid terracotta */
      border: 1px solid #9A452B; /* terracotta */
  }
  .hero .btn-primary:hover {
      color: #ffffff;
      background-color: #9A452B; /* solid on hover */
  }
  
  /* Override: solid terracotta background for the top hero "Voir le menu" CTA only */
  .hero .hero-buttons a.btn.btn-primary[href="/menu?o=1"] {
      background-color: rgba(154, 69, 43, 0.70) !important; /* 70% terracotta */
      background: rgba(154, 69, 43, 0.70) !important; /* cover any shorthand background overrides */
      border-color: #9A452B !important;
  }
  .hero .hero-buttons a.btn.btn-primary[href="/menu?o=1"]:hover {
      background: #9A452B !important; /* solid on hover */
      background-color: #9A452B !important;
  }
  
  /* Override: contact CTA "Voir le menu" button should also be terracotta */
  .cta-contact .cta-buttons a.btn.btn-primary[href="/menu?o=1"] {
      background: rgba(154, 69, 43, 0.70) !important; /* 70% terracotta */
      background-color: rgba(154, 69, 43, 0.70) !important;
      border-color: #9A452B !important;
  }
  .cta-contact .cta-buttons a.btn.btn-primary[href="/menu?o=1"]:hover {
      background: #9A452B !important; /* solid on hover */
      background-color: #9A452B !important;
  }
  
  /* Global guarantee: any specific "Voir le menu" button (href=/menu?o=1) uses terracotta background */
  a.btn.btn-primary[href="/menu?o=1"] {
      background: rgba(154, 69, 43, 0.70) !important; /* fallback */
      background-color: rgba(154, 69, 43, 0.70) !important;
  }
  a.btn.btn-primary[href="/menu?o=1"]:hover {
      background: #9A452B !important;
      background-color: #9A452B !important;
  }
  
  .btn-outline {
    background-color: var(--ivory);
    border: 1px solid var(--redbeige);
    color: var(--redbeige);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.btn-outline:hover {
    background-color: #e0cba7; /* slightly darker ivory */
    color: var(--redbeige);
}

/* Hero-specific outline button transparency (does not affect other sections) */
.hero .btn-outline {
    background-color: rgba(228, 214, 186, 0.7); /* 70% ivory */
    border: 1px solid var(--ivory);
    color: #000000;
    /* Faster, property-specific hover response */
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.hero .btn-outline:hover {
    background-color: rgba(228, 214, 186, 1); /* 100% on hover */
    color: #000000;
}

/* Menu hero buttons: same subtle transparency as homepage hero */
.menu-hero .btn-primary {
    color: #ffffff;
    background-color: rgba(154, 69, 43, 0.75); /* 75% of terracotta */
    border: 1px solid #9A452B;
}
.menu-hero .btn-primary:hover {
    color: #ffffff;
    background-color: #9A452B; /* solid on hover */
}

.menu-hero .btn-outline {
    background-color: rgba(228, 214, 186, 0.70); /* 70% ivory */
    border: 1px solid var(--ivory);
    color: #000000;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.menu-hero .btn-outline:hover {
    background-color: rgba(228, 214, 186, 1);
    color: #000000;
}

/* Hero intro animations */
/* Subtitle + buttons are revealed after title finishes */
.hero .hero-content p,
.hero .hero-content .hero-buttons {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.hero.title-done .hero-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 320ms;
}

.hero.title-done .hero-content .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 520ms;
}

/* Remove per-button stagger to avoid hover latency */

/* Letter-by-letter title reveal */
.hero .hero-content h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 450ms ease, transform 450ms ease;
    will-change: opacity, transform;
}
/* Keep words together while still allowing line breaks between words */
.hero .hero-content h1 .word { display: inline-block; white-space: nowrap; }
.hero .hero-content h1 .char.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero .hero-content p,
    .hero .hero-content .hero-buttons {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .hero .hero-content h1 .char { opacity: 1; transform: none; transition: none; }
}

.section {
    padding: var(--section-padding);
    position: relative; /* for blend overlays */
    /* Default background color variable for blending */
    --bg-color: #ffffff;
}

/* Section theme variants (exclude .hero) */
.section--white {
    background-color: var(--white);
    color: var(--text);
    --bg-color: #ffffff;
}
.section--white .section-title { color: var(--primary); }

/* Full-width white banner inside sections */
.full-width-banner {
    width: 100vw;
    /* Break out of the centered layout to span the viewport */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
    position: relative;
    z-index: 1; /* above global background overlays */
    /* Center content vertically with a comfortable height */
    min-height: clamp(80px, 12vh, 140px);
    display: flex;
    align-items: center;    /* vertical center */
    justify-content: center;/* center inner container if narrower */
    padding: 0;             /* avoid offset that breaks vertical centering */
}
@media (max-width: 640px) {
    .full-width-banner { min-height: clamp(70px, 14vh, 120px); }
}

/* Center the content inside and reset spacing */
.full-width-banner .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.full-width-banner .section-title { margin: 0; }

.section--ivory {
    background-color: var(--ivory);
    color: #2b2b2b;
    --bg-color: var(--ivory);
}
.section--ivory .section-title { color: var(--redbeige); }

/* Override: Gallery on pure white background */
#gallery.section {
    background-color: #ffffff;
    color: var(--text);
    --bg-color: #ffffff;
}

/* Team section background image (same as hero BG1) */
#team {
    background-image: url('../Medias/flyer-la-cantina.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* for overlay */
}

#team::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Discreet ivory -> white gradient overlay for premium depth */
    background: linear-gradient(180deg, rgba(228, 214, 186, 0.85) 0%, rgba(255, 255, 255, 0.92) 100%);
    pointer-events: none;
}

#team .container { position: relative; z-index: 1; }

/* Reduce top spacing in Team section */
#team.section { padding-top: 2rem; }
#team .team-section { margin-top: 0; padding-top: 0; border-top: none; }
#team .team-title { margin-top: 0; }

/* Team section visuals: modern, elegant */
.team-title {
    text-align: center;
    font-weight: 800;
    font-size: clamp(1.8rem, 2.2vw + 1rem, 2.4rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #9A452B 0%, #EDDFC0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.team-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    margin: 12px auto 0;
    background: var(--redbeige);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms ease 150ms, transform 500ms ease 150ms;
}
.team-title.in-view { opacity: 1; transform: translateY(0); }
.team-title.in-view::after { opacity: 1; transform: translateY(0); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

@media (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .team-grid { grid-template-columns: 1fr; }
}

.team-member {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(16, 24, 40, 0.06);
    /* Softer but more pronounced floating shadow */
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.10), 0 24px 60px rgba(16, 24, 40, 0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 300ms ease, box-shadow 300ms ease, opacity 600ms ease, translate 600ms ease;
    opacity: 0;
    transform: translateY(24px);
}
.team-member.in-view {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--stagger, 0) * 120ms);
}
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.14), 0 32px 72px rgba(16, 24, 40, 0.12);
}

.member-image { display: flex; justify-content: center; margin-bottom: 1rem; }
.member-image img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--redbeige);
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.18);
    transition: transform 300ms ease;
}
.team-member:hover .member-image img { transform: scale(1.05); }

.team-member h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    margin: 0.5rem 0 0.25rem;
}
.team-member .position { color: var(--redbeige); font-weight: 600; margin-bottom: 0.75rem; }
.team-member .bio { color: #333; line-height: 1.6; margin: 0 auto; max-width: 36ch; }
.team-member .bio {
    text-align: center; /* ensure centered */
    display: -webkit-box;
    line-clamp: 3; /* standard property for compatibility */
    -webkit-line-clamp: 3; /* unify length to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1em * 1.6 * 3); /* reserve space for 3 lines */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-title,
    .team-member { transition: none; transform: none; opacity: 1; }
}

.section--redbeige {
    background-color: var(--redbeige);
    color: var(--ivory);
    --bg-color: var(--redbeige);
}
.section--redbeige .section-title { color: var(--ivory); }
.section--redbeige a { color: var(--ivory); }
.section--redbeige .btn-outline {
    background-color: var(--ivory);
    color: var(--redbeige);
    border-color: var(--ivory);
}

/* Reviews Section (Avis Clients) - sobre, élégant */
.section--reviews {
    background: transparent; /* was #FBE8A1 – remove permanently */
    color: var(--text);
    padding: 5rem 0; /* ~80px */
    --bg-color: transparent;
}
.section--reviews .container { position: relative; z-index: 1; }

/* Anchor for Galerie link: lands at bottom of Reviews without hiding under navbar */
#cta-gallery { display: block; height: 1px; scroll-margin-top: 200px; }
@media (max-width: 768px) {
  #cta-gallery { scroll-margin-top: 140px; }
}
/* Prevent #about title being hidden under fixed navbar when scrolled via anchor */
#about { scroll-margin-top: 132px; }
@media (max-width: 768px) {
  #about { scroll-margin-top: 100px; }
}
/* Prevent #contact top from being hidden under fixed navbar when scrolled via anchor */
#contact { scroll-margin-top: 132px; }
@media (max-width: 768px) {
  #contact { scroll-margin-top: 100px; }
}
/* Ensure the reservation anchor lands clear of the navbar */
#reservation { scroll-margin-top: 132px; }
@media (max-width: 768px) {
  #reservation { scroll-margin-top: 100px; }
}
/* Prevent #contact and #reservation anchors from being hidden under fixed navbar
   Kept globally elsewhere; removed here to limit the reviews block to visible essentials */

.reviews-embed {
    max-width: 900px;
    margin: 2rem auto 0; /* centré et aéré */
    background: transparent; /* remove white card */
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0; /* let the widget control its own spacing */
}

/* Themer le bouton interne de l'embed (ex: "Review us on Google") */
.reviews-embed a[role="button"],
.reviews-embed button,
.reviews-embed .es-button,
.reviews-embed [class*="Button"],
.reviews-embed [class*="button"] {
    background: #9A452B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

/* Assurer la réactivité de l'embed */
.reviews-embed iframe,
.reviews-embed > div { width: 100% !important; }

@media (max-width: 768px) {
    .reviews-embed { border-radius: 12px; padding: 0.75rem; }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Reveal-up animation utility */
.reveal-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Generic fade-in utility (paired with JS adding .active on scroll) */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.fade-in.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Soft blend between sections (like Holier) */
/* Apply to all sections except the hero, team background image, and CTA banner */
.section:not(.hero):not(#team):not(.cta-contact)::before,
.section:not(.hero):not(#team):not(.cta-contact)::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 120px; /* fade height */
    pointer-events: none;
    z-index: 0; /* behind content inside .container */
}

.section:not(.hero):not(#team):not(.cta-contact)::before {
    top: 0;
    /* Fade the section color into transparency downward */
    background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(255,255,255,0) 100%);
}

.section:not(.hero):not(#team):not(.cta-contact)::after {
    bottom: 0;
    /* Fade from transparent into the section's bg towards bottom for a soft edge */
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(255,255,255,0) 100%);
}

/* Ensure stacking context so content appears above overlays */
.section > * { position: relative; z-index: 1; }

/* Generic fade + translate-in items with stagger */
.animate-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms ease, transform 640ms cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--stagger-index, 0) * 110ms);
    will-change: opacity, transform;
}
.animate-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Remove stagger delay after reveal so hovers respond instantly */
.animate-item.in-view { transition-delay: 0ms !important; }
/* Ensure menu cards have zero delay once visible */
.menu-item.animate-item.in-view { transition-delay: 0ms !important; }

/* Faster reveal inside the Menu section on the Menu page */
body.page-menu #menu .animate-item {
    /* Slightly quicker duration and smaller per-item stagger so lists show up sooner */
    transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--stagger-index, 0) * 60ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-item { opacity: 1; transform: none; transition: none; }
}

/* Global fixed background image applied after Hero */
body.bg-global-fixed {
    background-image: url('../Medias/fond-page-menu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* parallax-like fixed background */
    position: relative; /* host overlay */
}
/* Menu page: use the same image as the Menu hero for the global background */
body.page-menu.bg-global-fixed {
    background-image: url('../Medias/fond-page-menu.png');
}

/* Mobile: disable fixed attachment (expensive to paint) and some animations */
@media (max-width: 767px) {
    body.bg-global-fixed::before { animation: none; }
    .hero-background { animation: none; }
    /* Keep marquee animations active on mobile */
    #gallery .marquee-track { animation: marquee-left 25s linear infinite !important; }
    #contact .cta-content .marquee-track { animation: marquee-left 25s linear infinite !important; }
}

/* Make all sections after hero transparent so the global image shows through */
body.bg-global-fixed .section:not(.hero) {
    background: transparent !important;
    --bg-color: transparent; /* for blend utilities */
}

/* Disable the soft blend overlays in global background mode (image only for now) */
body.bg-global-fixed .section:not(.hero)::before,
body.bg-global-fixed .section:not(.hero)::after {
    display: none !important;
}

/* Team and CTA: remove their own overlays/backgrounds so only the global image remains */
body.bg-global-fixed #team {
    background: transparent !important;
}
body.bg-global-fixed #team::before {
    display: none !important;
}
body.bg-global-fixed .cta-contact .cta-background,
body.bg-global-fixed .cta-contact .cta-overlay {
    display: none !important;
}

/* Global dark overlay (30%) above the background image, below content */
/* Animated BG layer (like hero) */
body.bg-global-fixed::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../Medias/fond-page-menu.png');
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: zoomIn 18s ease-in-out infinite alternate; /* same feel as hero */
    pointer-events: none;
    z-index: 0; /* sits under the overlay and content */
}

/* Global dark overlay (30%) above the background image, below content */
body.bg-global-fixed::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 0; /* below page content; sections/nav/footer use z-index:1+ */
}

/* Menu page: lighter overlay like hero */
body.page-menu.bg-global-fixed::after { background: rgba(0, 0, 0, 0.35); }
/* Home page: use the same overlay intensity as Menu */
body.page-home.bg-global-fixed::after { background: rgba(0, 0, 0, 0.35); }

/* Ensure main content stacks above the global overlay */
.section { position: relative; z-index: 1; }
.hero { position: relative; z-index: 1; }

/* Force solid white background only on the About section */
#about { background-color: #ffffff; }
/* Ensure it stays white even when global fixed background makes others transparent */
body.bg-global-fixed #about { background-color: #ffffff !important; }

/* Force solid white background only on the Menu section */
#menu { background-color: #ffffff; }
/* Ensure it stays white even when global fixed background makes others transparent */
body.bg-global-fixed #menu { background-color: #ffffff !important; }

/* On the dedicated Menu page, we want BG1 visible behind the section */
body.page-menu #menu { background: transparent !important; }

/* Extra spacing below fixed header on Menu page */
body.page-menu #menu.section { padding-top: clamp(10rem, 16vw, 14rem); }

/* === Menu page readability on BG1 === */
body.page-menu #menu .section-title {
    color: #EDDFC0; /* ivory title for contrast */
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

body.page-menu #menu .menu-subtitle {
    color: #EDDFC0;
    text-align: center;
}

/* Category pills: simple, clear contrast */
body.page-menu #menu .menu-categories .menu-category {
    /* Semi-transparent ivory like hero outline button */
    background: rgba(228, 214, 186, 0.70);
    border: 1px solid var(--ivory);
    color: #000000;
    backdrop-filter: saturate(120%) blur(0.5px);
    -webkit-backdrop-filter: saturate(120%) blur(0.5px);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    will-change: transform;
}
body.page-menu #menu .menu-categories .menu-category:hover,
body.page-menu #menu .menu-categories .menu-category:focus-visible {
    /* Amplified hover: slight scale, stronger fill and subtle shadow */
    background: rgba(228, 214, 186, 0.90);
    transform: translateZ(0) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
body.page-menu #menu .menu-categories .menu-category.active {
    background: #9A452B; /* terracotta */
    border-color: #9A452B;
    color: #ffffff;
}
/* Tactile press feedback */
body.page-menu #menu .menu-categories .menu-category:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(0,0,0,0.16); }

/* Cards: clean white, accent price */
body.page-menu #menu .menu-item {
    background: #EDDFC0;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
body.page-menu #menu .menu-item h4 { color: #111; }
body.page-menu #menu .menu-item .price { color: #9A452B; font-weight: 700; }

/* ===== Menu Page — Fullscreen Hero ===== */
.menu-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1; /* ensure above body's fixed overlays */
    /* Remove any background for a transparent hero */
    background: transparent !important;
    background-image: none !important;
}

.menu-hero__bg {
    position: absolute;
    inset: 0;
    /* No dedicated hero background image */
    background: transparent !important;
    background-image: none !important;
    z-index: 0;
    animation: none !important; /* no motion */
}

/* On the Menu page, remove the global fixed background layer to avoid masking */
body.page-menu.bg-global-fixed::before {
    display: block !important;
    background-image: url('../Medias/fond-page-menu.png');
    animation: none !important; /* keep the background perfectly fixed */
}
/* Light overlay for readability over the full page (hero remains unaffected) */
body.page-menu.bg-global-fixed::after { background: rgba(0, 0, 0, 0.35) !important; }

.menu-hero__overlay {
    position: absolute;
    inset: 0;
    /* Make overlay transparent so it doesn't tint content */
    background: transparent !important;
    z-index: 1;
}

.menu-hero__content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;                         /* more breathing room */
}

.menu-hero__title {
    font-family: Georgia, serif;
    font-weight: bold;
    font-style: italic;
    color: #FFFFFF; /* pure white */
    font-size: clamp(2.4rem, 4vw + 0.8rem, 4rem);
    line-height: 1.05;
    letter-spacing: 0.2px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(8px) scale(1.04);
    animation: mh-fade-zoom 800ms cubic-bezier(.2,.7,.2,1) forwards;
}

.menu-hero__subtitle {
    color: #F5F5F5; /* light grey-white */
    opacity: 0.98;
    font-size: clamp(0.95rem, 0.8vw + 0.8rem, 1.15rem);
    margin-top: 0.1rem;
    font-style: italic; /* semi-italic tagline */
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(6px);
    animation: mh-fade 700ms ease-out 200ms forwards;
}

.menu-hero__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
    opacity: 0;
    transform: translateY(14px);
    animation: mh-slide-up 700ms cubic-bezier(.2,.7,.2,1) 450ms forwards;
}

.menu-hero__input {
    width: min(560px, 94%);
    padding: 16px 18px;
    border-radius: 14px; /* slightly less round for modern feel */
    border: 1px solid rgba(255, 255, 255, 0.9); /* thin white border */
    background: rgba(255, 255, 255, 0.9); /* pure white 90% */
    color: #333333; /* dark grey text */
    outline: none;
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.menu-hero__input::placeholder { color: rgba(51, 51, 51, 0.6); }
.menu-hero__input:focus {
    border-color: #FFFFFF;
    box-shadow: 0 6px 26px rgba(0,0,0,0.18);
    background: #FFFFFF;
    transform: translateZ(0) scale(1.01);
}

.menu-hero__button {
    position: relative;
    display: inline-flex;                  /* align text + icon nicely */
    align-items: center;
    justify-content: center;
    min-height: 50px;                      /* requested minimum height */
    padding: 14px 32px;                    /* wider sides for balance */
    border-radius: 999px;                  /* full pill */
    background: linear-gradient(135deg, #9A452B 0%, #7F3A2B 100%); /* subtle depth */
    color: #FFFFFF;                        /* pure white text */
    border: 1px solid rgba(154, 69, 43, 0.85);
    font-weight: 800;                      /* bold, modern */
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.1px;
    line-height: 1;                        /* perfect vertical centering */
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 200ms ease, filter 160ms ease;
    box-shadow: 0 4px 12px rgba(198, 134, 114, 0.40); /* soft float */
}
.menu-hero__button::after {
    content: '🔔';                         /* small bell for attention */
    display: inline-block;
    margin-left: 10px;                     /* spacing from label */
    transform: translateY(1px);
    font-size: 1.05em;                     /* balanced size */
    line-height: 1;
    opacity: 0.95;
}
.menu-hero__button:hover,
.menu-hero__button:focus-visible {
    filter: saturate(115%);
    transform: translateY(-1px) scale(1.05);  /* slight scale-up */
    background: linear-gradient(135deg, #C87D68 0%, #6F3528 100%); /* lighter/darker terracotta */
    box-shadow: 0 10px 28px rgba(154, 69, 43, 0.50), 0 0 0 4px rgba(255, 255, 255, 0.06);
}
.menu-hero__button:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(198, 134, 114, 0.35); }

@media (max-width: 640px) {
    .menu-hero__content { gap: 0.6rem; }
    .menu-hero__button { width: min(520px, 92%); }
}

/* Desktop: align input + CTA on one line for a modern look */
@media (min-width: 720px) {
    .menu-hero__form { flex-direction: row; gap: 0.5rem; }
    .menu-hero__input { width: 420px; border-top-right-radius: 14px; border-bottom-right-radius: 14px; }
    .menu-hero__button { border-top-left-radius: 14px; border-bottom-left-radius: 14px; padding: 15px 26px; }
}

/* ===== Menu Hero Animations ===== */
@keyframes mh-fade-zoom {
    0%   { opacity: 0; transform: translateY(8px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mh-fade {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes mh-slide-up {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Menu hero: success message replacing the form */
.menu-hero__success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.98);
    color: #333333;
    font-weight: 700;
    box-shadow: 0 8px 26px rgba(0,0,0,0.18);
    animation: mh-fade 600ms ease-out forwards;
}
.menu-hero__success .success-icon {
    color: #2ecc71; /* success green */
    font-weight: 900;
    filter: drop-shadow(0 2px 6px rgba(46,204,113,0.35));
}

/* Tiny shake feedback on invalid email */
@keyframes mh-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
.menu-hero__form.shake {
    animation: mh-shake 360ms ease-in-out;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Reduce vertical padding (keep proportions) */
    padding: 1rem 0; /* from 1.5rem */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.hamburger {
  background: none;
  border: none;
  width: 26px;
  height: 18px;
  position: relative;
  cursor: pointer;
  display: none; /* hidden on desktop by default */
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 220ms ease; /* for tactile scale */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;                 /* slightly thicker for aesthetics */
    background-color: var(--primary);
    border-radius: 2px;          /* rounded edges */
    /* subtle embossed/relief effect */
    background-image: linear-gradient(to bottom, rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(0,0,0,.25));
    box-shadow: 0 1px 1px rgba(0,0,0,.25);
    transition: background-color 250ms ease, transform 250ms ease, opacity 250ms ease, box-shadow 250ms ease;
    transform-origin: center;    /* smooth rotation to X */
}

/* Morph to X when active (3-line hamburger) */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0.6); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tactile feedback: slight scale when active */
.hamburger.active { transform: scale(0.96); }

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;            /* stack logo + subtitle */
    flex-direction: column;
    align-items: center;             /* center subtitle under image */
    text-align: center;
    flex-shrink: 0;                  /* never compress the logo block */
    opacity: 0;                      /* load-in animation start */
    transform: translateY(-4px);
    transition: opacity 420ms ease, transform 420ms ease;
}
.logo.visible { opacity: 1; transform: none; }

/* Image logo in navbar */
.logo-img {
    height: 64px;                    /* control size by height only */
    width: auto;                     /* keep natural aspect ratio */
    max-width: none;                 /* prevent flexbox from squeezing width */
    display: block;
    transition: height 300ms ease;
}

/* Subtitle under the navbar logo */
.logo-sub {
    display: block;
    font-size: 0.85rem;
    font-family: var(--font-primary); /* same as header items */
    font-weight: 600;                 /* semibold like nav */
    color: #EDDFC0;
    margin-top: 4px;
    line-height: 1.2;
    transition: color 200ms ease, font-size 300ms ease;
}

/* On scroll (white navbar), switch subtitle color to black for contrast */
.navbar.scrolled .logo-sub {
    color: #9A452B;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px; /* maintain minimal spacing between items */
}

/* Allow flex children to shrink safely to prevent overflow on narrow devices */
.nav-left, .nav-right { min-width: 0; }

/* Hide the mobile close button by default (desktop and tablets) */
.menu-close { display: none; }

.nav-links {
    display: flex;
    margin-right: 2rem;
}

/* Hide restaurant meta info by default (shown only in mobile overlay) */
.nav-meta { display: none; }

.nav-links li {
    margin: 0 1rem;
    transition: margin 300ms ease;
}

/* Gentle extra spacing for the first nav link ("Menu") */
.nav-links li:first-child { margin-left: 1.25rem; }
.navbar.scrolled .nav-links li:first-child { margin-left: 0.8rem; }

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: #E4D6BA;
    transition: color 200ms ease, font-size 300ms ease, padding 300ms ease;
}

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

/* On scroll, make the nav links black for better contrast (button unchanged) */
.navbar.scrolled .nav-right .nav-links a {
    color: #000000;
}

.navbar.scrolled .nav-right .nav-links a::after {
    background-color: #000000;
}

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

.btn-reserve {
    background-color: var(--redbeige); /* terracotta */
    color: #ffffff;
    border: none;
    padding: 12px 24px; /* match site buttons */
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.25rem; /* match .btn-primary size */
    font-family: var(--font-heading);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    flex-shrink: 0; /* keep CTA visible; do not compress */
    will-change: transform;
    display: inline-flex;           /* precise centering */
    align-items: center;            /* vertical center */
    justify-content: center;        /* horizontal center */
    line-height: 1;                 /* avoid extra vertical space from fonts */
    text-align: center;
    vertical-align: middle;         /* align with adjacent inline elements */
    white-space: nowrap;            /* keep label on one line */
}

/* Proportional reductions on scroll (about 1/1.5 ≈ 0.66) */
.navbar.scrolled .logo-img { height: 44px; }
.navbar.scrolled .logo-sub { font-size: 0.7rem; }
.navbar.scrolled .nav-links li { margin: 0 0.66rem; }
.navbar.scrolled .nav-links a { padding: 0.35rem 0; font-size: 0.95rem; }
.navbar.scrolled .btn-reserve { padding: 12px 24px; font-size: 1.25rem; }

.btn-reserve:hover,
.btn-reserve:focus-visible {
    background-color: #7F3A2B; /* 10% darker terracotta */
    color: #ffffff;
    transform: translateZ(0) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-reserve:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(0,0,0,0.16); }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-family: Georgia, serif;
    font-weight: bold;
    font-style: italic;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-break: keep-all;   /* do not break within words */
    hyphens: manual;        /* avoid auto hyphenation */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Ensure no hover delay on hero buttons */
.hero .hero-buttons .btn { transition-delay: 0s; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    background-image: none !important;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: none !important;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* Respect reduced motion for background animations as well */
@media (prefers-reduced-motion: reduce) {
    .hero-background { animation: none !important; }
    body.bg-global-fixed::before { animation: none !important; }
}

/* CTA Contact Banner (same background as hero) */
.cta-contact {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

/* Tweak: reduce the top spacing so the title is closer to the section top */
#contact.cta-contact { padding-top: 0; }

.cta-contact .container { position: relative; z-index: 2; }

.cta-background {
    position: absolute;
    inset: 0;
    background-image: url('../Medias/flyer-la-cantina.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: zoomIn 18s ease-in-out infinite alternate;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    z-index: 1;
}

.cta-content { max-width: 980px; margin: 0 auto; padding: 0 1rem; }

.cta-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
    line-height: 1.2;
    color: #E4D6BA; /* ivory accent like hero */
    margin-bottom: 1.7rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Button theming on dark background, consistent with hero */
.cta-contact .btn-primary {
    color: #ffffff;
    background-color: rgba(198, 134, 114, 0.75); /* 75% of #C68672 */
    border: 1px solid #C68672;
}
.cta-contact .btn-primary:hover {
    background-color: #C68672; /* solid on hover */
}
.cta-contact .btn-outline {
    background-color: rgba(228, 214, 186, 0.75);
    border: 1px solid var(--ivory);
    color: #000000;
}
.cta-contact .btn-outline:hover {
    background-color: rgba(228, 214, 186, 1);
    color: #000000;
}

@media (max-width: 640px) {
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .logo-img {
        height: 56px;
    }
}

/* Narrow tablet/landscape phones: just above mobile where header is tight
   Fix misalignment and clipped reserve button between 769px and 873px */
@media (min-width: 769px) and (max-width: 873px) {
  .navbar { padding: 1rem 0; }
  .logo-img { height: 52px; }
  .logo-sub { font-size: 0.75rem; }

  .nav-right { gap: 6px; }
  .nav-links { margin-right: 0.5rem; }
  .nav-links li { margin: 0 0.5rem; }
  .nav-links a { font-size: 0.95rem; padding: 0.35rem 0; }

  /* Slightly smaller CTA so it fits in one line */
  .btn-reserve { padding: 10px 16px; font-size: 1.05rem; }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Smaller logo on mobile while keeping aspect ratio */
    .logo { flex-shrink: 1; } /* allow logo block to share space on small screens */
    .logo-img { height: 42px; } /* slightly smaller to keep header compact */
    .logo-sub { display: block; font-size: 0.75rem; } /* keep subtitle visible under logo */

    /* Tighter navbar vertical padding on mobile */
    .navbar { padding: 0.85rem 0; }

    /* Reduce side padding so content fits (prevents cut header on 390px width) */
    .container { padding-left: 12px; padding-right: 12px; }

    /* Show hamburger only on mobile and ensure it's above content */
    .hamburger { display: inline-flex; z-index: 1100; }
    /* High contrast on hero before scroll */
    .navbar:not(.scrolled) .hamburger span { background-color: var(--ivory); /* #E4D6BA */ }
    /* Back to dark bars when navbar turns light */
    .navbar.scrolled .hamburger span { background-color: var(--primary); }

    /* Center the logo on mobile: center container and logo block, keep hamburger pinned left */
    .navbar .container { justify-content: center; }
    .nav-left { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
    .logo { margin: 0 auto; }
    .hamburger { position: absolute; left: 0; top: 0; bottom: 0; margin: auto 0; }

    /* Hide right-side container on mobile to avoid shifting the centered logo */
    .nav-right { display: none; }
    /* Hide Reserve button and inline links on mobile (kept inside overlay only) */
    .btn-reserve { display: none; }
    .nav-links { display: none; }

    /* Fix link colors in the opened burger menu regardless of scroll state */
    .nav-right.active .nav-links a { color: #EDE3C9; }
    .navbar.scrolled .nav-right.active .nav-links a { color: #EDE3C9; }
    /* Emphasized links keep accent color even on scroll */
    .nav-right.active .nav-links a[href="/menu"],
    .nav-right.active .nav-links a[href="#contact"] { color: #9A452B; }
    .navbar.scrolled .nav-right.active .nav-links a[href="/menu"],
    .navbar.scrolled .nav-right.active .nav-links a[href="#contact"] { color: #9A452B; }

    /* Hero mobile spacing: increase space H1 -> subtitle, and double subtitle -> buttons */
    .hero h1 { margin-bottom: 1.9rem; }
    .hero p { margin-bottom: 7.6rem; } /* 2.8rem + 2rem (btn mt) doubled ≈ 9.6rem total gap */
    /* Nudge hero content up slightly to reduce header -> H1 gap */
    .hero-content { margin-top: 44px; }

    /* Dark, aesthetic mobile menu overlay (see-through) */
    .nav-right.active {
        position: fixed;
        top: 76px; /* below navbar */
        left: 12px;
        right: 12px;
        bottom: 24px; /* leave footer peek */
        width: auto;
        height: auto;
        padding: 24px 20px; 
        /* Semi-transparent so the site remains visible underneath */
        background: radial-gradient(800px 400px at 50% 0%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 35%, rgba(0,0,0,0.78) 36%), rgba(10,10,12,0.78);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.08);
        overflow: auto;
        z-index: 1200;
        animation: menuFadeIn 260ms ease;
    }

    .nav-right.active .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        margin: 8px 0 24px 0;
    }

    .nav-right.active .nav-links li { margin: 0; }

    .nav-right.active .nav-links a {
        color: #EDE3C9; /* ivory on dark */
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: clamp(1.5rem, 5vw, 2rem);
        letter-spacing: .5px;
        padding: 8px 0;
        position: relative;
    }
    /* Emphasize only Menu and Galerie */
    .nav-right.active .nav-links a[href="/menu"],
    .nav-right.active .nav-links a[href="#contact"] {
        color: #9A452B;
    }
    .nav-right.active .nav-links a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: #EDE3C9;
        transform: translateX(-50%);
        transition: width 200ms ease;
    }
    .nav-right.active .nav-links a:focus-visible::after,
    .nav-right.active .nav-links a:hover::after { width: 42%; }

    .nav-right.active .btn-reserve {
        display: block; /* override mobile hide: show inside overlay */
        margin-top: auto;
        width: 100%;
        max-width: 320px;
        background-color: #9A452B; /* terracotta */
        color: #fff;
        border: 1px solid #9A452B; /* terracotta */
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
        /* ~30% smaller sizing on mobile */
        font-size: 0.875rem;
        padding: 8px 17px;
    }

    /* Hide address block inside the burger menu on mobile */
    .nav-right.active .nav-address { display: none; }

    /* Meta info inside the mobile overlay */
    .nav-right.active .nav-meta {
        display: block; /* visible only when overlay is open */
        width: 100%;
        margin-top: 6px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.12);
        color: #EDE3C9;
    }
    .nav-right.active .nav-meta-section + .nav-meta-section { margin-top: 28px; }
    .nav-right.active .nav-meta-title {
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 1.05rem;
        letter-spacing: 0.3px;
        margin: 0 0 6px 0;
        text-align: center;
    }
    .nav-right.active .nav-meta address {
        font-style: normal;
        text-align: center;
        line-height: 1.5;
        opacity: 0.95;
    }
    .nav-right.active .nav-hours-list { list-style: none; margin: 0; padding: 0; }
    .nav-right.active .nav-hours-list li {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 8px;
        align-items: baseline;
        font-size: 0.95rem;
        opacity: 0.95;
    }
    .nav-right.active .nav-hours-list li + li { margin-top: 4px; }
    .nav-right.active .nav-hours-list .day { font-weight: 700; color: #fff; }
    .nav-right.active .nav-hours-list .time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Close (X) button for the mobile overlay */
    .menu-close {
        display: none; /* hidden by default */
        position: absolute;
        top: 6px;
        right: 10px; /* stick to the right edge of the overlay card */
        width: 44px;
        height: 44px;
        border: none;             /* remove any border */
        background: transparent;   /* remove white background */
        color: #ffffff;            /* pure white cross */
        font-size: 36px;           /* bigger cross */
        font-weight: 700;
        line-height: 44px;
        text-align: center;
        cursor: pointer;
        transition: transform 160ms ease, opacity 160ms ease;
        opacity: .95;
        z-index: 2; /* above content in card */
    }
    .menu-close:focus-visible,
    .menu-close:hover { transform: scale(1.08); opacity: 1; }

    /* Show the close button only when the mobile menu is open */
    .nav-right.active .menu-close { display: block; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
    
    /* Slightly smaller primary button text on mobile */
    .btn-primary {
        font-size: 1.1rem;
    }
    /* Match outline button text size to primary on mobile */
    .btn-outline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }

    /* Mobile: reduce global .btn-reserve size by ~30% and make popup image full width */
    .btn-reserve { font-size: 0.875rem; padding: 8px 17px; }
    /* Menu page CTAs define larger sizes inline; override them on mobile */
    .menu-cta .btn-reserve { font-size: 1.3rem !important; padding: 12px 30px !important; }
    .opening-alert-image { width: 100% !important; height: auto !important; }
}

/* Menu Section */
.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.menu-category {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.menu-category:hover,
.menu-category.active {
    background-color: var(--primary);
    color: var(--white);
}

.menu-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background: #E4D6BA; /* ivory background instead of white */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.menu-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.price {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-category {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.signature-img {
    width: 80px;
    margin-right: 1.5rem;
}

.signature p {
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

.signature span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    padding-top: 125%;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.experience-badge .years {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Section */
.team-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

.team-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--ivory); /* #E4D6BA */
    border-radius: 12px;
    transition: var(--transition);
    /* Subtle 3D depth: soft layered shadow + faint border + inner highlight */
    border: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow:
      0 1px 2px rgba(16, 24, 40, 0.06),
      0 4px 10px rgba(16, 24, 40, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow:
      0 6px 16px rgba(16, 24, 40, 0.12),
      0 14px 36px rgba(16, 24, 40, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--secondary);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-member .position {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.team-member .bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive About Section */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .signature {
        justify-content: center;
        text-align: center;
    }
    
    .signature-img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .signature p {
        width: 100%;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .experience-badge {
        bottom: 15px;
        right: 15px;
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .experience-badge .text {
        font-size: 0.8rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
}

/* Gallery Section */
.gallery-section {
    background-color: #f9f9f9;
    padding: 5rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}


/* Gallery: horizontal free scroll carousel (Option 2) */
.gallery-grid {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem; /* room for scrollbar */
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    cursor: grab;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
    width: clamp(220px, 38vw, 360px); /* responsive tile */
    scroll-snap-align: start;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-caption h4,
.gallery-item:hover .gallery-caption p {
    transform: translateY(0);
}

.gallery-cta {
    text-align: center;
    margin-top: 4rem;
}

.gallery-cta p {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.gallery-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    /* Tablet: keep two rows, scale height down */
    #gallery .marquee { --marquee-row-h: 260px; row-gap: 32px; }
    /* Ensure faster speed on tablets */
    #gallery .marquee-track { animation: marquee-left 30s linear infinite !important; }
    #contact .cta-content .marquee-track { animation: marquee-left 30s linear infinite !important; }
}

/* Optional: subtle scrollbar styling */
.gallery-grid::-webkit-scrollbar { height: 8px; }
.gallery-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.08); border-radius: 8px; }
.gallery-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 8px; }

/* Dragging state */
.gallery-grid.dragging { cursor: grabbing; cursor: -webkit-grabbing; }

/* Mobile: show one row at a time but keep infinite scroll */
@media (max-width: 560px) {
  #gallery .marquee { --marquee-row-h: 220px; row-gap: 0; }
  #gallery .marquee-row:last-child { display: none; }
  /* Ensure the main marquee row keeps its right-to-left animation on mobile */
  #gallery .marquee-track { animation: marquee-left 25s linear infinite !important; }
  
  /* Optimisations spécifiques mobile pour éviter la pixelisation */
  #gallery .marquee .gallery-item img,
  #contact .cta-content .gallery-item img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
  }
}

/* Marquee mode (2 rows, slow auto-scroll, opposite directions) */
#gallery { position: relative; }
#gallery.gallery-marquee .gallery-grid { display: none; }

/* Ensure the section has some height when marquee is active */
#gallery.gallery-marquee { min-height: calc(var(--marquee-row-h, 320px) * 2 + 40px); }

#gallery .marquee {
  display: grid;
  /* Two rows with explicit, responsive height (Desktop 320px, scale down on smaller screens) */
  --marquee-row-h: 320px;
  grid-template-rows: var(--marquee-row-h) var(--marquee-row-h);
  row-gap: 40px; /* 40px vertical spacing between the two galleries */
  overflow: hidden;
  padding: 0;
}

/* Lightbox styles */
.lightbox-open { overflow: hidden; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: grid;
  place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 360ms ease;
  z-index: 9999;
}
.lightbox-overlay.visible { opacity: 1; pointer-events: auto; }
.lightbox-content {
  position: relative;
  width: var(--lightbox-w, min(90vw, 980px));
  height: var(--lightbox-h, min(85vh, 720px));
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  background: rgba(22,22,22,0.85);
  padding: 10px 52px; /* space for arrows */
  box-shadow: 0 18px 60px rgba(0,0,0,0.35), 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  /* Stronger, slower open animation */
  opacity: 0;
  transform: translateY(12px) scale(0.975);
  transition: opacity 420ms ease, transform 420ms ease;
}
.lightbox-overlay.visible .lightbox-content { opacity: 1; transform: none; }
.lightbox-overlay.closing .lightbox-content { opacity: 0; transform: translateY(8px) scale(0.985); }
.lightbox-stage { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the frame without distortion */
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.975);
  transition: opacity 360ms ease, transform 360ms ease;
}
/* Directional slide for image changes */
.lightbox-img.dir-next { transform: translateX(24px) scale(0.985); opacity: 0; }
.lightbox-img.dir-prev { transform: translateX(-24px) scale(0.985); opacity: 0; }
.lightbox-img.in.dir-next,
.lightbox-img.in.dir-prev { transform: translateX(0) scale(1); opacity: 1; }
.lightbox-img.in { opacity: 1; transform: scale(1); }
.lightbox-backdrop { position: absolute; inset: 0; border-radius: 16px; }
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 10px; /* stick to the right edge of the card */
  width: 44px;
  height: 44px;
  border: none;         /* remove white border */
  background: transparent; /* remove background */
  color: #ffffff;       /* pure white cross */
  font-size: 36px;      /* bigger cross */
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
  opacity: .95;
}
.lightbox-close:focus-visible, .lightbox-close:hover { transform: scale(1.08); opacity: 1; }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 60px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(228,214,186,0.15);
  color: #fff; font-size: 28px; cursor: pointer;
  display: grid; place-items: center;
  transition: background 160ms ease, border-color 160ms ease;
}
.lightbox-arrow:hover { background: rgba(228,214,186,0.30); border-color: rgba(255,255,255,0.45); }
.lightbox-arrow.prev { left: 8px; }
.lightbox-arrow.next { right: 8px; }

@media (max-width: 640px) {
  .lightbox-content { padding: 8px 44px; border-radius: 12px; }
  .lightbox-arrow { width: 36px; height: 52px; font-size: 24px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lightbox-content, .lightbox-img { transition: none !important; transform: none !important; opacity: 1 !important; }
}

#gallery .marquee-row {
  display: flex;
  column-gap: 20px; /* 20px gap between images */
  align-items: center;
  overflow: hidden; /* hide overflow for animation */
  mask-image: linear-gradient(to right, transparent 0.5%, black 5%, black 95%, transparent 99.5%);
  -webkit-mask-image: linear-gradient(to right, transparent 0.5%, black 5%, black 95%, transparent 99.5%);
  height: var(--marquee-row-h);
}

#gallery .marquee-track {
  display: flex;
  column-gap: 20px;
  align-items: center;
  flex-wrap: nowrap;
  will-change: transform;
  animation: marquee-left 53s linear infinite;
  min-width: 200%; /* ensure enough width for seamless loop */
  /* Optimisations mobile pour le défilement fluide */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

#gallery .marquee-row.reverse .marquee-track {
  animation-name: marquee-right;
}

/* If needed to temporarily remove the second marquee row from view */
#gallery .marquee-row.reverse { display: none; }

/* Hide the gallery section entirely when used as source only */
#gallery.gallery-marquee-hidden { display: none; }

/* When the marquee is rendered inside the CTA block */
#contact .cta-content .marquee {
  --marquee-row-h: 300px;
  /* More breathing room above and below the gallery */
  margin: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 7vw, 5rem);
}
@media (max-width: 768px) {
  #contact .cta-content .marquee { --marquee-row-h: 240px; }
}

/* CTA-embedded marquee: horizontal row of cards */
#contact .cta-content .marquee-row {
  display: flex;
  align-items: center;
  column-gap: 16px;
  height: var(--marquee-row-h);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 1%, black 8%, black 92%, transparent 99%);
  -webkit-mask-image: linear-gradient(to right, transparent 1%, black 8%, black 92%, transparent 99%);
}

#contact .cta-content .marquee-track {
  display: flex;
  align-items: center;
  column-gap: 16px;
  will-change: transform;
  min-width: 200%;
  animation: marquee-left 53s linear infinite;
  /* Optimisations mobile pour le défilement fluide */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* Mobile: enable native finger swipe scrolling for CTA marquee */
@media (max-width: 767px) {
  #contact .cta-content .marquee-track { 
    animation: marquee-left 25s linear infinite !important; 
    min-width: 200%; 
  }
  #gallery .marquee-track { 
    animation: marquee-left 25s linear infinite !important; 
  }
  #contact .cta-content .marquee-row {
    overflow: hidden; /* keep overflow hidden for animation */
  }
}

/* Card sizing inside CTA marquee */
#contact .cta-content .gallery-card {
  flex: 0 0 auto;
  width: 240px;
  height: var(--marquee-row-h);
  border-radius: 14px;
  background: rgba(22,22,22,0.85);
  padding: 6px;
  display: flex;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

#contact .cta-content .gallery-card .gallery-item { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; }
#contact .cta-content .gallery-card .gallery-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  /* Optimisations mobile pour éviter la pixelisation */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Hide original gallery overlay/caption inside CTA marquee */
#contact .cta-content .gallery-card .gallery-overlay { display: none !important; }

@media (max-width: 560px) {
  #contact .cta-content .gallery-card { width: 180px; }
}

/* Gallery tiles sizing inside marquee (portrait-style images) */
#gallery .marquee .gallery-item {
  flex: 0 0 auto;
  height: 100%;            /* fixed row height */
  width: auto;             /* width auto */
  border-radius: 8px;      /* rounded corners */
  overflow: hidden;
}

#gallery .marquee .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keep proportions */
  display: block;
  transition: transform 300ms ease;
  /* Optimisations mobile pour éviter la pixelisation */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
/* Subtle hover zoom */
@media (hover: hover) and (pointer: fine) {
  #gallery .marquee .gallery-item:hover img { transform: scale(1.04); }
}

/* Card styling around items for marquee mode */
/* Optional card wrapper is disabled for clean Holier style */
#gallery .marquee .gallery-card { all: unset; }

/* Subtle vignette overlay for depth */
#gallery .marquee .gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.18) 100%);
}

/* Reviews title premium styling */
.reviews-title {
  font-family: 'Dancing Script', cursive;
  color: var(--ivory);
  font-weight: 800;
  letter-spacing: 0.02em;
  /* Soft contour and depth */
  -webkit-text-stroke: 1px rgba(0,0,0,0.45); /* stronger visible contour */
  text-shadow:
    0 1px 0 rgba(255,255,255,0.18),  /* top highlight */
    0 2px 2px rgba(0,0,0,0.55),      /* local depth */
    0 6px 12px rgba(0,0,0,0.40),     /* mid ambient */
    0 14px 28px rgba(0,0,0,0.35);    /* far ambient */
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
  text-rendering: optimizeLegibility;
}

/* Apply Dancing Script to key H2 titles (About, Gallery, CTA, Menu) */
#about .section-title,
#gallery .section-title,
#menu .section-title,
.cta-title {
  font-family: 'Dancing Script', cursive !important;
  font-weight: 700;
  /* Match reviews title size */
  font-size: clamp(3.2rem, 5.6vw, 4.4rem) !important;
  line-height: 1.15;
}

/* Restore CTA title size (keep Dancing Script, only revert size) */
body .cta-title {
  font-size: clamp(2rem, 3.5vw + 1rem, 3rem) !important;
  line-height: 1.2;
}

/* Ensure color wins over generic heading styles in reviews section */
.section--reviews .reviews-title,
#reviews .reviews-title,
.section.section--reviews .reviews-title,
.reviews-title.section-title {
  font-family: 'Dancing Script', cursive !important;
  color: var(--ivory) !important;
  font-size: clamp(3.2rem, 5.6vw, 4.4rem) !important; /* 2x previous size */
  line-height: 1.15;
}

/* Premium hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  #gallery .marquee .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.32), 0 4px 10px rgba(0,0,0,0.2);
  }
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

  /* =============================
     Footer (La Cantin’a)
     ============================= */
  .site-footer {
    background-color: #9A452B !important; /* solid terracotta */
    color: #EDDFC0;      /* ivory text */
    padding: 0 0 24px; /* remove top margin effect, keep a modest bottom */
    position: relative;  /* create stacking context above body overlay */
    z-index: 100;        /* sit above content/background layers, below modals */
  }

/* Safety: ensure solid background even when global fixed background mode is on */
body.bg-global-fixed .site-footer { background-color: #9A452B !important; }

.site-footer .container { max-width: 1200px; }

.site-footer .footer-logo img { width: min(28vw, 320px); max-width: 320px; }

  /* Top area: 3 columns aligned and vertically centered */
  .site-footer .footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left | center | right */
    align-items: center; /* vertical alignment */
    justify-items: center; /* center items inside their grid tracks for symmetric gaps */
    column-gap: clamp(8px, 2vw, 24px); /* ~3x smaller gaps */
    /* ~3x smaller vertical spacing */
    padding: 16px 0; /* was 48px */
  }

.site-footer .footer-col { min-width: 0; }

  /* Titles */
  .site-footer .footer-title {
    font-weight: 700;
    color: #ffffff; /* brighter for headings */
    font-size: clamp(0.85rem, 0.5vw + 0.75rem, 1rem); /* ~3x smaller appearance */
    margin-bottom: 10px;
  }

/* Address block */
.site-footer address {
  font-style: normal;
  color: #EDDFC0;
  line-height: 1.6;
  font-size: clamp(0.98rem, 0.5vw + 0.8rem, 1.05rem);
}

  /* Responsive Google Maps embed */
  .site-footer .map-embed {
    position: relative;
    width: 100%;
    max-width: 320px; /* increased for readability */
    aspect-ratio: 16 / 9; /* wider ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    margin-top: 8px;
  }

  /* Hours list in footer */
  .site-footer .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px; /* tighter rows */
  }
  .site-footer .hours-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 6px;
    color: #E4D6BA;
    font-size: clamp(0.7rem, 0.4vw + 0.55rem, 0.8rem); /* smaller text */
    white-space: nowrap; /* keep each entry on one line */
  }
.site-footer .hours-list .day {
  color: #ffffff;
  font-weight: 700;
  min-width: 4rem; /* narrower label column */
  letter-spacing: 0.2px;
}
.site-footer .hours-list .time {
  opacity: 0.95;
  white-space: nowrap;
}

  .site-footer .map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }


/* Centered CTA over the marquee */
#gallery .gallery-cta-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-block;
}

/* Respect reduced motion: disable marquee animation */
@media (prefers-reduced-motion: reduce) {
  #gallery .marquee-track { animation: none !important; }
}

/* === Opening Alert Modal (Homepage) === */
/* Lock scroll when modal is open */
html.modal-open, body.modal-open { overflow: hidden; }

.opening-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
  z-index: 2000; /* above navbar */
}
.opening-alert-overlay.visible { opacity: 1; visibility: visible; }

.opening-alert-modal {
  background: transparent;
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.35);
  width: min(96vw, 1110px); /* 1.5x larger than previous 740px */
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.opening-alert-close {
  position: absolute;
  top: 8px;
  right: calc(10% + 10px);
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 5;
}
.opening-alert-close:hover { color: #fff; transform: scale(1.06); }

.opening-alert-body { width: 100%; display: block; }
.opening-alert-image { display: block; width: 80%; height: auto; margin: 0 auto; }

.opening-alert-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fafafa;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.opening-alert-cta { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .opening-alert-overlay { transition: none; }
}

/* Strong mobile overrides to enforce requested behavior */
@media (max-width: 900px) {
  /* Popup: full-bleed image on mobile */
  .opening-alert-overlay { padding: 0 !important; }
  .opening-alert-modal { width: 100vw !important; max-width: 100vw !important; border-radius: 0 !important; }
  .opening-alert-image { width: 100vw !important; height: auto !important; margin: 0 auto !important; }

  /* Menu page: reduce CTA size ~30% despite inline page styles */
  .menu-cta .btn-reserve { font-size: 1.25rem !important; padding: 12px 28px !important; }
}

/* === Reservation Modal (global) === */
.reservation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
  z-index: 2100; /* above navbar and other overlays */
}
.reservation-overlay.visible { opacity: 1; visibility: visible; }
.reservation-modal {
  position: relative;
  width: min(680px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.4);
  overflow: hidden;
}
.reservation-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #333;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
.reservation-close:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.15); color: #000; }
.reservation-body { padding: clamp(18px, 2.8vw, 28px) clamp(18px, 3.2vw, 32px); text-align: center; }
.reservation-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2rem); color: #111; margin-bottom: 8px; }
.reservation-tagline { color: #333; font-size: 0.98rem; font-style: italic; opacity: 0.95; margin-bottom: 12px; }
.reservation-phone { font-weight: 900; font-size: clamp(1.3rem, 1.4vw + 1rem, 1.8rem); color: var(--redbeige); margin: 6px 0 8px; }
.reservation-note { color: #444; margin-bottom: 12px; }
.reservation-actions { display: grid; justify-content: center; margin-bottom: 14px; }
.reservation-call-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #9A452B;
  color: #EDDFC0;
  font-family: var(--font-heading);
  font-weight: 800;
  border: 1px solid #9A452B;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 180ms ease, filter 160ms ease, background-color 160ms ease, color 160ms ease;
}
.reservation-call-btn:hover, .reservation-call-btn:focus-visible { transform: translateY(-1px) scale(1.04); background: #EDDFC0; color: #9A452B; border-color: #EDDFC0; box-shadow: 0 18px 36px rgba(0,0,0,0.22), 0 0 36px rgba(237,223,192,0.45); }
.reservation-hours { text-align: left; background: #F9F5EE; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.reservation-hours-title { margin: 0 0 6px; font-weight: 800; color: #222; }
.reservation-hours-list { list-style: none; margin: 0; padding: 0; color: #333; display: grid; gap: 4px; }
.reservation-hours-list li { display: grid; grid-template-columns: 7rem 1fr; column-gap: 10px; align-items: baseline; margin: 0; }
.reservation-hours-list .day { font-weight: 800; min-width: 4rem; letter-spacing: 0.2px; color: #222; }
.reservation-hours-list .time { white-space: normal; }
.reservation-foot { margin-top: 12px; color: #666; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  .reservation-overlay { transition: none; }
}

@media (min-width: 992px) {
  .reservation-hours-list li { white-space: nowrap; }
}

  @media (max-width: 900px) {
    .site-footer .footer-logo img {
      width: min(60vw, 330px); /* 1.5x */
      max-width: 330px;
    }
  }

/* Ensure the center brand column is perfectly centered */
.site-footer .footer-top .brand { justify-self: center; text-align: center; }
.site-footer .brand-sub { display: block; text-align: center; }
.site-footer .brand .map-embed { margin-left: auto; margin-right: auto; }

/* Push side columns away from center brand */
.site-footer .footer-top .contact {
  justify-self: end;     /* move contact block toward the right edge */
  text-align: left;      /* keep content left-aligned inside the block */
}

/* Move hours block toward the left edge */
.site-footer .footer-top .address { justify-self: start; }

/* Contact list with icons */
.site-footer .contact-list { list-style: none; padding: 0; margin: 0; }
.site-footer .contact-list li + li { margin-top: 4px; }
.site-footer .footer-link {
  color: #E4D6BA;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9; /* hover -> 1 */
  text-underline-offset: 2px;
  transition: opacity 180ms ease, text-decoration-color 180ms ease, transform 180ms ease;
}
/* Ensure contact text matches hours text size */
/* Match contact text to hours list size exactly */
.site-footer .footer-top .contact .contact-list .footer-link,
.site-footer .footer-top .contact .contact-list .footer-link span {
  font-size: clamp(0.7rem, 0.4vw + 0.55rem, 0.8rem) !important;
}
.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible {
  text-decoration: underline;
  opacity: 1;
}
.site-footer .footer-link i {
  color: #EDDFC0;
  width: 18px;              /* fixed icon column width for consistent text start */
  display: inline-flex;     /* allow centering in the fixed box */
  justify-content: center;  /* center icon within its fixed width */
}

/* Desktop-only: push contact block to the right edge while keeping left-aligned text
   This balances the visual spacing around the central logo */
@media (min-width: 992px) {
  .site-footer .footer-top .contact { justify-self: end; text-align: left; }
}

/* Thin separator above bottom area */
.site-footer .footer-separator {
  height: 1px;
  background: rgba(237, 223, 192, 0.3); /* #EDDFC0 at 30% */
  margin: clamp(10px, 2vw, 16px) 0 8px; /* tighter spacing */
}

/* Bottom area */
.site-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.site-footer .copyright {
  color: rgba(228, 214, 186, 0.8);
  font-size: clamp(0.7rem, 0.4vw + 0.55rem, 0.8rem);
  text-align: center;
}
.site-footer .footer-legal-links {
  color: rgba(228, 214, 186, 0.8);
  font-size: clamp(0.7rem, 0.4vw + 0.55rem, 0.8rem);
  text-align: center;
}
.site-footer .footer-legal-links a,
.site-footer .footer-legal-links span {
  color: inherit;
  font-size: inherit;
}

/* Social icons row */
.site-footer .social-row { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .social-row a {
  color: #E4D6BA;
  display: grid; place-items: center;
  width: 36px; height: 36px; /* smaller touch target */
  border-radius: 50%;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
  opacity: 0.9;
}
.site-footer .social-row a:hover,
.site-footer .social-row a:focus-visible {
  transform: translateY(-1px) scale(1.04); /* stronger zoom */
  opacity: 1; /* 100% */
  text-decoration: none;
}
.site-footer .social-row i { font-size: 16px; }

/* Responsive: stack columns on tablet/mobile
   Order: brand (center) → address → contact */
@media (max-width: 900px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr; /* stack */
    justify-items: center;
    text-align: center;
    row-gap: 16px; /* more space between stacked blocks */
    padding: 20px 0; /* extra vertical breathing room, a bit taller */
  }
  .site-footer .address { order: 2; }
  .site-footer .brand { order: 1; }
  .site-footer .contact { order: 3; }
  /* Reset alignment when stacked */
  .site-footer .footer-top .contact { justify-self: center; text-align: left; width: max-content; }
  .site-footer .contact-list { display: flex; flex-direction: column; align-items: flex-start; }
  /* Center only the Contact title on mobile */
  .site-footer .footer-top .contact .footer-title { text-align: center; }
  /* Center the hours block container, keep inner text left-aligned */
  .site-footer .address { text-align: left; width: max-content; margin-left: auto; margin-right: auto; }
  /* Center the 'Horaires' title itself */
  .site-footer .address .footer-title { width: max-content; margin-left: auto; margin-right: auto; text-align: center; }
  .site-footer .hours-list { justify-items: start; }
  .site-footer .hours-list .day { justify-self: start; text-align: left; min-width: 7.2rem; }
  .site-footer .hours-list .time { justify-self: start; text-align: left; }
  
  /* Additional spacing between elements inside each block */
  .site-footer .footer-title { margin-top: 6px; margin-bottom: 12px; }
  .site-footer .brand { gap: 10px; }
  .site-footer .brand .map-embed { margin-top: 10px; max-width: 100%; }
  .site-footer .hours-list { gap: 6px; }
  .site-footer .hours-list li { padding: 0; line-height: 1.25; }
  .site-footer .contact-list li + li { margin-top: 8px; }
}

/* Keep comfortable side margins on mobile */
@media (max-width: 640px) {
  .site-footer .container { padding-left: 20px; padding-right: 20px; }
}

/* Centered CTA over the marquee */
#gallery .gallery-cta-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-block;
}

/* Respect reduced motion: disable marquee animation */
@media (prefers-reduced-motion: reduce) {
  #gallery .marquee-track { animation: none !important; }
}

/* === Opening Alert Modal (Homepage) === */
/* Lock scroll when modal is open */
html.modal-open, body.modal-open { overflow: hidden; }

.opening-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
  z-index: 2000; /* above navbar */
}
.opening-alert-overlay.visible { opacity: 1; visibility: visible; }

.opening-alert-modal {
  background: transparent;
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.35);
  width: min(96vw, 1110px); /* 1.5x larger than previous 740px */
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.opening-alert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #222;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 1;
}
.opening-alert-close:hover { color: #000; transform: scale(1.06); }

.opening-alert-close {
  position: absolute;
  top: 8px;
  right: calc(10% + 10px);
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 5;
}
.opening-alert-close:hover { color: #fff; transform: scale(1.06); }

.opening-alert-body { width: 100%; display: block; }
.opening-alert-image { display: block; width: 80%; height: auto; margin: 0 auto; }

.opening-alert-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fafafa;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.opening-alert-cta { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .opening-alert-overlay { transition: none; }
}


/* FORCE FASTER MARQUEE SPEED - Override all other rules */
#gallery .marquee-track,
#contact .cta-content .marquee-track {
  animation-duration: 53s !important;
  animation: marquee-left 53s linear infinite !important;
}

@media (max-width: 1024px) {
  #gallery .marquee-track,
  #contact .cta-content .marquee-track {
    animation-duration: 53s !important;
    animation: marquee-left 53s linear infinite !important;
  }
}

@media (max-width: 768px) {
  #gallery .marquee-track,
  #contact .cta-content .marquee-track {
    animation-duration: 53s !important;
    animation: marquee-left 53s linear infinite !important;
  }
}

@media (max-width: 560px) {
  #gallery .marquee-track,
  #contact .cta-content .marquee-track {
    animation-duration: 25s !important;
    animation: marquee-left 25s linear infinite !important;
  }
}

@media (max-width: 480px) {
  #gallery .marquee-track,
  #contact .cta-content .marquee-track {
    animation-duration: 20s !important;
    animation: marquee-left 20s linear infinite !important;
  }
}
