/* Styles généraux */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #85553e;
    color: white;
}

main {
    margin-top: 110px; /* par exemple si ta navbar fait 100px de haut */
    flex: 1;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #85553e;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Permet au footer de rester en bas */
}

.logo img {
    height: 115px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #d0b8a8;
    display: inline-block;
    text-align: center;
}

nav ul li a:hover {
    color: black;
}

/*----------------------------------------- Section contact -----------------------------------------*/
#contact {
    background-color: #d0b8a8;
    padding: 20px;
    border-radius: 15px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    flex: 1; /* Permet au formulaire de prendre l'espace restant */
}

#contact h2 {
    font-size: 24px;
    font-weight: bold;
    color: #23120c;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-size: 16px;
    color: #23120c;
}

form input, form textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    width: 100%;
}

form textarea {
    height: 150px;
}

button {
    background-color: #85553e;
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

button:hover {
    background-color: #6a3f2a;
}

/*----------------------------------------- Footer -----------------------------------------*/
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background: #23120c;
    color: white;
    width: 100%;
    margin-top: auto; /* Cela force le footer à se coller en bas */
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin: 0;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #d0b8a8;
    display: inline-block;
    text-align: center;
}

footer nav ul li a:hover {
    color: black;
}

/*----------------------------------------- Conteneur de l'image -----------------------------------------*/
.image-container {
    text-align: center;
    margin-bottom: 20px;
}

/*----------------------------------------- Image du label -----------------------------------------*/
.label-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

/*----------------------------------------- Section commune : actualités, label, histoire -----------------------------------------*/
section {
    background-color: #d0b8a8;
    padding: 20px;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px auto 50px auto;
    text-align: left;
    border: 2px solid #d0b8a8;
}

section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #23120c;
    margin-bottom: 15px;
}

section p {
    font-size: 16px;
    color: black;
    border-bottom: 2px dashed black;
    padding-bottom: 10px;
}

/*----------------------------------------- Grid container for products -----------------------------------------*/
.produits-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Crée 4 colonnes */
    gap: 15px; /* Espacement entre les éléments */
    padding: 20px;
    justify-content: center;
    text-align: center;
}

.produit img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.produit p {
    margin-top: 10px;
    font-size: 14px;
}

/*----------------------------------------- Adjust the grid layout for smaller screens -----------------------------------------*/
@media screen and (max-width: 768px) {
    .produits-container {
        grid-template-columns: repeat(2, 1fr); /* Crée 2 colonnes pour les écrans plus petits */
    }
}

/*----------------------------------------- Container pour les éléments avec label -----------------------------------------*/
.label-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.label {
    background-color: #d0b8a8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #85553e;
    max-width: 400px;
    width: 100%;
}

.label-title {
    font-size: 20px;
    font-weight: bold;
    color: #23120c;
    margin-bottom: 10px;
}

.label-description {
    font-size: 14px;
    color: #23120c;
}

/*----------------------------------------- Section histoire -----------------------------------------*/
#histoire {
    background-color: #d0b8a8;
    padding: 20px;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px auto 50px auto;
    text-align: left;
}

#histoire h2 {
    font-size: 24px;
    font-weight: bold;
}

#histoire p {
    font-size: 16px;
    color: black;
    border-bottom: 2px dashed black;
    padding-bottom: 10px;
}

/*----------------------------------------- Container Flexbox pour le texte et l'image -----------------------------------------*/
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.text {
    flex: 1;
    margin-right: 20px;
}

.image {
    flex: 1;
    text-align: center;
}

.image img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* -----------------------------------------Inverser l'ordre du texte et de l'image pour la deuxième section -----------------------------------------*/
.container.reverse {
    flex-direction: row-reverse;
}

/*----------------------------------------- Carousel -----------------------------------------*/
.carousel-container {
    width: 80%;
    max-width: 800px;
    height: 450px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border-radius: 10px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*----------------------------------------- Boutons -----------------------------------------*/
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/*----------------------------------------- Responsive Design -----------------------------------------*/
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li a {
        display: block;
        padding: 12px 25px;
        border-radius: 5px;
        background-color: #d0b8a8;
        color: white;
    }

    footer nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .container {
        flex-direction: column;
        text-align: center;
    }

    .text, .image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.produits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.produits-container img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/*----------------------------------------- Plan du site -----------------------------------------*/
#plan-site {
    background-color: #d0b8a8;
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#plan-site h2 {
    font-size: 28px;
    font-weight: bold;
    color: #23120c;
    margin-bottom: 20px;
}

#plan-site p {
    font-size: 18px;
    color: #23120c;
    margin-bottom: 10px;
}

#plan-site ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#plan-site ul li {
    margin: 10px 0;
}

#plan-site ul li a {
    color: #85553e;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #f1e4d1;
    transition: background-color 0.3s, color 0.3s;
    display: block;
    width: fit-content;
}

#plan-site ul li a:hover {
    background-color: #85553e;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*----------------------------------------- Responsive Design -----------------------------------------*/
@media screen and (max-width: 768px) {
    #plan-site {
        padding: 20px;
    }

    #plan-site h2 {
        font-size: 24px;
    }

    #plan-site ul li a {
        padding: 10px 20px;
    }
}
/*-----------------------------------------MENU BURGER -----------------------------------------*/
.burger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
    margin-right: 20px;
}

/*----------------------------------------- Menu caché sur mobile -----------------------------------------*/
@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #85553e;
        position: absolute;
        top: 110px; /* hauteur du header */
        right: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 1000;
    }

    nav ul.active {
        display: flex;
    }
}


