/*
Theme Name: 1mnhistoire
Description: Thème enfant Astra développé pour le site 1mnhistoire.
Author: 1mnhistoire
Template: astra
Version: 1.1.7
Text Domain: 1mnhistoire
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2') format('woff2');
}

/* =========================================================
   1MH — CSS propre complet
   Header Netflix + layout 1/3 filtres / 2/3 épisodes
========================================================= */

:root {
  --mh-dark: #16243a;
  --mh-card: #132237;
  --mh-gold: #FEC021;
  --mh-purple: #8049e6;
  --mh-beige: #F2D098;
  --mh-pink: #df4e96;
  --mh-bg: #f6f8fc;
  --mh-text: #142238;
  --mh-muted: #d9e1ee;
  --mh-shadow: 0 18px 45px rgba(22,36,58,.16);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at top left, rgba(246,165,45,.13), transparent 28%),
    radial-gradient(circle at top right, rgba(128,73,230,.15), transparent 30%),
    var(--mh-bg);
  color: var(--mh-text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
}

/* HEADER */
.mh-site-header {
  background: var(--mh-dark);
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  position: sticky;
  top: 0;
  z-index: 50;
}

.mh-header-inner {
  width: 100%;
  max-width: 1680px;
  min-height: 82px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.mh-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  line-height: 1.1;
}

.mh-logo:hover,
.mh-logo:focus,
.mh-logo:focus-visible,
.mh-logo:active,
.mh-logo:visited {
  color: #fff;
}

.mh-logo-copy {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.mh-logo-copy strong {
  color: inherit;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.mh-logo-copy small {
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .015em;
}

.mh-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mh-gold), var(--mh-purple));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.mh-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.mh-main-menu {
  display: block;
}

.mh-main-menu-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-main-menu-list a {
  color: rgba(255,255,255,.82);
  font-weight: 600;
  font-size: 15px;
}

.mh-main-menu-list a:hover,
.mh-main-menu-list .current-menu-item > a,
.mh-main-menu-list .current_page_item > a {
  color: #fff;
}

.mh-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mh-episode-count {
  color: #fff;
  font-weight: 500;
  padding: 0px;
  font-size: 14px;
  border-radius: 10px;
  /*background: rgba(255,255,255,.10);*/
}

.mh-season-button {
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mh-gold), var(--mh-purple));
  box-shadow: 0 10px 25px rgba(128,73,230,.30);
}

/* CONTENU */
.mh-site-main {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 70px 24px;
}

/* PAGES ÉDITORIALES */
.mh-static-page {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
}

.mh-static-article {
  width: 100%;
}

.mh-static-header {
  width: 100%;
  margin: 0 auto 28px;
}

