/* ============================================================
   Programme-Radio — style.css
   Bootstrap 5.3.7 chargé en amont (utilitaires conservés).
   On override visuellement, on n'annule pas les utilitaires.
   ============================================================ */

/* ------------------------------------------------------------
   BASE / BODY
   ------------------------------------------------------------ */
html {
  scroll-padding-top: 66px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #18181b;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Remove Bootstrap container-xl if still present */
.container-xl {
  max-width: none;
  padding: 0;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.rf-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 66px;
}

.rf-nav-brand {
  font-weight: 700;
  font-size: .95rem;
  color: #18181b;
  white-space: nowrap;
  letter-spacing: -.01em;
  text-decoration: none;
  position: absolute;
  left: 1.5rem;
}

.rf-nav-brand:hover {
  color: #3f3f46;
}

.rf-nav-stations {
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rf-nav-stations::-webkit-scrollbar {
  display: none;
}

.rf-nav-station {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform .15s ease;
  padding-bottom: 5px;
  border-bottom: 3px solid transparent;
}

.rf-nav-station img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: contain;
  display: block;
}

.rf-nav-label {
  display: none;
}

.rf-nav-station:hover {
  transform: scale(1.06);
}

.rf-nav-station.active {
  border-bottom-color: #18181b;
}

/* ------------------------------------------------------------
   MAIN CONTENT AREA
   ------------------------------------------------------------ */
.rf-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* ------------------------------------------------------------
   STATION HEADER
   ------------------------------------------------------------ */
.rf-station-header {
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem .75rem;
  margin-bottom: 1.25rem;
}
.rf-station-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rf-station-icon {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rf-station-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rf-station-name {
  font-weight: 800;
  font-size: 1.5rem;
  color: #18181b;
  margin: 0 0 .1rem;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.rf-station-subtitle {
  font-size: .8rem;
  font-weight: 400;
  color: #a1a1aa;
  letter-spacing: 0;
}

.rf-station-baseline {
  font-size: .82rem;
  color: #71717a;
  margin: 0;
}

/* Play button */
.rf-play-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: none;
  border-radius: 999px;
  padding: .55rem 1.25rem;
  color: #ffffff;
  font-weight: 600;
  font-size: .85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .1s ease;
}

.rf-play-btn:hover {
  filter: brightness(.88);
  transform: scale(1.02);
}

.rf-play-btn:active {
  transform: scale(.98);
}

/* Now playing box */
.rf-now {
  display: none; /* shown by JS when populated */
  align-items: center;
  gap: 1rem;
  border-radius: 12px;
  padding: .9rem 1.25rem;
  margin-bottom: 1.25rem;
}

.rf-now-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.rf-now-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #71717a;
  margin-bottom: .1rem;
}

#now-title {
  font-size: .95rem;
  font-weight: 700;
  color: #18181b;
  display: block;
  line-height: 1.3;
}

.rf-now-desc {
  font-size: .8rem;
  color: #52525b;
  margin-top: .15rem;
}

/* ------------------------------------------------------------
   DATE NAVIGATION
   ------------------------------------------------------------ */
.rf-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: 1rem;
}

/* Override Bootstrap btn-outline-secondary in date nav context */
.rf-date-nav .btn.btn-outline-secondary.btn-sm,
.btn.btn-outline-secondary.btn-sm {
  border-radius: 999px;
  border-color: #e4e4e7;
  color: #52525b;
  background: #fff;
  font-size: .8rem;
  padding: .3rem .85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}

.rf-date-nav .btn.btn-outline-secondary.btn-sm:hover,
.btn.btn-outline-secondary.btn-sm:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #18181b;
}

/* The circle podcast button specifically */
.table td .btn.btn-outline-secondary.btn-sm {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #e4e4e7;
  font-size: .75rem;
}

/* Date heading / mark today */
mark {
  background: #fef9c3;
  color: #713f12;
  border-radius: 4px;
  padding: .05em .35em;
}

/* ------------------------------------------------------------
   TABLE — programme grid
   ------------------------------------------------------------ */

/* Wrap in visual box */
.table-responsive {
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Toutes les colonnes toujours visibles — scroll horizontal sur mobile */
#grid-table .d-none.d-md-table-cell,
#grid-table .d-none.d-lg-table-cell {
  display: table-cell !important;
}

/* Reset Bootstrap table defaults */
.table {
  margin-bottom: 0;
  border-color: transparent;
}

