/* --- 1. VARIABLES ET RÉINITIALISATION --- */
:root {
    /* Couleurs principales DIFFA (Thème Bordeaux et Crème/Marron) */
    --color-primary: #8B0000; /* Rouge Bordeau/Marron pour l'élégance */
    --color-secondary: #D4A373; /* Beige/Crème (Accent) */
    --color-background: #E9DAC1; /* Beige/Marron clair terreux */
    --color-text: #333333; /* Texte sombre */
    --color-light: #FFFFFF; /* Blanc pur */
    
    /* Polices */
    --font-heading: 'Georgia', serif; 
    --font-body: 'Helvetica Neue', sans-serif;
}

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

/* --- 2. TYPOGRAPHIE --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary); /* Rouge Bordeau */
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary); /* Rouge Bordeau */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary); /* Crème */
}

/* --- 3. EN-TÊTE ET NAVIGATION --- */
header {
    background-color: var(--color-light);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    color: var(--color-primary); /* Rouge Bordeau */
    font-size: 2em;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.8em;
    color: var(--color-text);
    margin-top: -5px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul a {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 0;
    position: relative;
}

nav ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary); /* Crème */
    transition: width 0.3s ease-in-out;
}

nav ul a:hover::after {
    width: 100%;
}

/* --- 4. BOUTONS (Appels à l'action) --- */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 15px;
    transition: background-color 0.3s, transform 0.2s;
}

.button.primary {
    background-color: var(--color-primary); /* Rouge Bordeau */
    color: var(--color-light);
    border: 2px solid var(--color-primary);
}

.button.primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.button.secondary {
    background-color: transparent;
    color: var(--color-primary); /* Rouge Bordeau */
    border: 2px solid var(--color-primary);
}

.button.secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.button.large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* --- 5. STRUCTURES PRINCIPALES --- */
main {
    padding-top: 0;
}

section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 6. SECTION BANNIÈRE (HERO) --- */
.hero-banner {
    background: url('') no-repeat center center/cover;
    height: 60vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(139, 0, 0, 0.5); /* Assombrissement léger Bordeau */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    color: var(--color-light);
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.cta-group {
    margin-top: 30px;
}

/* --- 7. PRÉSENTATION ET MISE EN AVANT --- */
.presentation {
    text-align: center;
}

.menu-highlight {
    background-color: var(--color-light); /* Blanc pur pour contraster */
    display: flex;
    align-items: center;
    gap: 50px;
    border-top: 1px solid #eee;
    padding: 100px 5%;
    border-radius: 8px; 
    margin-bottom: 50px;
}

.menu-highlight .content {
    flex: 1;
    text-align: left;
}

.menu-highlight img { 
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- 8. CONTACT ET HORAIRES --- */
.contact-info {
    background-color: var(--color-secondary); /* Crème (couleur d'accentuation) */
    color: var(--color-text);
    text-align: center;
    display: flex;
    justify-content: space-around;
    gap: 40px;
    padding: 60px 5%;
}

.contact-card {
    flex: 1;
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hours-card {
    flex: 1;
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--color-primary); /* Rouge Bordeau */
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 250px;
    margin: 15px auto;
}

.contact-info li {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

.phone-number, .address {
    font-weight: bold;
    margin-top: 15px;
}

/* --- 9. PIED DE PAGE --- */
footer {
    background-color: var(--color-primary); /* Rouge Bordeau */
    color: var(--color-light);
    text-align: center;
    padding: 20px 5%;
    font-size: 0.9em;
}

footer a {
    color: var(--color-light);
    margin: 0 10px;
}

footer a:hover {
    color: var(--color-secondary); /* Crème */
}

/* --- 10. STYLES SPÉCIFIQUES POUR LA CARTE (carte.html) --- */

.menu-list {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.menu-item {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
}

.menu-item h4 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.dish-item {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
    position: relative; /* Pour positionner le prix */
}

.dish-item h4 {
    color: var(--color-text);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.dish-item .price {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.1em;
    position: absolute; /* Permet d'aligner le prix à droite */
    right: 0;
    top: 15px; 
}


/* --- 11. RESPONSIVE SIMPLE (Pour mobiles) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px 10px;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }
    
    .menu-list {
        flex-direction: column;
        gap: 20px;
    }

    .menu-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-highlight .content,
    .menu-highlight img {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .contact-info {
        flex-direction: column;
    }
    
    .contact-card, .hours-card {
        margin-bottom: 20px;
    }
}
/* --- Nouveaux styles pour les images de la carte --- */

/* Conteneur principal qui gère l'alignement des images */
.menu-image-container {
    max-width: 1000px; 
    margin: 30px auto 40px auto; 
    display: flex; /* Active Flexbox pour mettre les éléments côte à côte */
    gap: 15px; /* Espace entre les images */
    justify-content: center; /* Centre les images si moins de trois */
}

/* Style appliqué à chaque image individuelle */
.menu-image {
    width: 100%; /* Sera surchargé par flex-basis si nécessaire */
    flex-basis: calc(33.33% - 10px); /* Donne 1/3 de la largeur moins l'espace de gap */
    height: 250px; /* Hauteur fixe pour l'uniformité visuelle */
    object-fit: cover; /* Assure que l'image couvre la zone sans déformation */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style de base pour les sections */
.menu-section {
    padding-top: 40px; 
}


/* --- RESPONSIVE : Pour les mobiles, remettre les images en colonne --- */
@media (max-width: 768px) {
    .menu-image-container {
        flex-direction: column; /* Les images repassent en colonne */
        gap: 20px;
    }
    
    .menu-image {
        flex-basis: 100%; /* Chaque image prend toute la largeur */
        height: 200px; /* Réduit la hauteur sur mobile */
    }
}