/* ==========================================================================
   Pépites d'Histoire — feuille de style unique
   Charte reprise du site d'origine : bordeaux #7f0d0d, anthracite #272727,
   Cormorant Garamond (titres) + Merriweather (texte) + Josefin Sans (boutons).
   ========================================================================== */

/* --- Polices auto-hébergées (aucun appel à Google Fonts) ------------------ */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-700-italic.woff2') format('woff2');
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('/assets/fonts/merriweather-400.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Josefin Sans';
  src: url('/assets/fonts/josefin-sans-700.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* --- Variables ----------------------------------------------------------- */
:root {
  --bordeaux: #7f0d0d;
  --bordeaux-dark: #5f0909;
  --anthracite: #272727;
  --ink: #222;
  --on-dark: rgba(255, 255, 255, .78);
  --wrap: 1000px;
  --gutter: 20px;
  --display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --body: 'Merriweather', Georgia, 'Times New Roman', serif;
  --ui: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.2px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.3; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bordeaux); color: #fff; padding: 12px 20px;
  font-family: var(--ui); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

:where(a, button):focus-visible {
  outline: 3px solid #f0c419; outline-offset: 3px; border-radius: 4px;
}

/* --- En-tête / hero ------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  background: #3b0808;
  color: #fff;
  text-align: center;
  padding: 74px var(--gutter) 62px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/img/hero-poster-1600.webp') center / cover no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, .16) 45%, rgba(0, 0, 0, .42));
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__video.is-playing { opacity: 1; }

.hero__inner { max-width: 860px; margin-inline: auto; }

.hero__logo { margin: 0 0 22px; }
.hero__logo img {
  width: 130px; height: 130px;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

.hero__claim {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.32rem, 1.05rem + 1.1vw, 1.62rem);
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero__claim em { font-style: italic; }

/* --- Section « Écouter » ------------------------------------------------- */
.listen { background: #fff; padding: 60px 0 66px; }

.listen__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.player__embed {
  position: relative;
  min-height: 630px;
  background: #f4f2ef;
  border-radius: 8px;
  overflow: hidden;
}
.player__embed iframe { width: 100%; height: 630px; border: 0; display: block; }

.player__embed::after {
  content: 'Chargement du lecteur…';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ui); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #8b8b8b;
}
.player__embed.is-loaded::after, .player__embed:has(iframe)::after { content: none; }

.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.video { position: relative; }

.video__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video__btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s ease, transform .5s ease;
}
.video__btn:hover img, .video__btn:focus-visible img { opacity: .82; transform: scale(1.03); }

.video__play {
  position: absolute; inset: 0;
  margin: auto;
  width: 58px; height: 40px;
  border-radius: 10px;
  background: rgba(28, 28, 28, .78);
  transition: background .25s ease;
}
.video__play::before {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video__btn:hover .video__play, .video__btn:focus-visible .video__play { background: var(--bordeaux); }

.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; display: block; }

.listen__title {
  margin: 58px 0 0;
  font-size: clamp(1.72rem, 1.3rem + 1.6vw, 2.19rem);
  color: var(--ink);
  text-align: center;
  letter-spacing: .01em;
}
.listen__title strong { font-weight: 600; }
.listen__title::after {
  content: '';
  display: block;
  width: 54px; height: 2px;
  margin: 16px auto 0;
  background: var(--bordeaux);
  opacity: .55;
}

.platforms {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 172px;
  padding: 14px 26px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .13);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pill__icon {
  width: 17px; height: 17px;
  flex: none;
  fill: currentColor;
  opacity: .92;
}
.pill--red { background: var(--bordeaux); border-color: var(--bordeaux); }
.pill--dark { background: var(--anthracite); border-color: var(--anthracite); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .25); }
.pill--red:hover { background: var(--bordeaux-dark); }
.pill--dark:hover { background: #141414; }
.pill:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }

/* --- Section « Qu'est-ce qu'un podcast ? » ------------------------------- */
.about {
  position: relative;
  isolation: isolate;
  background: var(--anthracite);
  color: var(--on-dark);
  padding: 64px 0 70px;
  overflow: hidden;
}

.about__bg { position: absolute; inset: 0; z-index: -1; }
.about__bg::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/img/hero-poster-1600.webp') center / cover no-repeat;
  opacity: .55;
}
.about__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, .58), rgba(20, 20, 20, .74));
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.about__media { display: grid; gap: 20px; }
.about__media img { width: 100%; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }

