/* --- VARIABLES & BASE (Contrastes Améliorés) --- */
:root {
    --primary-color: #b0558f; /* Violet Prune plus vif et contrasté */
    --dark-color: #262428;    /* Gris Anthracite très profond (presque noir) */
    --light-color: #ffffff;   /* Blanc pur pour une lisibilité maximale sur fond sombre */
    --text-color: #1c1b1d;    /* Gris très foncé (presque noir) pour le texte principal */
    --bg-color: #f5f3f4;      /* Gris perle très léger pour reposer les yeux */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

/* --- HEADER --- */
header {
    background-color: var(--dark-color);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.logo { color: var(--light-color); text-decoration: none; font-weight: bold; font-size: 1.5rem; }
.logo span { color: var(--primary-color); }
nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 25px; }
nav ul li a { color: var(--light-color); text-decoration: none; transition: color 0.3s; font-weight: 500; }
nav ul li a:hover { color: var(--primary-color); }

/* --- HERO (Page d'accueil) --- */
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background-color: #702153; /* Violet plus sombre au survol */
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--light-color);
}
.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* --- EN-TETE DES SOUS-PAGES (Histoire & Carte) --- */
.page-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-bottom: 5px solid var(--primary-color);
}
.page-header h1 { font-size: 2.5rem; color: var(--light-color); }
.page-header p { color: #dcdadd; margin-top: 10px; } /* Gris clair bien visible */

/* --- SECTION HISTOIRE --- */
    .content-section { padding: 40px 5%; max-width: 1000px; margin: 0 auto; }
    .about-content { display: flex; gap: 40px; align-items: center; }
    .about-text h2 { color: var(--dark-color); margin-bottom: 20px; }
    .about-text p { margin-bottom: 15px; }
    .about-text h3 { margin-top: 25px; color: var(--primary-color); }
    .about-text ul { margin-left: 20px; margin-top: 10px; }

/* Le conteneur parent */
.hero {
    position: relative; /* Indispensable pour positionner les enfants */
    height: 80vh;
    width: 100%;
    overflow: hidden; /* Empêche l'image de dépasser */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    text-align: center;
}

/* L'image HTML transformée en fond */
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit l'espace sans se déformer */
    z-index: 1; /* Derrière tout le reste */
}

/* Le calque sombre pour le contraste (assure la lisibilité du texte) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé radial : plus sombre au milieu, plus transparent sur les extérieurs */
    background: radial-gradient(circle, rgba(15, 15, 15, 0.85) 0%, rgba(38, 36, 40, 0.5) 100%);
    z-index: 2;
}

/* Le contenu (Texte et Boutons) */
.hero-content {
    position: relative; /* Pour passer au-dessus de l'image et de l'overlay */
    z-index: 3; /* Le niveau le plus haut */
    padding: 0 20px;
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    /* Double ombre pour maximiser le contraste */
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.7); 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    font-weight: 500; /* Rend la police très légèrement plus épaisse */
    text-shadow: 0 2px 10px rgba(0,0,0,0.9); 
}

/* --- SECTION CARTE --- */
.menu-section { 
    padding: 40px 20px 60px; /* Une petite marge de 20px sur les côtés pour décoller du bord de l'écran */
    max-width: 1400px; /* Permet de s'étendre généreusement tout en gardant une limite élégante sur très grand écran */
    margin: 0 auto; /* Centre la section entière au milieu de la page */
}