.mh-static-kicker {
  margin: 0 0 10px;
  color: var(--mh-purple);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mh-static-header h1 {
  margin: 0;
  color: var(--mh-text);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mh-static-content {
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(22,36,58,.09);
  border-radius: 28px;
  box-shadow: var(--mh-shadow);
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.75;
}

.mh-static-content > :first-child {
  margin-top: 0;
}

.mh-static-content > :last-child {
  margin-bottom: 0;
}

.mh-static-content p {
  margin: 0 0 1.35em;
}

.mh-static-content h2 {
  clear: both;
  margin: 1.8em 0 .7em;
  color: var(--mh-text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.mh-static-content .alignright {
  float: right;
  max-width: min(36%, 350px);
  margin: 0 0 34px 54px;
}

.mh-static-content .alignright img,
.mh-static-content .alignleft img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 18px 25px rgba(22,36,58,.15));
}

.mh-static-content ul {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
}

.mh-static-content li {
  margin: .55em 0;
}

.mh-privacy-intro {
  margin: 0 0 34px;
  padding: 22px 24px;
  border-left: 5px solid var(--mh-purple);
  border-radius: 0 16px 16px 0;
  background: rgba(128,73,230,.07);
}

.mh-privacy-intro p:last-child {
  margin-bottom: 0;
  color: #647187;
}

.mh-privacy-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 42px;
}

.mh-privacy-service {
  padding: 24px;
  border: 1px solid rgba(22,36,58,.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22,36,58,.08);
}

.mh-privacy-service h3 {
  margin: 0 0 14px;
  color: var(--mh-text);
  font-size: 20px;
  line-height: 1.25;
}

.mh-privacy-service p {
  font-size: 15px;
  line-height: 1.65;
}

.mh-privacy-service p:last-child {
  margin-bottom: 0;
}

.mh-static-politique-de-confidentialite code {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(22,36,58,.08);
  color: var(--mh-text);
}

@media (max-width: 1100px) {
  .mh-privacy-services {
    grid-template-columns: 1fr;
  }
}

.mh-project-socials {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.mh-project-social {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(22,36,58,.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22,36,58,.09);
  color: var(--mh-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mh-project-social:hover,
.mh-project-social:focus-visible {
  border-color: var(--mh-network);
  box-shadow: 0 14px 34px rgba(22,36,58,.15);
  color: var(--mh-text);
  transform: translateY(-3px);
}

.mh-project-social-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--mh-network-background, var(--mh-network));
  color: #fff;
}

.mh-project-social-icon .mh-social-icon {
  width: 23px;
  height: 23px;
  background-color: currentColor;
}

.mh-project-social-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.mh-project-social-copy strong {
  font-size: 16px;
}

.mh-project-social-copy small {
  margin-top: 4px;
  color: #647187;
  font-size: 12px;
  font-weight: 500;
}

.mh-project-social-arrow {
  color: var(--mh-network);
  font-size: 20px;
  font-weight: 800;
}

.mh-project-social-youtube {
  --mh-network: #ff0000;
}

.mh-project-social-tiktok {
  --mh-network: #111;
  --mh-network-background: #111;
}

.mh-project-social-tiktok .mh-project-social-icon {
  box-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55;
}

.mh-project-social-instagram {
  --mh-network: #c13584;
  --mh-network-background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.mh-project-social-facebook {
  --mh-network: #1877f2;
}

.mh-static-contact .mh-static-content {
  width: 100%;
}

.mh-static-content .wpcf7 label {
  color: var(--mh-text);
  font-weight: 700;
}

.mh-static-content .wpcf7 input:not([type="submit"]),
.mh-static-content .wpcf7 textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 15px;
  border: 1px solid rgba(22,36,58,.18);
  border-radius: 12px;
  background: #fff;
  color: var(--mh-text);
}

.mh-static-content .wpcf7 input[type="submit"] {
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--mh-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .mh-project-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mh-static-page {
    padding: 0;
  }

  .mh-static-content {
    padding: 25px 20px;
    border-radius: 20px;
    font-size: 16px;
  }

  .mh-static-content .alignright,
  .mh-static-content .alignleft {
    float: none;
    display: block;
    max-width: 230px;
    margin: 0 auto 30px;
  }

  .mh-project-socials {
    grid-template-columns: 1fr;
  }
}

/* CONSENTEMENT COOKIES */
.mh-consent-panel[hidden] {
  display: none;
}

html.mh-consent-open {
  overflow: hidden;
}

.mh-site-footer {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--mh-dark);
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.mh-site-footer p {
  margin: 0;
}

.mh-site-footer nav {
  display: flex;
  gap: 18px;
}

.mh-site-footer a {
  color: #fff;
  text-decoration: underline;
}

.mh-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(10,20,35,.48);
  backdrop-filter: blur(5px);
}

.mh-consent-card {
  width: min(1120px, 100%);
  padding: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 30px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(22,36,58,.12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}

.mh-consent-copy h2 {
  margin: 0 0 8px;
  color: var(--mh-text);
  font-size: 25px;
}

.mh-consent-copy p {
  margin: 0 0 8px;
  color: #435066;
  line-height: 1.55;
}

.mh-consent-copy a {
  color: var(--mh-purple);
  font-weight: 700;
  text-decoration: underline;
}

.mh-consent-kicker {
  color: var(--mh-purple) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mh-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 9px;
}

.mh-consent-button,
.mh-consent-allow-media,
.mh-consent-manage {
  border: 1px solid var(--mh-dark);
  border-radius: 11px;
  padding: 11px 16px;
  background: #fff;
  color: var(--mh-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mh-consent-accept,
.mh-consent-refuse,
.mh-consent-save,
.mh-consent-allow-media {
  background: var(--mh-dark);
  color: #fff;
}

.mh-consent-accept,
.mh-consent-refuse {
  min-width: 126px;
}

.mh-consent-preferences {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid #dfe4ec;
}

.mh-consent-preferences[hidden] {
  display: none;
}

.mh-consent-preferences label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  color: var(--mh-text);
  border-bottom: 1px solid #edf0f4;
}

.mh-consent-preferences label span,
.mh-consent-preferences label small {
  display: block;
}

.mh-consent-preferences label small {
  margin-top: 3px;
  color: #69768a;
}

.mh-consent-preferences input {
  width: 22px;
  height: 22px;
}

.mh-consent-save {
  margin-top: 16px;
}

.mh-consent-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  padding: 9px 12px;
  border-color: rgba(255,255,255,.25);
  background: var(--mh-dark);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.mh-media-consent {
  width: 100%;
  min-height: 360px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #132237, #263b5d);
  color: #fff;
}

.mh-media-consent strong {
  font-size: 22px;
}

.mh-media-consent p {
  max-width: 500px;
  margin: 10px auto 18px;
  color: rgba(255,255,255,.8);
}

.mh-media-consent .mh-consent-allow-media {
  border-color: #fff;
}

@media (max-width: 820px) {
  .mh-consent-panel {
    padding: 10px;
  }

  .mh-consent-card {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mh-consent-actions {
    grid-template-columns: 1fr;
  }

  .mh-consent-button {
    width: 100%;
  }

  .mh-consent-preferences {
    grid-column: 1;
  }

  .mh-media-consent {
    min-height: 280px;
    padding: 25px 18px;
  }
}

.mh-catalogue {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* FILTRES */
.mh-filters {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  color: var(--mh-text);
  border: 1px solid rgba(22,36,58,.10);
  border-radius: 25px;
  padding: 28px;
  box-shadow: var(--mh-shadow);
  position: sticky;
  top: 112px;
}

.mh-filters h2 {
  color: var(--mh-text);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 800;
}

.mh-filter-toggle {
  display: none;
}

.mh-filter-link,
.mh-filter-title {
  color: var(--mh-text);
  display: block;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-top: 8px;
  background: var(--mh-dark);
  color: #ffffff;
}

.mh-filter-link,
.mh-filters li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-filter-count {
  flex: 0 0 auto;
  min-width: 26px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* Réserve la colonne +/- sur les liens non dépliables pour aligner les badges. */
.mh-filter-link::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  margin-left: 8px;
}

.mh-filters li a:not(.active) .mh-filter-count {
  background: rgba(22,36,58,.08);
}

.mh-filters li a {
  color: var(--mh-text);
  display: block;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-top: 8px;
}

.mh-filters ul {
  list-style: none;
  padding-left: 12px;
  margin: 6px 0 14px;
}

.mh-filter-link:hover,
.mh-filter-title:hover,
.mh-filters li a:hover {
  background: var(--mh-beige);
  color: var(--mh-dark);
}

.mh-filters .active {
  background: var(--mh-gold);
  color: #ffffff;
}

/* COLONNE EPISODES */
.mh-episodes {
  min-width: 0;
}

.mh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

/* Titre */
.mh-page-title {
  display: flex;
  align-items: center;
  min-height: 47px;
}

.mh-page-title h1 {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Boutons vue */
.mh-view-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
}

.mh-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  min-width: 110px;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--mh-dark);
  border-color: var(--mh-dark);
}

.mh-view-btn:hover {
  background-color: var(--mh-beige);
  border-color: var(--mh-beige);
}

/* Responsive */
@media (max-width: 768px) {
  .mh-site-header {
    position: relative;
  }

  .mh-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mh-view-switcher {
    width: 100%;
  }

  .mh-view-btn {
    flex: 1;
  }
}

/* GRILLE */
.mh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.mh-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(22,36,58,.08);
  overflow: hidden;
  box-shadow: var(--mh-shadow);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mh-card:hover {
  /*transform: translateY(-5px);*/
  box-shadow: 0 24px 55px rgba(22,36,58,.26);
}

.mh-card a {
  color: var(--mh-text);
  display: block;
}

.mh-thumb img,
.mh-thumb-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.mh-thumb-placeholder {
  background: var(--mh-dark);
  color: #fff;
  font-size: 42px;
  font-weight: 950;
}

.mh-card-content {
  padding: 22px;
}

.mh-meta,
.mh-meta a {
  color: var(--mh-gold);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.mh-card h2 {
  color: var(--mh-text);
  font-size: 24px;
  line-height: 1.08;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mh-card p {
  color: #5f6b7a;
  font-size: 16px;
  line-height: 1.6;
}

.mh-load-more-wrap {
  text-align: center;
  margin-top: 42px;
}

/* FOOTER */
.site-footer,
footer {
  background: var(--mh-dark);
  color: #fff;
  text-align: center;
  padding: 28px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .mh-catalogue {
    grid-template-columns: 1fr;
  }

  .mh-filters {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .mh-header-inner {
    flex-direction: column;
    padding: 18px;
    gap: 16px;
  }

  .mh-main-menu,
  .mh-main-menu-list,
  .mh-header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mh-site-main {
    padding: 38px 18px;
  }

  .mh-search {
    flex-direction: column;
    width: 100%;
  }

  .mh-search button,
  .mh-view-btn {
    width: 100%;
  }

  .mh-view-switcher {
    width: 100%;
  }

  .mh-view-switcher button {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .mh-page-title h1 {
    display: block;
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .mh-grid {
    grid-template-columns: 1fr;
  }

  .mh-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    border-radius: 12px;
    background: var(--mh-dark);
    color: #fff;
    font-weight: 700;
  }

  .mh-filters.is-collapsible:not(.is-open) {
    padding-bottom: 22px;
  }

  .mh-filters.is-collapsible:not(.is-open) > :not(h2):not(.mh-filter-toggle) {
    display: none !important;
  }

  .mh-filters.is-collapsible:not(.is-open) h2 {
    margin-bottom: 14px;
  }
}

@media (max-width: 544px) {
  .mh-header-inner {
    width: 100%;
    min-height: 0;
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .mh-logo {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.2;
  }

  .mh-logo img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .mh-logo-copy {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mh-logo-copy strong {
    font-size: 18px;
  }

  .mh-logo-copy small {
    font-size: 10px;
  }

  .mh-main-menu {
    width: 100%;
  }

  .mh-main-menu-list {
    justify-content: center;
    gap: 22px;
  }

  .mh-main-menu-list a {
    font-size: 14px;
  }

  .mh-header-right {
    align-items: center;
    gap: 8px;
  }

  .mh-socials {
    gap: 10px;
  }

  .mh-socials a {
    width: 44px;
    height: 44px;
  }

  .mh-site-main {
    padding: 28px 14px;
  }

  .mh-filters {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .mh-filters h2 {
    font-size: 26px;
  }

  .mh-page-title h1 {
    font-size: 28px;
    line-height: 1.08;
  }
}

/* Mode grille */
.mh-grid.mh-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

/* =========================
   MODE LISTE — CORRECTION
========================= */

#mh-episodes-list.mh-view-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

#mh-episodes-list.mh-view-list .mh-card {
  width: 100% !important;
}

#mh-episodes-list.mh-view-list .mh-card > a {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  min-height: 100px !important;
  align-items: stretch !important;
}

#mh-episodes-list.mh-view-list .mh-thumb {
  width: 100px !important;
  height: 100px !important;
}

#mh-episodes-list.mh-view-list .mh-thumb img,
#mh-episodes-list.mh-view-list .mh-thumb-placeholder {
  width: 100px !important;
  height: 100px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

#mh-episodes-list.mh-view-list .mh-card-content {
  padding: 28px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#mh-episodes-list.mh-view-list .mh-card h2 {
  font-size: 26px !important;
  margin-bottom: 12px !important;
}

#mh-episodes-list.mh-view-list .mh-card p {
  max-width: 70ch;
}

/* Mobile */
@media (max-width: 768px) {
  #mh-episodes-list.mh-view-list .mh-card > a {
    grid-template-columns: 1fr !important;
  }

  #mh-episodes-list.mh-view-list .mh-thumb,
  #mh-episodes-list.mh-view-list .mh-thumb img,
  #mh-episodes-list.mh-view-list .mh-thumb-placeholder {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
  }
}

/* Bouton actif */
.mh-view-btn.active {
  background: var(--mh-gold) !important;
  border-color: var(--mh-gold);
}


/* Recherche sidebar */
.mh-sidebar-search {
  margin-bottom: 34px;
}

.mh-sidebar-search h3,
.mh-sidebar-search label {
  display: block;
  color: var(--mh-text);
  font-size: 18px;
  margin: 0 0 14px;
  font-weight: 900;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--mh-purple);
  outline-offset: 3px;
}

.mh-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mh-search input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(22,36,58,.10);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(20,34,56,.06);
}

.mh-search button {
  width: 100%;
}

/* ACCORDEON Catégories */
/* ACCORDEON Catégories natif */
.mh-filter-group {
  margin-top: 8px;
}

.mh-filter-group summary {
  list-style: none;
  cursor: pointer;
}

.mh-filter-group summary::-webkit-details-marker {
  display: none;
}

.mh-filter-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mh-filter-title::after {
  content: "+";
  flex: 0 0 12px;
  width: 12px;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.mh-filter-group[open] .mh-filter-title::after {
  content: "−";
}

.mh-filter-group[open] .mh-filter-title {
  background: var(--mh-dark);
  color: #ffffff;
}

.mh-filter-title:hover {
  background: var(--mh-beige);
  color: var(--mh-dark);
}

.mh-subfilters {
  display: block !important;
  list-style: none;
  padding-left: 12px;
  margin: 8px 0 18px;
}
/* =========================
   FIX FINAL MODE LISTE
========================= */

#mh-episodes-list.mh-view-list {
  display: flex !important;
  flex-direction: column !important;
}

#mh-episodes-list.mh-view-list article.mh-card a {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 100px;
}

