/* ============================================
   TÉMOIGNAGES — Listing & page détail
   ============================================ */

/* ---- LISTING (/avis/) ---- */

.avis-hero {
  text-align: center;
  padding: 80px 56px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.avis-hero h1 {
  font-size: clamp(36px, 3.8vw, 54px);
  margin-bottom: 16px;
}

.avis-hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- GRID & CARD (réutilisée sur listing + page détail) ---- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px 100px;
}

.testimonial-grid-listing {
  max-width: 1080px;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  text-decoration: none;
  color: inherit;
}

.testimonial-card:hover {
  box-shadow: 0 16px 48px var(--shadow-normal);
  transform: translateY(-4px);
}

.testimonial-card-photo {
  position: relative;
  background: var(--grey-50);
  overflow: hidden;
}

.testimonial-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-card-play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.testimonial-card-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.testimonial-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.testimonial-card-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 12px;
}

.testimonial-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.testimonial-card-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.testimonial-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---- PAGE DÉTAIL — Hero ---- */

.testimonial-hero {
  text-align: center;
  padding: 56px 56px 32px;
  max-width: 820px;
  margin: 0 auto;
}

.testimonial-identity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grey-50);
  flex-shrink: 0;
  border: 3px solid var(--accent-pastel);
}

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

.testimonial-identity-text {
  text-align: left;
}

.testimonial-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.testimonial-hero h1 {
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.15;
  margin-bottom: 32px;
}

.testimonial-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.testimonial-stat {
  background: var(--accent-pastel);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 18px 24px;
  min-width: 140px;
  text-align: center;
}

.testimonial-stat-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

.testimonial-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- PAGE DÉTAIL — Vidéo (lite YouTube) ---- */

.testimonial-video-wrap {
  max-width: 880px;
  margin: 24px auto 48px;
  padding: 0 56px;
}

.testimonial-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 16px 48px var(--shadow-normal);
}

.testimonial-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s, filter .35s;
}

.testimonial-video:hover .testimonial-video-thumb {
  transform: scale(1.03);
  filter: brightness(.9);
}

.testimonial-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

.testimonial-video:hover .testimonial-video-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.testimonial-video-play svg {
  width: 100%;
  height: 100%;
}

.testimonial-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: none;
  display: block;
  box-shadow: 0 16px 48px var(--shadow-normal);
}

/* ---- PAGE DÉTAIL — Contenu ---- */

.testimonial-content {
  /* hérite des styles .article-content de blog.css */
}

.testimonial-content > p:first-child {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin-bottom: 32px;
}

/* ---- PAGE DÉTAIL — CTA ---- */

.testimonial-cta {
  max-width: 720px;
  margin: 24px auto 80px;
  padding: 48px 40px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  text-align: center;
  margin-left: max(56px, calc((100% - 720px) / 2));
  margin-right: max(56px, calc((100% - 720px) / 2));
}

.testimonial-cta h2 {
  color: white;
  font-size: clamp(28px, 2.6vw, 36px);
  margin-bottom: 12px;
}

.testimonial-cta p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ---- PAGE DÉTAIL — Autres témoignages ---- */

.testimonial-related {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px 100px;
}

.testimonial-related h2 {
  text-align: center;
  font-size: clamp(28px, 2.6vw, 36px);
  margin-bottom: 32px;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .avis-hero {
    padding: 48px 20px 32px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 64px;
    gap: 16px;
  }

  .testimonial-card {
    grid-template-columns: 120px 1fr;
  }

  .testimonial-hero {
    padding: 40px 20px 24px;
  }

  .testimonial-video-wrap {
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .testimonial-stat {
    min-width: 110px;
    padding: 14px 18px;
  }

  .testimonial-stat-value {
    font-size: 26px;
  }

  .testimonial-cta {
    margin: 16px 20px 64px;
    padding: 36px 24px;
  }

  .testimonial-related {
    padding: 0 20px 64px;
  }
}

@media (max-width: 560px) {
  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-card-photo {
    aspect-ratio: 16 / 10;
  }

  .testimonial-identity {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .testimonial-identity-text {
    text-align: center;
  }

  .testimonial-stats {
    gap: 8px;
  }

  .testimonial-stat {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .testimonial-video-play {
    width: 64px;
    height: 45px;
  }
}