.table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom-color: #f4f4f5;
  box-shadow: none;
}

/* Dark thead */
.table.table-hover thead.table-dark th,
.table thead.table-dark th,
.table-dark thead th,
.table > thead.table-dark > tr > th {
  background: #18181b;
  color: #e4e4e7;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .65rem 1rem;
  border-bottom: none;
}

/* Body rows */
.table tbody tr {
  border-bottom: 1px solid #f4f4f5;
  transition: background .1s;
}

.table-hover tbody tr:hover > * {
  background-color: #fafafa;
  --bs-table-accent-bg: transparent;
}

.table tbody tr:last-child {
  border-bottom: none;
}

.table td {
  padding: .6rem 1rem;
  font-size: .85rem;
  vertical-align: middle;
  color: #18181b;
}

/* Time cell */
.table td .fw-semibold.text-nowrap,
.table td.fw-semibold.text-nowrap,
td .fw-semibold {
  color: #71717a;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
}

/* Emission badge */
.badge.bg-light.text-secondary.border,
.badge.bg-light {
  background: #f4f4f5 !important;
  color: #52525b !important;
  border: 1px solid #e4e4e7 !important;
  font-size: .7rem;
  font-weight: 500;
  border-radius: 6px;
  padding: .25em .55em;
}

/* Override Bootstrap badge blue */
.badge.bg-primary { background: #18181b !important; }

/* ------------------------------------------------------------
   HOMEPAGE — station cards
   ------------------------------------------------------------ */
.rf-home-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 .25rem;
  color: #18181b;
}

.rf-home-sub {
  font-size: .9rem;
  color: #71717a;
  margin: 0 0 1rem;
}

.rf-home-intro {
  font-size: .95rem;
  color: #52525b;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 2rem;
}

.rf-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.rf-card {
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .15s ease;
}

.rf-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.rf-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}

.rf-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.7);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.rf-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rf-card-station-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.rf-card-content {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
  justify-content: space-between;
}

.rf-card-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #71717a;
  margin-bottom: .3rem;
}

.rf-card-section-label--next {
  color: #a1a1aa;
}

.rf-card-title {
  font-weight: 700;
  font-size: .92rem;
  color: #18181b;
  line-height: 1.35;
  margin-bottom: .3rem;
}

.rf-card-desc {
  font-size: .8rem;
  color: #52525b;
  line-height: 1.5;
}

.rf-card-next-title {
  font-size: .82rem;
  color: #71717a;
  font-weight: 600;
  line-height: 1.3;
}

.rf-card-cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid;
  font-size: .8rem;
  font-weight: 600;
  font-family: '"Inter"', sans-serif;
  text-decoration: none;
  transition: opacity .15s;
  align-self: flex-start;
  background: transparent;
}

.rf-card-cta:hover {
  opacity: .75;
}

/* ------------------------------------------------------------
   ALERTS
   ------------------------------------------------------------ */
.alert.alert-warning {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #78350f;
  font-size: .875rem;
}

/* ------------------------------------------------------------
   DETAILS / SUMMARY (programme descriptions)
   ------------------------------------------------------------ */
details {
  cursor: pointer;
}

details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

.dtl-marker {
  font-size: .6em;
  color: #d4d4d8;
  display: inline-block;
  transition: transform .2s ease;
  vertical-align: middle;
  margin-right: .15em;
}

details[open] > summary .dtl-marker {
  transform: rotate(90deg);
}

details > summary:hover .dtl-marker {
  color: #a1a1aa;
}

/* Sortable column headers */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { background: #27272a; }
th.sortable.asc  .sort-icon::after { content: ' ↑'; }
th.sortable.desc .sort-icon::after { content: ' ↓'; }

/* En savoir + link */
.rf-grid-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: inherit;
  opacity: .7;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  line-height: 1;
}
.rf-grid-link:hover { opacity: 1; }

a.rf-savoir-plus {
  font-size: .75rem;
  color: #71717a;
  text-decoration: none;
  border-bottom: 1px dotted #d4d4d8;
  white-space: nowrap;
}
a.rf-savoir-plus:hover { color: #18181b; border-bottom-color: #71717a; }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.rf-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e4e4e7;
  font-size: .78rem;
  color: #a1a1aa;
  flex-wrap: wrap;
}

.rf-footer a {
  color: #71717a;
  text-decoration: none;
}

