/* GroundRepo — socle visuel.
   L'interface est volontairement désaturée : la seule couleur de la page vient
   des ressources elles-mêmes (palettes, illustrations, fonds). */

:root {
  color-scheme: light dark;
  --paper: #edeee9;
  --paper-2: #e4e6df;
  --surface: #f8f9f5;
  --line: #d4d7cd;
  --line-2: #bcc0b3;
  --ink: #15171a;
  --ink-2: #3c4149;
  --muted: #6b7280;
  --accent: #1b36d6;
  --accent-2: #0f2199;
  --accent-soft: #dfe3fb;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1280px;
  --r: 10px;
  --r-sm: 5px;
  --shadow: 0 1px 0 rgba(21, 23, 26, .04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #111316;
    --paper-2: #16181c;
    --surface: #1a1d22;
    --line: #282c33;
    --line-2: #3b414a;
    --ink: #e9ebe5;
    --ink-2: #c2c7c0;
    --muted: #8d949f;
    --accent: #97a5ff;
    --accent-2: #bcc5ff;
    --accent-soft: #1e2440;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3);
  }
}
:root[data-theme='dark'] {
  --paper: #111316;
  --paper-2: #16181c;
  --surface: #1a1d22;
  --line: #282c33;
  --line-2: #3b414a;
  --ink: #e9ebe5;
  --ink-2: #c2c7c0;
  --muted: #8d949f;
  --accent: #97a5ff;
  --accent-2: #bcc5ff;
  --accent-soft: #1e2440;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.link { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent-2); }
.linkish {
  background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-size: .875rem;
}

/* ── Barre haute ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 1rem; height: 60px; }
.topbar-logo { text-decoration: none; flex: none; }

.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark { display: grid; gap: 2px; width: 18px; }
.logo-mark i { display: block; height: 3px; border-radius: 1px; background: var(--ink); }
.logo-mark i:nth-child(1) { width: 60%; opacity: .45; }
.logo-mark i:nth-child(2) { width: 85%; opacity: .7; }
.logo-mark i:nth-child(3) { width: 100%; background: var(--accent); }
.logo-word { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: 1.0625rem; }
.logo-word em { font-style: normal; font-variation-settings: 'wght' 400, 'wdth' 85; }

.mini-search { flex: 1 1 auto; max-width: 380px; display: flex; margin-inline: auto; }
.mini-search input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); padding: .45rem .7rem; font-size: .875rem;
}
.mini-search button {
  border: 1px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface);
  cursor: pointer; padding-inline: .6rem; display: grid; place-items: center;
}
.mini-search button svg { width: 16px; height: 16px; }
.mini-search input:focus { outline: none; border-color: var(--ink-2); }
.mini-search:focus-within button { border-color: var(--ink-2); }

.topbar-nav { display: flex; gap: 1.1rem; font-size: .875rem; }
.topbar-nav a { text-decoration: none; color: var(--ink-2); }
.topbar-nav a:hover { color: var(--accent); }
.theme {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2);
}
.theme svg { width: 17px; height: 17px; }
.theme:hover { border-color: var(--line-2); color: var(--ink); }

@media (max-width: 900px) {
  .mini-search { display: none; }
  .topbar-nav { margin-left: auto; }
}
@media (max-width: 560px) { .topbar-nav a:not(:last-child) { display: none; } }

/* ── Hero : la carotte de sondage ────────────────────────────────────────── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; border-bottom: 1px solid var(--line); }
.hero-in { max-width: 900px; }

.eyebrow {
  font: 500 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); display: flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem;
}
.eyebrow a { color: var(--accent); text-decoration: none; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-title { display: grid; gap: 1.1rem; margin-bottom: 1.2rem; }
.hero-word {
  display: grid; font-family: var(--display); line-height: .82;
  font-size: clamp(3.4rem, 13vw, 8.5rem); letter-spacing: -.045em; text-transform: lowercase;
}
.hero-word .w1 { font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 400; color: var(--ink-2); }
.hero-word .w2 { font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 800; font-size: 1.42em; }
.hero-h1 {
  font-family: var(--body); font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 500;
  line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-word .w1 { animation: settle1 .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-word .w2 { animation: settle2 1.1s .08s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes settle1 {
    from { font-variation-settings: 'opsz' 12, 'wdth' 75, 'wght' 200; opacity: 0; }
    to { font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 400; opacity: 1; }
  }
  @keyframes settle2 {
    from { font-variation-settings: 'opsz' 12, 'wdth' 75, 'wght' 300; opacity: 0; }
    to { font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 800; opacity: 1; }
  }
}
.hero-lead { color: var(--ink-2); font-size: 1.0625rem; max-width: 62ch; margin-bottom: 1.8rem; }

/* ── Recherche ───────────────────────────────────────────────────────────── */
.search {
  display: flex; align-items: center; gap: .5rem; background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: var(--r); padding: .35rem .35rem .35rem .9rem;
  max-width: 660px; transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-icon { display: grid; place-items: center; color: var(--muted); }
.search-icon svg { width: 19px; height: 19px; }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; padding: .7rem 0; font-size: 1rem;
}
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.3rem;
  line-height: 1; padding: 0 .35rem;
}
.search-go {
  border: 0; background: var(--ink); color: var(--paper); border-radius: 7px;
  padding: .62rem 1.05rem; font-size: .875rem; font-weight: 500; cursor: pointer;
}
.search-go:hover { background: var(--accent); }