#mh-episodes-list.mh-view-list article.mh-card .mh-thumb {
  flex: 0 0 100px !important;
  width: 100px !important;
  min-width: 100px !important;
  height: 100px !important;
  overflow: hidden;
}

#mh-episodes-list.mh-view-list article.mh-card .mh-thumb img,
#mh-episodes-list.mh-view-list article.mh-card .mh-thumb-placeholder {
  width: 100% !important;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

#mh-episodes-list.mh-view-list article.mh-card .mh-card-content {
  flex: 1 !important;
  padding: 10px 20px !important;
  display: grid !important;
  grid-template-columns: max-content max-content;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center !important;
  justify-content: start !important;
}

#mh-episodes-list.mh-view-list article.mh-card .mh-meta {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  align-self: center;
}

#mh-episodes-list.mh-view-list article.mh-card .mh-episode-badge {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  align-self: center;
}

#mh-episodes-list.mh-view-list article.mh-card h2 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 8px 0 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  #mh-episodes-list.mh-view-list article.mh-card a {
    flex-direction: row !important;
    min-height: 150px;
  }

  #mh-episodes-list.mh-view-list article.mh-card .mh-thumb {
    width: 110px !important;
    min-width: 110px !important;
    flex: 0 0 110px !important;
    height: 150px !important;
  }

  #mh-episodes-list.mh-view-list article.mh-card .mh-thumb img,
  #mh-episodes-list.mh-view-list article.mh-card .mh-thumb-placeholder {
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  #mh-episodes-list.mh-view-list article.mh-card .mh-card-content {
    min-width: 0;
    padding: 16px !important;
  }

  #mh-episodes-list.mh-view-list article.mh-card h2 {
    font-size: 19px;
  }
}



