/* Blog — même langage que l’accueil cinématique */
.bg { color: #ececf1; }
.bg a { color: inherit; }
.bg .container { position: relative; }

.bg-kicker {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
    color: #7ee8e6; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.bg-hero { padding: 128px 0 20px; }
.bg-hero h1 {
    color: #fff; font-weight: 800; letter-spacing: -0.03em;
    font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 14px;
}
.bg-hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #a29bfe 0%, #00cec9 55%, #ff9d4d 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bg-lead {
    max-width: 38ch; color: #9ea0ab; font-size: 1.08rem; line-height: 1.55; margin: 0;
}
.bg-count {
    margin: 16px 0 0; color: #7d8090; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}

.bg-main { padding: 18px 0 80px; }

.bg-cats {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 0 28px;
}
.bg-cat {
    display: inline-flex; align-items: center;
    min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: #c8cad3; font-size: 0.86rem; font-weight: 700;
    text-decoration: none !important;
}
.bg-cat:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bg-cat.is-on {
    background: linear-gradient(120deg, #6c5ce7, #00cec9);
    border-color: transparent; color: #071018;
}

.bg-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    color: #8a8c99; font-size: 0.82rem; font-weight: 600;
}
.bg-badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(0,206,201,0.14); border: 1px solid rgba(0,206,201,0.28);
    color: #7ee8e6; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.bg-ph {
    background:
        radial-gradient(120% 90% at 10% 10%, rgba(108,92,231,0.45), transparent 55%),
        radial-gradient(100% 80% at 90% 90%, rgba(0,206,201,0.28), transparent 50%),
        #14161e;
}

.bg-feat {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    overflow: hidden;
    margin-bottom: 22px;
    border-radius: 22px;
    background: #111318;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none !important;
    transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .28s ease, box-shadow .32s ease;
}
.bg-feat__media { min-height: 320px; }
.bg-feat__media img,
.bg-card__media img,
.bg-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.bg-feat__copy {
    display: flex; flex-direction: column; justify-content: center; gap: 14px;
    padding: 36px 32px;
}
.bg-feat__copy h2 {
    color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.2; margin: 0;
}
.bg-feat__copy p { color: #9ea0ab; font-size: 0.98rem; line-height: 1.55; margin: 0; }
.bg-feat:hover { transform: translateY(-3px); border-color: rgba(162,155,254,0.35); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.bg-feat:hover .bg-feat__copy h2 { color: #7ee8e6; }
.bg-feat--text { grid-template-columns: 1fr; }

.bg-more {
    display: inline-flex; align-items: center; gap: 8px;
    color: #7ee8e6; font-size: 0.9rem; font-weight: 800;
}
.bg-more svg { width: 16px; height: 16px; }

.bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}
.bg-card {
    display: flex; flex-direction: column;
    overflow: hidden; height: 100%;
    border-radius: 22px;
    background: #111318;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none !important;
    transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .28s ease, box-shadow .32s ease;
}
.bg-card:hover {
    transform: translateY(-4px);
    border-color: rgba(162,155,254,0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.bg-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.bg-card__media img { transition: transform .45s ease; }
.bg-card:hover .bg-card__media img { transform: scale(1.05); }
.bg-card__media .bg-badge {
    position: absolute; top: 12px; left: 12px;
}
.bg-card__copy { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.bg-card__copy h3 {
    color: #fff; font-size: 1.08rem; font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.3; margin: 0;
}
.bg-card:hover h3 { color: #7ee8e6; }
.bg-card__copy p { color: #9ea0ab; font-size: 0.9rem; line-height: 1.5; margin: 0; }

.bg-empty {
    padding: 56px 24px; text-align: center;
    border-radius: 22px;
    background: #111318;
    border: 1px solid rgba(255,255,255,0.08);
}
.bg-empty strong { display: block; color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.bg-empty p { color: #9ea0ab; margin: 0 0 18px; }
.bg-empty .bg-more { justify-content: center; }

.bg-pages {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
    margin-top: 36px;
}
.bg-pages a {
    display: grid; place-items: center;
    min-width: 42px; height: 42px; padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: #ececf1; font-weight: 800; font-size: 0.9rem;
    text-decoration: none !important;
}
.bg-pages a:hover { background: rgba(255,255,255,0.08); }
.bg-pages a.is-on {
    background: linear-gradient(120deg, #6c5ce7, #00cec9);
    border-color: transparent; color: #071018;
}

/* Article */
.bg-back {
    display: flex; align-items: center; gap: 8px;
    color: #8a8c99; font-size: 0.86rem; font-weight: 700;
    text-decoration: none !important; margin-bottom: 18px;
}
.bg-back:hover { color: #7ee8e6; }
.bg-article .bg-hero { padding: 118px 0 8px; }
.bg-article .bg-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.bg-article .bg-lead { max-width: none; margin-top: 8px; }
.bg-cover,
.bg-prose,
.bg-tags,
.bg-share {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.bg-cover {
    overflow: hidden; margin: 22px 0 28px;
    border-radius: 22px; aspect-ratio: 16 / 9;
    border: 1px solid rgba(255,255,255,0.08);
}
.bg-prose { color: #c8cad3; font-size: 1.05rem; line-height: 1.8; }
.bg-prose p { margin: 0 0 1.1em; }
.bg-prose h2, .bg-prose h3, .bg-prose h4 {
    color: #fff; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
    margin: 1.5em 0 0.6em;
}
.bg-prose h2 { font-size: 1.45rem; }
.bg-prose h3 { font-size: 1.2rem; }
.bg-prose a { color: #7ee8e6; text-decoration: underline; text-underline-offset: 3px; }
.bg-prose strong, .bg-prose b { color: #fff; }
.bg-prose ul, .bg-prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.bg-prose li { margin: 0.35em 0; }
.bg-prose img {
    max-width: 100%; height: auto; border-radius: 14px; margin: 1.2em 0;
}
.bg-prose blockquote {
    margin: 1.4em 0; padding: 14px 18px;
    border-left: 3px solid #00cec9;
    background: rgba(255,255,255,0.04);
    color: #ececf1; font-style: italic;
}
.bg-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 28px 0 0;
}
.bg-tag {
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: #c8cad3; font-size: 0.8rem; font-weight: 700;
}
.bg-share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 28px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.bg-share span {
    color: #7ee8e6; font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px;
}
.bg-share a {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}
.bg-share a:hover { background: rgba(255,255,255,0.1); color: #7ee8e6; }
.bg-share svg { width: 16px; height: 16px; }

.bg-related { margin-top: 48px; }
.bg-related h2 {
    color: #fff; font-size: 1.25rem; font-weight: 800;
    letter-spacing: -0.02em; margin: 0 0 18px;
}

@media (max-width: 1080px) {
    .bg-hero { padding: 110px 0 14px; }
    .bg-feat { grid-template-columns: 1fr; }
    .bg-feat__media { min-height: 220px; aspect-ratio: 16 / 9; }
    .bg-feat__copy { padding: 24px 20px 26px; }
}
@media (max-width: 700px) {
    .bg-article .bg-hero { padding: 108px 0 4px; }
    .bg-feat__copy { padding: 22px 18px 22px; }
}
