/* ============================================================
   Avis / notation promoteur (page /promoteur-immobilier/<slug>/).
   Token-driven (--vefa-*) ; étoiles or, CTA en accent de marque.
   ============================================================ */
.dr-reviews__empty {
    color: var(--vefa-text-muted, #6c757d);
    margin: 0 0 1rem;
}

/* --- Étoiles décoratives --- */
.dr-stars { display: inline-flex; gap: 2px; }
.dr-stars i { color: #f5a623; font-size: 0.95rem; }
.dr-stars i.far { color: #d8d8d8; }

/* --- Résumé : note moyenne + distribution --- */
.dr-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    align-items: center;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid var(--vefa-border, #e2e8f0);
    margin-bottom: 1.25rem;
}
.dr-reviews__score { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.dr-reviews__avg { font-size: 2.6rem; font-weight: 800; color: var(--vefa-text, #0f172a); line-height: 1; }
.dr-reviews__outof { color: var(--vefa-text-muted, #6c757d); font-weight: 600; }
.dr-reviews__score .dr-stars { font-size: 1.1rem; margin-left: 0.3rem; }
.dr-reviews__score .dr-stars i { font-size: 1.1rem; }
.dr-reviews__count { color: var(--vefa-text-muted, #6c757d); font-size: 0.9rem; width: 100%; }

.dr-reviews__dist { flex: 1; min-width: 220px; max-width: 360px; }
.dr-reviews__dist-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 4px; }
.dr-reviews__dist-label { font-size: 0.82rem; color: var(--vefa-text-muted, #6c757d); width: 28px; white-space: nowrap; }
.dr-reviews__dist-label i { color: #f5a623; font-size: 0.7rem; }
.dr-reviews__dist-bar { flex: 1; height: 8px; background: var(--vefa-border-subtle, #f1f5f9); border-radius: 999px; overflow: hidden; }
.dr-reviews__dist-fill { display: block; height: 100%; background: #f5a623; border-radius: 999px; }
.dr-reviews__dist-n { font-size: 0.8rem; color: var(--vefa-text-muted, #6c757d); width: 24px; text-align: right; }

/* --- Zone formulaire --- */
.dr-reviews__formwrap {
    background: var(--vefa-accent-soft, rgba(255, 64, 0, 0.06));
    border: 1px solid var(--vefa-border, #e2e8f0);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.dr-reviews__login, .dr-reviews__note, .dr-reviews__status { margin: 0; color: var(--vefa-text-muted, #6c757d); font-size: 0.95rem; }
.dr-reviews__login a { color: var(--vefa-accent, #ff4000); font-weight: 600; }
.dr-reviews__status { margin-bottom: 0.85rem; color: var(--vefa-text, #0f172a); }

.dr-review-form__title { font-size: 1.05rem; font-weight: 700; color: var(--vefa-text, #0f172a); margin: 0 0 0.75rem; }
.dr-review-form__error { color: #dc3545; font-size: 0.9rem; margin: 0 0 0.6rem; }

/* Notation par étoiles (radios, pur CSS, DOM en 5→1 + row-reverse) */
.dr-rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 0.85rem; }
.dr-rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.dr-rating-input label { font-size: 1.7rem; color: #d8d8d8; cursor: pointer; transition: color 0.12s ease, transform 0.12s ease; }
.dr-rating-input label:hover { transform: scale(1.1); }
.dr-rating-input input:checked ~ label,
.dr-rating-input label:hover,
.dr-rating-input label:hover ~ label { color: #f5a623; }
.dr-rating-input input:focus-visible + label { outline: 2px solid var(--vefa-accent, #ff4000); outline-offset: 2px; border-radius: 4px; }

.dr-review-form__input,
.dr-review-form__textarea {
    width: 100%;
    border: 1px solid var(--vefa-border-strong, #cbd5e1);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    color: var(--vefa-text, #0f172a);
    background: var(--vefa-surface, #ffffff);
    margin-bottom: 0.7rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dr-review-form__input:focus,
.dr-review-form__textarea:focus {
    outline: none;
    border-color: var(--vefa-accent, #ff4000);
    box-shadow: 0 0 0 0.15rem var(--vefa-accent-soft, rgba(255, 64, 0, 0.12));
}
.dr-review-form__textarea { resize: vertical; }

.dr-review-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--vefa-accent, #ff4000);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.dr-review-form__submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dr-review-form__note { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--vefa-text-subtle, #94a3b8); }

.dr-review-thanks { display: flex; align-items: center; gap: 0.85rem; color: var(--vefa-text, #0f172a); }
.dr-review-thanks i { color: #198754; font-size: 1.6rem; }
.dr-review-thanks p { margin: 0.15rem 0 0; color: var(--vefa-text-muted, #6c757d); font-size: 0.9rem; }

/* --- Liste des avis --- */
.dr-reviews__list { list-style: none; padding: 0; margin: 0; }
.dr-reviews__item { padding: 1rem 0; border-bottom: 1px solid var(--vefa-border-subtle, #f1f5f9); }
.dr-reviews__item:last-child { border-bottom: none; }
.dr-reviews__item-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.dr-reviews__author { font-weight: 700; color: var(--vefa-text, #0f172a); }
.dr-reviews__verified { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: #198754; background: rgba(25, 135, 84, 0.10); padding: 2px 9px; border-radius: 999px; }
.dr-reviews__date { color: var(--vefa-text-subtle, #94a3b8); font-size: 0.82rem; margin-left: auto; }
.dr-reviews__item-title { font-weight: 600; color: var(--vefa-text, #0f172a); margin: 0.35rem 0 0.2rem; }
.dr-reviews__item-content { color: var(--vefa-text-muted, #475569); line-height: 1.6; margin: 0.2rem 0 0; }

/* --- Droit de réponse du promoteur --- */
.dr-review-resp-slot { margin-top: 0.6rem; }
.dr-review-response {
    border-left: 3px solid var(--vefa-primary, #3498db);
    background: var(--vefa-primary-soft, rgba(52, 152, 219, 0.06));
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 0.85rem;
    margin-left: 0.5rem;
}
.dr-review-response__label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--vefa-primary-dark, #2980b9); }
.dr-review-response__content { margin: 0.25rem 0 0; color: var(--vefa-text, #0f172a); line-height: 1.55; font-size: 0.92rem; }
.dr-review-response-form { margin-top: 0.5rem; }
.dr-review-response-form__submit {
    display: inline-flex; align-items: center; gap: 0.4rem;
    border: 1px solid var(--vefa-primary, #3498db); background: transparent;
    color: var(--vefa-primary-dark, #2980b9); border-radius: 999px;
    padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.dr-review-response-form__submit:hover { background: var(--vefa-primary, #3498db); color: #ffffff; }
