/* ══════════════════════════════════════════════════════════
   MS GREEN — Blog / Éditorial
   À charger APRÈS styles.css pour hériter des variables :root
   (--forest, --green, --emerald, --mint-soft, --paper, --ink…)
   Bricolage Grotesque (display) + Inter (texte).
   ══════════════════════════════════════════════════════════ */

/* ─── Hero blog ─── */
.blog-hero { background: var(--forest); color: #fff; padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 64px); }
.blog-hero .wrap { max-width: 1080px; }
.blog-hero .ed__label { color: var(--emerald); }
.blog-hero h1 { font-family: "Bricolage Grotesque"; font-weight: 800; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; margin: 12px 0 16px; }
.blog-hero p { color: rgba(255,255,255,.82); max-width: 660px; font-size: 1.05rem; }

.blog-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.blog-nav a { font-size: 13px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 40px; color: #fff; }
.blog-nav a:hover, .blog-nav a[aria-current="page"] { background: var(--emerald); border-color: var(--emerald); color: var(--forest); }

/* ─── Grille de cartes (index) ─── */
.blog-section { padding: clamp(48px, 7vw, 80px) 0 clamp(60px, 9vw, 100px); background: var(--paper-2); }
.blog-section--paper { background: var(--paper); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.blog-grid--featured { grid-template-columns: 1fr; }

.blog-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mint-soft); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__tag { display: inline-block; align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green); background: var(--mint-soft); padding: 5px 12px; border-radius: 40px; }
.blog-card__title { font-family: "Bricolage Grotesque"; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.15; color: var(--forest); }
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--green); }
.blog-card__excerpt { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.blog-card__meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--muted); }
.blog-card__more { color: var(--green); font-weight: 700; font-size: .92rem; }

/* ─── Corps d'article ─── */
.article { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(60px, 9vw, 100px); }
.article__head { margin-bottom: 28px; }
.article__kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.article h1 { font-family: "Bricolage Grotesque"; font-weight: 800; font-size: clamp(32px, 5.4vw, 54px); line-height: 1.04; color: var(--forest); margin: 14px 0 18px; }
.article__lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.6; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: .86rem; color: var(--muted); }
.article__meta strong { color: var(--forest); font-weight: 600; }

.article__cover { margin: 28px 0; border-radius: 18px; overflow: hidden; }
.article__cover img { width: 100%; height: auto; }
.article__cover figcaption { font-size: .8rem; color: var(--muted); padding: 10px 4px 0; }

/* Sommaire */
.article__toc { background: var(--mint-soft); border: 1px solid var(--line-2); border-left: 4px solid var(--green); border-radius: 12px; padding: 22px 24px; margin: 28px 0; }
.article__toc h2 { font-family: "Inter"; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.article__toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.article__toc li { counter-increment: toc; font-size: .95rem; }
.article__toc li::before { content: counter(toc, decimal-leading-zero) "."; color: var(--green); font-weight: 700; margin-right: 8px; }
.article__toc a { color: var(--ink); font-weight: 500; }
.article__toc a:hover { color: var(--green); }

/* Typographie du corps */
.article__body h2 { font-family: "Bricolage Grotesque"; font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; color: var(--forest); line-height: 1.1; margin: 46px 0 16px; padding-top: 8px; scroll-margin-top: 110px; }
.article__body h3 { font-family: "Bricolage Grotesque"; font-size: clamp(19px, 2.5vw, 24px); font-weight: 700; color: var(--green); line-height: 1.2; margin: 30px 0 12px; scroll-margin-top: 110px; }
.article__body h4 { font-family: "Inter"; font-size: 1.02rem; font-weight: 700; color: var(--forest); margin: 22px 0 8px; scroll-margin-top: 110px; }
.article__body p { color: var(--ink-2); line-height: 1.78; margin: 0 0 16px; }
.article__body strong { color: var(--forest); }
.article__body a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { margin: 0 0 18px 22px; color: var(--ink-2); line-height: 1.7; }
.article__body li { margin-bottom: 8px; }
.article__body blockquote { margin: 24px 0; padding: 18px 24px; border-left: 4px solid var(--emerald); background: var(--mint-soft); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink); }

/* Tableau comparatif */
.article__table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line-2); border-radius: 14px; }
.article__body table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.article__body th { background: var(--forest); color: #fff; text-align: left; padding: 13px 16px; font-family: "Inter"; font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
.article__body td { padding: 13px 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.article__body tr:nth-child(even) td { background: var(--paper-2); }
.article__body td:first-child { font-weight: 600; color: var(--forest); }

/* Encadrés */
.article__callout { background: var(--mint-soft); border: 1px solid #d6e6dc; border-radius: 14px; padding: 20px 24px; margin: 24px 0; display: flex; gap: 14px; }
.article__callout .ico { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.article__callout p { margin: 0; }
.article__callout strong { color: var(--green); }

/* CTA final */
.article__cta { background: var(--forest); color: #fff; border-radius: 20px; padding: 34px 32px; margin: 40px 0; text-align: center; }
.article__cta h2 { font-family: "Bricolage Grotesque"; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; }
.article__cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 22px; }
.article__cta .btn { display: inline-flex; }

/* FAQ article */
.article__faq { margin: 40px 0; }
.article__faq h2 { font-family: "Bricolage Grotesque"; font-size: clamp(24px, 3.2vw, 32px); color: var(--forest); margin-bottom: 18px; }
.article__faq-item { border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.article__faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--forest); list-style: none; position: relative; }
.article__faq-item summary::-webkit-details-marker { display: none; }
.article__faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.3rem; font-weight: 600; }
.article__faq-item[open] summary::after { content: "–"; }
.article__faq-item .faq-a { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.7; }

/* Navigation articles */
.article__related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line-2); }
.article__related h2 { font-family: "Bricolage Grotesque"; font-size: 22px; color: var(--forest); margin-bottom: 18px; }
.article__related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.article__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; color: var(--green); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article__related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article__cta { padding: 26px 20px; }
}
