/* ============================================================
   RADIOSOFT 2026 - TEMPLATE BROADCAST (v2 "Station Claire")
   Refonte radicale : canvas papier clair, hero antenne pleine
   largeur dans la couleur de la station, cartouches encre,
   cartes blanches a ombres douces.
   L'admin garde ses couleurs d'identite (--primary, --secondary,
   --accent, --live) : elles colorent le hero, les accents, les
   filets. Le template definit le support (papier + encre),
   comme tout template "clair".
   Toutes les conditions d'affichage restent intactes.
   ============================================================ */

/* ---------- Canvas papier : surcharge des neutres ---------- */
body.template-broadcast {
    /* Support fixe du template (papier + encre) */
    --bc-paper: #f6f4ef;
    --bc-ink: #14171c;
    --bc-ink-2: #21252c;
    --bc-ink-text: #f2f0ea;

    /* Bascule des variables neutres pour tous les fragments */
    --bg-dark: #f6f4ef;
    --bg-medium: #edeae3;
    --bg-light: #e4e0d7;
    --bg-card: #ffffff;
    --bg-hover: #f0ede6;
    --text: #171a20;
    --text-secondary: #5a616c;
    --text-dim: #9aa1ac;
    --border: rgba(23, 26, 32, 0.13);
    --shadow: 0 2px 6px rgba(23, 26, 32, 0.06);
    --shadow-lg: 0 18px 44px rgba(23, 26, 32, 0.12);
    --glow-primary: none;
    --glow-secondary: none;
    --neon-pink: none;
    --neon-blue: none;

    /* Variables utilisees par les fragments avec des fallbacks
       blancs (heritage canvas sombre) : on les definit ici pour
       que TOUTES les pages basculent proprement en clair */
    --text-color: var(--text);
    --text-primary: var(--text);
    --text-muted: var(--text-secondary);
    --card-bg: #ffffff;
    --card-hover: var(--bg-hover);
    --border-color: var(--border);

    --bc-card-shadow: 0 1px 2px rgba(23, 26, 32, 0.05), 0 10px 28px rgba(23, 26, 32, 0.08);
    --bc-card-shadow-hover: 0 2px 4px rgba(23, 26, 32, 0.06), 0 18px 44px rgba(23, 26, 32, 0.13);
    --bc-radius: 14px;
    --bc-maxw: 1240px;
    --bc-player-h: 70px;

    background: var(--bc-paper);
    color: var(--text);
    font-family: var(--font-body, sans-serif);
    padding-bottom: calc(var(--bc-player-h) + 16px);
}

body.template-broadcast > .header { display: none; }

/* ============================================================
   1. TOPBAR ENCRE (date + reseaux)
   ============================================================ */
body.template-broadcast .bc-topbar {
    background: var(--bc-ink);
    font-size: 0.7rem;
}
body.template-broadcast .bc-topbar-inner {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
body.template-broadcast .bc-topbar-date {
    color: rgba(242, 240, 234, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.template-broadcast .bc-topbar-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
body.template-broadcast .bc-topbar-social { display: flex; gap: 14px; }
body.template-broadcast .bc-topbar-social a {
    color: rgba(242, 240, 234, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}
body.template-broadcast .bc-topbar-social a:hover { color: #fff; }
body.template-broadcast .bc-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    display: inline-block;
}
@keyframes bcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ============================================================
   2. BANDEAU MESSAGES / DEDICACES (module admin)
   ============================================================ */
body.template-broadcast .bc-dedicaces {
    display: flex;
    align-items: center;
    height: 36px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 5;
}
body.template-broadcast .bc-dedicaces-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    background: var(--bc-ink);
    color: var(--bc-ink-text);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
body.template-broadcast .bc-dedicaces .dedicaces-marquee {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}
body.template-broadcast .bc-dedicaces .dedicaces-track {
    display: inline-flex;
    white-space: nowrap;
    animation: bcMarquee 40s linear infinite;
}
body.template-broadcast .bc-dedicaces .dedicaces-track:hover { animation-play-state: paused; }
@keyframes bcMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
body.template-broadcast .bc-dedicaces .message-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 1.6rem;
    position: relative;
}
body.template-broadcast .bc-dedicaces .message-item strong { color: var(--text); font-weight: 700; }
body.template-broadcast .bc-dedicaces .message-item::after {
    content: "/";
    position: absolute;
    right: -4px;
    color: var(--primary);
}
body.template-broadcast .bc-send-message {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body, sans-serif);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 16px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
body.template-broadcast .bc-send-message:hover { color: var(--bc-ink-text); background: var(--bc-ink); }

/* ============================================================
   3. HEADER STICKY BLANC (logo + nav + ecouter)
   ============================================================ */
body.template-broadcast .bc-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s;
}
body.template-broadcast .bc-header.is-stuck { box-shadow: 0 8px 30px rgba(23, 26, 32, 0.1); }
body.template-broadcast .bc-header-inner {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    padding: 0 24px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}
body.template-broadcast .bc-header-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
body.template-broadcast .bc-header-logo img {
    max-height: 44px;
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.template-broadcast .bc-nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}
body.template-broadcast .bc-nav-list > li { position: relative; }
body.template-broadcast .bc-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
body.template-broadcast .bc-nav-list > li > a:hover { background: var(--bg-medium); }
body.template-broadcast .bc-nav-list > li > a.active {
    background: var(--bc-ink);
    color: var(--bc-ink-text);
}
body.template-broadcast .bc-caret { font-size: 0.6rem; margin-left: 5px; }

/* Dropdown pages perso */
body.template-broadcast .bc-nav-list .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--bc-card-shadow-hover);
    list-style: none;
    margin: 0;
    padding: 8px;
    z-index: 950;
}
body.template-broadcast .bc-nav-list .has-dropdown.open .dropdown-menu { display: block; }
body.template-broadcast .bc-nav-list .dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s, background 0.2s;
}
body.template-broadcast .bc-nav-list .dropdown-menu li a:hover { color: var(--text); background: var(--bg-medium); }

