/* Variables CSS pour les couleurs de la charte graphique [cite: 6] */
:root {
    --color-primary-light-beige: #f8edcc; /* Beige clair [cite: 10] */
    --color-primary-dark-green: #0e4f4a; /* Vert foncé [cite: 11] */
    --color-primary-teal: #17b398; /* Bleu-vert [cite: 12] */
    --color-primary-orange: #f47322; /* Orange pour les accents/boutons  */

    --color-secondary-black: #000000; /* Noir [cite: 15] */
    --color-secondary-yellow: #f5c101; /* Jaune [cite: 16] */
    --color-secondary-white: #ffffff; /* Blanc [cite: 17] */

    /* Utilisation des variables pour les rôles */
    --primary-color: var(--color-primary-orange); /* Couleur principale pour les CTA, etc. */
    --secondary-color: var(--color-primary-dark-green); /* Couleur principale pour le texte des titres */
    --light-bg: var(--color-primary-light-beige); /* Arrière-plan clair */
    --dark-bg: var(--color-primary-dark-green); /* Arrière-plan foncé (footer, etc.) */
    --text-light: var(--color-secondary-white);
    --text-dark: var(--color-secondary-black);
    --border-color: #eee; /* Une couleur de bordure neutre */
}

/* Base styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block; /* Pour que la bordure ne prenne pas toute la largeur */
    width: fit-content; /* S'adapte au contenu */
    margin-left: auto;
    margin-right: auto;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--color-secondary-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Espace entre logo et nav */
}

.logo img {
    height: 70px; /* Logo plus grand */
    width: auto;
}

.nav ul {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur mobile */
    justify-content: center;
    gap: 20px;
}

.nav a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* GloriaFood Button Styling */
.glf-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
}

.glf-button:hover {
    background-color: #e06c00; /* Une nuance légèrement plus foncée */
    text-decoration: none;
}

.hero-order-button, .menu-order-button, .compose-order-button {
    margin-top: 20px;
    font-size: 1.1em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/image-hero.jpg') no-repeat center center/cover; /* Nouvelle image pour le hero */
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.hero-section .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Sections générales */
section {
    padding: 60px 0;
    background-color: var(--color-secondary-white);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section:nth-of-type(odd) { /* Pour alterner les couleurs de fond */
    background-color: var(--light-bg);
}


/* About Section */
.about-section .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.about-section .about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-section .about-text {
    max-width: 700px;
}

/* Compose Poke Section */
.compose-poke-section {
    text-align: center;
}

.compose-poke-section .compose-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.compose-poke-section .poke-composition-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.compose-poke-section .compose-text {
    max-width: 700px;
}


/* Hours Section */
.hours-section .hours-content {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}

/* Info Slider Section */
.info-slider-section {
    background-color: var(--color-primary-teal); /* Couleur de fond pour le slider [cite: 12] */
    color: var(--text-light);
    text-align: center;
    padding: 25px 0; /* Plus petit padding pour le slider */
    margin-bottom: 0; /* Pas de marge en dessous du slider */
    box-shadow: none; /* Pas d'ombre pour le slider */
}

.info-slider-section h2 {
    color: var(--text-light);
}

.slider-container {
    position: relative;
    /* height: 60px; */ /* <--- Commentez ou supprimez cette ligne */
    min-height: 60px; /* <--- Ajoutez ceci : une hauteur minimale, mais pas fixe */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    width: 90%;
    max-width: 700px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-size: 1.1em;
    font-weight: 600; /* Rendre le texte plus lisible */
}

.slider-item.active {
    opacity: 1;
}

/* Menu Overview Section */
.menu-overview-section {
    text-align: center;
}

/* Contact Section */
.contact-section .contact-info {
    text-align: center;
}

.contact-section .map-placeholder {
    margin-top: 30px;
    background-color: #eee;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col ul {
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer .language-select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--color-secondary-white);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer .copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer .copyright a {
    color: var(--primary-color);
}

/* Media Queries pour la responsivité */

/* Tablettes et écrans plus grands */
@media (min-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav ul {
        flex-wrap: nowrap;
    }

    .hero-section h1 {
        font-size: 3.5em;
    }

    .hero-section .subtitle {
        font-size: 1.4em;
    }

    .about-section .about-content,
    .compose-poke-section .compose-content {
        flex-direction: row;
        text-align: left;
    }

    .about-section .about-image,
    .compose-poke-section .poke-composition-image {
        max-width: 45%;
    }

    .footer .footer-grid {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
}

/* Ordinateurs de bureau */
@media (min-width: 1024px) {
    .hero-section {
        padding: 120px 20px;
    }

    .hero-section h1 {
        font-size: 4em;
    }

    .about-section .about-content,
    .compose-poke-section .compose-content {
        gap: 50px;
    }

    .about-section .about-image,
    .compose-poke-section .poke-composition-image {
        max-width: 40%;
    }
}

/* Ajouts/Modifications pour la responsivité de l'Info Slider */
@media (max-width: 768px) {
    .info-slider-section .container {
        padding: 15px; /* Ajuste le padding pour éviter que le texte ne colle aux bords */
    }

    .slider-container {
        /* Pas besoin de height ici, min-height est suffisant */
        height: auto; /* Permet au conteneur de s'adapter à la hauteur du contenu */
        /* Assurez-vous que white-space: normal; est bien appliqué, si ce n'est pas déjà le cas */
        white-space: normal;
    }

    .slider-item {
        position: relative; /* Les éléments du slider doivent être en flux normal sur mobile */
        width: 100%; /* Prend toute la largeur disponible */
        max-width: none; /* Pas de max-width qui empêcherait de prendre 100% */
        opacity: 1; /* S'assure que le texte est toujours visible */
        transition: none; /* Désactive la transition d'opacité pour simplifier sur mobile si désiré */
        text-align: center; /* Centre le texte */
        padding: 0 10px; /* Ajoute un petit padding interne */
        box-sizing: border-box; /* Inclut le padding dans la largeur/hauteur */
    }

    .slider-item p {
        font-size: 1em; /* Ajuste la taille de police. 1em est la taille par défaut du corps. */
        line-height: 1.5; /* Espacement des lignes pour la lisibilité */
        margin-bottom: 0; /* Pas de marge en bas des paragraphes dans le slider */
    }
}

@media (max-width: 480px) {
    .slider-item p {
        font-size: 0.9em; /* Légèrement plus petit pour les très petits écrans */
    }
}