/* ============================================================
   L'Horloge Gourmande — Main Stylesheet
   Theme: Dark luxury, gold accents, warm & refined
   ============================================================ */

/* ==================== Skip to content (a11y) ==================== */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: #14120e;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
}
.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
}

:root {
    --bg-dark: #0b0a07;
    --bg-card: #14120e;
    --bg-soft: #1d1a15;
    --gold: #CBA135;
    --gold-soft: #E0C878;
    --gold-strong: #D4AF37;
    --gold-glow: rgba(203, 161, 53, 0.12);
    --brown: #5C3A21;
    --brown-soft: #8B5E3C;
    --text-main: #f5f0e6;
    --text-muted: #a09882;
    --border-soft: rgba(245, 230, 200, 0.06);
    --border-gold: rgba(203, 161, 53, 0.2);
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 8px 32px rgba(203, 161, 53, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: "Playfair Display", "Georgia", serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    /* Hauteur du header fixed — utilisee par les elements sticky en dessous */
    --header-height: 105px;
}

/* Header plus mince sur mobile */
@media (max-width: 800px) {
    :root {
        --header-height: 80px;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* `overflow-x: clip` empeche le scroll horizontal SANS casser position:sticky.
       (Contrairement a `overflow-x: hidden` qui creerait un scroll-container et
       briserait le sticky de la nav-filter sur la page carte.) */
    overflow-x: clip;
    width: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(92, 58, 33, 0.06), transparent 70%);
    /* Securite : meme si un enfant deborde, le scroll-x reste bloque.
       `clip` au lieu de `hidden` pour ne pas casser le position:sticky. */
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

/* ==================== Scroll reveal animations ==================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(n+7) { transition-delay: 0.65s; opacity: 1; transform: none; }

/* ==================== Layout ==================== */

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: 5rem 0;
    position: relative;
}

/* Les pages sans hero (galerie, carte, résa) : la première section
   doit compenser la hauteur du header fixe (logo + padding) */
.section:first-of-type {
    padding-top: 7rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h1,
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-muted);
    max-width: 520px;
    margin-inline: auto;
}

/* ==================== Header / Nav ==================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 9, 8, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 9, 8, 0.95);
    border-bottom-color: var(--border-soft);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
}

.logo-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    margin: -1.2rem 0;
    transition: opacity var(--transition);
}

.logo:hover .logo-icon {
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    transition: color var(--transition);
}

.logo-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
}

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

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

.btn-nav {
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--border-gold) !important;
    color: var(--gold-soft) !important;
    transition: all var(--transition) !important;
}

.btn-nav:hover {
    background: var(--gold-glow) !important;
    color: var(--gold) !important;
}

.btn-nav::after { display: none !important; }

/* Burger mobile */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ==================== Hero ==================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--text-main);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image, url("../img/hero-salle.webp"));
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

/* Fallback JPG pour navigateurs sans WebP (très rares) */
@supports not (background-image: url("data:image/webp;base64,UklGR")) {
    .hero::before {
        background-image: var(--hero-image, url("../img/hero-salle.jpg"));
    }
}

.hero.loaded::before {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 9, 8, 0.7) 0%, rgba(10, 9, 8, 0.3) 40%, rgba(10, 9, 8, 0.88) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(203, 161, 53, 0.15), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 4rem;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-soft);
    border: 1px solid var(--border-gold);
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease 0.2s both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    line-height: 1.08;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 480px;
    animation: fadeUp 0.8s ease 0.6s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeUp 0.8s ease 0.8s both;
}

/* ==================== Buttons ==================== */

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #0a0a0a;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(212, 175, 55, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-soft);
    border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
    background: var(--gold-glow);
    border-color: rgba(203, 161, 53, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

.full-width { width: 100%; }

/* ==================== About section ==================== */

.about {
    background: radial-gradient(ellipse at 50% 0%, rgba(203, 161, 53, 0.06), transparent 60%);
}

/* ── Mode avec image de fond (configurable depuis l'admin) ─────────── */
.about--has-bg {
    position: relative;
    isolation: isolate;
    background: var(--bg-main);
    overflow: hidden;
}

.about--has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--about-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* Légère échelle + parallax-like via transform sur scroll si désiré */
    will-change: transform;
}

