/**
 * CMS Source - Community / Actu des Membres Page CSS
 * Layout 3 colonnes : sidebar filtres | flux principal | sidebar droite
 * @version 2.0.0
 */

/* =========================================================================
   HEADER (personnalisable via --section-header-bg)
   ========================================================================= */
.community-header {
    background: var(--section-header-bg, linear-gradient(135deg, #e8942e 0%, #ffd963 50%, #d48820 100%));
    color: var(--section-header-text, var(--white));
    padding: 2.5rem 0;
    text-align: center;
}

.community-header .page-title {
    margin-bottom: 0.5rem;
}

.community-header .page-description {
    opacity: 0.9;
    font-size: 1.05rem;
}

/* =========================================================================
   3-COLUMN LAYOUT
   Pattern: discussions.css (.discussions-layout)
   ========================================================================= */
.actu-layout {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 2rem;
    padding: 2rem 0;
}

/* =========================================================================
   LEFT SIDEBAR - FILTERS
   ========================================================================= */
.actu-sidebar {
    position: sticky;
    top: calc(var(--header-height, 160px) + 20px);
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.actu-sidebar .filter-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.actu-sidebar .filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.actu-sidebar .filter-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.actu-sidebar .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.actu-sidebar .filter-list li {
    margin-bottom: 0.15rem;
}

.actu-sidebar .filter-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.actu-sidebar .filter-list a:hover,
.actu-sidebar .filter-list a.active {
    background: #f3f4f6;
    color: var(--primary);
    font-weight: 500;
}

.actu-sidebar .filter-list a i {
    font-size: 1rem;
    flex-shrink: 0;
}

.actu-sidebar-cta {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.actu-sidebar .btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* =========================================================================
   MAIN CONTENT - FEED
   ========================================================================= */
.actu-main {
    min-width: 0;
}

.actu-active-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.actu-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}

.actu-filter-clear {
    font-size: 0.82rem;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.actu-filter-clear:hover {
    color: #ef4444;
}

.actu-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.load-more {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* =========================================================================
   RIGHT SIDEBAR
   ========================================================================= */
.actu-sidebar-right {
    position: sticky;
    top: calc(var(--header-height, 160px) + 20px);
    height: fit-content;
}

/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.actu-main .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.actu-main .empty-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.actu-main .empty-state h3 {
    font-size: 1.15rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.actu-main .empty-state p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
    .actu-layout {
        grid-template-columns: 220px 1fr;
    }
    .actu-sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .actu-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    .actu-sidebar {
        position: static;
    }
    .actu-sidebar .filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .actu-sidebar .filter-list li {
        margin-bottom: 0;
    }
    .actu-sidebar .filter-list a {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .community-header {
        padding: 1.5rem 0;
    }
}
