/* ============================================
   COMMENTAIRES — Version pro
   ============================================ */

.comments-section {
    padding: 72px 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

/* ============================================
   EN-TÊTE
   ============================================ */
.comments-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.comments-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--forest);
    margin: 0;
}

.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 10px;
    margin-bottom: 40px;
}

.comments-empty i {
    color: var(--sage);
}

.comments-empty p {
    font-size: 14px;
    color: var(--stone);
    margin: 0;
    text-align: center;
}

/* ============================================
   LISTE COMMENTAIRES
   ============================================ */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 56px;
}

.comment {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: border-color 200ms ease;
}

.comment:hover {
    border-color: var(--sage);
}

.comment-children {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--mint);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-meta {
    min-width: 0;
}

.comment-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--forest);
    margin: 0 0 2px;
}

.comment-date {
    font-size: 12px;
    color: var(--stone);
    margin: 0;
}

.comment-body {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--charcoal);
}

.comment-body p {
    margin: 0;
}

/* ============================================
   FORMULAIRE
   ============================================ */
.comment-form-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
    .comment-form-wrapper {
        padding: 24px;
    }
}

.comment-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.comment-form-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--forest);
    margin: 0 0 6px;
}

.comment-form-note {
    font-size: 13px;
    color: var(--stone);
    margin: 0;
    line-height: 1.5;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .comment-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comment-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--stone);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--charcoal);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    box-sizing: border-box;
}

.comment-form input:hover,
.comment-form textarea:hover {
    border-color: var(--sage);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.08);
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* ============================================
   ACTIONS + BOUTON PUBLIER
   ============================================ */
.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .comment-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

.comment-form-info {
    flex: 1;
    font-size: 12px;
    color: var(--stone);
    margin: 0;
    line-height: 1.5;
}

.comment-form-info strong {
    color: var(--emerald);
    font-weight: 600;
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--emerald);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(27, 94, 63, 0.2);
}

.comment-submit:hover {
    background: var(--forest);
    box-shadow: 0 4px 12px rgba(27, 94, 63, 0.3);
    transform: translateY(-1px);
}

.comment-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(27, 94, 63, 0.2);
}

.comment-submit i {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .comment-submit {
        width: 100%;
        padding: 16px 24px;
    }
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.comment-flash {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.comment-flash.is-success {
    background: var(--mint);
    color: var(--forest);
    border-left: 4px solid var(--emerald);
}

.comment-flash.is-error {
    background: #FEF2F2;
    color: #b91c1c;
    border-left: 4px solid #b91c1c;
}

/* ============================================
   BOUTONS RETOUR
   ============================================ */
.comments-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.comments-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--emerald);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 200ms ease;
}

.comments-back-link:hover {
    color: var(--forest);
    background: var(--mint);
    border-color: var(--sage);
    transform: translateX(-2px);
}

.comments-back-link:first-child {
    background: var(--cream);
    border-color: var(--border);
    color: var(--charcoal);
}

.comments-back-link:first-child:hover {
    background: var(--mint);
    border-color: var(--sage);
    color: var(--forest);
}

@media (max-width: 640px) {
    .comments-back {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .comments-back-link {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 640px) {
    .comments-section {
        padding: 56px 0;
    }

    .comment {
        padding: 18px;
    }

    .comment-children {
        padding-left: 12px;
    }

    .comments-title {
        font-size: 20px;
    }

    .comment-form-title {
        font-size: 18px;
    }
}