﻿.card.comments .comment-list,
.card.comments .replies {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Conteneur principal du commentaire */
.comment-item {
    display: flex;
    padding: 12px 0;
    border-top: 1px solid var(--border, #e7e7e7);
}

    .comment-item:first-child {
        border-top: 0;
    }

/* Avatar à gauche */
.comment-avatar {
    margin-right: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary, #0a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
}

.reply-editor .avatar-circle {
    width: 32px;
    height: 32px;
    font-size: .8rem;
}

/* Corps du commentaire */
.comment-main {
    flex: 1;
}

/* Ligne auteur + temps */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--muted, #666);
    margin-bottom: 3px;
}

.comment-author {
    font-weight: 600;
    color: var(--text, #111);
}

/* Texte du commentaire */
.comment-text {
    white-space: pre-wrap;
    margin: 2px 0 6px;
    font-size: .95rem;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .85rem;
    color: var(--muted, #666);
    margin-top: 4px;
}

    .comment-actions .link {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: .85rem;
        color: var(--muted, #666);
    }

        .comment-actions .link:hover {
            color: var(--primary, #0a6);
        }

    .comment-actions .danger {
        color: #c33;
    }

/* Le bouton "View/Hide X replies" devient un lien texte */
.replies-toggle {
    margin-top: 6px;
    margin-left: 52px; /* aligné avec le début du texte des réponses */
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: .85rem;
    color: var(--primary, #0a6);
}

    .replies-toggle:hover {
        text-decoration: underline;
    }

.icon-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: .9rem;
}

/* Bloc des réponses : plus de marge + petite barre verticale plus discrète */
.replies {
    margin-top: 4px;
    margin-left: 52px; /* plus que ton ancien 16px */
    padding-left: 12px;
    border-left: 1px solid var(--border, #e0e0e0);
}

/* Si tu veux que l’éditeur de réponse soit aussi décalé */
.reply-editor {
    margin-top: 6px;
    margin-left: 52px;
}

.replies-toggle {
    margin-top: 4px;
    margin-left: 0;
    border: none;
    background: none;
    color: var(--primary, #0a6);
    font-size: .85rem;
    cursor: pointer;
    padding: 0;
}

/* Editor style YouTube */
.comment-editor.youtube-editor {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}

.comment-editor .comment-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border, #ddd);
    border-radius: 16px;
    resize: vertical;
    font-size: .95rem;
}

.comment-limit {
    margin-top: 4px;
    text-align: right;
    color: var(--muted, #666);
    font-size: .8rem;
}

.editor-body {
    flex: 1;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

/* Editor de réponse un peu plus compact */
.reply-editor {
    margin-top: 6px;
}

    .reply-editor .comment-editor.youtube-editor .comment-input {
        border-radius: 12px;
        font-size: .9rem;
    }

/* Skeleton inchangé */
.skeleton-lines > div {
    height: 12px;
    background: #eee;
    margin-bottom: 8px;
    border-radius: 6px;
}

.comment-login-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border, #ddd);
    border-radius: 16px;
    background: var(--surface-2, #f7f7f7);
    color: var(--muted, #666);
}

.comment-login-placeholder__text {
    font-size: .95rem;
}

.comment-login-placeholder__link {
    color: var(--primary, #0a6);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.comment-login-placeholder__link:hover {
    text-decoration: underline;
}
