/*
Theme Name: MaristesTV
Theme URI: https://maristestv.sn
Author: MaristesTV Team
Description: Thème WordPress complet pour MaristesTV — plateforme média citoyenne du quartier Hann-Bel Air / Maristes (Dakar). WebTV, Radio Web, Émissions, Forum, Sondages, Publicités, Numéros Utiles. Toutes les couleurs sont configurables depuis le Customizer.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, media, community, video, radio, responsive, custom-colors, custom-logo
Text Domain: maristestv
*/

/* ===================================================
   VARIABLES DYNAMIQUES (injectées par le Customizer)
   =================================================== */
:root {
  --mtv-primary:        #C0392B;
  --mtv-primary-light:  #E8726A;
  --mtv-primary-soft:   #FDECEA;
  --mtv-accent:         #E67E22;
  --mtv-accent-light:   #F5CBA7;
  --mtv-accent-soft:    #FEF5EC;
  --mtv-green:          #27AE60;
  --mtv-green-soft:     #EAFAF1;
  --mtv-bg:             #F8F6F3;
  --mtv-surface:        #FFFFFF;
  --mtv-surface2:       #F2EFE9;
  --mtv-border:         #E8E2D9;
  --mtv-border-dark:    #D5CEC4;
  --mtv-text:           #2C2420;
  --mtv-text2:          #6B5E55;
  --mtv-text3:          #9E9189;
  --mtv-header-bg:      #FFFFFF;
  --mtv-nav-bg:         #FFFFFF;
  --mtv-ticker-bg:      #C0392B;
  --mtv-footer-bg:      #2C2420;
  --mtv-ad-bg:          #FFF8F0;
  --mtv-ad-border:      #F0C890;
  --mtv-body-bg-pub:    none;

  --mtv-radius:         10px;
  --mtv-radius-lg:      16px;
  --mtv-shadow:         0 2px 12px rgba(44,36,32,.08);
  --mtv-shadow-md:      0 4px 24px rgba(44,36,32,.12);
  --mtv-shadow-hover:   0 8px 32px rgba(44,36,32,.18);
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--mtv-bg);
  color: var(--mtv-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Pub sur body */
body.has-bg-pub {
  background-image: var(--mtv-body-bg-pub);
  background-repeat: repeat;
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mtv-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mtv-primary-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mtv-text);
}

/* ===================================================
   LAYOUT
   =================================================== */
.mtv-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-content { padding: 28px 0 60px; }

/* Grille principale : contenu + sidebar */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

/* ===================================================
   BACKGROUND PUB (body skin)
   =================================================== */
.body-bg-pub-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.body-bg-pub-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
}

/* ===================================================
   TICKER
   =================================================== */
.site-ticker {
  background: var(--mtv-ticker-bg);
  color: #fff;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.ticker-label {
  background: var(--mtv-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-scroll { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
  animation: tickerMove 30s linear infinite;
  padding-left: 16px;
}
@keyframes tickerMove {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  background: var(--mtv-header-bg);
  border-bottom: 2px solid var(--mtv-border);
  box-shadow: var(--mtv-shadow);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px;
  background: var(--mtv-primary);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.site-title-text { line-height: 1.15; }
.site-title-text strong { display: block; font-size: 19px; font-weight: 900; color: var(--mtv-text); }
.site-title-text strong span { color: var(--mtv-primary); }
.site-title-text small { font-size: 10.5px; color: var(--mtv-text2); letter-spacing: .4px; }

/* Live buttons */
.header-live-btns { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 24px;
  font-size: 12.5px; font-weight: 800;
  border: 1.5px solid transparent;
  transition: all .25s;
  white-space: nowrap;
}
.btn-live-tv {
  background: var(--mtv-primary-soft);
  border-color: var(--mtv-primary-light);
  color: var(--mtv-primary);
}
.btn-live-tv:hover { background: var(--mtv-primary); color: #fff; border-color: var(--mtv-primary); }
.btn-live-radio {
  background: var(--mtv-green-soft);
  border-color: #82D0A0;
  color: var(--mtv-green);
}
.btn-live-radio:hover { background: var(--mtv-green); color: #fff; border-color: var(--mtv-green); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulseDot 1.4s ease infinite;
  flex-shrink: 0;
}
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.7)} }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--mtv-border-dark);
  border-radius: 8px;
  padding: 8px 10px;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--mtv-text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.site-nav {
  background: var(--mtv-nav-bg);
  border-top: 1px solid var(--mtv-border);
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px;
  list-style: none;
  margin: 0;
}
.nav-list > li > a {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mtv-text2);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a {
  color: var(--mtv-primary);
}
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current_page_item > a::after {
  content: '';
  position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2.5px; background: var(--mtv-primary); border-radius: 2px 2px 0 0;
}

/* ===================================================
   AD — BANNIÈRE LEADERBOARD (728×90)
   Visible, bien encadrée, libellée "PUBLICITÉ"
   =================================================== */
