/* Blog : reprend les variables du thème du site */
.blog-list,.post{--b-primary:var(--color-primary,#1A535C);--b-text:var(--color-text,#222);--b-soft:var(--color-text-light,#555);--b-muted:var(--color-text-muted,#777);--b-bg:var(--color-bg,#fff);--b-bg-alt:var(--color-bg-alt,#f7f8f9);--b-border:var(--color-border,#e5e5e5);--b-radius:var(--radius-md,10px);--b-head:var(--font-heading,inherit)}

/* Liste */
.blog-list{padding:2.5rem 0 4rem}
.blog-list__head{max-width:46rem;margin:0 auto 2.5rem;text-align:center}
.blog-list__head h1{font-family:var(--b-head);color:var(--b-text);margin-bottom:.9rem}
.blog-list__intro{color:var(--b-soft);font-size:1.075rem;line-height:1.7}
.blog-list__empty{text-align:center;color:var(--b-soft);padding:2rem 0}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.75rem}
.blog-grid--small{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}
.blog-card{display:flex;flex-direction:column;background:var(--b-bg);border:1px solid var(--b-border);border-radius:var(--b-radius);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.blog-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.08)}
.blog-card__media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--b-bg-alt)}
.blog-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.blog-card:hover .blog-card__media img{transform:scale(1.03)}
.blog-card__body{display:flex;flex-direction:column;gap:.55rem;padding:1.25rem 1.35rem 1.4rem;flex:1}
.blog-card__cat{font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--b-primary)}
.blog-card__title{font-family:var(--b-head);font-size:1.22rem;line-height:1.35;margin:0}
.blog-card__title a{color:var(--b-text);text-decoration:none}
.blog-card__title a:hover,.blog-card__title a:focus-visible{color:var(--b-primary);text-decoration:underline;text-underline-offset:3px}
.blog-card__excerpt{color:var(--b-soft);font-size:.96rem;line-height:1.6;margin:0}
.blog-card__meta{margin-top:auto;padding-top:.4rem;color:var(--b-muted);font-size:.85rem}
@media (min-width:900px){
.blog-card--featured{grid-column:1/-1;flex-direction:row}
.blog-card--featured .blog-card__media{flex:0 0 58%;aspect-ratio:auto;min-height:340px}
.blog-card--featured .blog-card__body{justify-content:center;padding:2rem 2.4rem}
.blog-card--featured .blog-card__title{font-size:1.7rem}
.blog-card--featured .blog-card__excerpt{font-size:1.05rem}
}
.blog-pager{display:flex;justify-content:center;gap:.5rem;margin-top:2.5rem}
.blog-pager__item{min-width:2.5rem;height:2.5rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--b-border);border-radius:var(--b-radius);color:var(--b-text);text-decoration:none}
.blog-pager__item.is-current{background:var(--b-primary);border-color:var(--b-primary);color:#fff}

/* Appel à l'action */
.blog-cta{margin:3rem auto 0;max-width:46rem;padding:2rem;text-align:center;background:var(--b-bg-alt);border:1px solid var(--b-border);border-radius:var(--b-radius)}
.blog-cta__title{font-family:var(--b-head);font-size:1.35rem;font-weight:700;color:var(--b-text);margin:0 0 .5rem}
.blog-cta__text{color:var(--b-soft);margin:0 0 1.25rem}

/* Article */
.post{padding-bottom:4rem}
.post__head{max-width:50rem;text-align:center;padding-top:1.5rem;padding-bottom:1.75rem}
.post__cat{font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--b-primary);margin-bottom:.75rem}
.post__title{font-family:var(--b-head);color:var(--b-text);line-height:1.18;margin:0 0 1rem}
.post__meta{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem .6rem;color:var(--b-muted);font-size:.9rem}
.post__hero{max-width:1000px;margin:0 auto 2.5rem;padding:0 1.5rem}
.post__hero img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--b-radius);display:block}
.post__layout{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;max-width:1100px}
@media (min-width:1024px){.post__layout{grid-template-columns:240px minmax(0,1fr);gap:3.5rem}}
.post__toc{background:var(--b-bg-alt);border:1px solid var(--b-border);border-radius:var(--b-radius);padding:1.1rem 1.25rem;font-size:.92rem;align-self:start}
@media (min-width:1024px){.post__toc{position:sticky;top:5.5rem;max-height:calc(100vh - 7rem);overflow:auto}}
.post__toc-title{font-weight:700;color:var(--b-text);margin:0;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.post__toc-title::-webkit-details-marker{display:none}
.post__toc-title::after{content:"+";color:var(--b-primary);font-size:1.2rem;line-height:1}
.post__toc[open] .post__toc-title::after{content:"−"}
.post__toc[open] .post__toc-title{margin-bottom:.6rem}
@media (min-width:1024px){.post__toc-title{cursor:default}.post__toc-title::after{display:none}}
.post__toc ol{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.post__toc a{color:var(--b-soft);text-decoration:none;line-height:1.4;display:block}
.post__toc a:hover,.post__toc a:focus-visible{color:var(--b-primary);text-decoration:underline}
.post__body{max-width:46rem;font-size:1.075rem;line-height:1.78;color:var(--b-text)}
.post__body>*+*{margin-top:1.15rem}
.post__body h2{font-family:var(--b-head);font-size:clamp(1.45rem,2.6vw,1.8rem);line-height:1.28;margin-top:2.6rem;scroll-margin-top:6rem}
.post__body h3{font-family:var(--b-head);font-size:1.25rem;line-height:1.35;margin-top:1.9rem;scroll-margin-top:6rem}
.post__body p{margin-bottom:0}
.post__body a{color:var(--b-primary);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.post__body a:hover{text-decoration-thickness:2px}
.post__body strong{font-weight:700;color:var(--b-text)}
.post__body ul,.post__body ol{padding-left:1.4rem;display:grid;gap:.45rem}
.post__body ul{list-style:disc}.post__body ol{list-style:decimal}.post__body li{padding-left:.2rem}
.post__body li::marker{color:var(--b-primary)}
.post__body figure{margin:2rem 0}
.post__body figure img{width:100%;height:auto;border-radius:var(--b-radius);display:block}
.post__body figcaption{font-size:.88rem;color:var(--b-muted);margin-top:.6rem;text-align:center}
.post__body .table-wrap,.post__body table{width:100%}
.post__body table{border-collapse:collapse;font-size:.95rem;line-height:1.5;display:block;overflow-x:auto}
.post__body th,.post__body td{padding:.7rem .85rem;border:1px solid var(--b-border);text-align:left;vertical-align:top}
.post__body thead th{background:var(--b-bg-alt);font-weight:700}
.post__body .encadre{background:var(--b-bg-alt);border:1px solid var(--b-border);border-radius:var(--b-radius);padding:1.25rem 1.4rem}
.post__body .encadre>*+*{margin-top:.6rem}
.post__faq h2{margin-bottom:1rem}
.post__faq-item{border:1px solid var(--b-border);border-radius:var(--b-radius);background:var(--b-bg);margin-top:.75rem}
.post__faq-item summary{cursor:pointer;padding:1rem 1.2rem;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.post__faq-item summary::-webkit-details-marker{display:none}
.post__faq-item summary::after{content:"+";color:var(--b-primary);font-size:1.3rem;line-height:1}
.post__faq-item[open] summary::after{content:"−"}
.post__faq-item p{padding:0 1.2rem 1.1rem;margin:0;color:var(--b-soft)}
.post__sources{margin-top:2.5rem;font-size:.9rem;color:var(--b-muted)}
.post__sources-title{font-weight:700;color:var(--b-soft);margin:0 0 .4rem}
.post__sources ul{padding-left:1.2rem;gap:.25rem;list-style:disc;display:grid}
.post__sources a{color:var(--b-muted)}
.post__related{max-width:1100px;margin-top:4rem}
.post__related h2{font-family:var(--b-head);margin-bottom:1.25rem}
.post__related .blog-card__title{font-size:1.05rem}
@media (max-width:640px){.post__meta [aria-hidden="true"]{display:none}.post__meta{flex-direction:column;gap:.15rem}.post__body{font-size:1.02rem}.blog-cta{padding:1.5rem 1.2rem}.post__hero{padding:0}.post__hero img{border-radius:0}}
@media (prefers-reduced-motion:reduce){.blog-card,.blog-card__media img{transition:none}.blog-card:hover{transform:none}.blog-card:hover .blog-card__media img{transform:none}}
