/* Blog Cervo : règles partagées reprises de la page d'accueil, puis mise en page du blog */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
            --orange:          #FF500C; 
            --orange-hover:    #E04400; 
            --orange-on-cream: #F54500; 
            --orange-light: #FDE8DE;
            --navy:         #000644;
            --cream:        #F2EDE4;
            --cream-dark:   #E4DDD2;
            --offwhite:     #FFFCF9;
            --white:        #FFFFFF;
            --text:         #000644;
            --muted:        #5A5D7A;
            --green:        #10B981;
            --green-soft:   #D1FAE5;
            --amber-soft:   #FEF3C7;
            --red-soft:     #FEE2E2;
            --shadow-sm:    0 2px 12px rgba(0,6,68,.06);
            --shadow-md:    0 12px 36px rgba(0,6,68,.09);
            --shadow-lg:    0 24px 64px rgba(0,6,68,.13);
            --lav:          #E9E7F5;
            --amber-bg:     #FAEBCB;
            --amber-tx:     #8A6212;
            --wgreen:       #2B7F56;
            --wgreen-bg:    #DDF3E4;
            --gutter:     clamp(20px, 5vw, 32px);
            --section-y:  clamp(72px, 9vw, 120px);
            --header-gap: clamp(40px, 5vw, 56px);
        }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
            font-family: 'DM Sans', -apple-system, sans-serif;
            color: var(--text); background: var(--offwhite);
            line-height: 1.6; -webkit-font-smoothing: antialiased;
        }
h1, h2, h3 { font-family: 'Aquavit', 'DM Serif Display', 'Georgia', serif; font-weight: 400; line-height: 1.12; }
h3 { line-height: 1.25; }
h1, h2, h3, .cd-name { text-wrap: balance; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
section[id] { scroll-margin-top: 84px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.badge {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2;
            color: var(--navy); background: var(--orange-light);
            padding: 7px 14px 7px 12px; border-radius: 100px;
        }
.badge::before, .cd-kicker::before, .sponsor-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.btn {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 8px; padding: 14px 30px; min-height: 52px; border-radius: 60px;
            font-size: 19px; font-weight: 700; letter-spacing: -.005em; line-height: 1.1;
            cursor: pointer; border: none; white-space: nowrap;
            transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
        }
.btn-lg { padding: 17px 38px; min-height: 56px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,80,12,.3); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid rgba(0,6,68,.16); }
.btn-secondary:hover { border-color: var(--navy); background: rgba(0,6,68,.04); }
.btn-ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav {
            position: sticky; top: 0; z-index: 100;
            background: rgba(255,252,249,.9);
            backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(0,6,68,.06);
        }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; min-width: 44px; min-height: 44px; }
.nav-logo svg { height: 30px; width: auto; }
.nav-logo .logo-mark { display: none; height: 36px; width: 36px; }
@media (max-width: 760px) {
    .nav-logo .logo-full { display: none; }
    .nav-logo .logo-mark { display: block; }
    .nav-inner { gap: 10px; }
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
            font-size: 14px; font-weight: 600; color: var(--navy); opacity: .6;
            padding: 23px 0 21px; border-bottom: 2px solid transparent;
            transition: opacity .2s, color .2s, border-color .2s;
        }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--navy); border-bottom-color: var(--orange); }