/* Voile dégradé : opaque en haut (raccord invisible avec le hero qui finit
   très sombre), s'éclaircit au milieu pour révéler l'image, puis se rassombrit
   en bas pour la transition vers la section suivante. Le radial doré garde la
   touche signature de la maison. */
.about--has-bg .about-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(20, 18, 14, 0.96) 0%,
            rgba(20, 18, 14, 0.78) 18%,
            rgba(20, 18, 14, 0.7) 50%,
            rgba(20, 18, 14, 0.82) 82%,
            rgba(20, 18, 14, 0.96) 100%
        ),
        radial-gradient(ellipse at 50% 0%, rgba(203, 161, 53, 0.12), transparent 55%);
}

.about--has-bg > .container {
    position: relative;
    z-index: 2;
}

/* Cards : un poil plus opaques quand il y a une image de fond pour rester
   bien lisibles sans perdre le côté élégant. */
.about--has-bg .about-card {
    background: rgba(29, 26, 21, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
    .about--has-bg::before {
        transition: transform 1.2s ease-out;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
    align-items: flex-start;
}

.about h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.about p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.about-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
}

.about-card-icon svg {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.about-card:hover .about-card-icon svg {
    opacity: 1;
}

.about-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
}

.about-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==================== Menu preview ==================== */

.section-menu-preview {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
}

.menu-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.menu-preview-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
}

.menu-preview-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.menu-preview-card h3 {
    margin: 0.5rem 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.menu-preview-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(203, 161, 53, 0.1);
    color: var(--gold-soft);
    border: 1px solid rgba(203, 161, 53, 0.15);
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ==================== Location ==================== */

.section-location {
    background: radial-gradient(ellipse at 60% 0%, rgba(92, 58, 33, 0.2), transparent 60%);
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
    align-items: center;
}

.location-grid h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.location-info {
    color: var(--text-muted);
    line-height: 1.8;
}

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    min-height: 380px;
    position: relative;
}

.map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==================== Horaires block ==================== */

.horaires-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.horaires-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
}

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

.horaires-list .jour {
    color: var(--text-main);
}

.horaires-list .heures {
    color: var(--text-muted);
}

/* ==================== Reservation ==================== */

.section-reservation {
    background: var(--bg-dark);
}

.resa-hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.resa-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.resa-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.resa-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
}

.lang-switch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
}

.lang-switch-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switch-link.is-active {
    color: #241608;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    box-shadow: 0 10px 22px rgba(203, 161, 53, 0.22);
}

.lang-flag {
    width: 18px;
    height: 12px;
    display: inline-block;
    border-radius: 2px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-fr {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='6' height='12' fill='%230055A4'/%3E%3Crect x='6' width='6' height='12' fill='%23FFFFFF'/%3E%3Crect x='12' width='6' height='12' fill='%23EF4135'/%3E%3C/svg%3E");
}

.flag-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23012169'/%3E%3Cpath d='M0 0 18 12M18 0 0 12' stroke='%23FFFFFF' stroke-width='2.8'/%3E%3Cpath d='M0 0 18 12M18 0 0 12' stroke='%23C8102E' stroke-width='1.2'/%3E%3Cpath d='M9 0v12M0 6h18' stroke='%23FFFFFF' stroke-width='4'/%3E%3Cpath d='M9 0v12M0 6h18' stroke='%23C8102E' stroke-width='2'/%3E%3C/svg%3E");
}

.resa-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.resa-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resa-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
}

.resa-card:hover {
    border-color: var(--border-gold);
}