.ad-zone {
  position: relative;
  background: var(--mtv-ad-bg);
  border: 2px dashed var(--mtv-ad-border);
  border-radius: var(--mtv-radius);
  overflow: hidden;
}
.ad-zone-label {
  position: absolute;
  top: 6px; left: 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mtv-text3);
  background: var(--mtv-ad-bg);
  padding: 1px 6px;
  border: 1px solid var(--mtv-ad-border);
  border-radius: 4px;
  z-index: 2;
  font-weight: 700;
}

/* Leaderboard */
.ad-leaderboard {
  padding: 22px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 90px;
  margin: 20px 0;
}
.ad-leaderboard .ad-body { flex: 1; }
.ad-leaderboard .ad-title { font-size: 16px; font-weight: 800; color: var(--mtv-text); }
.ad-leaderboard .ad-sub { font-size: 12px; color: var(--mtv-text2); margin-top: 2px; }
.ad-leaderboard .ad-cta {
  background: var(--mtv-accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
  transition: background .2s;
}
.ad-leaderboard .ad-cta:hover { background: #cf6d17; color: #fff; }
.ad-leaderboard .ad-icon { font-size: 36px; flex-shrink: 0; }

/* Inline article */
.ad-inline {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.ad-inline .ad-icon { font-size: 32px; flex-shrink: 0; }
.ad-inline .ad-title { font-size: 14px; font-weight: 800; color: var(--mtv-text); }
.ad-inline .ad-sub { font-size: 12px; color: var(--mtv-text2); margin-top: 2px; }
.ad-inline .ad-cta {
  background: var(--mtv-accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .2s;
}
.ad-inline .ad-cta:hover { background: #cf6d17; color: #fff; }

/* Sidebar 300×250 */
.ad-sidebar-box {
  padding: 20px 18px 16px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.ad-sidebar-box .ad-icon { font-size: 40px; }
.ad-sidebar-box .ad-title { font-size: 16px; font-weight: 900; color: var(--mtv-text); }
.ad-sidebar-box .ad-sub { font-size: 13px; color: var(--mtv-text2); line-height: 1.5; }
.ad-sidebar-box .ad-sizes {
  display: flex; flex-direction: column; gap: 6px; width: 100%;
}
.ad-size-item {
  background: #fff;
  border: 1px solid var(--mtv-ad-border);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 12px; color: var(--mtv-text2);
}
.ad-size-item strong { display: block; color: var(--mtv-accent); font-weight: 800; font-size: 13px; }
.ad-sidebar-box .btn-contact {
  display: block; width: 100%;
  background: var(--mtv-primary); color: #fff;
  padding: 10px; border-radius: 8px;
  font-size: 13px; font-weight: 800;
  margin-top: 4px;
  transition: background .2s;
}
.ad-sidebar-box .btn-contact:hover { background: var(--mtv-primary-light); color: #fff; }

/* Avant footer — 3 slots */
.ad-before-footer {
  background: linear-gradient(90deg, var(--mtv-accent-soft), var(--mtv-primary-soft));
  border-top: 1px solid var(--mtv-ad-border);
  border-bottom: 1px solid var(--mtv-ad-border);
  padding: 20px 0;
}
.ad-before-footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ad-slot {
  background: #fff;
  border: 2px dashed var(--mtv-ad-border);
  border-radius: var(--mtv-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.ad-slot .ad-zone-label { position: static; display: inline-block; margin-bottom: 4px; }
.ad-slot-icon { font-size: 26px; flex-shrink: 0; }
.ad-slot-title { font-size: 14px; font-weight: 800; color: var(--mtv-text); }
.ad-slot-sub { font-size: 12px; color: var(--mtv-text2); }

/* Background pub full */
.ad-background-notice {
  background: linear-gradient(135deg, var(--mtv-accent-soft), var(--mtv-primary-soft));
  border: 2px dashed var(--mtv-ad-border);
  border-radius: var(--mtv-radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--mtv-text2);
}
.ad-background-notice strong { color: var(--mtv-accent); }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  background: linear-gradient(135deg,
    var(--mtv-primary-soft) 0%,
    var(--mtv-accent-soft)  50%,
    var(--mtv-green-soft)   100%);
  border-bottom: 1px solid var(--mtv-border);
  padding: 44px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mtv-primary-soft);
  border: 1px solid var(--mtv-primary-light);
  color: var(--mtv-primary);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px; width: fit-content;
}
.hero-title { font-size: clamp(24px, 3.5vw, 42px); font-weight: 900; margin-bottom: 12px; }
.hero-title em { color: var(--mtv-primary); font-style: normal; }
.hero-desc { font-size: 15px; color: var(--mtv-text2); line-height: 1.7; margin-bottom: 24px; max-width: 480px; }
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--mtv-primary); color: #fff;
  padding: 11px 26px; border-radius: 9px;
  font-size: 14px; font-weight: 800;
  border: none; transition: all .25s;
}
.btn-primary:hover { background: var(--mtv-primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--mtv-shadow-md); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--mtv-surface); color: var(--mtv-text);
  padding: 11px 26px; border-radius: 9px;
  font-size: 14px; font-weight: 800;
  border: 1.5px solid var(--mtv-border-dark); transition: all .25s;
}
.btn-secondary:hover { border-color: var(--mtv-primary); color: var(--mtv-primary); }

.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hstat-num { font-size: 26px; font-weight: 900; color: var(--mtv-primary); line-height: 1; }
.hstat-lbl { font-size: 11px; color: var(--mtv-text2); margin-top: 2px; }

/* Player panel */
.hero-panel {
  background: var(--mtv-surface);
  border-radius: var(--mtv-radius-lg);
  box-shadow: var(--mtv-shadow-md);
  border: 1px solid var(--mtv-border);
  overflow: hidden;
}
.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--mtv-border);
}
.panel-tab-btn {
  padding: 12px 8px;
  text-align: center;
  font-size: 12px; font-weight: 800;
  color: var(--mtv-text2); border: none;
  background: transparent; cursor: pointer; transition: all .2s;
  border-bottom: 2.5px solid transparent;
}
.panel-tab-btn.active {
  color: var(--mtv-primary);
  background: var(--mtv-primary-soft);
  border-bottom-color: var(--mtv-primary);
}
.panel-body { padding: 18px; }
.panel-pane { display: none; }
.panel-pane.active { display: block; }

/* TV Player */
.tv-player {
  background: #2C2420;
  border-radius: 10px;
  aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; cursor: pointer; position: relative; overflow: hidden;
  margin-bottom: 12px;
}
.tv-player::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,.15), rgba(230,126,34,.08));
}
.play-circle {
  width: 50px; height: 50px;
  background: var(--mtv-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(192,57,43,.1);
  position: relative; z-index: 1; transition: transform .3s;
}
.play-circle:hover { transform: scale(1.1); }
.play-circle svg { fill: #fff; margin-left: 4px; }
.tv-prog-label { color: rgba(255,255,255,.75); font-size: 12px; position: relative; z-index: 1; }
.live-pill {
  position: absolute; top: 9px; left: 9px;
  background: var(--mtv-primary); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.tv-now-playing {
  font-size: 11.5px; color: var(--mtv-text2); text-align: center;
  padding: 4px 0;
}

/* Radio player */
.radio-player-box {
  background: var(--mtv-green-soft);
  border: 1.5px solid #A9DFC0;
  border-radius: 10px; padding: 14px;
}
.rp-header { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.rp-icon {
  width: 40px; height: 40px; background: var(--mtv-green);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.rp-title { font-weight: 800; font-size: 14px; }
.rp-prog { font-size: 11px; color: var(--mtv-text2); }
.rp-controls { display: flex; align-items: center; gap: 8px; }
.rp-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.07); color: var(--mtv-text);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.rp-btn.play { background: var(--mtv-green); color: #fff; }
.rp-btn:hover { background: var(--mtv-border-dark); }
.rp-btn.play:hover { background: #1e8449; color: #fff; }
.rp-vol { flex: 1; height: 4px; background: #C3E6CB; border-radius: 4px; overflow: hidden; }
.rp-vol-fill { height: 100%; width: 70%; background: var(--mtv-green); }
.soundwave { display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-left: 4px; }
.soundwave b {
  display: block; width: 3px; border-radius: 2px;
  background: var(--mtv-green);
  animation: sw .9s ease-in-out infinite;
}
.soundwave b:nth-child(1){height:5px;animation-delay:.0s}
.soundwave b:nth-child(2){height:12px;animation-delay:.1s}
.soundwave b:nth-child(3){height:18px;animation-delay:.2s}
.soundwave b:nth-child(4){height:9px;animation-delay:.3s}
.soundwave b:nth-child(5){height:15px;animation-delay:.4s}
.soundwave b:nth-child(6){height:7px;animation-delay:.5s}
@keyframes sw{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.2)}}

/* Sondage mini */
.sondage-q { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.sondage-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1.5px solid var(--mtv-border);
  border-radius: 8px; margin-bottom: 7px; cursor: pointer;
  font-size: 13px; transition: all .2s;
}
.sondage-opt:hover { border-color: var(--mtv-primary-light); background: var(--mtv-primary-soft); }
.sondage-opt.voted { border-color: var(--mtv-primary-light); background: var(--mtv-primary-soft); }
.opt-bar-wrap { flex: 1; height: 4px; background: var(--mtv-border); border-radius: 4px; overflow: hidden; }
.opt-bar { height: 100%; background: var(--mtv-primary); border-radius: 4px; transition: width .5s ease; }
.opt-pct { font-size: 11px; font-weight: 800; color: var(--mtv-primary); min-width: 28px; text-align: right; }
.sondage-info { font-size: 11px; color: var(--mtv-text3); margin-top: 6px; }
.sondage-info a { color: var(--mtv-accent); }

/* ===================================================
   SECTIONS COMMUNES
   =================================================== */
.mtv-section { padding: 44px 0; }
.mtv-section-alt { background: var(--mtv-surface2); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 13px;
  border-bottom: 2px solid var(--mtv-border);
}
.section-head-left { display: flex; align-items: center; gap: 9px; }
.section-head-icon {
  width: 34px; height: 34px; background: var(--mtv-primary-soft);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.section-head-title { font-size: 19px; font-weight: 900; }
.see-all { font-size: 13px; font-weight: 700; color: var(--mtv-primary); display: flex; align-items: center; gap: 4px; }
.see-all:hover { color: var(--mtv-accent); }

/* ===================================================
   GRILLE ÉMISSIONS
   =================================================== */
.emissions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.emission-card {
  background: var(--mtv-surface);
  border-radius: var(--mtv-radius);
  overflow: hidden;
  border: 1px solid var(--mtv-border);
  box-shadow: var(--mtv-shadow);
  transition: transform .3s, box-shadow .3s;
}
.emission-card:hover { transform: translateY(-4px); box-shadow: var(--mtv-shadow-hover); }
.ec-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.ec-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.ec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ec-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,36,32,.5) 0%, transparent 60%);
}
.ec-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--mtv-primary); color: #fff;
  font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 20px;
}
.ec-badge.new { background: var(--mtv-green); }
.ec-badge.replay { background: var(--mtv-accent); }
.ec-play {
  position: absolute; bottom: 8px; right: 8px;
  width: 32px; height: 32px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; box-shadow: var(--mtv-shadow);
}
.ec-play svg { fill: var(--mtv-primary); margin-left: 3px; }
.emission-card:hover .ec-play { opacity: 1; }
.ec-body { padding: 13px; }
.ec-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mtv-accent); margin-bottom: 4px; }
.ec-title { font-size: 14px; font-weight: 800; line-height: 1.3; margin-bottom: 7px; color: var(--mtv-text); }
.ec-title a { color: inherit; }
.ec-title a:hover { color: var(--mtv-primary); }
.ec-meta { display: flex; gap: 10px; }
.ec-meta span { font-size: 11px; color: var(--mtv-text3); }

