/* ============================================
   Section TESTIMONIAL — Figma 1:3528 (1920×878) / mobile 1:4707
   Fond blanc, en-tête centré, marquee infini pleine largeur,
   bannière CTA lilas.
   ============================================ */

.testimonial {
  background: var(--c-white);
  padding: 100px 0;
  overflow: hidden; /* clippe le marquee aux bords du viewport */
}

/* --- En-tête (max-w 500, gap 16 via .section-head) --- */
.testimonial__head {
  max-width: 500px;
  margin-inline: auto;
}

/* --- Marquee (gap en-tête→marquee : 48) --- */
.testimonial__marquee {
  margin-top: 48px;
  width: 100%;
  overflow: hidden;
}

.testimonial__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: t-marquee 36s linear infinite;
  will-change: transform;
}

/* Pause au survol (comme le site) */
.testimonial__marquee:hover .testimonial__track {
  animation-play-state: paused;
}

.testimonial__group {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Un cycle = largeur d'un groupe + un gap :
   -50% du track (2 groupes + 1 gap) − 12px = −(groupe + 24px) */
@keyframes t-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 12px)); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial__track { animation: none; }
}

/* --- Carte témoignage (337×257, lilas, r25, p24) --- */
.t-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  width: 337px;
  padding: 24px;
  border-radius: 25px;
  background: var(--c-lilac);
}

.t-card__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.t-card__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.t-card__stars img {
  width: 13px;
  height: 13px;
}

/* Citation : Manrope 16/22.4/0.32, noir, bloc fixé à 90px (3–4 lignes) */
.t-card__quote {
  margin: 0;
  min-height: 90px;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-black);
}

/* Séparateur 1px + auteur (pt 24, gap 12, avatar 41) */
.t-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--c-alto-63);
}

.t-card__avatar {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  object-fit: cover;
}

.t-card__meta {
  display: flex;
  flex-direction: column;
}

.t-card__name {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-black);
}

.t-card__role {
  font-family: var(--f-ui);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: var(--lh-ui);
  letter-spacing: 0;
  color: var(--c-tundora);
}

/* --- Bannière CTA (wrapper 1400, pt 48) --- */
.testimonial__cta {
  margin-top: 48px;
}

/* ============ Mobile ≤ 809 (Figma 1:4707 : pile statique de 4 cartes) ============ */
@media (max-width: 809px) {
  .testimonial {
    padding: 64px 0;
  }

  .testimonial .section-head__title {
    font-size: 30px;
    line-height: 33px;
  }

  /* Le marquee devient une colonne statique (cartes 358 max, p16, r20) */
  .testimonial__marquee {
    padding: 0 16px;
  }

  .testimonial__track {
    width: 100%;
    animation: none;
  }

  .testimonial__group {
    flex-direction: column;
    width: 100%;
    max-width: 358px;
    margin-inline: auto;
  }

  /* Doublons du DOM inutiles hors marquee */
  .testimonial__group[aria-hidden="true"],
  .t-card--dup {
    display: none;
  }

  .t-card {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }
}
