/**
 * 2007-2024 PrestaShop
 *
 * @author    Régis Daum
 * @copyright 2007-2024
 */

/* Section des avis clients */
.homepage-reviews {
  padding: 60px 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.reviews-marquee-row {
  overflow: hidden;
  position: relative;
}

.reviews-marquee-container {
  overflow: hidden;
  width: 100%;
}

.reviews-marquee-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  padding-block: 20px;
}

.reviews-marquee-left .reviews-marquee-track {
  animation: marquee-left 60s linear infinite;
}

.reviews-marquee-right .reviews-marquee-track {
  animation: marquee-right 60s linear infinite;
}

/* Pause l'animation au survol */
.reviews-marquee-row:hover .reviews-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.review-card-marquee {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card-marquee:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.review-author {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.review-rating {
  display: flex;
  gap: 3px;
}

.review-rating .fa-star {
  color: #ddd;
  font-size: 1rem;
}

.review-rating .fa-star.active {
  color: #ffc107;
}

.review-comment {
  flex: 1;
  margin-bottom: 15px;
}

.review-comment p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-style: italic;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

.review-date {
  margin-top: auto;
  color: #999;
  font-size: 0.9rem;
}

/* Section des avis pour les fiches produit */
.product-reviews {
  padding: 40px 0;
  margin-top: 30px;
  overflow: hidden;
}

.product-reviews-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.product-reviews-rating-summary {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.rating-average {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
  display: inline-block;
}

.rating-max {
  font-size: 1.5rem;
  font-weight: 400;
  color: #666;
  margin-left: 5px;
}

.rating-count {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .homepage-reviews {
    padding: 40px 0;
  }

  .review-card-marquee {
    flex: 0 0 280px;
    padding: 20px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-reviews {
    padding: 30px 0;
  }
}
