/* ============================================================
   VIDEOFUNNEL — BLOG (feuille autonome, classes préfixées .blog-)
   Même langage visuel que la landing : crème chaud + encre navy
   + dégradé flamme · Manrope (titres) · DM Sans (texte).
   Les polices sont les assets partagés de /assets/fonts/.
   ============================================================ */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('/assets/fonts/manrope-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/dm-sans-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --bg-display: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;

    --bg-ground: #F7F5F0;
    --bg-paper: #FFFFFF;
    --bg-cream-deep: #EFECE3;
    --bg-ink: #221F35;
    --bg-ink-soft: #3B3752;
    --bg-muted: #6D6980;
    --bg-faint: #8B8798;
    --bg-line: #E8E4DB;
    --bg-line-strong: #D9D4C9;

    --bg-purple: #6657E8;
    --bg-purple-deep: #5142CC;
    --bg-purple-soft: #EFECFF;
    --bg-magenta: #C24BB4;
    --bg-coral: #F05B3F;
    --bg-amber: #F5A73B;
    --bg-green: #239B6B;
    --bg-green-soft: #EAF7F1;

    --bg-night: #191631;
    --bg-night-2: #221D40;
    --bg-night-muted: rgba(233, 230, 255, .72);

    --bg-flame: linear-gradient(100deg, #6657E8 0%, #A34FE0 34%, #EE5D68 68%, #F5A73B 100%);

    --bg-shadow-lg: 0 30px 80px -22px rgba(34, 31, 53, .25);
    --bg-shadow-md: 0 18px 50px -12px rgba(34, 31, 53, .14);
    --bg-shadow-soft: 0 6px 24px rgba(34, 31, 53, .07);

    --bg-r: 20px;
    --bg-r-lg: 28px;
    --bg-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */

.blog-body,
.blog-body * { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.blog-body {
    margin: 0;
    color: var(--bg-ink);
    background: var(--bg-ground);
    font-family: var(--bg-font);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

.blog-body ::selection { background: var(--bg-purple); color: #fff; }

/* ⚠ Resets en spécificité (0,0,1) VOLONTAIRE (sélecteurs d'éléments nus,
   jamais préfixés .blog-body) : toute classe simple — .blog-toc-title,
   .blog-post-excerpt, .blog-btn-*, le rythme vertical `* + *` du corps
   d'article… — doit pouvoir les battre. Un `.blog-body p` (0,1,1)
   écraserait toutes ces marges. */
img { max-width: 100%; height: auto; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--bg-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.028em;
    text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.blog-body :focus-visible {
    outline: 3px solid var(--bg-purple);
    outline-offset: 3px;
    border-radius: 4px;
}

.blog-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Boutons (mêmes formes que la landing) ---------- */

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--bg-display);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .35s var(--bg-ease), box-shadow .35s var(--bg-ease), background-color .3s;
}
.blog-btn svg { width: 17px; height: 17px; transition: transform .35s var(--bg-ease); }
.blog-btn:hover svg { transform: translateX(4px); }
.blog-btn-sm { padding: 11px 20px; font-size: 14px; }
.blog-btn-lg { padding: 18px 32px; font-size: 16.5px; }

.blog-btn-primary {
    color: #fff;
    background: var(--bg-ink);
    box-shadow: var(--bg-shadow-soft);
}
.blog-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--bg-shadow-md); }

.blog-btn-flame {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--bg-flame);
    box-shadow: 0 14px 34px -12px rgba(190, 80, 140, .55);
}
.blog-btn-flame:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(190, 80, 140, .65); }

/* ---------- Header ---------- */

.blog-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.blog-header.scrolled {
    background: rgba(247, 245, 240, .82);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 1px 0 var(--bg-line), 0 12px 32px -18px rgba(34, 31, 53, .18);
}
.blog-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    height: 74px;
}
.blog-brand { display: inline-flex; align-items: center; text-decoration: none; }
.blog-brand img { width: 148px; height: auto; display: block; }

.blog-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}
.blog-nav > a:not(.blog-btn) {
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-ink-soft);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}
.blog-nav > a:not(.blog-btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    border-radius: 2px;
    background: var(--bg-flame);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--bg-ease);
}
.blog-nav > a:not(.blog-btn):hover::after,
.blog-nav > a.is-current::after { transform: scaleX(1); }

