/* Palette Verity Score (22/10/2026) : primaire #008060, texte #0C1512, fond #F6F9F8, gris #4C5852, accent #6B4EE6.
   Mode sombre : teintes dérivées de cette palette ; contrastes contrôlés par site/tests/test_site.py. */
:root {
  --bg: #F6F9F8;
  --surface: #FFFFFF;
  --text: #0C1512;
  --muted: #4C5852;
  --line: #D3DDD9;
  --primary: #008060;
  --accent: #6B4EE6;
  --focus: #6B4EE6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 0.5rem; top: -3rem;
  background: var(--surface); color: var(--text); padding: 0.5rem 0.75rem;
  border: 2px solid var(--focus); z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

header.site, footer.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site { border-top: 4px solid var(--primary); }
footer.site { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 3rem; font-size: 0.95rem; color: var(--muted); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem; }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
header.site a.home { font-weight: 700; text-decoration: none; color: var(--text); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

main h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.25; margin: 1.5rem 0 0.75rem; }
main h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.meta { color: var(--muted); font-size: 0.95rem; }
.show { display: grid; grid-template-columns: minmax(0, 9rem) 1fr; gap: 1.25rem; align-items: start; }
.show img { border: 1px solid var(--line); }
@media (max-width: 34rem) { .show { grid-template-columns: 1fr; } .show img { max-width: 12rem; } }

.episodes { list-style: none; padding: 0; margin: 0; }
.episodes li { background: var(--surface); border: 1px solid var(--line); padding: 0.9rem 1rem; margin: 0 0 0.75rem; }
.episodes h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }

.player { background: var(--surface); border: 1px solid var(--line); padding: 1rem; margin: 1rem 0; }
.player audio { width: 100%; }
.notice { border-left: 4px solid var(--accent); background: var(--surface); padding: 0.6rem 0.9rem; }
.transcript p { margin: 0 0 1rem; }
.sources li { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #0C1512; --surface: #14201C; --text: #F6F9F8; --muted: #B4C2BC; --line: #2B3A34; --primary: #6FD3AE; --accent: #A996FF; --focus: #A996FF; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
