/* --- 1. Variables et Réinitialisation de Base --- */


:root {
    /* Couleurs inspirées de l'art de la table et des épices */
    --color-primary: #3e8b2b; /* Vert Émeraude/Libanais (pour les titres et prix) */
    --color-secondary: #D4A373; /* Beige Doré (chaleur, luxe) */
    --color-text: #333; /* Texte sombre */
    --color-light: #F9F7F5; /* Fond clair cassé (style 'papier') */
    --color-white: #fff;

    /* Typographie */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Styles Généraux de Section et Boutons --- */
.content-section {
    padding: 80px 0;
    text-align: center;
}

.content-section h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Soulignement subtil des titres de section */
.content-section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: var(--color-secondary);
}

.subtitle {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.alternate-bg {
    background-color: var(--color-white); /* Blanc pur pour contraster */
}

/* Styles des boutons CTA */
.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-cta.secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text);
}

.btn-cta.secondary:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

/* --- 3. Header et Navigation --- */

/* Simulation d'une image de fond élégante pour la section héros */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('accueil-lilou1.jpg') center center/cover no-repeat;
    
    height: 100vh; 
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
}

/* Le conteneur du logo devient flexible si l'image n'est pas chargée */
.logo {
    display: flex;
    align-items: center;
    height: 40px; /* Assure que la zone du logo a une hauteur définie */
}

.logo-img {
    height: 300%; /* L'image prend 100% de la hauteur du conteneur .logo */
    width: auto;
    /* Ajoutez une petite bordure optionnelle pour un effet plus chic */
    border: 0px solid rgba(255, 255, 255, 0.4);
    padding: 3px;
    border-radius: 4px;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 35px;
}

