
.swiper-container {
    width: 100%;
    box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
    margin: 0 auto; /* Centrer le conteneur si nécessaire */
    overflow: hidden; /* Empêche le débordement du contenu */
}

.swiper-slide {
    /* Enlever les marges ou padding qui pourraient causer le débordement */
    margin: 0;
    padding: 0;
}

.swiper-pagination {
    width: 100%;
    text-align: center;
    position: relative;
    margin-top: 10px; /* Ajustez selon vos besoins */
}

.swiper-button-prev, .swiper-button-next {
    color:#fff;
}



.tuile-produit {
    background-color: #333;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    color: #fff;
    font-family: 'Gilda display', serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
    width: 300px;
    min-height: 450px;
    box-sizing: border-box;
}

.tuile-produit:hover {
    transform: scale(1.05);
}

/* Réduire l'espacement entre Titre et Poids */
.tuile-produit .details-poids-titre {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 25px;
}

/* Ligne de séparation entre Poids/Titre et Achat/Vente */
.tuile-produit .separator {
    margin: 10px 0;
    border-top: 1px solid #777;
}

.tuile-produit h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #f1f1f1;
}

.tuile-produit .img-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

/* Appliquer le halo lumineux aux images de pièces rondes */
.tuile-produit .img-container img.img-a, 
.tuile-produit .img-container img.img-r {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.2),
                0 0 20px 10px rgba(255, 255, 255, 0.1),
                0 0 30px 20px rgba(255, 255, 255, 0.05);
    transition: opacity 2s ease-in-out;
    animation: fadeInOut 6s infinite alternate;
}

/* Images non rondes (8 derniers produits) */
.tuile-produit .img-container img.non-round-img {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    border-radius: 0;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.2),
                0 0 20px 10px rgba(255, 255, 255, 0.1),
                0 0 30px 20px rgba(255, 255, 255, 0.05);
    transition: none;
    animation: none;
}

/* Image avant (img_a) */
.tuile-produit .img-container img.img-a {
    z-index: 2;
    opacity: 1;
    animation: fadeInOutA 8s infinite;
}

/* Image arrière (img_r) */
.tuile-produit .img-container img.img-r {
    z-index: 1;
    opacity: 0;
    animation: fadeInOutR 8s infinite;
}

/* Animation pour img_a (image avant) */
@keyframes fadeInOutA {
    0%, 40% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Animation pour img_r (image arrière) */
@keyframes fadeInOutR {
    0%, 50% {
        opacity: 0;
    }
    60%, 100% {
        opacity: 1;
    }
}

.tuile-produit p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #f1f1f1;
}

.tuile-produit .prix {
    font-size: 1.5em;
    margin: 10px 0;
}

.tuile-produit .details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #777;
    font-size: 0.9em;
    color: #ccc;
}

.tuile-produit .achat, .tuile-produit .vente {
    font-size: 1em;
    font-weight: bold;
}



/* Styles pour le conteneur Swiper */
.swiper-container {
    width: 100%;
    height: auto;
}

/* Styles pour les slides */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles pour la navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

/* Styles pour la pagination */
.swiper-pagination-bullet {
    background: #fff;
}
