
/* =====================================================================
   DYNAMYK RADIO — COQUILLE DU SITE (bandeau dédicaces, header, offcanvas, player, footer)
   Même langage que l'accueil (home.css) : une seule famille (Archivo), filets fins,
   aplats, un seul accent (violet de marque), rouge réservé à « En direct ».
   Aucun halo, aucun verre dépoli, aucun dégradé décoratif.
   Préfixe .sh- (+ .dyn-player-bar et ses enfants, pilotés par dyn-player.js).
   Les jetons sont posés sur chaque bloc (et non sur :root) pour que color-mix()
   se recalcule bien avec le thème clair (body.light-mode).
   ===================================================================== */

:root { --topbar-height: 34px; --sh-nav-h: 64px; --sh-player-h: 72px; --sh-pad: clamp(20px, 5vw, 64px); }
@media (max-width: 700px) { :root { --sh-nav-h: 60px; --sh-player-h: 64px; } }

/* sticky exige que html/body ne soient pas des conteneurs de défilement */
html, body { overflow-x: clip; }

.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar {
    --sh-accent: #7000FF;
    --sh-accent-text: #c9a9ff;
    --sh-live: #ff2d55;
    --sh-line: color-mix(in srgb, var(--text-main) 16%, transparent);
    --sh-line-strong: color-mix(in srgb, var(--text-main) 34%, transparent);
    --sh-soft: color-mix(in srgb, var(--text-main) 6%, transparent);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-stretch: 100%;
    color: var(--text-main);
}
body.light-mode :is(.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar) { --sh-accent-text: #5a00cc; --sh-live: #e0103a; }

:where(.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar) :where(*, *::before, *::after) { box-sizing: border-box; }
:where(.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar) :where(ul, ol, h2, h4, p) { margin: 0; padding: 0; list-style: none; }
:where(.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar) :where(a) { color: inherit; text-decoration: none; }
:where(.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal; cursor: pointer; }
:is(.sh-topbar, .sh-nav, .sh-oc, .sh-footer, .dyn-player-bar) :focus-visible { outline: 2px solid var(--sh-accent-text); outline-offset: 2px; }
.sh-topbar :focus-visible { outline-color: #fff; }
.sh-wrap { width: min(1360px, calc(100% - 2 * var(--sh-pad))); margin-inline: auto; }

/* ---------- Indicateur « en direct » ---------- */
.sh-live-dot, .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-live); animation: shPulse 1.8s ease-in-out infinite; flex: 0 0 auto; }
@keyframes shPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Égaliseur ---------- */
.equalizer-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.equalizer-mini i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; transform: scaleY(.35); }
.equalizer-mini i:nth-child(1) { animation-delay: -.2s; } .equalizer-mini i:nth-child(2) { animation-delay: -.5s; } .equalizer-mini i:nth-child(3) { animation-delay: -.8s; }
.is-playing .equalizer-mini i { animation: shEq 1s ease-in-out infinite; }
@keyframes shEq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* =====================================================================
   BANDEAU DÉDICACES (fin, en aplat violet)
   ===================================================================== */
