:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #1d1f22;
  --muted: #5d636b;
  --line: #e4e1dc;
  --accent: #0f5f6e;
  --accent-ink: #ffffff;
  --notice-bg: #fff4d6;
  --notice-ink: #5b4300;
  --tag-bg: #f0eee9;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 16px rgba(20, 20, 20, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141618;
    --surface: #1c1f22;
    --ink: #eceae6;
    --muted: #a3a8ae;
    --line: #2e3236;
    --accent: #6cc3d1;
    --accent-ink: #0b1a1d;
    --notice-bg: #2f2817;
    --notice-ink: #f1d79a;
    --tag-bg: #262a2e;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tag-bg); padding: .05em .35em; border-radius: 4px; }
h1, h2 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand__tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .55rem; }
.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.notice { background: var(--notice-bg); color: var(--notice-ink); font-size: .9rem; padding: .55rem 0; }
.notice a { color: inherit; font-weight: 600; }

main { padding: 2.5rem 16px 3rem; }
.hero { max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--ink); }
.hero p:not(.lead), .section-intro { color: var(--muted); }
.section-intro { margin-top: -.25rem; }

.facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 2rem 0 1rem; }
.facts-strip div { background: var(--surface); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.facts-strip strong { font-size: 1.25rem; }
.facts-strip span { color: var(--muted); font-size: .9rem; }

.grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link:hover .card__name { color: var(--accent); }
.card__shot { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); background: var(--tag-bg); }
.card__name { display: block; font-weight: 700; font-size: 1.08rem; padding: .8rem 1rem 0; }
.card__desc { margin: .3rem 1rem 0; color: var(--muted); font-size: .93rem; flex: 1; }
.card__meta { margin: .6rem 1rem .9rem; font-size: .82rem; color: var(--muted); }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.theme { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; }
@media (min-width: 900px) {
  .theme { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .theme__head { grid-column: 1 / -1; max-width: 780px; }
}
.quote-src { font-size: .85rem; color: var(--muted); margin-top: -.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 2rem; }
.btn { display: inline-block; padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.theme__shot { margin: 0 0 2rem; }
.theme__shot img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.theme__shot figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.theme__check h2, .theme__facts h2 { margin-top: 0; }
.theme__check ul { padding-left: 1.1rem; margin: 0 0 2rem; }
.theme__check li { margin-bottom: .45rem; }
.theme__facts { grid-column: 1 / -1; }
@media (min-width: 900px) { .theme__check { grid-column: 2; grid-row: 2; } .theme__facts { grid-column: 1 / -1; } }
dl { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 2rem; }
dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .92rem; }
dd { margin: 0; }
@media (max-width: 480px) { dl div { grid-template-columns: 1fr; gap: 0; } }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0; }
.tags span { background: var(--tag-bg); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); }
.related { margin-top: 1rem; }

.prose { max-width: 720px; }
.prose li { margin-bottom: .4rem; }
.callout { background: var(--notice-bg); color: var(--notice-ink); border-radius: 10px; padding: .2rem 1.1rem; margin: 1.5rem 0; }
.prose h3 { font-size: 1.1rem; margin: 1.8rem 0 .5rem; }
.prose pre { overflow-x: auto; background: var(--tag-bg); padding: .8rem 1rem; border-radius: 8px; font-size: .85rem; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; white-space: nowrap; }
.prose .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.byline { color: var(--muted); font-size: .92rem; margin-top: 0; }
/* articles : texte à 720 px, tableaux sur toute la largeur */
.article { max-width: none; }
.article > * { max-width: 720px; }
.article > .table-wrap { max-width: none; }
.article th { white-space: normal; }
.prose blockquote { margin: 1.2rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }

.pinned { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: .9rem 1.2rem; margin: 1.6rem 0 0; box-shadow: var(--shadow); }
.pinned__label { margin: 0; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pinned__title { margin: .3rem 0 .4rem; font-size: 1.25rem; }
.pinned__title a { color: var(--ink); }
.pinned p:last-child { margin: 0 0 .2rem; color: var(--muted); }
.pinned--more { border-left-width: 1px; margin-top: .8rem; box-shadow: none; }

.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; }
.foot__in { padding-top: 1.4rem; padding-bottom: 1.6rem; }
.foot a { color: var(--muted); }
