/* Eboka Wate — feuille de styles
   Clair, sobre, intemporel. Une touche musicale : portées, formes d'onde, numérotation en mouvements. */

:root {
  --paper: #f9f9f7;
  --paper-2: #efefec;
  --card: #ffffff;
  --ink: #1d1b18;
  --ink-2: #44433f;
  --muted: #62615b;
  --rule: #dcdcd6;
  --accent: #a3302a;
  --accent-ink: #7f241f;
  --night: #1f1d1a;
  --night-2: #2a2723;
  --night-text: #efe9dd;
  --night-muted: #b3aa9a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "Anton", "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: 72px; }
@media (max-width: 980px) { [id] { scroll-margin-top: 112px; } }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Bilingue ---------- */
html[data-lang="fr"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="fr"] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Typo ---------- */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 28px;
  max-width: 20ch;
}

.prose p { margin: 0 0 1.1em; color: var(--ink-2); font-size: 17px; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: var(--serif); font-size: 1.08em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 19px; font-weight: 400;
  text-transform: uppercase; text-decoration: none; letter-spacing: .02em; white-space: nowrap;
}
.wordmark-mark { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-gv { color: var(--accent); }

.lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.lang-switch button {
  font: 600 12px/1 var(--sans); letter-spacing: .06em;
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 10px; border-radius: 999px; cursor: pointer;
  min-width: 36px; min-height: 28px;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--sans);
  padding: 15px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-ext { width: 14px; height: 14px; fill: none !important; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-left: 2px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--night-text); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(239,233,221,.3); color: var(--night-text); }
.btn-ghost-light:hover { border-color: var(--night-text); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 24px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap;
  margin: 0 0 16px;
}
.hero-meta { font-size: 14px; color: var(--muted); letter-spacing: .02em; margin: 0 0 32px; }
/* Écho du carton-titre du générique : lettres claires sur aplat rouge légèrement grainé */
.title-card {
  display: inline-block; position: relative;
  padding: .1em .2em .06em;
  background: var(--accent); color: #fafaf8;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.title-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-lead {
  font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.45;
  color: var(--ink-2); margin: 0 0 36px; max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-funder {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 14px 0 0; border-top: 1px solid var(--ink);
  text-decoration: none; min-width: 260px;
}
.hero-funder-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-funder-logo { width: 220px; height: auto; margin-top: 10px; transition: opacity .25s var(--ease); }
.hero-funder:hover .hero-funder-logo { opacity: .8; }

.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%;
  border-radius: var(--radius);
}
.hero-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.hero-figure figcaption em { font-family: var(--serif); font-size: 1.08em; }

/* ---------- Formes d'onde ---------- */
.wave { height: 44px; margin: 14px 0 0; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave rect { fill: var(--ink); opacity: .22; }
.wave rect.is-on { fill: var(--accent); opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }

.serie-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

.tracklist {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px 28px 24px; position: sticky; top: 96px;
}
.tracklist ol { list-style: none; margin: 0 0 24px; padding: 0; }
.tracklist li + li { border-top: 1px solid var(--rule); }
.tracklist a {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 12px;
  padding: 16px 0; text-decoration: none;
}
.tl-num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
.tl-body { display: flex; flex-direction: column; gap: 2px; }
.tl-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; transition: color .2s var(--ease); }
.tl-theme { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-dur { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }
.tracklist a:hover .tl-title { color: var(--accent); }

.facts { margin: 0; padding-top: 18px; border-top: 1px solid var(--ink); display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Épisodes ---------- */
.episodes { padding-bottom: 32px; border-top: 1px solid var(--rule); }
.episode { padding: clamp(48px, 7vw, 96px) 0; }
.episode + .episode { border-top: 1px solid var(--rule); }

.ep-head { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 36px); margin-bottom: 28px; }
.ep-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(64px, 10vw, 128px); line-height: .8;
  color: var(--accent); min-width: 1.4ch;
}
.ep-meta { font-size: 14px; letter-spacing: .02em; color: var(--muted); margin: 0 0 8px; }
.ep-title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.015em;
}

.player {
  position: relative; aspect-ratio: 16 / 9; background: var(--night);
  border-radius: var(--radius); overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: none; color: #fff;
}
.player-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.92); }
.player-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0) 45%, rgba(20,18,16,.55) 100%);
}
.play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(249,249,247,.94); color: var(--ink);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.player-label {
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.player-facade:focus-visible { outline: 3px solid var(--paper); outline-offset: -6px; }
.player-facade:focus-visible .play { background: var(--accent); color: #fff; }
.player-facade:hover img { transform: scale(1.025); filter: saturate(1); }
.player-facade:hover .play { transform: scale(1.06); background: var(--accent); color: #fff; }

.ep-body {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 72px); margin-top: 40px;
}
.ep-synopsis { grid-row: span 2; }
.ep-synopsis p { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--ink); }
.ep-synopsis em { font-style: italic; font-size: 1em; }

.ep-quote { margin: 0; padding: 4px 0 0 22px; border-left: 2px solid var(--accent); }
.ep-quote p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; margin: 0 0 10px; }
.ep-quote cite { font-style: normal; font-size: 13px; color: var(--muted); }

