/* ==============================
   blog-list.css — préfixe .bl-
   Option B : hero split + grille 3 colonnes
   ============================== */

/* ── Page ── */
.bl-page {
    padding: 60px 0 100px;
    min-height: 100vh;
}

/* ── En-tête : badge + titre à gauche, sous-titre à droite ── */
.bl-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 50px;
}
.bl-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 50px;
    padding: .3rem .85rem;
    margin-bottom: 1.1rem;
}
.bl-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}
.bl-title span { color: #a78bfa; }
.bl-header-right {
    padding-bottom: .5rem;
    border-left: 3px solid rgba(99,102,241,.35);
    padding-left: 1.75rem;
}
.bl-subtitle {
    font-size: clamp(.95rem, 1.5vw, 1.05rem);
    opacity: .7;
    line-height: 1.8;
    margin: 0;
}

/* ── Animations scroll ── */
.bl-lazy {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
.bl-lazy.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Vide ── */
.bl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 80px 0;
    opacity: .4;
}
.bl-empty i { font-size: 3rem; color: #6366f1; }

/* ── Badge catégorie ── */
.bl-cat-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167,139,250,.15);
    border: 1px solid rgba(167,139,250,.3);
    border-radius: 50px;
    padding: .22rem .72rem;
    margin-bottom: .9rem;
}
.bl-cat-badge--sm {
    font-size: .64rem;
    padding: .18rem .6rem;
    margin-bottom: .65rem;
}

/* ── Hero split ── */
.bl-hero {
    display: grid;
    grid-template-columns: 55% 45%;
    border-radius: 1.5rem;
    overflow: clip;
    text-decoration: none;
    border: 1px solid rgba(99,102,241,.18);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.bl-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(99,102,241,.18);
    border-color: rgba(99,102,241,.4);
}
.bl-hero-img-wrap {
    height: 460px;
    overflow: hidden;
}
.bl-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s ease;
}
.bl-hero:hover .bl-hero-img { transform: scale(1.04); }
.bl-hero-content {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,.1) 0%, rgba(99,102,241,.03) 100%);
}
.bl-hero-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 1rem;
}
.bl-hero-title {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .9rem;
}
[data-bs-theme="dark"] .bl-hero-title { color: #fff; }
[data-bs-theme="light"] .bl-hero-title { color: #0a0819; }
.bl-hero-preview {
    font-size: .94rem;
    line-height: 1.75;
    color: whitesmoke;
    opacity: .85;
    margin-bottom: 1.25rem;
}
.bl-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: .82rem;
    color: whitesmoke;
    opacity: .75;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.bl-hero-meta i {
    margin-right: .35rem;
    color: #6366f1;
    opacity: 1;
}
.bl-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .92rem;
    font-weight: 700;
    color: #6366f1;
    transition: gap .25s ease;
}
.bl-hero:hover .bl-hero-cta { gap: .85rem; }

/* ── Grille 3 colonnes ── */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Card ── */
.bl-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    overflow: clip;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(99,102,241,.12);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.bl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(99,102,241,.16);
    border-color: rgba(99,102,241,.32);
    color: inherit;
}
[data-bs-theme="dark"] .bl-card {
    background: rgba(255,255,255,.03);
}
[data-bs-theme="light"] .bl-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.bl-card-img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
}
.bl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}
.bl-card:hover .bl-card-img { transform: scale(1.05); }
.bl-card-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bl-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}
[data-bs-theme="dark"] .bl-card-title { color: #fff; }
[data-bs-theme="light"] .bl-card-title { color: #0a0819; }
.bl-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .78rem;
    opacity: .55;
    font-weight: 500;
    padding-top: .85rem;
    border-top: 1px solid rgba(99,102,241,.08);
}
.bl-card-meta i {
    margin-right: .3rem;
    color: #6366f1;
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .bl-header {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: start;
    }
    .bl-header-right {
        border-left: none;
        padding-left: 0;
        padding-bottom: 0;
    }
    .bl-hero {
        grid-template-columns: 1fr;
    }
    .bl-hero-img-wrap { height: 320px; }
    .bl-hero-content { padding: 2rem 1.75rem; }
    .bl-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .bl-page { padding: 50px 0 80px; }
    .bl-header { margin-bottom: 36px; }
    .bl-hero-img-wrap { height: 240px; }
    .bl-hero-content { padding: 1.75rem 1.4rem; }
    .bl-hero-preview { display: none; }
    .bl-grid { grid-template-columns: 1fr; gap: 1rem; }
    .bl-card-img-wrap { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-lazy { opacity: 1; transform: none; transition: none; }
    .bl-hero:hover,
    .bl-card:hover { transform: none; }
    .bl-hero:hover .bl-hero-img,
    .bl-card:hover .bl-card-img { transform: none; }
}

/* ── Light mode ── */
[data-bs-theme="light"] .bl-page { background-color: #f5f5ff; }
[data-bs-theme="light"] .bl-title { color: #0a0819; }
[data-bs-theme="light"] .bl-subtitle { color: rgba(0,0,0,.6); }
[data-bs-theme="light"] .bl-hero {
    border-color: rgba(99,102,241,.2);
}
[data-bs-theme="light"] .bl-hero-content {
    background: linear-gradient(135deg, rgba(99,102,241,.07) 0%, rgba(99,102,241,.02) 100%);
}
[data-bs-theme="light"] .bl-hero-preview { color: rgba(0,0,0,.65); }
[data-bs-theme="light"] .bl-hero-meta { color: rgba(0,0,0,.55); }
[data-bs-theme="light"] .bl-card-meta {
    border-top-color: rgba(99,102,241,.1);
    color: rgba(0,0,0,.5);
}
[data-bs-theme="light"] .bl-empty { color: rgba(0,0,0,.4); }