.mh-thumb iframe,
.mh-thumb video {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  display: block;
  border: 0;
}

/* Réseaux sociaux header */
.mh-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Réseaux */
.mh-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mh-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: 15px;
  transition: all .2s ease;
}

.mh-social-icon {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--mh-social-icon) center / contain no-repeat;
  mask: var(--mh-social-icon) center / contain no-repeat;
}

.mh-social-icon-youtube {
  --mh-social-icon: url("assets/icons/youtube.svg");
}

.mh-social-icon-facebook {
  --mh-social-icon: url("assets/icons/facebook.svg");
}

.mh-social-icon-tiktok {
  --mh-social-icon: url("assets/icons/tiktok.svg");
}

.mh-social-icon-instagram {
  --mh-social-icon: url("assets/icons/instagram.svg");
}

.mh-social-icon-x {
  --mh-social-icon: url("assets/icons/x.svg");
}

.mh-socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.mh-socials .mh-social-link-youtube:hover {
  background: #ff0000;
}

.mh-socials .mh-social-link-facebook:hover {
  background: #1877f2;
}

.mh-socials .mh-social-link-tiktok:hover {
  background: #010101;
  box-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55;
}

.mh-socials .mh-social-link-instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

/* PAGE LIEN EN BIO */
.mh-discover-view .mh-site-header,
.mh-discover-view .mh-site-footer {
  display: none;
}