.sh-topbar { position: fixed; inset: 0 0 auto 0; z-index: 1100; height: var(--topbar-height); display: flex; align-items: stretch; background: var(--sh-accent); color: #fff; overflow: hidden; }
.sh-topbar-label { display: flex; align-items: center; gap: 8px; padding: 0 var(--sh-pad); padding-right: 18px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .28); }
.sh-topbar-label i { font-size: 1rem; }
.sh-ticker { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.sh-ticker-track { display: flex; white-space: nowrap; animation: shTicker 60s linear infinite; }
.sh-ticker:hover .sh-ticker-track { animation-play-state: paused; }
.sh-ticker-item { font-size: .8rem; font-weight: 500; padding-right: 56px; color: rgba(255, 255, 255, .92); }
@keyframes shTicker { to { transform: translateX(-50%); } }
.sh-topbar-cta { display: inline-flex; align-items: center; gap: 6px; padding: 0 var(--sh-pad) 0 18px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; border-left: 1px solid rgba(255, 255, 255, .28); white-space: nowrap; transition: background .2s, color .2s; }
.sh-topbar-cta:hover { background: #fff; color: #0b0a10; }
.sh-topbar-cta i { font-size: 1rem; }
@media (max-width: 700px) {
    .sh-topbar-label span { display: none; }
    .sh-topbar-label { padding-right: 14px; }
    .sh-topbar-cta { padding-left: 14px; }
}

/* =====================================================================
   HEADER — noir en permanence ; sur l'accueil il flotte, transparent, par-dessus le hero
   (logo détaché plus bas, menu centré) puis, au scroll, devient noir et se réduit.
   Les jetons texte/fond sont redéfinis localement : le header reste sombre dans les deux thèmes.
   ===================================================================== */
.sh-nav {
    --text-main: #fff; --text-muted: rgba(255, 255, 255, .72); --bg-main: #07050d;
    --sh-cyan: #00F0FF; --sh-accent-text: #c9a9ff;
    --sh-nav-h: 64px; --sh-logo-h: 40px; --sh-logo-top: calc((var(--sh-nav-h) - var(--sh-logo-h)) / 2);
    position: sticky; top: var(--topbar-height); z-index: 1000; margin-top: var(--topbar-height);
    height: var(--sh-nav-h);
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
    padding-inline: var(--sh-pad);
    background: var(--bg-main); border-bottom: 1px solid var(--sh-line);
    transition: height .45s cubic-bezier(.2, .7, .2, 1), background .35s ease, border-color .35s ease;
}
body.light-mode .sh-nav { --sh-accent-text: #c9a9ff; --sh-live: #ff2d55; }
.sh-nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--sh-accent) 30%, var(--sh-cyan) 70%, transparent); opacity: 0; transition: opacity .35s ease; pointer-events: none; }

/* Accueil : le header flotte sur le hero */
body[data-page="home"] .sh-nav { position: fixed; left: 0; right: 0; margin-top: 0; --sh-nav-h: 96px; --sh-logo-h: 118px; --sh-logo-top: 14px; background: transparent; border-bottom-color: transparent; }
body[data-page="home"] #spa-content { padding-top: var(--topbar-height); }
body[data-page="home"].is-scrolled .sh-nav, body[data-page="home"].search-open .sh-nav {
    --sh-nav-h: 60px; --sh-logo-h: 38px; --sh-logo-top: calc((var(--sh-nav-h) - var(--sh-logo-h)) / 2);
    background: rgba(7, 5, 13, .94); border-bottom-color: var(--sh-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body.is-scrolled .sh-nav::before { opacity: 1; }
/* un méga-menu ouvert rend la barre pleine (continuité avec le panneau) */
.sh-nav:has(.sh-has-sub:hover, .sh-has-sub:focus-within) { background: var(--bg-main); border-bottom-color: var(--sh-line); }

.sh-logo { position: absolute; left: var(--sh-pad); top: var(--sh-logo-top); z-index: 2; display: block; transition: top .45s cubic-bezier(.2, .7, .2, 1); }
.sh-logo img { display: block; width: auto; height: var(--sh-logo-h); max-width: none; transition: height .45s cubic-bezier(.2, .7, .2, 1), transform .3s ease; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 8px 20px rgba(112, 0, 255, .45)); }
.sh-logo:hover img { transform: rotate(-2deg) scale(1.03); }

.sh-primary { grid-column: 2; }
.sh-primary-list { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.6vw, 44px); }
.sh-primary-list > li { display: flex; align-items: center; height: var(--sh-nav-h); transition: height .45s cubic-bezier(.2, .7, .2, 1); }
.sh-primary-list > li > a { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 8px 0; font-family: 'Chakra Petch', 'Archivo', sans-serif; font-size: .84rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); transition: color .2s; }
.sh-primary-list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--sh-cyan); box-shadow: 0 0 12px rgba(0, 240, 255, .7); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.sh-primary-list > li:hover > a, .sh-primary-list > li:focus-within > a { color: var(--sh-cyan); }
.sh-primary-list > li:hover > a::after, .sh-primary-list > li:focus-within > a::after, .sh-primary-list > li > a.nav-active::after { transform: scaleX(1); }
.sh-primary-list > li > a i { font-size: 1.1rem; margin-right: -4px; transition: transform .25s ease; }
.sh-has-sub:hover > a i, .sh-has-sub:focus-within > a i { transform: rotate(180deg); }

