/* ========== Style global ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
}

body {
    background-color: #9B1C2F;
    color: #5C5C5C;
    text-align: center;
    padding: 0 10px;
}

/* ========== Bannières latérales ========== */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 3.5%;
    background-color: #9B1C2F;
    z-index: -1;
}
body::before { left: 0; }
body::after { right: 0; }

/* ========== Cadre central beige ========== */
.cadre-total {
    background-color: #D9CBA7;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ========== En-tête ========== */
header {
    background-color: #9B1C2F;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.en-tete {
    position: relative;
    height: 80px;
    padding-bottom: 15px;
}

.logo-gauche {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.logo {
    width: 150px;
    height: auto;
    opacity: 0;
    animation: fadeInLogo 1.5s ease-out forwards 1s;
    position: relative;
    top: 32px;
    max-width: 150px;
}

/* Titre */
.titre-centre {
    font-family: 'Dancing Script', cursive;
    font-size: 3em;
    color: #F1E6D6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    opacity: 0;
    animation: fadeInDown 1.5s ease-out forwards 1s;
}

/* ========== Animations ========== */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translate(-50%, -150%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeInLogo {
    0% { opacity: 0; transform: translateX(-100%); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ========== Navigation dans l'en-tête ========== */
header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

header nav a {
    color: #F1E6D6;
    text-decoration: none;
    font-size: 1.2em;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    margin: 10px 20px;
    transition: color 0.3s ease, text-decoration 0.3s ease, transform 0.3s ease;
}

header nav a.active,
header nav a:hover {
    text-decoration: underline;
    color: #FFF;
}

/* ========== Sections ========== */
section {
    background-color: #F1E6D6;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-rappel {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0;
}

.rappel-contour {
    background-color: #F1E6D6;
    border-radius: 10px;
    padding: 20px;
    border: 3px solid #f5f5f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto;
}

/* Texte général */
p, ul, .rappel-contour p {
    color: #5C5C5C;
    font-size: 1.2em;
    font-family: 'Roboto', Arial, sans-serif;
    margin-bottom: 10px;
    list-style-type: none;
}

/* ========== Liens légaux (mentions légales) ========== */
.liens-legaux .rappel-contour p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.liens-legaux .rappel-contour a {
    font-size: 0.9em;
}

/* Titres */
section h1,
section h2 {
    color: #9B1C2F;
    text-shadow: 0 0 20px #f5f5dc;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 10px;
}
section h1 { font-size: 1.8em; }
section h2 { font-size: 1.5em; }

/* Liens */
.section-rappel a,
section li a {
    color: #9B1C2F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-rappel a:hover,
section li a:hover {
    color: #800020;
    text-decoration: underline;
}

.section-rappel a[href="menu.php"] {
    font-weight: bold;
}

/* Images */
section img,
.photo {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}
.photo {
    border: 3px solid #9B1C2F;
}

/* Classes spéciales */
.plat, .frais, .qualite, .prix, .artisanal, .desserts, .mesure, .important, .contact {
    color: #9B1C2F;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}
.espacement-menu {
    margin-bottom: 30px;
}

/* ========== Liens réseaux sociaux ========== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}


/* ========== Footer ========== */
footer {
    background-color: #9B1C2F;
    color: #F1E6D6;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    font-family: 'Lora', serif;
    line-height: 1.5;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}
footer p {
	color: #F1E6D6;
    font-size: 0.9em;
    margin: 0;
    padding: 0;
}

/* ========== Boutons Connexion / Inscription ========== */
.boutons-connexion-inscription {
    position: absolute;
    top: 50px;
    right: 30px;
    display: flex;
    gap: 5px;
}

.boutons-connexion-inscription a {
    background-color: #F1E6D6;
    color: #9B1C2F;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1.5px solid #9B1C2F;
}

.boutons-connexion-inscription a:hover {
    background-color: #9B1C2F;
    color: #F1E6D6;
    transform: scale(1.05);
}

.boutons-connexion-inscription span {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    color: #F1E6D6;
    padding: 6px 10px;
    align-self: center;
}

.boutons-connexion-inscription a.btn-logout {
    background-color: #F1E6D6;
    color: #9B1C2F;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    border: 1.5px solid #9B1C2F;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.boutons-connexion-inscription a.btn-logout:hover {
    background-color: #9B1C2F;
    color: #F1E6D6;
    transform: scale(1.05);
}

/* ========== Media Queries ========== */

/* Tablettes et petits écrans (max 1024px) */
@media (max-width: 1024px) {
    section { width: 80%; }
    section h1, section h2 { font-size: 1.6em; }
    p, ul, .rappel-contour p { font-size: 1.1em; }

    .en-tete {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        position: relative;
        height: auto;
    }

    .logo-gauche {
        position: static;
        transform: none;
        width: 120px;
        margin: 0;
    }

    .logo {
        width: 120px;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        animation: none;
    }

    .titre-centre {
        position: static;
        transform: none;
        font-size: 2.2em;
        text-align: center;
        margin: 0 auto;
        white-space: normal;
        max-width: 100%;
        opacity: 1;
        animation: none;
    }

    .boutons-connexion-inscription {
        position: static;
        display: flex;
        gap: 5px;
        margin-top: 10px;
        justify-content: center;
    }

    footer p { font-size: 0.85em; }
}

/* Petites tablettes / grands téléphones (max 768px) */
@media (max-width: 768px) {
    section { width: 90%; }
    .photo { max-height: 300px; object-fit: cover; }
    section h1, section h2 { font-size: 1.4em; }
    p, ul, .rappel-contour p { font-size: 1em; }

    .en-tete {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px; /* padding fluide */
        height: auto;
    }

    .logo-gauche { width: 120px; margin: 0; }
    .logo { width: 120px; }
    .titre-centre { font-size: 2.2em; margin: 0 auto; }

    footer p { font-size: 0.8em; }
}

/* Smartphones (max 480px) */
@media (max-width: 480px) {
    section {
        width: 100%;
        padding: 15px;
    }
    .photo {
        max-height: 200px;
        width: 100%;
        object-fit: cover;
        margin-bottom: 15px;
    }
    section h1, section h2 { font-size: 1.2em; }
    p, ul, .rappel-contour p { font-size: 0.9em; }
    footer p { font-size: 0.75em; }

    .en-tete {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        padding: 10px 0;
    }

    .logo-gauche {
        width: 100px;
        margin-bottom: 5px;
    }

    .logo {
        width: 100px;
        opacity: 1;
        animation: none;
    }

    .titre-centre {
        font-size: 2em;
        margin: 0 auto;
        white-space: normal;
        text-align: center;
        max-width: 90%;
        word-wrap: break-word;
        opacity: 1;
        animation: none;
    }

    .boutons-connexion-inscription {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }
}

/* ========== Bouton vers la page Suggestions ========== */

.lien-suggestions-wrap {
    margin-bottom: 0;
}

.section-rappel a.btn-suggestions {
    display: inline-block;
    background-color: #F1E6D6;
    color: #5C5C5C;
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    font-weight: 700;
    padding: 7px 20px;
    border: 2px solid #9B1C2F;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 3px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.fleche-suggestions {
    color: #9B1C2F;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-rappel a.btn-suggestions:hover {
    background-color: #F1E6D6;
    color: #9B1C2F;
    transform: scale(1.03);
    text-decoration: none;
}

.section-rappel a.btn-suggestions:hover .fleche-suggestions {
    color: #9B1C2F;
    transform: scale(1.25);
}
