@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --rouge-bordeaux: #721c24;
    --blanc-creme: #fdfbf7;
    --gris-anthracite: #333333;
    --or-discret: #cca052;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--blanc-creme);
    color: var(--gris-anthracite);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Navigation */
nav {
    background-color: var(--rouge-bordeaux);
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
    color: var(--blanc-creme);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover, nav a.actif {
    color: var(--or-discret);
    font-weight: bold;
}

/* Header & Logo */
header {
    text-align: center;
    padding: 3rem 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.page-titre {
    text-align: center;
    color: var(--rouge-bordeaux);
    font-size: 2.5rem;
    margin: 1rem 0 2rem 0;
}

/* Page Accueil */
.presentation {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    padding: 0 2rem;
}

.presentation p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.presentation .highlight {
    color: var(--rouge-bordeaux);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Page Nos Plats (Galerie) */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 0 15px 4rem 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.galerie img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.galerie img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Page Menu du Jour */
.menu-jour-container {
    background-color: #fff;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    padding: 3rem;
    border: 2px solid var(--rouge-bordeaux);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.menu-prix {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: var(--gris-anthracite);
    margin-bottom: 1rem;
}

.menu-date {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--rouge-bordeaux);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--or-discret);
}

.menu-contenu {
    font-size: 1.3rem;
}

.plat-principal {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--rouge-bordeaux);
    margin: 1.5rem 0;
    line-height: 1.4;
}

.etoiles {
    color: var(--or-discret);
    letter-spacing: 4px;
    margin: 1rem 0;
}

/* Page Notre Carte */
.carte-container {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.categorie-menu {
    margin-bottom: 3rem;
}

.categorie-titre {
    font-size: 2rem;
    color: var(--rouge-bordeaux);
    border-bottom: 2px solid var(--or-discret);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.menu-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.item-nom {
    font-weight: bold;
    color: var(--gris-anthracite);
}

.item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 10px;
}

.item-prix {
    font-weight: bold;
    color: var(--rouge-bordeaux);
}

.accompagnements {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.infos-legales {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.infos-legales h4 {
    color: var(--gris-anthracite);
    margin-bottom: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--gris-anthracite);
    color: var(--blanc-creme);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

/* --- Mode Smartphone (Responsive) --- */
@media (max-width: 600px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px; /* 12px d'espacement vertical, 20px horizontal */
        padding: 1rem 0.5rem;
    }

    nav a {
        margin: 0; /* On annule les marges de la version PC */
        font-size: 0.95rem; /* On réduit très légèrement la police */
    }
}

/* Le logo de secours caché sur écran */
.logo-impression-bas {
    display: none;
}

/* POUR IMPRESSION */

/* --- Version Impression --- */
@media print {
    @page {
        margin: 1cm;
    }

    body {
        background-color: #fff;
        /*color: #000;*/
        font-size: 10pt; /* On réduit encore un cheveu pour que toute la nourriture tienne sur la page 1 */
    }

    /* On cache le logo, la navigation et le footer */
    header, nav, footer {
        display: none !important;
    }

    .carte-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    .page-titre {
        display: none;
    }

    .categorie-menu {
        margin-bottom: 1rem; /* Marges réduites pour gagner de la place */
    }

    .categorie-titre {
        /*color: #000;*/
        border-bottom: 2px solid var(--or-discret);
        /* border-bottom: 2px solid #000;*/
        margin-bottom: 0.5rem;
        page-break-after: avoid;
    }

    .menu-item {
        page-break-inside: avoid;
        margin-bottom: 0.5rem;
    }

    /*.item-nom, .item-prix, .item-desc, .prix-multi, .accompagnements, .infos-legales {
        color: #000 !important;
    }*/

    .item-dots {
        /*border-bottom: 1px dotted #000;*/
    }

    /* LA CLASSE MAGIQUE POUR FORCER LE SAUT DE PAGE */
    .saut-de-page {
        page-break-before: always;
        break-before: page;
    }

/* LISERE AUTOUR DE LA PAGE */
/* Les boîtes physiques pour chaque page de la carte */
    .page-imprimee {
        border: 3px solid var(--rouge-bordeaux);
        padding: 10px;
        page-break-after: always;
        margin-bottom: 2rem;
    }

    .page-imprimee-interieur {
        border: 1px solid var(--or-discret);
        padding: 2rem;
        /* On s'assure que le cadre prenne toute la hauteur dispo */
        min-height: 85vh;
        box-sizing: border-box;
    }
/*FIN LISERE AUTOUR DE LA PAGE*/

/* On réveille le logo fantôme pour le menu du jour */
.logo-impression-bas {
    display: block !important;
    text-align: center;
    margin-top: 0.5rem; /* L'espace entre le cadre du menu et le logo */
}

.logo-impression-bas img {
    max-width: 220px; /* Taille modeste pour ne pas bouffer toute l'encre */
    height: auto;
}

}

/* FIN POUR IMPRESSION */



/* --- Gestion des descriptions et prix multiples --- */
.item-info {
    display: flex;
    flex-direction: column;
}

.item-desc {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    font-weight: normal;
    margin-top: 2px;
}

.prix-multi {
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--rouge-bordeaux);
    font-weight: bold;
}

/* On s'assure que tout s'aligne bien au centre verticalement */
.menu-item.complexe {
    align-items: center;
}
