/* ═══ Articles du blog — format 2026 (1er oct. 2026) ═══════════════════
   Chargé après design-2026.css sur les 14 articles (<body class="page-article">).
   Structure commune : article.post > header.hero.post-head + .post-body
   (.post-cover, .post-grid > .post-intro? .post-aside? .prose) puis .post-after.
   Tous les sélecteurs commencent par « html body.page-article » pour passer
   devant le <style> propre à chaque article, sans !important. */

html body.page-article{
  --post-max:1000px;   /* largeur de la grille (sommaire + texte) */
  --prose:680px;       /* colonne de lecture : 65 à 75 caractères */
  --aside:232px;
  --post-gap:88px;
  --post-gutter:20px;
}
html body.page-article article.post{padding:0;margin:0}
html body.page-article .post .wrap,
html body.page-article .post-after{max-width:calc(var(--post-max) + 2*var(--post-gutter));margin-left:auto;margin-right:auto;padding-left:max(var(--post-gutter),env(safe-area-inset-left));padding-right:max(var(--post-gutter),env(safe-area-inset-right))}
html body.page-article .post--narrow .wrap,
html body.page-article .post--narrow ~ .post-after{max-width:calc(var(--prose) + 2*var(--post-gutter))}

/* ── En-tête ─────────────────────────────────────────────────────────── */
html body.page-article .post-head{text-align:left;padding-top:40px;padding-bottom:36px}
html body.page-article .post-head > .wrap{justify-content:flex-start}
html body.page-article .post-head h1{margin:0 0 16px}
html body.page-article .post-head .lead{max-width:62ch;margin:0;font-size:1.15rem;line-height:1.6;color:var(--ink-2)}
html body.page-article .post-head .breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 20px;font-size:.85rem;color:var(--gray)}
html body.page-article .post-head .breadcrumb a{color:var(--gray);text-decoration:none}
html body.page-article .post-head .breadcrumb a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
html body.page-article .post-head .breadcrumb [aria-hidden]{color:var(--gray);opacity:.5}
html body.page-article .post-head .breadcrumb [aria-current]{color:var(--ink-2);min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.page-article .post-head .tag{margin:0 0 16px}
html body.page-article .post-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 0;margin:28px 0 0;padding:18px 0 0;border-top:1px solid var(--border);font-size:.875rem;line-height:1.5;color:var(--gray)}
html body.page-article .post-meta > span{display:inline}
html body.page-article .post-meta > .post-meta__by{display:inline-flex;align-items:center;gap:10px}
html body.page-article .post-meta > span + span::before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.55;margin:0 12px;vertical-align:middle}
html body.page-article .post-meta strong{color:var(--ink);font-weight:600}
html body.page-article .post-meta img{width:26px;height:26px;padding:4px;border-radius:50%;background:var(--card);border:1px solid var(--border);box-sizing:border-box}

/* ── Couverture ──────────────────────────────────────────────────────── */
html body.page-article .post-body{padding-top:8px;padding-bottom:16px}
html body.page-article .post-cover{max-width:none;width:100%;margin:0 0 56px;border-radius:20px;overflow:hidden;line-height:0;box-shadow:0 1px 0 var(--border),0 24px 60px rgba(10,14,10,.10)}
html body.page-article .post-cover img{display:block;width:100%;height:auto}
html body.page-article .post-cover--square{max-width:min(600px,100%)}

/* ── Grille : sommaire collant à gauche, texte à droite (≥ 1100 px) ──── */
html body.page-article .post-grid{display:block}
@media (min-width:1100px){
  html body.page-article .post-grid.has-toc{display:grid;grid-template-columns:var(--aside) minmax(0,var(--prose));column-gap:var(--post-gap);align-items:start}
  html body.page-article .post-grid.has-toc > .post-intro{grid-column:2;grid-row:1}
  html body.page-article .post-grid.has-toc > .post-aside{grid-column:1;grid-row:1 / span 2;position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto;overscroll-behavior:contain;padding-bottom:8px}
  html body.page-article .post-grid.has-toc > .prose{grid-column:2;grid-row:2}
}
@media (max-width:1099.98px){
  html body.page-article .post-grid > *{max-width:var(--prose);margin-left:auto;margin-right:auto}
}
html body.page-article .post--narrow .post-grid > *{max-width:var(--prose)}

