/* Blog : complément de style.css et sp.css (mêmes variables). */
.sp.post .hero h1, .sp.blog .hero h1 { font-size: clamp(38px, 5.6vw, 84px); }
.post-meta { grid-column: 1 / -1; margin-top: 22px; font: 500 13px/1.5 var(--font-mono); letter-spacing: .04em; color: var(--ink-muted); }
.post-meta a { color: var(--brand); text-decoration: none; } .post-meta a:hover { text-decoration: underline; }

/* le texte de l'article : une colonne étroite, facile à lire */
.post-body { padding-top: 0; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 22px; }
.prose p, .prose li { font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin-top: 72px; scroll-margin-top: 96px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; line-height: 1.25; margin-top: 44px; }
.prose a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 14px; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 34px; }
.prose ul > li::before { content: ""; position: absolute; left: 8px; top: .68em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 46px; }
.prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .42em; font: 500 13px/1 var(--font-mono); letter-spacing: .06em; color: var(--brand); }
.prose ul.check > li::before { content: ""; left: 2px; top: .34em; width: 18px; height: 18px; border-radius: 6px; background: none; border: 2px solid var(--ink); }
.prose ul.check > li::after { content: ""; position: absolute; left: 8px; top: calc(.34em + 3px); width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg); }
.toc { border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; background: var(--surface-raised); }
.toc .label { display: block; margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; counter-reset: n; }
.toc li { position: relative; counter-increment: n; padding-left: 34px; font-size: 16px; line-height: 1.4; }
.toc li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--brand); }
.toc a { text-decoration: none; color: var(--ink); } .toc a:hover { color: var(--brand); text-decoration: underline; }
.post-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 340px); justify-content: space-between; gap: 64px; align-items: start; }
.post-grid .toc { position: sticky; top: 112px; order: 2; }
@media (max-width: 1100px) { .post-grid { grid-template-columns: minmax(0, 720px); gap: 40px; } .post-grid .toc { position: static; order: 0; } }
.tbl { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 20px; font-size: 16px; line-height: 1.5; }
.tbl th { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--ink); }
.tbl td { border-top: 1px solid var(--line); }
.tbl tr:first-child td { border-top: 0; }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.note { border-radius: 20px; padding: 24px 28px; background: var(--brand-tint); border-left: 6px solid var(--accent); }
.note .label { display: block; margin-bottom: 10px; color: var(--ink); }
.prose .note p { font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.stat { border-radius: 20px; padding: 22px 24px 20px; background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.stat-n { font: 600 clamp(34px, 3.6vw, 46px)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.prose .stat p { font-size: 16px; line-height: 1.5; margin: 0; }
.prose a.stat-src { margin-top: auto; padding-top: 6px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .03em; color: var(--brand); text-decoration: none; }
.prose a.stat-src:hover { text-decoration: underline; }
.avis { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; border-radius: 20px; padding: 24px 28px; border: 2px solid var(--ink); background: var(--surface-raised); }
.avis img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--brand-tint); }
.avis .label { display: block; margin-bottom: 8px; color: var(--accent); }
.prose .avis p { font: 500 19px/1.55 var(--font-display); letter-spacing: -.005em; margin: 0; }
.prose .avis p + p { margin-top: 10px; }
.avis-sig { display: block; margin-top: 12px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--ink-muted); }
.prose .how { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
/* visuels : graphiques en barres, schémas, phrases mises en avant */
.chart, .sch { margin: 28px 0 0; border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px 22px; background: var(--surface-raised); }
.chart .label, .sch .label { display: block; margin-bottom: 18px; color: var(--ink); }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 16px; align-items: center; }
.bar-l { font-size: 16px; line-height: 1.35; color: var(--ink); }
.bar-t { position: relative; height: 34px; border-radius: 9px; background: var(--brand-tint); overflow: hidden; }
.bar-f { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 4px; border-radius: 9px; background: var(--brand); transform-origin: left; }
.bar.hi .bar-f { background: var(--ink); }
.bar-v { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--w) + 10px); font: 600 15px/1 var(--font-mono); color: var(--ink); white-space: nowrap; }
.bar.in .bar-v { left: auto; right: calc(100% - var(--w) + 10px); color: #fff; }
.prose .chart-src, .prose .sch figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.prose .chart-src a { color: var(--brand); }
.pull { margin: 44px 0 0; padding: 4px 0 4px 26px; border-left: 6px solid var(--accent); }
.prose .pull p { font: 600 clamp(24px, 2.6vw, 34px)/1.22 var(--font-display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; margin: 0; }
.prose .pull + * { margin-top: 44px; }
/* schéma : la page de résultats d'une recherche locale */
.sch-serp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.sch-win { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--surface); }
.sch-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.sch-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); } .sch-top i:first-child { background: var(--accent); }
.sch-q { margin: 12px; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 99px; font: 500 14px/1.2 var(--font-mono); color: var(--ink); background: var(--surface-raised); }
.sch-zone { margin: 0 12px 12px; padding: 12px; border-radius: 12px; }
.sch-zone.a { background: var(--brand-tint); border: 2px solid var(--brand); }
.sch-zone.b { border: 2px dashed var(--line); }
.sch-map { height: 64px; border-radius: 8px; background: repeating-linear-gradient(135deg, #fff 0 10px, rgba(255,255,255,.55) 10px 20px); position: relative; margin-bottom: 10px; }
.sch-map b { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 2px solid var(--ink); }
.sch-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-raised); font-size: 14px; line-height: 1.25; color: var(--ink); }
.sch-r + .sch-r { margin-top: 6px; }
.sch-r em { margin-left: auto; font: 500 12px/1 var(--font-mono); font-style: normal; color: var(--ink-muted); white-space: nowrap; }
.sch-r.me { outline: 2px solid var(--ink); font-weight: 600; }
.sch-line { height: 9px; border-radius: 99px; background: var(--line); } .sch-line + .sch-line { margin-top: 8px; width: 70%; }
.sch-notes { display: grid; gap: 14px; align-content: center; }
.sch-note { border-left: 4px solid var(--brand); padding: 2px 0 2px 14px; }
.sch-note.b { border-left-style: dashed; border-left-color: var(--ink-muted); }
.prose .sch-note p { font-size: 15px; line-height: 1.45; margin: 0; }
.sch-note strong { display: block; font: 600 16px/1.3 var(--font-display); margin-bottom: 2px; }
/* schéma : trois étapes reliées par des flèches */
.sch-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.sch-step { border: 2px solid var(--ink); border-radius: 14px; padding: 16px; background: var(--surface); }
.sch-step.hi { background: var(--brand-tint); border-color: var(--brand); }
.sch-step .sch-n { display: block; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--brand); margin-bottom: 10px; }
.sch-step strong { display: block; font: 600 18px/1.2 var(--font-display); margin-bottom: 6px; }
.prose .sch-step p { font-size: 14px; line-height: 1.45; margin: 0; color: var(--ink-muted); }
.sch-arrow { align-self: center; font: 500 22px/1 var(--font-mono); color: var(--accent); }
.post-cover { margin: 0 0 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.post-cover img { display: block; width: 100%; height: auto; }
.post-cta { margin-top: 56px; border: 2px solid var(--ink); border-radius: 24px; padding: 28px 32px; display: grid; gap: 14px; }
.post-cta h3 { margin: 0; font-size: 24px; }
.post-cta .btn { justify-self: start; text-decoration: none; }
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources .label { display: block; margin-bottom: 12px; }
.prose .sources li { font-size: 16px; }
.author { margin-top: 40px; display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: end; border-radius: 24px; padding: 0 28px 0 16px; background: var(--surface-raised); border: 1px solid var(--line); overflow: hidden; }
.author img { display: block; width: 132px; height: 176px; object-fit: cover; object-position: 50% 0; }
.author > div { align-self: center; padding: 24px 0; }
.author .label { display: block; margin-bottom: 6px; }
.prose .author p { font-size: 17px; line-height: 1.55; margin: 0; }
.prose .author p + p { margin-top: 6px; color: var(--ink-muted); }
.related { margin-top: 40px; }
.related .label { display: block; margin-bottom: 12px; }
.prose .related ul { gap: 10px; }
.prose .related li { padding-left: 0; font-weight: 600; font-size: 18px; } .prose .related li::before { display: none; }
.prose .related a { text-decoration: none; } .prose .related a:hover { text-decoration: underline; }

/* la page liste */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.post-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 30px; text-decoration: none; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.post-card .tag { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.post-card h3 { font-size: 24px; line-height: 1.18; text-wrap: balance; }
.post-card p { font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.post-card .when { margin-top: auto; padding-top: 10px; font: 500 12px/16px var(--font-mono); letter-spacing: .04em; color: var(--ink-muted); }
.post-card .go { font-weight: 600; color: var(--brand); }
@media (max-width: 1180px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .posts { grid-template-columns: 1fr; }
  .prose p, .prose li { font-size: 18px; }
  .prose h2 { margin-top: 56px; }
  .toc, .note, .post-cta { padding: 22px; }
  .stats { grid-template-columns: 1fr; }
  .chart, .sch { padding: 20px 18px; }
  .bar { grid-template-columns: 1fr; gap: 6px; }
  .sch-serp { grid-template-columns: 1fr; }
  .sch-flow { grid-template-columns: 1fr; } .sch-arrow { justify-self: center; transform: rotate(90deg); }
  .avis { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; } .avis img { width: 44px; height: 44px; }
  .prose .avis p { font-size: 18px; }
  .author { grid-template-columns: 96px 1fr; gap: 14px; padding: 0 20px 0 10px; } .author img { width: 96px; height: 140px; } .author > div { padding: 20px 0; }
  .tbl th, .tbl td { padding: 14px 16px; }
}