.rf-footer a:hover {
  color: #18181b;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  html { scroll-padding-top: 110px; }
  .rf-nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    padding: .6rem .75rem .5rem;
    gap: .5rem;
  }

  .rf-nav-brand {
    position: static;
    font-size: .88rem;
  }

  .rf-nav-stations {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .rf-nav-station {
    flex-direction: column;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    gap: .3rem;
    padding: .1rem .15rem;
    align-items: center;
  }

  .rf-nav-station img {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    display: block;
  }

  .rf-nav-label {
    display: block;
    font-size: .6rem;
    font-weight: 600;
    color: #18181b;
    text-align: center;
    white-space: nowrap;
  }

  .rf-nav-station.active {
    border-bottom-color: #18181b;
  }

  .rf-main {
    padding: 1.25rem .75rem 2.5rem;
  }

  .rf-station-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem;
    border-radius: 10px;
    gap: .85rem;
  }

  .rf-station-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .rf-station-name {
    font-size: 1.2rem;
  }

  .rf-play-btn {
    width: 100%;
    justify-content: center;
  }

  .rf-now {
    border-radius: 10px;
    padding: .75rem 1rem;
  }

  .rf-cards {
    grid-template-columns: 1fr;
  }

  .rf-home-title {
    font-size: 1.5rem;
  }

  .rf-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }

  .table td {
    padding: .5rem .75rem;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .rf-main {
    padding: 1.5rem 1rem 3rem;
  }
}

/* ------------------------------------------------------------
   EDITORIAL
   ------------------------------------------------------------ */
.rf-editorial {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e4e4e7;
}

.rf-editorial h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #18181b;
  margin: 0 0 1rem;
}

.rf-editorial h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #27272a;
  margin: 1.75rem 0 .5rem;
}

.rf-editorial p {
  font-size: .875rem;
  color: #3f3f46;
  line-height: 1.8;
  margin: 0 0 .9rem;
  max-width: 72ch;
}

.rf-editorial ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.rf-editorial ul li {
  font-size: .875rem;
  color: #3f3f46;
  line-height: 1.7;
  margin-bottom: .4rem;
}

@media (max-width: 640px) {
  .rf-editorial p,
  .rf-editorial ul li { max-width: 100%; }
}

/* Carte home entièrement cliquable */
a.rf-card {
  color: #18181b;
  text-decoration: none;
  cursor: pointer;
}
a.rf-card:hover {
  color: #18181b;
}

/* Liens vers autres stations */
.rf-also {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e7;
}
.rf-also h4 {
  font-size: .78rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.rf-also-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.rf-also-link {
  display: inline-block;
  padding: .3rem .8rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.rf-also-link:hover { opacity: .7; text-decoration: none; }

/* ------------------------------------------------------------
   PODCASTS — section prévisualisation (page grille)
   ------------------------------------------------------------ */
.rf-podcasts-preview {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e4e4e7;
}
.rf-podcasts-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.rf-podcasts-preview-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #18181b;
  margin: 0;
}
.rf-podcasts-preview-all {
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  opacity: .85;
  white-space: nowrap;
}
.rf-podcasts-preview-all:hover { opacity: 1; text-decoration: underline; }

.rf-podcasts-preview-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.rf-podcast-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: .5rem;
}
.rf-podcast-preview-info {
  flex: 1;
  min-width: 0;
}
.rf-podcast-preview-info .rf-podcast-show-tag {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}
.rf-podcast-preview-info .rf-podcast-card-date {
  font-size: .72rem;
  color: #71717a;
  margin-bottom: .25rem;
  display: block;
}
.rf-podcast-preview-title {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  color: #18181b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-podcast-preview-title a {
  color: inherit;
  text-decoration: none;
}
.rf-podcast-preview-title a:hover { text-decoration: underline; }

.rf-podcasts-preview-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .5rem 1.25rem;
  border: 2px solid currentColor;
  border-radius: .375rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.rf-podcasts-preview-cta:hover { opacity: .75; text-decoration: none; }

/* ------------------------------------------------------------
   PODCASTS — page complète
   ------------------------------------------------------------ */
.rf-podcasts-hero {
  padding: 1.5rem 0 1.25rem;
}
.rf-podcasts-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.rf-podcasts-hero-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.rf-podcasts-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0 0 .3rem;
}
.rf-podcasts-subtitle {
  font-size: .85rem;
  color: #71717a;
  margin: 0;
}
.rf-podcasts-empty {
  color: #71717a;
  font-size: .9rem;
  padding: 2rem 0;
}

