/* ======== VARIABLES & RESET ======== */
:root {
    --primary-red: #d90429; /* Rouge vif pour les accents */
    --dark-red: #a1001e;      /* Rouge plus foncé pour les survols */
    --gold-color: #DAA520;    /* Nouvelle couleur: Or */
    --dark-color: #2b2d42;    /* Gris foncé pour le texte */
    --light-bg: #f9f7f3;      /* Nouveau: Fond beige très clair */
    --white-bg: #ffffff;
    
    /* Nouvelles polices */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-chinese: 'Zhi Mang Xing', cursive; /* Police "pinceau" */
}

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

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; 
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    font-family: var(--font-body); /* Police de corps */
    background-color: var(--light-bg); /* Fond général plus chaud */
}

h1, h3 {
    margin-bottom: 1rem;
    font-family: var(--font-title); /* Police de titre */
    color: var(--dark-color); /* Couleur de titre par défaut */
}

/* MODIFIÉ : h2 stylé globalement */
h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-family: var(--font-title);
    color: var(--dark-color);
}

/* Titre de sous-catégorie dans le menu */
h4.submenu-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

/* RÈGLE : Centrer le texte d'info dans l'onglet Accompagnement */
#accompagnement h4 {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: #555;
    margin-bottom: 2rem;
    margin-top: -0.5rem; /* Remonte un peu le texte */
}

section {
    padding: 4rem 5%;
}

/* AJOUT : Style pour le soulignement des titres de section */
#menu h2,
#specials h2,
#contact h2 {
    position: relative; /* Nécessaire pour le pseudo-élément */
    padding-bottom: 0.75rem;
}

#menu h2::after,
#specials h2::after,
#contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Largeur du trait */
    height: 3px; /* Épaisseur du trait */
    background-color: var(--gold-color); /* Couleur dorée */
    border-radius: 2px;
}


/* On "pimpe" les boutons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 30px; /* Boutons plus arrondis */
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-title);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--dark-red);
    transform: translateY(-3px); /* Effet de "soulèvement" */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ======== HEADER (Navigation) ======== */
header {
    background-color: var(--white-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Rappel chinois : bordure dorée */
    border-bottom: 3px solid var(--gold-color);
    
    /* Ajout de la transition pour le "top" */
    transition: top 0.3s ease-in-out;
}

/* CLASSE : Style pour cacher le header */
header.header-hidden {
    top: -85px; /* Cache le header (hauteur 80px + bordure 3px, + 2px de marge) */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    height: 80px;
    position: relative; /* Ajoutée pour le centrage absolu */
}

.logo a {
    text-decoration: none;
    /* NOUVELLES LIGNES POUR L'ALIGNEMENT */
    display: flex;
    align-items: baseline;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

/* Le nom chinois est maintenant le style principal */
.logo a .chinese-name {
    font-size: 2.2rem; /* Plus grand */
    font-weight: 400;
    color: var(--primary-red); /* En rouge */
    font-family: var(--font-chinese); /* Utilise la police "pinceau" */
    margin-left: 0; /* Plus de marge à gauche */
    margin-right: 0; /* Plus d'espace */
    position: relative;
    top: 0.1em; /* Ajustement vertical pour la police "pinceau" */
}

/* L'ancienne règle .logo a .roman-name a été supprimée */


.nav-links {
    display: flex;
    list-style: none;
    /* NOUVELLES LIGNES : pour centrer le bloc de navigation */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    font-family: var(--font-title);
    /* REMIS COMME AVANT : enlever la transition transform et display inline-block */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
    /* REMIS COMME AVANT : enlever l'effet de soulèvement */
    transform: translateY(0);
}

/* AJOUT : Style pour le lien de navigation actif (basé sur le scroll) */
.nav-links a.active-link {
    color: var(--primary-red);
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* ======== SECTION ACCUEIL (Hero) ======== */
.hero {
    /* Image PC : IMG.jpg */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('IMG.jpg') no-repeat center center/cover;
    
    /* Effet parallaxe "fixe" */
    background-attachment: fixed; 
    
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-bg);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white-bg);
    /* Ombre portée pour mieux lire le texte sur l'image */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem; /* harmonisation */
    font-family: var(--font-title); /* harmonisation */
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--white-bg);
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 400; /* Plus léger que le titre h1 */
    text-align: center; /* harmonisation */
}

/* AJOUT : Ajoute de l'espace au-dessus du bouton "Voir la Carte" */
.hero .cta-button {
    margin-top: 1.5rem;
}