.resa-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.resa-card-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--gold-soft);
}

.resa-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.resa-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.resa-card a {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color var(--transition);
}

.resa-card a:hover {
    color: var(--gold);
}

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

/* ==================== Social links ==================== */

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--border-gold);
    color: var(--gold-soft);
    background: var(--gold-glow);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.reservation-info {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.reservation-info li + li {
    margin-top: 0.4rem;
}

.reservation-form {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

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

label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

input, textarea, select {
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.7rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: rgba(203, 161, 53, 0.4);
    box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.08);
}

textarea {
    border-radius: 14px;
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9689' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ==================== Menu page (carte) ==================== */

.section-menu {
    background: radial-gradient(ellipse at 50% 0%, rgba(203, 161, 53, 0.05), transparent 50%);
}

.menu-block {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem 2.5rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

a.menu-block {
    color: inherit;
    text-decoration: none;
}

.menu-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.menu-block-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    margin: 0;
}

.menu-block-date {
    margin-bottom: 1.5rem;
}

.date-picker-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-picker-inline input[type="date"] {
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0.8rem;
    font: inherit;
    font-size: 0.85rem;
    color: var(--text-main);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold-soft);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-section-count {
    font-family: var(--font-body);
    font-size: 0.7rem;
    background: rgba(203, 161, 53, 0.1);
    color: var(--gold-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.menu-section-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -0.25rem 0 1.25rem;
    font-style: italic;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    padding: 0.6rem 0;
}

.menu-item + .menu-item {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.menu-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.45rem 0.75rem;
}

.menu-item-row .menu-item-name {
    font-family: var(--font-display);
    font-size: 1rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.menu-item-row .menu-item-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold-soft);
    flex-shrink: 0;
    white-space: nowrap;
    justify-self: end;
}

@media (max-width: 640px) {
    .menu-item-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.35rem 0.65rem;
    }

    .menu-item-row .menu-item-name {
        font-size: 0.97rem;
        line-height: 1.35;
    }

    .menu-item-row .menu-item-price {
        font-size: 0.92rem;
        padding-top: 0.1rem;
    }
}

.menu-item-description {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.menu-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    position: sticky;
    top: var(--header-height);
    z-index: 10;
    background: rgba(11, 10, 7, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.65rem 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    scroll-margin-top: var(--header-height);
}

@media (max-width: 800px) {
    .menu-nav {
        padding: 0.5rem 0.4rem;
        /* Retirer le debordement negatif sur mobile (causait du scroll-x) */
        margin-left: 0;
        margin-right: 0;
        /* Scroll horizontal au lieu de wrap (gain enorme de place verticale) */
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        /* Cacher la scrollbar tout en gardant le scroll fonctionnel */
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE/Edge */
        /* Snap pour un scroll plus fluide entre les chips */
        scroll-snap-type: x proximity;
        /* Indique a l'utilisateur qu'il y a du contenu a droite */
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent);
        mask-image: linear-gradient(to right, black calc(100% - 32px), transparent);
    }
    .menu-nav::-webkit-scrollbar {
        display: none;                  /* Chrome/Safari */
    }
    .menu-nav .menu-nav-link {
        flex-shrink: 0;                 /* Ne pas compresser les chips */
        scroll-snap-align: start;
    }
    /* Espace en fin de scroll pour que la derniere chip soit pleinement visible */
    .menu-nav::after {
        content: "";
        flex-shrink: 0;
        width: 1.5rem;
    }
}

.menu-nav-link {
    /* Reset bouton natif (pour <button class="menu-nav-link">) */
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    /* Style commun */
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
}
.menu-nav-link.active {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-glow);
}
.menu-nav-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.menu-nav-link:hover {
    color: var(--gold-soft);
    border-color: var(--border-gold);
    background: var(--gold-glow);
}

.menu-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem 0;
}