/* Le grand conteneur blanc de la catégorie */
.menu-category-full { 
    margin-bottom: 50px; 
    background-color: #ffffff; 
    padding: 40px; 
    border-radius: 8px; /* Les bords arrondis sont de retour pour une finition soignée */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Le titre reste fièrement en haut et centré */
.category-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-description {
    text-align: center; 
    margin-bottom: 30px; 
    font-style: italic; 
    color: #4a484c; 
    margin-top: -15px;
}
/* Le sous-conteneur qui place l'image et la grille côte à côte */
.category-body {
    display: flex;
    gap: 50px;
    align-items: center; /* NOUVEAU : Centre parfaitement l'image verticalement par rapport aux plats */
}

/* Gère l'inversion de l'image (à droite) pour un rythme harmonieux */
.category-body.img-right {
    flex-direction: row-reverse;
}

/* Style de la grande image latérale */
.category-img {
    flex: 1;
    min-width: 300px;
    max-width: 420px; 
    height: 500px;
    object-fit: cover; 
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Grille interne pour les plats qui prendra tout l'espace restant */
.menu-grid { 
    flex: 2; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/* Un alignement classique et épuré pour chaque ligne de plat */
.menu-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline;
    border-bottom: 1px dashed #b5b1b4; 
    padding-bottom: 10px; 
    gap: 15px;
}

.menu-item-info h4 { font-size: 1.1rem; color: var(--dark-color); margin-bottom: 3px; }
.menu-item-info p { font-size: 0.90rem; color: #4a484c; } 
.menu-price { font-weight: bold; color: var(--primary-color); font-size: 1.15rem; white-space: nowrap; }

/* RÈGLE RESPONSIVE : Sur petit écran (téléphone/tablette) */
@media (max-width: 900px) {
    .menu-section {
        padding: 20px 10px 40px; /* Marges réduites sur mobile */
    }
    .menu-category-full {
        padding: 30px 20px;
    }
    .category-body, .category-body.img-right {
        flex-direction: column;
        align-items: center; /* Centre également l'image horizontalement sur mobile */
        gap: 25px;
    }
    .category-img {
        max-width: 100%;
        width: 100%;
        height: 280px; 
    }
}
/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 5% 30px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}
.footer-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.2rem; }
.footer-col p { color: var(--light-color); margin-bottom: 5px; }

/* --- ICONE RESEAU SOCIAL --- */
.social-icon {
    display: inline-block;
    margin-top: 10px;
    color: var(--light-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor; /* Permet à l'icône d'hériter de la couleur du texte */
    vertical-align: middle;
}

.social-icon:hover {
    color: var(--primary-color); /* S'illumine avec votre violet prune au survol */
    transform: translateY(-2px);
}

.copyright{
    text-align: center; 
    margin-top: 30px; 
    border-top: 1px solid #555; 
    padding-top: 20px;
}

.about-content { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
    flex-wrap: wrap; /* Important pour que l'image passe dessous sur mobile */
}

.about-text {
    flex: 1;
    min-width: 300px;
}

/* Style appliqué directement à la balise img */
.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 400px; /* On fixe la hauteur pour l'esthétique */
    object-fit: cover; /* L'image remplit le cadre sans déformation */
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- MENU BURGER --- */
.menu-toggle {
    display: none; /* Caché sur ordinateur par défaut */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

/* Le style des 3 barres du bouton */
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    transition: all 0.3s ease-in-out;
}

/* --- RESPONSIVE DESIGN (Téléphones et petites fenêtres) --- */
@media (max-width: 768px) {
    /* On affiche le bouton burger */
    .menu-toggle {
        display: flex;
    }

    /* On force le titre à rester sur une seule ligne */
    .logo {
        white-space: nowrap; 
        font-size: 1.3rem; /* Légèrement plus petit pour éviter qu'il ne touche les bords */
    }

    /* On cache la barre de navigation et on la positionne en dessous du header */
    nav {
        position: absolute;
        top: 100%; /* Se place juste en dessous du header */
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        display: none; /* Complètement caché par défaut sur mobile */
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }

    /* Cette classe "active" sera ajoutée par le JavaScript lors du clic */
    nav.active {
        display: block; 
    }

    /* On aligne les liens de haut en bas */
    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    /* On espace un peu plus les boutons pour pouvoir cliquer facilement avec le doigt */
    nav ul li {
        margin: 15px 0;
    }
}

