/**
 * OrthoDiet Radio — Design Studio Éditorial, Vivant, Centré & Aéré
 * Alignement strict sur la grille centrée des articles OrthoDiet (680px sur desktop)
 * Aération maximale sur mobile (suppression des doubles paddings JNews/Bootstrap)
 */

/* ==========================================================================
   1. Centrage absolu identique aux articles OrthoDiet (Desktop)
   ========================================================================== */

body.page-id-26672 .jeg_main_content,
body.page-slug-radio .jeg_main_content,
body.orthodiet .jeg_content:has(.od-radio-page) .jeg_main_content {
  width: 100% !important;
  max-width: var(--od-content, 680px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

body.page-id-26672 .jeg_main_content > .entry-header,
body.page-slug-radio .jeg_main_content > .entry-header,
body.orthodiet .jeg_main_content:has(.od-radio-page) > .entry-header {
  display: none !important;
}

body.page-id-26672 .entry-content,
body.page-slug-radio .entry-content,
body.orthodiet .entry-content:has(.od-radio-page) {
  max-width: var(--od-content, 680px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.od-radio-page {
  width: 100%;
  max-width: var(--od-content, 680px);
  margin: 0 auto;
  padding: 10px 0 80px;
  color: var(--od-text, #242424);
  font-family: var(--od-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  box-sizing: border-box;
}

/* ==========================================================================
   2. En-tête de l'émission & Jaquette
   ========================================================================== */

.od-radio-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--od-border, #e6e6e6);
  padding-bottom: 24px;
}

.od-radio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--od-muted, #757575);
  margin-bottom: 16px;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ebebeb;
}

.od-radio-eyebrow .od-radio-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: odRadioPulse 2s infinite;
}

@keyframes odRadioPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.od-radio-hero-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.od-radio-cover-showcase {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  background: #000000;
  position: relative;
  flex-shrink: 0;
}

.od-radio-cover-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.od-radio-cover-showcase:hover img {
  transform: scale(1.03);
}

.od-radio-hero-text {
  flex: 1;
  min-width: 0;
}

.od-radio-h1 {
  font-family: var(--od-sans, sans-serif);
  font-size: clamp(1.75rem, 3.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--od-text-strong, #191919);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.od-radio-lede {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--od-muted-soft, #555555);
  margin: 0;
}

.od-radio-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--od-muted, #757575);
  margin-top: 14px;
}

.od-radio-byline strong {
  color: var(--od-text-strong, #191919);
}

/* ==========================================================================
   3. Studio Player — Vivant, Dynamique, Pas Figé !
   ========================================================================== */

.od-radio-player-box {
  background: #fbfbfb;
  border: 1px solid var(--od-border, #e6e6e6);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.od-radio-player-box:hover,
.od-radio-player-box.is-playing {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.od-radio-player-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.od-radio-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  border: none;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.od-radio-play-btn:hover {
  background: #242424;
  transform: scale(1.06);
}

.od-radio-play-btn:active {
  transform: scale(0.96);
}

.od-radio-play-btn svg {
  width: 22px;
  height: 22px;
}

.od-radio-player-info {
  flex: 1;
  min-width: 0;
}

.od-radio-player-info-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--od-text-strong, #191919);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-radio-player-info-meta {
  font-size: 0.8125rem;
  color: var(--od-muted, #757575);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Onde audio animée vivante */
.od-radio-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.od-radio-wave-bars span {
  width: 2.5px;
  background: #000000;
  border-radius: 2px;
  height: 3px;
  transition: height 0.15s ease;
}

.od-radio-wave-bars.is-playing span:nth-child(1) { animation: odWave 0.7s ease-in-out infinite 0.1s; }
.od-radio-wave-bars.is-playing span:nth-child(2) { animation: odWave 0.7s ease-in-out infinite 0.3s; }
.od-radio-wave-bars.is-playing span:nth-child(3) { animation: odWave 0.7s ease-in-out infinite 0.2s; }
.od-radio-wave-bars.is-playing span:nth-child(4) { animation: odWave 0.7s ease-in-out infinite 0.4s; }
.od-radio-wave-bars.is-playing span:nth-child(5) { animation: odWave 0.7s ease-in-out infinite 0.25s; }

@keyframes odWave {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

/* Scrubber / Barre de progression */
.od-radio-scrub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.od-radio-time {
  font-size: 0.75rem;
  font-family: var(--od-mono, monospace);
  color: var(--od-muted, #757575);
  min-width: 40px;
}

.od-radio-time.current {
  text-align: right;
  color: var(--od-text-strong, #191919);
  font-weight: 600;
}

.od-radio-progress-bar {
  flex: 1;
  height: 5px;
  background: #e6e6e6;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.od-radio-progress-bar:hover {
  height: 7px;
}

.od-radio-progress-fill {
  height: 100%;
  width: 0%;
  background: #000000;
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Barre d'outils et réglages du lecteur */
.od-radio-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eeeeee;
  padding-top: 14px;
  font-size: 0.8125rem;
}

.od-radio-tools-left,
.od-radio-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.od-radio-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--od-border, #e6e6e6);
  color: var(--od-text-strong, #191919);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.od-radio-tool-btn:hover {
  background: #f5f5f5;
  border-color: #cccccc;
  color: #000000;
}

/* ==========================================================================
   4. Note clinique de synthèse (Style Cabinet Note OrthoDiet)
   ========================================================================== */

.od-radio-takeaways {
  margin: 32px 0 36px;
  padding: 20px 24px;
  background: #fafafa;
  border-left: 4px solid #000000;
  border-radius: 0 10px 10px 0;
  border-top: 1px solid var(--od-border, #e6e6e6);
  border-right: 1px solid var(--od-border, #e6e6e6);
  border-bottom: 1px solid var(--od-border, #e6e6e6);
}

.od-radio-takeaways-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--od-text-strong, #191919);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.od-radio-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.od-radio-takeaway-item {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--od-text, #242424);
}

.od-radio-takeaway-item strong {
  color: #000000;
  display: inline;
  margin-right: 4px;
}

/* ==========================================================================
   5. Transcription Interactive Vivante (Live Read-along)
   ========================================================================== */

.od-radio-transcript-section {
  margin-top: 36px;
}

.od-radio-section-heading {
  font-family: var(--od-sans, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--od-text-strong, #191919);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.od-radio-section-subhead {
  font-size: 0.8125rem;
  color: var(--od-muted, #757575);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--od-border, #e6e6e6);
}

.od-radio-transcript-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.od-radio-segment-item {
  padding: 14px 18px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background: transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.od-radio-segment-item:hover {
  background: #fbfbfb;
  border-left-color: #cccccc;
}

.od-radio-segment-item.is-active {
  background: #f7f7f7;
  border-left-color: #000000;
  border-top-color: #eeeeee;
  border-bottom-color: #eeeeee;
}

.od-radio-segment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.od-radio-segment-ts {
  font-family: var(--od-mono, monospace);
  font-weight: 700;
  color: #000000;
  background: #eeeeee;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.od-radio-segment-item.is-active .od-radio-segment-ts {
  background: #000000;
  color: #ffffff;
}

.od-radio-segment-author {
  font-weight: 700;
  color: var(--od-text-strong, #191919);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.od-radio-segment-section {
  color: var(--od-muted, #757575);
  font-style: italic;
}

.od-radio-segment-text {
  font-family: var(--od-serif, Georgia, serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--od-text, #242424);
  margin: 0;
}

.od-radio-segment-item.is-active .od-radio-segment-text {
  color: #000000;
}

/* ==========================================================================
   6. Références en bas de page
   ========================================================================== */

.od-radio-refs-box {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--od-border, #e6e6e6);
}

.od-radio-refs-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--od-muted, #757575);
  margin: 0 0 14px;
}

.od-radio-refs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.od-radio-refs-list li a {
  font-size: 0.9375rem;
  color: var(--od-text-strong, #191919);
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.od-radio-refs-list li a:hover {
  color: #000000;
}

/* ==========================================================================
   7. Section Teaser Homepage
   ========================================================================== */

.od-home-podcast-teaser {
  background: #fafafa;
  border: 1px solid var(--od-border, #e6e6e6);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.od-home-podcast-thumb {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.od-home-podcast-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.od-home-podcast-info {
  flex: 1;
  min-width: 0;
}

.od-home-podcast-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--od-muted, #757575);
  margin-bottom: 4px;
}

.od-home-podcast-eyebrow .od-radio-pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.od-home-podcast-title {
  font-family: var(--od-sans, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--od-text-strong, #191919);
  margin: 0 0 4px;
  line-height: 1.35;
}

.od-home-podcast-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--od-muted-soft, #555555);
  margin: 0;
}

.od-home-podcast-cta {
  flex-shrink: 0;
}

.od-home-podcast-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.od-home-podcast-btn:hover {
  background: #242424;
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* ==========================================================================
   8. Aération Optimale sur Mobile (< 768px)
   Suppression des doubles marges JNews & respiration complète de la page
   ========================================================================== */

@media (max-width: 768px) {
  /* Élimination radicale de toutes les marges & paddings accumulés par Bootstrap/JNews */
  body.page-id-26672 .jeg_container,
  body.page-id-26672 .jeg_content,
  body.page-id-26672 .container,
  body.page-id-26672 .row,
  body.page-id-26672 .col-md-12,
  body.page-id-26672 .jeg_main_content,
  body.page-id-26672 .entry-content,
  body.page-id-26672 .content-inner,
  body:has(.od-radio-page) .jeg_container,
  body:has(.od-radio-page) .jeg_content,
  body:has(.od-radio-page) .container,
  body:has(.od-radio-page) .row,
  body:has(.od-radio-page) .col-md-12,
  body:has(.od-radio-page) .jeg_main_content,
  body:has(.od-radio-page) .entry-content,
  body:has(.od-radio-page) .content-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Un seul padding latéral net, aéré et confortable de 16px (standard mobile) */
  .od-radio-page {
    padding: 14px 16px 64px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* En-tête aéré sur mobile avec jaquette bien proportionnée */
  .od-radio-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .od-radio-eyebrow {
    font-size: 0.6875rem;
    padding: 3px 8px;
    margin-bottom: 12px;
  }

  .od-radio-hero-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }

  .od-radio-cover-showcase {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 10px;
  }

  .od-radio-h1 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
  }

  .od-radio-lede {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .od-radio-byline {
    font-size: 0.75rem;
    gap: 6px 8px;
    margin-top: 10px;
  }

  /* Player studio ultra-aéré et plein format sur mobile */
  .od-radio-player-box {
    padding: 14px 14px;
    border-radius: 12px;
    margin-bottom: 24px;
  }

  .od-radio-player-top {
    gap: 12px;
    margin-bottom: 12px;
  }

  .od-radio-play-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .od-radio-play-btn svg {
    width: 19px;
    height: 19px;
  }

  .od-radio-player-info-title {
    font-size: 0.875rem;
  }

  .od-radio-scrub-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .od-radio-tools-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding-top: 10px;
  }

  .od-radio-tool-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* Recommandations cabinet aérées */
  .od-radio-takeaways {
    margin: 22px 0;
    padding: 14px 14px;
    border-radius: 0 8px 8px 0;
  }

  .od-radio-takeaways-title {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .od-radio-takeaway-item {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Transcription pleine largeur, très aérée */
  .od-radio-transcript-section {
    margin-top: 26px;
  }

  .od-radio-section-heading {
    font-size: 1.1rem;
  }

  .od-radio-transcript-body {
    gap: 10px;
  }

  .od-radio-segment-item {
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
  }

  .od-radio-segment-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .od-radio-segment-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Teaser accueil mobile */
  .od-home-podcast-teaser {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .od-home-podcast-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .od-home-podcast-cta {
    width: 100%;
  }

  .od-home-podcast-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 16px;
  }
}

/* Très petits écrans (< 400px) */
@media (max-width: 400px) {
  .od-radio-hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .od-radio-cover-showcase {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }
}