/* Pilule ECOUTER */
body.template-broadcast .bc-header-listen {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    background: var(--bc-ink);
    border: none;
    border-radius: 999px;
    color: var(--bc-ink-text);
    font-family: var(--font-body, sans-serif);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
body.template-broadcast .bc-header-listen:hover { transform: scale(1.04); }
body.template-broadcast .bc-header-listen.is-playing { background: var(--live); color: #fff; }
body.template-broadcast .bc-header-listen.is-playing .bc-live-dot { background: #fff; animation: bcPulse 1.2s ease infinite; }

/* Burger mobile */
body.template-broadcast .bc-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 10px;
    flex-shrink: 0;
}
body.template-broadcast .bc-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    transition: transform 0.25s, opacity 0.25s;
}
body.template-broadcast .bc-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.template-broadcast .bc-nav-toggle.active span:nth-child(2) { opacity: 0; }
body.template-broadcast .bc-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   4. HERO ANTENNE (bande couleur station, pleine largeur)
   ============================================================ */
body.template-broadcast .bc-hero {
    background:
        repeating-linear-gradient(-55deg,
            rgba(20, 23, 28, 0.045) 0, rgba(20, 23, 28, 0.045) 2px,
            transparent 2px, transparent 14px),
        linear-gradient(115deg, var(--primary) 0%, var(--secondary) 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
    padding-bottom: 26px;
}
body.template-broadcast .bc-hero-inner {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    padding: 40px 24px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
body.template-broadcast .bc-hero-left { min-width: 0; }
body.template-broadcast .bc-hero-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: rgba(20, 23, 28, 0.72);
    margin-bottom: 10px;
}
body.template-broadcast .bc-onair-lamp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1.5px solid rgba(20, 23, 28, 0.55);
    color: var(--bc-ink);
    transition: all 0.3s;
}
body.template-broadcast .bc-onair-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(20, 23, 28, 0.45);
}
body.template-broadcast .bc-onair-txt {
    font-family: var(--font-title, sans-serif);
    font-size: 0.74rem;
    letter-spacing: 0.26em;
}
body.template-broadcast.bc-onair .bc-onair-lamp {
    background: var(--live);
    border-color: var(--live);
    color: #fff;
    box-shadow: 0 0 24px var(--live-glow);
}
body.template-broadcast.bc-onair .bc-onair-dot { background: #fff; animation: bcPulse 1.2s ease infinite; }

body.template-broadcast .bc-hero-station {
    font-family: var(--font-title, sans-serif);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    color: var(--bc-ink);
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.template-broadcast .bc-hero-track {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 600;
    color: rgba(20, 23, 28, 0.78);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.template-broadcast .bc-hero-freq {
    margin: 14px 0 0;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(20, 23, 28, 0.6);
}
body.template-broadcast .bc-masthead-apps { margin-top: 14px; display: flex; gap: 8px; }
body.template-broadcast .bc-masthead-apps a {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bc-ink);
    text-decoration: none;
    border: 1.5px solid rgba(20, 23, 28, 0.4);
    border-radius: 999px;
    padding: 5px 13px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
body.template-broadcast .bc-masthead-apps a:hover { background: var(--bc-ink); color: var(--bc-ink-text); border-color: var(--bc-ink); }

body.template-broadcast .bc-hero-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}
body.template-broadcast .bc-eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 58px;
}
body.template-broadcast .bc-eq span {
    width: 5px;
    height: 14%;
    border-radius: 3px 3px 0 0;
    background: var(--bc-ink);
    opacity: 0.35;
    transition: opacity 0.3s;
}
body.template-broadcast.bc-onair .bc-eq span {
    opacity: 0.85;
    animation: bcEq 0.9s ease-in-out infinite alternate;
}
body.template-broadcast .bc-eq span:nth-child(2n) { animation-duration: 0.7s; animation-delay: 0.1s; }
body.template-broadcast .bc-eq span:nth-child(3n) { animation-duration: 1.1s; animation-delay: 0.25s; }
body.template-broadcast .bc-eq span:nth-child(4n) { animation-duration: 0.8s; animation-delay: 0.4s; }
body.template-broadcast .bc-eq span:nth-child(5n) { animation-duration: 1s; animation-delay: 0.15s; }
@keyframes bcEq {
    0% { height: 12%; }
    100% { height: 100%; }
}
body.template-broadcast .bc-hero-play {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--bc-ink);
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.2s;
    padding: 0;
    box-shadow: 0 14px 34px rgba(20, 23, 28, 0.3);
}
body.template-broadcast .bc-hero-play:hover { transform: scale(1.06); }
body.template-broadcast .bc-hero-play svg { width: 38px; height: 38px; }
body.template-broadcast .bc-hero-play .icon-pause { display: none; }
body.template-broadcast.bc-onair .bc-hero-play .icon-play { display: none; }
body.template-broadcast.bc-onair .bc-hero-play .icon-pause { display: block; }

