/* Token FM, site public. Identité : noir, blanc et l'orange du logo (#FF6E1F),
   police Plus Jakarta Sans (SIL OFL 1.1, auto-hébergée : la CSP n'autorise que le site). */

@font-face {
  font-family: "Jakarta";
  src: url("/static/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- jetons ---------- */
:root {
  --orange: #ff6e1f; --orange-hover: #ff8a47; --on-orange: #111113;
  --black: #0b0b0c;
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #efebe3; --line: #e2ddd2; --line-strong: #cfc8ba;
  --fg: #111113; --fg-2: #45454c; --fg-3: #6a6a72;
  --accent-ink: #b9400a;          /* orange lisible sur fond clair */
  /* familles des pastilles : ≥ 4,5:1 sur leur fond teinté, même sur --surface-2 */
  --f-rdv: #9a3508; --f-dossier: #1a4fa0; --f-chronique: #5b3aa8; --f-breve: #08645a; --f-motia: #962862;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 19, .05), 0 8px 24px -16px rgba(17, 17, 19, .25);
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --header-h: 4.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --surface: #141416; --surface-2: #19191c; --line: #26262b; --line-strong: #37373e;
    --fg: #f4f3f0; --fg-2: #c3c2c8; --fg-3: #8f8e97; --accent-ink: #ff8a4c;
    --f-rdv: #ff8a4c; --f-dossier: #7fb0ff; --f-chronique: #b79cff; --f-breve: #4fd1bf; --f-motia: #f48cc0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #141416; --surface-2: #19191c; --line: #26262b; --line-strong: #37373e;
  --fg: #f4f3f0; --fg-2: #c3c2c8; --fg-3: #8f8e97; --accent-ink: #ff8a4c;
  --f-rdv: #ff8a4c; --f-dossier: #7fb0ff; --f-chronique: #b79cff; --f-breve: #4fd1bf; --f-motia: #f48cc0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
/* surfaces toujours sombres : en-tête, héros, fabrication, pied de page, lecteur */
.site-header, .hero, .section-dark, .site-footer, .player, .now-card {
  --bg: #0b0b0c; --surface: #141416; --surface-2: #1b1b1f; --line: #2a2a30; --line-strong: #3a3a42;
  --fg: #f4f3f0; --fg-2: #c3c2c8; --fg-3: #9796a0; --accent-ink: #ff8a4c;
  --f-rdv: #ff8a4c; --f-dossier: #7fb0ff; --f-chronique: #b79cff; --f-breve: #4fd1bf; --f-motia: #f48cc0;
  color: var(--fg);
}

/* ---------- socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; word-spacing: .06em; font: 400 17px/1.6 var(--font); color: var(--fg); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.has-player { padding-bottom: 5.5rem; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* anneau de focus : l'orange lisible du thème (≥ 3:1 sur tous les fonds) ; sur un bouton orange,
   la couleur du texte de la page, pour que l'anneau se détache du bouton comme du fond */
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.btn-primary:focus-visible, .btn-live:focus-visible, .player-toggle:focus-visible, .play-chip.is-playing:focus-visible, .skip-link:focus-visible, .step-n:focus-visible { outline-color: var(--fg); }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; word-spacing: .08em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
img, svg { display: block; }
code { font-family: var(--mono); font-size: .86em; padding: .1em .35em; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--fg-3); }
.small { font-size: .85rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap-mid { max-width: 62rem; }
.wrap-narrow { max-width: 50rem; }
svg.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .65rem 1.25rem; border: 1.5px solid transparent; border-radius: 999px; font: 700 .95rem/1.1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--fg); }
.btn-lg { min-height: 3.25rem; padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-small { min-height: 2.25rem; padding: .45rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: transparent; color: var(--fg-2); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--fg); }
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: inline-block !important; } :root:not([data-theme="light"]) .only-light { display: none !important; } }
:root[data-theme="dark"] .only-dark { display: inline-block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
.play-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.25rem; padding: .35rem .85rem .35rem .6rem; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--accent-ink); font: 700 .85rem var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s; }
.play-chip:hover { background: color-mix(in srgb, var(--orange) 26%, transparent); }
.play-chip .i { width: 1rem; height: 1rem; }
.play-chip.is-playing { background: var(--orange); color: var(--on-orange); }

