/* style-front.css (Version finale, complète et corrigée) */

/* --- Variables de Design --- */
:root {
    --deep-blue: #004aad;
    --white: #fff;
    --cream: #faf7f3;
    --gold: #d4a574;
    --terracotta: #d4a574;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* --- Styles de Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 155px; }
body {
    background-color: var(--white);
    color: var(--deep-blue);
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 136px;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 50px; }




/* --- =================================== --- */
/* ---        BANDEAU SUGGESTION         --- */
/* --- =================================== --- */

/* Section principale du bandeau */
.suggestion-section {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    /* Style par défaut si non personnalisé */
    background-color: var(--cream);
    color: var(--deep-blue);
    /* Pour l'image de fond */
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
}

/* Ajoute un voile sombre si une image de fond est utilisée, pour la lisibilité */
.suggestion-section.has-background-image {
    color: var(--white); /* Texte blanc par défaut sur une image */
}

/* Titre personnalisable (ex: "La Suggestion du Chef") */
.suggestion-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.suggestion-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--gold);
}

/* L'item de la suggestion lui-même */
.suggestion-item {
    display: flex;
    gap: 25px;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.suggestion-section:not(.has-background-image) .suggestion-item {
    background: var(--white);
    border-color: transparent;
}

.suggestion-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.suggestion-details {
    flex: 1;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.suggestion-name {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.suggestion-description {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}




/* --- Header --- */
.main-header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: #fffffff2;
    box-shadow: 0 2px 20px #0000001a;
    left: 0;
    padding: 8px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.main-header nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav-left, .nav-right { display: flex; align-items: center; }
.nav-left { justify-content: flex-start; gap: 30px; }
.logo-link { justify-self: center; }
.nav-right { justify-content: flex-end; gap: 15px; }
.logo { height: 120px; display: block; }
.burger-menu { display: none; }

.nav-link { color: var(--deep-blue); font-size: .95em; font-weight: 400; text-decoration: none; transition: color .3s ease; padding: 10px 0; position: relative; }
.nav-link:hover, a.nav-link.active { color: var(--gold); }
a.nav-link.active { font-weight: 600 !important; }

.nav-link::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 0; height: 2px; background-color: var(--gold); transition: width .3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.language-switch { display: flex; border: 1px solid #004aad4a; border-radius: 20px; overflow: hidden; }
.lang-btn { background: none; border: none; color: var(--deep-blue); cursor: pointer; font-size: 0.8em; font-weight: 600; padding: 6px 10px; transition: all 0.3s ease; }
.lang-btn.active { background-color: var(--deep-blue); color: var(--white); }

.btn-reservation { background: linear-gradient(135deg,var(--gold),var(--terracotta)); border-radius: 50px; box-shadow: 0 4px 15px #d4a5734d; color: var(--white); cursor: pointer; font-size: .9em; font-weight: 600; padding: 10px 15px; text-decoration: none; text-transform: uppercase; transition: all .3s ease; white-space: nowrap; }
.btn-reservation:hover { transform: translateY(-2px); box-shadow: 0 6px 20px #d4a57366; }

/* --- Section Héro --- */
.hero-section { align-items: center; background: linear-gradient(#0000004d,#0000004d),url('images/DSC_6376.webp'); background-attachment: fixed; background-position: 50%; background-size: cover; color: #fff; display: flex; flex-direction: column; min-height: 60vh; justify-content: center; position: relative; text-align: center; }
.hero-content h1 { font-family: var(--font-primary); font-size: 4em; font-weight: 700; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,.5); }
.hero-content p { font-size: 1.3em; font-weight: 300; text-shadow: 1px 1px 2px rgba(0,0,0,.5); max-width: 880px; }

/* --- Filtre de Catégories --- */
.category-filter-section { background: #f5f5f0; box-shadow: 0 2px 10px #0000001a; padding: 1rem 0; position: sticky; top: 136px; z-index: 900; }
#category-filter-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.filter-btn { border-radius: 25px; color: var(--deep-blue); font-weight: 500; padding: .5rem 1rem; text-decoration: none; transition: all .3s ease; background: none; border: none; font-size: 1em; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: #d4a57333; transform: translateY(-2px); }
.filter-btn.active { color: var(--gold); }

/* --- Section de Menu --- */
.category-section { padding: 4rem 0; }
.category-section:nth-child(odd) { background: var(--cream); color: var(--deep-blue); }
.category-section:nth-child(even) { background: var(--deep-blue); color: var(--white); }
.section-header { margin-bottom: 2rem; text-align: center; }
.category-title { color: var(--gold); font-family: var(--font-primary); font-size: 2.5rem; font-weight: 600; margin-bottom: .5rem; }
.title-underline { background: var(--gold); height: 3px; margin: 0 auto 1rem; width: 80px; }
.category-note { font-family: var(--font-secondary); font-size: 1.1rem; font-style: italic; max-width: 700px; margin: 0 auto 40px auto; }
.category-section:nth-child(even) .category-note { color: var(--white); }
.category-image { border: 3px solid var(--gold); border-radius: 175px 175px 30px 30px; box-shadow: 0 20px 40px #00000026; display: block; height: 350px; margin: 0 auto 40px auto; object-fit: cover; width: 350px; }
.menu-content { margin: 0 auto; max-width: 800px;}
.subcategory-title { color: var(--gold); font-family: var(--font-secondary); font-size: 1.3rem; font-weight: 600; letter-spacing: 1px; margin: 2.5rem 0 1.5rem; text-transform: uppercase; }

/* --- Styles des Articles (Items) --- */
.menu-item { display: flex; gap: 20px; align-items: flex-start; border-bottom: 1px solid rgba(44,95,122,.2); margin-bottom: 2rem; padding-bottom: 1.5rem; }
.category-section:nth-child(even) .menu-item { border-bottom-color: hsla(0,0%,100%,.2); }
.item-image { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; border: 2px solid var(--gold); flex-shrink: 0; }
.item-details { flex: 1; }
.item-header { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: .5rem; }
.item-name { flex: 1; font-family: var(--font-secondary); font-size: 1.2rem; font-weight: 500; margin: 0; }
.category-section:nth-child(odd) .item-name { color: var(--deep-blue); }
.category-section:nth-child(even) .item-name { color: var(--white); }
.item-price { color: var(--gold); font-family: var(--font-secondary); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.item-description { font-size: .95rem; line-height: 1.8; margin: .5rem 0; }
.item-note { font-size: .85rem; font-style: italic; margin-top: .3rem; }
.category-section:nth-child(odd) .item-note { color: #2c5f7acc; }
.category-section:nth-child(even) .item-note { color: #fffc; }

/* --- Styles pour les Allergènes --- */
.item-allergens-icons { display: flex; gap: 12px; margin-top: 15px; }
.allergen-icon { font-size: 1.2em; color: var(--deep-blue); opacity: 0.7; cursor: help; }
.category-section:nth-child(even) .allergen-icon { color: var(--white); }
.allergen-legend { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(44, 95, 122, 0.2); font-size: 0.9em; }
.category-section:nth-child(even) .allergen-legend { border-top-color: rgba(255, 255, 255, 0.2); }
.legend-title { font-weight: 600; color: var(--deep-blue); margin-bottom: 1rem; font-size: 1em; }
.category-section:nth-child(even) .legend-title { color: var(--white); }
.legend-items { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 2rem; justify-content: start; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-item .allergen-icon { font-size: 1.3em; }

/* --- Footer --- */
.main-footer { background-color: var(--deep-blue); color: var(--white); padding: 80px 0 30px; font-size: 0.95em; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 60px; }
.footer-column h3 { color: var(--gold); font-size: 1.4em; font-weight: 600; margin-bottom: 25px; }
.footer-column p { line-height: 1.8; opacity: 0.9; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: var(--white); text-decoration: none; transition: all 0.3s ease; }
.footer-column ul li a:hover { color: var(--gold); padding-left: 5px; }
.info-block { margin-bottom: 20px; }
.info-block strong { font-weight: 600; display: block; margin-bottom: 8px; }
.info-block p { margin: 0; }
.social-links { margin-top: 25px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: var(--white); font-size: 1.2em; text-decoration: none; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 30px; text-align: center; font-size: 0.9em; opacity: 0.8; }
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* --- =================================== --- */
/* ---        RESPONSIVE MEDIA QUERIES     --- */
/* --- =================================== --- */

/* Pour les tablettes et écrans larges (point de rupture commun) */
@media (max-width: 992px) {
    
    html { scroll-behavior: smooth; scroll-padding-top: 155px !important; }
    
    .container { padding: 0 20px; }
    
    .hero-content p {

    padding: 0px 10px 0px 10px;
}

.filter-btn {
    font-size: 0.8em;
}

.category-title {
    font-size: 2.2rem;
}
    
#category-filter-container {
    display: flex
;
    flex-wrap: wrap;
    gap: 0rem;
    justify-content: center;
    /* padding: .5rem 1rem; */
}
    
    /* --- Header & Navigation Mobile --- */
    .logo { height: 70px; }
    .main-header { padding: 10px 20px; }
    body { padding-top: 90px; }
    html { scroll-padding-top: 90px; }
    .category-filter-section { top: 90px; }
    
    .main-header nav { grid-template-columns: auto 1fr auto; }
    
    .burger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
    .burger-menu span { width: 100%; height: 3px; background-color: var(--deep-blue); border-radius: 2px; transition: all 0.3s ease-in-out; transform-origin: center; }
    .burger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    .nav-left { position: fixed; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100vh; background: #fffffff2; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; transition: left 0.4s ease-in-out; z-index: 1000; }
    .nav-left.mobile-open { left: 0; }
    .nav-left .nav-link { font-size: 1em; }

    /* --- CORRECTION IMAGE HERO --- */
    .hero-section {
        background-attachment: scroll; /* On désactive l'effet 'fixed' */
    }

    /* --- CORRECTION LÉGENDE ALLERGÈNES --- */
    .legend-items {
        display: flex;       /* Utilise Flexbox */
        flex-wrap: wrap;     /* Permet le passage à la ligne */
        justify-content: flex-start; /* Aligne au début */
        gap: 1rem 1.5rem;    /* Espacement */
    }

    /* Styles généraux pour mobile/tablette */
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1em; }
    .category-section { padding: 3rem 1rem; }
    .item-image { width: 80px; height: 80px; }
    img.category-image {
    height: 160px;
    margin: 0 auto 30px;
    width: 250px;
}

    /* Footer passe en une seule colonne */
    .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
@media (max-width: 651px) {
    
    html { scroll-behavior: smooth; scroll-padding-top: 175px !important; }}
/* Pour les téléphones (écrans encore plus petits) */
@media (max-width: 480px) {
    body { padding-top: 80px; }
    html { scroll-padding-top: 80px; }
    .logo { height: 60px; }
    .main-header { padding: 10px 15px; }
    .category-filter-section { top: 80px; }

    /* La légende passe sur 2 colonnes pour optimiser l'espace */
   
   
   
   /* --- =================================== --- */
/* ---  CORRECTIONS RESPONSIVE SUGGESTION  --- */
/* --- =================================== --- */

/* Pour les tablettes et téléphones (écrans de 992px ou moins) */
@media (max-width: 992px) {
    .suggestion-item {
        /* On passe d'un affichage horizontal à vertical */
        flex-direction: column; 
        
        /* On centre tout pour un meilleur rendu */
        align-items: center;
        text-align: center;
        
        /* On réduit un peu le padding pour gagner de la place */
        padding: 1.5rem;
    }

    .suggestion-header {
        /* On empile aussi le nom et le prix */
        flex-direction: column;
        align-items: center;
        gap: 0.5rem; /* On réduit l'espace entre le nom et le prix */
        margin-bottom: 1rem;
    }
    
    .suggestion-name {
        font-size: 1.3rem; /* On ajuste la taille du nom */
    }

    .suggestion-price {
        font-size: 1.2rem; /* On ajuste la taille du prix */
    }

    .suggestion-title {
        font-size: 1.8rem; /* On réduit aussi le titre principal */
    }
}
}


/* --- =================================== --- */
/* ---  CORRECTIONS PRIX SUGGESTION MOBILE --- */
/* --- =================================== --- */

/* Par défaut (sur ordinateur) */
.suggestion-price-desktop {
    display: block; /* Le prix du bureau est visible */
}
.suggestion-price-mobile {
    display: none;  /* Le prix du mobile est caché */
}


/* Pour les tablettes et téléphones (écrans de 992px ou moins) */
@media (max-width: 992px) {
    .suggestion-price-desktop {
        display: none; /* On cache le prix du bureau */
    }
    .suggestion-price-mobile {
        display: block; /* On affiche le prix du mobile */
        margin-top: 1rem; /* On ajoute un espace au-dessus du prix */
        font-size: 1.3rem; /* On peut le rendre un peu plus grand */
        font-weight: 700;
        color: var(--gold); /* On s'assure qu'il a la bonne couleur */
    }
    
    /* On ajuste le header pour qu'il n'y ait plus que le nom du plat */
    .suggestion-header {
        justify-content: center; /* Centre le nom du plat maintenant qu'il est seul */
    }
}