/* Maquette Dourous Abou Sirine — voir ../DESIGN.md */
:root {
  --ink: #253743;
  --accent: #2E8C7C;
  --accent-strong: #236F62;
  --accent-soft: #E4F3EF;
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --border: #E6E1D8;
  --muted: #5B6870;
  --gold: #B8893A;
  --gold-soft: #F6EEDF;
  --on-accent: #FFFFFF;
  --hero-bg: #253743;
  --hero-ink: #F4F1EA;
  --t1: #2E8C7C; --t1s: #E4F3EF;
  --t2: #3D5A80; --t2s: #E7EDF5;
  --t3: #A0673A; --t3s: #F5EADF;
  --t4: #7A4E7E; --t4s: #F1E8F1;
  --radius: 10px;
  --radius-card: 16px;
  --serif: "Fraunces", "Amiri", Georgia, serif;
  --sans: "Inter", "Amiri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --player-h: 76px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6ECEF;
    --accent: #5CC7B3;
    --accent-strong: #7FD6C5;
    --accent-soft: #173A35;
    --bg: #11191E;
    --surface: #18232A;
    --border: #2A3841;
    --muted: #9AA8B0;
    --gold: #D9AE62;
    --gold-soft: #3A2F1C;
    --on-accent: #0D1A17;
    --hero-bg: #0C1418;
    --hero-ink: #EDEAE2;
    --t1s: #173A35; --t2s: #1C2A3D; --t3s: #33251A; --t4s: #2E2231;
    --t1: #5CC7B3; --t2: #8FB0DA; --t3: #D9A06F; --t4: #C79BCB;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: calc(var(--player-h) + 12px);
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ti { font-size: 1.25em; line-height: 1; vertical-align: -0.15em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Bandeau maquette */
.mock-banner { background: var(--gold-soft); color: var(--ink); font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mock-banner .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.mock-banner nav { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-banner a { padding: 2px 10px; border-radius: 999px; text-decoration: none; border: 1px solid var(--border); background: var(--surface); }
.mock-banner a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Barre du haut */
.topbar { font-size: 14px; border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.socials { display: flex; gap: 4px; }
.socials a { color: var(--muted); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.socials a:hover { color: var(--accent-strong); background: var(--accent-soft); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo { display: block; height: 64px; width: 64px; }
.logo .frame { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.logo .ink { fill: var(--ink); }
.logo .acc { fill: var(--accent); }
.logo .glyph { fill: var(--surface); }
.logo text { font-family: "Inter", system-ui, sans-serif; }
.logo .t1 { font-size: 17px; font-weight: 700; }
.logo .t2 { font-size: 8.5px; font-weight: 500; letter-spacing: .12em; }
@media (max-width: 480px) { .logo { height: 56px; width: 56px; } }
.brand strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 13px; }
.mainnav { display: none; }
.site-header .brand { margin-right: auto; }
.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.mainnav > ul > li > a, .mainnav > ul > li > button {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: none; border: 0; font-size: 16px; font-weight: 500; white-space: nowrap;
}
.btn { white-space: nowrap; }
.mainnav > ul > li > *:hover, .mainnav li.open > button { background: var(--accent-soft); color: var(--accent-strong); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 500; text-decoration: none; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-gold { background: var(--gold); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-gold { color: #1D160A; } }
.hide-sm { display: none; }
@media (min-width: 1180px) {
  .mainnav { display: block; }
  .burger { display: none; }
  .hide-sm { display: inline-flex; }
}

/* Méga-menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .25); display: none; }
.mainnav li.open .mega { display: block; }
.mega .wrap { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 28px; padding: 28px 0 32px; }
.mega-intro { background: var(--accent-soft); border-radius: var(--radius-card); padding: 20px; position: relative; overflow: hidden; }
.mega-intro p { margin: 8px 0 14px; color: var(--muted); font-size: 15px; }
.mega h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.mega ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mega li a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 16px; }
.mega li a:hover { color: var(--accent-strong); }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: none; overflow-y: auto; padding: 16px 16px 120px; }
.drawer.open { display: block; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer details { border-bottom: 1px solid var(--border); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-family: var(--serif); font-size: 1.35rem; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .ti { transform: rotate(180deg); }
.drawer details ul { list-style: none; padding: 0 0 12px 8px; margin: 0; }
.drawer details a, .drawer > a { display: block; padding: 10px 4px; color: var(--ink); text-decoration: none; font-size: 17px; }
.drawer > a { font-family: var(--serif); font-size: 1.35rem; padding: 16px 4px; border-bottom: 1px solid var(--border); }

/* Motif géométrique */
.pattern { position: absolute; inset: 0; pointer-events: none; color: currentColor; opacity: .06; }

/* Héros A : épuré */
.hero-a { padding: 48px 0 40px; position: relative; overflow: hidden; }
.hero-a .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero-a .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } .hero-a { padding: 72px 0 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent-strong); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.hero-a h1 { margin: 16px 0 6px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.25; max-width: 22em; }
.hadith-src { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.hero-a h1 em { font-style: italic; color: var(--accent-strong); }
.lead { font-size: 1.1em; color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 6px 6px 16px; max-width: 520px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; background: none; font: inherit; color: var(--ink); min-width: 0; padding: 8px 0; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 15px; }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Carte « dernière khutba » */
.feature { background: var(--hero-bg); color: var(--hero-ink); border-radius: 22px; padding: 28px; position: relative; overflow: hidden; }
.feature .pattern { opacity: .09; color: #fff; }
.feature-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9FDCCF; font-weight: 600; }
.feature h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 12px 0 8px; color: #fff; }
.feature .meta { color: #B9C5CC; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; margin: 22px 0; }
.wave span { flex: 1; background: #9FDCCF; border-radius: 2px; opacity: .55; }
.wave span.on { opacity: 1; background: #fff; }
.feature-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.play-xl { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #45B4A1; color: #0D1A17; display: grid; place-items: center; font-size: 26px; }
.play-xl:hover { background: #6CCBB9; }
.feature .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .25); }

/* Héros B : inspiré dourous.net */
.hero-b { background: var(--hero-bg); color: var(--hero-ink); position: relative; padding: 48px 0 0; }
.hero-b .pattern { opacity: .07; color: #fff; }
.hero-b .wrap { position: relative; display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 900px) { .hero-b .wrap { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 56px; } .hero-b { padding-top: 64px; } }
.portrait { width: min(300px, 68vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3B5363, #1B2A33); border: 6px solid rgb(255 255 255 / .08); display: grid; place-items: center; text-align: center; color: #B9C5CC; font-size: 14px; padding: 30px; position: relative; }
.portrait .ti { font-size: 56px; display: block; margin: 0 auto 8px; opacity: .6; }
.portrait::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgb(159 220 207 / .35); }
.hero-b .kicker { letter-spacing: .3em; text-transform: uppercase; font-size: 14px; color: #9FDCCF; }
.hero-b h1 { color: #fff; margin: 8px 0 12px; }
.hero-b .rule { width: 64px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 0 16px; }
@media (max-width: 899px) { .hero-b .rule { margin-inline: auto; } }
.hero-b p { color: #C9D3D8; max-width: 34em; margin: 0 0 22px; }
.quickbar { position: relative; margin-top: 44px; transform: translateY(32px); }
.quickbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -22px rgb(0 0 0 / .35); }
@media (min-width: 700px) { .quickbar ul { grid-template-columns: repeat(5, 1fr); } }
.quickbar li + li { border-left: 1px solid var(--border); }
@media (max-width: 699px) { .quickbar li:nth-child(odd) { border-left: 0; } .quickbar li:nth-child(n+3) { border-top: 1px solid var(--border); } .quickbar li:last-child { grid-column: span 2; } }
.quickbar a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; text-align: center; }
.quickbar a .ti { font-size: 26px; color: var(--accent); }
.quickbar a:hover { background: var(--accent-soft); }
.after-quickbar { padding-top: 72px; }

/* Sections */
section.block { padding: 48px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.block-head p { margin: 6px 0 0; color: var(--muted); }
.block-head .rule-sm { display: block; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 10px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }

/* Liste podcast */
.episodes { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.ep { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.ep + .ep { border-top: 1px solid var(--border); }
.ep:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.ep.playing { background: var(--accent-soft); }
.ep-play { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; color: var(--accent-strong); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ep-play:hover, .ep.playing .ep-play { background: var(--accent); color: var(--on-accent); }
.ep-title { font-weight: 500; color: var(--ink); text-decoration: none; display: block; line-height: 1.35; }
.ep-title:hover { color: var(--accent-strong); }
.ep-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--muted); margin-top: 4px; align-items: center; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--t1s); color: var(--t1); }
.tag.t2 { background: var(--t2s); color: var(--t2); } .tag.t3 { background: var(--t3s); color: var(--t3); } .tag.t4 { background: var(--t4s); color: var(--t4); }
.ep-actions { display: flex; gap: 2px; }
.ep-actions button, .ep-actions a { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--muted); text-decoration: none; }
.ep-actions button:hover, .ep-actions a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.ep-actions [aria-pressed="true"] { color: var(--accent-strong); }
.ep-actions .fav[aria-pressed="true"] { color: var(--gold); }
.ep.done .ep-title { color: var(--muted); }
@media (max-width: 640px) { .ep-actions .hide-xs { display: none; } .ep { grid-template-columns: auto 1fr auto; padding: 12px; gap: 12px; } }

/* Séries */
.series { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.serie { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.serie:hover { border-color: var(--accent); }
.serie-art { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; }
.serie-art .pattern { opacity: .22; }
.serie-art span { position: relative; font-family: var(--serif); font-size: 1.6rem; font-style: italic; }
.serie-body { padding: 14px 16px 16px; }
.serie-body h3 { margin-bottom: 4px; }
.serie-body p { margin: 0; font-size: 14px; color: var(--muted); }
.progress { height: 6px; background: var(--border); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* YouTube */
.videos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video { text-decoration: none; color: var(--ink); }
.video-thumb { aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, #2B3F4C, #172229); display: grid; place-items: center; position: relative; overflow: hidden; }
.video-thumb .ti { font-size: 46px; color: #fff; opacity: .9; }
.video p { margin: 10px 0 0; font-weight: 500; line-height: 1.4; }

/* Alerte nouveaux cours */
.notify { background: var(--accent-soft); border-radius: 22px; padding: 32px 24px; position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .notify { grid-template-columns: 1.2fr 1fr; padding: 40px 44px; } }
.notify .pattern { color: var(--accent); opacity: .08; }
.notify > * { position: relative; }
.notify p { margin: 8px 0 0; color: var(--muted); }
.notify-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.podcasts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Pied de page */
.site-footer { background: var(--hero-bg); color: #C9D3D8; padding: 48px 0 24px; margin-top: 48px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { font-family: var(--serif); color: #fff; font-weight: 500; font-size: 1.1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #C9D3D8; text-decoration: none; line-height: 2; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Lecteur fixe */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -20px rgb(0 0 0 / .35); }
.player-progress { position: absolute; left: 0; right: 0; top: -3px; height: 6px; cursor: pointer; }
.player-progress i { position: absolute; left: 0; top: 2px; height: 3px; background: var(--accent); }
.player .wrap { display: flex; align-items: center; gap: 12px; height: var(--player-h); }
.player-main { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 0; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.player-info { min-width: 0; flex: 1; }
.player-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 15px; }
.player-info span { font-size: 13px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-ctrls { display: flex; align-items: center; gap: 2px; }
.player-ctrls button { min-width: 42px; height: 42px; border-radius: 8px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.player-ctrls button:hover { background: var(--accent-soft); color: var(--accent-strong); }
@media (max-width: 760px) { .player .opt { display: none; } }

/* Page cours */
.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-strong); }
.course { display: grid; gap: 32px; padding: 20px 0 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .course { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
.course h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin: 10px 0 14px; }
.course-card { background: var(--hero-bg); color: var(--hero-ink); border-radius: 22px; padding: 24px; position: relative; overflow: hidden; margin: 22px 0; }
.course-card .pattern { opacity: .08; color: #fff; }
.course-card > * { position: relative; }
.course-card .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.course-card .time { font-size: 14px; color: #B9C5CC; display: flex; justify-content: space-between; margin-top: 8px; }
.scrub { height: 8px; background: rgb(255 255 255 / .15); border-radius: 4px; margin-top: 18px; position: relative; cursor: pointer; }
.scrub i { position: absolute; left: 0; top: 0; bottom: 0; background: #45B4A1; border-radius: 4px; }
.course-card .speeds { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.course-card .speeds button { border: 1px solid rgb(255 255 255 / .2); background: transparent; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.course-card .speeds button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (prefers-color-scheme: dark) { .course-card .speeds button[aria-pressed="true"] { color: #0C1418; } }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1em; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; }
.aside-card h3 { margin-bottom: 4px; }
.aside-card .episodes { border: 0; border-radius: 0; margin: 10px -18px -18px; }
.aside-card .ep { padding: 12px 18px; }
.aside-card .ep-play { width: 40px; height: 40px; font-size: 17px; }
.ep-num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 70; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Page rubrique (liste façon podcast) ---- */
.rub-hero { padding: 16px 0 8px; }
.rub-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px 22px; color: var(--t4); }
.rub-card .pattern { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.rub-card > div { position: relative; color: var(--ink); max-width: 680px; }
.rub-card h1 { margin: 14px 0 8px; }
.rub-card .lead { margin: 0 0 10px; }
.rub-stats { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.rub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .rub-card { padding: 40px 44px; } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.filter .num { font-size: 13px; color: var(--muted); }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter[aria-pressed="true"] .num { color: inherit; opacity: .75; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.toolbar .search { flex: 1 1 280px; max-width: none; }
.sort select { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.result-count { font-size: 14px; margin: 4px 0 12px; }
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.series .serie-art span { font-size: 1.4rem; }
@media (max-width: 640px) {
  .series.scroll-sm { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .series.scroll-sm::-webkit-scrollbar { display: none; }
  .series.scroll-sm .serie { flex: 0 0 72%; scroll-snap-align: start; }
  .series.scroll-sm .serie-art { aspect-ratio: 16 / 7; }
  .series.scroll-sm .serie-body { padding: 10px 14px 12px; }
}

/* ---- Thème WordPress ---- */
a.filter { text-decoration: none; }
.filter[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter[aria-current="page"] .num { color: inherit; opacity: .75; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; background: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ep.done .ep-title::after { content: " ✓"; color: var(--accent-strong); }
.search .ti { color: var(--muted); }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); z-index: 100; }

/* Page L'imam */
.imam-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 0 0 16px; }
.imam-sec h2 { font-size: 1.4rem; margin: 0 0 10px; }
.imam-sec p:last-child { margin-bottom: 0; }
.imam-sec figure { margin: 0; }
.imam-sec img { display: block; width: 150px; height: auto; border-radius: 10px; }
@media (max-width: 560px) { .imam-sec { grid-template-columns: minmax(0, 1fr); } }
article.prose > h1 { margin: 24px 0 12px; }
article.prose > .lead { margin-bottom: 28px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
article.prose > h2 { font-size: 1.35rem; margin: 28px 0 8px; }