/* ===================================================
   ACTUALITÉS
   =================================================== */
.actu-featured {
  background: var(--mtv-surface);
  border: 1px solid var(--mtv-border);
  border-radius: var(--mtv-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  box-shadow: var(--mtv-shadow);
  margin-bottom: 16px;
  transition: box-shadow .3s;
}
.actu-featured:hover { box-shadow: var(--mtv-shadow-hover); }
.af-thumb {
  min-height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; overflow: hidden;
}
.af-thumb img { width: 100%; height: 100%; object-fit: cover; }
.af-body { padding: 18px; }
.af-tag {
  display: inline-block;
  background: var(--mtv-primary-soft); color: var(--mtv-primary);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 7px;
}
.af-title { font-size: 17px; font-weight: 900; line-height: 1.3; margin-bottom: 7px; }
.af-title a { color: inherit; }
.af-title a:hover { color: var(--mtv-primary); }
.af-excerpt { font-size: 13.5px; color: var(--mtv-text2); line-height: 1.6; margin-bottom: 9px; }
.af-date { font-size: 11.5px; color: var(--mtv-text3); }

.actu-list { display: flex; flex-direction: column; gap: 10px; }
.actu-item {
  background: var(--mtv-surface);
  border: 1px solid var(--mtv-border);
  border-radius: var(--mtv-radius);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px; cursor: pointer; transition: all .25s;
  box-shadow: var(--mtv-shadow);
}
.actu-item:hover { border-color: var(--mtv-primary-light); transform: translateX(3px); }
.ai-thumb {
  aspect-ratio: 1; border-radius: 8px;
  background: var(--mtv-surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.ai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-title { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; }
.ai-title a { color: inherit; }
.ai-title a:hover { color: var(--mtv-primary); }
.ai-meta { font-size: 11px; color: var(--mtv-text3); display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================================================
   SIDEBAR WIDGETS
   =================================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget-box {
  background: var(--mtv-surface);
  border: 1px solid var(--mtv-border);
  border-radius: var(--mtv-radius-lg);
  overflow: hidden;
  box-shadow: var(--mtv-shadow);
}
.widget-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mtv-border);
  background: var(--mtv-surface2);
  display: flex; align-items: center; justify-content: space-between;
}
.widget-head-left { display: flex; align-items: center; gap: 8px; }
.widget-ico { font-size: 17px; }
.widget-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.widget-link { font-size: 12px; color: var(--mtv-accent); font-weight: 700; }
.widget-body { padding: 12px 16px; }

/* Numéros utiles */
.numero-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; border-bottom: 1px solid var(--mtv-border);
  cursor: pointer; transition: padding-left .2s;
}
.numero-item:last-child { border-bottom: none; }
.numero-item:hover { padding-left: 4px; }
.num-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.num-name { font-size: 12.5px; font-weight: 700; }
.num-tel { font-size: 14px; font-weight: 900; color: var(--mtv-primary); }

/* Forum widget */
.forum-item {
  display: flex; gap: 9px; padding: 10px 0;
  border-bottom: 1px solid var(--mtv-border); cursor: pointer;
}
.forum-item:last-child { border-bottom: none; }
.forum-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.forum-author { font-size: 12px; font-weight: 800; color: var(--mtv-accent); }
.forum-text { font-size: 12.5px; line-height: 1.35; color: var(--mtv-text); }
.forum-time { font-size: 11px; color: var(--mtv-text3); margin-top: 2px; }

/* Agenda widget */
.agenda-item {
  display: flex; gap: 11px; padding: 10px 0;
  border-bottom: 1px solid var(--mtv-border);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-date {
  min-width: 44px; border-radius: 8px;
  padding: 6px 7px; text-align: center; flex-shrink: 0;
}
.agenda-day { font-size: 19px; font-weight: 900; line-height: 1; }
.agenda-mois { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.agenda-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.agenda-lieu { font-size: 11px; color: var(--mtv-text2); }

/* ===================================================
   FORUM SECTION
   =================================================== */
.forum-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.forum-cat-card {
  background: var(--mtv-surface);
  border: 1.5px solid var(--mtv-border);
  border-radius: var(--mtv-radius-lg);
  padding: 20px;
  box-shadow: var(--mtv-shadow);
  transition: all .3s; cursor: pointer;
}
.forum-cat-card:hover { border-color: var(--mtv-primary-light); transform: translateY(-2px); box-shadow: var(--mtv-shadow-hover); }
.fcc-icon { font-size: 28px; margin-bottom: 9px; }
.fcc-title { font-size: 15px; font-weight: 800; margin-bottom: 7px; }
.fcc-desc { font-size: 13px; color: var(--mtv-text2); line-height: 1.5; margin-bottom: 13px; }
.fcc-stats { display: flex; gap: 18px; }
.fcc-stat { font-size: 12px; color: var(--mtv-text3); }
.fcc-stat strong { color: var(--mtv-text); font-weight: 800; }

/* ===================================================
   PARTICIPER
   =================================================== */
.participer-section {
  background: linear-gradient(135deg, var(--mtv-primary-soft), var(--mtv-accent-soft));
  border-top: 1px solid var(--mtv-border);
  border-bottom: 1px solid var(--mtv-border);
}
.participer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.pg-left h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.pg-left h2 em { color: var(--mtv-primary); font-style: normal; }
.pg-left p { font-size: 15px; color: var(--mtv-text2); line-height: 1.7; margin-bottom: 22px; }
.pg-checks { display: flex; flex-direction: column; gap: 9px; }
.pg-check {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--mtv-text);
}
.pg-check::before {
  content: '✓'; width: 21px; height: 21px;
  background: var(--mtv-green-soft); color: var(--mtv-green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
  border: 1px solid #A9DFC0;
}
.part-form {
  background: var(--mtv-surface);
  border: 1px solid var(--mtv-border);
  border-radius: var(--mtv-radius-lg);
  padding: 26px;
  box-shadow: var(--mtv-shadow-md);
}
.part-form-title { font-size: 17px; font-weight: 900; margin-bottom: 18px; }
.form-group { margin-bottom: 13px; }
.form-label {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--mtv-text2); margin-bottom: 5px;
}
.form-control {
  width: 100%; background: var(--mtv-bg);
  border: 1.5px solid var(--mtv-border); border-radius: 8px;
  padding: 10px 13px; font-size: 13.5px; color: var(--mtv-text);
  transition: border-color .2s; outline: none;
}
.form-control:focus { border-color: var(--mtv-primary); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea.form-control { min-height: 88px; resize: vertical; }

/* ===================================================
   ASSOCIATIONS
   =================================================== */
.asso-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px;
}
.asso-card {
  background: var(--mtv-surface);
  border: 1px solid var(--mtv-border);
  border-radius: var(--mtv-radius);
  padding: 16px 11px; text-align: center;
  box-shadow: var(--mtv-shadow);
  transition: all .3s; cursor: pointer;
}
.asso-card:hover { border-color: var(--mtv-accent-light); transform: translateY(-3px); background: var(--mtv-accent-soft); }
.asso-icon { font-size: 26px; margin-bottom: 7px; }
.asso-name { font-size: 12px; font-weight: 800; color: var(--mtv-text); }

/* ===================================================
   NUMÉROS UTILES (page complète)
   =================================================== */
.numeros-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.numero-full-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--mtv-border);
}
.numero-full-item:last-child { border-bottom: none; }
.nfi-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.nfi-info { flex: 1; }
.nfi-name { font-size: 13.5px; font-weight: 700; }
.nfi-desc { font-size: 11.5px; color: var(--mtv-text2); }
.nfi-tel { font-size: 18px; font-weight: 900; color: var(--mtv-primary); flex-shrink: 0; }