.navbar ul li a {
    color: var(--color-white);
    font-size: 1.05em;
    font-weight: 400;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

.navbar ul li a:hover {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-reservation {
    background-color: var(--color-secondary);
    color: var(--color-primary) !important;
    padding: 8px 18px;
    border-radius: 4px;
    border: none !important;
    font-weight: 600;
}

.btn-reservation:hover {
    background-color: var(--color-white);
}

/* Contenu Principal du Héros */
.hero-content {
    text-align: center;
    margin-top: -100px; /* Remonter un peu le contenu */
}

.hero-content h1 {
    font-size: 5em; /* Grand titre impressionnant */
    color: var(--color-white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
    font-size: 1.8em;
    color: var(--color-secondary);
    font-weight: 400;
    margin-bottom: 40px;
}

/* --- 4. Section À Propos --- */

.about-section p {
    max-width: 800px;
    margin: 20px auto 30px auto;
    font-size: 1.1em;
    font-weight: 300;
}

.signature {
    margin-top: 40px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4em;
    color: var(--color-primary);
}

/* --- 5. Section Aperçu Menu --- */

.menu-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.menu-item {
    width: 300px;
    text-align: left;
    padding: 20px;
    border: 1px solid #eee;
    background-color: var(--color-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.menu-item h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.menu-item p {
    font-size: 0.95em;
    color: #555;
}

/* --- 6. Section Contact (Refonte) --- */

.contact-modern-container {
    padding: 0 40px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espace entre les cartes */
    margin-top: 50px;
    margin-bottom: 60px;
}

/* ... (Règles contact-modern-container, contact-grid) ... */

.contact-card {
    /* ... (règles existantes) ... */
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out; 
    cursor: pointer;
    text-align: center;
}

/* NOUVELLE RÈGLE CSS POUR LE SURVOL UNIFORME */
.contact-card:hover {
    background-color: var(--color-primary); /* La couleur uniforme souhaitée (Grenat) */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
    color: var(--color-white) !important; /* Texte en blanc pour le contraste */
}

.contact-card:hover h4 {
    color: var(--color-white); /* Titre en blanc */
}

.contact-card:hover .card-icon i, 
.contact-card:hover p,
.contact-card:hover a {
    color: var(--color-white) !important; /* Icônes et texte en blanc */
}

/* On s'assure que les liens sont aussi blancs au survol */
.contact-card:hover a:hover {
    text-decoration: underline;
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--color-primary); /* L'icône garde la couleur chic du restaurant */
    transition: color 0.4s;
}

.contact-card h4 {
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p, .contact-card a {
    font-size: 1em;
    color: var(--color-text);
    line-height: 1.4;
    transition: color 0.4s;
}

.contact-card a:hover {
    text-decoration: underline;
    /* La couleur au survol sera gérée par le JS */
}

/* On garde le placeholder pour l'aperçu de la carte */
/* Remplacer le style de l'ancien .map-placeholder par ceci: */

.map-container {
    width: 100%;
    height: 400px; /* Hauteur de la carte */
    margin-top: 40px;
    border-radius: 15px; /* Coins arrondis pour correspondre aux cartes */
    overflow: hidden; /* Cacher ce qui dépasse les bords arrondis */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* S'assurer que l'iframe remplit le conteneur */
.map-container iframe {
    border: none !important;
}

/* --- 7. Footer --- */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 25px 0;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--color-white);
    margin-left: 10px;
    font-weight: 600;
}

.social-links a:hover {
    color: var(--color-secondary);
}

/* --- 8. Ruban d'Avis (Carousel Horizontal) --- */

/* --- 8. Ruban d'Avis (Carousel Horizontal) --- */

.reviews-ribbon {
    margin: 60px 0 60px 0;
    overflow: hidden; 
    background-color: var(--color-white); /* Utilisation du blanc pur pour le contraste */
    padding: 30px 0;
    border-top: 5px solid var(--color-secondary); /* Bordure plus marquée */
    border-bottom: 5px solid var(--color-secondary);
    text-align: center;
}

/* Pas de changement ici (le nowrap maintient le flex horizontal) */
.reviews-wrapper {
    display: flex;
    white-space: nowrap; 
    animation: scroll-reviews 30s linear infinite; 
}

.review-item-ribbon {
    flex-shrink: 0;
    width: 320px; /* Légèrement plus étroit pour afficher plus d'avis sans étirer le texte */
    padding: 15px 25px;
    text-align: center;
    border-right: 1px solid #ddd;
    margin-right: 30px;
    /* On augmente la hauteur pour donner plus d'espace au texte multiligne */
    height: 150px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* NOUVELLE RÈGLE : Permet au texte de passer à la ligne */
.review-text {
    white-space: normal !important; 
    /* ... les autres styles p restent inchangés ... */
}

.review-item-ribbon p {
    font-size: 0.95em;
    font-style: italic;
    color: #555;
    margin-bottom: 5px;
}

/* Style des Étoiles (Font Awesome) */
.rating {
    color: var(--color-secondary); /* Étoiles dorées */
    margin: 5px 0;
    font-size: 0.9em;
}

/* Définition de l'animation de défilement (Keyframes) */
@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Défilement sur la largeur totale d'une seule série d'avis */
        transform: translateX(-50%); 
    }
}

/* ======================================================= */
/* --- MEDIA QUERIES (ADAPTATION MOBILE) --- */
/* ======================================================= */

@media (max-width: 900px) {
    /* Ajustement de la largeur du conteneur pour les tablettes */
    .container {
        padding: 0 15px;
    }

    /* 3. Header et Navigation */
    .navbar {
        flex-direction: column; /* Empile le logo et les liens */
        padding: 20px 15px;
        align-items: center;
    }

    .navbar ul {
        flex-direction: column; /* Les liens s'empilent verticalement */
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .navbar ul li {
        margin: 5px 0;
    }
    
    .btn-reservation {
        margin-top: 10px;
    }

    /* Contenu Principal du Héros */
    .hero-content h1 {
        font-size: 3em; /* Réduction de la taille du titre */
    }

    .hero-content h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    
    /* 5. Section Aperçu Menu */
    .menu-grid {
        flex-direction: column; /* Empile les aperçus de menu */
        gap: 20px;
    }
    
    .menu-item {
        width: 90%;
        margin: 0 auto;
    }

    /* 6. Section Contact */
    .contact-grid {
        flex-direction: column; /* Empile les cartes de contact */
        gap: 20px;
    }

    .contact-card {
        width: 100%;
    }
    
    /* 8. Ruban d'Avis (Le défilement horizontal est maintenu) */
    .reviews-ribbon {
        padding: 20px 0;
    }
    
    .review-item-ribbon {
        width: 280px; /* Assure que le défilement continue */
        margin-right: 20px;
        height: auto;
    }
}