/* Avis clients défilants, sous le bandeau 4,8 — v1 (16/11/2026)
   Direction par défaut : de gauche à droite (le contenu avance vers la droite).
   Inverser : mettre data-dir="rtl" sur #avis-defile (une seule modification). */
/* Empêche le rail (width:max-content) d'élargir la colonne hero (item de grille). */
.hero-txt:has(#avis-defile){min-width:0;max-width:100%}
#avis-defile{
  --av-from:-50%;
  --av-to:0%;
  margin:.7rem 0 0;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  color:#2b2525;
  text-shadow:none!important;
  font-family:var(--font),system-ui,sans-serif;
}
#avis-defile[data-dir="rtl"]{--av-from:0%;--av-to:-50%}
#avis-defile *{text-shadow:none!important;box-sizing:border-box}
#avis-defile .av-vp{
  overflow:hidden;
  width:100%;
  min-width:0;
  max-width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);
}
#avis-defile .av-track{
  display:flex;
  width:max-content;
  gap:10px;
}
#avis-defile.is-on .av-track{
  animation:av-scroll 55s linear infinite;
  will-change:transform;
}
#avis-defile .av-set{display:flex;gap:10px}
@keyframes av-scroll{
  from{transform:translate3d(var(--av-from),0,0)}
  to{transform:translate3d(var(--av-to),0,0)}
}
#avis-defile .av-vp:hover .av-track,
#avis-defile .av-vp:focus-within .av-track{animation-play-state:paused}
#avis-defile .av-card{
  flex:0 0 232px;
  width:232px;
  background:#fff;
  color:#2b2525;
  border-radius:14px;
  padding:9px 11px 8px;
  box-shadow:0 2px 10px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:6.7rem;
}
#avis-defile .av-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
#avis-defile .av-top b{
  font:700 .82rem/1.2 var(--font),system-ui,sans-serif;
  color:#2b2525;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#avis-defile .av-stars{
  flex-shrink:0;
  color:#fbbc04;
  font-size:11px;
  letter-spacing:.04em;
  line-height:1;
}
#avis-defile .av-text{
  margin:0;
  font-size:.78rem;
  line-height:1.35;
  color:#2b2525;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
#avis-defile .av-meta{
  margin-top:auto;
  font-size:.68rem;
  font-weight:600;
  color:#6b6464;
  letter-spacing:.01em;
}
@media(min-width:900px){
  #avis-defile .av-card{flex-basis:248px;width:248px;padding:10px 12px 9px}
  #avis-defile .av-text{font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){
  #avis-defile .av-vp{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    -webkit-mask-image:none;
    mask-image:none;
  }
  #avis-defile .av-track{animation:none;gap:10px}
  #avis-defile .av-set[aria-hidden="true"]{display:none}
}
