/* Système d'avis - Étoiles */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

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

.stars-display i {
    transition: color 0.2s ease;
}

.star-filled {
    color: #fbbf24;
}

.star-half {
    color: #fbbf24;
}

.star-empty {
    color: #e5e7eb;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--gris-doux);
    font-weight: 500;
}

/* Tailles des étoiles */
.stars-normal .stars-display i {
    font-size: 1rem;
}

.stars-small .stars-display i {
    font-size: 0.8rem;
}

.stars-small .rating-text {
    font-size: 0.8rem;
}

/* Étoiles de vote (cliquables) */
.voting-stars {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.voting-stars p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--noir-doux);
    font-size: 0.9rem;
}

.stars-vote {
    display: flex;
    gap: 4px;
}

.vote-star {
    font-size: 1.2rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-star:hover,
.vote-star.hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.vote-star.selected {
    color: #fbbf24;
}

.vote-disabled {
    font-size: 0.9rem;
    color: var(--gris-doux);
    font-style: italic;
    margin: 0.75rem 0;
}

/* Animation de soumission */
.voting-stars.submitting {
    opacity: 0.6;
    pointer-events: none;
}

.vote-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.vote-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .product-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .stars-vote {
        gap: 8px;
    }
    
    .vote-star {
        font-size: 1.4rem;
    }
}

/* Intégration dans les cards produits */
.product-card .product-rating {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-card .stars-display i {
    font-size: 0.9rem;
}

.product-card .rating-text {
    font-size: 0.8rem;
}