/* Méga-menus : pleine largeur sous la barre ; liens à gauche, derniers contenus à droite */
.sh-mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 3; background: var(--bg-main); border-top: 2px solid var(--sh-accent); border-bottom: 1px solid var(--sh-line-strong); box-shadow: 0 34px 70px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s; }
.sh-has-sub:hover > .sh-mega, .sh-has-sub:focus-within > .sh-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sh-mega-in { display: grid; grid-template-columns: minmax(250px, .62fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 84px); padding-block: 30px 38px; }
.sh-mega-in:has(.sh-mega-feed:empty) { grid-template-columns: minmax(250px, 420px); }
.sh-mega-kicker { display: block; font-family: 'Chakra Petch', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sh-cyan); margin-bottom: 12px; }
.sh-mega-links ul { display: block; }
.sh-mega-links a { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sh-line); font-family: 'Chakra Petch', sans-serif; font-size: 1.12rem; font-weight: 600; color: var(--text-main); transition: color .2s, padding .25s; }
.sh-mega-links a small { width: 1.7em; font-size: .75rem; letter-spacing: .1em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sh-mega-links a i { margin-left: auto; align-self: center; font-size: 1.1rem; opacity: 0; transform: translate(-6px, 6px); transition: opacity .2s, transform .25s; color: var(--sh-cyan); }
.sh-mega-links a:hover, .sh-mega-links a:focus-visible, .sh-mega-links a.nav-active { color: var(--sh-cyan); padding-left: 8px; }
.sh-mega-links a:hover i, .sh-mega-links a:focus-visible i { opacity: 1; transform: none; }
.sh-mega-links a.nav-active small { color: var(--sh-cyan); }

.sh-mega-feed { display: flex; gap: clamp(20px, 2.6vw, 40px); min-width: 0; }
.sh-mega-feed:empty { display: none; }
.sh-feed { flex: 1 1 0; min-width: 0; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.sh-feed.is-wide { flex: 2 1 0; }
.sh-has-sub:hover .sh-feed, .sh-has-sub:focus-within .sh-feed { opacity: 1; transform: none; }
.sh-has-sub:hover .sh-feed:nth-child(2) { transition-delay: .06s; }
.sh-feed h3 { margin: 0 0 14px; font-family: 'Chakra Petch', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }
.sh-feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.sh-feed-list { display: grid; }
.sh-card { display: grid; gap: 10px; align-content: start; }
.sh-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sh-soft); border-radius: 6px; }
.sh-card.is-square figure { aspect-ratio: 1 / 1; }
.sh-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sh-card:hover img { transform: scale(1.06); }
.sh-card small { display: block; font-family: 'Chakra Petch', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-cyan); }
.sh-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; font-weight: 600; line-height: 1.28; transition: color .2s; }
.sh-card:hover strong { color: var(--sh-cyan); }
.sh-card em { font-style: normal; font-size: .78rem; color: var(--text-muted); }
.sh-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--sh-line); }
.sh-row:first-child { padding-top: 0; }
.sh-row b { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border: 1px solid var(--sh-line-strong); font-family: 'Chakra Petch', sans-serif; font-size: 1.35rem; line-height: 1; font-weight: 700; border-radius: 6px; }
.sh-row b span { margin-top: 3px; font-size: .75rem; letter-spacing: .14em; color: var(--sh-cyan); }
.sh-row strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row em { font-style: normal; font-size: .78rem; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.sh-row:hover strong { color: var(--sh-cyan); }
.sh-row.is-live b { border-color: var(--sh-live); color: var(--sh-live); }
body.search-open .sh-mega, body.nav-open .sh-mega { display: none; }

.sh-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 4px; }
.sh-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; font-size: 1.25rem; transition: background .2s, color .2s; }
.sh-icon-btn:hover { background: var(--sh-soft); color: var(--sh-cyan); }
.theme-toggle-btn i { transition: transform .4s cubic-bezier(.68, -.55, .27, 1.55); }
.theme-toggle-btn.rotating i { transform: rotate(360deg) scale(0); }

