/* ============================================
   WIDGET AVIS — dépôt d'avis avec notation
   (app/includes/avis_widget.php)
   ============================================ */

.avis-widget-moyenne {
    font-weight: bold;
    color: var(--color-yellow-vif);
    margin: 10px 0;
}

.avis-widget-vide,
.avis-widget-connexion,
.avis-widget-merci {
    color: #cbd5e1;
    font-style: italic;
    margin: 10px 0;
}

.avis-widget-connexion a {
    color: var(--color-yellow-vif);
    font-weight: bold;
}

.avis-form {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 201, 71, 0.25);
}

.avis-form p {
    margin: 0 0 10px 0;
    color: #cbd5e1;
}

.avis-form-etoiles {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 1.6em;
}

.avis-form-etoiles input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avis-form-etoiles label {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.15s ease;
}

.avis-form-etoiles label:hover,
.avis-form-etoiles label:hover ~ label,
.avis-form-etoiles input:checked ~ label {
    color: var(--color-yellow-vif);
}

.avis-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(255, 201, 71, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.avis-form textarea:focus {
    outline: none;
    border-color: var(--color-yellow-vif);
}

.avis-form button {
    margin-top: 10px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--color-yellow-vif) 0%, #ffb347 100%);
    color: var(--color-bg-dark);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.avis-form button:hover {
    transform: translateY(-2px);
}

.avis-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.avis-form-message {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--color-yellow-vif);
}