/* Regle de tuner FM sous le hero */
body.template-broadcast .bc-tuner {
    position: relative;
    height: 26px;
    margin-top: -2px;
    background:
        repeating-linear-gradient(90deg,
            rgba(23, 26, 32, 0.18) 0, rgba(23, 26, 32, 0.18) 1px,
            transparent 1px, transparent 14px),
        repeating-linear-gradient(90deg,
            rgba(23, 26, 32, 0.35) 0, rgba(23, 26, 32, 0.35) 1px,
            transparent 1px, transparent 70px);
    background-position: bottom;
    background-size: 100% 8px, 100% 14px;
    background-repeat: repeat-x;
}
body.template-broadcast .bc-tuner-scale {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    padding: 2px 24px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}
body.template-broadcast .bc-tuner-needle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 38%;
    width: 2px;
    background: var(--live);
    box-shadow: 0 0 8px var(--live-glow);
}
body.template-broadcast.bc-onair .bc-tuner-needle { animation: bcNeedle 14s ease-in-out infinite alternate; }
@keyframes bcNeedle {
    0% { left: 38%; }
    50% { left: 62%; }
    100% { left: 45%; }
}

/* ============================================================
   5. CONTENU PRINCIPAL
   ============================================================ */
body.template-broadcast .bc-main {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    padding: 26px 24px 60px;
    min-height: 55vh;
}

/* ============================================================
   6. OVERRIDES DES FRAGMENTS AJAX (pages/*.php)
   Cartes blanches arrondies + ombres douces sur papier.
   ============================================================ */

body.template-broadcast .section { padding: 40px 0; }
body.template-broadcast .section-alt { background: transparent; }
body.template-broadcast .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    border-bottom: none;
    padding-bottom: 0;
}
body.template-broadcast .section-title {
    font-family: var(--font-title, sans-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    letter-spacing: 0.06em;
    color: var(--bc-ink-text);
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bc-ink);
    padding: 7px 20px 6px;
    border-radius: 10px;
    position: relative;
}
body.template-broadcast .section-title .title-icon { display: none; }
body.template-broadcast .section-title::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
body.template-broadcast .btn-text {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    background: none;
    box-shadow: none;
}
body.template-broadcast .btn-text:hover { color: var(--text); transform: none; }

/* --- Cartes generiques --- */
body.template-broadcast .card,
body.template-broadcast .card-emission,
body.template-broadcast .card-article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-card-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
body.template-broadcast .card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: var(--bc-card-shadow-hover);
}
body.template-broadcast .card-image { border-radius: 0; }
body.template-broadcast .card-image img { border-radius: 0; }
body.template-broadcast .card-badge {
    border-radius: 999px;
    background: var(--bc-ink);
    color: var(--bc-ink-text);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: none;
}
body.template-broadcast .card-title { font-family: var(--font-title, sans-serif); letter-spacing: 0.03em; }
body.template-broadcast .card-overlay { border-radius: 0; }

/* --- Boutons --- */
body.template-broadcast .btn {
    border-radius: 999px;
    box-shadow: none;
    letter-spacing: 0.14em;
}
body.template-broadcast .btn-primary {
    background: var(--bc-ink);
    color: var(--bc-ink-text);
    box-shadow: none;
}
body.template-broadcast .btn-primary:hover {
    background: var(--bc-ink-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 23, 28, 0.2);
}

/* --- Hero slideshow --- */
body.template-broadcast .hero-slideshow {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: var(--bc-card-shadow-hover);
}

/* --- Portail (auto-contenu) : en-tetes --- */
body.template-broadcast .portail-info,
body.template-broadcast .portail-actu-radio { border-radius: 0; background: transparent; }
body.template-broadcast .portail-header {
    text-align: left;
    margin-bottom: 26px;
    border-bottom: none;
    padding-bottom: 0;
}
body.template-broadcast .portail-title { justify-content: flex-start; }
body.template-broadcast .portail-title h2 {
    font-family: var(--font-title, sans-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    letter-spacing: 0.06em;
    background: var(--bc-ink);
    -webkit-text-fill-color: var(--bc-ink-text);
    color: var(--bc-ink-text);
    padding: 7px 20px 6px;
    border-radius: 10px;
}
body.template-broadcast .portail-icon { color: var(--primary); }
body.template-broadcast .portail-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.66rem;
    color: var(--text-secondary);
}

/* --- Bandeau FLASH INFO --- */
body.template-broadcast .flash-info-wrapper { border-radius: 0; background: transparent; }
body.template-broadcast .flash-info-banner {
    background: transparent !important;
    border: none;
    padding: 8px 0 !important;
    margin-bottom: 8px !important;
}
body.template-broadcast .flash-label {
    background: var(--live) !important;
    color: #fff !important;
    padding: 4px 12px !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.22em !important;
    border-radius: 6px !important;
    text-shadow: none !important;
}
body.template-broadcast .flash-line { background: var(--border) !important; height: 1px !important; }

/* --- Grille FLASH INFO : une 2x2 + cartes blanches --- */
body.template-broadcast .flash-info-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: transparent;
    border: none;
}
body.template-broadcast .flash-card {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--bc-radius) !important;
    box-shadow: var(--bc-card-shadow) !important;
    overflow: hidden;
}
body.template-broadcast .flash-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--bc-card-shadow-hover) !important;
    border-color: var(--border) !important;
}
body.template-broadcast .flash-card-img,
body.template-broadcast .flash-card-img img { border-radius: 8px !important; }
body.template-broadcast .flash-card-cat {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.58rem !important;
}
@media (min-width: 900px) {
    body.template-broadcast .flash-info-grid .flash-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
    }
    body.template-broadcast .flash-info-grid .flash-card:first-child .flash-card-img {
        width: 100% !important;
        height: 250px !important;
        max-width: none !important;
        flex: none !important;
        border-radius: 0 !important;
    }
    body.template-broadcast .flash-info-grid .flash-card:first-child .flash-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 !important;
    }
    body.template-broadcast .flash-info-grid .flash-card:first-child .flash-card-content {
        padding: 18px 22px 22px !important;
    }
    body.template-broadcast .flash-info-grid .flash-card:first-child .flash-card-titre {
        font-family: var(--font-title, sans-serif) !important;
        font-size: 1.5rem !important;
        line-height: 1.15 !important;
        letter-spacing: 0.02em;
        -webkit-line-clamp: 3 !important;
    }
    body.template-broadcast .flash-info-grid .flash-card:first-child .flash-card-minititre {
        font-size: 0.88rem !important;
        -webkit-line-clamp: 3 !important;
    }
}
@media (max-width: 899px) {
    body.template-broadcast .flash-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    body.template-broadcast .flash-info-grid { grid-template-columns: 1fr; }
}

