/* Blog et articles, dans le style de la page d'accueil (variables de agence.css) */
@media (max-width: 760px) { body { padding-bottom: 0; } }
.wrap--narrow { max-width: 780px; }
.blog-hero { padding: 72px 0 56px; }
.blog-hero h1 { max-width: 820px; }
.blog-hero__sub { color: var(--gray); font-size: 18px; max-width: 640px; margin-top: 14px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 8px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13,43,62,.10); }
.post-card__img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date { font-size: 13px; color: var(--gray); font-weight: 600; }
.post-card__title { font-size: 20px; line-height: 1.3; margin: 0; }
.post-card__excerpt { color: var(--ink); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; color: var(--green); font-weight: 700; font-size: 14px; }
.post__head { padding: 56px 0 40px; }
.post__back { display: inline-block; color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; margin-bottom: 18px; }
.post__head h1 { font-size: clamp(30px, 4.2vw, 46px); }
.post__meta { color: var(--gray); font-size: 14px; margin-top: 14px; font-weight: 600; }
.post__cover { margin-top: 32px; }
.post__cover img { width: 100%; height: auto; border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; }
.post__body { padding: 40px 0 24px; color: var(--ink); font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; max-width: 680px; }
.post__body > * + * { margin-top: 1.35em; }
.post__body strong, .post__body b { color: var(--navy); font-weight: 700; }
.post__body > hr { display: none; }
.post__body h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--border); margin-bottom: .3em; }
.post__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.post__body h3 { font-size: 21px; margin-top: 1.8em; color: var(--navy); }
.post__body h4, .post__body h5 { font-size: 18px; margin-top: 1.3em; color: var(--navy); }
.post__body a { color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body li + li { margin-top: .4em; }
.post__body blockquote { border-left: 4px solid var(--green); background: var(--bg); padding: 16px 22px; border-radius: 0 12px 12px 0; color: var(--navy); }
.post__body img { max-width: 100%; height: auto; border-radius: 12px; }
.post__body figure { margin: 1.6em 0; }
.post__body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.post__table { overflow-x: auto; }
.post__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post__body th, .post__body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.post__body th { background: var(--bg); color: var(--navy); }
.post__cta { margin: 28px 0 72px; padding: 32px; border-radius: var(--r); background: var(--navy); color: rgba(255,255,255,.85); }
.post__cta h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.post__cta p { margin-bottom: 22px; }
.post__cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 760px) {
  .post__body { font-size: 17px; }
  .post__cta { padding: 24px 20px; }
  .blog-hero { padding: 48px 0 36px; }
}
.post__toc, .post__author, .post__cta { max-width: 680px; }
.post__toc { margin: 36px 0 0; padding: 22px 26px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); }
.post__toc-title { font-weight: 800; color: var(--navy); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.post__toc ol { padding-left: 1.2em; display: grid; gap: 6px; }
.post__toc a { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.post__toc a:hover { color: var(--green-d); text-decoration: underline; }
.post__body h2[id] { scroll-margin-top: 90px; }
.post__author { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r); font-size: 15px; color: var(--ink); }
.post__author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post__author-name { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.post__author a { color: var(--green-d); font-weight: 700; }
.post__toc ul { list-style: none; padding-left: 0; }
.post__callout { background: var(--bg); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; padding: 18px 22px; }
.post__callout > * + * { margin-top: .6em; }
.post__callout-label { font-weight: 800; color: var(--navy); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.post-card__body { padding-top: 26px; }
.footer a, .post__back { display: inline-block; padding: 4px 0; }
