/* Modern reviews carousel */
.reviews-carousel-modern {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px 40px;
}

.reviews-stage-modern {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.reviews-track-modern {
  position: relative;
  width: 100%;
  height: 100%;
}

.review-card-modern {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 85vw);
  height: 360px;
  transform-origin: center center;
  will-change: transform, opacity;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

#avis .review-card-modern {
  background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6) !important;
  transition: border-color 0.4s ease;
}

#avis .review-card-modern.is-active {
  border-color: rgba(181, 162, 105, 0.4) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(181, 162, 105, 0.1) !important;
}

.review-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#avis .review-card-inner>.mb-5 {
  justify-content: center;
  margin-bottom: 16px;
}

#avis .review-card-inner>p {
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: center;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.reviews-controls-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.reviews-nav-modern {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 18, 18, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.reviews-nav-modern:hover {
  border-color: #b5a269;
  color: #b5a269;
  background: rgba(181, 162, 105, 0.05);
}

.reviews-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reviews-dot {
  width: 16px;
  height: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reviews-dot.is-active {
  width: 30px;
  background: #b5a269;
}

@media (max-width: 768px) {
  .reviews-carousel-modern {
    padding: 0 0 22px;
  }

  .reviews-stage-modern {
    height: 390px;
  }

  .review-card-modern {
    height: 320px;
  }

  .review-card-inner {
    padding: 24px;
  }

  .reviews-dots {
    display: none;
  }
}