/* --- Article du jour (portail-featured) --- */
body.template-broadcast .portail-featured { margin: 34px 0 44px; }
body.template-broadcast .portail-featured-card {
    border-radius: var(--bc-radius) !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    box-shadow: var(--bc-card-shadow) !important;
    overflow: hidden;
}
body.template-broadcast .portail-featured-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--bc-card-shadow-hover) !important;
    border-color: var(--border) !important;
}
body.template-broadcast .portail-featured-image { border-radius: 0 !important; }
body.template-broadcast .portail-featured-content { padding: 26px 28px !important; }
body.template-broadcast .portail-featured-title,
body.template-broadcast .portail-featured-card h3 {
    font-family: var(--font-title, sans-serif) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.15 !important;
}
body.template-broadcast .portail-featured-meta {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.62rem !important;
}

/* --- Chroniques (portail-news-grid) --- */
body.template-broadcast .portail-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: transparent;
    border: none;
}
body.template-broadcast .portail-news-card {
    border-radius: var(--bc-radius) !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    padding: 20px 22px !important;
    flex-direction: column;
    box-shadow: var(--bc-card-shadow) !important;
    position: relative;
}
body.template-broadcast .portail-news-card:hover {
    transform: translateY(-4px) !important;
    background: #fff !important;
    border-color: var(--border) !important;
    box-shadow: var(--bc-card-shadow-hover) !important;
}
body.template-broadcast .portail-news-icon {
    border-radius: 10px !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
}
body.template-broadcast .portail-news-category {
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-size: 0.6rem !important;
}
body.template-broadcast .portail-news-card h4,
body.template-broadcast .portail-news-card .portail-news-titre {
    font-family: var(--font-title, sans-serif) !important;
    font-size: 1.08rem !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
}
body.template-broadcast .portail-news-link {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
}
@media (max-width: 899px) {
    body.template-broadcast .portail-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    body.template-broadcast .portail-news-grid { grid-template-columns: 1fr; }
}

/* --- Titres de rubrique du portail --- */
body.template-broadcast .portail-section-title {
    font-family: var(--font-title, sans-serif) !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
    color: var(--text) !important;
}
body.template-broadcast .portail-section-line { background: var(--border) !important; height: 1px !important; }

/* --- Emission en cours / sondage --- */
body.template-broadcast .emission-en-cours-card,
body.template-broadcast .sondage-card {
    border-radius: var(--bc-radius) !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    box-shadow: var(--bc-card-shadow) !important;
}
body.template-broadcast .emission-en-cours-image,
body.template-broadcast .emission-en-cours-image img { border-radius: 10px !important; }
body.template-broadcast .sondage-badge,
body.template-broadcast .emission-en-cours-badge {
    border-radius: 999px !important;
    box-shadow: none !important;
}

/* --- Portail actu radio --- */
body.template-broadcast .portail-actu-featured,
body.template-broadcast .portail-actu-featured-image,
body.template-broadcast .portail-actu-item,
body.template-broadcast .portail-actu-item-image { border-radius: var(--bc-radius) !important; box-shadow: var(--bc-card-shadow) !important; }
body.template-broadcast .portail-actu-featured-title {
    font-family: var(--font-title, sans-serif) !important;
    letter-spacing: 0.02em !important;
}

/* ============================================================
   6ter. COMPAT CANVAS CLAIR
   Les fragments (pages/*.php) codent certains textes en blanc
   en dur (heritage du canvas sombre). On les rebascule vers
   l'encre UNIQUEMENT quand ils reposent sur fond clair.
   ============================================================ */

/* Titres et sous-titres des breves flash (cartes blanches) */
body.template-broadcast .flash-card-titre { color: var(--text) !important; }
body.template-broadcast .flash-card-minititre { color: var(--text-secondary) !important; }
body.template-broadcast .flash-source-info { color: var(--text-dim) !important; }

/* Label FLASH INFO : encre (la couleur live admin peut etre claire) */
body.template-broadcast .flash-label {
    background: var(--bc-ink) !important;
    color: #fff !important;
}

/* Titre de l'article du jour, cote contenu (fond blanc) */
body.template-broadcast .portail-featured-content h3,
body.template-broadcast .portail-featured-content .portail-featured-title { color: var(--text) !important; }
body.template-broadcast .portail-featured-content p { color: var(--text-secondary) !important; }

/* Titres de rubriques du portail (spans internes blancs en dur) */
body.template-broadcast .portail-section-title,
body.template-broadcast .portail-section-title span { color: var(--text) !important; }

/* Titres des cartes chroniques */
body.template-broadcast .portail-news-card h4,
body.template-broadcast .portail-news-card .portail-news-titre { color: var(--text) !important; }
body.template-broadcast .portail-news-content p { color: var(--text-secondary) !important; }

/* Accents (liens, categories) : la couleur admin peut etre trop
   claire sur blanc -> on l'assombrit en preservant sa teinte */
