/* === SECTION STRUCTURE === */
.team-section {
  padding: var(--wp--preset--spacing--xxl) 0;
  max-width: 100% !important;
}

/* === CONTENEUR PRINCIPAL (Titre + Slider) === */
/* Remplacement du GRID défaillant par FLEX (Swiper-friendly) */
.team-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--m);
  margin-inline: auto;
}

/* Colonne gauche */
.team-title {
  flex: 0 0 260px; /* largeur stable comme la maquette */
}

.team-title h2 {
  color: #f74e7b;
  margin: 0;
  line-height: 1.2;
}

/* Colonne droite (slider) */
.team-slider-container {
  position: relative;
  flex: 1;
  min-width: 0; /* INDISPENSABLE pour éviter largeur = 0 sur mobile ! */
  overflow: visible;
}

/* === SLIDER === */
.team-slider {
  width: 100%;
  min-width: 0; /* sécurise Swiper */
}

/* === SLIDES === */
.swiper-slide {
  display: flex;
  justify-content: center;
}

.team-card {
  text-align: left;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  min-height: 150px; /* évite les collapses */
  background: #1e1b37;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === TEXTES === */
.team-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: #1e1b37;
  text-transform: uppercase;
}

.team-card p {
  font-family: "BioRhyme";
  font-size: var(--wp--preset--font-size--base);
  font-weight: 300;
  margin-top: 0.2rem;
  color: rgba(0, 0, 0, 0.7);
}

/* === NAVIGATION === */
/* Boutons externes */
.team-nav-prev,
.team-nav-next {
  position: absolute;
  top: 45%;
  width: 44px;
  height: 44px;
  background: #fff
    url("/wp-content/themes/agenceho5/assets/images/pictos/swiper-arrow.png")
    center center no-repeat;
  background-size: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

/* Flèche gauche — tu peux régler la valeur */
.team-nav-prev {
  left: -60px;
}

/* Flèche droite superposée à l’image */
.team-nav-next {
  right: 60px;
  transform: rotate(180deg);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .team-section {
    padding: 0;
  }
  /* Titre au-dessus */
  .team-inner {
    flex-direction: column;
    gap: var(--wp--preset--spacing--l);
  }

  .team-title {
    flex: none;
    width: 100%;
  }

  /* Slider 100% width */
  .team-slider-container {
    width: 100%;
    min-width: 0;
  }

  /* Flèches recentrées */
  .team-nav-prev {
    left: 0;
  }

  .team-nav-next {
    right: 0;
  }
}

/* Permet aux flèches de dépasser */
.team-slider-container {
  position: relative;
  overflow: visible;
}

.team-inner {
  overflow: visible;
}

@media screen and (max-width: 768px) {
  .team-slider-section {
    padding-right: var(--wp--style--root--padding-right) !important;
  }
}