/* ===================================================
   PAGINATION
   =================================================== */
.mtv-pagination {
  display: flex; gap: 8px; justify-content: center;
  padding: 32px 0 0; flex-wrap: wrap;
}
.mtv-pagination a, .mtv-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--mtv-border);
  background: var(--mtv-surface); color: var(--mtv-text2);
  transition: all .2s;
}
.mtv-pagination a:hover { border-color: var(--mtv-primary); color: var(--mtv-primary); }
.mtv-pagination .current { background: var(--mtv-primary); border-color: var(--mtv-primary); color: #fff; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--mtv-footer-bg);
  color: rgba(255,255,255,.8);
  padding: 52px 0 22px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); margin: 12px 0 18px; }
.footer-social { display: flex; gap: 7px; flex-wrap: wrap; }
.social-btn {
  width: 35px; height: 35px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  cursor: pointer; transition: all .2s;
}
.social-btn:hover { background: var(--mtv-primary); border-color: var(--mtv-primary); }
.footer-col h4 {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,.45); margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col li a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.38); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.55); }

/* ===================================================
   SCROLL TO TOP
   =================================================== */
.scroll-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 42px; height: 42px; background: var(--mtv-primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none; z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: all .3s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--mtv-primary-light); color: #fff; transform: translateY(-2px); }