body.template-broadcast .portail-read-more,
body.template-broadcast .portail-news-link,
body.template-broadcast .portail-news-category,
body.template-broadcast .portail-featured-meta { color: var(--primary) !important; }
body.template-broadcast .news-sidebar-date { color: var(--primary) !important; }
body.template-broadcast .legal-content h2,
body.template-broadcast .legal-content a { color: var(--primary); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    body.template-broadcast .portail-read-more,
    body.template-broadcast .portail-news-link,
    body.template-broadcast .portail-news-category,
    body.template-broadcast .portail-featured-meta,
    body.template-broadcast .news-sidebar-date,
    body.template-broadcast .secondary-article .article-meta,
    body.template-broadcast .animateur-card-role,
    body.template-broadcast .animateur-card-link {
        color: color-mix(in srgb, var(--primary) 55%, var(--bc-ink)) !important;
    }
    body.template-broadcast .legal-content h2,
    body.template-broadcast .legal-content a {
        color: color-mix(in srgb, var(--primary) 55%, var(--bc-ink)) !important;
    }
    body.template-broadcast .bc-player-live,
    body.template-broadcast .bc-footer-col h4 { color: color-mix(in srgb, var(--primary) 70%, #ffffff); }
    body.template-broadcast .bc-player-live { color: color-mix(in srgb, var(--live) 60%, var(--bc-ink)); }
}

/* ============================================================
   6quater. COMPAT CLAIR — CORRECTIFS ISSUS DE L'AUDIT
   63 points confirmes par audit adversarial des fragments :
   couleurs sombres/blanches codees en dur pour l'ancien canvas.
   ============================================================ */

/* --- Portail actu radio (accueil, quand articles publies) --- */
body.template-broadcast .portail-actu-featured-title { color: var(--text) !important; }
body.template-broadcast .portail-actu-item-title { color: var(--text) !important; }
body.template-broadcast .portail-actu-featured {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}
body.template-broadcast .portail-actu-item:hover { background: var(--bg-medium) !important; }

/* --- Emission en cours : barre de progression --- */
body.template-broadcast .emission-progress-bar { background: rgba(23, 26, 32, 0.12) !important; }
body.template-broadcast .emission-progress-time { color: var(--text-secondary) !important; }

/* --- Pages chroniques (actu-cine, actu-people, insolite, auto-moto,
       reseaux-sociaux, site-semaine, anecdote-musicale) --- */
body.template-broadcast .news-article-wrapper { background: none !important; }
body.template-broadcast .news-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
}
body.template-broadcast .breadcrumb-arrow { color: rgba(23, 26, 32, 0.35) !important; }
body.template-broadcast .news-title,
body.template-broadcast .news-subtitle,
body.template-broadcast .news-source-info div strong,
body.template-broadcast .news-sidebar-card h3 { color: var(--text) !important; }
body.template-broadcast .news-back-btn {
    color: var(--text) !important;
    background: rgba(23, 26, 32, 0.07) !important;
}
body.template-broadcast .news-back-btn:hover { background: var(--bc-ink) !important; color: var(--bc-ink-text) !important; }
body.template-broadcast .news-main,
body.template-broadcast .news-sidebar-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--bc-card-shadow) !important;
}
body.template-broadcast .news-share-btn {
    background: rgba(23, 26, 32, 0.05) !important;
    border: 1px solid rgba(23, 26, 32, 0.18) !important;
    color: var(--text-secondary) !important;
}
body.template-broadcast .news-share-btn:hover {
    background: var(--bc-ink) !important;
    border-color: var(--bc-ink) !important;
    color: var(--bc-ink-text) !important;
}
body.template-broadcast .news-share-btn.copied { background: #22c55e !important; border-color: #22c55e !important; color: #fff !important; }
body.template-broadcast .news-tag { background: var(--bg-medium) !important; }
body.template-broadcast .news-tag:hover { background: var(--bg-light) !important; }
body.template-broadcast .news-meta-bar { border-bottom-color: var(--border) !important; }
body.template-broadcast .news-tags { border-top-color: var(--border) !important; border-bottom-color: var(--border) !important; }
body.template-broadcast .news-footer { border-top-color: var(--border) !important; }
body.template-broadcast .news-sidebar-list li { border-bottom-color: var(--border) !important; }

/* --- Page historique des titres --- */
body.template-broadcast .history-page-item:not(:last-child) { border-bottom: 1px solid rgba(23, 26, 32, 0.08) !important; }
body.template-broadcast .history-page-item:hover { background: rgba(23, 26, 32, 0.04) !important; }
body.template-broadcast .history-page-cover-placeholder { background: rgba(23, 26, 32, 0.06) !important; }

/* --- Page flash-info --- */
body.template-broadcast .flash-source-info { background: rgba(23, 26, 32, 0.1) !important; color: var(--text-secondary) !important; }
body.template-broadcast .flash-sidebar-item:hover { background: rgba(23, 26, 32, 0.04) !important; }

/* --- Bandeau frequences (page articles, designs configurables admin) --- */
body.template-broadcast .frequencies-banner .frequencies-title,
body.template-broadcast .frequencies-banner .freq-number { text-shadow: none !important; }
body.template-broadcast .frequencies-banner.design3 {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--bc-card-shadow) !important;
}
body.template-broadcast .frequencies-banner.design3 .frequencies-title { color: var(--text) !important; }
body.template-broadcast .frequencies-banner.design3 .frequencies-icon,
body.template-broadcast .frequencies-banner.design5 .frequencies-icon { background: var(--primary) !important; backdrop-filter: none; }
body.template-broadcast .frequencies-banner.design3 .freq-item {
    background: var(--bg-medium) !important;
    border: 1px solid var(--border) !important;
}
body.template-broadcast .frequencies-banner.design3 .freq-number { color: var(--text) !important; }
body.template-broadcast .frequencies-banner.design3 .freq-zone { color: var(--text-secondary) !important; }
body.template-broadcast .frequencies-banner.design2 .box-header,
body.template-broadcast .frequencies-banner.design3 .box-header,
body.template-broadcast .frequencies-banner.design4 .box-header,
body.template-broadcast .frequencies-banner.design5 .box-header,
body.template-broadcast .frequencies-banner.compact5 .box-header { color: var(--text-secondary) !important; }
body.template-broadcast .frequencies-banner.design2 .box-header svg,
body.template-broadcast .frequencies-banner.design3 .box-header svg,
body.template-broadcast .frequencies-banner.design4 .box-header svg,
body.template-broadcast .frequencies-banner.design5 .box-header svg,
body.template-broadcast .frequencies-banner.compact5 .box-header svg { fill: var(--text-secondary) !important; }
body.template-broadcast .frequencies-banner.design2 .box-item,
body.template-broadcast .frequencies-banner.design3 .box-item,
body.template-broadcast .frequencies-banner.design4 .box-item,
body.template-broadcast .frequencies-banner.design5 .box-item {
    background: var(--bg-medium) !important;
    border: 1px solid var(--border) !important;
}
body.template-broadcast .frequencies-banner.design3 .box-operator { color: var(--text) !important; }
body.template-broadcast .frequencies-banner.design3 .box-canal { color: var(--text-secondary) !important; }
body.template-broadcast .frequencies-banner.design2 .box-section,
body.template-broadcast .frequencies-banner.design3 .box-section,
body.template-broadcast .frequencies-banner.design4 .box-section,
body.template-broadcast .frequencies-banner.design5 .box-section { border-top-color: var(--border) !important; }
body.template-broadcast .frequencies-banner.design4 { box-shadow: 8px 8px 20px rgba(23, 26, 32, 0.1), -8px -8px 20px rgba(255, 255, 255, 0.9) !important; }
body.template-broadcast .frequencies-banner.design4 .freq-item { box-shadow: 4px 4px 10px rgba(23, 26, 32, 0.08), -4px -4px 10px rgba(255, 255, 255, 0.9) !important; }