.blog-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px; height: 46px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--bg-line);
    cursor: pointer;
}
.blog-menu-toggle span {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: var(--bg-ink);
    transition: transform .35s var(--bg-ease);
}
.blog-menu-toggle.open span:first-child { transform: translateY(4.2px) rotate(45deg); }
.blog-menu-toggle.open span:last-child { transform: translateY(-4.2px) rotate(-45deg); }

.blog-lang {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
}
.blog-lang-opt { color: var(--bg-faint); text-decoration: none; padding: 3px 5px; border-radius: 8px; transition: color .25s var(--bg-ease); }
a.blog-lang-opt:hover { color: var(--bg-ink); }
.blog-lang-opt.is-active {
    color: transparent;
    background: var(--bg-flame);
    -webkit-background-clip: text;
    background-clip: text;
}
.blog-lang-sep { color: var(--bg-line-strong); }

/* ---------- Héros de section (listing + article) ---------- */

.blog-main { padding-top: 74px; }

.blog-hero,
.blog-post-hero { position: relative; padding: 74px 0 46px; }

.blog-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.blog-hero-bg::before,
.blog-hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
}
.blog-hero-bg::before {
    width: 560px; height: 560px;
    left: -160px; top: -260px;
    background: radial-gradient(circle, rgba(102, 87, 232, .35), transparent 65%);
}
.blog-hero-bg::after {
    width: 520px; height: 520px;
    right: -140px; top: -200px;
    background: radial-gradient(circle, rgba(245, 167, 59, .3), transparent 65%);
}
.blog-hero .blog-container,
.blog-post-hero-inner { position: relative; }

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bg-display);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bg-purple);
    margin-bottom: 16px;
}
.blog-eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    border-radius: 2px;
    background: var(--bg-flame);
}

.blog-hero h1, .blog-post-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    /* Interlignage plus aéré que le reset (1.12) : ces H1 font souvent
       2 lignes — sans air, les descendantes touchent la ligne suivante.
       Pas de max-width : le titre occupe le conteneur (sinon il casse en
       3 lignes avec un grand vide à droite sur desktop). */
    line-height: 1.18;
}
.blog-hero-sub {
    margin-top: 18px;
    max-width: 820px;
    font-size: 18px;
    color: var(--bg-muted);
}
.blog-hero-actions { margin-top: 26px; }

/* ---------- Fil d'Ariane ---------- */

.blog-breadcrumb { margin-bottom: 22px; font-size: 13.5px; color: var(--bg-faint); }
.blog-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.blog-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--bg-line-strong); }
.blog-breadcrumb a { text-decoration: none; color: var(--bg-muted); }
.blog-breadcrumb a:hover { color: var(--bg-ink); }
.blog-breadcrumb [aria-current] {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Grille du listing / cartes ---------- */

.blog-listing { padding: 12px 0 90px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.blog-grid--related { grid-template-columns: repeat(3, 1fr); }

.blog-card {
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    border-radius: var(--bg-r-lg);
    overflow: hidden;
    box-shadow: var(--bg-shadow-soft);
    transition: transform .35s var(--bg-ease), box-shadow .35s var(--bg-ease);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--bg-shadow-md); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }

.blog-card-media {
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: var(--bg-cream-deep);
}
.blog-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--bg-ease);
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-media--placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--bg-purple-soft), #FFEFE9);
}
.blog-card-media--placeholder span {
    font-family: var(--bg-display);
    font-size: 64px;
    font-weight: 800;
    background: var(--bg-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--bg-faint);
}
.blog-chip {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--bg-purple-soft);
    color: var(--bg-purple-deep);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
}
.blog-dot { color: var(--bg-line-strong); }
.blog-card-time { white-space: nowrap; display: inline-flex; gap: 8px; }

.blog-card-title { font-size: 21px; line-height: 1.22; }
.blog-card-excerpt {
    color: var(--bg-muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bg-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--bg-purple);
}
.blog-card-more svg { width: 16px; height: 16px; transition: transform .35s var(--bg-ease); }
.blog-card:hover .blog-card-more svg { transform: translateX(4px); }

/* Carte mise en avant (1re du listing page 1) */
.blog-card--featured { grid-column: 1 / -1; }
.blog-card--featured .blog-card-link { flex-direction: row; }
.blog-card--featured .blog-card-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 320px; }
.blog-card--featured .blog-card-body { padding: 38px 40px; justify-content: center; }
.blog-card--featured .blog-card-title { font-size: clamp(24px, 2.6vw, 32px); }
.blog-card--featured .blog-card-excerpt { -webkit-line-clamp: 4; font-size: 16px; }

.blog-empty { padding: 60px 0; color: var(--bg-muted); font-size: 18px; }