/* ===================================================
   RESPONSIVE — TABLETTE (max 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .emissions-grid        { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-wrap  { grid-template-columns: 1fr; }
  .hero-grid             { grid-template-columns: 1fr; }
  .hero-panel            { max-width: 480px; }
  .asso-grid             { grid-template-columns: repeat(3, 1fr); }
  .forum-cats-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 26px; }
  .participer-grid       { grid-template-columns: 1fr; gap: 26px; }
  .ad-before-footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .numeros-grid          { grid-template-columns: 1fr; }
}

/* ===================================================
   RESPONSIVE — MOBILE (max 768px)
   =================================================== */
@media (max-width: 768px) {
  /* Header */
  .header-inner          { padding: 10px 16px; gap: 10px; }
  .site-branding .site-title-text small { display: none; }
  .header-live-btns      { display: none; }/* on les met dans le menu mobile */
  .menu-toggle           { display: flex; }
  
  /* Nav mobile */
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list {
    flex-direction: column; padding: 8px 16px 16px;
  }
  .nav-list > li > a {
    padding: 10px 8px; border-bottom: 1px solid var(--mtv-border); font-size: 14px;
  }
  .nav-list > li:last-child > a { border-bottom: none; }
  .nav-list > li.current-menu-item > a::after { display: none; }

  /* Ticker */
  .ticker-label { padding: 0 10px; font-size: 9px; }

  /* Hero */
  .hero-section          { padding: 28px 0; }
  .hero-title            { font-size: 24px; }
  .hero-stats            { gap: 16px; }
  .hstat-num             { font-size: 22px; }
  .hero-buttons          { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }

  /* Émissions */
  .emissions-grid        { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Actu featured */
  .actu-featured         { grid-template-columns: 1fr; }
  .af-thumb              { min-height: 120px; }

  /* Forum */
  .forum-cats-grid       { grid-template-columns: 1fr; }

  /* Asso */
  .asso-grid             { grid-template-columns: repeat(2, 1fr); }

  /* Pub inline */
  .ad-inline             { flex-direction: column; text-align: center; }
  .ad-leaderboard        { flex-direction: column; text-align: center; }

  /* Participer */
  .form-row              { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid           { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom         { flex-direction: column; text-align: center; }

  /* Sections */
  .mtv-section           { padding: 28px 0; }
}

/* ===================================================
   RESPONSIVE — PETIT MOBILE (max 480px)
   =================================================== */
@media (max-width: 480px) {
  .mtv-wrap              { padding: 0 12px; }
  .emissions-grid        { grid-template-columns: 1fr; }
  .asso-grid             { grid-template-columns: repeat(2, 1fr); }
  .hero-stats            { flex-wrap: wrap; }
  .panel-tab-btn         { font-size: 11px; padding: 10px 5px; }
}

/* ===================================================
   ADMIN BAR COMPENSATION
   =================================================== */
@media screen and (min-width: 783px) {
  .site-header { top: 32px; }
}
@media screen and (max-width: 782px) {
  .site-header { top: 46px; }
}

/* ===================================================
   BARRE RADIO PERMANENTE — Style RFI
   =================================================== */
#mtv-radio-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: #0D0D0D;
  border-top: 3px solid var(--mtv-primary);
  display: flex;
  align-items: center;
  z-index: 9000;
  box-shadow: 0 -6px 32px rgba(0,0,0,.5);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  gap: 0;
  overflow: hidden;
}
#mtv-radio-bar.visible {
  transform: translateY(0);
}
body.has-radio-bar {
  padding-bottom: 72px;
}

/* ── ① BRAND ──────────────────────────────────── */
.rbar-brand {
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.07);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 160px;
}
.rbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rbar-logo-m {
  width: 36px; height: 36px;
  background: var(--mtv-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  font-family: inherit;
}
.rbar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rbar-logo-name {
  font-size: 14px; font-weight: 900;
  color: #fff; line-height: 1;
  letter-spacing: -.3px;
}
.rbar-logo-name em {
  font-style: normal;
  color: var(--mtv-primary-light);
}
.rbar-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mtv-primary);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  width: fit-content;
}
.rbar-live-dot {
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: rbar-blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes rbar-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}
/* Badge gris quand pas de lecture */
#mtv-radio-bar:not(.playing) .rbar-live-badge {
  background: rgba(255,255,255,.12);
}
#mtv-radio-bar:not(.playing) .rbar-live-dot {
  animation: none;
  opacity: .4;
}

