/* ============ Bloc coverflow (page d'accueil) ============ */

.tm-cf {
  --tm-teal: #14b7e6;
  --tm-teal-light: #3ec7fd;
  --tm-ink: #14181c;
  --tm-stone: #6b675f;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 16px 0;
}

.tm-cf__quote {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--tm-ink);
  max-width: 60ch;
  margin: 0 auto 18px;
}

.tm-cf__author {
  margin-bottom: 32px;
}

.tm-cf__name {
  display: block;
  font-weight: 700;
  color: var(--tm-ink);
}

.tm-cf__context {
  display: block;
  font-size: 0.82rem;
  color: var(--tm-stone);
  margin-top: 2px;
}

.tm-cf__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 90px);
  margin-bottom: 30px;
}

.tm-cf__center {
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 3 / 4;
  border-left: 6px solid var(--tm-teal-light);
  overflow: hidden;
  flex-shrink: 0;
}

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

.tm-cf__thumb {
  width: clamp(90px, 12vw, 170px);
  aspect-ratio: 3 / 4;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: none;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.tm-cf__thumb:hover {
  transform: translateY(-2px);
}

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

.tm-cf__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tm-teal);
  opacity: 0.55;
  mix-blend-mode: color;
}

.tm-cf__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 8px;
}

.tm-cf__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tm-teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.tm-cf__btn:hover {
  background: #0fa0cc;
  transform: translateY(-1px);
}

/* Bouton "Voir tous les témoignages" */
.tm-cf__more {
  margin-top: 8px;
  padding-bottom: 16px;
}

.tm-cf__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tm-teal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.tm-cf__more-btn:hover {
  border-color: var(--tm-teal);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .tm-cf__stage {
    gap: 0;
  }

  .tm-cf__thumb {
    display: none;
  }

  .tm-cf__center {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .tm-cf__btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ============ Page /temoignages (tous les témoignages) ============ */

.tp-page {
  --tp-teal: #14b7e6;
  --tp-ink: #14181c;
  --tp-stone: #6b675f;
  --tp-line: rgba(20, 24, 28, 0.1);
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

.tp-header {
  text-align: center;
  margin-bottom: 48px;
}

.tp-page .tp-header__eyebrow {
  color: var(--tp-teal) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

.tp-page .tp-header__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--tp-ink) !important;
  margin: 0;
}

/*
 * Masonry en pur CSS (colonnes), pas une grille à lignes égales : chaque
 * carte garde SA hauteur naturelle. Avec une grille classique, une carte
 * très longue (ex. témoignage de plusieurs paragraphes) forçait toute sa
 * ligne à s'étirer à sa hauteur, créant un grand vide sous les cartes plus
 * courtes de la même ligne — c'est ce "décalage" que les colonnes évitent.
 */
.tp-grid {
  columns: 320px 3;
  column-gap: 28px;
}

.tp-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  break-inside: avoid;
  margin-bottom: 28px;
}

.tp-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-card__mark {
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--tp-teal);
  opacity: 0.25;
  line-height: 1;
  font-family: Georgia, serif;
}

.tp-page .tp-card__quote {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--tp-ink) !important;
  margin: 0;
  white-space: pre-line;
}

/* Texte long : tronqué par défaut (8 lignes), déplié au clic. */
.tp-page .tp-card__quote.is-truncatable {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

.tp-page .tp-card__quote.is-truncatable.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.tp-page .tp-card__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: -8px;
}

.tp-page .tp-card__more,
.tp-page .tp-card__more span {
  color: var(--tp-teal) !important;
}

.tp-card__more:hover {
  text-decoration: underline;
}

.tp-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--tp-line);
}

.tp-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tp-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tp-teal);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.tp-page .tp-card__name {
  display: block;
  font-weight: 700;
  color: var(--tp-ink) !important;
}

.tp-page .tp-card__context {
  display: block;
  font-size: 0.8rem;
  color: var(--tp-stone) !important;
}

.tp-empty {
  text-align: center;
  color: var(--tp-stone);
}

@media (prefers-reduced-motion: reduce) {
  .tp-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
