/* Forum Congo-Afrique */

.forum-topics-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 157, 61, 0.12) 0%, rgba(0, 157, 61, 0.04) 55%, rgba(255, 235, 1, 0.08) 100%);
    border: 1px solid rgba(0, 157, 61, 0.12);
}

.forum-topics-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 157, 61, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.forum-stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 157, 61, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 157, 61, 0.12);
}

.forum-stat-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #009d3d;
    line-height: 1.1;
}

.forum-stat-card__label {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.forum-category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.forum-cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.forum-cat-pill:hover {
    color: #009d3d;
    border-color: rgba(0, 157, 61, 0.35);
    background: rgba(0, 157, 61, 0.06);
}

.forum-cat-pill.is-active {
    color: #fff;
    background: #009d3d;
    border-color: #009d3d;
    box-shadow: 0 4px 14px rgba(0, 157, 61, 0.28);
}

.forum-sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.forum-sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.forum-sort-chip:hover {
    color: #009d3d;
    background: rgba(0, 157, 61, 0.08);
}

.forum-sort-chip.is-active {
    color: #009d3d;
    background: rgba(0, 157, 61, 0.12);
    border-color: rgba(0, 157, 61, 0.25);
}

.forum-sidebar-card {
    border: 1px solid rgba(0, 157, 61, 0.1) !important;
    overflow: hidden;
}

.forum-sidebar-card .card-header {
    background: linear-gradient(135deg, rgba(0, 157, 61, 0.08), rgba(0, 157, 61, 0.02));
    border-bottom: 1px solid rgba(0, 157, 61, 0.1);
}

.forum-topic-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-left: 4px solid #009d3d !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.forum-topic-card--sticky {
    border-left-color: #ffc107 !important;
}

.forum-topic-card--closed {
    border-left-color: #6c757d !important;
}

.forum-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.forum-topic-card__title a {
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.forum-topic-card:hover .forum-topic-card__title a {
    color: #009d3d;
}

.forum-topic-card__excerpt {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-topic-card__author img {
    object-fit: cover;
    border: 2px solid rgba(0, 157, 61, 0.15);
}

.forum-topic-card__stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.forum-topic-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f8f9fa;
    color: #495057;
}

.forum-topic-stat i {
    color: #009d3d;
}

.forum-list-header {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.forum-tag-pill {
    transition: all 0.2s ease;
    color: #008533 !important;
    background: rgba(0, 157, 61, 0.08) !important;
    border: 1px solid rgba(0, 157, 61, 0.15);
    font-weight: 500;
}

.forum-tag-pill:hover {
    transform: translateY(-1px);
    background: rgba(0, 157, 61, 0.14) !important;
    color: #006b2b !important;
    border-color: rgba(0, 157, 61, 0.28);
}

/* Hashtags sous les cartes — lisibles, discrets */
.forum-topic-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef1f3;
}

.forum-hashtag {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.45;
    color: #5c6770 !important;
    background: #f4f6f8 !important;
    border: 1px solid #e3e7eb;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.forum-hashtag:hover {
    color: #009d3d !important;
    background: rgba(0, 157, 61, 0.07) !important;
    border-color: rgba(0, 157, 61, 0.22);
}

.forum-hashtag--more {
    color: #868e96 !important;
    background: transparent !important;
    border-style: dashed;
    cursor: default;
    pointer-events: none;
}

/* Annuler text-secondary jaune sur le forum */
.page-shell .forum-topic-card a.badge,
.page-shell .forum-topic-card .forum-hashtag {
    color: #5c6770 !important;
}

.page-shell .forum-sidebar-card .forum-tag-pill {
    color: #008533 !important;
}

.forum-empty-state {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.page-shell .pagination .page-link {
    color: #009d3d;
    border-radius: 999px;
    margin: 0 0.15rem;
    transition: all 0.2s ease;
}

.page-shell .pagination .page-item.active .page-link {
    background-color: #009d3d;
    border-color: #009d3d;
}

.forum-filters .form-control:focus,
.forum-filters .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 157, 61, 0.15);
    border-color: rgba(0, 157, 61, 0.45);
}

@media (max-width: 991.98px) {
    .forum-stats-grid {
        margin-top: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .forum-topics-hero {
        padding: 1.25rem 1rem;
    }

    .forum-stat-card__value {
        font-size: 1.2rem;
    }
}