/* ── ② BOUTON PLAY ───────────────────────────── */
.rbar-play-btn {
  width: 48px; height: 48px;
  background: var(--mtv-primary);
  border: none; border-radius: 50%;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0 18px;
  box-shadow: 0 0 0 0 rgba(192,57,43,0);
  transition: transform .15s, box-shadow .3s, background .15s;
  position: relative;
}
.rbar-play-btn:hover {
  transform: scale(1.08);
  background: #D9534F;
}
#mtv-radio-bar.playing .rbar-play-btn {
  animation: rbar-glow 2s ease-in-out infinite;
}
@keyframes rbar-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); }
  50%      { box-shadow: 0 0 0 8px rgba(192,57,43,.25); }
}

/* ── ③ CENTRE : WAVEFORM + TITRE DÉFILANT ────── */
.rbar-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.07);
  height: 100%;
  overflow: hidden;
}
/* Waveform */
.rbar-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex-shrink: 0;
}
.rbar-wave span {
  display: block;
  width: 3px;
  background: var(--mtv-primary);
  border-radius: 2px 2px 0 0;
  opacity: .35;
  transform-origin: bottom;
  transition: height .1s;
}
/* Hauteurs statiques */
.rbar-wave span:nth-child(1)  { height: 4px; }
.rbar-wave span:nth-child(2)  { height: 8px; }
.rbar-wave span:nth-child(3)  { height: 14px; }
.rbar-wave span:nth-child(4)  { height: 10px; }
.rbar-wave span:nth-child(5)  { height: 18px; }
.rbar-wave span:nth-child(6)  { height: 12px; }
.rbar-wave span:nth-child(7)  { height: 20px; }
.rbar-wave span:nth-child(8)  { height: 14px; }
.rbar-wave span:nth-child(9)  { height: 8px; }
.rbar-wave span:nth-child(10) { height: 16px; }
.rbar-wave span:nth-child(11) { height: 10px; }
.rbar-wave span:nth-child(12) { height: 6px; }
/* Animation quand lecture */
#mtv-radio-bar.playing .rbar-wave span {
  opacity: 1;
  animation: wave-rfi .6s ease-in-out infinite alternate;
}
#mtv-radio-bar.playing .rbar-wave span:nth-child(1)  { animation-duration:.55s; animation-delay:0s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(2)  { animation-duration:.7s;  animation-delay:.05s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(3)  { animation-duration:.45s; animation-delay:.1s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(4)  { animation-duration:.8s;  animation-delay:.07s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(5)  { animation-duration:.5s;  animation-delay:.12s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(6)  { animation-duration:.65s; animation-delay:.03s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(7)  { animation-duration:.4s;  animation-delay:.15s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(8)  { animation-duration:.75s; animation-delay:.09s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(9)  { animation-duration:.6s;  animation-delay:.06s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(10) { animation-duration:.5s;  animation-delay:.11s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(11) { animation-duration:.7s;  animation-delay:.04s; }
#mtv-radio-bar.playing .rbar-wave span:nth-child(12) { animation-duration:.45s; animation-delay:.08s; }
@keyframes wave-rfi {
  from { transform: scaleY(.2); }
  to   { transform: scaleY(1); }
}
/* Titre défilant */
.rbar-track-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.rbar-track-scroll {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
}
/* Animation seulement si texte long */
.rbar-track-scroll.scrolling {
  animation: rbar-scroll 18s linear infinite;
}
.rbar-track-sep { color: var(--mtv-primary); opacity: .6; }
@keyframes rbar-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── ④ PROGRAMME EN COURS ────────────────────── */
.rbar-prog-block {
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 180px;
  max-width: 220px;
}
.rbar-prog-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--mtv-primary);
  text-transform: uppercase;
}
.rbar-prog-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.rbar-prog-time {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  font-variant-numeric: tabular-nums;
}