.menu-allergens {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Old menu classes (compat) */
.menu-table-wrapper { background: var(--bg-card); border-radius: var(--radius-xl); padding: 2rem; border: 1px solid var(--border-soft); }
.menu-table-meta { display: flex; justify-content: flex-end; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.menu-date { font-size: 0.9rem; color: var(--text-muted); }
.menu-table { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
.menu-column h2 { font-family: var(--font-display); margin: 0 0 1rem; }
.menu-item-header { display: grid; grid-template-columns: auto 1fr auto; gap: 0.4rem 0.75rem; align-items: baseline; }
.menu-item-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-soft); }
.menu-note { margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-muted); text-align: right; }

/* ==================== Flash messages ==================== */

.flash-container {
    padding-top: 5.5rem;
}

.flash {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.flash-success {
    background: rgba(34, 120, 60, 0.15);
    border: 1px solid rgba(34, 180, 80, 0.25);
    color: #6fd88a;
}

.flash-error {
    background: rgba(180, 40, 40, 0.15);
    border: 1px solid rgba(220, 60, 60, 0.25);
    color: #f09090;
}

/* ==================== Announcement popup ==================== */

.announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.announcement-modal {
    max-width: 460px;
    width: 90%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gold);
    animation: scaleIn 0.3s ease;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.announcement-level {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.announcement-title {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-display);
}

.announcement-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

.announcement-close:hover { color: #fff; }

.announcement-message {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.announcement-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ==================== Announcement popup ==================== */

.announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.announcement-modal {
    max-width: 460px;
    width: 90%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gold);
    animation: scaleIn 0.3s ease;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.announcement-level {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.announcement-title {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-display);
}

.announcement-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

.announcement-close:hover { color: #fff; }

.announcement-message {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.announcement-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ==================== Footer ==================== */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 3rem 0 1.5rem;
    background: #060504;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    font-size: 0.88rem;
}

.footer-grid h3, .footer-grid h4 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.footer-grid p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-bottom {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--gold-soft);
    border-color: var(--border-gold);
    background: var(--gold-glow);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==================== Error page ==================== */

.section-error {
    padding: 8rem 0;
    text-align: center;
}

/* ==================== Error page ==================== */

.section-error {
    padding: 8rem 0;
    text-align: center;
}

/* ==================== Focus states (a11y) ==================== */

a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
    border-color: rgba(203, 161, 53, 0.4);
    box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.08);
}
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ==================== Focus states (a11y) ==================== */

a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
    border-color: rgba(203, 161, 53, 0.4);
    box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.08);
}
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ==================== Gallery ==================== */

.section-gallery,
.section-gallery-preview {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0b09 100%);
}

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

/* Carrousel galerie preview (home) — defilement horizontal infini.
   Pattern identique a .reviews-track (avis Google plus bas dans le CSS). */
.gallery-preview-track-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    /* Contient le track qui a width:max-content (sinon scroll-x parasite) */
    overflow: hidden;
    /* Fade-out aux bords pour indiquer le defilement */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    cursor: grab;
}
.gallery-preview-track-wrapper.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}
.gallery-preview-track-wrapper.is-dragging .gallery-preview-track {
    pointer-events: none;
}

.gallery-preview-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    /* Animation gérée par carousel_drag.js pour un contrôle total du drag */
    will-change: transform;
}

@keyframes gallery-preview-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-preview-track {
        animation: none;
    }
    /* En reduced motion, on retombe sur un layout statique */
    .gallery-preview-track-wrapper {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Items dans le carrousel : largeur fixe pour permettre le defilement */
.gallery-preview-track .gallery-preview-item {
    flex-shrink: 0;
    width: 320px;
}

@media (max-width: 640px) {
    .gallery-preview-track .gallery-preview-item {
        width: 80vw;
        max-width: 320px;
    }
    .gallery-preview-track {
        animation-duration: 35s;  /* Defilement un peu plus rapide sur mobile */
    }
}

.gallery-item,
.gallery-preview-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0;
}

