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

body {
    font-family: Arial, sans-serif;
    background-color: #503939;
    line-height: 1.6;
}

header, footer {
    text-align: center;
    padding: 1em;
    background-color: #333;
    color: white;
}

footer {
    background-color: #bbb2b2;
    padding: 20px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7); /* Améliore la lisibilité */
    color: white;
    padding: 15px;
    text-align: center;
}

#cookie-banner a {
    color: #4CAF50;
}

#cookie-banner button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* Carrousel */
.carousel {
    width: 80%;  /* Limite la largeur du carrousel à 80% de la page */
    max-width: 600px;  /* Fixe une largeur maximale */
    margin: 0 auto;  /* Centre le carrousel */
    height: 200px;  /* Hauteur fixe pour les images du carrousel */
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;  /* Les images prennent toute la largeur du conteneur */
    height: 100%;
    object-fit: contain; /* Ajuste l'image sans la déformer */
    object-position: center;  /* Centre l'image */
}

/* Galerie de produits */
.product-grid {
    display: flex;
    justify-content: space-around;
    gap: 1em;
    flex-wrap: wrap;
}

.product-item img {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: contain;
}

.product-item img:hover {
    width: 300px;
    max-width: 100%;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