.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1rem 0 2.4rem; font-size: .8125rem; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line);
  background: var(--surface); border-radius: 100px; padding: .3rem .7rem; font-size: .78rem;
  color: var(--ink-2); cursor: pointer; text-decoration: none; font-family: var(--mono);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips--center { justify-content: center; }

/* ── Strates de catégories ───────────────────────────────────────────────── */
.strata { list-style: none; margin: 0; padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1px; }
.stratum a {
  display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr 3rem; align-items: center; gap: 1rem;
  padding: .55rem .5rem; text-decoration: none; border-radius: var(--r-sm);
}
.stratum a:hover { background: var(--surface); }
.stratum-name { font-weight: 500; font-size: .9375rem; }
.stratum a:hover .stratum-name { color: var(--accent); }
.stratum-bar { display: block; height: 7px; background: var(--paper-2); border-radius: 100px; overflow: hidden; }
.stratum-bar i { display: block; height: 100%; width: var(--w); background: var(--ink-2); border-radius: 100px; }
.stratum a:hover .stratum-bar i { background: var(--accent); }
.stratum-n { font: 500 .8125rem var(--mono); color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .stratum a { grid-template-columns: 1fr 2.5rem; }
  .stratum-bar { display: none; }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--feed { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.section--prose { border-top: 1px solid var(--line); background: var(--paper-2); }

.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 1rem; } }

