/* ===== Bloc B : Nos articles (3 cartes + boutons) ===== */
.bloc-b {
    padding: 18px 20px 22px;
    width: 95%;
}

.b-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.b-head h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
}

.b-articles {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .b-articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .b-articles {
        grid-template-columns: 1fr;
    }
}

.b-card-article {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.b-card-article figure {
    margin: 0;
    aspect-ratio: 16/11;
    overflow: hidden;
}

.b-card-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.b-card-article .b-body {
    padding: 12px 14px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b-card-article .b-title {
    margin: 0;
    font: 700 1rem/1.3 "Montserrat", sans-serif;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b-card-article .b-sub {
    margin: 0;
    font: 400 .92rem/1.4 "Open Sans", sans-serif;
    color: var(--muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b-card-article .b-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.b-foot {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font: 600 .95rem/1 "Montserrat", sans-serif;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
    cursor: pointer;
}

.btn:hover {
    background: #e5e7eb;
    border-color: #c7cdd4;
}

.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.btn--pill {
    height: 36px;
    padding: 0 16px;
}

.btn--wide {
    width: min(520px, 94%);
    height: 42px;
    border-radius: 10px;
}

/* Scrollbar stable si la grille déborde horizontalement (rare) */
.b-articles {
    scrollbar-gutter: stable;
}

.b-filter {
    position: relative;
    flex-shrink: 0;
}

.b-filter select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 8px 36px 8px 14px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.b-filter select:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.b-filter select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.b-filter::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: .9rem;
    color: #6b7280;
}