/* --- Fiche animateur : bloc reseaux (textes blancs en dur ->
       on force un fond sombre opaque pour les garder lisibles) --- */
body.template-broadcast .animateur-social-section {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.97) 0%, rgba(20, 20, 30, 0.98) 100%) !important;
}

/* --- Pages legales : filet sous les titres --- */
body.template-broadcast .legal-section h2 { border-bottom: 1px solid var(--border) !important; }

/* --- Grille des programmes : onglets et titres de jour --- */
body.template-broadcast .grille-tab {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 999px;
    box-shadow: none;
}
body.template-broadcast .grille-tab:hover { background: var(--bg-medium); color: var(--text); }
body.template-broadcast .grille-tab.active {
    background: var(--bc-ink) !important;
    color: var(--bc-ink-text) !important;
    box-shadow: none !important;
}
body.template-broadcast .grille-day-title { color: var(--primary); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    body.template-broadcast .grille-day-title { color: color-mix(in srgb, var(--primary) 55%, var(--bc-ink)); }
}

/* ============================================================
   7. PARTENAIRES
   ============================================================ */
body.template-broadcast .bc-partenaires {
    border-top: 1px solid var(--border);
    background: transparent;
    padding: 44px 0;
}
body.template-broadcast .bc-partenaires .partenaires-title {
    font-family: var(--font-title, sans-serif);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 26px;
}
body.template-broadcast .partenaire-item {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--bc-card-shadow);
}
body.template-broadcast .partenaire-item:hover { border-color: var(--border); box-shadow: var(--bc-card-shadow-hover); }
body.template-broadcast .partenaire-logo { filter: grayscale(1); opacity: 0.75; transition: filter 0.25s, opacity 0.25s; }
body.template-broadcast .partenaire-item:hover .partenaire-logo { filter: none; opacity: 1; }
body.template-broadcast .partenaire-name { color: var(--text-secondary); }

/* ============================================================
   8. FOOTER ENCRE
   ============================================================ */
