/* On déniche — pages d'information (sources et licences, pages légales). Mêmes couleurs que le site. */
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --text: #172126;
  --muted: #6f7b82;
  --border: #dfe5e8;
  --accent: #ff6b35;
  --link: #c2461a;
  --radius: 18px;
}

html.dark {
  --bg: #0f1519;
  --surface: #172025;
  --surface-soft: #1b272d;
  --text: #f2f5f6;
  --muted: #aab5ba;
  --border: #304047;
  --link: #ff9468;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--link); text-underline-offset: 2px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.7px;
  color: var(--text);
  text-decoration: none;
}

.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--text); }

.doc {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 22px; letter-spacing: -.4px; margin: 40px 0 14px; }
h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.3; }
h3 a { color: var(--text); }

.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0 0 22px; }
.lead strong { color: var(--text); }

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
}
.box p { margin: 6px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.src {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.src dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  margin: 0;
  font-size: 14px;
}
.src dt { color: var(--muted); }
.src dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}
summary { cursor: pointer; font-weight: 700; }

.nets {
  columns: 2 300px;
  column-gap: 28px;
  padding-left: 18px;
  margin: 12px 0 0;
  font-size: 14px;
}
.nets li { break-inside: avoid; margin-bottom: 3px; }
.lic { color: var(--muted); font-size: 12px; white-space: nowrap; }

.site-foot {
  border-top: 1px solid var(--border);
  padding: 22px 24px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-foot a { color: var(--muted); }

@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .doc { padding: 26px 16px 44px; }
  .lead { font-size: 16px; }
}

/* Pied de page toujours en bas de l'écran, même quand la page est courte (demande du 29 sept.). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}