.nav .btn { padding: 10px 18px; min-height: 44px; font-size: 19px; flex-shrink: 0; }
@media (max-width: 760px) {
    .nav .btn { padding: 9px 14px; }
}
.nav-cta { min-width: 0; }
.nav-cta .cta-short { display: none; }
@media (max-width: 760px) {
    .nav-cta { min-width: 0; }
    .nav-cta .cta-full { display: none; }
    .nav-cta .cta-short { display: inline; }
}
.lang-switch { display: flex; gap: 2px; flex-shrink: 0; margin-left: auto; }
.nav-inner .lang-cycle { margin-left: auto; }
.lang-switch a { font-size: 11.5px; font-weight: 700; padding: 6px 8px; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.lang-on { color: var(--navy); background: var(--cream); }
.lang-cycle {
            display: none; font-size: 11.5px; font-weight: 700; padding: 7px 10px;
            border-radius: 8px; color: var(--navy); background: var(--cream);
            align-items: center; gap: 5px; flex-shrink: 0; position: relative;
        }
.lang-cycle::after { content: ''; position: absolute; inset: -6px -2px; }
.lang-cycle svg { width: 11px; height: 11px; }
@media (max-width: 760px) {
    .lang-switch { display: none; }
    .lang-cycle { display: inline-flex; }
}
.footer { background: var(--navy); padding: 64px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-logo svg { height: 34px; width: auto; }
.footer-tagline { font-size: 14px; color: rgba(255,252,249,.5); margin-top: 14px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.footer-contact a { font-size: 13.5px; color: rgba(255,252,249,.65); transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-links { display: flex; gap: 0 24px; flex-wrap: wrap; align-items: center; }
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a { font-size: 14px; color: rgba(255,252,249,.65); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
            border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
            display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
        }
.footer-copy { font-size: 12.5px; color: rgba(255,252,249,.55); }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.fsocial {
            width: 44px; height: 44px; border-radius: 50%;
            background: rgba(255,255,255,.07); color: rgba(255,252,249,.7);
            display: flex; align-items: center; justify-content: center;
            transition: background .2s, color .2s;
        }
.fsocial:hover { background: rgba(255,255,255,.14); color: #fff; }
body { transition: opacity .3s ease; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.footer :focus-visible, .cta-final :focus-visible, .pcard.feat :focus-visible,
        .calc-output-side :focus-visible, .mission-quote :focus-visible, .wa-voicebar :focus-visible { outline-color: var(--offwhite); }
.nav-links a:focus-visible { opacity: 1; }
.skip-link {
            position: fixed; top: 12px; left: 12px; z-index: 1000;
            background: var(--navy); color: #fff;
            font-size: 14px; font-weight: 700; line-height: 1.2;
            padding: 12px 18px; border-radius: 10px;
            box-shadow: 0 0 0 3px var(--offwhite), var(--shadow-md);
        }
.skip-link:not(:focus) {
            width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
            clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; box-shadow: none;
        }
#main { scroll-margin-top: 68px; }
#main:focus { outline: none; }
#main:focus-visible > :first-child { box-shadow: inset 0 3px 0 var(--navy); }
@media (max-width: 1020px) {
    .nav-links { display: none; }
}
@media (max-width: 760px) {
    .footer { padding: 56px 0 32px; }
    .footer-top { gap: 28px; margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Blog : mise en page des listes et des articles ───────────────────── */
.blog-hero { background: var(--cream); padding: 72px 0 64px; }
.blog-hero h1 { font-size: clamp(40px, 5vw, 64px); color: var(--navy); margin: 18px 0 16px; }
.blog-hero p { font-size: 18px; color: var(--muted); max-width: 640px; line-height: 1.7; }
.blog-list { padding: 64px 0 96px; background: var(--white); }
.blog-list:has(.blog-empty) { padding-bottom: clamp(96px, 12vw, 160px); }
.prose p, .prose li, .post-excerpt, .blog-hero p { text-wrap: pretty; }
.post-cta p { text-wrap: balance; }

.post-grid { display: grid; grid-template-columns: 1fr; gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 680px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card--featured { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
    .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
    .post-card--featured { grid-column: span 2; grid-row: span 2; }
    .post-card--featured .post-card-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; position: relative; }
    .post-card--featured .post-card-media img { position: absolute; inset: 0; }
    .post-card--featured .post-card-body { flex: 0 0 auto; padding: 30px 34px 34px; }
    .post-card--featured h2 { font-size: clamp(30px, 2.6vw, 38px); }
    .post-card--featured .post-excerpt { -webkit-line-clamp: 4; font-size: 16.5px; }
}
.post-card { background: var(--offwhite); border: 1.5px solid rgba(0,6,68,.07); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255,80,12,.18); }
.post-card-media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 26px) 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 23px; line-height: 1.2; color: var(--navy); margin: 0; }
.post-card h3 { font-size: 21px; line-height: 1.25; color: var(--navy); margin: 0; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.post-card h2 a:focus-visible, .post-card h3 a:focus-visible { outline: none; }
.post-card:hover h2 a, .post-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
@supports not selector(:has(*)) { .post-card:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; } }
.post-card--compact .post-card-body { padding: 18px 20px 22px; gap: 8px; }
.post-excerpt { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.post-meta .author { color: var(--navy); font-weight: 700; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--navy); background: var(--cream); padding: 4px 10px; border-radius: 100px; }

.blog-empty { max-width: 640px; margin: 0 auto; background: var(--cream); border-radius: 24px; padding: 44px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.blog-empty p { font-family: 'Aquavit', 'DM Serif Display', Georgia, serif; font-size: clamp(24px, 3vw, 30px); line-height: 1.25; color: var(--navy); margin: 0; }
.blog-empty .btn { white-space: normal; text-align: center; line-height: 1.3; }

.post { background: var(--white); }
.post-header { background: var(--cream); padding: 40px 0 120px; }
.post-header .container, .post-cover .container, .post-body .container, .post-end .container { max-width: 720px; }
.post-header h1 { font-size: clamp(34px, 4.6vw, 54px); color: var(--navy); margin: 16px 0 18px; line-height: 1.12; }
.post-header .post-meta { gap: 8px 14px; font-size: 14.5px; }
.post-header .pill { background: var(--offwhite); border: 1px solid rgba(0,6,68,.08); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.breadcrumb li { flex-shrink: 0; white-space: nowrap; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--muted); }
.breadcrumb li[aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,6,68,.25); text-underline-offset: 3px; }
.breadcrumb a:hover { text-decoration-color: var(--orange); }
.post-cover { margin-top: -88px; }
.post-figure { margin: 0; }
.post-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); display: block; }
.post-body { padding: 44px 0 24px; }

.toc { background: var(--offwhite); border: 1.5px solid rgba(0,6,68,.08); border-radius: 18px; padding: 20px 22px; margin: 0 0 40px; }
.toc-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.toc-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; align-items: baseline; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a { display: block; padding: 5px 0; color: var(--navy); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.prose { font-size: 17.5px; line-height: 1.75; color: #1d2150; overflow-wrap: break-word; hanging-punctuation: first; font-kerning: normal; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child { font-size: 1.1em; line-height: 1.7; color: var(--navy); }
.prose h2 { font-size: clamp(27px, 3.2vw, 34px); color: var(--navy); line-height: 1.18; letter-spacing: -.005em; margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-size: clamp(20px, 2.4vw, 23px); color: var(--navy); line-height: 1.3; margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .55em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.prose a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-skip-ink: auto; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose strong { color: var(--navy); }
.prose .callout { background: var(--cream); border-radius: 18px; border: 1.5px solid rgba(255,80,12,.22); padding: 22px 26px; font-size: .94em; line-height: 1.65; margin-top: 1.6em; }
.prose .callout + * { margin-top: 1.6em; }
.prose .callout > * + * { margin-top: .6em; }
.prose .callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 15px; letter-spacing: .01em; }
.prose .callout-title::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.post-end { padding: 8px 0 96px; }
.post-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; border-radius: 28px; padding: 48px 40px; text-align: center; margin: 48px 0 64px; box-shadow: var(--shadow-lg); }
.post-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(255,80,12,.22) 0%, transparent 65%); }
.post-cta p { font-family: 'Aquavit', 'DM Serif Display', Georgia, serif; font-size: clamp(25px, 3.2vw, 32px); line-height: 1.28; color: #fff; margin: 0 auto 26px; max-width: 580px; }
.post-cta-price { display: block; margin-top: 6px; color: var(--orange); }
.post-cta :focus-visible { outline-color: var(--offwhite); }
.related h2 { font-size: clamp(26px, 3vw, 32px); color: var(--navy); margin-bottom: 22px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.post-sources { margin-top: 64px; padding-top: 32px; border-top: 1.5px solid rgba(0,6,68,.08); }
.post-sources h2 { font-size: 20px; color: var(--navy); margin-bottom: 14px; }
.post-sources ol { padding-left: 22px; font-size: 13.5px; line-height: 1.55; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.post-sources li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.post-sources a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(0,6,68,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.post-sources a:hover { text-decoration-color: var(--navy); }
.related-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin-top: 40px; font-size: 15px; }
.related-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.related-more a:hover { text-decoration-color: var(--navy); }

@media (min-width: 1120px) {
    .has-toc > .container { max-width: 1012px; display: grid; grid-template-columns: 220px minmax(0, 656px); column-gap: 72px; justify-content: center; align-items: start; }
    .has-toc > .container > * { grid-column: 2; }
    .post-header.has-toc .badge { justify-self: start; }
    .post-body.has-toc .prose { grid-row: 1; }
    .post-body.has-toc .toc { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 96px; margin: 0; max-height: calc(100vh - 120px); overflow-y: auto; background: transparent; border: 0; border-left: 1.5px solid rgba(0,6,68,.1); border-radius: 0; padding: 4px 0 4px 18px; }
    .post-body.has-toc .toc a { font-size: 14px; color: var(--muted); }
    .post-body.has-toc .toc a:hover { color: var(--navy); }
}
@media (max-width: 760px) {
    .blog-hero { padding: 48px 0 44px; }
    .blog-list { padding: 44px 0 72px; }
    .post-header { padding: 24px 0 72px; }
    .post-cover { margin-top: -52px; }
    .post-figure img { border-radius: 18px; }
    .post-body { padding: 32px 0 16px; }
    .toc { padding: 18px 20px; margin-bottom: 32px; }
    .prose { font-size: 16.5px; }
    .prose .callout { padding: 18px 20px; }
    .post-cta { padding: 36px 22px; border-radius: 22px; }
    .post-end { padding: 0 0 72px; }
}
@media (prefers-reduced-motion: reduce) { .post-card:hover, .post-card:hover .post-card-media img { transform: none; } }
