/* ===== Section Confiance (fond bleu) ===== */
.trust{
  background: var(--blue);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.trust::before{
  content:"";
  position:absolute; inset:-10% -10% auto -10%;
  height: 60%;
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(500px 200px at 88% 10%, rgba(255,116,62,.06), transparent 70%);
  pointer-events:none;
}

.trust-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: start;
}

/* Manifeste */
.trust-manifest h2{
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.trust-manifest h2 span{ color: var(--orange); }
.trust-manifest .lead{
  color:#eaf2ff; font-size:1.06rem; margin:0 0 16px; max-width: 70ch;
}

/* Témoignages (fade-in alterné, sans JS) */
.testimonials-zone{
  position: relative;
  min-height: 110px; /* réserve l’espace */
}
.testimonial{
  position:absolute; inset:0;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  display:flex; flex-direction:column; justify-content:center;
}
.testimonial blockquote{
  margin:0; font-size:1.05rem; line-height:1.55; color:#fff;
}
.testimonial figcaption{
  margin-top:6px; color:#cfe1ff; font-size:.92rem;
}

/* Animations alternées (zone 1) */
.t1a{ animation: fadeSwap 8s infinite; }
.t1b{ animation: fadeSwap 8s infinite 4s; }

/* Zone 2 (décalée pour ne pas être synchro) */
.two .t2a{ animation: fadeSwap 8s infinite 2s; }
.two .t2b{ animation: fadeSwap 8s infinite 6s; }

@keyframes fadeSwap {
  0%   { opacity:1; transform: translateY(0); }
  40%  { opacity:1; transform: translateY(0); }
  50%  { opacity:0; transform: translateY(6px); }
  100% { opacity:0; transform: translateY(6px); }
}

/* CTA */
.trust-ctas{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.cta--outline{ background:#fff; color:var(--blue); border:2px solid var(--orange); box-shadow:none }

/* Stories droite (2ᵉ zone témoignages) */
.trust-stories .testimonials-zone{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 120px;
}

/* Affiliates (indicateurs) — 4 niveaux de rémunération */
.affiliates{
  grid-column: 1 / -1;
  margin-top: 24px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  padding: 18px 18px 22px;
}
.affiliates-head h3{
  margin:0 0 6px; font-size: clamp(20px, 2.6vw, 26px);
}
.affiliates-head h3 span{ color: var(--orange) }
.affiliates-head p{ margin:0 0 10px; color:#eaf2ff }

.tiers{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.tier{
  background:#fff;
  color:#0f172a;
  border-radius:14px;
  padding:14px 14px 16px;
  box-shadow:0 10px 26px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tier:hover{ transform: translateY(-3px); box-shadow:0 16px 34px rgba(0,0,0,.2) }
.tier-badge{
  display:inline-block; font-weight:800; font-size:.8rem; letter-spacing:.02em;
  color:#fff; background: var(--orange); border-radius:999px; padding:6px 10px; margin-bottom:8px;
}
.tier h4{ margin:0 0 6px; color: var(--blue) }
.tier p { margin:0; color:#29324a; font-size:.94rem; line-height:1.5 }

.affiliates-cta{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce){
  .t1a,.t1b,.t2a,.t2b{ animation: none; opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px){
  .trust-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .tiers{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .tiers{ grid-template-columns: 1fr; }
}
/* Grille 2 colonnes : gauche = témoignages, droite = CTA box */
.trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Témoignages */
.testimonials-zone{
  grid-column: 2 / 3;
  grid-row: 1 / span 2;        /* s’étend sur la hauteur totale */
  align-self: stretch;
  display: flex;                /* permet le centrage vertical du contenu animé */
  align-items: center;
  min-height: 320px;            /* plus d’espace pour les textes longs */
  position: relative;           /* conserve l’empilement des items */
}
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #fff;
}
.testimonial figcaption {
  margin-top: 8px;
  color: #cfe1ff;
  font-size: .92rem;
  font-style: italic;
}

/* ====== ROTATION PLUS LENTE (temps de lecture) ======
   4 témoignages, cycle total 36s → ~9s visibles chacun */
.t1a { animation: fadeSwap 36s infinite; }
.t1b { animation: fadeSwap 36s infinite 9s; }
.t2a { animation: fadeSwap 36s infinite 18s; }
.t2b { animation: fadeSwap 36s infinite 27s; }

@keyframes fadeSwap {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(6px); }
}

/* CTA Box (droite) */
.trust-cta-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  text-align: center;
}
.trust-cta-box h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #fff;
}
.trust-cta-box p {
  font-size: 1rem;
  color: #eaf2ff;
  margin: 0 0 18px;
  line-height: 1.6;
}
.trust-cta-box .cta-big {
  display: block;
  margin: 0 auto 10px;
}
.trust-cta-box .cta--outline {
  display: block;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 960px){
  .trust-grid { grid-template-columns: 1fr; }
  .trust-cta-box { margin-top: 20px; }
}
