/* Swiper container */
.team .swiper-container {
    margin: 0 auto; /* Centre le conteneur horizontalement */
    width: 80%;
    height: 500px;
    padding: 0 0 80px 0;
}

/* Swiper slides */
.team .swiper-slide {
    position: relative; /* Permet à .slide-content de suivre la hauteur de l’image */
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto; /* S'ajuste à l'image */
    height: auto; /* S'ajuste à l'image */
    max-width: 500px; /* Largeur max */
    max-height: 500px; /* Hauteur max */
}

/* Swiper slide images */
.team .swiper-slide img {
    position: relative;
    max-width: 100%; 
    max-height: 100%; 
    width: auto; /* Garde le ratio */
    height: auto; /* Garde le ratio */
    object-fit: contain; /* Évite la coupe de l'image */
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Texte (caché par défaut) */
.team .slide-content {
    position: absolute;
    bottom: 4%; /* Toujours à 20px du bas de l’image */
    left: 50%;
    transform: translateX(-50%); /* Centre horizontalement */
    width: calc(100% - 40px); /* Ajuste à l'image avec une marge */
    max-width: 90%; /* Empêche qu'il déborde trop */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Afficher le texte uniquement quand la slide est active */
.team .swiper-slide-active .slide-content {
    opacity: 1;
}


.team .slide-content h2 {
    color: var(--accent-color);
    font-weight: bold;
}

/* Media Queries pour responsivité */
@media screen and (max-width: 768px) {
    .team .swiper-slide {
        width: 100%;
    }
}


.team .swiper-pagination {
    margin-top: 35px;
    position: relative;
  }
  
  .team .swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 1;
    background-color: color-mix(in srgb, var(--accent-color2), transparent 50%);
  }
  
  .team .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
  } 