/* Blog: list and article pages. Tokens from site.css. */
.blog-hero { padding: 32px 0 24px; }
.blog-hero h1 { font-family: var(--display); font-size: 34px; line-height: 40px; margin: 12px 0 10px; color: var(--ink-900); }
@media (min-width: 768px) { .blog-hero { padding: 48px 0 32px; } .blog-hero h1 { font-size: 44px; line-height: 50px; } }
.blog-hero .lead { max-width: 62ch; }
.crumbs { font-size: 13px; line-height: 18px; color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-700); }
.blog-list { padding: 8px 0 72px; }
.post-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.post-card h3 { font-family: var(--display); font-size: 19px; line-height: 25px; color: var(--ink-900); }
.post-card p { color: var(--ink-700); font-size: 15px; line-height: 22px; flex: 1; }
.post-cat { align-self: flex-start; font-size: 12px; line-height: 18px; font-weight: 700; padding: 0 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); }
.post-meta { font-size: 13px; color: var(--ink-500); }

.post-wrap { padding-top: 24px; padding-bottom: 72px; }
.post-head { max-width: 760px; margin-bottom: 28px; }
.post-head h1 { font-family: var(--display); font-size: 32px; line-height: 38px; margin: 14px 0 12px; color: var(--ink-900); letter-spacing: -.01em; }
@media (min-width: 768px) { .post-head h1 { font-size: 42px; line-height: 48px; } }
.post-head .lead { font-size: 18px; line-height: 28px; color: var(--ink-700); margin-bottom: 12px; }
.post-grid-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .post-grid-layout { grid-template-columns: 240px minmax(0, 760px); gap: 56px; } }
.post-toc { font-size: 14px; line-height: 20px; }
@media (min-width: 1024px) { .post-toc { position: sticky; top: 96px; align-self: start; } }
.post-toc strong { display: block; margin-bottom: 8px; color: var(--ink-900); }
.post-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-700); }
.post-toc a:hover { color: var(--brand-700); }
@media (max-width: 1023px) { .post-toc { padding: 16px 18px; background: var(--surface-2); border-radius: var(--r-ctl); } }

.post-body { font-size: 17px; line-height: 29px; color: var(--ink-700); min-width: 0; }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { font-family: var(--display); font-size: 26px; line-height: 32px; color: var(--ink-900); margin-top: 44px; scroll-margin-top: 96px; }
.post-body h3 { font-size: 19px; line-height: 26px; color: var(--ink-900); margin-top: 28px; scroll-margin-top: 96px; }
.post-body a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 22px; display: grid; gap: 8px; }
.post-body strong { color: var(--ink-900); }
.post-body blockquote { margin: 24px 0; padding: 16px 20px; background: var(--brand-50); border-left: 4px solid var(--brand-700); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; color: var(--ink-900); }
.post-body blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.post-body th, .post-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { background: var(--surface-2); color: var(--ink-900); font-weight: 700; }
.post-body tr:last-child td { border-bottom: 0; }
.post-cta { margin-top: 40px !important; padding: 28px; border-radius: var(--r-box); background: var(--brand-900); color: #fff; }
.post-cta h2 { color: #fff; margin: 0 0 8px; font-size: 22px; line-height: 28px; }
.post-cta p { color: #c9d3ee; margin: 0 0 18px; }
.post-cta .btn-primary { background: #fff; color: var(--brand-900); border-color: #fff; text-decoration: none; }
.post-faq { margin-top: 44px !important; }
.post-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.post-faq summary { cursor: pointer; font-weight: 700; color: var(--ink-900); }
.post-faq details div { margin-top: 8px; }
.post-disclaimer { font-size: 13px; line-height: 20px; color: var(--ink-500); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px !important; }
.post-related { margin-top: 64px; }
.post-related h2 { font-family: var(--display); font-size: 24px; margin-bottom: 16px; color: var(--ink-900); }

/* Embedded gross/net calculator */
.calc { margin: 28px 0 !important; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); box-shadow: var(--shadow-1); }
.post-body .calc-title { margin: 0 0 16px; font-size: 22px; line-height: 28px; }
.calc-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-in { display: grid; gap: 14px; align-content: start; }
.calc-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-ctl); justify-self: start; }
.calc-seg label { position: relative; cursor: pointer; }
.calc-seg input { position: absolute; opacity: 0; }
.calc-seg span { display: block; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.calc-seg input:checked + span { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-1); }
.calc-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.calc-field input, .calc-field select { font: 500 16px var(--sans); height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); width: 100%; background: var(--surface); color: var(--ink-900); }
.calc-suffix { position: relative; }
.calc-suffix em { position: absolute; right: 14px; top: 12px; font-style: normal; color: var(--ink-500); }
.calc-check { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-900); }
.calc-out { margin: 0; display: grid; align-content: start; }
.calc-out > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.calc-out dt { color: var(--ink-700); }
.calc-out dd { margin: 0; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.calc-out .calc-net { border-bottom: 0; margin-top: 6px; padding: 14px 12px; background: var(--brand-50); border-radius: 12px; }
.calc-out .calc-net dd { color: var(--brand-700); font-family: var(--display); font-size: 22px; }
.calc-bridge { margin: 18px 0 0 !important; padding: 14px 16px; border-radius: 12px; background: var(--success-50); color: var(--ink-900); font-size: 15px; line-height: 23px; }
.calc-bridge:empty { display: none; }
.calc-note { margin: 10px 0 0 !important; font-size: 13px; line-height: 19px; color: var(--ink-500); }

/* Photos */
.blog-hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .blog-hero-grid { grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; } }
.blog-hero-img { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-2); }
.blog-hero-img img, .post-card-img img, .post-hero img, .post-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card { padding: 0; overflow: hidden; }
.post-card > :not(.post-card-img) { margin-left: 22px; margin-right: 22px; }
.post-card .post-cat { margin-top: 18px; }
.post-card .post-meta { margin-bottom: 20px; }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-img img { transition: transform 600ms var(--ease-out); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-hero { margin: 0 0 40px; border-radius: 24px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; max-height: 560px; background: var(--surface-2); }
@media (min-width: 1024px) { .post-hero { aspect-ratio: 21 / 9; } }
.post-hero figcaption, .post-figure figcaption { font-size: 12px; line-height: 18px; color: var(--ink-500); }
.post-hero figcaption { position: absolute; right: 12px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.85); }
.post-hero figcaption a { color: inherit; }
.post-figure { margin: 32px 0 !important; }
.post-figure img { border-radius: 18px; aspect-ratio: 16 / 9; }
.post-figure figcaption { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .post-card-img img { transition: none; } }