/* ---------- Bannières CTA (listing + fin d'article) ---------- */

.blog-banner-cta,
.blog-final-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--bg-r-lg);
    background: linear-gradient(135deg, var(--bg-night) 0%, var(--bg-night-2) 60%, #35245C 100%);
    color: #fff;
    padding: 44px 44px 46px;
    box-shadow: var(--bg-shadow-lg);
}
.blog-banner-cta { grid-column: 1 / -1; text-align: center; }
.blog-banner-noise {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 20% 10%, rgba(102, 87, 232, .5), transparent 45%),
                radial-gradient(circle at 85% 90%, rgba(240, 91, 63, .35), transparent 45%);
    pointer-events: none;
}
.blog-banner-title {
    position: relative;
    font-family: var(--bg-display);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -.025em;
    line-height: 1.15;
}
.blog-banner-text {
    position: relative;
    margin: 14px auto 24px;
    max-width: 560px;
    color: var(--bg-night-muted);
    font-size: 16px;
}
.blog-banner-cta .blog-btn, .blog-final-cta .blog-btn { position: relative; }

/* ---------- Pagination ---------- */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 64px;
}
.blog-page-list { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.blog-page-num {
    display: grid;
    place-items: center;
    min-width: 42px; height: 42px;
    padding: 0 8px;
    border-radius: 14px;
    border: 1px solid var(--bg-line);
    background: var(--bg-paper);
    font-family: var(--bg-display);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: var(--bg-ink-soft);
    transition: transform .25s var(--bg-ease), box-shadow .25s var(--bg-ease);
}
a.blog-page-num:hover { transform: translateY(-2px); box-shadow: var(--bg-shadow-soft); }
.blog-page-num.is-active { background: var(--bg-ink); color: #fff; border-color: var(--bg-ink); }
.blog-page-ellipsis { align-self: center; color: var(--bg-faint); padding: 0 2px; }
.blog-page-arrow {
    font-family: var(--bg-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--bg-muted);
    text-decoration: none;
}
.blog-page-arrow:hover { color: var(--bg-ink); }

/* ---------- Page article ---------- */

.blog-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 101;
    background: transparent;
    pointer-events: none;
}
.blog-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--bg-flame);
    transition: width .1s linear;
}

.blog-preview-strip {
    background: var(--bg-amber);
    color: #3A2A05;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
}

.blog-post-hero { padding-bottom: 30px; }
.blog-post-excerpt {
    margin-top: 20px;
    max-width: 900px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--bg-muted);
}
.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    font-size: 14px;
    color: var(--bg-muted);
}
.blog-avatar {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-flame);
    color: #fff;
    font-family: var(--bg-display);
    font-weight: 800;
    font-size: 15px;
}
.blog-avatar--lg { width: 52px; height: 52px; font-size: 21px; }

.blog-post-cover {
    margin: 6px 0 0;
    border-radius: var(--bg-r-lg);
    overflow: hidden;
    box-shadow: var(--bg-shadow-md);
}
.blog-post-cover img { display: block; width: 100%; }

/* Layout : sommaire sticky + corps */
.blog-post-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 720px);
    gap: 56px;
    justify-content: center;
    padding: 46px 28px 20px;
}

.blog-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 22px 24px;
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    border-radius: var(--bg-r);
    box-shadow: var(--bg-shadow-soft);
    font-size: 14px;
}
.blog-toc-title {
    font-family: var(--bg-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bg-faint);
    margin-bottom: 12px;
}
.blog-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.blog-toc a {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--bg-muted);
    text-decoration: none;
    line-height: 1.35;
    transition: background-color .25s, color .25s;
}
.blog-toc a:hover { background: var(--bg-ground); color: var(--bg-ink); }
.blog-toc li.is-active a {
    background: var(--bg-purple-soft);
    color: var(--bg-purple-deep);
    font-weight: 700;
}
.blog-toc-back {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--bg-purple);
    text-decoration: none;
}

/* Corps de l'article — typographie de lecture */
.blog-post-body { font-size: 17.5px; line-height: 1.75; color: var(--bg-ink-soft); }
.blog-post-body > * + * { margin-top: 1.15em; }
.blog-post-body h2 {
    margin-top: 2em;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.3;
    color: var(--bg-ink);
    scroll-margin-top: 100px;
}
.blog-post-body h3 {
    margin-top: 1.6em;
    font-size: 21px;
    line-height: 1.35;
    color: var(--bg-ink);
    scroll-margin-top: 100px;
}
/* Le contenu qui suit directement un titre reste rattaché à lui (rythme
   titre→texte plus serré que le rythme paragraphe→paragraphe). */