.sh-burger { display: inline-flex; border: 1px solid var(--sh-line-strong); align-items: center; gap: 12px; height: 42px; padding: 0 14px 0 16px; margin-left: 10px; font-family: 'Chakra Petch', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.sh-burger:hover { background: var(--sh-cyan); color: #07050d; border-color: var(--sh-cyan); }
.sh-burger-bars { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 20px; }
.sh-burger-bars i { display: block; height: 2px; background: currentColor; transition: width .25s ease; }
.sh-burger-bars i:nth-child(1) { width: 100%; } .sh-burger-bars i:nth-child(2) { width: 70%; } .sh-burger-bars i:nth-child(3) { width: 100%; }
.sh-burger:hover .sh-burger-bars i:nth-child(2) { width: 100%; }

/* En dessous de 1240 px : logo + outils seulement (le menu complet vit dans l'offcanvas) */
@media (max-width: 1240px) {
    .sh-nav { grid-template-columns: 1fr auto; }
    .sh-primary { display: none; }
    .sh-tools { grid-column: 2; }
    body[data-page="home"] .sh-nav { --sh-nav-h: 84px; --sh-logo-h: 92px; --sh-logo-top: 10px; }
}
@media (max-width: 560px) {
    .sh-burger-label { display: none; }
    .sh-burger { padding: 0 12px; margin-left: 6px; }
    body[data-page="home"] .sh-nav { --sh-nav-h: 72px; --sh-logo-h: 78px; --sh-logo-top: 8px; }
}
/* Entre 1240 et 1400 px le menu centré doit laisser la place au grand logo */
@media (min-width: 1241px) and (max-width: 1400px) {
    body[data-page="home"] .sh-nav { --sh-logo-h: 96px; }
    .sh-primary-list { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sh-nav, .sh-logo, .sh-logo img, .sh-primary-list > li { transition: none !important; } }

/* =====================================================================
   OFFCANVAS
   ===================================================================== */
.sh-oc-backdrop { position: fixed; inset: 0; z-index: 1190; background: rgba(7, 5, 13, .62); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.sh-oc-backdrop[hidden] { display: none; }
body.nav-open .sh-oc-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

.sh-oc { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200; width: min(500px, 100vw); display: flex; flex-direction: column; background: var(--bg-main); border-left: 1px solid var(--sh-line-strong); transform: translateX(100%); visibility: hidden; transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s; }
body.nav-open .sh-oc { transform: none; visibility: visible; transition-delay: 0s; }

.sh-oc-head { display: flex; align-items: center; justify-content: space-between; height: var(--sh-nav-h); padding: 0 clamp(20px, 4vw, 36px); border-bottom: 1px solid var(--sh-line); flex: 0 0 auto; }
.sh-oc-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.sh-oc-head .sh-icon-btn { margin-right: -10px; font-size: 1.6rem; }

.sh-oc-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(8px, 2vh, 20px) clamp(20px, 4vw, 36px); }
.sh-oc-top { display: block; padding: 14px 0; border-bottom: 1px solid var(--sh-line); font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 4.4vh, 2.3rem); line-height: 1; letter-spacing: -.005em; transition: color .2s; }
.sh-oc-top:hover, .sh-oc-top.nav-active { color: var(--sh-accent-text); }
.sh-oc-group { padding: 16px 0 18px; border-bottom: 1px solid var(--sh-line); }
.sh-oc-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 4.4vh, 2.3rem); line-height: 1; letter-spacing: -.005em; }
.sh-oc-title a { transition: color .2s; }
.sh-oc-title a:hover, .sh-oc-title a.nav-active { color: var(--sh-accent-text); }
.sh-oc-num { font-stretch: 100%; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sh-oc-links { columns: 2; column-gap: 24px; padding-left: 34px; }
.sh-oc-links li { break-inside: avoid; }
.sh-oc-links a { display: block; position: relative; padding: 5px 0; font-size: .95rem; color: var(--text-muted); transition: color .2s, padding .2s; }
.sh-oc-links a:hover { color: var(--text-main); padding-left: 6px; }
.sh-oc-links a.nav-active { color: var(--text-main); font-weight: 700; }
.sh-oc-links a.nav-active::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--sh-accent); }

