/* Histoire Marketing Pro - CSS Front */

.hmp-avis-section {
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 30px;
}
.hmp-avis-section h3 {
    color: #1a472a;
    font-size: 18px;
    margin-bottom: 16px;
}

/* Résumé notes */
.hmp-resume {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.hmp-score-global { text-align: center; min-width: 100px; }
.hmp-score-chiffre { font-size: 48px; font-weight: 700; color: #1a472a; line-height: 1; }
.hmp-etoiles-grandes { color: #f59e0b; font-size: 20px; margin: 4px 0; }
.hmp-total-avis { font-size: 13px; color: #6b7280; }
.hmp-omnibus { font-size: 11px; color: #16a34a; margin-top: 4px; }

/* Barres de notes */
.hmp-barres { flex: 1; }
.hmp-barre-ligne {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 13px;
}
.hmp-barre-lbl { width: 22px; text-align: right; color: #6b7280; }
.hmp-barre-piste {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.hmp-barre-rempli {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
    transition: width 0.4s;
}
.hmp-barre-nb { width: 28px; font-size: 12px; color: #9ca3af; }

/* Formulaire avis */
.hmp-formulaire {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.hmp-formulaire h3 { color: #1a472a; margin-bottom: 14px; }

/* Sélecteur étoiles */
.hmp-etoiles-picker { display: flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 12px; }
.hmp-etoiles-picker input[type="radio"] { display: none; }
.hmp-etoiles-picker label {
    font-size: 30px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
}
.hmp-etoiles-picker input:checked ~ label,
.hmp-etoiles-picker label:hover,
.hmp-etoiles-picker label:hover ~ label { color: #f59e0b; }

.hmp-champ { margin-bottom: 12px; }
.hmp-champ label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.hmp-input,
.hmp-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.hmp-textarea { resize: vertical; }
.hmp-btn-soumettre {
    background: #1a472a;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.hmp-btn-soumettre:hover { background: #2d6a4f; }
.hmp-note-form { font-size: 12px; color: #9ca3af; margin-top: 8px; }

/* Message non-acheteur */
.hmp-non-acheteur { color: #6b7280; font-size: 14px; }

/* Liste avis */
.hmp-liste-avis h3 { color: #1a472a; margin-bottom: 16px; }
.hmp-avis-item { padding: 16px 0; border-bottom: 1px solid #f3f4f6; }
.hmp-avis-item:last-child { border-bottom: none; }

.hmp-avis-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.hmp-avis-auteur { display: flex; align-items: center; gap: 8px; }
.hmp-verifie {
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.hmp-avis-date { font-size: 12px; color: #9ca3af; }
.hmp-avis-etoiles { color: #f59e0b; margin-bottom: 6px; }
.hmp-avis-titre { font-size: 15px; font-weight: 600; margin: 4px 0; color: #111; }
.hmp-avis-texte { font-size: 14px; color: #4b5563; line-height: 1.6; }

/* Réponse admin */
.hmp-reponse-admin {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
}
.hmp-reponse-admin strong { color: #1a472a; }

/* Utilité */
.hmp-utilite {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}
.hmp-btn-utile {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
}
.hmp-btn-utile:hover { background: #f3f4f6; }

/* Vide */
.hmp-vide { text-align: center; padding: 20px; color: #9ca3af; }

/* Messages */
.hmp-succes {
    background: #dcfce7;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
}
.hmp-erreur {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 6px;
}