body.template-broadcast .bc-footer {
    background: var(--bc-ink);
    border-top: none;
    margin-top: 30px;
    padding: 0;
    color: #c6cbd3;
}
body.template-broadcast .bc-footer-inner {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    padding: 54px 24px 42px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
body.template-broadcast .bc-footer-col h3 {
    font-family: var(--font-title, sans-serif);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    color: #fff;
}
body.template-broadcast .bc-footer-col h4 {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--primary);
    margin-bottom: 16px;
}
body.template-broadcast .bc-footer-col p {
    color: #a7adb7;
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 46ch;
}
body.template-broadcast .bc-footer-col ul { list-style: none; margin: 0; padding: 0; }
body.template-broadcast .bc-footer-col ul li { margin-bottom: 9px; color: #a7adb7; font-size: 0.85rem; line-height: 1.55; }
body.template-broadcast .bc-footer-col ul li a { color: #c6cbd3; text-decoration: none; transition: color 0.2s; }
body.template-broadcast .bc-footer-col ul li a:hover { color: #fff; }
body.template-broadcast .bc-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
body.template-broadcast .bc-footer-social a {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c6cbd3;
    text-decoration: none;
    border: 1px solid rgba(242, 240, 234, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    transition: all 0.2s;
}
body.template-broadcast .bc-footer-social a:hover { background: #fff; color: var(--bc-ink); border-color: #fff; }
body.template-broadcast .bc-footer-legal {
    border-top: 1px solid rgba(242, 240, 234, 0.12);
    padding: 18px 24px;
    max-width: var(--bc-maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.72rem;
    color: #7d8490;
}
body.template-broadcast .bc-footer-legal .footer-legal a { color: #a7adb7; text-decoration: none; }
body.template-broadcast .bc-footer-legal .footer-legal a:hover { color: #fff; }
body.template-broadcast .bc-footer-legal .footer-sep { margin: 0 6px; color: #565d68; }
body.template-broadcast .footer-powered a { color: #7d8490; text-decoration: none; }
body.template-broadcast .footer-powered a:hover { color: #fff; }

/* ============================================================
   9. BARRE PLAYER (blanche, fixe en bas)
   ============================================================ */
body.template-broadcast .bc-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    height: var(--bc-player-h);
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 34px rgba(23, 26, 32, 0.1);
}
body.template-broadcast .bc-player-inner {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
body.template-broadcast .bc-player-id {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}
body.template-broadcast .bc-player-cover {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-medium);
}
body.template-broadcast .bc-player-station { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.template-broadcast .bc-player-radioname {
    font-family: var(--font-title, sans-serif);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
body.template-broadcast .bc-player-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--live);
}
body.template-broadcast .bc-player.podcast-mode .bc-player-live { visibility: hidden; }

body.template-broadcast .bc-player-track {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}
body.template-broadcast .bc-player-track.has-history { cursor: pointer; }
body.template-broadcast .bc-player-track .player-track-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
}
body.template-broadcast .bc-player-track .player-track-separator { color: var(--primary); flex-shrink: 0; }
body.template-broadcast .bc-player-track .player-track-artist {
    font-size: 0.82rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

body.template-broadcast .bc-player-time {
    display: none;
    align-items: baseline;
    gap: 5px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-size: 0.74rem;
    color: var(--text-secondary);
}
body.template-broadcast .bc-player.podcast-mode .bc-player-time { display: inline-flex; }
body.template-broadcast .bc-time-sep { color: var(--text-dim); }

body.template-broadcast .bc-player-progress {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 5px;
    display: none;
}
body.template-broadcast .bc-player.podcast-mode .bc-player-progress { display: block; }
body.template-broadcast .bc-player-progress .progress-bar {
    height: 5px;
    width: 100%;
    background: var(--bg-light);
    cursor: pointer;
    border-radius: 0;
}
body.template-broadcast .bc-player-progress .progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 0;
    transition: width 0.2s linear;
}

body.template-broadcast .bc-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
body.template-broadcast .bc-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    padding: 0;
}
body.template-broadcast .bc-btn-icon:hover { color: var(--bc-ink-text); border-color: var(--bc-ink); background: var(--bc-ink); }
body.template-broadcast .bc-btn-podcast-only { display: none; }
body.template-broadcast .bc-player.podcast-mode .bc-btn-podcast-only { display: inline-flex; }
body.template-broadcast .bc-btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bc-ink);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
}
body.template-broadcast .bc-btn-play:hover { background: var(--bc-ink-2); transform: scale(1.05); }
body.template-broadcast .bc-btn-play svg { width: 22px; height: 22px; }
body.template-broadcast .bc-btn-play .icon-pause { display: none; }
body.template-broadcast .bc-player.playing .bc-btn-play .icon-play { display: none; }
body.template-broadcast .bc-player.playing .bc-btn-play .icon-pause { display: block; }

body.template-broadcast .bc-player-volume { display: flex; align-items: center; gap: 8px; }
body.template-broadcast .bc-player-volume .volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-light);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
body.template-broadcast .bc-player-volume .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bc-ink);
    cursor: pointer;
    border: none;
}
body.template-broadcast .bc-player-volume .volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bc-ink);
    cursor: pointer;
    border: none;
}

/* Panels ancres a la barre */
body.template-broadcast .bc-player .history-panel {
    bottom: calc(var(--bc-player-h) + 12px);
    left: auto;
    right: 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--bc-card-shadow-hover);
}
body.template-broadcast .stream-menu {
    position: fixed;
    bottom: calc(var(--bc-player-h) + 12px);
    right: 24px;
    left: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--bc-card-shadow-hover);
}
body.template-broadcast .stream-menu::after { display: none; }
body.template-broadcast .podcast-panel {
    border-radius: 0;
    background: #fff;
    border-left: 1px solid var(--border);
}
body.template-broadcast .podcast-panel-header h3 { color: var(--text); }

/* ============================================================
   10. RGPD (bandeau + modal, clairs)
   ============================================================ */
