/**
 * NOVAFLOW CSS v7
 * Style le markup NATIF Disputo - pas de template custom pour replies
 */

:root {
    --nf-green: #096e09;
    --nf-green-light: #0a8a0a;
    --nf-green-dark: #065406;
    --nf-green-subtle: rgba(9, 110, 9, 0.08);
    
    --nf-bg: #f8f9fa;
    --nf-card: #ffffff;
    --nf-border: #e9ecef;
    --nf-border-light: #f1f3f5;
    --nf-text: #212529;
    --nf-text-muted: #6c757d;
    --nf-text-light: #adb5bd;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
}

/* BASE */
#bbpress-forums {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--nf-text);
}

.bbp-search-form {
    display: none !important;
}

#bbpress-forums a {
    color: var(--nf-green);
    text-decoration: none;
}

#bbpress-forums a:hover {
    color: var(--nf-green-dark);
}

/* AVATARS RONDS - Forcer partout */
#bbpress-forums .avatar,
#bbpress-forums img.avatar,
.bbp-reply-author img,
.bbp-topic-author img,
.disputo-replies-author img,
.disputo-replies-author-img img {
    border-radius: 50% !important;
    border: none !important;
    box-shadow: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 64px !important;
    height: 64px !important;
}

/* Avatars plus petits dans certains contextes */
.novaflow-freshness-avatar img,
.novaflow-lastflow-avatar img {
    width: 32px !important;
    height: 32px !important;
}

/* Virer icône lien permalink - backup CSS si pas viré en PHP */
.bbp-reply-permalink,
a.bbp-reply-permalink,
.disputo-get-quote,
a.disputo-get-quote {
    display: none !important;
}

/* BREADCRUMB */
.bbp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    color: var(--nf-text-muted);
    background: var(--nf-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--nf-border);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.bbp-breadcrumb p {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.bbp-breadcrumb a {
    color: var(--nf-text-muted);
}

.bbp-breadcrumb a:hover {
    color: var(--nf-green);
}

.bbp-breadcrumb-sep {
    color: var(--nf-text-light);
}

.bbp-breadcrumb-current {
    color: var(--nf-text);
    font-weight: 500;
}

.novaflow-search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--nf-bg);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-sm);
    color: var(--nf-text-muted);
}

.novaflow-search-icon-btn:hover {
    background: var(--nf-green-subtle);
    border-color: var(--nf-green);
    color: var(--nf-green);
}

/* NOTICE */
.bbp-template-notice {
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--nf-card);
    border-left: 4px solid var(--nf-green);
    border-radius: var(--radius-sm);
}

.bbp-template-notice p {
    margin: 0;
}

/* ============================================
   FORUMS LIST
   ============================================ */

.bbp-forums {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.bbp-forums > li.bbp-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.bbp-forums .bbp-body > ul {
    list-style: none;
    margin: 0;
    padding: var(--space-lg);
    background: var(--nf-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--nf-border);
    box-shadow: var(--shadow-sm);
}

.bbp-forums .bbp-body > ul:hover {
    box-shadow: var(--shadow-md);
}

.bbp-forums .bbp-body > ul > li.bbp-forum-info {
    display: block;
    padding: 0;
    border: none;
    width: 100%;
}

.novaflow-forum-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.novaflow-forum-icon {
    width: 48px;
    height: 48px;
}

.novaflow-forum-icon a {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.novaflow-forum-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: var(--radius-md) !important;
}

.novaflow-forum-content {
    flex: 1;
}

.bbp-forum-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--nf-green);
    display: block;
    margin-bottom: var(--space-xs);
}

.bbp-forum-title:hover {
    color: var(--nf-green-dark);
    text-decoration: underline;
}

.bbp-forum-content {
    font-size: 0.9rem;
    color: var(--nf-text-muted);
    font-style: normal;
    margin-bottom: var(--space-sm);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(9, 110, 9, 0.12);
    color: var(--nf-green-dark);
    border-radius: var(--radius-sm);
    vertical-align: middle;
    margin-bottom: var(--space-sm);
}

.badge-success {
    background: rgba(9, 110, 9, 0.12) !important;
    color: var(--nf-green-dark) !important;
}

ul.bbp-forums-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    margin: var(--space-sm) 0 0 0;
    padding: 0;
}

ul.bbp-forums-list li {
    display: inline-block;
    padding: 0;
    font-size: 0.85rem;
}