.ep-credits { margin: 0; display: grid; gap: 14px; align-self: end; }
.ep-credits div { border-top: 1px solid var(--rule); padding-top: 12px; }
.ep-credits dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ep-credits dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.ep-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.ep-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }


/* ---------- Interlude ---------- */
.interlude { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.interlude blockquote { margin: 0 auto; max-width: 30ch; text-align: center; }
.interlude p {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.22; letter-spacing: -.01em; margin: 0 0 24px;
}
.interlude cite { font-style: normal; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.interlude cite em { font-family: var(--serif); font-size: 1.08em; }

/* ---------- Global Voice ---------- */
.gv { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.gv-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); position: relative; }
.gv-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 28px;
}
.gv-lead { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--night-text); margin: 0; max-width: 40ch; }

.gv-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
.prose-light p { color: var(--night-muted); }
.prose-light strong { color: var(--night-text); }

.gv-logo { margin: 0 0 32px; background: var(--paper); border-radius: var(--radius); padding: 28px 32px; }
.gv-logo img { width: 100%; max-width: 340px; margin: 0 auto; }
.gv-points { list-style: none; margin: 0 0 36px; padding: 0; }
.gv-points li {
  display: grid; grid-template-columns: 156px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid rgba(239,233,221,.16);
  font-size: 15px; color: var(--night-muted);
}
.gv-points li:last-child { border-bottom: 1px solid rgba(239,233,221,.16); }
.gv-figure { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--night-text); }

.gv-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Radio ---------- */
.radio-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.radio-logo img { width: 100%; max-width: 360px; margin: 0 auto; mix-blend-mode: multiply; }
.allies { grid-column: 1 / -1; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--ink); }
.allies-title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 24px; }
.allies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ally { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.ally-name { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 0 0 6px; color: var(--ink); }
.ally-name abbr { text-decoration: none; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); vertical-align: middle; margin-left: 6px; }
.ally-role { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.ally-points { list-style: none; margin: 0; padding: 0; }
.ally-points li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.ally-points li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--accent); }
.radio-photo { grid-column: 1 / -1; margin: 16px 0 0; }
.radio-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }
.radio-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Crédits ---------- */
.credits { background: var(--paper-2); }
.credits-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 56px; }
.credits-grid > .credit-card { grid-column: span 2; }
.credits-grid > .credit-card:nth-child(n+4) { grid-column: span 3; }
.credit-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px;
}
.credit-card-gv { border-color: var(--accent); background: #fbf3ef; }
.credit-role { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.credit-name { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
.credit-logo { width: 100%; max-width: 260px; margin: 6px 0 4px; }
.credit-note { font-size: 14px; color: var(--ink-2); margin: 0; }

.crew { max-width: 860px; }
.crew-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.crew-names { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 32px; }

/* ---------- Mentions légales ---------- */
.legal-body { max-width: 68ch; }
.legal-body section { padding: 28px 0; border-top: 1px solid var(--rule); }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.legal-body p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a { color: var(--accent); text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-mark { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px; }
.footer-sub { font-size: 14px; color: var(--muted); margin: 0; max-width: 44ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0 16px; }
  .lang-switch { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 0 0 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 0; }
  .lang-switch button { min-height: 40px; min-width: 44px; }
  .allies-grid { grid-template-columns: 1fr; }
  .hero-grid, .serie-grid, .gv-grid, .radio-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .tracklist { position: static; }
  .ep-body { grid-template-columns: 1fr; }
  .ep-synopsis { grid-row: auto; }
  .credits-grid { grid-template-columns: 1fr; }
  .credits-grid > .credit-card, .credits-grid > .credit-card:nth-child(n+4) { grid-column: auto; }
  .radio-logo img { max-width: 260px; margin: 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-funder { min-width: 0; width: 100%; }
  .ep-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ep-num { font-size: 56px; }
  .ep-synopsis p { font-size: 18px; }
  .ep-strip { grid-template-columns: 1fr 1fr; }
  .ep-strip img:last-child { display: none; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .player-label { display: none; }
  .gv-points li { grid-template-columns: 1fr; gap: 4px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .radio-photo img { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