/* Legal pages */
.legal-page .post-head, .legal-page .post-body { max-width: 820px; }
.legal-page .post-body table th { width: 34%; }
.legal-page .lead-p { font-size: 18px; line-height: 28px; color: var(--ink-900); }
.legal-page .note { font-size: 14px; color: var(--ink-500); }
.legal-nav { max-width: 820px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-nav a { color: var(--brand-700); }

/* Magazine home (/blog): hero, À la une, tools, one section per category */
.mag-hero { padding-bottom: 8px; }
.mag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mag-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-900); font-weight: 600; font-size: 14px; }
.mag-chips a:hover { border-color: var(--brand-700); color: var(--brand-700); }
.mag-chips span { font-size: 12px; color: var(--ink-700); background: var(--surface-2); border-radius: 999px; padding: 0 7px; line-height: 20px; }
.mag-h { font-family: var(--display); font-size: 24px; line-height: 30px; color: var(--ink-900); margin: 0 0 16px; }
.mag-une, .mag-tools, .mag-sec { padding: 24px 0; scroll-margin-top: 80px; }
.mag-une-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .mag-une-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.mag-une-side { display: grid; gap: 16px; }
.post-card-hero h3 { font-size: 24px; line-height: 31px; }
@media (min-width: 960px) { .post-card-hero h3 { font-size: 28px; line-height: 35px; } }
.post-card-hero .post-card-img { aspect-ratio: 1200 / 630; }
@media (min-width: 560px) { .post-card-side { display: grid; grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 0; } .post-card-side .post-card-img { grid-row: 1 / span 3; aspect-ratio: auto; height: 100%; min-height: 150px; } .post-card-side h3 { font-size: 17px; line-height: 23px; } .post-card-side .post-meta { align-self: end; } }
.post-card-ph { display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; text-align: center; padding: 16px; background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); }
.post-card-ph.ph-voyage { background: linear-gradient(135deg, #0e5a7a, #1b8fb3); }
.post-card-ph.ph-epargne { background: linear-gradient(135deg, #1f5c3d, #2f8a5b); }
.post-card-ph.ph-auto { background: linear-gradient(135deg, #3a2f6b, #5a4aa3); }
.post-card-ph.ph-habitation { background: linear-gradient(135deg, #7a4a12, #b2721f); }
.post-card-ph.ph-sante { background: linear-gradient(135deg, #7a1f3d, #b3365f); }
.mag-tools { background: var(--surface-2); margin: 16px 0; padding: 32px 0; }
.mag-tools-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .mag-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .mag-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mag-tool { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); color: var(--ink-700); font-size: 14px; line-height: 20px; }
.mag-tool strong { color: var(--brand-700); font-size: 16px; }
.mag-tool:hover { border-color: var(--brand-700); }
.mag-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mag-count { color: var(--ink-700); font-size: 14px; }
.mag-cta { padding: 24px 0 72px; }
.mag-cta-box { display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: var(--r-box); background: var(--brand-900); color: rgba(255,255,255,.85); }
.mag-cta-box h2 { font-family: var(--display); color: #fff; font-size: 22px; line-height: 28px; margin: 0 0 6px; }
.mag-cta-box p { margin: 0; }
.mag-cta-box .btn-primary { background: #fff; color: var(--brand-900); justify-self: start; }
.mag-cta-box .btn-primary:hover { background: var(--brand-50); }
@media (min-width: 720px) { .mag-cta-box { grid-template-columns: minmax(0, 1fr) auto; padding: 32px 40px; } }