ul.bbp-forums-list li a {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    font-weight: 500;
    color: var(--nf-green-dark);
    background: rgba(9, 110, 9, 0.06);
    border: 1px solid rgba(9, 110, 9, 0.15);
    border-radius: var(--radius-sm);
}

ul.bbp-forums-list li a:hover {
    background: var(--nf-green);
    border-color: var(--nf-green);
    color: white;
}

.novaflow-forum-meta {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--nf-border-light);
}

.novaflow-freshness {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.novaflow-freshness-avatar {
    flex-shrink: 0;
    order: 1;
}

.novaflow-freshness-info {
    order: 2;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
}

.novaflow-freshness-avatar img {
    width: 32px;
    height: 32px;
}

.novaflow-freshness-author a {
    font-weight: 600;
    color: var(--nf-text);
}

.novaflow-freshness-author a:hover {
    color: var(--nf-green);
}

.novaflow-freshness-time,
.novaflow-freshness-time a {
    color: var(--nf-text-muted);
}

/* FAB */
.novaflow-fab {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    background: var(--nf-green);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-decoration: none;
}

.novaflow-fab:hover {
    background: var(--nf-green-dark);
    color: white;
}

/* ============================================
   TOPICS LIST
   ============================================ */

.bbp-topics > li.bbp-header {
    display: none !important;
}

.novaflow-topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.novaflow-topics-list > .bbp-body,
.novaflow-topics-list > li.bbp-body,
ul.novaflow-topics-list > li {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#bbpress-forums .bbp-topics,
#bbpress-forums .bbp-topics > .bbp-body,
#bbpress-forums .bbp-topics > li.bbp-body,
#bbpress-forums ul.bbp-topics,
#bbpress-forums .novaflow-topics-list > li {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

#bbpress-forums .bbp-pagination {
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

/* TOPIC CARD */
#bbpress-forums .novaflow-topic-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--nf-card);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, border-color 0.2s;
    list-style: none;
    margin: 0;
}

#bbpress-forums .novaflow-topic-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(9, 110, 9, 0.2);
}

#bbpress-forums .novaflow-topic-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--nf-green);
    display: block;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bbpress-forums .novaflow-topic-title:hover {
    color: var(--nf-green-dark);
    text-decoration: underline;
}

#bbpress-forums .novaflow-topic-card.novaflow-sticky .novaflow-topic-title::after {
    content: 'Sticky';
    display: inline-block;
    margin-left: var(--space-xs);
    padding: 0.1rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 600;
    background: rgba(9, 110, 9, 0.12);
    color: var(--nf-green-dark);
    border-radius: var(--radius-sm);
    vertical-align: middle;
}

#bbpress-forums .novaflow-topic-started {
    font-size: 0.8rem;
    color: var(--nf-text-muted);
}

#bbpress-forums .novaflow-topic-started a {
    font-weight: 500;
    color: var(--nf-text);
}

#bbpress-forums .novaflow-topic-started a:hover {
    color: var(--nf-green);
}

#bbpress-forums .novaflow-topic-lastflow {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--nf-border-light);
}

#bbpress-forums .novaflow-lastflow-avatar {
    flex-shrink: 0;
}

#bbpress-forums .novaflow-lastflow-avatar img {
    width: 32px;
    height: 32px;
}

#bbpress-forums .novaflow-lastflow-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

#bbpress-forums .novaflow-lastflow-author {
    font-size: 0.75rem;
    color: var(--nf-text-muted);
}

#bbpress-forums .novaflow-lastflow-author a {
    font-weight: 600;
    color: var(--nf-text);
}

#bbpress-forums .novaflow-lastflow-author a:hover {
    color: var(--nf-green);
}

#bbpress-forums .novaflow-lastflow-time,
#bbpress-forums .novaflow-lastflow-time a {
    font-size: 0.75rem;
    color: var(--nf-text-muted);
}

#bbpress-forums .novaflow-lastflow-stats {
    display: flex;
    gap: var(--space-sm);
    margin-top: 4px;
}

#bbpress-forums .novaflow-stat {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--nf-text-light);
}

.bbp-topic-pagination {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: var(--space-sm);
}

.bbp-topic-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.25rem;
    font-size: 0.65rem;
    background: var(--nf-bg);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-sm);
    color: var(--nf-text-muted);
}