/* ── Sommaire ────────────────────────────────────────────────────────── */
html body.page-article .post-aside .toc{margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
html body.page-article .post-aside .toc__title{margin:0 0 14px;font-family:inherit;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gray)}
html body.page-article .post-aside .toc ol{list-style:none;counter-reset:none;margin:0;padding:0;border-left:1px solid var(--border)}
html body.page-article .post-aside .toc li{margin:0;padding:0;font-size:inherit}
html body.page-article .post-aside .toc li::before{content:none}
html body.page-article .post-aside .toc a{display:block;min-height:0;margin-left:-1px;padding:7px 0 7px 16px;border-left:2px solid transparent;border-radius:0;background:none;font-size:.875rem;line-height:1.4;color:var(--gray);text-decoration:none}
html body.page-article .post-aside .toc a:hover{color:var(--ink);background:none}
html body.page-article .post-aside .toc a:focus-visible{outline:2px solid var(--green);outline-offset:2px}
html body.page-article .post-aside .toc a.is-active{color:var(--ink);font-weight:600;border-left-color:var(--green)}
@media (max-width:1099.98px){
  html body.page-article .post-aside{margin-bottom:40px}
  html body.page-article .post-aside .toc{padding:20px 22px;background:var(--gray-soft);border-radius:16px}
  html body.page-article .post-aside .toc ol{border-left:0}
  html body.page-article .post-aside .toc a{margin:0;padding:8px 0;border:0;border-top:1px solid var(--border);font-size:.95rem;color:var(--ink-2)}
  html body.page-article .post-aside .toc li:first-child a{border-top:0}
}

/* ── Encadré « L'essentiel » ─────────────────────────────────────────── */
html body.page-article .post-intro .essentiel{margin:0 0 44px}

/* ── Texte ───────────────────────────────────────────────────────────── */
html body.page-article .prose{font-size:1.125rem;line-height:1.75;color:var(--ink-2);padding:0}
html body.page-article .prose > section{margin:0;padding:0}
html body.page-article .prose [id]{scroll-margin-top:96px}
/* Texte courant seulement : les composants (.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) gardent leur propre mise en forme */
html body.page-article .prose :is(p,li):not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){font-size:inherit;line-height:inherit;color:inherit}
html body.page-article .prose p:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){margin:0 0 1.35em}
html body.page-article .prose strong,
html body.page-article .prose b{color:var(--ink);font-weight:650}
html body.page-article .prose a:not(.btn):not(.jump){color:var(--green-dark);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}
html body.page-article .prose a:not(.btn):not(.jump):hover{text-decoration-color:currentColor;text-decoration-thickness:2px}

html body.page-article .prose h2{margin:2.6em 0 .6em;font-size:1.875rem;line-height:1.2;letter-spacing:-.022em;text-wrap:balance;color:var(--ink)}
html body.page-article .prose > :first-child,
html body.page-article .prose > section:first-child > h2:first-child{margin-top:0}
html body.page-article .prose h3:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){margin:2em 0 .5em;font-size:1.3rem;line-height:1.3;letter-spacing:-.015em;color:var(--ink)}
html body.page-article .prose h4:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){margin:1.6em 0 .4em;font-size:1.06rem;line-height:1.35;letter-spacing:-.01em;color:var(--ink)}
html body.page-article .prose h2 + h3{margin-top:.9em}

html body.page-article .prose :is(ul,ol):not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){margin:0 0 1.5em;padding-left:1.4em}
html body.page-article .prose li:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){margin:0 0 .55em;padding-left:.2em}
html body.page-article .prose li:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *)::marker{color:var(--green);font-weight:700}
html body.page-article .prose li > ul,
html body.page-article .prose li > ol{margin:.55em 0 0}

html body.page-article .prose blockquote{margin:2em 0;padding:4px 0 4px 24px;border:0;border-left:3px solid var(--green);border-radius:0;background:none;font-size:1.2rem;line-height:1.6;font-style:normal;color:var(--ink)}

html body.page-article .prose figure:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *){margin:2.2em 0}
html body.page-article .prose figure:not(:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details),:is(.pillars,.pillar,.method-card,.def,.fact-grid,.fact,.fest-figures,.fest-troken,.mc-list,.shots,.partner-list,.note,.past-note,.lede-quote,.sources,.jdg-video,.table-wrap,details) *) img{border-radius:14px}
html body.page-article .prose figcaption{margin-top:10px;font-size:.875rem;line-height:1.5;color:var(--gray)}
html body.page-article .post-figure{text-align:center;line-height:0}
html body.page-article .post-figure img{display:inline-block;max-width:100%;height:auto;border-radius:16px}
html body.page-article .post-figure--poster img{max-width:min(420px,100%)}