/* ── ⑤ VOLUME ────────────────────────────────── */
.rbar-vol-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.rbar-vol-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
  flex-shrink: 0;
}
.rbar-vol-btn:hover { color: rgba(255,255,255,.8); }
.rbar-vol-slider-wrap {
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.rbar-vol-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--mtv-primary);
  border-radius: 2px;
  pointer-events: none;
  transition: width .05s;
}
.rbar-vol-range {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  margin: 0;
}

/* ── ⑥ ACTIONS WHATSAPP ─────────────────────── */
.rbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
}
.rbar-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.rbar-btn-react {
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  color: #25D366;
}
.rbar-btn-react:hover {
  background: rgba(37,211,102,.22);
  color: #2EE872;
}
.rbar-btn-participer {
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.35);
  color: #FF8A7A;
}
.rbar-btn-participer:hover {
  background: rgba(192,57,43,.25);
  color: #FFA098;
}

/* ── ⑦ BOUTON FERMER ────────────────────────── */
.rbar-close {
  width: 40px; height: 40px;
  background: none;
  border: none;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-right: 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.rbar-close:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
}

/* ── TOGGLE FLOTTANT ─────────────────────────── */
#rbar-toggle {
  position: fixed;
  bottom: 14px; right: 18px;
  z-index: 8999;
  background: #0D0D0D;
  border: 2px solid var(--mtv-primary);
  border-radius: 8px;
  color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  display: none;
  align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .2px;
}
#rbar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
#rbar-toggle.show { display: flex; }
.rbar-toggle-dot {
  width: 7px; height: 7px;
  background: var(--mtv-primary);
  border-radius: 50%;
  animation: rbar-blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .rbar-prog-block { display: none; }
}
@media (max-width: 768px) {
  #mtv-radio-bar   { height: 64px; border-top-width: 2px; }
  body.has-radio-bar { padding-bottom: 64px; }
  .rbar-brand      { min-width: 0; padding: 0 12px; }
  .rbar-logo-name  { font-size: 13px; }
  .rbar-vol-block  { display: none; }
  .rbar-actions    { padding: 0 10px; gap: 6px; }
  .rbar-btn-wa span{ display: none; }
  .rbar-btn-wa     { padding: 8px; border-radius: 50%; }
  .rbar-center     { padding: 0 10px; }
}
@media (max-width: 480px) {
  .rbar-brand  { display: none; }
  .rbar-center { padding: 0 8px; }
  .rbar-play-btn { width: 42px; height: 42px; margin: 0 12px; }
}

