/* AOFocus — section témoignage V2 (homepage) — palette bleue maquette */

.homepage-testimonial {
  --testimonial-brand: #1d4ed8;
  --testimonial-brand-dark: #1e3a8a;
  --testimonial-brand-deeper: #172c6e;
  --testimonial-accent: #fcd34d;
  --testimonial-ink: #0f172a;
  --testimonial-muted: #bfdbfe;
  --testimonial-border: #e2e8f0;
  --testimonial-badge-bg: #eff6ff;
}

.homepage-testimonial .testimonial-eyebrow {
  color: var(--testimonial-brand);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.homepage-testimonial .testimonial-star-wrap {
  background: linear-gradient(
    140deg,
    var(--testimonial-brand-dark) 0%,
    var(--testimonial-brand-deeper) 100%
  );
  border-radius: 24px;
  padding: clamp(32px, 6vw, 68px);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 44, 110, 0.28);
}

.homepage-testimonial .testimonial-star-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.homepage-testimonial .testimonial-quote-block {
  margin: 0;
  padding: 0;
  border: none;
}

.homepage-testimonial .testimonial-quote-mark {
  font-size: 68px;
  line-height: 0.45;
  color: var(--testimonial-accent);
  font-family: Georgia, "Times New Roman", serif;
  display: block;
  margin-bottom: 22px;
}

.homepage-testimonial .testimonial-quote {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.5;
}

.homepage-testimonial .testimonial-quote em {
  font-style: normal;
  color: var(--testimonial-accent);
  font-weight: 600;
}

.homepage-testimonial .testimonial-person {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.homepage-testimonial .testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--testimonial-brand-dark);
  background: var(--testimonial-accent);
  flex-shrink: 0;
}

.homepage-testimonial .testimonial-name {
  font-weight: 800;
  font-size: 17px;
}

.homepage-testimonial .testimonial-role {
  color: var(--testimonial-muted);
  font-size: 14.5px;
  line-height: 1.35;
}

.homepage-testimonial .testimonial-company-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  color: var(--testimonial-ink);
}

.homepage-testimonial .testimonial-logo-slot {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.homepage-testimonial .testimonial-logo-slot img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
}

.homepage-testimonial .testimonial-divider {
  border: none;
  border-top: 1px solid var(--testimonial-border);
  margin: 18px 0;
}

.homepage-testimonial .testimonial-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  background: var(--testimonial-badge-bg);
  color: var(--testimonial-brand-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 12px;
  line-height: 1.4;
  text-align: left;
}

.homepage-testimonial .testimonial-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--testimonial-brand);
}

.homepage-testimonial .testimonial-cta-hint {
  color: #94a3b8;
  font-size: 13.5px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .homepage-testimonial .testimonial-star-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .homepage-testimonial .testimonial-company-panel {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ===== V3 — chiffres + logos ===== */

.homepage-social-proof {
  --testimonial-brand: #1d4ed8;
  --testimonial-brand-dark: #1e3a8a;
  --testimonial-ink-soft: #475569;
  --testimonial-ink-faint: #94a3b8;
  --testimonial-border: #e2e8f0;
  background: #f8fafc;
}

.homepage-social-proof .social-eyebrow {
  color: var(--testimonial-brand);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.homepage-social-proof .social-title {
  font-family: "Public Sans", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  margin: 10px auto 12px;
  max-width: 640px;
  line-height: 1.2;
  color: #101522;
}

.homepage-social-proof .social-sub {
  text-align: center;
  color: var(--testimonial-ink-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.55;
}

.homepage-social-proof .social-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.homepage-social-proof .social-stat {
  text-align: center;
}

.homepage-social-proof .social-stat-num {
  font-family: "Public Sans", sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--testimonial-brand-dark);
  line-height: 1.1;
  /* Chiffres à chasse fixe : pas de tremblement horizontal pendant le compteur animé */
  font-variant-numeric: tabular-nums;
}

.homepage-social-proof .social-stat-anim {
  display: inline-block;
}

/* Léger "pop" quand le compteur atteint sa valeur finale */
@media (prefers-reduced-motion: no-preference) {
  .homepage-social-proof .social-stat-num.is-landed .social-stat-anim {
    animation: social-stat-settle 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes social-stat-settle {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* Valeur finale lisible par lecteurs d'écran uniquement (le span animé est aria-hidden) */
.homepage-social-proof .social-stat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.homepage-social-proof .social-stat-lbl {
  color: var(--testimonial-ink-soft);
  font-size: 15px;
  margin-top: 6px;
  line-height: 1.4;
}

.homepage-social-proof .social-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}

.homepage-social-proof .social-logo-item img {
  max-height: 52px;
  max-width: 180px;
  width: auto;
  height: auto;
  display: block;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.homepage-social-proof .social-logo-item img:hover {
  opacity: 1;
}

.homepage-social-proof .social-logo-placeholder {
  color: var(--testimonial-ink-faint);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border: 1px dashed var(--testimonial-border);
  border-radius: 10px;
  min-width: 120px;
  text-align: center;
}

@media (max-width: 860px) {
  .homepage-social-proof .social-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

/* ===== V1 — carte témoignage ===== */

.homepage-testimonial-cards {
  --testimonial-brand: #1d4ed8;
  --testimonial-brand-dark: #1e3a8a;
  --testimonial-accent: #f59e0b;
  --testimonial-ink: #0f172a;
  --testimonial-ink-faint: #94a3b8;
  --testimonial-border: #e2e8f0;
}

.homepage-testimonial-cards .cards-eyebrow {
  color: var(--testimonial-brand);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.homepage-testimonial-cards .cards-title {
  font-family: "Public Sans", sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  text-align: center;
  margin: 10px auto 40px;
  max-width: 560px;
  line-height: 1.2;
  color: #101522;
}

.homepage-testimonial-cards .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
  gap: 24px;
}

.homepage-testimonial-cards .testimonial-card {
  background: #fff;
  border: 1px solid var(--testimonial-border);
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-testimonial-cards .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.homepage-testimonial-cards .testimonial-card-stars {
  color: var(--testimonial-accent);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.homepage-testimonial-cards .testimonial-card-quote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--testimonial-ink);
}

.homepage-testimonial-cards .testimonial-card-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--testimonial-border);
}

.homepage-testimonial-cards .testimonial-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  flex-shrink: 0;
}

.homepage-testimonial-cards .testimonial-card-name {
  font-weight: 700;
  font-size: 14.5px;
}

.homepage-testimonial-cards .testimonial-card-role {
  color: var(--testimonial-ink-faint);
  font-size: 13px;
  line-height: 1.35;
}

.homepage-testimonial-cards .testimonial-card-credential {
  color: var(--testimonial-ink-faint);
  font-size: 12px;
  opacity: 0.9;
}

.homepage-testimonial-cards .testimonial-card-avatar--etcr {
  background: linear-gradient(135deg, #ea580c, #15803d);
}
