/* ==========================================================================
   Témoignages Carrousel
   Les couleurs sont pilotées par des variables : modifie-les ci-dessous
   pour les accorder à la charte du site (ou pointe-les vers les variables
   d'Astra si tu veux).
   ========================================================================== */
/* Neutralise le survol jaune d'Astra sur les boutons du carrousel */
.tc-arrow,
.tc-arrow:hover,
.tc-arrow:focus,
.tc-name,
.tc-name:hover,
.tc-name:focus {
  background-color: transparent;
  box-shadow: none;
  border-color: var(--tc-accent);
}

/* On réapplique NOTRE survol voulu sur les flèches (vert plein) */
.tc-arrow:hover {
  background-color: var(--tc-accent);
  border-color: var(--tc-accent);
}

/* Les noms ne doivent jamais avoir de fond ni de bordure */
.tc-name,
.tc-name:hover,
.tc-name:focus {
  border: 0;
  background: none;
}
.tc-carousel {
  --tc-accent: #2f9e78; /* vert (guillemets, flèches, nom actif) */
  --tc-ink: #1e2a44; /* bleu foncé (noms) */
  --tc-muted: #9aa3b2; /* gris estompé (rôle, noms inactifs) */
  --tc-text: #5b6473; /* gris du texte de citation */
  --tc-arrow-size: 48px;

  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: inherit;
  text-align: center;
}

/* --- Scène : flèches + citation ------------------------------------------ */
.tc-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tc-arrow {
  flex: 0 0 var(--tc-arrow-size);
  width: var(--tc-arrow-size);
  height: var(--tc-arrow-size);
  min-width: var(--tc-arrow-size);
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--tc-accent);
  background: transparent;
  color: var(--tc-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
.tc-arrow:hover {
  background: var(--tc-accent);
  color: #fff;
}
.tc-arrow:active {
  transform: scale(0.94);
}
.tc-arrow:focus-visible {
  outline: 2px solid var(--tc-accent);
  outline-offset: 3px;
}

.tc-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 44px;
}

.tc-quote {
  position: absolute;
  color: var(--tc-accent);
  font-size: 64px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
  user-select: none;
}
.tc-quote--open {
  top: 0;
  left: 0;
}
.tc-quote--close {
  bottom: -18px;
  right: 0;
}

/* Les slides se superposent ; seule l'active est en flux (elle donne la hauteur). */
.tc-slides {
  position: relative;
}
.tc-slide {
  margin: 0;
  padding: 0;
  border: 0; /* enlève le trait vertical de citation d'Astra */
  font-style: normal; /* texte droit (mets 'italic' si tu préfères) */
  quotes: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.tc-slide::before,
.tc-slide::after {
  content: none;
} /* supprime d'éventuels guillemets ajoutés par le thème */
.tc-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.tc-text {
  margin: 0;
  color: var(--tc-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Bandeau de noms (éventail) ------------------------------------------ */
.tc-names-viewport {
  overflow: hidden;
  margin-top: 34px;
}
.tc-names {
  display: flex;
  gap: 40px;
  width: max-content;
  position: relative;
  transition: transform 0.4s ease;
}
.tc-name {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--tc-ink);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.tc-name:hover {
  opacity: 0.75;
}
.tc-name.is-active {
  opacity: 1;
}
.tc-name:focus-visible {
  outline: 2px solid var(--tc-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.tc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}
.tc-name-label {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.tc-name.is-active .tc-name-label {
  color: var(--tc-accent);
}
.tc-name-role {
  font-size: 0.8rem;
  color: var(--tc-muted);
  white-space: nowrap;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 600px) {
  .tc-carousel {
    --tc-arrow-size: 40px;
    padding: 12px;
  }
  .tc-viewport {
    padding: 8px 20px;
  }
  .tc-quote {
    font-size: 44px;
  }
  .tc-text {
    font-size: 1rem;
  }
  .tc-names {
    gap: 24px;
  }
}

/* Respecte la préférence « animations réduites ». */
@media (prefers-reduced-motion: reduce) {
  .tc-slide,
  .tc-names,
  .tc-arrow {
    transition: none;
  }
}