.gallery-item-overlay p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
    position: relative;
}

.lightbox-img-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    min-width: 64px;
    min-height: 64px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    transition: opacity 0.18s ease;
}

.lightbox.is-loading .lightbox-content img {
    opacity: 0;
}

.lightbox-spinner,
.dish-lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #CBA135;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    /* Petit delai : evite de flasher le spinner sur les images en cache */
    transition: opacity 0.15s ease 0.08s;
}

.lightbox.is-loading .lightbox-spinner,
.dish-lightbox.is-loading .dish-lightbox-spinner {
    opacity: 1;
    animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-spinner,
    .dish-lightbox-spinner {
        animation: none;
    }
}

.lightbox-caption {
    margin-top: 1rem;
}

.lightbox-caption h3 {
    font-family: var(--font-display);
    margin: 0;
}

.lightbox-caption p {
    color: var(--text-muted);
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.6;
    transition: opacity var(--transition);
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* Admin gallery grid */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-gallery-item {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.admin-gallery-info {
    padding: 0.75rem;
}

.admin-gallery-info strong {
    font-size: 0.9rem;
}

.admin-gallery-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.admin-gallery-item .admin-item-actions {
    padding: 0 0.75rem 0.75rem;
}

/* ==================== Daily formulas (public) ==================== */

.daily-formula {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-soft);
}

.daily-formula-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gold);
}

.daily-formula-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0;
}

.daily-formula-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-soft);
}

.daily-formula-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.daily-formula-label {
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 65px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.daily-formula-text {
    font-size: 0.95rem;
}

.daily-formulas-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.daily-formula-option {
    background: var(--bg-soft);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 140px;
    flex: 1;
}

.daily-formula-option-name {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.daily-formula-option-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-soft);
}

/* ==================== Menu enfant ==================== */

/* ==================== Category notes (suppléments, etc.) ==================== */

.menu-category-notes {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-category-note {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-muted);
}

.menu-category-note-text {
    flex: 1;
}

.menu-category-note-price {
    color: var(--gold-soft);
    font-weight: 600;
    font-style: normal;
    white-space: nowrap;
}

/* ==================== Menu enfant details ==================== */

.menu-enfant-header-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-soft);
}