/* Encadrés : même rythme vertical partout */
html body.page-article .prose :is(.note,.def,.lede-quote,.past-note,.fact-grid,.pillars,.mc-list,.method-card,.fest-figures,.fest-troken,.shots,.partner-list,.jdg-video,.table-wrap){margin-top:2em;margin-bottom:2em}
html body.page-article .prose .note{padding:18px 22px;border:0;border-left:3px solid var(--green);border-radius:0 14px 14px 0;background:var(--gray-soft);font-size:1rem;line-height:1.65}
html body.page-article .prose .note p:last-child{margin-bottom:0}
html body.page-article .prose .mc-list{padding:0;display:flex;flex-direction:column;gap:12px}
/* Cartes « ce que ça change » (asterX) : la phrase ne doit pas être coupée en colonnes */
html body.page-article .prose .fact-grid .fact{display:block;line-height:1.55}
html body.page-article .prose .fact-grid .fact > [aria-hidden]{margin-right:6px}
html body.page-article .prose .mc-list li{margin:0;font-size:1rem;line-height:1.6}

/* Tableaux */
html body.page-article .prose .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:14px}
html body.page-article .prose .compare-table{margin:0;border-radius:0;font-size:.875rem;line-height:1.45}
html body.page-article .prose .compare-table th{padding:11px 12px;background:var(--gray-soft);color:var(--ink);font-size:.78rem;letter-spacing:.01em;border-bottom:1px solid var(--border)}
html body.page-article .prose .compare-table td{padding:11px 12px}
html body.page-article .prose .compare-table .partial{color:#b45309}
html[data-theme="dark"] body.page-article .prose .compare-table .partial{color:#f59e0b}
html[data-theme="dark"] body.page-article .prose .compare-table th{background:var(--gray-soft)}
@media (max-width:640px){
  html body.page-article .prose .compare-table{min-width:560px}
}

/* Questions fréquentes : lignes séparées par un filet, pas des cartes */
html body.page-article .prose details{margin:0;padding:0;background:none;border:0;border-top:1px solid var(--border);border-radius:0;box-shadow:none}
html body.page-article .prose details:last-of-type{border-bottom:1px solid var(--border)}
html body.page-article .prose h2 + details{margin-top:1.2em}
html body.page-article .prose details + :not(details){margin-top:2em}
html body.page-article .prose summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:0;padding:20px 0;font-size:1.06rem;line-height:1.45;font-weight:600;color:var(--ink);cursor:pointer;list-style:none}
html body.page-article .prose summary::-webkit-details-marker{display:none}
html body.page-article .prose summary::after{content:"+";flex:0 0 auto;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--gray-soft);font-size:1.2rem;line-height:1;font-weight:500;color:var(--green-dark)}
html body.page-article .prose details[open] > summary::after{content:"−";transform:none}
html body.page-article .prose details > .a,
html body.page-article .prose details > div{padding:0 48px 22px 0;font-size:1rem;line-height:1.7;color:var(--ink-2)}

/* Sources */
html body.page-article .prose .sources{margin:3em 0 0;padding:24px 0 0;border-top:1px solid var(--border);border-radius:0;background:none;font-size:.9rem;line-height:1.6;color:var(--gray)}
html body.page-article .prose .sources h2,
html body.page-article .prose .sources h3{margin:0 0 12px;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gray);font-family:inherit}
html body.page-article .prose .sources ol,
html body.page-article .prose .sources ul{margin:0;padding-left:1.3em}
html body.page-article .prose .sources li{margin:0 0 6px;font-size:inherit;color:inherit}
html body.page-article .prose .sources a{color:inherit}

/* ── Après l'article : appel à l'action, à découvrir aussi, boutons ──── */
html body.page-article .post-after{padding-top:24px;padding-bottom:72px}
html body.page-article .post-after .cta-band{margin:24px 0 56px}
html body.page-article .post-after .related{margin:0;padding:0}
html body.page-article .post-after .related > h2{margin:0 0 16px;font-size:1.4rem}
html body.page-article .post-actions{display:flex;flex-wrap:wrap;gap:12px;margin:40px 0 0}

/* ── Téléphone ───────────────────────────────────────────────────────── */
@media (max-width:767px){
  html body.page-article .post-head{padding-top:28px;padding-bottom:28px}
  html body.page-article .post-head .lead{font-size:1.05rem}
  html body.page-article .post-meta{margin-top:22px;padding-top:14px;font-size:.84rem;row-gap:8px}
  html body.page-article .post-meta > .post-meta__by{flex:0 0 100%}
  html body.page-article .post-meta{column-gap:16px}
  html body.page-article .post-meta > span + span::before{display:none}
  html body.page-article .post-cover{margin-bottom:40px;border-radius:14px}
  html body.page-article .prose{font-size:1.0625rem;line-height:1.72}
  html body.page-article .prose h2{margin-top:2.2em;font-size:1.5rem}
  html body.page-article .prose h3{font-size:1.18rem}
  html body.page-article .prose blockquote{font-size:1.1rem;padding-left:18px}
  html body.page-article .prose details > .a,
  html body.page-article .prose details > div{padding-right:0}
  html body.page-article .post-after{padding-bottom:56px}
  html body.page-article .post-actions .btn{flex:1 1 100%;justify-content:center}
}
