/* =========================================================
   Carrousel des avis utilisateurs
   ========================================================= */

.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviews-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform .55s ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 33.333333%;
  min-width: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.review-slide .review-card {
  height: 100%;
}

/* Flèches */

.reviews-arrow {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #dedede;
  border-radius: 50%;

  background: #fff;
  color: #555;

  font-size: 18px;
  cursor: pointer;

  transition:
    border-color .2s ease,
    color .2s ease,
    background-color .2s ease;
}

.reviews-arrow:hover {
  border-color: #777;
  color: #111;
}

.reviews-arrow:focus-visible {
  outline: 2px solid #555;
  outline-offset: 3px;
}

/* Indicateurs */

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.reviews-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
  cursor: pointer;
}

.reviews-dot.active {
  background: #333;
}

/* Tablette : 2 avis visibles */

@media (max-width: 991.98px) {

  .review-slide {
    flex-basis: 50%;
  }

}

/* Mobile : 1 avis visible */

@media (max-width: 767.98px) {
  .reviews-carousel {
    gap: 6px;
  }
  .review-slide {
    flex-basis: 100%;
    padding: 0 5px;
  }
  .reviews-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
}
/* Respect du réglage système */
@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    transition: none;
  }
}
