/* ========================================
   STYLES POUR LE FORMULAIRE D'AVIS
   ======================================== */

.avis-formulaire-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.avis-formulaire-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.avis-formulaire .form-group {
    margin-bottom: 20px;
}

.avis-formulaire label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.avis-formulaire .required {
    color: #e74c3c;
}

.avis-formulaire input[type="text"],
.avis-formulaire input[type="email"],
.avis-formulaire textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.avis-formulaire input:focus,
.avis-formulaire textarea:focus {
    outline: none;
    border-color: #3498db;
}

.avis-formulaire textarea {
    resize: vertical;
    min-height: 100px;
}

/* Notation par étoiles - Formulaire */
.avis-notation-stars {
    display: flex;
    gap: 5px;
    font-size: 32px;
    margin-top: 5px;
}

.avis-notation-stars .star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
    user-select: none;
}

.avis-notation-stars .star:hover,
.avis-notation-stars .star.hover {
    color: #ffd700;
    transform: scale(1.1);
}

.avis-notation-stars .star.selected {
    color: #ffd700;
}

/* Bouton de soumission */
.avis-submit-btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.avis-submit-btn:hover {
    background: #2980b9;
}

.avis-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Messages */
.avis-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.avis-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.avis-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   STYLES POUR LE CAROUSEL D'AVIS
   ======================================== */

.avis-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.avis-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.avis-carousel-item {
    display: none;
    animation: fadeIn 0.5s;
}

.avis-carousel-item.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.avis-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.avis-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.avis-date {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.avis-rating {
    display: flex;
    gap: 3px;
    font-size: 24px;
}

.avis-rating .star {
    color: #ddd;
}

.avis-rating .star.filled {
    color: #ffd700;
}

.avis-card-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* Contrôles du carousel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-control:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: -60px;
}

.carousel-control.next {
    right: -60px;
}

/* Indicateurs */
.carousel-indicators {
    text-align: center;
    margin-top: 20px;
}

.carousel-indicators .indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators .indicator.active,
.carousel-indicators .indicator:hover {
    background: #3498db;
}

/* Pas d'avis */
.no-avis {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .avis-formulaire-container,
    .avis-carousel-container {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .avis-card {
        padding: 20px;
    }
    
    .avis-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