.rf-podcasts-section-block {
  margin-top: 2.5rem;
}
.rf-podcasts-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #18181b;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #e4e4e7;
}

/* Grille derniers épisodes */
.rf-podcasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.rf-podcast-card {
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: .625rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.rf-podcast-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.rf-podcast-show-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rf-podcast-card-date {
  font-size: .72rem;
  color: #71717a;
}
.rf-podcast-card-title {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.45;
}
.rf-podcast-card-title a {
  color: inherit;
  text-decoration: none;
}
.rf-podcast-card-title a:hover { text-decoration: underline; }
.rf-podcast-card-standfirst {
  margin: 0;
  font-size: .78rem;
  color: #52525b;
  line-height: 1.55;
}
.rf-podcast-player {
  width: 100%;
  height: 36px;
  margin-top: auto;
}
.rf-podcast-player--sm {
  height: 32px;
  min-width: 200px;
  max-width: 260px;
  flex-shrink: 0;
}

/* Accordéon par émission */
.rf-podcasts-accordion {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.rf-podcast-show {
  border: 1px solid #e4e4e7;
  border-radius: .5rem;
  overflow: hidden;
}
.rf-podcast-show-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  cursor: pointer;
  background: #fafafa;
  list-style: none;
  user-select: none;
  border-left: 3px solid var(--station-color, #e20234);
}
.rf-podcast-show-summary::-webkit-details-marker { display: none; }
.rf-podcast-show-summary::after {
  content: '›';
  font-size: 1.1rem;
  color: #71717a;
  transform: rotate(90deg);
  display: inline-block;
  transition: transform .2s;
  flex-shrink: 0;
}
.rf-podcast-show[open] > .rf-podcast-show-summary::after {
  transform: rotate(270deg);
}
.rf-podcast-show-name {
  font-size: .9rem;
  font-weight: 700;
  color: #18181b;
  flex: 1;
}
.rf-podcast-show-count {
  font-size: .75rem;
  color: #71717a;
  white-space: nowrap;
}
.rf-podcast-show-episodes {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.rf-podcast-episode {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-top: 1px solid #f0f0f0;
}
.rf-podcast-episode:first-child { border-top: 1px solid #e4e4e7; }
.rf-podcast-episode-header {
  flex: 1;
  min-width: 0;
}
.rf-podcast-episode-header .rf-podcast-card-date {
  display: block;
  margin-bottom: .2rem;
}
.rf-podcast-episode-link {
  font-size: .84rem;
  font-weight: 600;
  color: #18181b;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-podcast-episode-link:hover { text-decoration: underline; }
.rf-podcast-episode span {
  font-size: .84rem;
  color: #3f3f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

@media (max-width: 640px) {
  .rf-podcasts-grid {
    grid-template-columns: 1fr;
  }
  .rf-podcast-preview-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .rf-podcast-player--sm {
    width: 100%;
    max-width: 100%;
  }
  .rf-podcast-episode {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .rf-podcasts-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .rf-podcasts-title { font-size: 1.3rem; }
}

/* Anchor nav buttons (header → #programme / #podcasts) */
.rf-header-anchors {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .5rem 0 0;
}
.rf-anchor-btn {
  display: inline-block;
  padding: .35rem 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.rf-anchor-btn:hover { opacity: .7; text-decoration: none; }

/* Section title (Programme du jour, réutilisable) */
.rf-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #18181b;
  margin: 1.5rem 0 .75rem;
}

.rf-podcasts-back { padding: .75rem 0 .25rem; }
.rf-podcasts-back-link { font-size: .875rem; font-weight: 500; text-decoration: none; opacity: .85; }
.rf-podcasts-back-link:hover { opacity: 1; text-decoration: underline; }

/* ── FIP Webradio pages ────────────────────────────────────────── */
.rf-wr-back { padding: .75rem 0 .25rem; }
.rf-wr-back-link { font-size: .875rem; font-weight: 500; text-decoration: none; opacity: .85; }
.rf-wr-back-link:hover { opacity: 1; text-decoration: underline; }

.rf-wr-hero { border-radius: 0 8px 8px 0; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.rf-wr-hero-inner { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.rf-wr-logo-wrap img { height: 48px; width: auto; }
.rf-wr-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.15; }
.rf-wr-genre-badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 20px; letter-spacing: .02em; }
.rf-wr-player-col { margin-left: auto; }

.rf-wr-track-block { background: #f9f9fb; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rf-wr-now-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.rf-wr-track-title { font-size: 1.25rem; font-weight: 700; color: #18181b; line-height: 1.25; margin-bottom: .3rem; }
.rf-wr-track-artist { font-size: 1rem; font-weight: 500; color: #3f3f46; margin-bottom: .3rem; }
.rf-wr-track-meta { font-size: .82rem; color: #71717a; }
.rf-wr-sep { margin: 0 .3rem; }

.rf-wr-refresh { text-align: right; white-space: nowrap; }
.rf-wr-refresh-link { font-size: .82rem; font-weight: 500; color: #71717a; text-decoration: none; }
.rf-wr-refresh-link:hover { color: #18181b; }
.rf-wr-refresh-note { display: block; font-size: .72rem; color: #a1a1aa; margin-top: .2rem; }

.rf-wr-editorial { font-size: .9rem; color: #52525b; line-height: 1.6; margin-bottom: 2rem; padding: .75rem 1rem; border-left: 3px solid #e4e4e7; }

.rf-wr-others { margin-bottom: 2rem; }
.rf-wr-others-title { font-size: 1rem; font-weight: 700; color: #18181b; margin-bottom: 1rem; }
.rf-wr-others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.rf-wr-other-card { display: block; background: #fff; border: 1px solid #e4e4e7; border-radius: 8px; padding: .85rem 1rem; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.rf-wr-other-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); border-color: #d4d4d8; }
.rf-wr-other-name { font-size: .88rem; font-weight: 700; margin-bottom: .15rem; }
.rf-wr-other-genre { font-size: .75rem; color: #71717a; margin-bottom: .45rem; }
.rf-wr-other-track { font-size: .78rem; color: #3f3f46; font-weight: 500; line-height: 1.3; }
.rf-wr-other-artist { font-size: .72rem; color: #71717a; margin-top: .1rem; }

@media (max-width: 640px) {
  .rf-wr-hero-inner { gap: .85rem; }
  .rf-wr-player-col { margin-left: 0; width: 100%; }
  .rf-wr-others-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
}

.rf-news-source { font-size: .82rem; color: #71717a; margin-bottom: 2rem; }
.rf-news-source a { color: #71717a; text-decoration: underline; }
.rf-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 3rem; }
.rf-news-card { background: #fff; border: 1px solid #e4e4e7; border-left: 4px solid #1e3a5f; border-radius: 0 10px 10px 0; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.rf-news-meta { display: flex; align-items: center; gap: .6rem; }
.rf-news-badge { font-size: .7rem; font-weight: 700; color: #fff; padding: .2rem .55rem; border-radius: 4px; letter-spacing: .02em; text-transform: uppercase; }
.rf-news-date { font-size: .78rem; color: #71717a; }
.rf-news-title { font-size: .97rem; font-weight: 700; color: #18181b; margin: 0; line-height: 1.35; }
.rf-news-resume { font-size: .85rem; color: #3f3f46; line-height: 1.6; margin: 0; flex: 1; }
.rf-news-link { font-size: .8rem; color: #1e3a5f; text-decoration: none; font-weight: 600; margin-top: .25rem; }
.rf-news-link:hover { text-decoration: underline; }
@media (max-width: 640px) { .rf-news-grid { grid-template-columns: 1fr; } }

.rf-news-teaser { margin: 2rem 0 2.5rem; }
.rf-news-teaser-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .85rem; }
.rf-news-teaser-title { font-size: 1.05rem; font-weight: 700; color: #18181b; margin: 0; }
.rf-news-teaser-more { font-size: .8rem; font-weight: 600; color: #1e3a5f; text-decoration: none; }
.rf-news-teaser-more:hover { text-decoration: underline; }
.rf-news-mini { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border: 1px solid #e4e4e7; border-left: 4px solid; border-radius: 0 8px 8px 0; margin-bottom: .5rem; text-decoration: none; background: #fff; transition: box-shadow .15s; }
.rf-news-mini:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.rf-news-mini-badge { flex-shrink: 0; font-size: .68rem; font-weight: 700; color: #fff; padding: .15rem .45rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .02em; }
.rf-news-mini-title { flex: 1; font-size: .85rem; font-weight: 600; color: #18181b; line-height: 1.3; }
.rf-news-mini-date { flex-shrink: 0; font-size: .75rem; color: #71717a; }
@media (max-width: 640px) { .rf-news-mini-date { display: none; } }