.sh-oc-foot { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4vw, 36px) 22px; border-top: 1px solid var(--sh-line-strong); }
.sh-oc-freqs { display: flex; gap: 28px; }
.sh-oc-freqs li { display: flex; flex-direction: column; }
.sh-oc-freqs b { white-space: nowrap; font-stretch: 70%; font-weight: 800; font-size: 1.9rem; line-height: .95; font-variant-numeric: tabular-nums; }
.sh-oc-freqs span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* apparition en cascade à l'ouverture */
.sh-oc-nav > * { opacity: 0; transform: translateX(18px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
body.nav-open .sh-oc-nav > * { opacity: 1; transform: none; }
body.nav-open .sh-oc-nav > :nth-child(1) { transition-delay: .12s; } body.nav-open .sh-oc-nav > :nth-child(2) { transition-delay: .17s; }
body.nav-open .sh-oc-nav > :nth-child(3) { transition-delay: .22s; } body.nav-open .sh-oc-nav > :nth-child(4) { transition-delay: .27s; }
body.nav-open .sh-oc-nav > :nth-child(5) { transition-delay: .32s; } body.nav-open .sh-oc-nav > :nth-child(6) { transition-delay: .37s; }
@media (max-width: 420px) { .sh-oc-links { columns: 1; } .sh-oc-freqs { gap: 18px; } .sh-oc-freqs b { font-size: 1.5rem; } }

/* ---------- Réseaux sociaux (offcanvas + footer) ---------- */
.sh-socials { display: flex; gap: 2px; }
.sh-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; font-size: 1.15rem; border: 1px solid var(--sh-line); transition: background .2s, color .2s, border-color .2s; }
.sh-socials li + li a { margin-left: -1px; }
.sh-socials a:hover { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; }

/* =====================================================================
   RECHERCHE (panneau qui se déroule sous le header, résultats en direct)
   ===================================================================== */
.sh-search-veil { position: fixed; inset: 0; z-index: 900; background: rgba(7, 5, 13, .55); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
body.search-open .sh-search-veil { opacity: 1; pointer-events: auto; }

.sh-search { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-main); border-bottom: 1px solid var(--sh-line-strong); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s; }
body.search-open .sh-search { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sh-search-form { display: flex; align-items: center; gap: 14px; padding: 0 var(--sh-pad); height: 72px; }
.sh-search-form > i { font-size: 1.5rem; color: var(--text-muted); }
.sh-search-form input { flex: 1; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: 0; box-shadow: none; color: var(--text-main); font: inherit; font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -.005em; }
.sh-search-form input::placeholder { color: var(--text-muted); opacity: .7; }
.sh-search-form input::-webkit-search-cancel-button { display: none; }
.sh-search-close { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--sh-line-strong); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s; }
.sh-search-close:hover { background: var(--text-main); color: var(--bg-main); }
.sh-search-close i { font-size: 1.1rem; }

.sh-search-body { max-height: min(62vh, calc(100vh - var(--topbar-height) - var(--sh-nav-h) - 72px - var(--sh-player-h) - 8px)); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--sh-line); }
.sh-search-body:empty { display: none; }
.sh-search-msg { padding: 22px var(--sh-pad); color: var(--text-muted); font-size: .95rem; }
.sh-search-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding-inline: var(--sh-pad); }
.sh-search-col { padding: 18px 0 8px; }
.sh-search-col + .sh-search-col { padding-left: clamp(20px, 3vw, 48px); margin-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--sh-line); }
.sh-search-col h3 { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.sh-hit { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--sh-line); }
.sh-hit:last-child { border-bottom: 0; }
.sh-hit img { flex: 0 0 auto; width: 72px; height: 54px; object-fit: cover; background: var(--sh-soft); }
.sh-hit-pod img { width: 54px; }
.sh-hit span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-hit small { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-accent-text); }
.sh-hit strong { font-size: 1rem; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-hit:hover strong, .sh-hit:focus-visible strong { color: var(--sh-accent-text); }
.sh-hit em { font-style: normal; font-size: .8rem; color: var(--text-muted); }
@media (max-width: 820px) {
    .sh-search-cols { grid-template-columns: 1fr; }
    .sh-search-col + .sh-search-col { padding-left: 0; margin-left: 0; border-left: 0; border-top: 1px solid var(--sh-line); margin-top: 8px; }
    .sh-search-form { height: 64px; gap: 10px; }
    .sh-search-close span { display: none; }
    .sh-hit img { width: 60px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .sh-search, .sh-search-veil { transition: none !important; } }

/* =====================================================================
   PLAYER STICKY
   ===================================================================== */
.dyn-player-bar { position: fixed; inset: auto 0 0 0; z-index: 1050; display: flex; align-items: center; height: var(--sh-player-h); padding-right: var(--sh-pad); background: var(--bg-main); border-top: 1px solid var(--sh-line-strong); }

.btn-play-sticky { flex: 0 0 auto; align-self: stretch; width: var(--sh-player-h); display: flex; align-items: center; justify-content: center; background: var(--sh-accent); color: #fff; font-size: 1.9rem; transition: background .2s; }
.btn-play-sticky:hover { background: #8a2bff; }
.btn-play-sticky i { position: relative; left: 1px; }
.btn-play-sticky i.ri-pause-fill { left: 0; }

.track-cover-wrapper { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; margin-left: clamp(12px, 2vw, 20px); overflow: hidden; background: var(--sh-soft); }
.track-cover { display: block; width: 100%; height: 100%; object-fit: cover; }

.track-details { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; margin-left: clamp(12px, 2vw, 18px); padding-right: 16px; }
.track-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-accent-text); margin-bottom: 1px; }
.track-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { margin: 0; font-size: .84rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sp-switch { position: relative; flex: 0 0 auto; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--sh-line); }
.sp-st { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 clamp(14px, 1.8vw, 26px); color: var(--text-muted); transition: color .25s, background .25s; }
.sp-st:hover { color: var(--text-main); background: var(--sh-soft); }
.sp-name { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sp-name .live-dot { width: 6px; height: 6px; background: currentColor; animation: none; opacity: .35; transition: opacity .25s, background .25s; }
.sp-st small { font-size: .75rem; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; opacity: .75; }
.sp-st.active { color: var(--text-main); }
.sp-st.active .sp-name .live-dot { opacity: 1; background: var(--sh-live); animation: shPulse 1.8s ease-in-out infinite; }
.sp-ind { position: absolute; left: 0; bottom: 0; width: 50%; height: 3px; background: linear-gradient(90deg, var(--sh-accent), #00F0FF); box-shadow: 0 0 12px rgba(0, 240, 255, .55); transition: transform .45s cubic-bezier(.68, -.3, .27, 1.3); pointer-events: none; }
.sp-switch.is-troyes .sp-ind { transform: translateX(100%); }

.player-volume { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding-left: clamp(14px, 2.4vw, 32px); align-self: stretch; border-left: 1px solid var(--sh-line); }
.volume-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 1.3rem; color: var(--text-muted); transition: color .2s; }
.volume-icon:hover { color: var(--text-main); }
.volume-slider { -webkit-appearance: none; appearance: none; width: 110px; height: 22px; background: transparent; cursor: pointer; }
.volume-slider::-webkit-slider-runnable-track { height: 2px; background: var(--sh-line-strong); }
.volume-slider::-moz-range-track { height: 2px; background: var(--sh-line-strong); }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 18px; margin-top: -8px; border-radius: 0; background: var(--text-main); border: 0; }
.volume-slider::-moz-range-thumb { width: 10px; height: 18px; border-radius: 0; background: var(--text-main); border: 0; }

@media (max-width: 760px) {
    .player-volume { display: none; }
    .sp-st { padding: 0 12px; }
    .sp-st small { display: none; }
    .track-tag-text { display: none; }
}
@media (max-width: 380px) { .sp-name .live-dot { display: none; } .sp-st { padding: 0 9px; } .sp-name { font-size: .75rem; letter-spacing: .08em; } }

/* Mobile : le sélecteur de station quitte la barre (il mangeait la place du titrage)
   et devient un onglet collé au bord haut de la barre, côté droit. */
@media (max-width: 760px) {
    .dyn-player-bar .sp-switch { position: absolute; right: 0; bottom: 100%; align-self: auto; height: 32px; overflow: hidden; background: var(--bg-main); border: 1px solid var(--sh-line-strong); border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, .18); }
    .dyn-player-bar .sp-switch .sp-st { flex-direction: row; padding: 0 16px 4px; }
    .dyn-player-bar .sp-switch .sp-st:first-of-type { padding-left: 20px; }
    .dyn-player-bar .sp-switch .sp-ind { height: 2px; border-radius: 2px; }
    .dyn-player-bar .track-details { padding-right: 8px; }
}

/* =====================================================================
   FOOTER (discret)
   ===================================================================== */
.sh-footer { background: var(--bg-main); border-top: 2px solid var(--text-main); font-size: .9rem; color: var(--text-muted); }
.sh-footer :is(h4) { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-main); }
.sh-footer a { transition: color .2s; }
.sh-footer a:hover { color: var(--sh-accent-text); }

.sh-foot-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(32px, 4vw, 52px); }
.sh-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sh-foot-logo img { display: block; height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.sh-foot-brand p { max-width: 36ch; line-height: 1.5; }
.sh-foot-freqs { display: flex; gap: 20px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.sh-foot-freqs b { font-stretch: 70%; font-weight: 800; font-size: 1.15rem; margin-right: 6px; color: var(--text-main); font-variant-numeric: tabular-nums; }

.sh-foot-links { display: grid; align-content: start; }
.sh-foot-row { display: grid; grid-template-columns: 112px 1fr; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--sh-line); }
.sh-foot-row:first-child { padding-top: 0; }
.sh-foot-row ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.sh-foot-news { display: flex; flex-direction: column; gap: 10px; }
.sh-foot-news p { line-height: 1.45; }
.sh-news-form { display: flex; border: 1px solid var(--sh-line-strong); transition: border-color .2s; }
.sh-news-form:focus-within { border-color: var(--sh-accent-text); }
.sh-news-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; background: transparent; border: 0; outline: 0; color: var(--text-main); font: inherit; }
.sh-news-form input::placeholder { color: var(--text-muted); }
.sh-news-form button { flex: 0 0 auto; width: 44px; display: flex; align-items: center; justify-content: center; background: var(--sh-accent); color: #fff; font-size: 1.15rem; transition: background .2s; }
.sh-news-form button:hover { background: #8a2bff; }
.sh-news-msg { font-size: .82rem; color: var(--text-main); max-height: 0; opacity: 0; overflow: hidden; transition: opacity .3s, max-height .3s; }
.sh-news-msg.is-visible { opacity: 1; max-height: 48px; }

.sh-foot-bottom { border-top: 1px solid var(--sh-line); padding-bottom: var(--sh-player-h); }
.sh-foot-bottom-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 16px; font-size: .8rem; }
.sh-copy { color: var(--text-main); font-weight: 600; }
.sh-foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-right: auto; }
.sh-foot-bottom .sh-socials a { width: 32px; height: 32px; font-size: 1rem; }
.sh-totop { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 1.1rem; border: 1px solid var(--sh-line-strong); color: var(--text-main); transition: background .2s, color .2s, border-color .2s; }
.sh-totop:hover { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }

@media (max-width: 1000px) {
    .sh-foot-main { grid-template-columns: 1fr 1fr; }
    .sh-foot-links { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 640px) {
    .sh-foot-main { grid-template-columns: 1fr; }
    .sh-foot-row { grid-template-columns: 1fr; gap: 6px; }
    .sh-foot-legal { margin-right: 0; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    .sh-ticker-track, .sh-live-dot, .live-dot, .is-playing .equalizer-mini i { animation: none !important; }
    .sh-ticker-track { transform: none; }
    .sh-oc, .sh-oc-backdrop, .sh-oc-nav > * { transition: none !important; }
}

/* ---------- Chargement du flux : anneau qui tourne autour du bouton play (barre sticky) ---------- */
.btn-play-sticky { position: relative; }
.btn-play-sticky::after { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--sh-player-h) - 20px); height: calc(var(--sh-player-h) - 20px); margin: calc((var(--sh-player-h) - 20px) / -2) 0 0 calc((var(--sh-player-h) - 20px) / -2); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); border-top-color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
body.radio-loading .btn-play-sticky::after { opacity: 1; animation: shLoad .9s linear infinite; }
@keyframes shLoad { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.radio-loading .btn-play-sticky::after { animation-duration: 2s !important; } }

/* Méga-menu ouvert : le grand logo se range dans la barre (sinon le panneau le coupe en deux) */
body[data-page="home"] .sh-nav:has(.sh-has-sub:hover, .sh-has-sub:focus-within) { --sh-logo-h: 46px; --sh-logo-top: calc((var(--sh-nav-h) - var(--sh-logo-h)) / 2); }