.mh-discover-view .mh-site-main {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.mh-discover {
  width: 100%;
  min-height: 100vh;
  padding: 38px 18px 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(254,192,33,.2), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(128,73,230,.34), transparent 32%),
    linear-gradient(160deg, #101c30 0%, #16243a 55%, #111d30 100%);
  color: #fff;
}

.mh-discover,
.mh-discover * {
  box-sizing: border-box;
}

.mh-discover-shell {
  width: min(100%, 700px);
  max-width: 100%;
  margin: 0 auto;
}

.mh-discover-hero {
  text-align: center;
}

.mh-discover-logo {
  display: inline-flex;
  width: 112px;
  height: 112px;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(0,0,0,.34);
}

.mh-discover-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.mh-discover-brand {
  margin: 20px 0 5px;
  color: var(--mh-gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
}

.mh-discover-hero h1 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 5vw, 40px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.mh-discover-signature {
  margin: 13px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mh-discover-signature span {
  padding: 0 5px;
  color: var(--mh-gold);
}

.mh-discover-intro {
  width: 100%;
  max-width: 570px;
  margin: 18px auto 30px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mh-discover-primary {
  display: grid;
  gap: 13px;
}

.mh-discover-button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 88px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 34px rgba(0,0,0,.2);
  color: var(--mh-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mh-discover-button:hover,
.mh-discover-button:focus-visible {
  border-color: var(--mh-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,.28);
  color: var(--mh-text);
  transform: translateY(-3px);
}

.mh-discover-button-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--mh-gold), #e59e00);
}

.mh-discover-button-icon::before {
  width: 25px;
  height: 25px;
  background: var(--mh-dark);
  content: "";
  -webkit-mask: var(--mh-discover-icon) center / contain no-repeat;
  mask: var(--mh-discover-icon) center / contain no-repeat;
}

.mh-discover-button-icon-play {
  --mh-discover-icon: url("assets/icons/discover-play.svg");
}

.mh-discover-button-icon-books {
  --mh-discover-icon: url("assets/icons/discover-books.svg");
}

.mh-discover-button-icon-monument {
  --mh-discover-icon: url("assets/icons/discover-monument.svg");
}

.mh-discover-button-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mh-discover-button-copy small {
  margin-bottom: 2px;
  color: #7b8799;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mh-discover-button-copy strong {
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.2;
}

.mh-discover-button-copy > span {
  margin-top: 5px;
  color: #627087;
  font-size: 12px;
  line-height: 1.35;
}

.mh-discover-arrow {
  color: var(--mh-purple);
  font-size: 24px;
  font-weight: 800;
}

.mh-discover-social-section {
  margin-top: 34px;
  text-align: center;
}

.mh-discover-social-section h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.mh-discover-social-section > p {
  margin: 6px 0 18px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}

.mh-discover-socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.mh-discover-social {
  display: flex;
  min-width: 0;
  min-height: 72px;
  padding: 11px 7px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.mh-discover-social:hover,
.mh-discover-social:focus-visible {
  background: var(--mh-network-background, var(--mh-network));
  color: #fff;
  transform: translateY(-3px);
}

.mh-discover-social .mh-social-icon {
  width: 23px;
  height: 23px;
  background-color: currentColor;
}

.mh-discover-social-youtube {
  --mh-network: #ff0000;
}

.mh-discover-social-tiktok,
.mh-discover-social-x {
  --mh-network: #000;
}

.mh-discover-social-instagram {
  --mh-network: #c13584;
  --mh-network-background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.mh-discover-social-facebook {
  --mh-network: #1877f2;
}

.mh-discover-closing {
  display: flex;
  margin-top: 34px;
  align-items: center;
  flex-direction: column;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  text-align: center;
}

.mh-discover-closing strong {
  color: #fff;
  font-size: 15px;
}

.mh-discover-closing span {
  margin-top: 5px;
}

@media (max-width: 540px) {
  .mh-discover {
    padding: 26px 14px 42px;
  }

  .mh-discover-logo {
    width: 94px;
    height: 94px;
  }

  .mh-discover-intro {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .mh-discover-button {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 80px;
    padding: 13px 14px;
  }

  .mh-discover-button-icon {
    width: 46px;
    height: 46px;
  }

  .mh-discover-button-copy strong {
    font-size: 16px;
  }

  .mh-discover-button-copy > span {
    display: none;
  }

  .mh-discover-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mh-discover-social {
    min-height: 56px;
    padding: 9px 10px;
    flex-direction: row;
    border-radius: 13px;
    font-size: 11px;
  }

  .mh-discover-social-x {
    grid-column: 1 / -1;
  }

  .mh-discover-social .mh-social-icon {
    width: 20px;
    height: 20px;
  }
}

/* PAGE ÉPISODE */
.mh-single {
  width: 100%;
  max-width: none;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.mh-single-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.mh-single-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0;
  color: var(--mh-text);
  font-weight: 700;
}

.mh-single-back:hover {
  color: var(--mh-purple);
}

.mh-single-header {
  margin-bottom: 30px;
}

.mh-single-header h1 {
  max-width: 1400px;
  margin: 0;
  color: var(--mh-text);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.mh-single-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mh-single-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mh-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mh-single-categories a:hover {
  background: var(--mh-gold);
}

.mh-single-content {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(22,36,58,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--mh-shadow);
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.8;
}

.mh-single-content::after {
  display: table;
  clear: both;
  content: "";
}

.mh-single-content > :first-child {
  margin-top: 0;
}

.mh-single-content p {
  margin: 0 0 1.5em;
}

.mh-single-content h2,
.mh-single-content h3 {
  color: var(--mh-text);
  font-weight: 800;
  line-height: 1.2;
}

.mh-single-content .wp-block-embed-youtube:first-child {
  float: left;
  width: min(420px, 44%);
  margin: 0 40px 24px 0;
}

.mh-single-content .wp-block-embed-youtube:first-child .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  background: var(--mh-dark);
  box-shadow: 0 18px 40px rgba(22,36,58,.2);
}

.mh-single-content .wp-block-embed-youtube:first-child iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mh-single-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.mh-single-navigation > div {
  min-width: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--mh-dark);
  color: #fff;
}

.mh-single-navigation span {
  display: block;
  margin-bottom: 6px;
  color: var(--mh-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mh-single-navigation a {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.mh-single-navigation-next {
  text-align: right;
}

.mh-related {
  margin-top: 42px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--mh-shadow);
}

.mh-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.mh-related-heading h2 {
  margin: 0;
  color: var(--mh-text);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.mh-related-heading > a {
  flex: 0 0 auto;
  color: var(--mh-purple);
  font-weight: 700;
}

.mh-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.mh-related-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(22,36,58,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mh-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(22,36,58,.2);
}

.mh-related-card a {
  display: block;
  height: 100%;
  color: var(--mh-text);
}

.mh-related-thumb {
  overflow: hidden;
  background: var(--mh-dark);
}

.mh-related-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.mh-related-card h3 {
  margin: 0;
  padding: 14px;
  color: var(--mh-text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .mh-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mh-single-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mh-single-categories {
    justify-content: flex-start;
  }

  .mh-single-header h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .mh-single-content {
    font-size: 17px;
  }

  .mh-single-content .wp-block-embed-youtube:first-child {
    float: none;
    width: min(100%, 420px);
    margin: 0 auto 30px;
  }

  .mh-single-navigation {
    grid-template-columns: 1fr;
  }

  .mh-single-navigation-next {
    text-align: left;
  }

  .mh-related-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mh-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mh-related-card h3 {
    padding: 12px;
    font-size: 15px;
  }
}


/* Numérotation d'épisode indépendante du titre SEO */
.mh-episode-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 8px;
  padding: 4px 9px 4px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--mh-gold, #f2c14e);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mh-single-header .mh-episode-badge { margin-bottom: 12px; }
.mh-related-card .mh-episode-badge { margin: 10px 12px 0; }


/* Badge épisode jaune placé avec les catégories dans l’en-tête de l’article */
.mh-single-categories .mh-episode-badge--header {
  min-height: 34px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  background: var(--mh-gold, #f2c14e);
  color: var(--mh-dark, #16243a);
  font-size: 13px;
  letter-spacing: .03em;
}


/* Recherche étendue — état sans résultat */
.mh-search-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.mh-search-empty p { margin: 0 0 8px; }
.mh-search-empty p:last-child { margin-bottom: 0; }