.results-head { margin-bottom: 1.2rem; }
.results-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .35rem; }
.results-head p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* ── Filtres ─────────────────────────────────────────────────────────────── */
.filters { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1rem; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .9rem; }
.filters-head h2 { font-size: .95rem; letter-spacing: 0; }
.fset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: .85rem 0 0; }
.fset + .fset { margin-top: .85rem; }
.fset legend {
  font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 0; margin-bottom: .5rem;
}
.check { display: flex; align-items: center; gap: .5rem; padding: .22rem 0; font-size: .875rem; cursor: pointer; }
.check span { flex: 1; }
.check b { font: 500 .75rem var(--mono); color: var(--muted); }
.check input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.check:hover span { color: var(--accent); }
.chip--check { cursor: pointer; }
.chip--check input { position: absolute; opacity: 0; pointer-events: none; }
.chip--check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.feedbar {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.count { margin: 0; font: 500 .8125rem var(--mono); color: var(--muted); flex: 1; }
.sortwrap select {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .35rem 1.8rem .35rem .6rem; font-size: .8125rem; cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.mobile-filters { display: none; }

/* ── Le mur de spécimens ─────────────────────────────────────────────────── */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.feed--3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feed > .card { height: 100%; }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.card:has(a:focus-visible) { border-color: var(--accent); }
.card[hidden] { display: none; }

.card-specimen { height: 128px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: var(--paper-2); }
.card-body { padding: .85rem .95rem .5rem; flex: 1; }
.card-title { font-size: 1.0625rem; letter-spacing: -.015em; margin-bottom: .3rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card:hover .card-title { color: var(--accent); }
.card-desc { font-size: .8125rem; line-height: 1.5; color: var(--muted); margin: 0; }
.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  padding: .7rem .95rem .85rem; margin-top: auto;
}
.card-count { font: 500 .6875rem var(--mono); color: var(--muted); margin-left: auto; }

.tag {
  font: 500 .6875rem var(--mono); border: 1px solid var(--line); border-radius: 4px;
  padding: .12rem .4rem; color: var(--ink-2); background: var(--paper);
}
.tag--cat { border-color: var(--line-2); }
.tag--price[data-price='gratuit'] { color: var(--accent); border-color: var(--accent); }
.tag--price[data-price='payant'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag--license { color: var(--muted); }

/* Aperçus vivants */
.sp { position: absolute; inset: 0; display: grid; place-items: center; }
.sp-meta {
  position: absolute; right: .6rem; bottom: .5rem; font: 500 .625rem var(--mono);
  color: var(--muted); letter-spacing: .04em;
}
.sp--font { font-family: var(--specimen-family), var(--display); font-size: 2.5rem; color: var(--ink); }
.sp--font .sp-type { line-height: 1; padding-bottom: .4rem; }
.sp--icon .glyphs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem 1.2rem; color: var(--ink-2); }
.sp--icon .glyph { width: 26px; height: 26px; display: block; }
.sp--color, .sp--field { display: block; justify-items: stretch; }
.sp--color .swatches { display: flex; height: 100%; width: 100%; }
.sp--color .swatches span { flex: 1; }
.sp--color .sp-meta {
  background: var(--surface); padding: .1rem .35rem; border-radius: 3px;
  left: .6rem; right: auto; text-transform: uppercase;
}
.sp--field svg { width: 100%; height: 100%; display: block; }
.sp--mark {
  background: oklch(.94 .045 var(--mark-hue));
  color: oklch(.42 .13 var(--mark-hue));
  font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em;
}
:root[data-theme='dark'] .sp--mark { background: oklch(.26 .05 var(--mark-hue)); color: oklch(.84 .11 var(--mark-hue)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sp--mark { background: oklch(.26 .05 var(--mark-hue)); color: oklch(.84 .11 var(--mark-hue)); }
}

.feed-empty { margin-top: 2rem; color: var(--muted); font-size: .9375rem; }
.more { display: flex; justify-content: center; margin-top: 1.75rem; }
.card[data-clipped] { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 7px; padding: .7rem 1.15rem; font-size: .9375rem;
  font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: none; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* ── Prose et listes ─────────────────────────────────────────────────────── */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } }
.prose-grid h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.prose-grid h2 + h2 { margin-top: 2rem; }
.prose-grid p { color: var(--ink-2); max-width: 62ch; font-size: .9375rem; }

.startlist { list-style: none; margin: 0; padding: 0; }
.startlist li { border-top: 1px solid var(--line); padding: .7rem 0; }
.startlist li:last-child { border-bottom: 1px solid var(--line); }
.startlist a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; align-items: baseline; }
.startlist strong { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.startlist a:hover strong { color: var(--accent); }
.startlist span { font: 500 .75rem var(--mono); color: var(--muted); }
.startlist p { margin: .2rem 0 0; font-size: .8125rem; color: var(--muted); }

.faq { margin: 0; }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-top: 1.1rem; }
.faq dd { margin: .35rem 0 0; color: var(--ink-2); font-size: .9375rem; max-width: 64ch; }

.steps { counter-reset: s; list-style: none; margin: 0 0 2rem; padding: 0; }
.steps li { position: relative; padding-left: 2.2rem; margin-bottom: .9rem; color: var(--ink-2); font-size: .9375rem; }
.steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: .05rem;
  width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 500 .6875rem var(--mono);
}
.bullets { margin: 0 0 2rem; padding-left: 1.1rem; color: var(--ink-2); font-size: .9375rem; }
.bullets li { margin-bottom: .45rem; }

