/* =========================================================
   RGZ RADIO — Design « Cadran »  (refonte complète)
   ---------------------------------------------------------
   Idée : un poste de radio moderne. Une règle graduée (le
   cadran) marque chaque section, la console « En direct »
   flotte sous la bannière, l'encre indigo sert de scène et
   l'ambre de voyant « On Air ».
   Les noms de classes sont conservés : les autres pages
   (programmation, actus, agenda, playlists…) restent compatibles.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------
   1. Variables & thèmes
   --------------------------------------------------------- */
:root {
    --primary: #f0132d;          /* rouge signal RGZ */
    --primary-hover: #d00f26;
    --ink: #15122e;              /* indigo profond : scène, console, pied de page */
    --ink-2: #1f1b45;
    --ink-3: #2c2760;
    --gold: #ffb020;             /* ambre : voyant On Air */
    --gold-hover: #e89a00;

    --font-heading: 'Unbounded', 'Hanken Grotesk', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-ui: var(--font-body);
    --f-display: var(--font-heading);
    --f-script: var(--font-heading);

    --radius: 14px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --transition: all .25s ease;

    --topbar-h: 40px;
    --header-h: 76px;
    --shadow-soft: 0 18px 40px -22px rgba(21, 18, 46, .35);
    --chip: #15122e;             /* pastille des pictos (glyphe toujours blanc dessus) */
}

/* Thème clair (par défaut) */
html[data-theme="light"] {
    --bg-main: #eeeff6;
    --bg-panel: #ffffff;
    --bg-card: #f6f6fb;
    --border-color: #dadbea;
    --text-main: #15122e;
    --text-muted: #5a5878;
    --bg-input: #ffffff;
    --header-bg: #ffffff;
}

/* Thème sombre */
html[data-theme="dark"] {
    --bg-main: #0f0d24;
    --bg-panel: #181536;
    --bg-card: #211d44;
    --border-color: #34305e;
    --text-main: #f3f2ff;
    --text-muted: #a9a6cf;
    --bg-input: #120f2b;
    --header-bg: #120f2b;
    --chip: #2c2760;
}

/* ---------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -.01em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
html[data-theme="dark"] :focus-visible,
.band-agenda :focus-visible,
.site-footer :focus-visible, .live-widget :focus-visible { outline-color: var(--gold); }

/* Utilitaires */
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.mt-15 { margin-top: 18px; }

/* ---------------------------------------------------------
   3. Boutons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: 0;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 12px 26px -12px rgba(240, 19, 45, .85);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-large { padding: 16px 30px; font-size: 1.02rem; }
.btn-full { width: 100%; }
.btn-discover { min-width: 190px; }

.btn-outline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 22px;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline i { transition: transform .2s; }
.btn-outline:hover i { transform: translateX(4px); }

.icon-btn, .icon-btn-outline {
    background: transparent;
    border: 0;
    color: var(--text-main);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.icon-btn:hover { color: var(--primary); background: rgba(240, 19, 45, .1); }
.icon-btn-outline { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.icon-btn-outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---------------------------------------------------------
   4. En-tête (legacy + site-header)
   --------------------------------------------------------- */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul { display: flex; gap: 24px; }
