/* Réinitialisation des marges et padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* En-tête et bannière */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner {
    width: 100%;
    min-height: 180px; /* Ajuste selon la hauteur souhaitée */
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* ou une couleur de fond si tu veux */
}

.banner img {
    width: 100%;
    display: block;
    height: auto;
    max-height: 250px;
    object-fit: cover;
}

/* Menu principal (PC) */
nav {
    position: absolute;
    top: 120px;
    left: -23px; /* <-- Corrige ici */
    width: 100%;
    display: flex;
    justify-content: center;
    background: none;
    padding: 0;
    z-index: 2;
}

nav a {
    margin: 0 30px;
    padding: 0 10px;
    font-size: 2.2em;
    text-decoration: none;
    color: #e67e22;
    font-weight: bold;
    white-space: nowrap;
}

nav a.special-gap {
    margin-left: 190px;
}

/* Bouton burger */
.burger {
    display: none;
    position: absolute;
    top: 82px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #e67e22;
    z-index: 10;
    cursor: pointer;
    transition: color 0.2s;
}
.burger:hover {
    color: #b35400;
}

/* --- DEBUT DES MODIFICATIONS --- */

/* Ajout d'une règle pour pousser le contenu principal vers le bas en mode mobile */
body.mobile-fixed-header {
    padding-top: 12vh; /* Hauteur de l'en-tête fixe (12% de la hauteur de l'écran) */
}

/* Menu burger (mobile) */
@media (max-width: 900px) {
    body {
        padding-top: 15vh; /* Réduit de 25vh à 15vh */
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: white;
    }

    .banner {
        width: 100%;
        min-height: 0;
        padding: 0; /* Supprime le padding */
        margin: 0; /* Supprime la marge */
    }

    .banner img {
        width: 100%;
        max-height: 15vh; /* Réduit de 25vh à 15vh */
        object-fit: cover;
        display: block; /* Supprime l'espace blanc en dessous de l'image */
    }

    .burger {
        position: fixed;
        top: calc(7vh - 28px); /* Ajusté en fonction de la nouvelle hauteur */
        right: 20px;
        font-size: 2.5em;
        background: transparent; /* Rend le fond transparent */
        padding: 5px 15px;
        border-radius: 5px;
        display: block;
        z-index: 1001;
        color: #e67e22; /* S'assure que l'icône reste visible */
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1002; /* Au-dessus du burger */
    }

    nav.open {
        transform: translateY(0);
    }

    nav a {
        margin: 15px 0;
        font-size: 1.8em;
    }

    nav a.special-gap {
        margin-left: 0;
    }
}

/* Titres principaux harmonisés */
.menu h1,
.category-page h1,
.contact h1 {
    color: #e67e22;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Section d'accueil (hero) */
.hero {
    background-color: #1a7e8b;
    color: white;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-image: linear-gradient(rgba(244, 137, 44, 0.8), rgba(203, 156, 126, 0.8)), url('../images/patisserie.JPG');
    background-size: cover;
    background-position: center;
}
.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}
.btn {
    background-color: white;
    color: #e67e22;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid white;
}
.btn:hover {
    background-color: #d35400;
    color: white;
    border: 2px solid #d35400;
}

/* Section "À propos" */
.about {
    padding: 50px 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
}

