/* Même langage visuel que le générateur : gris clair, blanc, encre, un seul bleu d'action. */
:root {
  --bg: #f5f5f7; --surface: #fff; --line: #e5e5ea; --text: #1d1d1f; --muted: #6e6e73;
  --accent: #0071e3; --accent-hover: #0077ed; --radius: 20px;
}
* { box-sizing: border-box; min-width: 0; }
body { margin: 0; font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(245,245,247,.86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 28px; width: auto; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--muted); padding: 14px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (max-width: 520px) { .site-nav { gap: 14px; font-size: 13px; } .brand img { height: 22px; } }
@media (max-width: 420px) { .site-nav a:first-child { display: none; } .brand img { height: 20px; } }

.crumbs { max-width: 720px; margin: 28px auto 0; padding: 0 20px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }

article, .blog-home, .page { max-width: 720px; margin: 0 auto; padding: 8px 20px 64px; }
h1 { font-size: clamp(32px, 5.5vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 14px 0 14px; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; margin: 2.2em 0 0.5em; }
h3 { font-size: 19px; font-weight: 600; margin: 1.6em 0 0.4em; }
.lead { font-size: 21px; line-height: 1.45; color: var(--muted); margin: 0 0 10px; text-wrap: pretty; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
article ol, article ul, .page ul { padding-left: 1.3em; }
article li { margin-bottom: 0.5em; }
kbd, .ui { font-family: inherit; font-weight: 500; background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 6px; padding: 1px 7px; font-size: 0.9em; white-space: nowrap; }
code { font-size: 0.88em; background: var(--surface); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.tldr { background: var(--surface); border-radius: 16px; padding: 20px 22px; margin: 0 0 1.5em; }
.tldr p { margin: 0; }
.note { background: var(--surface); border-radius: 16px; padding: 18px 22px; margin: 1.6em 0; }
.note p { margin: 0; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; font-weight: 600; color: var(--muted); }

.faq details { background: var(--surface); border-radius: 18px; padding: 0 clamp(20px, 4vw, 32px); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 24px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: -4px 0 0; padding: 0 0 28px; color: #3a3a3c; }

.cta { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); margin: 3em 0 1em; text-align: center; }
.cta p { margin: 0 0 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 24px; border-radius: 980px; background: var(--accent); color: #fff; font-weight: 500; font-size: 16px; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }

.posts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.posts li { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; transition: transform .2s; }
.posts li:hover { transform: translateY(-2px); }
.posts h2 { margin: 0 0 6px; font-size: 21px; }
.posts h2 a { color: var(--text); }
.posts h2 a:hover { color: var(--accent); text-decoration: none; }
.posts p { margin: 0; color: var(--muted); font-size: 15px; }

.related { margin-top: 2.5em; }
.related h2 { font-size: 19px; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 10px 0; border-top: 1px solid var(--line); }

.profile { display: flex; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--bg); flex: none; object-fit: cover; }
.profile p { margin: 0; }
.profile-link { display: inline-block; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.creds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0 !important; }
.creds li { background: var(--surface); border-radius: 16px; padding: 16px 18px; font-size: 15px; }
.creds strong { display: block; }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.site-footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