/* ======== SECTION CARTE (Menu) ======== */
#menu {
    background-color: var(--white-bg); /* On garde un fond blanc pour la lisibilité du menu */
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-link {
    background: var(--light-bg);
    border: none;
    padding: 0.8rem 1.2rem; /* Ajustement du padding */
    margin: 4px; /* Ajustement de la marge */
    border-radius: 30px; /* Onglets arrondis */
    cursor: pointer;
    font-size: 0.9rem; /* Police plus petite pour que tout rentre */
    font-weight: bold;
    font-family: var(--font-title);
    transition: 0.3s ease;
    transform: translateY(0); /* AJOUT : Pour une transition de soulèvement fluide */
}

.tab-link:hover {
    background: #e0e0e0;
    transform: translateY(-2px); /* AJOUT : Animation de soulèvement */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* AJOUT : Ombre légère */
}

.tab-link.active {
    background: var(--primary-red);
    color: var(--white-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    /* Accent doré */
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 0.5rem;
    color: var(--primary-red); /* Titres de section en rouge */
}

.menu-item-list {
    /* REMIS COMME AVANT : max-width à 800px */
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed #ccc;
}

.item-name {
    font-weight: bold;
    padding-right: 1rem;
}

.item-price {
    color: var(--primary-red);
    font-weight: bold;
    flex-shrink: 0;
}

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

/* ======== SECTION MENUS & OFFRES ======== */
#specials {
    background-color: var(--light-bg); /* Fond beige chaud */
}

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

/* On "pimpe" les cartes */
.special-card {
    background: var(--white-bg);
    padding: 2rem;
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Double bordure pour un style "chinois" */
    border-top: 5px solid var(--primary-red);
    border-bottom: 5px solid var(--gold-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Aligne le contenu verticalement */
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.special-card h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
}
.special-card p {
    margin-bottom: 0.5rem;
    padding-left: 10px; /* Léger retrait pour les détails */
}

/* Prix mis en avant */
.special-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-left: 0;
}


/* NOUVEAUX STYLES pour les listes de menus */
.special-card p strong {
    color: var(--dark-color);
    margin-top: 0.75rem;
    display: inline-block; /* Pour que le margin-top s'applique */
    padding-left: 0; /* Annule le retrait du p parent */
}
.special-card p em {
    color: var(--dark-red);
    font-style: italic;
}
.special-card small {
    display: block; /* Pour qu'elle prenne sa propre ligne */
    margin-top: 1rem;
    color: #777;
    font-style: italic;
    padding-left: 0;
}


/* ======== SECTION CONTACT & HORAIRES ======== */
#contact {
    background-color: var(--white-bg); /* Fond blanc pour la lisibilité de la carte */
}

.contact-container {
    display: grid;
    /* MODIFIÉ : Retour à un ratio plus équilibré */
    grid-template-columns: 1fr 1.5fr; 
    gap: 2rem;
    align-items: flex-start;
    /* Centrer le conteneur global sur de grands écrans */
    max-width: 1200px; 
    margin: 0 auto;
}

/* MODIFIÉ : Suppression des règles qui poussaaient le bloc vers la droite */
.contact-info {
    /* max-width: 350px; (supprimé) */
    /* margin-left: auto; (supprimé) */
    /* padding-right: 1rem; (supprimé) */
}


.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* AJOUT : Style pour les icônes de contact */
.contact-info h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Espace entre l'icône et le texte */
}

.contact-info h3 i {
    color: var(--primary-red); /* Icônes en rouge */
    font-size: 1.2rem; /* Taille de l'icône */
    width: 25px; /* Largeur fixe pour l'alignement */
    text-align: center;
}


.contact-info a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-red);
}

.contact-info .closed {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.map-container iframe {
    border-radius: 8px;
    width: 100%;
    height: 400px;
}

/* ======== NOUVEAU : SECTION MENTIONS LÉGALES ======== */
.legal-section {
    max-width: 900px; /* Limite la largeur pour la lisibilité */
    margin: 0 auto; /* Centre la section */
    
    /* MODIFICATION : Suppression des styles du "cadre" */
    background-color: transparent; /* Fond transparent */
    padding: 2rem 0; /* On garde un padding vertical, mais le padding horizontal vient de la 'section' parente */
    border-radius: 0; /* Plus de coins arrondis */
    box-shadow: none; /* Plus d'ombre */
    border-top: none; /* Plus de bordure rouge */
}

.legal-section h1 {
    font-size: 2.2rem;
    color: var(--primary-red);
    text-align: center;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    text-align: center; /* MODIFIÉ : Aligné au centre */
    margin-top: 2rem;
    margin-bottom: 1.5rem; /* MODIFIÉ : plus d'espace */
    padding-bottom: 0.5rem; /* AJOUT : Espace pour la ligne */
    position: relative; /* AJOUT : Pour le pseudo-élément */
}

/* MODIFIÉ : Annule le style global '::after' pour les h2 dans cette section */
/* AJOUT : Ligne dorée sous les H2 des mentions légales */
.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Ligne plus courte que les titres de section */
    height: 2px; /* Ligne plus fine */
    background-color: var(--gold-color); /* Couleur dorée */
    border-radius: 2px;
    display: block; /* S'assure qu'il s'affiche (remplace le 'display: none') */
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify; /* AJOUT : Justification du texte */
}