.about__text h2 {
  color: #fff;
  font-size: clamp(2rem, 1.5rem + 1.9vw, 2.62rem);
  margin-bottom: 20px;
}
/* Colonne étroite : la justification creusait des blancs entre les mots et
   coupait les mots en fin de ligne. Drapeau à droite, sans césure. */
.about__text p {
  margin: 0 0 20px;
  max-width: 60ch;
  text-align: left;
  hyphens: none;
  text-wrap: pretty;
  font-size: 15.8px;
  line-height: 1.78;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: #fff; font-weight: 700; }
.about__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.about__text a:hover { color: #f4c9c9; }

/* --- Pied de page -------------------------------------------------------- */
.site-footer { background: #fff; padding: 26px 0; border-top: 1px solid #ececec; }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
}

.site-footer p { margin: 0; font-size: 13px; color: rgba(0, 0, 0, .6); }
.site-footer a { color: rgba(0, 0, 0, .72); text-decoration: none; }
.site-footer a:hover { color: var(--bordeaux); text-decoration: underline; }
.site-footer__links { display: flex; gap: 18px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .listen__grid { grid-template-columns: 1fr; gap: 26px; }
  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player__embed, .player__embed iframe { min-height: 560px; height: 560px; }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .about__media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__text { order: -1; }
}

@media (max-width: 680px) {
  .hero { padding: 52px var(--gutter) 46px; }
  .hero__logo img { width: 112px; height: 112px; }
  .listen { padding: 44px 0 50px; }
  .listen__title { margin-top: 42px; }
  .videos { grid-template-columns: 1fr; }
  .player__embed, .player__embed iframe { min-height: 480px; height: 480px; }
  .platforms { gap: 10px; }
  .pill { min-width: 0; flex: 1 1 152px; padding: 13px 18px; letter-spacing: 1.8px; }
  .about { padding: 46px 0 52px; }
  .about__media { grid-template-columns: 1fr; }
  .about__text p { font-size: 16px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}


/* ==========================================================================
   Pages épisodes, liste et FAQ
   ========================================================================== */

/* --- Barre de navigation des pages intérieures ---------------------------- */
.topbar { background: var(--anthracite); color: #fff; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 66px; flex-wrap: wrap;
}
.topbar__brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
  font-family: var(--display); font-size: 1.24rem; font-weight: 600;
}
.topbar__brand img { border-radius: 5px; }
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-family: var(--ui); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2.2px; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { color: #fff; border-bottom-color: var(--bordeaux); }

/* --- Fil d'Ariane --------------------------------------------------------- */
.breadcrumb { padding: 22px 0 6px; }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0;
  font-size: 12.5px; color: #6d7175;
}
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: #b9bdc0; }
.breadcrumb a { color: #6d7175; text-decoration: none; }
.breadcrumb a:hover { color: var(--bordeaux); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* --- Cartes d'épisode ----------------------------------------------------- */
.ep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px; margin: 0 0 46px;
}
.ep-grid--home { margin: 30px 0 0; }

.ep-card { height: 100%; }
.ep-card__link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e8e6e3; border-radius: 10px; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ep-card__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .13);
  border-color: #d8d3ce;
}
.ep-card__media { aspect-ratio: 1 / 1; background: #f1eeeb; overflow: hidden; }
.ep-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ep-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ep-card__meta {
  margin: 0 0 8px; font-family: var(--ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--bordeaux);
}
.ep-card__title {
  font-family: var(--display); font-size: 1.42rem; line-height: 1.24;
  font-weight: 600; color: var(--ink); margin: 0 0 8px;
}
.ep-card__excerpt { margin: 0 0 14px; font-size: 13.6px; line-height: 1.6; color: #5d6266; }
.ep-card__cta {
  margin-top: auto; font-family: var(--ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--bordeaux);
}
.ep-card__link:hover .ep-card__cta { text-decoration: underline; text-underline-offset: 4px; }

.listen__more { margin: 30px 0 0; text-align: center; }

/* --- Page liste ----------------------------------------------------------- */
.listing { padding: 0 0 60px; }
.listing__head { max-width: 720px; margin: 12px 0 40px; }
.listing__head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); color: var(--ink); margin-bottom: 14px;
}
.listing__intro { margin: 0; font-size: 16px; line-height: 1.75; color: #4f5458; text-wrap: pretty; }

.ep-year__title {
  font-size: 1.9rem; color: var(--ink);
  margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid #e8e6e3;
}
.ep-year__title span { font-family: var(--body); font-size: 13px; color: #8a8f93; }

/* --- Page épisode --------------------------------------------------------- */
.ep-page { padding: 0 0 64px; }

.ep-hero {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: 38px; align-items: start; margin: 18px 0 46px;
}
.ep-hero__img { width: 100%; border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.ep-hero__meta {
  margin: 0 0 12px; font-family: var(--ui); font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--bordeaux);
}
.ep-hero__head h1 {
  font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.45rem);
  line-height: 1.16;
  color: var(--ink); margin: 0 0 26px; text-wrap: balance;
}

.ep-player {
  background: #faf8f6; border: 1px solid #e8e6e3; border-radius: 12px; padding: 16px 20px 18px;
}
.ep-player__label {
  margin: 0 0 12px; font-family: var(--ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #6d7175;
}
.ep-player audio { width: 100%; height: 40px; display: block; }
.ep-player.is-custom audio { display: none; }   /* le script a pris la main */

.ep-audio { display: flex; align-items: center; gap: 18px; }

.ep-audio__play {
  flex: none; width: 50px; height: 50px; padding: 0;
  border: 0; border-radius: 50%; background: var(--bordeaux); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(127, 13, 13, .28);
  transition: background-color .2s ease, transform .18s ease, box-shadow .2s ease;
}
.ep-audio__play:hover { background: var(--bordeaux-dark); transform: scale(1.06); }
.ep-audio__play:active { transform: scale(.97); }
.ep-audio__play svg { width: 22px; height: 22px; fill: currentColor; }
.ep-audio__bars { display: none; }
.is-playing .ep-audio__tri { display: none; }
.is-playing .ep-audio__bars { display: block; }

.ep-audio__bar { flex: 1; min-width: 0; }

.ep-audio__track {
  height: 6px; border-radius: 99px; background: #e4e0dc; cursor: pointer;
  overflow: hidden; position: relative;
}
.ep-audio__track:hover { background: #d9d4cf; }
.ep-audio__fill {
  height: 100%; width: 0; border-radius: 99px;
  background: var(--bordeaux); transition: width .15s linear;
}
.ep-audio__times {
  display: flex; justify-content: space-between; margin: 9px 0 0;
  font-family: var(--ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.6px; color: #8a8f93;
}

.ep-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 46px; align-items: start; }
.ep-body__text p {
  margin: 0 0 20px; font-size: 16.2px; line-height: 1.8; color: #33383c;
  max-width: 66ch; text-wrap: pretty;
}
.ep-body__text p:last-child { margin-bottom: 0; }

.ep-aside {
  background: #faf8f6;
  border: 1px solid #e8e6e3;
  border-radius: 14px;
  padding: 26px 24px 24px;
  position: sticky; top: 22px;
}

.ep-aside__title {
  font-size: 1.12rem; line-height: 1.35; color: #6d7175;
  margin: 0 0 10px; font-weight: 400;
}
.ep-aside__title span { display: block; font-size: 1.46rem; color: var(--ink); font-weight: 600; }

.ep-aside__intro {
  margin: 0 0 18px; font-size: 13.4px; line-height: 1.62; color: #6d7175;
  padding-bottom: 18px; border-bottom: 1px solid #ece8e4;
}

/* Lien d'abonnement : discret, souligné seulement au survol */
.ep-aside__rss { margin: 18px 0 0; font-size: 13px; }
.ep-aside__rss a {
  display: inline-flex; align-items: center; gap: 9px;
  color: #6d7175; text-decoration: none;
  transition: color .2s ease;
}
.ep-aside__rss svg { width: 13px; height: 13px; fill: var(--bordeaux); flex: none; }
.ep-aside__rss a:hover { color: var(--bordeaux); }
.ep-aside__rss a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.platforms--stack {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px; margin: 0;
}
.platforms--stack .pill {
  min-width: 0; width: 100%; padding: 13px 10px;
  font-size: 10.5px; letter-spacing: 1.6px;
  box-shadow: none;
}
.platforms--stack .pill:hover { box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }

/* --- Navigation entre épisodes -------------------------------------------- */
.ep-nav {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 52px 0 0; padding-top: 30px; border-top: 1px solid #e8e6e3;
}
.ep-nav a {
  display: block; padding: 16px 20px; text-decoration: none;
  border: 1px solid #e8e6e3; border-radius: 10px; color: var(--ink);
  font-family: var(--display); font-size: 1.22rem; line-height: 1.3; font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease;
}
.ep-nav a:hover { border-color: var(--bordeaux); background: #fdf7f7; }
.ep-nav span {
  display: block; margin-bottom: 6px;
  font-family: var(--ui); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--bordeaux);
}
.ep-nav__next { text-align: right; }
.ep-all { margin: 34px 0 0; text-align: center; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { background: #faf8f6; padding: 60px 0 66px; border-top: 1px solid #eee9e4; }
.faq__title {
  font-size: clamp(1.72rem, 1.3rem + 1.6vw, 2.19rem); color: var(--ink);
  text-align: center; margin-bottom: 8px;
}
.faq__title::after {
  content: ''; display: block; width: 54px; height: 2px;
  margin: 16px auto 34px; background: var(--bordeaux); opacity: .55;
}
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px 26px;
  align-items: start;          /* sinon une carte fermée s'étire sur sa voisine ouverte */
}
.faq__item {
  background: #fff; border: 1px solid #e8e6e3; border-radius: 10px; padding: 4px 20px;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 {
  font-family: var(--display); font-size: 1.34rem; font-weight: 600;
  color: var(--ink); margin: 0;
}
.faq__chevron {
  flex: none; width: 14px; height: 9px; color: var(--bordeaux);
  transition: transform .3s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item summary:hover .faq__chevron { color: var(--bordeaux-dark); }
/* Le pliage lui-même est celui du navigateur (fiable, et actif sans JavaScript).
   On habille l'ouverture d'un fondu : aucune mesure de hauteur, donc rien à casser. */
.faq__answer { overflow: hidden; }
.faq__answer-in { padding-top: 2px; }
.faq__item[open] .faq__answer { animation: faq-ouvre .3s cubic-bezier(.4, 0, .2, 1); }
@keyframes faq-ouvre {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.faq__item summary { border-radius: 10px; }
.faq__item[open] summary h3 { color: var(--bordeaux); }
.faq__item p {
  margin: 0 0 16px; font-size: 15px; line-height: 1.72; color: #4f5458; text-wrap: pretty;
}
.faq__item a { color: var(--bordeaux); text-underline-offset: 3px; }

/* --- Responsive des nouveaux blocs ---------------------------------------- */
@media (max-width: 860px) {
  .ep-body { grid-template-columns: 1fr; gap: 34px; }
  .ep-aside { position: static; }
  .platforms--stack { flex-direction: row; flex-wrap: wrap; }
  .platforms--stack .pill { width: auto; flex: 1 1 140px; }
}

@media (max-width: 680px) {
  .topbar__inner { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .topbar__brand { font-size: 1.1rem; }
  .topbar__nav { gap: 16px; }
  .ep-hero { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .ep-hero__media { max-width: 190px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .ep-body__text p { font-size: 16px; }
  .ep-nav__next { text-align: left; }
  .faq { padding: 46px 0 50px; }
  .faq__grid { grid-template-columns: 1fr; }
}

/* --- Confort de lecture / préférences système ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero__video { display: none; }
}

@media print {
  .hero__bg, .about__bg, .video, .player { display: none; }
  body { color: #000; background: #fff; }
}

.ep-aside__author {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #ece8e4;
  font-size: 12.4px; line-height: 1.6; color: #8a8f93;
}
.ep-aside__author a { color: #6d7175; text-decoration: none; border-bottom: 1px solid #d9d4cf; }
.ep-aside__author a:hover { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

/* --- Épisodes de la même période ------------------------------------------ */
.ep-related { margin: 56px 0 0; padding-top: 34px; border-top: 1px solid #e8e6e3; }
.ep-related h2 { font-size: 1.72rem; color: var(--ink); margin-bottom: 22px; }
.ep-related .ep-grid { margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Une grille CSS ignore l'attribut hidden sans cette règle. */
[hidden] { display: none !important; }

/* --- Sources et mention d'illustration ------------------------------------ */
.ep-sources {
  margin-top: 26px !important;
  padding: 14px 18px;
  background: #faf8f6;
  border-left: 3px solid var(--bordeaux);
  border-radius: 0 8px 8px 0;
  font-size: 14.6px !important;
}
.ep-sources a { color: var(--bordeaux); text-underline-offset: 3px; }
.ep-note {
  margin-top: 18px !important;
  font-size: 12.8px !important;
  line-height: 1.6 !important;
  color: #8a8f93 !important;
  font-style: italic;
}
