/* ============================================================
   Avrile — Team
   Liste de membres, photo suit la souris au survol.
   Default : texte pleine couleur. Survol : les autres s'atténuent.
   ============================================================ */

.avr-team {
  padding: var(--avr-space-section) var(--avr-space-gutter);
  background: var(--avr-bg);
  width: 100%;
}

.avr-team__inner {
  width: 100%;
  max-width: var(--avr-max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vh, 80px);
}

/* ----------------------------------------------------------
   En-tête
---------------------------------------------------------- */
.avr-team__head {
  width: 100%;
}

.avr-team__label {
  display: block;
  margin-bottom: var(--avr-space-xs);
}

.avr-team__head h2 {
  margin: 0;
  text-wrap: balance;
}

.avr-team__sub {
  max-width: 520px;
  margin: 24px 0 0;
}

/* ----------------------------------------------------------
   Stage — conteneur de la liste + photo suivant la souris
---------------------------------------------------------- */
.avr-team__stage {
  position: relative;
  width: 100%;
}

/* ----------------------------------------------------------
   Photo frame — suit le curseur via JS (transform mis à jour)
---------------------------------------------------------- */
.avr-team__photo-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(200px, 18vw, 270px);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avr-team__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--avr-radius-sm);
  overflow: hidden;
}

.avr-team__photo.is-active {
  opacity: 1;
}

.avr-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   Liste de rangées
---------------------------------------------------------- */
.avr-team__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.avr-team__row {
  display: grid;
  grid-template-columns: clamp(180px, 18vw, 260px) 1fr;
  gap: 0 clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(18px, 2.2vh, 28px) 0;
  color: var(--avr-fg);
  transition: color 0.25s ease;
  cursor: default;
}

/* Quand un membre est actif : muter les non-actifs */
.avr-team__stage.has-active .avr-team__row {
  color: var(--avr-muted);
}

.avr-team__stage.has-active .avr-team__row.is-active {
  color: var(--avr-fg);
}

/* ----------------------------------------------------------
   Contenu des rangées
---------------------------------------------------------- */
.avr-team__name {
  font-family: var(--avr-font-body);
  font-size: var(--avr-text-body);
  font-weight: var(--avr-weight-regular);
  line-height: 1;
}

.avr-team__stage.has-active .avr-team__row.is-active .avr-team__name {
  font-weight: var(--avr-weight-medium);
}

.avr-team__role {
  font-family: var(--avr-font-body);
  font-size: var(--avr-text-body);
  font-weight: var(--avr-weight-regular);
  line-height: 1;
}

/* ----------------------------------------------------------
   Responsive — mobile : photo en surimpression au tap, positionnée par JS
---------------------------------------------------------- */
@media (max-width: 768px) {
  .avr-team__photo-frame {
    width: clamp(160px, 52vw, 240px);
    pointer-events: auto;
    z-index: 10;
  }

  .avr-team__row {
    grid-template-columns: 1fr 1fr;
    padding: clamp(14px, 2vh, 20px) 0;
  }
}
