.comments-thread {
    width: 100%;
}

.comment-item {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.comment-body {
    word-break: break-word;
}

.comment-form-feedback.is-success {
    display: block;
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.08);
    color: #bbf7d0;
}

.comment-form-feedback.is-error {
    display: block;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
}
.comment-form textarea,
.comment-form select,
.comment-form input[type="text"],
.comment-form input[type="hidden"] {
    color: #dce2f6;
}

.comment-form textarea,
.comment-form select,
.comment-form input[type="text"] {
    background-color: #19202e !important;
    border-color: rgba(88, 66, 55, 0.2) !important;
}

.comment-form textarea::placeholder,
.comment-form input[type="text"]::placeholder {
    color: #64748b;
    opacity: 1;
}

.comment-form textarea:focus,
.comment-form select:focus,
.comment-form input[type="text"]:focus {
    color: #dce2f6;
    background-color: #232a39 !important;
    border-color: #f97316 !important;
    outline: none;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.comment-form select option {
    background: #19202e;
    color: #dce2f6;
}
.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Rating : tuiles numérotées (tap target ≥ 44 px) ──────────────── */
.rating-stars {
    gap: 0.3rem;
    flex-wrap: nowrap;   /* une seule ligne */
}

.rating-star {
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 2.5 rem = 40 px : 5 × 40 + 4 × 5 = 220 px — tient dans ~240 px de colonne */
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(100, 116, 139, 0.22) !important;
    background: rgba(15, 23, 42, 0.55) !important;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
    cursor: pointer;
}

@media (hover: hover) {
    .rating-star:hover {
        color: #fb923c;
        border-color: rgba(249, 115, 22, 0.45) !important;
        background: rgba(249, 115, 22, 0.09) !important;
    }
}

.rating-star.is-active {
    color: #fff;
    border-color: rgba(249, 115, 22, 0.7) !important;
    background: rgba(249, 115, 22, 0.28) !important;
}

/* Dégradé d'intensité : les cases actives 4 et 5 sont plus vives */
.rating-star[data-value="4"].is-active,
.rating-star[data-value="5"].is-active {
    background: rgba(249, 115, 22, 0.4) !important;
    border-color: #f97316 !important;
}

.rating-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 2.5rem;
    margin-left: 0.25rem;
    color: #475569;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
    transition: color 0.14s ease;
    flex-shrink: 0;
}

.rating-reset .material-symbols-outlined {
    font-size: 1rem;
    pointer-events: none;
}

.rating-reset:hover {
    color: #cbd5e1;
}

/* Labels min/max sous les tuiles */
.rating-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    padding: 0 0.1rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}
.comment-form .rounded-xl.border.border-outline-variant\/10.bg-surface-container-low,
.comment-form .rounded-xl.border.border-outline-variant\/10.bg-surface-container-high {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}