

.avis-defile {
  --avis-carte: var(--surface);
  --avis-largeur: min(82vw, 320px);
  --avis-ecart: 16px;
  position: relative;
  margin-top: clamp(8px, 2vh, 20px);
}

.bloc--surface .avis-defile { --avis-carte: var(--fond); }

@media (min-width: 640px) {
  .avis-defile { --avis-largeur: 360px; --avis-ecart: 24px; }
}


.avis-entete__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.avis-pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--texte-2);
  color: var(--texte-page);
  font: 700 0.9375rem/1 var(--corps);
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.avis-pause:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.avis-pause svg { width: 14px; height: 14px; fill: currentColor; }
.avis-pause .avis-pause__lecture { display: none; }
.avis-pause[aria-pressed="true"] .avis-pause__lecture { display: block; }
.avis-pause[aria-pressed="true"] .avis-pause__pause { display: none; }


.avis-defile__rangee {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  
  --avis-retrait: max(var(--marge), calc((100% - 1180px) / 2));
  scroll-padding-inline: var(--avis-retrait);
  padding: 4px var(--avis-retrait) 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--texte-2) transparent;
  -webkit-overflow-scrolling: touch;
}
.avis-defile__rangee + .avis-defile__rangee { margin-top: var(--avis-ecart); }


.avis-defile__piste {
  display: flex;
  align-items: stretch;
  gap: var(--avis-ecart);
  width: max-content;
}


.avis-defile__rangee--2 { display: none; }


.avis-carte {
  flex: none;
  width: var(--avis-largeur);
  scroll-snap-align: start;
}
.avis-carte figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--avis-carte);
}
.avis-carte__etoiles {
  color: var(--accent-texte);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.12em;
}
.avis-carte blockquote {
  flex: 1;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.avis-carte--courte blockquote {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.35;
}
.avis-carte figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-top: 14px;
  border-top: 1px solid var(--bordure);
}
.avis-carte__nom { font-weight: 700; font-size: 0.9375rem; }
.avis-carte__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--texte-2);
  font-size: 0.8125rem;
  font-weight: 600;
}
.avis-carte__g { width: 16px; height: 16px; flex: none; }


.avis-defile.est-anime .avis-defile__rangee {
  overflow: hidden;
  padding: 6px 0;
  scroll-snap-type: none;
  cursor: grab;
  touch-action: pan-y;            
  user-select: none;
  -webkit-user-select: none;
  
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.avis-defile.est-anime .avis-defile__rangee.est-glisse { cursor: grabbing; }
.avis-defile.est-anime .avis-defile__piste {
  will-change: transform;
  backface-visibility: hidden;
}
.avis-defile.est-anime .avis-defile__rangee + .avis-defile__rangee { margin-top: var(--avis-ecart); }
.avis-defile.est-anime .avis-defile__rangee:focus-visible {
  outline-offset: -3px;
  border-radius: var(--rayon);
  
  -webkit-mask-image: none;
  mask-image: none;
}


@media (min-width: 900px) and (min-height: 1000px) {
  .avis-defile.est-anime .avis-defile__rangee--2 { display: block; }
}


@media (prefers-reduced-motion: reduce) {
  .avis-pause { display: none; }
  .avis-pause, .avis-pause:hover { transition: none; }
}
