/* ====== Témoignages ====== */
:root{
  /* Remplace cette URL par ton image */
  --bg-url: url('images/ton-arriere-plan.jpg');
  --pink-100: #f7c9d3;
  --pink-200: #eeb6c2;
  --pink-overlay: rgba(231, 161, 178, 0.65);
  --card-soft: #f6e4e8;
  --white: #ffffff;
  --text: #3b3b3b;
  --muted: #666;
  --radius: 18px;
}

*{box-sizing:border-box}

.testimonials{
  position: relative;
  isolation: isolate;
  padding: 80px 20px 90px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #ffffff; /* fond blanc demandé */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* grains/voile doux façon maquette */
.testimonials::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1000px 600px at 10% 80%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  pointer-events:none;
  z-index:-1;
}

.t-wrap{
  max-width: 1180px;
  margin: 0 auto;
}

.t-title{
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 64px);
  text-align: center;
  line-height: 1.1;
  color: #e93196; /* aligné avec le titre de l'intro */
  margin: 0 0 36px;
  letter-spacing:.5px;
}

/* Grille de cartes */
.t-grid{
  display: grid;
  grid-template-columns: 1fr minmax(290px, 1.15fr) 1fr;
  gap: 28px;
  align-items: stretch;
}

.t-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px 26px;
  box-shadow:
    0 10px 25px rgba(48, 24, 33, .08),
    0 1px 0 rgba(255,255,255,.6) inset;
  display:flex; flex-direction:column; justify-content:space-between;
  min-height: 260px;
  /* Animation initiale (révélation au scroll) */
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .6s ease, transform .6s ease;
}

.t-card--soft{
  background: var(--card-soft);
}

.t-card--main{
  background: var(--white);
  border-radius: calc(var(--radius) + 2px);
  box-shadow:
    0 20px 38px rgba(48, 24, 33, .14),
    0 2px 0 rgba(255,255,255,.75) inset;
}

/* État révélé */
.t-card.is-inview{
  opacity: 1;
  transform: none;
}

/* Hover: léger flottement et micro-inclinaison */
.t-card:hover{
  transform: translateY(-6px) scale(1.01);
  transition: transform .25s ease, box-shadow .25s ease;
}
.t-card--soft:hover{ box-shadow: 0 14px 30px rgba(48,24,33,.12); }
.t-card--main:hover{ box-shadow: 0 24px 44px rgba(48,24,33,.18); }

.t-text{
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
}

.t-name{
  font-weight: 600;
  font-size: 20px;
  color: #404040;
}

/* Petits points (pagination) */
.t-dots{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:28px;
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background:#d1b58f; opacity:.6;
  /* animation douce */
  animation: dotPulse 1.6s ease-in-out infinite;
}
.dot--active{ opacity:1 }

/* Stagger subtil pour les 3 points */
.t-dots .dot:nth-child(2){ animation-delay: .2s; }
.t-dots .dot:nth-child(3){ animation-delay: .4s; }

@keyframes dotPulse{
  0%, 100%{ transform: scale(1); opacity: .6; }
  50%{ transform: scale(1.28); opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .t-dots .dot{ animation: none; }
}

/* Responsive */
@media (max-width: 980px){
  .t-grid{
    grid-template-columns: 1fr;
  }
  .t-card{
    min-height: unset;
  }
  .t-card--main{
    order: -1;      /* La carte du milieu passe en premier sur mobile */
  }
}
