/* =========================
   COMMENTS — markup: #comments .comment-list / ol.children
   ========================= */

#comments.comments-area{
    --c-bg: #fff;
    --c-bg-alt: #fbfbfc;
    --c-border: rgba(0,0,0,.10);
    --c-border-strong: rgba(0,0,0,.16);
    --c-text: #111;
    --c-muted: rgba(0,0,0,.62);
    --c-muted-2: rgba(0,0,0,.48);
    --c-link: #d42a23; /* was #0a66c2 */
    --c-radius: 14px;
    --c-shadow: 0 8px 20px rgba(0,0,0,.06);

    color: var(--c-text);
}

/* Title */
#comments .comments-title{
    margin: 0 0 18px;
    font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.45rem);
    line-height: 1.25;
    letter-spacing: -.01em;
}
#comments .comments-title span{
    font-weight: 700;
}

/* Lists reset */
#comments ol.comment-list,
#comments ol.children{
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Spacing between top-level comments */
#comments .comment-list > li.comment{
    margin: 0 0 14px;
}

/* Card container */
#comments li.comment > .comment-body{
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow);
    padding: 16px 16px 12px;
    position: relative;
    overflow: hidden;
}

/* Slight alternation if you want to leverage odd/even WP classes */
#comments li.comment.odd > .comment-body{
    background: var(--c-bg-alt);
}

/* Inner header layout: avatar + author block */
#comments .comment-author.vcard{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
}

/* Avatar: markup uses .avatar.avatar-74 */
#comments .comment-author.vcard img.avatar{
    width: 74px;
    height: 74px;
    border-radius: 14px; /* matches card feel */
    flex: 0 0 74px;
    object-fit: cover;
    border: 1px solid var(--c-border);
    background: #fff;
}

/* Author name */
#comments .comment-author.vcard cite.fn{
    font-style: normal;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--c-text);
}

/* "dit :" */
#comments .comment-author.vcard .says{
    color: var(--c-muted);
    margin-left: 6px;
    font-weight: 500;
    white-space: nowrap;
}

/* Meta line */
#comments .comment-meta.commentmetadata{
    margin: 0 0 12px;
    font-size: .92rem;
    color: var(--c-muted);
}
#comments .comment-meta.commentmetadata a{
    color: var(--c-link);
    text-decoration: none;
}
#comments .comment-meta.commentmetadata a:hover{
    text-decoration: underline;
}
#comments .comment-meta .comment-edit-link{
    color: var(--c-muted-2);
    font-size: .92em;
}

/* Comment text */
#comments .comment-body p{
    margin: 0 0 10px;
    line-height: 1.55;
}
#comments .comment-body p:last-of-type{
    margin-bottom: 10px;
}

/* Links inside comment */
#comments .comment-body a{
    color: var(--c-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}
#comments .comment-body a:hover{
    text-decoration-thickness: 2px;
}

/* Like/Dislike plugin block (cld-like-dislike-wrap) */
#comments .cld-like-dislike-wrap{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: rgba(0,0,0,.02);
    margin: 6px 0 10px;
}

#comments .cld-like-dislike-wrap .cld-common-wrap{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#comments .cld-like-dislike-wrap a.cld-like-dislike-trigger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--c-muted);
}
#comments .cld-like-dislike-wrap a.cld-like-dislike-trigger:hover{
    background: rgba(0,0,0,.05);
    border-color: var(--c-border);
    color: var(--c-text);
}

#comments .cld-like-dislike-wrap .cld-count-wrap{
    min-width: 1.25em;
    text-align: center;
    font-weight: 700;
    color: var(--c-muted);
}

/* Reply link */
#comments .reply{
    margin-top: 6px;
}
#comments a.comment-reply-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--c-link);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}
#comments a.comment-reply-link:hover{
    background: rgba(212,42,35,.08); /* was rgba(10,102,194,.08) */
    border-color: rgba(212,42,35,.20); /* was rgba(10,102,194,.20) */
}

