/**
 * Styles CSS pour le bloc d'avis
 */
/* Grille responsive */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Valeur par défaut, remplacée par le style inline */
  gap: 20px;
}
@media (max-width: 1024px) {
  .avis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .avis-grid {
    grid-template-columns: 1fr;
  }
}
/* Styles pour chaque élément d'avis */
.avis-item {
  background-color: #e5e9da;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avis-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Wrapper de titre avec image et contenu */
.avis-title-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
/* Image à la une (ronde) */
.avis-featured-image {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}
.avis-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Zone de titre et notes */
.avis-title-content {
  flex: 1;
}
.avis-title-content h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.2em;
  color: #333;
}
/* Notes en étoiles */
.avis-rating {
  display: flex;
  margin-bottom: 10px;
}
.avis-rating .star {
  color: #DD5C01;
  margin-right: 2px;
}
.avis-rating .star-empty {
  color: #dddddd;
  margin-right: 2px;
}
/* Extrait et contenu complet */
.avis-excerpt {
  margin-bottom: 15px;
  color: #555;
}
.avis-toggle {
  color: #62754B;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  transition: color 0.2s;
}
.avis-toggle:hover {
  color: #DD5C01;
  text-decoration: underline;
}
/* Contenu complet - masqué par défaut */
.avis-content-full {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
/* Classe active pour afficher le contenu complet */
.avis-content-full.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}
/* Animation pour l'apparition du contenu */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Styles pour l'éditeur */
.wp-block-xlt-avis-block {
  padding: 10px;
  background: #f8f9fa;
  border: 1px dashed #ddd;
}
