/* ============================================================
   article.css — Gabarit d'article du cocon Lisa-PAM
   À charger après base.css. Chrome via base.css + i18n.js.
   ============================================================ */

.crumb { padding: 22px 0 0; font-family: "Krub"; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--vert-clair); }
.crumb span { color: var(--noir-vert); font-weight: 600; }
.crumb svg { color: #b7bcb0; flex: none; }

/* article header */
.ahead { padding: 30px 0 8px; }
.ahead__wrap { max-width: 820px; margin: 0 auto; }
.ahead h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; margin-top: 14px; line-height: 1.1; }
.ahead__lede { color: var(--muted); font-size: 1.18rem; margin-top: 20px; line-height: 1.6; }
.ahead__meta { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-family: "Krub"; font-size: .9rem; color: var(--muted); }
.ahead__cat { background: var(--cream-2); color: var(--vert); font-weight: 600; padding: 6px 14px; border-radius: 999px; }

/* layout: toc + body */
.alayout { max-width: 1120px; margin: 0 auto; padding: 36px 28px 0; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc__title { font-family: "Krub"; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #a2a89b; margin-bottom: 14px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-family: "Krub"; font-size: .92rem; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.toc a:hover, .toc a.is-active { color: var(--vert); border-left-color: var(--vert-clair); }

/* prose */
.prose { max-width: 720px; }
.prose > section { scroll-margin-top: 100px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; margin: 44px 0 0; }
.prose h2:first-child, .prose section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 0; }
.prose p { margin-top: 16px; font-size: 1.08rem; line-height: 1.72; color: #34392f; }
.prose ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { display: flex; align-items: flex-start; gap: 13px; font-size: 1.06rem; line-height: 1.6; color: #34392f; }
.prose ul li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 999px; background: var(--vert-clair); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.prose ol { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.prose ol li { font-size: 1.06rem; line-height: 1.6; color: #34392f; padding-left: 6px; }
.prose ol li::marker { color: var(--vert-clair); font-family: "Krub"; font-weight: 700; }

/* product callout */
.callout { margin: 40px 0 0; background: var(--noir-vert); color: #fff; border-radius: 20px; padding: 32px 34px; }
.callout .kicker { color: #cfe89a; } .callout .kicker::before { background: #cfe89a; }
.callout h3 { color: #fff; font-size: 1.4rem; font-weight: 700; margin-top: 12px; }
.callout p { color: rgba(255,255,255,.82); margin-top: 12px; font-size: 1.05rem; }
.callout .btn { margin-top: 22px; }
.callout .btn-primary::after { border-color: var(--vert-clair); }

/* faq within article */
.afaq { margin-top: 44px; }
.afaq h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; }
.afaq__list { margin-top: 20px; display: grid; gap: 13px; }
.afaq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 8px; }
.afaq details[open] { box-shadow: var(--shadow-sm); }
.afaq summary { list-style: none; cursor: pointer; padding: 16px; font-family: "Krub"; font-weight: 600; font-size: 1.04rem; color: var(--noir-vert); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.afaq summary::-webkit-details-marker { display: none; }
.afaq .chev { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--cream-2); display: grid; place-items: center; color: var(--vert); transition: transform .25s ease, background .2s ease; }
.afaq details[open] .chev { transform: rotate(180deg); background: var(--vert-clair); color: #fff; }
.afaq .ans { padding: 0 16px 18px; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

/* related */
.related { background: var(--cream); margin-top: 64px; }
.related .wrap { padding-top: 64px; padding-bottom: 64px; }
.related h2 { font-size: 1.6rem; font-weight: 700; }
.relgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.relcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; gap: 10px; }
.relcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.relcard__cat { font-family: "Krub"; font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-clair); }
.relcard h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.relcard .link-arrow { margin-top: auto; font-size: .95rem; }

/* cta band (shared) */
.cta-band { background: var(--vert-clair); position: relative; overflow: hidden; padding: 84px 0; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 999px; border: 2px dashed rgba(255,255,255,.4); }
.cta-band::before { width: 280px; height: 280px; top: -120px; right: -60px; }
.cta-band::after { width: 180px; height: 180px; bottom: -90px; left: 8%; }
.cta-band__inner { text-align: center; position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.92); margin: 16px auto 0; max-width: 540px; font-size: 1.1rem; }
.cta-band .actions { margin-top: 30px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-dark::after { border-color: rgba(255,255,255,.5); }

@media (max-width: 940px) {
  .alayout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .prose { max-width: 760px; margin: 0 auto; }
  .relgrid { grid-template-columns: 1fr; }
}
