/* Vitrine — guides (s'ajoute à site.css) */
.g-hero { position: relative; padding: 64px 0 36px; }
.g-hero::before { content: ""; position: absolute; z-index: -1; top: -68px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(34% 60% at 85% 20%, rgba(124,58,237,.16), transparent 70%), radial-gradient(26% 50% at 95% 80%, rgba(249,115,22,.14), transparent 70%); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.g-tag { display: inline-block; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; }
.g-hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.045em; margin: 16px 0 18px; max-width: 900px; }
.g-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 720px; margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-top: 18px; }

.g-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; padding: 20px 0 96px; }
@media (max-width: 1000px) { .g-layout { grid-template-columns: minmax(0, 720px); gap: 0; } }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 1000px) { .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 40px; } }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); color: var(--ink); margin: 60px 0 16px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; color: var(--ink); margin: 34px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 24px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 28px; font-size: 15.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: block; overflow-x: auto; }
.prose thead, .prose tbody { display: table; width: 100%; border-collapse: collapse; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-alt); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

.note { display: flex; gap: 14px; padding: 18px 22px; margin: 28px 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 16px; }
.note::before { content: "💡"; flex: none; }
.note.warn::before { content: "⚠️"; }
.note p { margin: 0; }
.formula { margin: 22px 0 28px; padding: 22px 24px; border-radius: 18px; background: var(--bg-alt); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); font: 600 18px/1.5 var(--display); color: var(--ink); text-align: center; }
.formula small { display: block; font: 400 14px var(--sans); color: var(--muted); margin-top: 6px; }

.mini { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin: 32px 0; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }
.mini .in { padding: 26px; display: grid; gap: 14px; align-content: start; }
.mini label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.mini input, .mini select { display: block; width: 100%; margin-top: 6px; padding: .75em .85em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 15.5px var(--sans); }
.mini input:focus, .mini select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.mini .out { position: relative; padding: 26px; color: #fff; background: var(--grad); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.mini .out .l { font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mini .out .v { font: 800 clamp(30px, 4vw, 42px)/1.1 var(--display); letter-spacing: -.03em; margin: 8px 0 4px; }
.mini .out p { margin: 0; opacity: .9; font-size: 13.5px; }
@media (max-width: 640px) { .mini { grid-template-columns: 1fr; } }

.cta-box { position: relative; overflow: hidden; margin: 48px 0; padding: 34px 32px; border-radius: 24px; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); }
.cta-box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 100% 0%, rgba(255,255,255,.28), transparent 60%); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h3 { color: #fff; margin: 0 0 8px; font-size: 25px; }
.cta-box p { margin: 0 0 20px; opacity: .92; font-size: 16px; max-width: 480px; }
.cta-box .btn { background: #fff; color: #6d28d9; border-color: transparent; }

.checklist { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.checklist li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--grad); color: #fff; font: 800 13px var(--sans); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; font-weight: 600; font-size: 17px; color: var(--ink); padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 18px var(--sans); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 16px; margin: 0 0 18px; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 56px; }
.sources p { margin: 0 0 8px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.post-cover { position: relative; height: 150px; display: grid; place-items: center; background: var(--grad); overflow: hidden; }
.post-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 100% 0%, rgba(255,255,255,.3), transparent 60%); }
.post-cover span { position: relative; z-index: 1; font-size: 48px; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body .g-tag { align-self: flex-start; }
.post-body h2, .post-body h3 { font-size: 21px; line-height: 1.2; margin: 12px 0 10px; color: var(--ink); }
.post-body p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.post-body .more { color: var(--accent); font-weight: 600; font-size: 14px; }
.related { position: relative; padding: 72px 0 24px; }
.related::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: var(--bg-alt); }
.related h2 { font-size: 30px; margin-bottom: 24px; }
.related .posts { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .related .posts { grid-template-columns: 1fr; } }