nav ul li a { font-weight: 700; font-size: .95rem; color: var(--text-main); }
nav ul li a:hover, nav ul li a.active { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn { display: none; }

/* Barre fine du haut */
.topbar { background: var(--ink); color: #d9d7f2; font-size: .86rem; }
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tb-tagline { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; text-align: right; } /* slogan à droite, réseaux à gauche */
.tb-tagline i { color: #fff; }
.tb-social { display: flex; align-items: center; gap: 4px; }
.tb-social a {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1rem; line-height: 1;
    color: #d9d7f2;
}
.tb-social a:hover { background: var(--primary); color: #fff; }
.tb-social .s-fb, .tb-social .s-yt { color: #d9d7f2; }
.tb-social .s-ig i { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }

/* En-tête principal */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    font-family: var(--font-body);
}
.site-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo-container { display: flex; align-items: center; flex: 0 0 auto; }
.site-header .logo-container .logo {
    height: 48px; width: auto; max-height: none; display: block; filter: none;
    transition: transform .25s ease;
}
.site-header .logo-container .logo:hover { transform: scale(1.04); }

.site-header nav { flex: 1; display: flex; justify-content: center; }
.site-header nav ul { gap: 2px; }
.site-header nav ul li a {
    position: relative;
    display: block;
    padding: 10px 15px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .97rem;
    color: var(--text-main);
    background: transparent;
}
.site-header nav ul li a:hover { color: var(--primary); background: transparent; }
.site-header nav ul li a.active { color: var(--primary); background: transparent; }
.site-header nav ul li a.active::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
    height: 3px; border-radius: 3px; background: var(--primary);
}

.site-header .header-right { flex: 0 0 auto; gap: 10px; }

.hd-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; padding: 0 22px;
    border-radius: 999px; border: 0; cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: .95rem;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.hd-pill:hover { transform: translateY(-2px); }
.hd-live { background: var(--primary); color: #fff; animation: lampRing 2.6s ease-out infinite; }
.hd-live i { font-size: .8rem; }
.hd-account { background: transparent; color: var(--text-main); border: 1.5px solid var(--border-color); }
.hd-account:hover { border-color: var(--primary); }
.hd-account .caret { font-size: .65rem; margin-left: 2px; transition: transform .2s; }
.hd-account.active { box-shadow: 0 0 0 3px rgba(240, 19, 45, .25); }
.hd-icon {
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; background: var(--chip); color: #fff;
    font-size: 1rem; transition: var(--transition);
}
.hd-icon:hover { background: var(--primary); color: #fff; }
@keyframes lampRing {
    0% { box-shadow: 0 0 0 0 rgba(240, 19, 45, .5); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(240, 19, 45, 0); }
}

/* Menu Compte */
.hd-account-wrap { position: relative; }
.hd-account .lbl { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-account-wrap.open .caret { transform: rotate(180deg); }
.hd-menu {
    position: absolute; right: 0; top: calc(100% + 12px);
    min-width: 220px; padding: 8px;
    border-radius: 20px;
    background: var(--bg-panel); color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 50px -16px rgba(21, 18, 46, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1100;
}
.hd-account-wrap.open .hd-menu { opacity: 1; visibility: visible; transform: none; }
.hd-menu::before {
    content: ""; position: absolute; top: -7px; right: 26px; width: 14px; height: 14px;
    background: inherit;
    border-left: 1px solid var(--border-color); border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}
.hd-menu a {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 13px;
    font-weight: 600; font-size: 1rem; color: inherit; white-space: nowrap;
}
.hd-menu a i { width: 18px; text-align: center; color: var(--primary); }
.hd-menu a:hover, .hd-menu a:focus-visible { background: var(--primary); color: #fff; outline: none; }
.hd-menu a:hover i, .hd-menu a:focus-visible i { color: #fff; }

/* Sous-menu « Programmation » */
.site-header nav ul li.has-dropdown { position: relative; }
.site-header nav .dd-caret { font-size: .6em; margin-left: 6px; transition: transform .2s; }
.site-header nav ul li.has-dropdown:hover > a .dd-caret,
.site-header nav ul li.has-dropdown:focus-within > a .dd-caret { transform: rotate(180deg); }
.site-header nav ul.dropdown-menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
    flex-direction: column; gap: 2px; padding: 8px; margin: 0;
    border-radius: 20px; background: var(--bg-panel); color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 50px -16px rgba(21, 18, 46, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s; z-index: 1100;
}
.site-header nav ul.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-header nav ul li.has-dropdown:hover > .dropdown-menu,
.site-header nav ul li.has-dropdown:focus-within > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.site-header nav ul.dropdown-menu li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px;
    font-size: .97rem; white-space: nowrap; color: var(--text-main); background: transparent;
}
.site-header nav ul.dropdown-menu li a::after { display: none; }
.site-header nav ul.dropdown-menu li a i { width: 18px; text-align: center; color: var(--primary); }
.site-header nav ul.dropdown-menu li a:hover,
.site-header nav ul.dropdown-menu li a:focus-visible,
.site-header nav ul.dropdown-menu li a.active { background: var(--primary); color: #fff; outline: none; }
.site-header nav ul.dropdown-menu li a:hover i,
.site-header nav ul.dropdown-menu li a:focus-visible i,
.site-header nav ul.dropdown-menu li a.active i { color: #fff; }

/* ---------------------------------------------------------
   5. Accueil — bannière (hero)
   --------------------------------------------------------- */
.top-section { position: relative; margin: 24px 0 64px; }

.hero {
    position: relative;
    display: grid;
    min-height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 40px 70px -40px rgba(21, 18, 46, .7);
}
.hero-slides { position: relative; display: grid; width: 100%; min-height: inherit; }
.hero-slide {
    position: relative; grid-area: 1 / 1; min-height: inherit;
    background-size: cover; background-position: center;
    padding: 64px 72px 156px;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(0deg, rgba(21, 18, 46, .7), transparent 45%),
        linear-gradient(96deg, rgba(21, 18, 46, .96) 0%, rgba(21, 18, 46, .82) 42%, rgba(21, 18, 46, .28) 100%);
}
.hero-content {
    position: relative; z-index: 2; max-width: 660px;
    opacity: 0; transform: translateY(14px);
    transition: opacity .7s ease .15s, transform .7s ease .15s;
}
.hero-slide.active .hero-content { opacity: 1; transform: none; }

.hero-content h4 {
    display: inline-flex; align-items: center;
    padding: 7px 15px; margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(6px);
    font-family: var(--font-body); font-weight: 600; font-size: .88rem;
    letter-spacing: 0; text-transform: none;
    color: #fff !important;
}
.hero-content h1 {
    font-size: clamp(2.1rem, 4.7vw, 4.1rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -.025em;
    color: #fff !important; margin-bottom: 18px;
}
.hero-content h1 .text-gold { color: inherit !important; }
.hero-content h2 {
    font-family: var(--font-body); font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.35;
    color: rgba(255, 255, 255, .94) !important; margin-bottom: 14px;
}
.hero-content p {
    font-size: 1.05rem; line-height: 1.6; max-width: 52ch;
    color: rgba(255, 255, 255, .78) !important; margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Puces : colonne verticale à droite */
.carousel-dots {
    position: absolute; z-index: 5;
    right: 26px; top: 46%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 10px;
}
.carousel-dots .dot {
    position: relative; width: 10px; height: 10px; border-radius: 6px;
    background: rgba(255, 255, 255, .4); cursor: pointer;
    transition: var(--transition);
}
.carousel-dots .dot::after { content: ""; position: absolute; inset: -9px; } /* zone tactile 28 px */
.carousel-dots .dot.active { background: var(--primary); height: 30px; }

/* ---------------------------------------------------------
   6. Accueil — la « console » flottante (En direct + derniers titres)
   --------------------------------------------------------- */
.sidebar {
    position: relative; z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
    margin: -100px 32px 0;
}
.top-section, .sidebar > * { min-width: 0; max-width: 100%; }
.widget {
    min-width: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}
.widget-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.widget-header h3 { font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: -.005em; }
.widget-header > i { font-size: 1.05rem; }

.live-widget {
    color: #fff;
    border-color: rgba(255, 255, 255, .1);
    background:
        radial-gradient(110% 80% at 0% 0%, rgba(240, 19, 45, .42), transparent 58%),
        radial-gradient(70% 70% at 100% 100%, rgba(255, 176, 32, .14), transparent 60%),
        var(--ink);
    box-shadow: 0 30px 60px -28px rgba(21, 18, 46, .85);
}
.live-widget .widget-header h3 { color: #fff; }
.live-indicator {
    position: relative;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}
.live-indicator::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--primary); opacity: 0;
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(.5); opacity: .9; }
    100% { transform: scale(1.4); opacity: 0; }
}

.live-widget { display: flex; flex-direction: column; flex: none; }
.live-player-card { display: flex; flex-direction: column; background: transparent; border: 0; padding: 0; color: #fff; }

/* Colonne de gauche : widget « En direct » compact + widget « À suivre » */
.side-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-col .live-widget { padding: 22px 24px; }
.side-col .live-widget .widget-header { margin-bottom: 14px; }
.next-widget { flex: 1; display: flex; flex-direction: column; }
.next-widget .widget-header { margin-bottom: 14px; }
.next-widget .hp-card { margin: auto 0; }
.player-info { display: flex; align-items: center; gap: 16px; }
.player-info img { width: auto; height: 52px; max-width: 120px; object-fit: contain; }
.player-info h4 { font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; color: #fff; }
.player-info p { color: rgba(255, 255, 255, .7); font-size: .92rem; }

.player-controls { display: flex; align-items: center; gap: 22px; margin-top: 0; padding-top: 18px; }
.play-btn-large {
    position: relative; flex: none;
    width: 64px; height: 64px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--primary); color: #fff; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(240, 19, 45, .9);
    transition: transform .2s, background .2s;
}
.play-btn-large:has(.fa-play) i { transform: translateX(2px); }
.play-btn-large:hover { transform: scale(1.06); background: var(--primary-hover); }
.play-btn-large::before {
    content: ""; position: absolute; inset: -9px; border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .38);
    animation: spin 14s linear infinite; animation-play-state: paused;
}
.player-controls:has(.fa-pause) .play-btn-large::before { animation-play-state: running; border-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Spectre : se fige à l'arrêt, s'anime pendant la lecture */
.sound-wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 56px; flex: 1; min-width: 0; overflow: hidden; }
.sound-wave .bar {
    flex: 1 1 0; min-width: 2px; max-width: 9px; height: 100%; border-radius: 99px;
    background: linear-gradient(0deg, var(--primary), var(--gold));
    transform-origin: center;
    animation: wave var(--t, 1.1s) var(--d, 0s) infinite alternate ease-in-out;
    animation-play-state: paused;
}
.player-controls:has(.fa-pause) .sound-wave .bar { animation-play-state: running; }
@keyframes wave { 0% { height: 14%; opacity: .75; } 100% { height: 100%; opacity: 1; } }

/* Responsive : moins de barres sur petits écrans pour garder des barres lisibles */
@media (max-width: 992px) { .sound-wave .bar:nth-child(n+33) { display: none; } }
@media (max-width: 560px) { .sound-wave { height: 48px; } .sound-wave .bar:nth-child(n+25) { display: none; } }
@media (max-width: 380px) { .sound-wave .bar:nth-child(n+19) { display: none; } }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 44px; height: 44px; border: 1.5px solid var(--border-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--text-main);
}
.social-icons a:hover { border-color: var(--primary); color: var(--primary); }

/* Derniers titres (liste générée par /js/radio-tracks.js) */
.track-list { display: flex; flex-direction: column; margin-bottom: 18px; }
.track-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 4px;
    border-top: 1px solid var(--border-color);
}
.track-list li:first-child { border-top: 0; padding-top: 0; }
.track-list img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }

/* Dernier titre diffusé (1re ligne de la liste) : la pochette « respire » en continu.
   Réappliquée à chaque rafraîchissement de la liste (le JS recrée les <li>), sans JS. */
.tracks-widget .track-list li:first-child:not(.trk-empty) img {
    position: relative;
    animation: trkCover 3.4s ease-in-out infinite, trkRing 3.4s ease-out infinite;
    will-change: transform, box-shadow;
}
@keyframes trkCover {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1) saturate(1); }
    25%      { transform: scale(1.07) rotate(-2.5deg); filter: brightness(1.08) saturate(1.15); }
    60%      { transform: scale(1.04) rotate(2deg); filter: brightness(1.04) saturate(1.1); }
}
@keyframes trkRing {
    0%   { box-shadow: 0 0 0 0 rgba(240, 19, 45, .55), 0 14px 24px -14px rgba(21, 18, 46, .7); }
    70%  { box-shadow: 0 0 0 12px rgba(240, 19, 45, 0), 0 14px 24px -14px rgba(21, 18, 46, .7); }
    100% { box-shadow: 0 0 0 0 rgba(240, 19, 45, 0), 0 14px 24px -14px rgba(21, 18, 46, .7); }
}
.track-info { flex-grow: 1; min-width: 0; }
.track-info h4 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; }
.track-info p { font-size: .88rem; color: var(--text-muted); }
.track-time { font-size: .85rem; color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.track-list .track-info h4, .track-list .track-info p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-list .track-time { white-space: nowrap; align-self: flex-start; }
.trk-actions { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.trk-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1.5px solid var(--border-color); color: var(--text-muted);
    border-radius: 999px; padding: 3px 11px; font-size: .78rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); font-family: inherit;
}
.trk-btn:hover { border-color: var(--primary); color: var(--primary); }
.trk-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.trk-btn:disabled { opacity: .6; cursor: wait; }
.trk-empty { color: var(--text-muted); justify-content: center; padding: 16px 6px; font-size: .92rem; }
.rgz-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px;
    box-shadow: 0 16px 40px -10px rgba(21, 18, 46, .6); z-index: 9999;
    font-size: .92rem; max-width: 90vw; text-align: center;
}
.rgz-toast a { color: var(--gold); font-weight: 700; margin-left: 10px; text-decoration: underline; }

/* ---------------------------------------------------------
   7. Titres de section : le cadran
   --------------------------------------------------------- */
.section-header, .band-head {
    position: relative;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    padding-bottom: 28px; margin-bottom: 30px;
}
.section-header::after, .band-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
    color: var(--text-main); opacity: .3; pointer-events: none;
    background:
        linear-gradient(90deg, currentColor 0 2px, transparent 2px) 0 100% / 48px 12px repeat-x,
        linear-gradient(90deg, currentColor 0 1px, transparent 1px) 0 100% / 8px 6px repeat-x;
}
.section-header::before, .band-head::before {
    content: ""; position: absolute; left: 0; bottom: 0; z-index: 1;
    width: 4px; height: 24px; border-radius: 3px; background: var(--primary);
}
.band-agenda .band-head::after { color: #fff; }

.title-with-icon { display: flex; align-items: center; gap: 14px; }
.title-with-icon { min-width: 0; }
.title-with-icon > i {
    width: 46px; height: 46px; flex: none; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.1rem;
    background: var(--chip); color: #fff !important;
}
.title-with-icon h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 800;
    text-transform: none; letter-spacing: -.02em;
}
.section-header > a {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.section-header > a:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-wrap { padding-top: 60px; padding-bottom: 60px; }
.programmation { background: none; border: 0; padding: 0; margin: 0; }
.home-wrap .programmation { margin-bottom: 0; }
.home-empty { color: var(--text-muted); font-size: .95rem; text-align: center; padding: 22px 0; }
.home-day { display: block; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }

/* ---------------------------------------------------------
   8. Cartes d'émissions (accueil + console)
   --------------------------------------------------------- */
.programs-grid, .hp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
    gap: 16px;
}
.hp-card {
    position: relative; display: block; isolation: isolate; overflow: hidden;
    border-radius: 22px;
    background: var(--ink-2); color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* Image de l'émission en fond, floutée, avec voile sombre pour garder le texte lisible */
.hp-card .hp-bg {
    display: block; position: absolute; inset: -22px; z-index: -2;
    background-size: cover; background-position: center;
    filter: blur(16px) saturate(1.15);
    transform: scale(1.05);
}
.hp-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, rgba(21, 18, 46, .72) 0%, rgba(21, 18, 46, .5) 100%);
}
.hp-card .hp-time, .hp-card .hp-text h4 { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hp-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: var(--c, #8d8ab5); z-index: 1;
}
.hp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hp-inner { display: flex; align-items: center; gap: 16px; padding: 18px 18px 20px 26px; }
.hp-logo {
    width: 88px; height: 88px; flex: none; border-radius: 18px; overflow: hidden;
    background: var(--ink-3); border: 1px solid rgba(255, 255, 255, .25);
    display: flex; align-items: center; justify-content: center;
}
.hp-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hp-logo.no-img { background: var(--bg-card); font-size: 1.9rem; color: var(--text-muted); }
.hp-text { min-width: 0; flex: 1; }
.hp-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hp-state {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px);
    font-weight: 700; font-size: .78rem;
}
.hp-state.live { background: var(--primary); color: #fff; }
.hp-state.live i { font-size: .5rem; animation: pgBlink 1.4s infinite; }
.hp-time { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hp-text h4 {
    font-family: var(--font-body); font-weight: 800;
    font-size: 1.18rem; line-height: 1.2; letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.hp-tag { color: rgba(255, 255, 255, .85); font-size: .92rem; margin: 4px 0 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hp-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hp-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(21, 18, 46, .55); color: #fff;
    backdrop-filter: blur(6px);
    font-weight: 700; font-size: .74rem;
}
.hp-pill.hp-cat { color: #fff; }
.hp-pill.hp-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8d8ab5); }
.hp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .25); }
.hp-progress i { display: block; height: 100%; background: var(--gold); }
.hp-card.is-live { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240, 19, 45, .14); }
@keyframes pgBlink { 50% { opacity: .25; } }