/* ── En-tête de page interne ─────────────────────────────────────────────── */
.pagehead { padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .7rem; max-width: 22ch; }
.pagehead-lead { color: var(--ink-2); max-width: 68ch; font-size: 1.0625rem; margin-bottom: 1.4rem; }
.pagehead--center { text-align: center; }
.pagehead--center h1, .pagehead--center .pagehead-lead { max-width: none; }
.pagehead--center .search, .pagehead--center .eyebrow { margin-inline: auto; justify-content: center; }

.crumbs { margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ── Fiche ressource ─────────────────────────────────────────────────────── */
.res { padding: 2rem 0 3rem; }
.res-top { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-bottom: 2.5rem; }
@media (max-width: 780px) { .res-top { grid-template-columns: 1fr; gap: 1.5rem; } }
.res-visual {
  position: relative; height: 220px; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--paper-2);
}
.res-visual .sp--font { font-size: 4rem; }
.res-visual .sp--mark { font-size: 4.5rem; }
.res-visual .sp--icon .glyph { width: 34px; height: 34px; }
.res-intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.res-desc { font-size: 1.0625rem; color: var(--ink-2); max-width: 60ch; }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.res-note { font-size: .8125rem; color: var(--muted); max-width: 32ch; }

.res-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; padding: 1.75rem 0; border-block: 1px solid var(--line); }
@media (max-width: 780px) { .res-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; margin: 0; }
.specs--stack { grid-template-columns: 1fr; gap: 0; }
.specs--stack > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .55rem 0; }
.specs dt { font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .35rem; }
.specs--stack dt { margin: 0; }
.specs dd { margin: 0; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.res-tags h2 { font-size: .95rem; margin-bottom: .6rem; }
.res-related { padding-top: 2.25rem; }
.res-related h2 { font-size: 1.35rem; margin-bottom: 1rem; }

/* ── Documents ───────────────────────────────────────────────────────────── */
.doc { max-width: 900px; }
.doc--cols { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .doc--cols { grid-template-columns: 1fr; } }
.doc h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.doc p { color: var(--ink-2); font-size: .9375rem; max-width: 66ch; }
.licfam { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.licfam header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.licverdict { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.licverdict li { display: grid; gap: .15rem; }
.licverdict span { font: 500 .625rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.licverdict b { font-size: .8125rem; font-weight: 600; }
.licverdict b[data-v='oui'] { color: var(--accent); }
.licverdict b[data-v='non'] { color: var(--ink); }
.licfam-list { font-size: .8125rem; color: var(--muted); }
.disclaimer { font-size: .8125rem; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: .9rem; margin-top: 1.4rem; }

/* ── Pied ────────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); padding: 3rem 0 2rem; margin-top: 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 2.5rem; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: .875rem; max-width: 42ch; margin-top: .8rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 560px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }
.foot-cols h2 { font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .7rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-cols a { font-size: .875rem; text-decoration: none; color: var(--ink-2); }
.foot-cols a:hover { color: var(--accent); }
.foot-legal { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); max-width: 70ch; }

/* ── Tiroir de filtres sur mobile ────────────────────────────────────────── */
@media (max-width: 900px) {
  .mobile-filters {
    display: inline-flex; border: 1px solid var(--line-2); background: var(--surface);
    border-radius: var(--r-sm); padding: .35rem .8rem; font-size: .8125rem; cursor: pointer;
  }
  .filters { position: static; display: none; }
  .filters[data-open] { display: block; }
}

.chip--flat { cursor: default; color: var(--muted); }
.chip--flat:hover { border-color: var(--line); color: var(--muted); }