.blog-post-body h2 + *,
.blog-post-body h3 + * { margin-top: .65em; }
.blog-post-body a:not(.blog-btn) { color: var(--bg-purple-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.blog-post-body a:not(.blog-btn):hover { color: var(--bg-purple); }
.blog-post-body strong { color: var(--bg-ink); }
.blog-post-body ul, .blog-post-body ol { padding-left: 26px; display: grid; gap: .5em; }
.blog-post-body li::marker { color: var(--bg-purple); font-weight: 700; }
.blog-post-body code {
    background: var(--bg-cream-deep);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: .88em;
}

.blog-lead { font-size: 19.5px; color: var(--bg-ink-soft); font-weight: 500; }

.blog-quote {
    margin: 1.6em 0;
    padding: 22px 28px;
    border-left: 4px solid transparent;
    border-image: var(--bg-flame) 1;
    background: var(--bg-paper);
    border-radius: 0 var(--bg-r) var(--bg-r) 0;
    box-shadow: var(--bg-shadow-soft);
    font-size: 19px;
    font-style: italic;
    color: var(--bg-ink);
}
.blog-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--bg-faint); }

.blog-figure { margin: 1.8em 0; }
.blog-figure img, .blog-figure video {
    display: block;
    width: 100%;
    border-radius: var(--bg-r);
    box-shadow: var(--bg-shadow-soft);
}
.blog-figure figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--bg-faint); }

.blog-table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--bg-r); border: 1px solid var(--bg-line); background: var(--bg-paper); }
.blog-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.blog-table th, .blog-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--bg-line); }
.blog-table th {
    font-family: var(--bg-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bg-faint);
    background: var(--bg-ground);
}
.blog-table tr:last-child td { border-bottom: 0; }

.blog-code {
    margin: 1.6em 0;
    padding: 20px 24px;
    border-radius: var(--bg-r);
    background: var(--bg-night);
    color: #E9E6FF;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.blog-code code { background: none; padding: 0; color: inherit; }

.blog-callout {
    margin: 1.6em 0;
    padding: 20px 24px;
    border-radius: var(--bg-r);
    border: 1px solid var(--bg-line);
    background: var(--bg-paper);
}
.blog-callout--info { border-color: rgba(102, 87, 232, .35); background: var(--bg-purple-soft); }
.blog-callout--success { border-color: rgba(35, 155, 107, .35); background: var(--bg-green-soft); }
.blog-callout--warning { border-color: rgba(245, 167, 59, .45); background: #FFF6E8; }
.blog-callout-title { font-family: var(--bg-display); font-weight: 800; margin-bottom: 6px; color: var(--bg-ink); }

.blog-takeaways {
    margin: 1.8em 0;
    padding: 26px 30px;
    border-radius: var(--bg-r-lg);
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    box-shadow: var(--bg-shadow-soft);
}
.blog-takeaways-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bg-display);
    font-weight: 800;
    font-size: 17px;
    color: var(--bg-ink);
    margin-bottom: 14px;
}
.blog-takeaways-title::before {
    content: "★";
    font-size: 15px;
    background: var(--bg-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.blog-takeaways ul { margin: 0; padding-left: 24px; display: grid; gap: .55em; }

.blog-cta-inline {
    margin: 2em 0;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px 30px;
    border-radius: var(--bg-r-lg);
    background: linear-gradient(120deg, var(--bg-purple-soft), #FFEFE9);
    border: 1px solid rgba(102, 87, 232, .18);
}
.blog-cta-inline-copy { flex: 1; }
.blog-cta-inline-title { font-family: var(--bg-display); font-weight: 800; font-size: 18px; color: var(--bg-ink); margin-bottom: 6px; }
.blog-cta-inline p:not(.blog-cta-inline-title) { font-size: 15px; color: var(--bg-muted); }

.blog-hr { border: 0; height: 1px; background: var(--bg-line); margin: 2.2em 0; }

/* FAQ de l'article */
.blog-faq { margin-top: 3em; }
.blog-faq h2 { margin-bottom: .8em; }
.blog-faq-item {
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    border-radius: var(--bg-r);
    margin-bottom: 12px;
    box-shadow: var(--bg-shadow-soft);
}
.blog-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--bg-display);
    font-weight: 700;
    font-size: 16.5px;
    color: var(--bg-ink);
}
.blog-faq-item summary::-webkit-details-marker { display: none; }
.blog-faq-ic {
    position: relative;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bg-purple-soft);
    flex: 0 0 auto;
}
.blog-faq-ic::before, .blog-faq-ic::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px; height: 2px;
    border-radius: 2px;
    background: var(--bg-purple-deep);
    transition: transform .3s var(--bg-ease);
}
.blog-faq-ic::after { transform: rotate(90deg); }
.blog-faq-item[open] .blog-faq-ic::after { transform: rotate(0); }
.blog-faq-a { padding: 0 24px 20px; color: var(--bg-muted); }