/* ===================================================
   POPUP — BASE
   =================================================== */
.mtv-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(20,10,8,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mtv-popup-overlay.open {
  opacity: 1; pointer-events: all;
}
.mtv-popup {
  background: var(--mtv-surface);
  border-radius: 18px;
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  max-height: 90vh; overflow-y: auto;
}
.mtv-popup-overlay.open .mtv-popup {
  transform: translateY(0) scale(1);
}
.mtv-popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--mtv-surface2);
  border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--mtv-text2); z-index: 1;
  transition: background .15s;
}
.mtv-popup-close:hover { background: var(--mtv-border); }
.popup-hero {
  border-radius: 16px 16px 0 0;
  padding: 32px 28px 24px;
  text-align: center;
}
.popup-body { padding: 20px 28px 28px; }
/* Popup bienvenue */
#popup-bienvenue .popup-hero {
  background: linear-gradient(135deg, var(--mtv-primary-soft), var(--mtv-accent-soft));
}
/* Popup participation */
#popup-participer .popup-hero {
  background: linear-gradient(135deg, var(--mtv-green-soft), #EAF4FB);
}
/* Popup newsletter */
#popup-newsletter .popup-hero {
  background: linear-gradient(135deg, #EAF4FB, var(--mtv-primary-soft));
}
.popup-icon { font-size: 52px; margin-bottom: 14px; }
.popup-title { font-size: 22px; font-weight: 900; color: var(--mtv-text); margin-bottom: 8px; }
.popup-subtitle { font-size: 14px; color: var(--mtv-text2); line-height: 1.65; }
.popup-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--mtv-border);
  border-radius: 9px; font-size: 14px;
  color: var(--mtv-text); background: var(--mtv-surface);
  margin-bottom: 10px;
  transition: border-color .2s;
}
.popup-input:focus { outline: none; border-color: var(--mtv-primary); }
.popup-btn-primary {
  width: 100%; padding: 13px;
  background: var(--mtv-primary); color: #fff;
  border: none; border-radius: 9px;
  font-size: 14px; font-weight: 800;
  cursor: pointer; transition: background .15s;
  margin-bottom: 8px;
}
.popup-btn-primary:hover { background: var(--mtv-primary-light); }
.popup-btn-secondary {
  width: 100%; padding: 10px;
  background: transparent; color: var(--mtv-text3);
  border: none; font-size: 13px; cursor: pointer;
}
.popup-btn-secondary:hover { color: var(--mtv-text2); }
.popup-features {
  display: flex; gap: 10px;
  margin: 16px 0;
}
.popup-feature {
  flex: 1; text-align: center;
  padding: 12px 8px;
  background: var(--mtv-surface2);
  border-radius: 10px;
  font-size: 12px; color: var(--mtv-text2);
}
.popup-feature-ic { font-size: 22px; margin-bottom: 5px; }
.popup-feature-lbl { font-weight: 700; }
.popup-divider {
  text-align: center; color: var(--mtv-text3);
  font-size: 12px; margin: 10px 0;
  position: relative;
}
.popup-divider::before, .popup-divider::after {
  content:''; position: absolute;
  top: 50%; width: 38%; height: 1px;
  background: var(--mtv-border);
}
.popup-divider::before { left: 0; }
.popup-divider::after  { right: 0; }
.popup-note { font-size: 11px; color: var(--mtv-text3); text-align: center; margin-top: 10px; }

/* ── Popup Participer — rôles cliquables + WhatsApp ── */
.pp-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pp-role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  background: var(--mtv-surface2, #F2EFE9);
  border: 1.5px solid var(--mtv-border, #E8E2D9);
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  color: var(--mtv-text2, #6B5E55);
  line-height: 1.3;
  text-align: center;
  transition: all .15s;
}
.pp-role-btn:first-child { font-size: 20px; }
.pp-role-btn > :first-child { font-size: 22px; }
.pp-role-btn:hover {
  border-color: var(--mtv-primary);
  background: var(--mtv-primary-soft, #FDECEA);
  color: var(--mtv-primary);
}
.pp-role-btn.active {
  border-color: var(--mtv-green);
  background: var(--mtv-green-soft, #EAFAF1);
  color: var(--mtv-green);
  box-shadow: 0 0 0 3px rgba(39,174,96,.12);
}
/* Bouton WhatsApp principal */
.popup-btn-wa-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-bottom: 12px;
  opacity: .55;
  pointer-events: none;
}
.popup-btn-wa-main:hover {
  background: #1EBE5A;
  transform: translateY(-1px);
  color: #fff;
}