/* ---------- Bouton « j'aime » du player (vote pour le titre à l'antenne) ---------- */
.btn-like { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: clamp(8px, 1.4vw, 18px); border-radius: 50%; border: 1px solid var(--sh-line-strong); font-size: 1.2rem; color: var(--text-muted); transition: color .2s, border-color .2s, background .2s, transform .2s; }
.btn-like:hover { color: var(--sh-live); border-color: var(--sh-live); background: color-mix(in srgb, var(--sh-live) 10%, transparent); }
.btn-like:disabled { opacity: .55; cursor: progress; }
.btn-like.is-liked { color: var(--sh-live); border-color: var(--sh-live); }
.btn-like.is-liked i { animation: spLike .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes spLike { 0% { transform: scale(.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.sp-toast { position: absolute; right: clamp(12px, 3vw, 40px); bottom: calc(100% + 10px); max-width: min(92vw, 420px); padding: 11px 16px; background: #0b0a10; color: #fff; border-left: 3px solid var(--sh-live); font-size: .86rem; font-weight: 600; line-height: 1.35; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.sp-toast.show { opacity: 1; transform: none; }
.sp-toast.is-ko { border-left-color: #ffb020; }
@media (prefers-reduced-motion: reduce) { .btn-like.is-liked i { animation: none; } .sp-toast { transition: none; } }

@media (max-width: 560px) { .btn-like { width: 34px; height: 34px; margin-right: 4px; font-size: 1.05rem; border-color: transparent; } .track-details { padding-right: 6px; } .sp-st { padding: 0 9px; } }

/* Méga-menu Actualités : un panneau à la fois (Nice par défaut), commuté au survol des liens */
.sh-mega-feed[data-switch] > .sh-feed:not(.is-on) { display: none; }
.sh-mega-feed[data-switch] > .sh-feed.is-on { animation: shFeedSwap .35s cubic-bezier(.2, .7, .2, 1); }
.sh-mega-feed[data-switch] .sh-feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@keyframes shFeedSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sh-mega-feed[data-switch] > .sh-feed.is-on { animation: none; } }

.dyn-player-bar.np-off .btn-like { display: none; }
