/* CSS pour le système de commentaires */

.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--c-border);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--c-text);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.comment-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 20px;
    margin-bottom: 20px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 700;
    color: var(--c-accent);
}

.comment-date {
    color: var(--c-text-2);
}

.comment-content {
    line-height: 1.6;
    color: var(--c-text);
    white-space: pre-line;
}

/* Formulaire de commentaire */
.comment-form-container {
    background: var(--c-surface2);
    padding: 30px;
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
    scroll-margin-top: 100px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--c-text);
}

/* Honeypot */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

.comment-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    color: var(--c-text);
    font-family: inherit;
}

.comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.newsletter-opt-in {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-comment {
    background: var(--c-accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--r-md);
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-comment:hover {
    opacity: 0.9;
}

.comment-alert {
    padding: 15px;
    border-radius: var(--r-md);
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 600;
}

.alert-success {
    background: var(--c-success-lt);
    color: var(--c-success);
}

.alert-error {
    background: var(--c-error-lt);
    color: var(--c-error);
}

.alert-warning {
    background: var(--c-warning-lt);
    color: var(--c-warning);
}

.comment-reply-btn {
    font-size: 0.85rem;
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    cursor: pointer;
}

.comment-reply-btn:hover {
    text-decoration: underline;
    opacity: 0.8;
}