* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e6cfb0;
    color: #333;
    line-height: 1.6;
}

.avis-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.avis-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2rem;
}

/* Section Formulaire */
.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.form-section h2 {
    margin-bottom: 20px;
    color: #34495e;
    font-size: 1.3rem;
}

.message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.avis-form .form-group {
    margin-bottom: 20px;
}

.avis-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.avis-form input[type="text"],
.avis-form input[type="email"],
.avis-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.avis-form input:focus,
.avis-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Étoiles interactives */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f1c40f;
}

.btn-submit {
    background: #3498db;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #2980b9;
}

/* Liste des avis */
.avis-list h2 {
    margin-bottom: 25px;
    color: #34495e;
}

.no-avis {
    text-align: center;
    color: #888;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
}

.avis-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.avis-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.avis-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.avis-meta .nom {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: #f1c40f;
}

.note-text {
    margin-left: 10px;
    color: #888;
    font-size: 0.9rem;
}

.avis-meta .date {
    color: #999;
    font-size: 0.85rem;
}

.avis-content p {
    color: #555;
    line-height: 1.7;
}

/* Réponse Admin */
.reponse-admin {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #27ae60;
}

.reponse-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.badge-admin {
    background: #27ae60;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.date-reponse {
    color: #999;
    font-size: 0.8rem;
}

.reponse-admin p {
    color: #444;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .avis-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .star-rating label {
        font-size: 1.8rem;
    }
}