/**
 * Témoignages — citation en haut, nom/rôle en bas à gauche, flèches en bas à
 * droite (comme la maquette). Les slides sont empilés (grille 1 cellule) donc
 * le bloc prend la hauteur du plus long → aucun saut de mise en page ; seul le
 * slide actif est visible (fondu).
 */

.bejoy-testimonial {
  --bejoy-t-arrow-size: 44px;
  --bejoy-t-arrow-bg: rgba(0, 0, 0, 0.06);
  --bejoy-t-arrow-color: #141414;
  position: relative;
}

.bejoy-testimonial__slides {
  display: grid;
}

.bejoy-testimonial__slide {
  grid-area: 1 / 1;               /* empile tous les slides au même endroit */
  display: flex;
  flex-direction: column;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.bejoy-testimonial__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.bejoy-testimonial__quote {
  margin: 0;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: pretty;
}

.bejoy-testimonial__meta {
  margin-top: auto;              /* pousse le nom/rôle en bas du bloc */
  padding-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bejoy-testimonial__name {
  font-weight: 500;
}
.bejoy-testimonial__role {
  opacity: 0.6;
}

/* Flèches, en bas à droite */
.bejoy-testimonial__nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
}
.bejoy-testimonial__arrow {
  width: var(--bejoy-t-arrow-size);
  height: var(--bejoy-t-arrow-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bejoy-t-arrow-bg);
  color: var(--bejoy-t-arrow-color);
  cursor: pointer;
  font-size: calc(var(--bejoy-t-arrow-size) * 0.42);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Couleurs verrouillées sur tous les états : neutralise le fond/anneau par
   défaut des <button> Elementor & du navigateur (sinon couleur parasite au
   hover/focus/active). Les réglages de survol restent prioritaires. */
.bejoy-testimonial__arrow,
.bejoy-testimonial__arrow:hover,
.bejoy-testimonial__arrow:focus,
.bejoy-testimonial__arrow:active {
  background: var(--bejoy-t-arrow-bg);
  color: var(--bejoy-t-arrow-color);
  box-shadow: none !important;
  outline: none;
}
.bejoy-testimonial__arrow:hover {
  transform: scale(1.06);
}
.bejoy-testimonial__arrow:active {
  transform: scale(0.96);
}
.bejoy-testimonial__arrow:focus-visible {
  outline: 2px solid var(--bejoy-t-arrow-color);
  outline-offset: 3px;
}

.bejoy-testimonial__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bejoy-testimonial__ico svg {
  width: calc(var(--bejoy-t-arrow-size) * 0.42);
  height: auto;
  fill: currentColor;
}
.bejoy-testimonial__ico i {
  font-size: calc(var(--bejoy-t-arrow-size) * 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .bejoy-testimonial__slide,
  .bejoy-testimonial__arrow {
    transition: none;
  }
}
