/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.header-content {
    height: 60px;
    width: 100vw;
    display: flex;
    flex-direction: row; /* Aligné en ligne */
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    background-color: rgba(255, 255, 255, 0); 
    box-shadow: 0 1px 0 rgba(238, 238, 238, 0);
}

.header-content.scrolled {
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(238, 238, 238, 1); 
}

/* Logo */
.header-logo {
    margin-left: 40px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.header-logo img {
    width: auto;
}

.header-content.scrolled .header-logo {
    opacity: 1;
}

/* Navigation Desktop */
.header-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-right: 40px;
    height: 100%;
}

/* Typographie de base */
.header-menu p, 
.cta-book p, 
.header-horraires p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* Mode Différence (Blanc sur fond sombre, Noir sur fond blanc) */
.header-menu{
    mix-blend-mode: difference;
    color: #fff;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.header-menu:hover {
transform: scale(1.05);
}

.header-menu a {
    color: #fff;
    text-decoration: none;
}

/* Status Ouvert/Fermé (Forcé pour ignorer le mix-blend-mode si besoin) */
.status-ouvert { color: #009200 !important; font-weight: 800;}
.status-ferme { color: #920000 !important; font-weight: 800;}

/* Bouton Réserver */
.cta-book {
    background-color: #111;
    padding: 5px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    border-radius: 30px;
}

.cta-book:hover {
    transform: scale(1.05);
    background-color: #000;
}

.cta-book p {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   MENU MOBILE & BURGER
   ========================================================================== */

/* Bouton Burger */
.menu-mobile-nav {
position: fixed;
top: 20px;
right: 20px;
z-index: 1100;
width: 30px;
height: 20px;
cursor: pointer;
mix-blend-mode: difference;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    left: 0;
    transition: all .25s ease-in-out;
}

.burger-icon span:nth-child(1) { top: 0px; }
.burger-icon span:nth-child(2) { top: 10px; }
.burger-icon span:nth-child(3) { top: 20px; }

/* Transformation Burger -> Croix */
.mobile.is-open .burger-icon span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.mobile.is-open .burger-icon span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.mobile.is-open .burger-icon span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

/* Overlay Mobile */
.menu-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* État Actif */
.mobile.active .menu-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

/* GESTION DU FLASH : Masquer le contenu si un autre overlay est ouvert par-dessus */
.mobile.active.overlay-is-open .menu-mobile-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

/* Contenu du Menu Mobile */
.menu-mobile-content {
    text-align: center;
    width: 100%;
    padding: 40px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile.active .menu-mobile-content {
    transform: translateY(0);
}
.mobile-links a {
    display: block;
    font-family: 'Cinzel', serif; /* Assure-toi que la police est importée */
    font-size: 28px;
    text-decoration: none;
    color: #111;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.mobile-hours {
    margin: 40px 0;
    color: #111;
}

.mobile .cta-book {
margin: 0 auto;
display: -webkit-inline-box;
}

/* Masquer la navigation desktop sur mobile */
@media (max-width: 1024px) {
    .desktop {
        display: none;
    }
}

/* Afficher le bouton burger uniquement sur mobile (si besoin) */
@media (min-width: 1025px) {
    .mobile {
        display: none;
    }
}

/* 1. On monte le z-index des overlays de contenu pour qu'ils soient au-dessus du menu mobile */
.reservation, 
.overlay-menu {
    z-index: 2000; /* Plus haut que le menu mobile (1000) */
}
.carte-jour{
    background-color: #111111; /* Assure-toi qu'il est bien opaque */
}
.reservation {
    background-color: #F1E6DE; /* Assure-toi qu'il est bien opaque */
}

/* 2. On empêche le menu mobile de "disparaître" trop vite */
.mobile.active.overlay-is-open .menu-mobile-content {
    opacity: 0;
    visibility: hidden;
    /* On retire la transition de sortie ou on la ralentit pour éviter le trou visuel */
    transition: opacity 0.1s ease; 
}

/* 3. On s'assure que le fond blanc de l'overlay mobile reste là tant que l'autre n'est pas prêt */
.menu-mobile-overlay {
    z-index: 1000;
}