.menu-enfant-details {
    margin-top: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.menu-enfant-section {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.menu-enfant-label {
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 65px;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.menu-enfant-choices {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.menu-enfant-choice {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.menu-enfant-choice-text {
    font-size: 0.92rem;
    color: var(--text-main);
}

.menu-enfant-ou {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.menu-enfant-text {
    font-size: 0.92rem;
    color: var(--text-main);
}

/* ==================== Cookie banner ==================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--bg-card);
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.4s ease;
}

.cookie-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 200px;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== Image lazy blur → net ==================== */

.img-lazy {
    filter: blur(12px);
    opacity: 0.6;
    transform: scale(1.02);
    transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

.img-lazy.loaded {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

/* ==================== Responsive ==================== */

@media (max-width: 800px) {
    .header-inner { gap: 1rem; }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        background: rgba(10, 9, 8, 0.97);
        backdrop-filter: blur(20px);
        padding: 1.25rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        border-bottom: 1px solid var(--border-soft);
    }

    .main-nav.main-nav-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .header-lang-switch {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .nav-toggle { display: inline-flex; }

    .about-grid,
    .location-grid,
    .reservation-grid,
    .resa-layout,
    .menu-table {
        grid-template-columns: minmax(0, 1fr);
    }

    .resa-sidebar { order: 2; }

    .hero { min-height: 80vh; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

    .reservation-form { margin-top: 0; }

    .flash-container { padding-top: 4.5rem; }

    .menu-block { padding: 1.5rem; }
}

@media (max-width: 700px) {
    .resa-hero-top {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section { padding: 3.5rem 0; }

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

    .stats-kpi-grid { grid-template-columns: 1fr 1fr; }

    .stats-kpi-grid-secondary { grid-template-columns: 1fr; }

    .stats-hourly-grid {
        height: 120px;
    }
    .stats-hour-label {
        font-size: 0.5rem;
    }
    .stats-hour-count {
        opacity: 1;
        font-size: 0.5rem;
    }

    .inv-count-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .inv-manage-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .inv-manage-actions {
        width: 100%;
    }

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

    .inv-product-row {
        flex-wrap: wrap;
    }
}


/* ═══════════════════════════════════════════
   BANDEAU AVIS GOOGLE — défilement infini
   ═══════════════════════════════════════════ */

.section-reviews {
    padding: 3rem 0 2.5rem;
    overflow: hidden;
    border-top: 1px solid rgba(203,161,53,0.08);
    border-bottom: 1px solid rgba(203,161,53,0.08);
}

.reviews-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(203,161,53,0.15);
    border-radius: 999px;
    background: rgba(203,161,53,0.04);
}

.reviews-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    cursor: grab;
}
.reviews-track-wrapper.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}
.reviews-track-wrapper.is-dragging .reviews-track {
    pointer-events: none;
}

.reviews-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    /* Animation gérée par carousel_drag.js */
    will-change: transform;
}

@keyframes reviews-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex-shrink: 0;
    width: 320px;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(203,161,53,0.1);
    border-radius: 16px;
    transition: border-color 0.3s, background 0.3s;
    cursor: default;
}

.review-card:hover {
    border-color: rgba(203,161,53,0.3);
    background: rgba(203,161,53,0.04);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.65rem;
}

.review-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary, #d4cfc5);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card:hover .review-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.78rem;
}

.review-author strong {
    color: var(--gold-soft, #E0C878);
}

.review-author span {
    color: var(--text-muted, #a09882);
    font-size: 0.72rem;
}

/* Mobile : cartes plus petites */
@media (max-width: 600px) {
    .review-card {
        width: 260px;
        padding: 1rem 1.15rem;
    }
    .reviews-track {
        animation-duration: 45s;
    }
    /* Fix logo sur mobile : plus petit pour ne pas écraser le header */
    .logo-icon {
        width: 55px;
        height: 55px;
        margin: -0.6rem 0;
    }
    .logo {
        gap: 0.5rem;
    }
    .logo-main {
        font-size: 1rem;
    }
    .logo-sub {
        font-size: 0.62rem;
    }
}


/* ============================================================
   Vignettes plats sur la carte (v65 — fix v65a)
   Photo 56x56 cliquable a gauche du nom du plat.
   ============================================================ */

/* Override avec specificite forte pour battre les media queries
   qui ciblent .menu-item-row seul. */
.menu-item.has-photo .menu-item-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.5rem 0.85rem;
    align-items: center;
}

/* Reset du bouton natif : sinon le navigateur applique
   ses styles par defaut (fond blanc, padding, etc.) */
.menu-item-thumb {
    /* Reset natif */
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    /* Style propre */
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
    cursor: zoom-in;
    border: 1px solid var(--border-gold);
    flex-shrink: 0;
    position: relative;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-item-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(203, 161, 53, 0.18);
    border-color: var(--gold);
}
.menu-item-thumb:hover img {
    transform: scale(1.06);
}
.menu-item-thumb:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Petite vignette sombre au survol (effet loupe subtile) */
.menu-item-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(20, 18, 14, 0) 50%, rgba(20, 18, 14, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.menu-item-thumb:hover::after {
    opacity: 1;
}

/* La description du plat doit s'aligner sous le nom (col 2-3),
   pas sous la photo (col 1) */
.menu-item.has-photo .menu-item-description {
    margin-left: calc(56px + 0.85rem);
}

/* ── Mobile : grille adaptee ── */
@media (max-width: 640px) {
    .menu-item.has-photo .menu-item-row {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 0.45rem 0.65rem;
        align-items: center;
    }
    .menu-item-thumb {
        width: 48px;
        height: 48px;
    }
    .menu-item.has-photo .menu-item-description {
        margin-left: calc(48px + 0.65rem);
    }
}

/* ============================================================
   Zebrage des lignes pour ameliorer la lisibilite (v65a)
   Les plats alternent fond transparent / fond legerement plus
   clair. Nuance subtile pour ne pas casser l'elegance dark.
   ============================================================ */

.menu-list .menu-item {
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.menu-list .menu-item:nth-child(even) {
    background: rgba(245, 230, 200, 0.06);
}

.menu-list .menu-item:hover {
    background: rgba(203, 161, 53, 0.10);
}

/* Retirer la bordure haute par defaut, on a deja le zebrage */
.menu-list .menu-item + .menu-item {
    border-top: none;
}

@media (max-width: 640px) {
    .menu-list .menu-item {
        padding: 0.65rem 0.6rem;
    }
}

/* ============================================================
   Lightbox plats — overlay plein ecran (inchange depuis v65)
   ============================================================ */

.dish-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 7, 5, 0.92);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.dish-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.dish-lightbox-card {
    position: relative;
    max-width: min(680px, 100%);
    max-height: calc(100vh - 4rem);
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}
.dish-lightbox.is-open .dish-lightbox-card {
    transform: scale(1);
}

.dish-lightbox-img-wrap {
    position: relative;
    background: #1d1a15;
    min-height: 200px;
    display: block;
}

.dish-lightbox-img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 12rem);
    object-fit: contain;
    display: block;
    transition: opacity 0.18s ease;
}

.dish-lightbox.is-loading .dish-lightbox-img {
    opacity: 0;
}

.dish-lightbox-body {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-soft);
}

.dish-lightbox-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.4rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.dish-lightbox-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.dish-lightbox-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.dish-lightbox-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.dish-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 18, 14, 0.85);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.dish-lightbox-close:hover {
    background: rgba(203, 161, 53, 0.2);
    transform: rotate(90deg);
}
.dish-lightbox-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .dish-lightbox {
        padding: 0.75rem;
    }
    .dish-lightbox-card {
        max-height: calc(100vh - 1.5rem);
    }
    .dish-lightbox-title {
        font-size: 1.15rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dish-lightbox,
    .dish-lightbox-card,
    .menu-item-thumb,
    .menu-item-thumb img {
        transition: none;
    }
}

/* ============================================================
   Sticky bottom bar mobile (Appeler / Reserver) — inchange
   ============================================================ */

.mobile-cta-bar {
    display: none;
}

@media (max-width: 800px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(11, 10, 7, 0.95);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border-gold);
        padding: 0.55rem max(0.75rem, env(safe-area-inset-left))
                 calc(0.55rem + env(safe-area-inset-bottom))
                 max(0.75rem, env(safe-area-inset-right));
        gap: 0.55rem;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    }

    .mobile-cta-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.7rem 0.5rem;
        border-radius: 999px;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.15s ease;
        white-space: nowrap;
    }
    .mobile-cta-bar a:active {
        transform: scale(0.97);
    }

    .mobile-cta-bar .cta-call {
        background: transparent;
        color: var(--gold);
        border: 1px solid var(--gold);
    }

    .mobile-cta-bar .cta-book {
        background: var(--gold);
        color: #14120e;
        border: 1px solid var(--gold);
    }

    .mobile-cta-bar svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Decaler le contenu pour ne pas etre cache derriere la barre */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
    /* La barre disparait quand l'utilisateur est sur la page resa
       (le CTA principal y est visible) */
    body.no-mobile-cta {
        padding-bottom: 0;
    }
    body.no-mobile-cta .mobile-cta-bar {
        display: none;
    }
}

/* En desktop, restaurer le padding normal */
@media (min-width: 801px) {
    body {
        padding-bottom: 0;
    }
}
