/* =====================
   CARROUSEL DES AVIS
   ===================== */

/* Conteneur principal du carrousel */
.carousel-container {
  position: relative;
  width: 100%;
  margin-top: 3.5rem;
  overflow: visible; /* Évite de couper les avis */
}

/* Grille des avis (conteneur des cartes) */
.temo-grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2px;
  padding: 0;
  width: 100%;
  align-items: stretch;
}

/* Carte individuelle d'avis */
.temo-card {
  flex: 0 0 calc(100% / 3 - 8px); /* 3 cartes en desktop */
  margin: 0 4px;
  min-height: 380px; /* Hauteur minimale pour éviter le découpage */
  background: var(--lin);
  padding: 2.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Répartit l'espace verticalement */
  box-sizing: border-box; /* Inclut le padding dans la largeur */
}

/* Guillemets */
.temo-quote {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.7;
  color: var(--sable);
  margin-bottom: 1.4rem;
  display: block;
}

/* Conteneur des étoiles */
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.1rem;
}

/* Étoile individuelle */
.star {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--sable); /* Couleur par défaut (étoile remplie) */
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Texte de l'avis */
.temo-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--forest);
  margin-bottom: 1.8rem;
  flex-grow: 1; /* Permet au texte de prendre l'espace disponible */
}

/* Auteur de l'avis */
.temo-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto; /* Aligne en bas du conteneur */
}

/* Avatar (initiales) */
.temo-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--bordeaux);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--sable);
  flex-shrink: 0;
}

/* Nom de l'auteur */
.temo-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
}

/* Localisation et service */
.temo-location {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Flèches du carrousel */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1.2rem;
  color: var(--bordeaux);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: -15px;
}

.carousel-next {
  right: -15px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Adaptation pour tablette (2 cartes) */
@media (max-width: 1024px) {
  .temo-card {
    flex: 0 0 calc(50% - 8px); /* 2 cartes */
    min-height: 350px;
  }
}

/* Adaptation pour mobile (1 carte) */
@media (max-width: 768px) {
  .temo-card {
    flex: 0 0 100%; /* 1 carte */
    min-height: 300px;
  }
  .temo-grid {
    padding: 0;
  }
  .carousel-prev {
    left: -10px;
  }
  .carousel-next {
    right: -10px;
  }
}