.bbp-topic-pagination a:hover {
    background: var(--nf-green);
    border-color: var(--nf-green);
    color: white;
}

.novaflow-newflow-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.novaflow-newflow-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: var(--nf-green);
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.novaflow-newflow-btn:hover {
    background: var(--nf-green-dark);
    color: white !important;
}

#bbpress-forums .bbp-pagination-count {
    display: none !important;
}

#bbpress-forums .bbp-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
    padding: var(--space-md) 0;
}

#bbpress-forums .bbp-pagination-links {
    display: flex;
    gap: var(--space-xs);
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--space-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

#bbpress-forums .bbp-pagination-links a {
    background: var(--nf-card);
    border: 1px solid var(--nf-border);
    color: var(--nf-text-muted);
}

#bbpress-forums .bbp-pagination-links a:hover {
    background: var(--nf-green-subtle);
    border-color: var(--nf-green);
    color: var(--nf-green);
}

#bbpress-forums .bbp-pagination-links span.current {
    background: var(--nf-green);
    border: 1px solid var(--nf-green);
    color: white;
}

@media (max-width: 1100px) {
    .novaflow-topics-list > .bbp-body,
    .novaflow-topics-list > li.bbp-body,
    ul.novaflow-topics-list > li {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .bbp-forums > li.bbp-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .novaflow-fab {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 50px;
        height: 50px;
    }
    
    .bbp-breadcrumb {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }
    
    #bbpress-forums .novaflow-topic-title {
        white-space: normal;
        font-size: 1rem;
    }
}

/* ============================================
   FORMULAIRES - Minimal, laisser Disputo gérer
   ============================================ */

#bbpress-forums .bbp-topic-form,
#bbpress-forums .bbp-reply-form {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

#bbpress-forums .bbp-form input[type="checkbox"] {
    width: auto !important;
    margin-right: var(--space-sm);
}

#bbpress-forums .bbp-form .bbp-submit-wrapper button,
#bbpress-forums .bbp-form .bbp-submit-wrapper input[type="submit"] {
    background: var(--nf-green);
    color: white !important;
    border: none;
    border-radius: var(--radius-md) !important;
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    cursor: pointer;
}

#bbpress-forums .bbp-form .bbp-submit-wrapper button:hover,
#bbpress-forums .bbp-form .bbp-submit-wrapper input[type="submit"]:hover {
    background: var(--nf-green-dark);
}

/* ============================================
   LOGIN FORM
   ============================================ */

.novaflow-login-wrapper,
.nf-forum-login {
    max-width: 400px;
    margin: var(--space-xl) auto;
    padding: var(--space-lg);
    background: var(--nf-card);
    border: 2px solid var(--nf-green);
    border-radius: var(--radius-lg);
}

.novaflow-login-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.novaflow-login-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nf-text);
    margin: 0 0 var(--space-xs) 0;
}

.novaflow-login-header p {
    font-size: 0.9rem;
    color: var(--nf-text-muted);
    margin: 0;
}

.novaflow-login-form .novaflow-form-group {
    margin-bottom: var(--space-md);
}

.novaflow-login-form .novaflow-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.novaflow-login-form .novaflow-form-group input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    background: var(--nf-bg);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-md);
}

.novaflow-login-form .novaflow-form-group input:focus {
    outline: none;
    border-color: var(--nf-green);
    box-shadow: 0 0 0 3px rgba(9, 110, 9, 0.1);
}

.novaflow-login-btn {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--nf-green);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.novaflow-login-btn:hover {
    background: var(--nf-green-dark);
}

.novaflow-login-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--nf-border-light);
}

.novaflow-login-links a {
    font-size: 0.85rem;
}

/* ============================================
   SINGLE TOPIC / REPLIES - MARKUP DISPUTO
   Largeur limitée style Bluesky
   ============================================ */

/* POST principal (topic lead) - 680px */
.novaflow-topic-lead,
#bbpress-forums .bbp-lead,
#bbpress-forums ul.bbp-lead {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    padding: 0;
}

/* Barre POST/REPLIES + Subscribe */
.disputo-replies-bar {
    max-width: 680px;
    margin: 0 auto var(--space-md) auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--nf-card);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-md);
    list-style: none;
}

.disputo-replies-title {
    font-weight: 600;
    color: var(--nf-text);
}

.disputo-replies-links {
    display: flex;
    gap: var(--space-md);
}

