/**
 * Testimonials Section (Avis) - Dioqa Model Corporate
 * 
 * @package Dioqa_Model_Corporate
 */

/* Section principale */
.avis-section {
  background: white;
  /* Padding géré dynamiquement via ACF */
  position: relative;
  overflow: hidden;
}

/* Image de gauche */
.avis-image {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 612px;
  height: 475px;
  border-radius: 0 var(--radius-xxl) var(--radius-xxl) 0;
  overflow: hidden;
  z-index: 1;
}

.avis-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Container du slider */
.avis-slider-container {
  position: relative;
  z-index: 2;
  margin-left: -100px;
  padding-left: 100px;
}

/* Navigation */
.avis-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin-bottom: 35px;
}

.avis-nav-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.avis-nav-btn:hover {
  background: var(--bs-gray-light);
}

.avis-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--bs-gray-dark);
}

/* Container des cartes */
.avis-cards-container {
  height: 270px;
  overflow: hidden;
  position: relative;
  margin-bottom: 35px;
}

/* Carte d'avis */
.avis-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-xl);
  padding: 25px;
  width: 424px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  justify-content: flex-end;
  top: 15px;
}

/* Texte de l'avis */
.avis-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--bs-text);
  margin: 0;
  width: 100%;
  text-align: left;
}

/* Informations auteur */
.avis-author-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  width: 131px;
}

.avis-author-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  color: var(--bs-gray-dark);
  margin: 0;
  white-space: nowrap;
}

/* Étoiles */
.avis-stars {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.avis-star {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.avis-star svg {
  width: 100%;
  height: 100%;
  fill: var(--bs-gray-light);
}

.avis-star.filled svg {
  fill: var(--bs-primary);
}

/* Pagination */
.avis-pagination {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  width: 1320px;
}

.avis-pagination-dots {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 984px;
}

.avis-dot {
  width: 60px;
  height: 5px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  background: var(--bs-gray-light);
  transition: all 0.3s ease;
}

.avis-dot.active {
  background: var(--bs-primary);
}

.avis-dot:hover {
  background: var(--bs-primary);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
  .avis-image {
    width: 40%;
    height: 400px;
  }

  .avis-cards-container {
    max-width: 100%;
  }

  .avis-card {
    width: 350px;
  }

  .avis-card:nth-child(2) {
    left: 370px !important;
  }

  .avis-card:nth-child(3) {
    left: 740px !important;
  }

  .avis-card:nth-child(4) {
    left: 1110px !important;
  }

  .avis-card:nth-child(5) {
    left: 1480px !important;
  }

  .avis-card:nth-child(6) {
    left: 1850px !important;
  }
}

@media (max-width: 768px) {
  .avis-image {
    position: relative;
    width: 100%;
    height: 300px;
    top: auto;
    transform: none;
    margin-bottom: 2rem;
    border-radius: var(--radius-xxl);
  }

  .avis-slider-container {
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .avis-cards-container {
    height: auto;
    overflow: visible;
  }

  .avis-card {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    left: auto !important;
  }

  .avis-pagination {
    width: 100%;
    justify-content: center;
  }

  .avis-pagination-dots {
    width: auto;
  }
}