/* ---------- partager ---------- */
.share { position: relative; display: inline-block; }
.share > summary { list-style: none; }
.share > summary::-webkit-details-marker { display: none; }
.share-menu { position: absolute; z-index: 30; top: calc(100% + .4rem); left: 0; display: grid; min-width: 13rem; padding: .35rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.share-item { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 2.5rem; padding: .45rem .75rem; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: 600 .9rem var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.share-item:hover { background: var(--surface-2); text-decoration: none; }
.share-item .i { width: 1rem; height: 1rem; color: var(--fg-3); }
.hero .share > summary { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .share > summary:hover { border-color: #fff; }
.hero-share { margin-top: 1.5rem; }

/* ---------- pastilles ---------- */
.badge { display: inline-flex; align-items: center; padding: .14rem .5rem; border-radius: 6px; background: color-mix(in srgb, var(--fam, var(--fg-3)) 12%, transparent); color: var(--fam, var(--fg-2)); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; line-height: 1.5; }
.fam-rdv { --fam: var(--f-rdv); } .fam-dossier { --fam: var(--f-dossier); } .fam-chronique { --fam: var(--f-chronique); }
.fam-breve { --fam: var(--f-breve); } .fam-motia { --fam: var(--f-motia); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; color: var(--accent-ink); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dot-live, .live-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 110, 31, .6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 110, 31, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 110, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 110, 31, 0); } }
.ai-note { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--fg-2); }
.ai-chip { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.3rem; padding: 0 .35rem; border-radius: 6px; border: 1.5px solid currentColor; color: var(--accent-ink); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }

/* ---------- avatars (voix) ---------- */
.avatar { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.avatar-0 { background: var(--orange); color: var(--on-orange); }
.avatar-1 { background: var(--black); color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.avatar-2 { background: linear-gradient(135deg, #ffb07a, var(--orange)); color: var(--on-orange); }
.avatar-3 { background: #f4f3f0; color: var(--black); box-shadow: inset 0 0 0 2px var(--orange); }
.avatar-sm { width: 1.85rem; height: 1.85rem; font-size: .82rem; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 12, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.header-row { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; color: #fff; flex: none; }
.logo-svg { height: 1.95rem; width: auto; }
.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav a { position: relative; padding: .5rem .8rem; border-radius: 999px; color: var(--fg-2); font-size: .93rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.btn-live { display: inline-flex; align-items: center; gap: .55rem; height: 2.5rem; padding: 0 1rem 0 .85rem; border: 0; border-radius: 999px; background: var(--orange); color: var(--on-orange); font: 800 .9rem var(--font); cursor: pointer; }
.btn-live:hover { background: var(--orange-hover); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: .95rem; }
.eq i { width: 3px; height: 40%; border-radius: 2px; background: currentColor; }
.eq i:nth-child(2) { height: 75%; } .eq i:nth-child(3) { height: 55%; }
body.is-live .eq i { animation: eq .9s ease-in-out infinite; }
body.is-live .eq i:nth-child(2) { animation-delay: -.3s; } body.is-live .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.menu-btn { display: none; }
/* thème : l'icône du choix en cours (automatique, clair, sombre) */
/* the button shows the theme on screen: the system's until the person chooses */
.theme-btn .ico-dark { display: none; }
:root[data-theme="dark"] .theme-btn .ico-light { display: none; }
:root[data-theme="dark"] .theme-btn .ico-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-btn .ico-light { display: none; }
  :root:not([data-theme]) .theme-btn .ico-dark { display: inline-block; }
}
/* boutons du direct : lecture, chargement, pause, reconnexion (site.js pose data-state) */
[data-play-live] .ico-pause { display: none; }
[data-play-live][data-state="playing"] .ico-play { display: none; }
[data-play-live][data-state="playing"] .ico-pause { display: inline-block; }
[data-play-live][data-state="loading"], [data-play-live][data-state="reconnecting"] { cursor: progress; }
[data-play-live][data-state="loading"] .ico-play, [data-play-live][data-state="reconnecting"] .ico-play { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- héros ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 100% 0%, rgba(255, 110, 31, .16), transparent 60%), var(--black); padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-waves { position: absolute; top: 50%; right: -12rem; width: min(64rem, 95vw); height: auto; transform: translateY(-50%); fill: none; stroke: var(--orange); stroke-width: 44; stroke-linecap: round; opacity: .09; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.04em; word-spacing: .1em; }
.hero .accent { color: var(--orange); }
.hero .lead { margin-top: 1.4rem; max-width: 36rem; font-size: clamp(1.02rem, 1.4vw, 1.17rem); line-height: 1.65; color: var(--fg-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn-outline:hover { border-color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 2.25rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--fg-3); }
.hero-facts strong { color: #fff; font-size: 1.05rem; font-weight: 800; margin-right: .2rem; font-variant-numeric: tabular-nums; }
.hero-small { padding: clamp(4rem, 10vw, 7rem) 0; }
.hero-small h1 { max-width: 18ch; }

/* carte « en ce moment » */
.now-card { position: relative; display: grid; gap: 1rem; padding: 1.5rem; border-radius: 22px; background: linear-gradient(180deg, #17171a, #111113); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.now-head { display: flex; align-items: center; justify-content: space-between; }
.live-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 110, 31, .14); color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live-pill.is-off { background: rgba(255, 255, 255, .08); color: var(--fg-3); }
.live-pill.is-off .dot { background: var(--fg-3); animation: none; }
.now-clock { font-size: .95rem; font-weight: 700; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.now-kicker { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--fg-3); }
.now-title { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; letter-spacing: -.02em; }
.now-title a { color: #fff; text-decoration: none; }
.now-title a:hover { text-decoration: underline; }
.now-text { color: var(--fg-2); font-size: .95rem; }
.now-progress .bar { display: block; height: .38rem; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.now-progress .bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--orange); transition: width 1s linear; }
.now-times { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .78rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.now-next { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.now-next h3 { margin-bottom: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.now-next ol { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.now-next li { display: grid; grid-template-columns: 3.1rem auto minmax(0, 1fr); align-items: center; gap: .6rem; font-size: .92rem; }
.now-next time { font-weight: 800; font-variant-numeric: tabular-nums; }
.now-next-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.now-next-note { margin-top: .6rem; font-size: .82rem; color: var(--fg-3); }

/* ---------- sections ---------- */
.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--black); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2, .page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.035em; }
.section-lead { margin-top: 1rem; font-size: 1.08rem; line-height: 1.65; color: var(--fg-2); max-width: 44rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; max-width: none; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.empty { color: var(--fg-3); }

/* une heure de Token FM */
.hour { padding: 1.75rem clamp(1rem, 3vw, 2rem) 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hour { margin: 0; }
.hour-caption { margin-bottom: .8rem; font-size: .88rem; font-weight: 700; color: var(--fg-2); }
.hour-track { position: relative; height: 5.6rem; }
.hour-bar { display: block; width: 100%; height: 2.8rem; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.hour-bar .blk { fill: var(--fam, var(--fg-3)); stroke: var(--surface); stroke-width: 2px; }
.hour-bar .blk:hover { opacity: .8; }
.fam-spot { --fam: color-mix(in srgb, var(--fg) 35%, transparent); }
.hour-mark { position: absolute; top: 3.3rem; z-index: 1; }
.hour-label { display: flex; flex-direction: column; font-size: .88rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.hour-label strong { font-size: 1.05rem; font-weight: 800; color: var(--accent-ink); }
.hour-mark[data-minute="0"] { left: 0; }
.hour-mark[data-minute="5"] { left: 8.33%; } .hour-mark[data-minute="10"] { left: 16.67%; } .hour-mark[data-minute="15"] { left: 25%; }
.hour-mark[data-minute="20"] { left: 33.33%; } .hour-mark[data-minute="25"] { left: 41.67%; } .hour-mark[data-minute="30"] { left: 50%; }
.hour-mark[data-minute="35"] { left: 58.33%; } .hour-mark[data-minute="40"] { left: 66.67%; } .hour-mark[data-minute="45"] { left: 75%; }
.hour-mark[data-minute="50"] { left: 83.33%; } .hour-mark[data-minute="55"] { left: 91.67%; }
.hour-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .6rem; font-size: .85rem; color: var(--fg-2); }
.hour-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.sw { display: inline-block; width: .9rem; height: .9rem; border-radius: 4px; background: var(--fam, var(--fg-3)); }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.format { display: grid; align-content: start; gap: .55rem; padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.format h3 { font-size: 1.12rem; }
.format p { color: var(--fg-2); font-size: .94rem; }
.format .badge { justify-self: start; }

/* derniers passages */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .8rem; padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(17, 17, 19, .05), 0 18px 34px -20px rgba(17, 17, 19, .35); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-when { font-size: .8rem; color: var(--fg-3); }
.card-title { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .35rem; }
.card-link { font-size: .85rem; font-weight: 600; color: var(--fg-3); }
.card-sub { margin-top: -.35rem; font-size: .88rem; line-height: 1.45; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* les voix */
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.voice-card { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.voice-card h3 { font-size: 1.1rem; }
.voice-role { margin: .15rem 0 .5rem; color: var(--accent-ink); font-size: .8rem; font-weight: 700; }
.voice-card p:last-child { color: var(--fg-2); font-size: .92rem; line-height: 1.55; }
.voices-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-top: 1.25rem; }
.voices-compact .voice-card { align-items: center; padding: .9rem 1rem; }
.voices-compact .avatar { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
.voices-compact .voice-role { margin: .1rem 0 0; }

/* fabrication */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0 0 2.25rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; align-content: start; gap: .5rem; padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: .35rem; border-radius: 50%; background: var(--orange); color: var(--on-orange); font-weight: 800; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--fg-2); font-size: .92rem; }
.section-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .28); }
.section-dark .btn-outline:hover { border-color: #fff; }

/* écouter partout */
.streams { display: grid; gap: .75rem; }
.stream { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stream h3 { font-size: 1.05rem; }
.stream p { font-size: .85rem; color: var(--fg-3); }
.stream code { padding: .55rem .8rem; background: var(--surface-2); font-size: .88rem; }

/* ---------- pages intérieures ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-hero-small { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.page-hero h1 .muted { font-weight: 600; }
.crumbs { display: flex; gap: .5rem; margin-bottom: 1.1rem; font-size: .85rem; color: var(--fg-3); }
.crumbs a { color: var(--fg-3); }

/* réécoute */
.days { display: flex; gap: .6rem; margin-top: 2rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.day { display: grid; flex: 0 0 auto; min-width: 7.6rem; padding: .75rem .95rem; border-radius: var(--radius-s); background: var(--surface); border: 1.5px solid var(--line); color: var(--fg); text-decoration: none; }
.day:hover { border-color: var(--fg-3); }
.day.is-on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.day-name { font-weight: 800; font-size: .92rem; }
.day-date { font-size: .8rem; color: var(--fg-3); }
.day-count { margin-top: .35rem; font-size: .78rem; font-weight: 700; color: var(--accent-ink); }
.replay-body { padding-top: 2rem; padding-bottom: 4rem; }
.replay-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.daynav { display: flex; gap: .5rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .38rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--fg-2); font: 600 .85rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.replay-hour + .replay-hour { margin-top: 1.75rem; }
.replay-hour-title { position: sticky; top: var(--header-h); z-index: 2; padding: .6rem 0; background: var(--bg); font-size: 1.35rem; letter-spacing: -.03em; }
.replay { margin: 0; padding: 0; list-style: none; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.replay-item { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: start; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.replay-item:first-child { border-top: 0; }
.replay-item:target { background: color-mix(in srgb, var(--orange) 8%, var(--surface)); }
.replay-time { padding-top: .1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.replay-line { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.replay-line .badge { position: relative; top: -.1rem; }
.replay-title { color: var(--fg); font-weight: 700; text-decoration: none; line-height: 1.35; }
.replay-title:hover { text-decoration: underline; }
.replay-sub { margin-top: .2rem; font-size: .88rem; line-height: 1.45; color: var(--fg-2); }
.replay-retired { margin-top: .3rem; font-size: .85rem; color: var(--fg-2); }
.replay-item.is-retired .replay-title { color: var(--fg-2); }
.replay details { margin-top: .45rem; }
.replay summary { display: inline-flex; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--fg-3); list-style: none; }
.replay summary::before { content: "+"; width: 1rem; font-weight: 800; }
.replay details[open] summary::before { content: "−"; }
.replay summary::-webkit-details-marker { display: none; }
.replay-text { margin-top: .65rem; padding: .9rem 1rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: .95rem; line-height: 1.65; }
.replay-text p + p { margin-top: .6rem; }
.empty-state { display: grid; justify-items: center; gap: .75rem; padding: 3rem 1rem; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h2 { font-size: 1.4rem; }
.empty-state p { color: var(--fg-2); }

/* page d'un segment */
.article-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.article-head h1 { margin: .75rem 0 1rem; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.035em; }
.article-meta { display: flex; flex-wrap: wrap; gap: .3rem 0; color: var(--fg-2); font-size: .95rem; }
.article-meta span + span::before { content: "·"; margin: 0 .7rem; color: var(--fg-3); }
.article-head .ai-note { margin-top: .9rem; }
.listen-bar { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.topics { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.topics li { padding: .3rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; color: var(--fg-2); }
.transcript { padding-top: 2.5rem; padding-bottom: 4rem; }
.transcript-title { margin-bottom: 1.25rem; font-size: 1.35rem; }
.transcript-title .muted { font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.turn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.turn.has-sources { grid-template-columns: minmax(0, 1fr) 17rem; }
.turn-voice { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.turn-text { font-size: 1.12rem; line-height: 1.8; max-width: 68ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn-sources { display: grid; gap: .5rem; align-content: start; }
.source { display: grid; gap: .2rem; padding: .7rem .85rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.source:hover { border-color: var(--orange); }
.source-host { font-size: .78rem; font-weight: 800; color: var(--accent-ink); overflow-wrap: anywhere; }
.source-text { font-size: .82rem; line-height: 1.45; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.retired { margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--fg-3); color: var(--fg-2); }
.retired strong { color: var(--fg); }
.notice { margin-bottom: 1.5rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); color: var(--fg-2); }
.rectif { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: .75rem; justify-items: start; }
.rectif h2 { font-size: 1.2rem; }
.rectif p { color: var(--fg-2); }

/* pages de texte */
.doc { padding-top: 2.5rem; padding-bottom: 4.5rem; }
.doc > section + section, .doc > h2 { margin-top: 2.75rem; }
.doc h2 { font-size: 1.5rem; letter-spacing: -.025em; margin-bottom: .85rem; }
.doc p { max-width: 70ch; color: var(--fg-2); }
.doc p + p { margin-top: .8rem; }
.lead-text { font-size: 1.15rem; line-height: 1.65; color: var(--fg) !important; }
.facts { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: .9rem 1.5rem; margin: 0 0 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--fg-2); overflow-wrap: anywhere; }
.callout { margin-top: 2.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); display: grid; gap: .7rem; justify-items: start; }
.callout h2 { margin: 0; font-size: 1.2rem; }
.big-link { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.checklist { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; color: var(--fg-2); }
.checklist li { position: relative; padding-left: 1.75rem; max-width: 70ch; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; border: 3px solid var(--orange); }
.steps-light { margin-top: 1.25rem; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { padding: .8rem 1rem; text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); background: var(--surface-2); }
.table td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--black); padding: 4rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand .logo-svg { height: 2.1rem; }
.footer-brand p { max-width: 26rem; color: var(--fg-3); font-size: .92rem; }
.site-footer nav { display: grid; gap: .55rem; align-content: start; font-size: .92rem; }
.site-footer h2 { margin-bottom: .4rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.site-footer nav a { color: var(--fg-2); text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- lecteur persistant ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(17, 17, 19, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .8); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
.player-row { display: flex; align-items: center; gap: 1rem; height: 4.75rem; }
.player-toggle { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--orange); color: var(--on-orange); cursor: pointer; }
.player-toggle:hover { background: var(--orange-hover); }
.player-toggle .i { width: 1.35rem; height: 1.35rem; }
.when-playing { display: none !important; }
.player.is-playing .when-playing { display: inline-block !important; }
.player.is-playing .when-paused { display: none !important; }
.player-info { display: grid; min-width: 0; flex: 1; }
.player-kind { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.player.is-live .player-kind::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); animation: live 2s infinite; }
.player-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 700; text-decoration: none; }
.player-title:hover { text-decoration: underline; }
.player-seek { display: flex; align-items: center; gap: .6rem; flex: 1.3; font-size: .8rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.player-seek input { flex: 1; min-width: 0; height: 1.5rem; margin: 0; background: transparent; accent-color: var(--orange); cursor: pointer; }
.player-skip { display: flex; gap: .25rem; flex: none; }
.player-jump { min-width: 2.75rem; height: 2.5rem; padding: 0 .5rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--fg-2); font: 700 .78rem var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.player-jump:hover { border-color: var(--fg-3); color: #fff; }
.player-close { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--fg-3); cursor: pointer; }
.player-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- moyen et petit écran ---------- */
@media (max-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 56rem) {
  :root { --header-h: 3.75rem; }
  .logo-svg { height: 1.65rem; }
  .menu-btn { display: inline-grid; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; background: #0b0b0c; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header.menu-open .main-nav { display: flex; }
  .main-nav a { padding: .85rem .5rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .header-actions { margin-left: auto; }
  .btn-live-label { display: none; }
  .btn-live { width: 2.5rem; padding: 0; justify-content: center; }
  .turn.has-sources { grid-template-columns: minmax(0, 1fr); }
  .stream { grid-template-columns: minmax(0, 1fr) auto; }
  .stream code { grid-column: 1 / -1; grid-row: 2; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .facts dd + dt { margin-top: .8rem; }
  /* réécoute : une barre de progression fine sur toute la largeur, au-dessus du lecteur */
  .player-seek { position: absolute; left: 0; right: 0; top: -.75rem; gap: 0; }
  .player-seek .player-time { display: none; }
  .player-seek input { height: 1.5rem; -webkit-appearance: none; appearance: none; }
  .player-seek input::-webkit-slider-runnable-track { height: .3rem; border-radius: 0; background: rgba(255, 255, 255, .18); }
  .player-seek input::-moz-range-track { height: .3rem; background: rgba(255, 255, 255, .18); }
  .player-seek input::-moz-range-progress { height: .3rem; background: var(--orange); }
  .player-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 1rem; height: 1rem; margin-top: -.35rem; border: 0; border-radius: 50%; background: var(--orange); }
  .player-seek input::-moz-range-thumb { width: 1rem; height: 1rem; border: 0; border-radius: 50%; background: var(--orange); }
  .player-row { gap: .6rem; }
}
@media (max-width: 40rem) {
  body { font-size: 16px; }
  .hour-label { font-size: .76rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .replay-item { grid-template-columns: 3rem minmax(0, 1fr); }
  .replay-play { grid-column: 2; }
  .replay-line { flex-wrap: wrap; row-gap: .25rem; }
  .now-card { padding: 1.15rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 40rem) { .hero-waves { display: none; } }

/* ---------- formulaires des auditeurs (contact, mot à la rédaction) ---------- */
.listener-form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.listener-form .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.listener-form .field { display: grid; gap: .4rem; font-weight: 700; }
.listener-form .field small { font-weight: 500; color: var(--fg-3); }
.listener-form input, .listener-form select, .listener-form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; }
.listener-form textarea { resize: vertical; }
.listener-form input:focus-visible, .listener-form select:focus-visible, .listener-form textarea:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 1px; }
.listener-form .has-error input, .listener-form .has-error select, .listener-form .has-error textarea { border-color: #d93025; }
.listener-form .field-error { color: #d93025; font-weight: 700; }
.listener-form .btn { justify-self: start; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-sent { font-weight: 700; }
.note-box { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 16px; background: var(--surface); }
.note-box h2 { margin-top: 0; }
