.bp-blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Header ─── */
.bp-blog-header {
    text-align: center;
    margin-bottom: 48px;
}

.bp-blog-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.bp-blog-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* ─── Filtres ─── */
.bp-blog-filtres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.bp-filtre-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.bp-filtre-btn:hover {
    border-color: #9ca3af;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bp-filtre-btn.active {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.bp-filtre-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bp-filtre-btn.active .bp-filtre-dot {
    background-color: #fff !important;
}

.bp-filtre-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bp-filtre-btn.active .bp-filtre-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ─── Grille ─── */
.bp-blog-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ─── Carte ─── */
.bp-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: bpFadeIn 0.5s ease forwards;
}

.bp-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* ─── Image ─── */
.bp-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

.bp-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.bp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bp-blog-card:hover .bp-card-image img {
    transform: scale(1.05);
}

.bp-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #9ca3af;
    text-decoration: none;
}

.bp-card-placeholder svg {
    width: 48px;
    height: 48px;
}

.bp-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 2;
}

/* ─── Contenu ─── */
.bp-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bp-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.bp-card-readtime::before {
    content: '·';
    margin-right: 6px;
}

.bp-card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
}

.bp-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-card-title a:hover {
    color: #2D5F8A;
}

.bp-card-excerpt {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    flex-grow: 1;
}

.bp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.bp-card-link:hover {
    gap: 10px;
}

/* ─── Pagination ─── */
.bp-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.bp-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bp-blog-pagination .page-numbers:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.bp-blog-pagination .page-numbers.current {
    background: #1f2937;
    color: #fff;
}

/* ─── Vide ─── */
.bp-blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

/* ─── Animation ─── */
@keyframes bpFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bp-blog-card:nth-child(1) { animation-delay: 0.05s; }
.bp-blog-card:nth-child(2) { animation-delay: 0.10s; }
.bp-blog-card:nth-child(3) { animation-delay: 0.15s; }
.bp-blog-card:nth-child(4) { animation-delay: 0.20s; }
.bp-blog-card:nth-child(5) { animation-delay: 0.25s; }
.bp-blog-card:nth-child(6) { animation-delay: 0.30s; }
.bp-blog-card:nth-child(7) { animation-delay: 0.35s; }
.bp-blog-card:nth-child(8) { animation-delay: 0.40s; }
.bp-blog-card:nth-child(9) { animation-delay: 0.45s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .bp-blog-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bp-blog-grid {
        padding: 30px 16px;
    }

    .bp-blog-header h1 {
        font-size: 28px;
    }

    .bp-blog-filtres {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bp-blog-filtres::-webkit-scrollbar {
        display: none;
    }

    .bp-blog-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bp-card-content {
        padding: 20px;
    }

    .bp-card-title {
        font-size: 16px;
    }
}