.disputo-replies-subscription a,
.disputo-replies-favorites a {
    font-size: 0.85rem;
    color: var(--nf-text-muted);
}

.disputo-replies-subscription a:hover,
.disputo-replies-favorites a:hover {
    color: var(--nf-green);
}

/* Container replies */
#bbpress-forums .bbp-replies {
    max-width: 680px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#bbpress-forums .bbp-replies > li {
    list-style: none;
    padding: 0;
    background: transparent;
}

/* Chaque reply + POST principal */
#bbpress-forums .bbp-replies .bbp-reply-header,
#bbpress-forums .bbp-replies .reply,
#bbpress-forums .bbp-lead > li > div {
    background: var(--nf-card);
    border: 1px solid var(--nf-border);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ============================================
   BARRE ADMIN LINKS - FIX ALIGNEMENT
   ============================================ */

/* Barre header de chaque reply/post */
.disputo-replies-content-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--nf-bg);
    border-bottom: 1px solid var(--nf-border);
    gap: var(--space-sm);
}

.disputo-replies-content-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.disputo-replies-content-bar-left {
    flex-shrink: 0;
}

.disputo-replies-content-bar-left .bbp-reply-post-date,
.disputo-replies-content-bar-left .bbp-topic-post-date {
    font-size: 0.8rem;
    color: var(--nf-text-muted);
    white-space: nowrap;
}

.disputo-replies-content-bar-left .fa-clock-o {
    margin-right: 4px;
}

/* Actions droite - FIX */
.disputo-replies-content-bar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
}

.disputo-replies-content-bar-right li {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.disputo-replies-content-bar-right a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--nf-text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    white-space: nowrap;
}

.disputo-replies-content-bar-right a:hover {
    background: var(--nf-green-subtle);
    color: var(--nf-green);
}

/* Bouton Reply vert */
.disputo-replies-content-bar-right .bbp-reply-to-link {
    background: var(--nf-green) !important;
    color: white !important;
    font-weight: 500;
}

.disputo-replies-content-bar-right .bbp-reply-to-link:hover {
    background: var(--nf-green-dark) !important;
}

/* ============================================
   ZONE AUTEUR + CONTENU
   ============================================ */

/* Wrapper auteur + contenu */
.disputo-replies-wrapper {
    display: flex;
}

/* Zone auteur */
.disputo-replies-author {
    width: 140px;
    min-width: 140px;
    padding: var(--space-md);
    background: var(--nf-bg);
    border-right: 1px solid var(--nf-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
}

.disputo-replies-author-img {
    position: relative;
}

.disputo-replies-author-img img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
}

.disputo-replies-author-img.disputo-verified-user::after {
    content: "✓";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--nf-green);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disputo-replies-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.disputo-replies-author-info .bbp-author-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--nf-green);
}

.disputo-replies-author-info .bbp-author-role {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--nf-green);
    color: white;
    border-radius: var(--radius-sm);
}

/* Virer drapeau et stats */
.disputo-user-location,
.disputo-popover {
    display: none !important;
}

.bbp-reply-ip,
.bbp-topic-ip {
    font-size: 0.6rem;
    color: var(--nf-text-light);
    margin-top: var(--space-sm);
}

/* Zone contenu */
.disputo-replies-content {
    flex: 1;
    padding: var(--space-md);
}

.disputo-reply-wrapper {
    font-size: 0.9rem;
    line-height: 1.65;
}

.disputo-reply-wrapper p:last-child {
    margin-bottom: 0;
}

.disputo-reply-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* Like centré - juste le centrage, pas toucher au style du plugin */
.disputo-container-vote {
    text-align: center;
}

/* ============================================
   FOLLOWERS COUNT - Zone auteur
   ============================================ */

.novaflow-followers-count {
    font-size: 0.75rem;
    color: var(--nf-text-muted);
    margin-top: 4px;
}

.novaflow-followers-count i {
    margin-right: 3px;
}

/* ============================================
   REPLY TO [USERNAME] - Dans le contenu
   ============================================ */

.novaflow-reply-to-box {
    margin-bottom: 1rem;
}

.novaflow-reply-to {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nf-text);
}

.novaflow-reply-to i {
    display: none;
}

.novaflow-reply-to a {
    font-weight: 700;
    color: var(--nf-green);
}

.novaflow-reply-to a:hover {
    text-decoration: underline;
}