/* Section "Nos produits" */
.menu {
    padding: 50px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #f9f9f9;
}
.product {
    margin: 20px;
    text-align: center;
    width: 200px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.product img {
    width: 100%;
    border-radius: 5px;
    height: 150px;
    object-fit: cover;
}
.product h2 {
    color: #e67e22;
    margin: 10px 0;
}
.product p {
    color: #d35400;
    font-weight: bold;
}

/* Section "Contact" */
.contact {
    padding: 50px 5%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
}

/* Pied de page */
footer {
    background-color: #e67e22;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* header {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    } */ /* <-- SUPPRIMEZ OU METTEZ EN COMMENTAIRE CE BLOC */
    nav a {
        margin: 10px;
        display: block;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1.2em;
    }
    .menu {
        flex-direction: column;
        align-items: center;
    }
    .product {
        width: 80%;
        margin: 15px auto;
    }
    .contact-form {
        padding: 15px;
    }
    .product {
        width: 150px;
    }
    .product a {
        height: 120px;
    }
    .category {
        width: 90%;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-main {
        flex-direction: column;
    }
    .main-image img {
        max-height: 300px;
    }
    .thumbnail-images {
        justify-content: center;
    }
    .story-content, .expertise-content {
        flex-direction: column;
    }
    .team-members, .values-content, .commitments, .events, .testimonials, .jobs {
        flex-direction: column;
        align-items: center;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Style du formulaire */
.contact-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e67e22;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.form-group textarea {
    resize: vertical;
}

/* Galerie d'images et produits */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: white;
}
.product a {
    display: block;
    height: 150px;
    overflow: hidden;
}
.product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product img:hover {
    transform: scale(1.05);
}
.product h3 {
    color: #e67e22;
    margin: 10px 0 5px;
    font-size: 1.1em;
}
.product .price {
    color: #d35400;
    font-weight: bold;
    margin-bottom: 5px;
}
.product .description {
    color: #666;
    font-size: 0.9em;
    padding: 0 10px 15px;
    margin: 0;
}

/* Style des catégories */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: white;
}
.category {
    width: 250px;
    margin: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.category:hover {
    transform: translateY(-5px);
}
.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.category h2 {
    color: #e67e22;
    margin: 15px 0 10px;
    font-size: 1.5em;
}
.category p {
    color: #666;
    padding: 0 15px 20px;
    margin: 20px;
    font-size: 0.95em;
}

/* Style de la section carousel */
.carousel-section {
    padding: 30px 5%;
    background-color: white;
    text-align: center;
}
.carousel-section h2 {
    color: #e67e22;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.splide {
    margin: 0 auto;
    max-width: 1200px;
}
.splide__slide {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    background-color: #f9f9f9;
}
.splide__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.splide__arrow {
    background: rgba(230, 126, 34, 0.8) !important;
    width: 40px !important;
    height: 40px !important;
}
.splide__arrow svg {
    fill: white;
}
.splide__pagination__page {
    background: #ccc;
}
.splide__pagination__page.is-active {
    background: #e67e22;
}
.splide__slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.splide__slide img {
    transition: transform 0.3s ease;
}
.splide__slide a:hover img {
    transform: scale(1.05);
}
.splide__slide a {
    cursor: pointer;
}

/* Style général de la page produit */
.product-page {
    padding: 20px 5%;
    background-color: #f9f9f9;
}
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.product-images {
    flex: 1;
    min-width: 300px;
}
.main-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.thumbnail.active {
    border-color: #e67e22;
}
.product-details {
    flex: 1;
    min-width: 300px;
}
.product-details h1 {
    color: #e67e22;
    margin-bottom: 10px;
    font-size: 2em;
}
.price {
    color: #d35400;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}
.description {
    margin-bottom: 20px;
    line-height: 1.6;
}
.product-info h3 {
    color: #e67e22;
    margin-top: 20px;
}
/* Carousel de suggestions */
.suggestions-carousel {
    padding: 30px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.suggestions-carousel h2 {
    color: #e67e22;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.splide__slide {
    padding: 10px;
    text-align: center;
}
.splide__slide a {
    display: block;
    text-decoration: none;
    color: #333;
}
.splide__slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
/* Responsive */
@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
    }
    .main-image img {
        max-height: 300px;
    }
    .thumbnail-images {
        justify-content: center;
    }
}
/* Style de la page catégorie */
.category-page {
    padding: 20px 5%;
    background-color: #f9f9f9;
}
.category-page h1 {
    color: #e67e22;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
}
.category-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2em;
    color: #666;
}
/* Grille de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
/* Carte de produit cliquable */
.product-card {
    text-decoration: none;
    color: #333;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.product-image {
    height: 200px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-info {
    padding: 15px;
}
.product-info h2 {
    color: #e67e22;
    margin-bottom: 5px;
    font-size: 1.3em;
}
.product-info .price {
    color: #d35400;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.product-info .short-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}
/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== PAGE À PROPOS ===== */
.story-section, .team-section, .expertise-section, .values-section,
.commitments-section, .gallery-section, .events-section, .testimonials-section, .join-section {
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
}
.story-section h1, .team-section h2, .expertise-section h2, .values-section h2,
.commitments-section h2, .gallery-section h2, .events-section h2,
.testimonials-section h2, .join-section h2 {
    color: #e67e22;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}
/* Section "Notre Histoire" */
.story-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}
.story-text {
    flex: 1;
}
.story-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1em;
}
.story-image {
    flex: 1;
}
.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Section "Notre Savoir-Faire" */
.expertise-content {
    display: flex;
    align-items: center;
    gap: 30px;
}
.expertise-text {
    flex: 1;
}
.expertise-text p {
    line-height: 1.6;
    font-size: 1.1em;
}
.expertise-image {
    flex: 1;
}
.expertise-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Section "Nos Valeurs" */
.values-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.value {
    text-align: center;
    max-width: 300px;
}
.value img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}
.value h3 {
    color: #e67e22;
    margin-bottom: 10px;
}
.value p {
    color: #666;
    line-height: 1.6;
}
/* Section "Nos Engagements" */
.commitments {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.commitment {
    text-align: center;
    max-width: 300px;
}
.commitment img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}
.commitment h3 {
    color: #e67e22;
    margin-bottom: 10px;
}
.commitment p {
    color: #020101;
    line-height: 1.6;
}
/* Section "Notre Boulangerie" */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
/* Section "Événements" */
.events {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.event {
    max-width: 300px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.event h3 {
    color: #e67e22;
    margin-bottom: 10px;
}
.event p {
    color: #666;
}
/* Section "Témoignages" */
.testimonials {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial {
    max-width: 300px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.6;
}
.testimonial cite {
    font-weight: bold;
    color: #e67e22;
    font-style: normal;
}
/* Section "Rejoignez-nous" */
.jobs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.job {
    max-width: 300px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.job h3 {
    color: #e67e22;
    margin-bottom: 10px;
}
.job p {
    color: #666;
}
/* Bouton "Postuler" */
.btn {
    display: inline-block;
    background-color: #e67e22;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 0 auto;
    text-align: center;
}
.btn:hover {
    background-color: #d35400;
}
/* Style du conteneur de la carte */
.map-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(20%) contrast(1.2) opacity(0.9);
    transition: filter 0.3s;
}
.map-container iframe:hover {
    filter: none;
}
.gallery-section {
    text-align: center;
    padding: 50px 5%;
}

.gallery-section .gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 1000px; /* Augmente la largeur maximale */
}

.gallery-section .gallery img {
    width: 90%; /* Augmente la largeur de l'image */
    height: 400px; /* Augmente la hauteur */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-section .gallery img:hover {
    transform: scale(1.02);
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .gallery-section .gallery img {
        width: 100%;
        height: 300px; /* Hauteur adaptée pour mobile */
    }
}