/* FactureFlash — blog (s'appuie sur site.css) */
.blog-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.blog-hero .glow { height: 520px; }
.blog-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.article-head { max-width: 760px; }
.article-head h1, .blog-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 14px 0 18px; }
.article-head .lead { max-width: 680px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; }

/* Mise en page article : sommaire collant + texte */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; padding: 24px 0 96px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 720px); gap: 0; } }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.on { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 1000px) { .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 40px; } }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); font-weight: 800; margin: 64px 0 18px; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; letter-spacing: -.015em; color: var(--ink); margin: 36px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 24px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--spark); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }

.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.prose table thead, .prose table tbody { display: table; width: 100%; border-collapse: collapse; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--ink); font-size: 13px; letter-spacing: .03em; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

.note { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 28px 0; font-size: 16px; box-shadow: var(--shadow-sm); }
.note::before { content: "i"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-family: var(--serif); font-size: 17px; font-style: italic; }
.note.warn::before { content: "!"; background: #fdf0dc; color: #a8570f; font-family: inherit; font-style: normal; font-size: 14px; }
.note p { margin: 0; }

.template { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 20px 0 32px; box-shadow: var(--shadow-sm); overflow: hidden; }
.template-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); }
.copy-btn { font: inherit; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.copy-btn:hover { border-color: var(--brand); }
.template pre { margin: 0; padding: 20px; white-space: pre-wrap; font: 15px/1.7 Inter, system-ui, sans-serif; color: var(--ink-2); }

.checklist { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 !important; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 6px; background: var(--brand-soft) no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f6f5c' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E"); }

.timeline { list-style: none !important; padding: 0 !important; margin: 8px 0 32px !important; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 60px !important; margin: 0 !important; }
.timeline li .when { position: absolute; left: 0; top: -2px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--brand); color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: -.02em; }
.timeline li b { display: block; color: var(--ink); }

.cta-box { position: relative; overflow: hidden; margin: 48px 0; padding: 36px 32px; border-radius: 22px; color: #fff; background: radial-gradient(100% 120% at 100% 0%, #2a8a72 0%, #134a3d 55%, #0b2d25 100%); box-shadow: var(--shadow-lg); }
.cta-box::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.3), transparent 70%); pointer-events: none; }
.cta-box h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; color: #fff; }
.cta-box p { margin: 0 0 22px; color: rgba(255,255,255,.8); font-size: 16px; max-width: 460px; }
.cta-box .btn { position: relative; z-index: 1; }

.prose .faq { margin-top: 8px; }
.prose .faq summary { font-size: 17px; color: var(--ink); }
.prose .faq details p { font-size: 16px; }

.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 56px; }
.sources p { margin: 0 0 8px; }

/* Liste d'articles */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 16px 0 112px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.post-cover { height: 150px; display: grid; place-items: center; background: radial-gradient(120% 120% at 100% 0%, #2a8a72, #134a3d 60%, #0b2d25); position: relative; overflow: hidden; }
.post-cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; }
.post-cover svg { position: relative; z-index: 1; width: 52px; height: 52px; fill: none; stroke: var(--spark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin: 12px 0 10px; color: var(--ink); }
.post-body p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.post-body .more { color: var(--brand); font-weight: 600; font-size: 14px; }

.related { border-top: 1px solid var(--line); padding: 72px 0 104px; background: var(--bg-alt); }
.related h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 24px; }
.related .posts { padding: 0; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .related .posts { grid-template-columns: 1fr; } }