/* Sous-réponses - léger indent visuel */
.novaflow-sub-reply {
    border-left: 3px solid var(--nf-green) !important;
}

.novaflow-depth-1 .disputo-replies-content-bar {
    background: var(--nf-green-subtle);
}

/* ============================================
   FORMULAIRE REPLY AJAX INLINE
   ============================================ */

.novaflow-inline-reply-form {
    max-width: 680px;
    margin: 0 auto var(--space-md) auto;
    background: var(--nf-card);
    border: 2px solid var(--nf-green);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.novaflow-form-loading,
.novaflow-form-error,
.novaflow-form-success {
    padding: var(--space-lg);
    text-align: center;
    color: var(--nf-text-muted);
}

.novaflow-form-error {
    color: #e74c3c;
}

.novaflow-form-success {
    color: var(--nf-green);
    font-weight: 600;
}

.novaflow-reply-form-inner {
    display: flex;
    flex-direction: column;
}

.novaflow-reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--nf-green);
    color: white;
}

.novaflow-reply-to-label {
    font-size: 0.9rem;
}

.novaflow-reply-to-label strong {
    font-weight: 600;
}

.novaflow-cancel-reply {
    color: white !important;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.8;
}

.novaflow-cancel-reply:hover {
    opacity: 1;
}

.novaflow-ajax-reply-form {
    display: flex;
    flex-direction: column;
}

.novaflow-form-content {
    padding: var(--space-md);
}

.novaflow-form-content textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-sm);
    resize: vertical;
    min-height: 120px;
}

.novaflow-form-content textarea:focus {
    outline: none;
    border-color: var(--nf-green);
    box-shadow: 0 0 0 3px rgba(9, 110, 9, 0.1);
}

.novaflow-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--nf-bg);
    border-top: 1px solid var(--nf-border);
}

.novaflow-notify-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--nf-text-muted);
    cursor: pointer;
}

.novaflow-notify-checkbox input {
    width: auto !important;
    margin: 0;
}

.novaflow-form-actions {
    display: flex;
    gap: var(--space-sm);
}

.novaflow-btn-cancel {
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--nf-text-muted) !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.novaflow-btn-cancel:hover {
    background: var(--nf-border-light);
}

.novaflow-btn-submit {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: var(--nf-green);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.novaflow-btn-submit:hover {
    background: var(--nf-green-dark);
}

.novaflow-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .novaflow-inline-reply-form {
        max-width: 100%;
        margin: 0 0 var(--space-md) 0;
    }
    
    .novaflow-form-footer {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
    }
    
    .novaflow-form-actions {
        justify-content: flex-end;
    }
}

/* Tags */
#bbpress-forums .bbp-topic-tags {
    max-width: 680px;
    margin: var(--space-md) auto;
    padding: var(--space-sm) var(--space-md);
    background: var(--nf-bg);
    border-left: 3px solid var(--nf-green);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE REPLIES
   ============================================ */

@media (max-width: 768px) {
    .disputo-replies-bar,
    #bbpress-forums .bbp-replies,
    #bbpress-forums .bbp-lead,
    #bbpress-forums .bbp-topic-tags {
        max-width: 100%;
    }
    
    .disputo-replies-content-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .disputo-replies-content-bar-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .disputo-replies-wrapper {
        flex-direction: column;
    }
    
    .disputo-replies-author {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: var(--space-sm) var(--space-md);
        border-right: none;
        border-bottom: 1px solid var(--nf-border);
        gap: var(--space-sm);
        text-align: left;
    }
    
    .disputo-replies-author-img img {
        width: 44px;
        height: 44px;
    }
    
    .disputo-replies-author-info {
        align-items: flex-start;
    }
    
    .bbp-reply-ip,
    .bbp-topic-ip {
        display: none;
    }
    
    .disputo-replies-content {
        padding: var(--space-sm) var(--space-md);
    }
    
    #bbpress-forums .bbp-topic-form,
    #bbpress-forums .bbp-reply-form {
        padding: var(--space-md);
        max-width: 100%;
    }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */

.novaflow-scroll-top {
    position: fixed;
    bottom: calc(var(--space-xl) + 70px);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    background: var(--nf-card);
    color: var(--nf-text-muted);
    border: 1px solid var(--nf-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.novaflow-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.novaflow-scroll-top:hover {
    background: var(--nf-green);
    color: white;
    border-color: var(--nf-green);
}
