

#avis-wrapper {
    max-width: 100%;
    margin: 25px auto; /* Ajoute un espace de 25px en haut et en bas */
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Conteneur des avis */
#avis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between; /* Répartition des avis */
    padding-bottom: 10px;
}

/* Les avis prennent 20% de la largeur sur grand écran (5 par ligne) */
.avis {
    background: white;
    padding: 15px;
    width: calc(100% / 5 - 20px); /* 5 avis par ligne */
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: left;
    flex-shrink: 0;
}

.avis strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.avis-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.etoiles {
    color: gold;
    margin-bottom: 5px;
}

.avis .full-text {
    display: none;
}

.lire-plus, .lire-moins {
    color: #007BFF;
    cursor: pointer;
    font-weight: bold;
    display: inline;
    margin-top: 5px;
}

/* Lien "Lire tous les avis" */
#lire-tous {
    display: block;
    text-align: right;
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

#lire-tous:hover {
    text-decoration: underline;
}

/* Responsive : 2 avis par ligne sur tablette */
@media (max-width: 1024px) {
    .avis {
        width: calc(100% / 2 - 20px); /* 2 avis par ligne */
    }
}

/* Responsive : 1 avis par ligne sur mobile */
@media (max-width: 600px) {
    .avis {
        width: 100%; /* 1 avis par ligne */
    }
}