/* =========================
   THREADING / INDENTATION
   markup: <ol class="children"><li class="comment ... depth-2">...
   ========================= */

#comments ol.children{
    margin-top: 10px;
    padding-left: 22px; /* base indent */
    position: relative;
}

/* Vertical guide line for children block */
#comments ol.children::before{
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,.06);
    border-radius: 2px;
}

/* Child comment spacing */
#comments ol.children > li.comment{
    margin: 0 0 12px;
}

/* Slightly flatter shadow for nested comments */
#comments li.comment.depth-2 > .comment-body,
#comments li.comment.depth-3 > .comment-body,
#comments li.comment.depth-4 > .comment-body{
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* Per-depth extra indent (WP adds depth-N classes) */
#comments li.comment.depth-2{ margin-left: 0; }
#comments li.comment.depth-3{ margin-left: 14px; }
#comments li.comment.depth-4{ margin-left: 28px; }
#comments li.comment.depth-5{ margin-left: 42px; }

/* Little "connector" elbow from vertical line to card */
#comments ol.children > li.comment > .comment-body::before{
    content:"";
    position:absolute;
    left:-22px;
    top: 26px;
    width: 22px;
    height: 2px;
    background: rgba(0,0,0,.06);
}

/* Highlight post author */
#comments li.bypostauthor > .comment-body{
    border-color: rgba(212,42,35,.28); /* was rgba(10,102,194,.28) */
}
#comments li.bypostauthor > .comment-body::after{
    content: "Auteur";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: rgba(212,42,35,.95); /* was rgba(10,102,194,.95) */
    background: rgba(212,42,35,.10); /* was rgba(10,102,194,.10) */
    border: 1px solid rgba(212,42,35,.18); /* was rgba(10,102,194,.18) */
    padding: 4px 8px;
    border-radius: 999px;
}

/* =========================
   RESPOND FORM (#respond)
   ========================= */

#comments #respond.comment-respond{
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    background: var(--c-bg);
    box-shadow: var(--c-shadow);
}

#comments #reply-title{
    margin: 0 0 12px;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

#comments .logged-in-as{
    margin: 0 0 12px;
    color: var(--c-muted);
    font-size: .95rem;
}
#comments .logged-in-as a{
    color: var(--c-link);
    text-decoration: none;
}
#comments .logged-in-as a:hover{
    text-decoration: underline;
}

#comments .comment-form-comment label{
    display: block;
    font-weight: 700;
    margin: 0 0 6px;
}

#comments textarea#comment{
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    line-height: 1.4;
    background: #fff;
}
#comments textarea#comment:focus{
    outline: none;
    border-color: rgba(212,42,35,.45); /* was rgba(10,102,194,.45) */
    box-shadow: 0 0 0 4px rgba(212,42,35,.12); /* was rgba(10,102,194,.12) */
}

#comments .form-submit{
    margin: 10px 0 0;
}
#comments input#submit.submit{
    appearance: none;
    border: 1px solid rgba(212,42,35,.35); /* was rgba(10,102,194,.35) */
    background: rgba(212,42,35,.10); /* was rgba(10,102,194,.10) */
    color: rgba(212,42,35,.98); /* was rgba(10,102,194,.98) */
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
}
#comments input#submit.submit:hover{
    background: rgba(212,42,35,.14); /* was rgba(10,102,194,.14) */
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 520px){
    #comments li.comment > .comment-body{
        padding: 14px 12px 10px;
    }
    #comments .comment-author.vcard img.avatar{
        width: 56px;
        height: 56px;
        border-radius: 12px;
        flex-basis: 56px;
    }
    #comments ol.children{
        padding-left: 16px;
    }
    #comments ol.children::before{
        left: 7px;
    }
    #comments ol.children > li.comment > .comment-body::before{
        left: -16px;
        width: 16px;
    }
}
