/* ============================================================
   AVIS CLIENTS — ON FACTORY (section isolée, tokens du site)
   ============================================================ */
.reviews {
  position: relative;
  padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 9vw, 120px);
}

/* --- En-tête + agrégat --- */
.reviews__head { margin-bottom: clamp(28px, 5vw, 52px); }
.reviews__agg {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 18px;
}
.reviews__agg .stars { font-size: 22px; }
.reviews__score {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 58px);
  line-height: 1; color: var(--text); letter-spacing: .01em;
}
.reviews__score em { font-style: normal; color: var(--text-muted); font-size: .42em; margin-left: 4px; }
.reviews__count {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Étoiles --- */
.stars { display: inline-flex; gap: 2px; color: #e8b45a; line-height: 1; }
.stars .star--off { color: rgba(138, 153, 171, .35); }

/* --- Zone carrousel --- */
.reviews__viewport {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.reviews__track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(16px, 4vw, 40px);
  padding: 10px 2px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.reviews__track::-webkit-scrollbar { display: none; }

/* --- Carte d'avis --- */
.rev {
  flex: 0 0 clamp(280px, 31%, 360px);
  max-width: 84vw;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -26px rgba(0,0,0,.85);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.rev:hover {
  transform: translateY(-5px);
  border-color: rgba(143,192,240,.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(0,0,0,.95);
}

/* Photo */
.rev__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.rev__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,14,20,.55));
}
.rev__verif {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(10,14,20,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(143,192,240,.3);
  font: 600 11px/1 var(--font-body); letter-spacing: .04em; color: #cfe4fa;
}
.rev__verif svg { width: 13px; height: 13px; color: var(--accent); }

/* Corps */
.rev__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; }
.rev__body .stars { font-size: 16px; }
.rev__text {
  margin: 0; color: var(--text); font-size: 15px; line-height: 1.58; font-weight: 300;
  flex: 1;
}
.rev--nophoto .rev__text { font-size: 16px; }

/* Pied de carte */
.rev__foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.rev__avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(143,192,240,.22), rgba(143,192,240,.06));
  border: 1px solid rgba(143,192,240,.28);
  color: #dbebfb; font-family: var(--font-display); font-size: 20px; line-height: 1;
}
.rev__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rev__name {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.rev__product {
  font-size: 12px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rev__reco {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font: 600 11px/1 var(--font-body); color: var(--accent);
}
.rev__reco svg { width: 13px; height: 13px; }
.rev__verif--inline {
  position: static; padding: 3px 8px; background: rgba(143,192,240,.12);
  border-color: rgba(143,192,240,.25); font-size: 10px; color: var(--accent);
}
.rev__verif--inline svg { width: 11px; height: 11px; }

/* Flèches */
.reviews__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(20,27,38,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--text);
  transition: background .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}
.reviews__arrow:hover { border-color: var(--accent); color: var(--accent); }
.reviews__arrow:active { transform: translateY(-50%) scale(.94); }
.reviews__arrow--prev { left: -6px; }
.reviews__arrow--next { right: -6px; }
.reviews__arrow:disabled { opacity: 0; pointer-events: none; }

/* Points */
.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.reviews__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(138,153,171,.35); transition: width .3s var(--ease), background .3s ease;
}
.reviews__dot.is-active { width: 26px; background: var(--accent); }
.reviews__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .rev { flex-basis: clamp(260px, 44%, 320px); }
}
@media (max-width: 620px) {
  .reviews__arrow { display: none; }               /* on swipe au doigt */
  .reviews__viewport { padding: 0 16px; }
  .reviews__track { gap: 14px; scroll-padding-left: 16px; }
  .rev { flex-basis: 85%; max-width: 85%; }         /* 1 carte + aperçu de la suivante */
}