.legal-section p strong {
    color: var(--dark-color);
}

/* Style pour le bouton retour */
.legal-section .cta-button {
    display: block; /* Prend toute la largeur */
    max-width: 250px; /* Largeur max du bouton */
    margin: 2rem auto 0 auto; /* Centre le bouton */
    text-align: center; /* Centre le texte du bouton */
}


/* ======== ANIMATIONS AU SCROLL ======== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Optimisation des performances */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délai pour les cartes pour un effet échelonné */
.special-card.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.special-card.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.special-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.special-card.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }


/* ======== FOOTER (Simplifié) ======== */
footer {
    background-color: var(--primary-red);
    color: var(--light-bg);
    text-align: center; /* On recentre tout */
    padding: 2rem 5%;
    border-top: 3px solid var(--gold-color);
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-legal-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

/* ======== STYLES MODAL (POP-UP) ======== */
/* (Code de la modal, non utilisé par mentions-legales.html mais conservé) */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    z-index: 2000; /* Au-dessus de tout */
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Classe pour afficher la modal via JS */
.modal-overlay.show {
    display: flex;
}

/* La boîte blanche du pop-up */
.modal-content {
    background-color: var(--white-bg);
    color: var(--dark-color); /* Texte foncé sur fond blanc */
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInModal 0.3s ease-out;
    max-height: 80vh; /* Hauteur max */
    overflow-y: auto; /* Permet de scroller si le contenu est trop long */
}

/* Le bouton de fermeture (X) */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--dark-color);
}

/* Titre de la modal */
.modal-content h2 {
    text-align: left; /* On garde l'alignement à gauche */
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-color);
}

/* Sections de la modal */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.modal-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Liens dans la modal */
.modal-section a {
    color: var(--primary-red);
    font-weight: bold;
    text-decoration: none;
}

.modal-section a:hover {
    text-decoration: underline;
}

/* Animation d'apparition */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======== RESPONSIVE (pour Mobiles) ======== */
@media (max-width: 850px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        background-color: var(--white-bg);
        position: absolute;
        top: 83px; /* Hauteur du header + bordure */
        left: 0;
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: none; /* Annule le centrage sur mobile */
    }
    
    .nav-links.active {
        display: flex; 
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .burger-menu {
        display: block;
    }

    /* Animation du burger menu */
    .burger-menu.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    nav .cta-button {
        display: none;
    }

    /* --- SECTION POUR L'IMAGE MOBILE --- */
    .hero {
        /* On remplace l'image par IMG_MOB.jpg */
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('IMG_MOB.jpg') no-repeat center center/cover;
        
        /* On désactive l'effet parallaxe pour éviter le zoom */
        background-attachment: scroll; 
    }
    /* --- FIN DE LA SECTION --- */


    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Règles pour le logo sur mobile */
    .logo a .chinese-name {
        font-size: 1.8rem; /* Taille du nom chinois sur mobile */
        margin-right: 0; /* Plus d'espace */
        top: 0.1em;
    }
    /* L'ancienne règle .logo a .roman-name a été supprimée */
    
    .tab-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* AJOUT : Sur mobile, le bloc d'infos reprend sa largeur normale et est centré */
    .contact-info {
        max-width: 100%;
        margin-left: 0;
        padding-right: 0;
        text-align: center; /* Centre le texte sur mobile */
    }
    .contact-info h3 {
        justify-content: center; /* Centre les icônes et le texte sur mobile */
    }

    /* Ajustement de la modal sur petit écran */
    .modal-content {
        padding: 1.5rem;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }

    /* AJOUT : Ajustement de la section légale sur mobile */
    .legal-section {
        /* MODIFIÉ : Un peu plus de padding latéral pour aérer */
        padding: 1.5rem 1.5rem; 
    }
    .legal-section h1 {
        font-size: 1.8rem;
    }
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    /* AJOUT : Amélioration de la lisibilité des paragraphes sur mobile */
    .legal-section p {
        text-align: left; /* Le texte justifié est difficile à lire sur petit écran */
    }
}