body.template-broadcast .rgpd-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -14px 40px rgba(23, 26, 32, 0.14);
    padding: 18px 24px;
    transition: bottom 0.45s ease;
}
body.template-broadcast .rgpd-banner.show { bottom: 0; }
body.template-broadcast .rgpd-banner.has-player.show { bottom: var(--bc-player-h); }
body.template-broadcast .rgpd-content {
    max-width: var(--bc-maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
body.template-broadcast .rgpd-text h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}
body.template-broadcast .rgpd-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 70ch;
    line-height: 1.5;
}
body.template-broadcast .rgpd-text a { color: var(--text); text-decoration: underline; }
body.template-broadcast .rgpd-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
body.template-broadcast .rgpd-btn {
    font-family: var(--font-body, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
}
body.template-broadcast .rgpd-btn-accept {
    background: var(--bc-ink);
    border-color: var(--bc-ink);
    color: var(--bc-ink-text);
}
body.template-broadcast .rgpd-btn-accept:hover { background: var(--bc-ink-2); }
body.template-broadcast .rgpd-btn-refuse:hover,
body.template-broadcast .rgpd-btn-settings:hover { color: var(--text); border-color: var(--text); }

body.template-broadcast .rgpd-modal {
    position: fixed;
    inset: 0;
    background: rgba(23, 26, 32, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    padding: 20px;
}
body.template-broadcast .rgpd-modal.show { opacity: 1; visibility: visible; }
body.template-broadcast .rgpd-modal-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    padding: 28px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--bc-card-shadow-hover);
}
body.template-broadcast .rgpd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--bc-ink);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
body.template-broadcast .rgpd-modal-header h3 {
    font-family: var(--font-title, sans-serif);
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: var(--text);
}
body.template-broadcast .rgpd-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}
body.template-broadcast .rgpd-modal-close:hover { color: var(--text); }
body.template-broadcast .rgpd-option { padding: 14px 0; border-bottom: 1px solid var(--border); }
body.template-broadcast .rgpd-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
body.template-broadcast .rgpd-option-title { font-weight: 700; font-size: 0.85rem; color: var(--text); }
body.template-broadcast .rgpd-option-desc { font-size: 0.74rem; color: var(--text-secondary); line-height: 1.5; }
body.template-broadcast .rgpd-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
body.template-broadcast .rgpd-toggle input { opacity: 0; width: 0; height: 0; }
body.template-broadcast .rgpd-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
body.template-broadcast .rgpd-toggle-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(23, 26, 32, 0.25);
    transition: transform 0.2s, background 0.2s;
}
body.template-broadcast .rgpd-toggle input:checked + .rgpd-toggle-slider { background: var(--bc-ink); border-color: var(--bc-ink); }
body.template-broadcast .rgpd-toggle input:checked + .rgpd-toggle-slider::before { transform: translateX(18px); }
body.template-broadcast .rgpd-toggle input:disabled + .rgpd-toggle-slider { opacity: 0.55; cursor: not-allowed; }
body.template-broadcast .rgpd-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ============================================================
   11. MODALES (surcharges claires de main.css)
   ============================================================ */
body.template-broadcast .modal-content {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--bc-card-shadow-hover);
    color: var(--text);
}
body.template-broadcast .modal-content h2 { color: var(--text); }
body.template-broadcast .modal-content p { color: var(--text-secondary); }
body.template-broadcast .form-group input,
body.template-broadcast .form-group textarea {
    border-radius: 10px;
    background: var(--bg-medium);
    color: var(--text);
    border-color: var(--border);
}
body.template-broadcast .form-group input:focus,
body.template-broadcast .form-group textarea:focus { box-shadow: none; border-color: var(--bc-ink); }
body.template-broadcast .form-group label { color: var(--text-secondary); }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    body.template-broadcast .bc-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    body.template-broadcast .bc-player-radioname { max-width: 110px; }
    body.template-broadcast .bc-hero-play { width: 74px; height: 74px; }
    body.template-broadcast .bc-hero-play svg { width: 30px; height: 30px; }
    body.template-broadcast .bc-nav-list > li > a { padding: 9px 10px; font-size: 0.68rem; }
}

@media (max-width: 860px) {
    body.template-broadcast .bc-topbar-social { display: none; }

    /* Header mobile */
    body.template-broadcast .bc-header-inner { min-height: 60px; gap: 12px; }
    body.template-broadcast .bc-nav-toggle { display: flex; order: 3; margin-left: auto; }
    body.template-broadcast .bc-header-listen { order: 2; margin-left: auto; padding: 9px 14px; }
    body.template-broadcast .bc-header-listen .bc-header-listen-txt { display: none; }
    body.template-broadcast .bc-nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(23, 26, 32, 0.14);
        padding: 10px 14px 16px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        gap: 2px;
    }
    body.template-broadcast .bc-nav-list.open { display: flex; }
    body.template-broadcast .bc-nav-list > li > a {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
    }
    body.template-broadcast .bc-nav-list .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        border-left: 3px solid var(--bc-ink);
        border-radius: 0;
        margin-left: 16px;
        background: transparent;
    }

    /* Hero mobile */
    body.template-broadcast .bc-hero-inner { padding: 28px 20px 34px; gap: 20px; }
    body.template-broadcast .bc-hero-station { font-size: clamp(2rem, 9vw, 2.8rem); white-space: normal; }
    body.template-broadcast .bc-eq { display: none; }
    body.template-broadcast .bc-hero-play { width: 64px; height: 64px; flex-shrink: 0; }
    body.template-broadcast .bc-hero-play svg { width: 26px; height: 26px; }
    body.template-broadcast .bc-hero-kicker { flex-wrap: wrap; gap: 8px; }

    /* Player mobile */
    body.template-broadcast .bc-player-track { display: none; }
    body.template-broadcast .bc-player-volume .volume-slider { display: none; }
    body.template-broadcast .bc-player-inner { gap: 12px; justify-content: space-between; }
    body.template-broadcast .bc-player-radioname { max-width: 34vw; }
    body.template-broadcast .bc-player .history-panel,
    body.template-broadcast .stream-menu { right: 12px; left: 12px; width: auto; }
}

@media (max-width: 560px) {
    body.template-broadcast .bc-topbar-date { font-size: 0.6rem; }
    body.template-broadcast .bc-dedicaces-label { display: none; }
    body.template-broadcast .bc-send-message span { display: none; }
    body.template-broadcast .bc-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
    body.template-broadcast .bc-footer-legal { flex-direction: column; text-align: center; }
    body.template-broadcast .bc-main { padding: 18px 14px 40px; }
    body.template-broadcast .bc-player-volume { display: none; }
    body.template-broadcast .bc-header-logo img { max-height: 36px; max-width: 140px; }
}