/* Version compacte, dans la console « En direct » */
.live-player-card .hp-card { margin-bottom: 0; border-color: rgba(255, 255, 255, .16); color: #fff; border-radius: 20px; }
.live-player-card .hp-card:hover { color: #fff; border-color: rgba(255, 255, 255, .4); transform: none; box-shadow: none; }
.live-player-card .hp-state { background: rgba(255, 255, 255, .14); color: #fff; }
.live-player-card .hp-state.live { background: var(--primary); }
.live-player-card .hp-tag { color: rgba(255, 255, 255, .72); }
.live-player-card .hp-pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.live-player-card .hp-progress { background: rgba(255, 255, 255, .2); }
.hp-compact .hp-inner { gap: 14px; padding: 14px 14px 18px 22px; }
.hp-compact .hp-logo { width: 68px; height: 68px; border-radius: 15px; }
.hp-compact .hp-text h4 { font-size: 1.05rem; }
.hp-compact .hp-tag { font-size: .85rem; }

/* Pochettes de secours */
.prog-cover, .pod-mini-cover {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: var(--chip);
}
.prog-cover { font-size: 2.6rem; }
.pod-mini-cover { font-size: 1.3rem; }
.defbg { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; color: #fff; }
.defbg::before { content: ""; position: absolute; inset: -8px; background: url('/images/def-bg.jpg') center / cover no-repeat; filter: blur(5px) saturate(1.1); z-index: -1; }

/* ---------------------------------------------------------
   9. Bas d'accueil : phares · promo · podcasts
   --------------------------------------------------------- */
.bottom-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
}
.featured-shows, .podcasts-section {
    background: var(--bg-panel); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 28px;
    display: flex; flex-direction: column;
}
.featured-shows .section-header, .podcasts-section .section-header { padding-bottom: 26px; margin-bottom: 22px; }
.featured-shows .title-with-icon h3, .podcasts-section .title-with-icon h3 { font-size: 1.2rem; }
.featured-shows .title-with-icon > i, .podcasts-section .title-with-icon > i { width: 40px; height: 40px; border-radius: 12px; background: var(--chip); font-size: 1rem; }

.show-list { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.show-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); padding: 10px 14px 10px 10px;
    border-radius: 18px; border: 1px solid transparent;
}
.show-item:hover { border-color: var(--primary); }
.show-item img, .show-cover { width: 76px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; }
.show-cover { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: var(--chip); }
.show-cover.defbg { width: 76px; height: 58px; border-radius: 12px; }
.show-details { flex-grow: 1; min-width: 0; }
.show-details h4 { font-family: var(--font-body); font-weight: 800; font-size: .98rem; letter-spacing: 0; }
.show-details p { font-size: .84rem; color: var(--text-muted); }
.show-item > i { color: var(--text-muted); font-size: .8rem; transition: transform .2s; }
.show-item:hover > i { transform: translateX(3px); color: var(--primary); }

/* Carte promo : rouge signal, ondes concentriques */
.app-promo-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 36px 26px 30px;
    border-radius: var(--radius-lg); color: #fff;
    background: linear-gradient(160deg, #f0132d 0%, #b30c20 100%);
}
.promo-glow-bg {
    position: absolute; inset: 0; z-index: -1;
    background: repeating-radial-gradient(circle at 50% 118%, transparent 0 34px, rgba(255, 255, 255, .11) 34px 36px);
}
.promo-logo { width: 150px; margin-bottom: 18px; position: relative; z-index: 2; }
.app-promo-card h2 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 800; line-height: 1.25; color: #fff !important; margin-bottom: 10px; position: relative; z-index: 2; }
.app-promo-card p { color: rgba(255, 255, 255, .88) !important; margin-bottom: 24px; font-size: .98rem; position: relative; z-index: 2; }
.promo-action { position: relative; z-index: 2; }
.app-promo-card .btn-primary { background: #fff; color: var(--ink) !important; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
.app-promo-card .btn-primary:hover { background: var(--gold); }
.promo-equalizer-bars { display: flex; gap: 5px; align-items: flex-end; height: 34px; margin-top: 28px; position: relative; z-index: 2; }
.promo-equalizer-bars span { width: 5px; height: 100%; background: rgba(255, 255, 255, .85); border-radius: 3px; animation: equalizer 1.2s infinite ease-in-out alternate; }
.promo-equalizer-bars span:nth-child(1) { animation-delay: .1s; }
.promo-equalizer-bars span:nth-child(2) { animation-delay: .3s; }
.promo-equalizer-bars span:nth-child(3) { animation-delay: .5s; }
.promo-equalizer-bars span:nth-child(4) { animation-delay: .2s; }
.promo-equalizer-bars span:nth-child(5) { animation-delay: .4s; }
.promo-equalizer-bars span:nth-child(6) { animation-delay: .6s; }
.promo-equalizer-bars span:nth-child(7) { animation-delay: .15s; }
.promo-equalizer-bars span:nth-child(8) { animation-delay: .35s; }
.promo-equalizer-bars span:nth-child(9) { animation-delay: .45s; }
.promo-equalizer-bars span:nth-child(10) { animation-delay: .25s; }
@keyframes equalizer { 0% { height: 18%; } 100% { height: 100%; background: var(--gold); } }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Podcasts */
.podcast-list { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.podcast-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid transparent;
    padding: 10px 14px 10px 10px; border-radius: 18px; transition: var(--transition);
}
.podcast-item:hover { border-color: var(--primary); }
.podcast-img { position: relative; width: 68px; height: 68px; flex-shrink: 0; border-radius: 14px; overflow: hidden; }
.podcast-img img { width: 100%; height: 100%; object-fit: cover; }
.play-podcast-btn {
    position: absolute; inset: 0;
    background: rgba(21, 18, 46, .58); border: 0; color: #fff; font-size: 1.05rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
a.play-podcast-btn { text-decoration: none; }
.podcast-item:hover .play-podcast-btn, .play-podcast-btn:focus-visible, .play-podcast-btn.is-playing { opacity: 1; }
.podcast-info { flex-grow: 1; min-width: 0; }
.podcast-meta { font-size: .78rem; color: var(--text-muted); font-weight: 700; display: block; margin-bottom: 2px; }
.podcast-info h4 { font-family: var(--font-body); font-weight: 800; font-size: .98rem; letter-spacing: 0; margin-bottom: 2px; }
.podcast-info p { font-size: .84rem; color: var(--text-muted); line-height: 1.35; }

/* Mini-lecteur de podcast */
#pod-player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 16px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-panel);
    border-top: 3px solid var(--primary);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 40px -16px rgba(21, 18, 46, .4);
}
#pod-player[hidden] { display: none; }
#pod-now { font-weight: 800; font-size: .95rem; max-width: 30%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pod-audio { flex: 1; height: 38px; min-width: 0; }
#pod-close { background: none; border: 0; cursor: pointer; color: var(--text-muted); font-size: 1.15rem; width: 38px; height: 38px; border-radius: 50%; }
#pod-close:hover { background: var(--bg-card); color: var(--primary); }

/* ---------------------------------------------------------
   10. Bandeaux Actus / Agenda
   --------------------------------------------------------- */
.band { position: relative; padding: 76px 0 88px; font-family: var(--font-body); }
.band-actus { background: var(--bg-panel); border-block: 1px solid var(--border-color); }
.band-agenda { background: var(--ink); color: #fff; }
.band-inner { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.band-heading { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.band-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 999px;
    border: 1.5px solid var(--border-color); color: var(--text-main);
    font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.band-btn:hover { border-color: var(--primary); color: var(--primary); }
.band-btn i { transition: transform .2s; }
.band-btn:hover i { transform: translateX(4px); }
.band-agenda .band-btn { border-color: rgba(255, 255, 255, .3); color: #fff; }
.band-agenda .band-btn:hover { border-color: var(--gold); color: var(--gold); }
.band-body { display: block; }
.band-grid { display: grid; gap: 20px; }
.band-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.band-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.band-empty {
    grid-column: 1 / -1; min-height: 220px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--text-muted); font-weight: 600; font-size: 1.05rem;
    border: 1.5px dashed var(--border-color); border-radius: var(--radius-lg);
}
.band-agenda .band-empty { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .25); }

.news-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg-card); color: var(--text-main);
    border: 1px solid var(--border-color); border-radius: 24px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--text-muted); }
.nc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-main); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .nc-img img { transform: scale(1.05); }
.nc-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: #fff;
    background: var(--chip);
}
.cat {
    position: absolute; top: 14px; left: 14px;
    padding: 6px 12px; border-radius: 9px;
    color: #fff; font-weight: 700; font-size: .78rem;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.cat-orange { background: #e8571f; }
.cat-green { background: #2e8b3a; }
.cat-navy { background: #232c57; }
.nc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 128px; }
.nc-body h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; line-height: 1.28; letter-spacing: -.005em; color: var(--text-main); }
.nc-meta { color: var(--text-muted); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.nc-meta i { color: #fff; }
.cols-3 .nc-body { margin-top: auto; }
.nc-excerpt { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--text-muted); }
.nc-more { color: var(--primary); font-weight: 700; white-space: nowrap; }
.news-card:hover .nc-more { text-decoration: underline; }

.band-agenda .news-card { background: var(--ink-2); border-color: rgba(255, 255, 255, .1); color: #fff; }
.band-agenda .news-card:hover { border-color: rgba(255, 255, 255, .35); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .7); }
.band-agenda .nc-body h3 { color: #fff; }
.band-agenda .nc-meta, .band-agenda .nc-excerpt { color: rgba(255, 255, 255, .72); }
.band-agenda .nc-meta i { color: #fff; }
.band-agenda .nc-more { color: var(--gold); }

/* ---------------------------------------------------------
   11. Coups de cœur — « le bac à disques »
   Fond clair, bandeau classement sombre (seul élément fort),
   puis une étagère de pochettes avec légendes sous l'image.
   --------------------------------------------------------- */
.love {
    --pad: 24px;
    position: relative;
    padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
    background: var(--bg-panel);
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    font-family: var(--font-body);
}
.love-inner { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }

/* En-tête : titre à gauche, bouton à droite */
.love-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 20px 32px;
    margin-bottom: clamp(24px, 3.4vw, 36px);
}
.love-title { display: flex; align-items: center; gap: 18px; min-width: 0; }
.love-ico {
    flex: none; width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--chip); color: #fff; font-size: 1.3rem;
}
.love-ico.sm { width: 44px; height: 44px; border-radius: 13px; font-size: 1rem; background: rgba(255, 255, 255, .12); }
.love-title h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.06; overflow-wrap: anywhere;
}
.love-sub { margin-top: 6px; color: var(--text-muted); font-size: 1rem; line-height: 1.4; }

.love-btn {
    display: inline-flex; align-items: center; gap: 14px; flex: none;
    padding: 9px 9px 9px 26px; border-radius: 999px;
    background: var(--chip); color: #fff;
    font-weight: 700; font-size: .98rem; line-height: 1.2;
    transition: background .2s;
}
.love-btn i {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: .78rem;
    transition: transform .2s, background .2s;
}
.love-btn:hover { background: var(--primary); }
.love-btn:hover i { transform: translateX(3px); background: rgba(255, 255, 255, .22); }

/* Classement : les titres les plus soutenus */
.love-top {
    list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 8px;
    display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    border-radius: 28px; background: var(--chip); color: #fff;
}
.love-top li {
    display: flex; align-items: center; gap: 16px; min-width: 0;
    padding: 18px 20px; border-radius: 20px;
    background: rgba(255, 255, 255, .06);
}
.love-top li:first-child { background: rgba(255, 255, 255, .14); }
.lt-rank {
    flex: none; min-width: 1ch; text-align: center;
    font-family: var(--font-heading); font-weight: 800; line-height: 1;
    font-size: clamp(2rem, 4vw, 2.9rem); color: #fff;
}
.love-top li:not(:first-child) .lt-rank { opacity: .5; }
.lt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lt-txt b {
    font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: #fff;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    overflow-wrap: anywhere;
}
.lt-txt span {
    font-size: .9rem; color: rgba(255, 255, 255, .72);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lt-ups {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: #fff;
    font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.lt-ups i { font-size: .8rem; color: #fff; }

.love-empty {
    display: flex; align-items: center; gap: 16px;
    margin: 0 0 clamp(28px, 4vw, 44px); padding: 18px 22px;
    border-radius: 24px; background: var(--chip); color: #fff;
}
.love-empty p { margin: 0; font-size: .98rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }

/* Étagère de pochettes */
.love-shelf {
    display: grid; align-items: start;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 30px) clamp(14px, 1.6vw, 22px);
}
.love-tile {
    position: relative; min-width: 0;
    display: flex; flex-direction: column; gap: 12px;
    cursor: pointer; outline: none; border-radius: 16px;
    -webkit-tap-highlight-color: transparent;
}
.love-tile:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.love-cover {
    position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 16px 26px -20px rgba(21, 18, 46, .6);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.love-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }

/* Zoom automatique aléatoire (classe posée par le script de l'accueil) */
.love-tile.is-spot { z-index: 2; }
.love-tile.is-spot .love-cover {
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 28px 36px -18px rgba(240, 19, 45, .55), 0 0 0 3px var(--primary);
}
.love-tile.is-spot .love-cover img { transform: scale(1.16); }
.love-tile.is-spot .love-cap b { color: var(--primary); }
.love-cap b { transition: color .4s; }
.love-cover::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(21, 18, 46, .58); opacity: 0; transition: opacity .25s;
}
.love-artist-btn {
    position: absolute; z-index: 2; left: 50%; top: 50%;
    transform: translate(-50%, -42%); opacity: 0; pointer-events: none; white-space: nowrap;
    padding: 10px 18px; border-radius: 999px;
    background: #fff; color: var(--ink);
    font-weight: 700; font-size: .85rem; line-height: 1.2;
    transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.love-artist-btn:hover { background: var(--primary); color: #fff; }

.love-tile:focus-within .love-cover::after, .love-tile.is-active .love-cover::after { opacity: 1; }
.love-tile:focus-within .love-artist-btn, .love-tile.is-active .love-artist-btn {
    opacity: 1; pointer-events: auto; transform: translate(-50%, -50%);
}
.love-tile.is-active .love-cover { transform: translateY(-4px); }
@media (hover: hover) {
    .love-tile:hover .love-cover { transform: translateY(-4px); box-shadow: 0 22px 30px -20px rgba(21, 18, 46, .75); }
    .love-tile:hover .love-cover::after { opacity: 1; }
    .love-tile:hover .love-artist-btn { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
}

.love-cap { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 0 2px; min-width: 0; }
.love-cap b {
    font-weight: 800; font-size: .95rem; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.love-cap i {
    font-style: normal; font-size: .85rem; line-height: 1.3; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Emplacements vides : cadre pointillé + fausses lignes de légende */
.love-tile.ph { cursor: default; pointer-events: none; }
.love-tile.ph::before {
    content: ""; aspect-ratio: 1; border-radius: 14px;
    border: 1.5px dashed var(--border-color);
}
.love-tile.ph::after {
    content: ""; height: 44px; opacity: .8;
    background:
        linear-gradient(var(--border-color), var(--border-color)) 2px 3px / 64% 10px no-repeat,
        linear-gradient(var(--border-color), var(--border-color)) 2px 22px / 40% 9px no-repeat;
    border-radius: 6px;
}

/* Tablette : 4 colonnes, 3 rangées */
@media (max-width: 1100px) {
    .love-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .love-tile:nth-child(n+13) { display: none; }
}

/* Mobile : étagère défilante au doigt, bord à bord */
@media (max-width: 768px) {
    .love-shelf {
        display: flex; align-items: flex-start; gap: 14px;
        overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
        margin-inline: calc(var(--pad) * -1); padding: 6px var(--pad) 18px;
        scrollbar-width: none;
    }
    .love-shelf::-webkit-scrollbar { display: none; }
    .love-tile:nth-child(n+13) { display: flex; }
    .love-tile { flex: 0 0 148px; scroll-snap-align: start; }
    .love-tile.ph { display: none; }
}
@media (max-width: 560px) {
    .love-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 1.15rem; }
    .love-title { gap: 14px; }
    .love-head { align-items: stretch; }
    .love-btn { width: 100%; justify-content: space-between; }
    .love-top { border-radius: 24px; }
    .love-top li { padding: 14px 16px; gap: 14px; border-radius: 18px; }
    .lt-ups { padding: 7px 11px; }
}
@media (max-width: 480px) {
    .love { --pad: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .love-cover, .love-artist-btn, .love-cover img { transition: none; }
    .love-tile.is-spot .love-cover, .love-tile.is-spot .love-cover img { transform: none; }
}

/* ---------------------------------------------------------
   12. Newsletter (gazette) — bandeau ambre « On Air »
   --------------------------------------------------------- */
.gazette { position: relative; z-index: 2; background: var(--gold); color: var(--ink); font-family: var(--font-body); }
.gazette-inner {
    max-width: 1180px; margin: 0 auto; padding: 56px 24px;
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center; gap: 40px;
}
.gazette-badge {
    width: 176px; padding: 18px 20px; border-radius: 24px; background: #fff;
    box-shadow: 0 20px 36px -20px rgba(21, 18, 46, .6);
}
.gazette-badge img { width: 100%; display: block; }
.gazette-text h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.gz-line { display: none; }
.gazette-text p { font-size: 1.08rem; line-height: 1.45; max-width: 40ch; margin-top: 10px; color: var(--ink); }
.gazette .newsletter-form { display: flex; align-items: center; gap: 12px; }
.gazette .gz-input { flex: 1; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 0 24px; height: 60px; }
.gazette .gz-input i { color: var(--primary); font-size: 1.15rem; }
.gazette .newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); }
.gazette .gz-btn {
    height: 60px; padding: 0 32px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ink); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
    transition: transform .2s, background .2s;
}
.gazette .gz-btn:hover { transform: translateY(-2px); background: var(--ink-3); }

/* ---------------------------------------------------------
   13. Pied de page
   --------------------------------------------------------- */
.site-footer { position: relative; background: var(--ink); color: #fff; padding-top: 0; font-family: var(--font-body); }
.sf-main {
    max-width: 1400px; margin: 0 auto; padding: 68px 24px 44px;
    display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 56px; align-items: start;
}
.sf-brand img { width: 150px; margin-bottom: 14px; }
.sf-brand p { font-size: 1.02rem; color: rgba(255, 255, 255, .72); }
.sf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px 28px; }
.sf-links a {
    display: flex; align-items: center; gap: 14px; padding: 11px 0;
    font-weight: 700; font-size: 1rem; color: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.sf-links a i {
    width: 34px; height: 34px; flex: none; border-radius: 10px;
    display: grid; place-items: center; font-size: .88rem;
    background: rgba(255, 255, 255, .1); color: #fff; transition: transform .2s, background .2s;
}
.sf-links a:hover { color: #fff; }
.sf-links a:hover i { transform: translateX(3px); background: var(--primary); }
.sf-social h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.sf-social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-social-icons a {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem;
    transition: background .2s, transform .2s, border-color .2s;
}
.sf-social-icons a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.sf-bottom {
    max-width: 1400px; margin: 0 auto; padding: 22px 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    color: rgba(255, 255, 255, .62); font-size: .92rem;
}
.sf-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.sf-legal a { color: rgba(255, 255, 255, .62); }
.sf-legal a:hover { color: #fff; }

/* ---------------------------------------------------------
   14. Pages intérieures — bandeau de titre
   --------------------------------------------------------- */
.page-hero, .page-hero2 {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink);
    padding: clamp(56px, 9vw, 110px) 24px clamp(52px, 8vw, 96px);
}
.page-hero::before, .page-hero2::before {
    content: ""; position: absolute; inset: -20px; z-index: -2;
    background: var(--hero-img, url('/images/def-bg.jpg')) center / cover no-repeat;
}
.page-hero2::before { background-image: var(--hero-img, url('/images/def-bg2.jpg')); }
.page-hero::after, .page-hero2::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px) 0 100% / 48px 14px repeat-x,
        linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px) 0 100% / 8px 7px repeat-x,
        linear-gradient(100deg, rgba(21, 18, 46, .95) 0%, rgba(21, 18, 46, .8) 55%, rgba(21, 18, 46, .6) 100%);
}
.page-hero-inner, .page-hero-inner2 { max-width: 1352px; margin: 0 auto; }
.page-hero h1, .page-hero2 h1 {
    margin: 0; color: #fff;
    font-size: clamp(2.3rem, 8.5vw, 5.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.page-hero p, .page-hero2 p {
    margin: clamp(14px, 2.4vw, 24px) 0 0; max-width: 60ch;
    color: rgba(255, 255, 255, .78); font-size: clamp(.98rem, 2vw, 1.2rem);
}

.page-intro {
    background: var(--bg-panel); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 36px 28px; margin: 18px 0 32px; text-align: center;
}
.page-intro h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.page-intro p { color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.7; font-size: .98rem; }
.page-empty { color: var(--text-muted); text-align: center; padding: 40px 0; }

/* Bloc texte SEO (Podcasts, Programmation…) */
.seo-block {
    background: var(--bg-panel); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 35px 25px; margin-bottom: 40px; text-align: center;
    box-shadow: var(--shadow-soft);
}
.seo-block h1 { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 15px; text-transform: uppercase; letter-spacing: -.01em; }
.seo-block p { color: var(--text-muted); max-width: 900px; margin: 0 auto; line-height: 1.7; font-size: .95rem; }

.rgz-tabs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 8px; scrollbar-width: none; }
.rgz-tabs::-webkit-scrollbar { display: none; }
.rgz-tab {
    background: var(--bg-panel); border: 1.5px solid var(--border-color); color: var(--text-main);
    padding: 11px 22px; border-radius: 999px; font-weight: 700; white-space: nowrap;
    transition: var(--transition); font-size: .93rem;
}
.rgz-tab.small { padding: 7px 16px; font-size: .85rem; }
.rgz-tab:hover { border-color: var(--primary); color: var(--primary); }
.rgz-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 12px 24px -12px rgba(240, 19, 45, .8); }

.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 36px 0 50px; color: var(--text-muted); font-weight: 700; }
.pager a { color: var(--primary); font-weight: 800; }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Article (actualité / événement) */
.article {
    max-width: 860px; margin: 22px auto 44px; overflow: hidden;
    background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.article-cover { aspect-ratio: 16 / 8; background: var(--bg-card); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: 32px 36px 38px; }
.article-cat { display: inline-block; color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 9px; margin: 0 6px 12px 0; }
.article-cat.cat-past { background: #6b7280; }
.article h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-muted); font-size: .92rem; margin-bottom: 22px; }
.article-meta i { color: var(--primary); margin-right: 6px; }
.article-lead { font-weight: 600; font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.article-text p { line-height: 1.85; margin-bottom: 16px; max-width: 70ch; }
.article-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.related-title { max-width: 1100px; margin: 10px auto 20px; font-size: 1.35rem; }

/* Playlists */
.playlist-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 30px; }
.playlist-card h2 { font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.playlist-card .pl-hint { color: var(--text-muted); font-size: .9rem; margin-bottom: 18px; }
.playlist-card .track-list img { width: 56px; height: 56px; }

/* ---------------------------------------------------------
   15. Page Programmation
   --------------------------------------------------------- */
.seo-block.pg-seo { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 34px 0 22px; text-align: left; }
.seo-block.pg-seo h1 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); text-transform: none; letter-spacing: -.01em; margin-bottom: 8px; }
.seo-block.pg-seo p { margin: 0; max-width: 78ch; font-size: .95rem; }

/* Barre date + semaine : console sombre, avec la règle graduée du bandeau de titre */
.pg-bar {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 18px 32px;
    padding: 26px 22px 40px 34px;
    background:
        radial-gradient(520px 220px at 0% 0%, rgba(240, 19, 45, .3), transparent 70%),
        linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 32px; box-shadow: 0 30px 56px -30px rgba(21, 18, 46, .7);
}
.pg-bar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px) 0 100% / 48px 14px repeat-x,
        linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px) 0 100% / 8px 7px repeat-x;
}
.pg-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; }
.pg-head .pg-date-long {
    margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    line-height: 1.2; letter-spacing: -.03em; color: #fff;
}
.pg-today-tag {
    display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 5px 13px 5px 10px; border-radius: 999px;
    background: rgba(255, 176, 32, .16); color: var(--gold); vertical-align: middle;
    font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: 0;
}
.pg-today-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.pg-head .pg-btn { padding: 8px 16px; font-size: .82rem; color: #fff; border-color: rgba(255, 255, 255, .3); }
.pg-head .pg-btn:hover { color: var(--gold); border-color: var(--gold); }

.pg-week { display: flex; align-items: center; gap: 10px; margin: 0; }
.pg-arrow {
    width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: .85rem;
}
a.pg-arrow:hover { background: var(--primary); color: #fff; }
.pg-arrow.is-off { opacity: .25; }
.pg-days {
    flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px;
    border-radius: 26px; background: rgba(8, 6, 24, .45); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
}
.pg-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 11px 2px 15px; border-radius: 20px; color: #fff; transition: var(--transition); }
.pg-day .dow { font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .55); }
.pg-day .num { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.pg-day .mon { font-size: .74rem; color: rgba(255, 255, 255, .55); }
a.pg-day:hover { background: rgba(255, 255, 255, .1); }
.pg-day.is-today .num { color: var(--gold); }
.pg-day.is-today::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.pg-day.is-active { background: var(--primary); box-shadow: 0 12px 26px -10px rgba(240, 19, 45, .95); }
.pg-day.is-active .dow, .pg-day.is-active .mon, .pg-day.is-active .num { color: #fff; }
.pg-day.is-active::after { background: #fff; }
.pg-day.is-off { opacity: .28; }

/* Grille : les émissions en cartes, les plages sans émission en bandeaux pleine largeur */
.pg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 56px; }
.pg-row { position: relative; }
.pg-show {
    display: flex; flex-direction: column; overflow: hidden; background: var(--bg-panel);
    border: 1px solid var(--border-color); border-radius: 22px; box-shadow: var(--shadow-soft);
}

/* Horaire : pastille posée sur l'image */
.pg-time { display: flex; align-items: center; gap: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pg-show .pg-time {
    position: absolute; top: 14px; left: 14px; z-index: 3; gap: 8px; padding: 7px 13px; border-radius: 999px;
    background: rgba(21, 18, 46, .86); color: #fff; backdrop-filter: blur(6px);
}
.pg-show .pg-time b { font-family: var(--font-heading); font-size: .92rem; font-weight: 700; color: #fff; }
.pg-show .pg-time i { width: 10px; height: 2px; border-radius: 2px; background: var(--c, var(--primary)); opacity: 1; }
.pg-show .pg-time span { font-size: .92rem; font-weight: 700; color: #fff; opacity: .72; }
.pg-show .pg-time small { margin: 0 0 0 2px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .28); font-size: .74rem; font-weight: 700; color: rgba(255, 255, 255, .82); }

.pg-cover { position: relative; width: 100%; aspect-ratio: 2 / 1; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--ink-2); }
.pg-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c, var(--primary)); z-index: 2; }
.pg-cover .bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.1); }
.pg-cover .logo { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--ink-3); object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; display: block; }
.pg-cover.no-img { background: var(--chip); }
.pg-cover .ph-ico { position: relative; font-size: 3rem; color: #fff; opacity: .9; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }

.pg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 18px 18px; }
.pg-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: .76rem; font-weight: 800; color: #fff; background: var(--c, #888); }
.pg-pill.b-inedit { background: #d9f5e3; color: #1c7a45; }
.pg-pill.b-direct { background: #fde0e3; color: #c4172b; }
.pg-pill.b-enregistre { background: #e3eaf6; color: #34548a; }
.pg-pill.b-podcast { background: #e3eefb; color: #1d5fa8; }
.pg-pill.now { background: var(--primary); color: #fff; }
.pg-pill.now i { font-size: .45rem; animation: pgBlink 1.4s infinite; }
.pg-next { display: inline-block; background: var(--gold); color: var(--ink); padding: 5px 13px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.pg-info h3 { font-size: clamp(1rem, 1.25vw, 1.15rem); font-weight: 700; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pg-tag { font-style: italic; font-weight: 600; font-size: .92rem; color: var(--c, var(--primary)); margin: 0; }
.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.pg-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    border: 1.5px solid var(--border-color); background: transparent; color: var(--text-main);
    font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; transition: var(--transition);
}
.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn.primary:hover { color: #fff; opacity: .9; }
.pg-more { margin-top: 16px; padding: 14px 18px; background: var(--bg-card); border-radius: 16px; color: var(--text-muted); line-height: 1.7; font-size: .93rem; }
.pg-more p { margin: 0 0 8px; }
.pg-more p:last-child { margin-bottom: 0; }
.pg-more i { color: var(--primary); margin-right: 6px; }

/* À l'antenne : la grande carte, seule en pleine largeur sur fond sombre */
.pg-show.is-live {
    grid-column: 1 / -1; color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
    box-shadow: 0 30px 56px -28px rgba(240, 19, 45, .6), var(--shadow-soft);
}
.pg-show.is-live::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 4; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.pg-show.is-live .pg-info h3 { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1.12; letter-spacing: -.02em; }
.pg-show.is-live .pg-tag { color: var(--gold); font-size: 1.1rem; }
.pg-show.is-live .pg-btn:not(.primary) { border-color: rgba(255, 255, 255, .35); color: #fff; }
.pg-show.is-live .pg-btn:not(.primary):hover { border-color: var(--gold); color: var(--gold); }
.pg-show.is-live .pg-more { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .82); }
.pg-show.is-live .pg-more strong { color: #fff; }
.pg-show.is-live .pg-more i { background: rgba(255, 255, 255, .16); }
@media (min-width: 760px) {
    .pg-show.is-live { flex-direction: row; }
    .pg-show.is-live .pg-cover { width: 46%; aspect-ratio: auto; min-height: 290px; }
    .pg-show.is-live .pg-time { top: 22px; left: 22px; }
    .pg-show.is-live .pg-info { padding: 36px 40px; justify-content: center; }
    .pg-show.is-live .pg-actions { margin-top: 0; padding-top: 24px; }
}

/* Passé : atténué, retrouve ses couleurs au survol */
.pg-row.is-past { opacity: .55; }
.pg-show.is-past { filter: grayscale(.5); }
.pg-row.is-past:hover, .pg-row.is-past:focus-within { opacity: 1; filter: none; }

/* Playlist 24/7 : bandeau pleine largeur entre les cartes */
.pg-filler {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
    padding: 10px 22px 10px 12px; border: 1.5px dashed var(--border-color); border-radius: 999px;
}
.pg-filler .pg-note {
    order: 1; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--chip); color: #fff; font-size: .85rem; opacity: 1;
}
.pg-filler em { order: 2; font-style: normal; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text-main); }
.pg-eq { order: 3; display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.pg-eq span { width: 3px; height: 30%; border-radius: 2px; background: var(--text-muted); opacity: .5; }
.pg-filler .pg-next { order: 4; }
.pg-filler .pg-time { order: 5; margin-left: auto; gap: 6px; }
.pg-filler .pg-time b { font-size: .95rem; font-weight: 800; color: var(--text-main); }
.pg-filler .pg-time span { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.pg-filler .pg-time span::before { content: "–"; margin-right: 6px; }
.pg-filler .dur { order: 6; padding-left: 14px; border-left: 1px solid var(--border-color); color: var(--text-muted); font-size: .85rem; font-weight: 700; }
.pg-filler.is-live { border-style: solid; border-color: var(--primary); background: rgba(240, 19, 45, .06); }
.pg-filler.is-live .pg-eq span { background: linear-gradient(0deg, var(--primary), var(--gold)); opacity: 1; animation: pgEq 1s ease-in-out infinite alternate; }
.pg-filler.is-live .pg-eq span:nth-child(2) { animation-duration: .75s; animation-delay: -.3s; }
.pg-filler.is-live .pg-eq span:nth-child(3) { animation-duration: 1.2s; animation-delay: -.6s; }
.pg-filler.is-live .pg-eq span:nth-child(4) { animation-duration: .9s; animation-delay: -.15s; }
@keyframes pgEq { from { height: 20%; } to { height: 100%; } }

/* Adaptation écrans */
@media (max-width: 1100px) {
    .pg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .pg-bar { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 36px; border-radius: 28px; }
    .pg-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 700px) {
    .pg-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .pg-actions .pg-btn { flex: 1 1 auto; justify-content: center; }
    .pg-filler { flex-wrap: wrap; border-radius: 24px; gap: 8px 12px; padding: 12px 16px 12px 12px; }
    .pg-filler .pg-time { margin-left: 0; }
    .pg-filler .dur { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
    .pg-bar { padding: 18px 10px 34px; }
    .pg-week, .pg-days { gap: 2px; }
    .pg-days { padding: 4px; border-radius: 20px; }
    .pg-arrow { width: 30px; height: 30px; font-size: .72rem; }
    .pg-day { padding: 8px 1px 13px; border-radius: 14px; }
    .pg-day .num { font-size: 1.05rem; }
    .pg-day .dow { font-size: .64rem; }
    .pg-day .mon { font-size: .66rem; }
    .pg-pill, .pg-next { padding: 4px 11px; font-size: .68rem; }
    .pg-tag { font-size: .95rem; }
    .pg-btn { padding: 10px 14px; font-size: .8rem; }
}

/* ---------------------------------------------------------
   16. Anciens blocs (pages non migrées) — recolorés
   --------------------------------------------------------- */
.program-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.program-card.border-gold { border-top: 4px solid var(--gold); }
.program-card.border-red { border-top: 4px solid var(--primary); }
.program-card.border-grey { border-top: 4px solid var(--text-muted); }
.card-image { position: relative; width: 100%; height: 140px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.program-card:hover .card-image img { transform: scale(1.06); }
.time-badge { position: absolute; bottom: 10px; left: 10px; background: var(--ink); color: var(--gold); font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.card-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h4 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 8px; }
.card-content p { font-size: .87rem; color: var(--text-muted); line-height: 1.4; }

.newsletter-banner { background: var(--bg-panel); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 30px 0; margin-top: 40px; }
.newsletter-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand img { height: 55px; }
.slogan-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.newsletter-form-container { display: flex; align-items: center; gap: 25px; background: var(--bg-card); padding: 15px 25px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.news-text { display: flex; align-items: center; gap: 15px; }
.news-text i { font-size: 1.8rem; }
.news-text h4 { font-size: 1.05rem; }
.news-text p { font-size: .85rem; color: var(--text-muted); max-width: 250px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { padding: 11px 16px; background: var(--bg-input); border: 1.5px solid var(--border-color); border-radius: 999px; color: var(--text-main); min-width: 240px; }

footer { background: var(--bg-main); padding-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.footer-left h3 { font-size: 1.3rem; margin-bottom: 3px; }
.footer-left p { color: var(--text-muted); font-style: italic; }
.footer-links a { color: var(--text-muted); margin: 0 8px; font-size: .9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-socials { display: flex; align-items: center; gap: 15px; }
.footer-socials span { color: var(--text-muted); font-size: .9rem; }
.footer-socials a { color: var(--text-main); font-size: 1.1rem; }
.footer-socials a:hover { color: var(--primary); }
.footer-bottom { padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .85rem; }
.legal-links a { margin-left: 15px; }

main.container + .gazette { margin-top: 90px; }

/* Barre de défilement */
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--bg-main); }
html::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; border: 2px solid var(--bg-main); }
html::-webkit-scrollbar-thumb:hover { background: var(--ink); }

/* ---------------------------------------------------------
   16b. Pictos — style unique : glyphe blanc, trait net,
   posé sur une pastille pleine (sombre sur fond clair,
   blanc translucide sur fond sombre). 
   --------------------------------------------------------- */
.hd-menu a i,
.site-header nav ul.dropdown-menu li a i {
    width: 30px; height: 30px; flex: none; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--chip); color: #fff; font-size: .82rem;
}
.hd-menu a:hover i, .hd-menu a:focus-visible i,
.site-header nav ul.dropdown-menu li a:hover i,
.site-header nav ul.dropdown-menu li a:focus-visible i,
.site-header nav ul.dropdown-menu li a.active i { background: rgba(255, 255, 255, .2); color: #fff; }

/* Titres des widgets de l'accueil (Derniers titres…) */
.widget-header > i {
    width: 34px; height: 34px; flex: none; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--chip); color: #fff !important; font-size: .9rem;
}
.live-widget .widget-header > i { background: rgba(255, 255, 255, .14); }

/* Flèches et chevrons des boutons / liens */
.btn-outline i, .band-btn i, .section-header > a i {
    width: 26px; height: 26px; flex: none; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--chip); color: #fff; font-size: .66rem;
    transition: transform .2s, background .2s;
}
.btn-outline:hover i, .band-btn:hover i, .section-header > a:hover i { background: var(--primary); }
.band-agenda .band-btn i { background: rgba(255, 255, 255, .16); }
.band-agenda .band-btn:hover i { background: var(--primary); }
.section-header > a { gap: 10px; }

.show-item > i, .show-item:hover > i {
    width: 28px; height: 28px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--chip); color: #fff; font-size: .68rem;
}
.show-item:hover > i { background: var(--primary); }

/* Méta des cartes (date, lieu, heure…) */
.nc-meta i, .article-meta i, .pg-more i {
    width: 24px; height: 24px; flex: none; border-radius: 8px;
    display: inline-grid; place-items: center; vertical-align: middle;
    background: var(--chip); color: #fff; font-size: .66rem;
}
.article-meta i, .pg-more i { margin-right: 8px; }
.band-agenda .nc-meta i { background: rgba(255, 255, 255, .16); color: #fff; }

/* Bouton rond du mode clair/sombre, burger, compte */
.hd-account { background: var(--chip); color: #fff; border: 0; }
.hd-account:hover { background: var(--primary); }
.hd-account.active { box-shadow: 0 0 0 3px rgba(21, 18, 46, .18); }
.hd-icon { background: var(--chip); color: #fff; border: 0; }
.hd-icon:hover { background: var(--primary); color: #fff; }

/* Réseaux sociaux (hors fond sombre) */
.social-icons a { background: var(--chip); border-color: transparent; color: #fff; }
.social-icons a:hover { background: var(--primary); color: #fff; }

/* Votes des derniers titres */
.trk-btn { background: var(--chip); border-color: transparent; color: #fff; }
.trk-btn:hover { background: var(--primary); border-color: transparent; color: #fff; }
.trk-btn.on { background: var(--primary); border-color: transparent; color: #fff; }

/* Pochettes de secours : aplat uni + glyphe blanc */
.prog-cover, .pod-mini-cover, .show-cover, .nc-ph { background: var(--chip); color: #fff; }
.pg-cover.no-img { background: var(--chip); }
.hp-logo.no-img { background: var(--chip); border-color: transparent; color: #fff; }

/* Newsletter : l'enveloppe */
.gazette .gz-input { padding: 0 24px 0 12px; }
.gazette .gz-input i {
    width: 38px; height: 38px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: #fff; font-size: .95rem;
}

/* Mini-lecteur de podcast */
#pod-close { background: var(--chip); color: #fff; }
#pod-close:hover { background: var(--primary); color: #fff; }

/* Quand le mini-lecteur est ouvert, le pied de page ne passe pas dessous */
body:has(#pod-player:not([hidden])) .site-footer { padding-bottom: 78px; }

/* =========================================================
   17. Responsive
   ========================================================= */

/* Portables : on resserre l'en-tête pour qu'il tienne sur une ligne */
@media (min-width: 1101px) and (max-width: 1360px) {
    .site-header .header-container { gap: 12px; }
    .site-header .logo-container .logo { height: 42px; }
    .site-header nav ul li a { font-size: .92rem; padding: 9px 10px; }
    .site-header nav ul li a.active::after { left: 10px; right: 10px; }
    .hd-pill { padding: 0 18px; }
    .hd-account .lbl, .hd-account .caret { display: none; }
    .hd-account { padding: 0; width: 44px; }
}

/* Jusqu'à 1100 px : menu burger */
@media (max-width: 1100px) {
    .site-header { top: calc(var(--topbar-h) * -1); }
    .site-header .header-container { height: 68px; gap: 12px; justify-content: space-between; }
    .site-header .logo-container { flex: 0 1 auto; min-width: 0; }
    .site-header .logo-container a { display: flex; align-items: center; min-width: 0; }
    .site-header .logo-container .logo { height: 42px; max-width: 100%; object-fit: contain; }
    .site-header .btn-live-desktop { display: none; }
    .hd-account .lbl, .hd-account .caret { display: none; }
    .hd-account { padding: 0; width: 44px; }

    .site-header .mobile-menu-btn {
        display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
        border-radius: 50%; border: 0;
        background: var(--chip); color: #fff; font-size: 1.15rem; cursor: pointer;
        transition: var(--transition);
    }
    .site-header .mobile-menu-btn:hover { background: var(--primary); color: #fff; }

    .site-header nav {
        position: absolute; top: 100%; left: 0; right: 0; display: block;
        background: var(--header-bg); border-bottom: 1px solid var(--border-color);
        max-height: 0; overflow: hidden; transition: max-height .4s ease; z-index: 999;
        box-shadow: 0 24px 40px -24px rgba(21, 18, 46, .5);
    }
    .site-header nav.open { max-height: 80vh; max-height: 80dvh; overflow-y: auto; }
    .site-header nav ul { flex-direction: column; padding: 12px 20px 22px; gap: 4px; }
    .site-header nav ul li a { padding: 14px 16px; border-radius: 16px; font-size: 1.02rem; }
    .site-header nav ul li a:hover, .site-header nav ul li a.active { background: var(--bg-card); }
    .site-header nav ul li a.active::after { display: none; }
    .site-header nav .dd-caret { display: none; }
    .site-header nav ul.dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
        padding: 0 0 0 18px; margin: 2px 0 4px; background: transparent; border: 0; border-radius: 0; box-shadow: none;
    }
    .site-header nav ul.dropdown-menu::before { display: none; }
    .site-header nav ul.dropdown-menu li a { padding: 12px 16px; font-size: .98rem; }
    .site-header nav ul.dropdown-menu li a i { color: #fff; }

    .hd-account-wrap { position: static; }
    .hd-menu { right: 20px; top: calc(100% + 10px); width: min(270px, calc(100vw - 40px)); min-width: 0; max-height: calc(100vh - 160px); overflow-y: auto; }
    .hd-menu::before { right: 70px; }
    .hd-menu a { padding: 14px; white-space: normal; word-break: break-word; }

    .bottom-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .podcasts-section { grid-column: span 2; }
    .band-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: 560px; }
    .hero-slide { padding: 48px 44px 140px; }
}

@media (max-width: 992px) {
    /* minmax(0, 1fr) : sans ça la colonne 1fr s'élargit au contenu (textes en nowrap) et décale tout vers la droite */
    .sidebar { grid-template-columns: minmax(0, 1fr); margin: -72px 20px 0; }
    .gazette-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; }
    .gazette-text p { margin-left: auto; margin-right: auto; }
    .gazette .newsletter-form { width: 100%; max-width: 560px; }
    .sf-main { grid-template-columns: 1fr; gap: 34px; text-align: center; padding-top: 52px; }
    .sf-brand img { margin-inline: auto; }
    .sf-social-icons { justify-content: center; }
    .sf-links { text-align: left; }
    .newsletter-form-container { flex-direction: column; align-items: stretch; width: 100%; }
}

@media (max-width: 768px) {
    .top-section { margin-bottom: 48px; }
    .bottom-section { grid-template-columns: 1fr; }
    .podcasts-section { grid-column: span 1; }
    .home-wrap { padding-top: 44px; padding-bottom: 44px; }
    .band { padding: 56px 0 64px; }
    .band-head, .section-header { flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; padding-bottom: 24px; margin-bottom: 24px; }
    .newsletter-content { flex-direction: column; align-items: center; text-align: center; }
    .brand { flex-direction: column; gap: 8px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { min-width: 100%; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-bottom .container { flex-direction: column; align-items: center; gap: 10px; }
    .article-body { padding: 24px 20px 30px; }
    .sf-bottom { flex-direction: column; text-align: center; }
    #pod-now { display: none; }
}

@media (max-width: 680px) {
    .band-grid.cols-3, .band-grid.cols-4 { grid-template-columns: 1fr; }
    .nc-img { aspect-ratio: 16 / 10; }
    .gazette .newsletter-form { flex-direction: column; align-items: stretch; }
    .gazette .gz-input, .gazette .gz-btn { height: 56px; }
}

@media (max-width: 560px) {
    .hero { min-height: 520px; border-radius: 26px; }
    .hero-slide { padding: 66px 20px 124px; justify-content: flex-start; }
    .hero-content p { font-size: .97rem; margin-bottom: 22px; }
    .hero-buttons .btn-large { padding: 15px 24px; }
    .carousel-dots { right: 20px; top: 28px; transform: none; flex-direction: row; gap: 12px; }
    .carousel-dots .dot.active { height: 10px; width: 28px; }
    .sidebar { margin: -64px 10px 0; }
    .widget, .side-col .live-widget { padding: 20px 16px; border-radius: 22px; }
    .live-player-card .hp-card, .next-widget .hp-card { width: 100%; min-width: 0; }
    .live-player-card .hp-compact .hp-logo, .next-widget .hp-compact .hp-logo { width: 60px; height: 60px; }
    .live-player-card .hp-compact .hp-inner, .next-widget .hp-compact .hp-inner { gap: 12px; padding: 12px 12px 16px 18px; }
    .player-controls { gap: 20px; }
    .track-list img { width: 50px; height: 50px; }
    .sf-links { grid-template-columns: 1fr 1fr; gap: 0 18px; }
}

@media (max-width: 520px) {
    .topbar-inner { justify-content: center; padding: 0 12px; }
    .tb-tagline { display: none; }
}

@media (max-width: 480px) {
    .site-header .header-container { padding: 0 14px; gap: 8px; }
    .site-header .header-right, .site-header .header-actions { gap: 6px; }
    .site-header .hd-icon, .site-header .hd-account, .site-header .mobile-menu-btn { width: 42px; height: 42px; }
    .site-header .logo-container .logo { height: 38px; }
    .hd-menu { right: 12px; width: calc(100vw - 24px); }
    .hd-menu::before { right: 62px; }
    .container, .band-inner { padding-left: 16px; padding-right: 16px; }
    .hp-grid { grid-template-columns: 1fr; }
    .hp-logo { width: 78px; height: 78px; border-radius: 16px; }
    .hp-text h4 { font-size: 1.1rem; }
    .hp-inner { padding: 16px 14px 18px 22px; gap: 14px; }
}

/* Interactions tactiles : le bouton lecture du podcast reste visible */
@media (hover: none) {
    .play-podcast-btn { opacity: 1; background: rgba(21, 18, 46, .4); }
}

/* Préférence « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    .hero-content { opacity: 1; transform: none; }
}
