h2 {
    text-align: center;
    color: #0000008a;
    margin-top: 30px;
}
.avis-top {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.avis-stats {
    flex: 1;
}

.avis-buttons button {
    background: #ddc2b4;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.avis-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    position: relative;
    transition: opacity 0.15s ease;
}

.avis-card {
    background: linear-gradient(120deg, #ffffff, #fdf6f9);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #f7cfe3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 120px;
    position: relative;
}
.avis-stars {
    color: #e7b6c9;
    margin-top: 6px;
}

.avis-comment {
    margin-top: 10px;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.avis-comment.expanded {
    max-height: 200px;
    overflow-y: auto;
}

.toggle-comment {
    margin-top: 8px;
    background: none;
    border: none;
    color: #e7b6c9;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 1.5rem;
}

form label {
    display: block;
    margin-top: 15px;
}

form input,
form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

form button {
    margin-top: 20px;
    width: 100%;
    background: #e7b6c9;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 8px;
}

.stars span {
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
}

.stars span.selected {
    color: #e7b6c9;
}

#pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 30px;
}

#pagination button {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e7b6c9;
    background: white;
    color: #e7b6c9;
    cursor: pointer;
}

#pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

#pagination button:hover:not(:disabled) {
    background: #e7b6c9;
    color: white;
}
@media (max-width: 768px) {
    .avis-container {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .avis-card {
        min-height: auto;
    }
}