/* Fin d'article */
.blog-final-cta { margin: 3em 0 0; text-align: center; }

.blog-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 2.4em;
    padding: 22px 26px;
    border-radius: var(--bg-r);
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
}
.blog-author-name { font-family: var(--bg-display); font-weight: 800; color: var(--bg-ink); }
.blog-author-role { font-size: 14px; color: var(--bg-muted); }

/* Précédent / suivant */
.blog-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 46px;
    padding-bottom: 8px;
}
.blog-pn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 26px;
    border-radius: var(--bg-r);
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    text-decoration: none;
    transition: transform .3s var(--bg-ease), box-shadow .3s var(--bg-ease);
}
.blog-pn:hover { transform: translateY(-3px); box-shadow: var(--bg-shadow-soft); }
.blog-pn--next { text-align: right; grid-column: 2; }
.blog-pn--prev { grid-column: 1; }
.blog-pn-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--bg-faint); text-transform: uppercase; }
.blog-pn-title { font-family: var(--bg-display); font-weight: 700; color: var(--bg-ink); font-size: 15.5px; }

/* « À lire ensuite » */
.blog-related { padding: 40px 28px 90px; }
.blog-related-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 30px; }

/* ---------- Footer ---------- */

.blog-footer {
    border-top: 1px solid var(--bg-line);
    background: var(--bg-cream-deep);
    padding: 54px 0 30px;
    margin-top: 40px;
}
.blog-footer-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 26px;
}
.blog-footer .blog-brand img { width: 132px; }
.blog-footer-tagline { color: var(--bg-muted); font-size: 15px; }
.blog-footer-nav { margin-left: auto; display: flex; gap: 22px; }
.blog-footer-nav a { font-size: 14.5px; font-weight: 600; color: var(--bg-ink-soft); text-decoration: none; }
.blog-footer-nav a:hover { color: var(--bg-ink); }
.blog-footer-legal {
    border-top: 1px solid var(--bg-line);
    padding-top: 22px;
    font-size: 13px;
    color: var(--bg-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .blog-post-layout { grid-template-columns: minmax(0, 720px); }
    .blog-toc { display: none; }
}

@media (max-width: 860px) {
    .blog-grid, .blog-grid--related { grid-template-columns: 1fr; }
    .blog-card--featured .blog-card-link { flex-direction: column; }
    .blog-card--featured .blog-card-media { flex: none; aspect-ratio: 1200 / 630; min-height: 0; }
    .blog-card--featured .blog-card-body { padding: 26px 28px 28px; }

    .blog-nav {
        position: fixed;
        top: 84px; right: 20px; left: 20px;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--bg-line);
        border-radius: 22px;
        box-shadow: var(--bg-shadow-lg);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .35s var(--bg-ease), transform .35s var(--bg-ease);
    }
    .blog-nav.open { opacity: 1; transform: none; pointer-events: auto; }
    .blog-nav > a:not(.blog-btn) { padding: 13px 14px; font-size: 16.5px; border-radius: 12px; }
    .blog-nav > a:not(.blog-btn)::after { display: none; }
    .blog-nav > a:not(.blog-btn):hover { background: var(--bg-ground); }
    .blog-nav .blog-btn { margin-top: 10px; justify-content: center; padding: 15px; }
    .blog-menu-toggle { display: flex; margin-left: 4px; }
    .blog-lang { margin-left: auto; }

    .blog-hero, .blog-post-hero { padding: 46px 0 34px; }
    .blog-cta-inline { flex-direction: column; align-items: flex-start; }
    .blog-prevnext { grid-template-columns: 1fr; }
    .blog-pn--next { grid-column: auto; text-align: left; }
    .blog-banner-cta, .blog-final-cta { padding: 34px 26px 38px; }
    .blog-btn { white-space: normal; text-align: center; line-height: 1.25; }
    .blog-breadcrumb [aria-current] { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-body *, .blog-body *::before, .blog-body *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}
