/* ============================================================
   shared.css — Styles communs à toutes les sous-pages
   Radio Balzac
   ============================================================ */

/* ── Variables & Reset ── */
:root{--navy:#1a3a52;--terra:#c0502a;--cream:#f2e8cc;--bg:#f4f4f2;--white:#ffffff;--border:#ddd;--text:#222;--muted:#666;--bar-h:68px;}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Barlow',sans-serif;background:var(--bg);color:var(--text);padding-bottom:var(--bar-h);}
audio{display:none;}

/* ── Navigation ── */
.topnav{background:var(--navy);color:white;display:flex;align-items:center;padding:0 24px;height:76px;position:sticky;top:0;z-index:200;gap:20px;box-shadow:0 2px 12px rgba(0,0,0,.25);}
.topnav-logo{height:52px;width:52px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid rgba(255,255,255,.25);}
.topnav-logo img{width:100%;height:100%;object-fit:cover;}
.topnav-title{font-family:'Barlow Condensed',sans-serif;font-size:1.65rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:white;text-decoration:none;white-space:nowrap;}
.topnav-title span{color:var(--terra);}
.topnav-links{display:flex;gap:4px;list-style:none;margin-left:12px;}
.topnav-links a{color:rgba(255,255,255,.75);text-decoration:none;font-size:1rem;font-weight:600;padding:8px 14px;border-radius:4px;transition:all .15s;white-space:nowrap;}
.topnav-links a:hover,.topnav-links a.active{color:white;background:rgba(255,255,255,.14);}
.topnav-links a.active{border-bottom:2px solid var(--terra);}
.topnav-spacer{flex:1;}
.now-text{font-size:.78rem;color:rgba(255,255,255,.55);white-space:nowrap;overflow:hidden;max-width:260px;text-overflow:ellipsis;}
.now-text strong{color:rgba(255,255,255,.9);}
@media(max-width:700px){.topnav-links{display:none;}}

/* ── Hero banner ── */
.hero-banner{width:100%;overflow:hidden;line-height:0;border-bottom:3px solid var(--navy);max-height:160px;}
.hero-banner img{width:100%;height:160px;object-fit:cover;object-position:center;display:block;}

/* ── Player bar ── */
.player-bar{position:fixed;bottom:0;left:0;right:0;z-index:300;height:var(--bar-h);background:linear-gradient(135deg,#0f2233 0%,var(--navy) 100%);display:flex;align-items:center;padding:0 20px;gap:14px;box-shadow:0 -4px 24px rgba(0,0,0,.45);border-top:2px solid var(--terra);}
.pb-btn{width:40px;height:40px;border-radius:50%;background:var(--terra);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .1s,background .2s;box-shadow:0 2px 8px rgba(192,80,42,.4);}
.pb-btn:hover{transform:scale(1.08);background:#a8431f;}
.pb-thumb{width:44px;height:44px;border-radius:6px;overflow:hidden;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:1.2rem;border:1px solid rgba(255,255,255,.15);flex-shrink:0;}
.pb-thumb img{width:100%;height:100%;object-fit:cover;border-radius:5px;display:block;}
.pb-info{flex:1;min-width:0;}
.pb-title{font-weight:700;font-size:.88rem;color:white;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pb-sub{font-size:.72rem;color:rgba(255,255,255,.5);margin-top:2px;}
.pb-time{font-size:.68rem;color:rgba(255,255,255,0.4);min-width:70px;text-align:right;font-variant-numeric:tabular-nums;}
.pb-vol{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.pb-vol-icon{color:rgba(255,255,255,.55);font-size:.9rem;cursor:pointer;user-select:none;transition:color .15s;}
.pb-vol-icon:hover{color:white;}
.pb-range,input.pb-range{-webkit-appearance:none;width:80px;height:3px;background:rgba(255,255,255,.2);outline:none;border-radius:3px;cursor:pointer;}
.pb-range::-webkit-slider-thumb,input.pb-range::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:var(--terra);cursor:pointer;border:2px solid white;box-shadow:0 1px 4px rgba(0,0,0,.3);}
.pb-range::-moz-range-thumb,input.pb-range::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--terra);cursor:pointer;border:2px solid white;}

/* ── Footer ── */
footer{background:var(--navy);color:rgba(255,255,255,.5);font-size:.75rem;text-align:center;padding:28px 20px;margin-top:40px;}
footer a{color:rgba(255,255,255,.55);text-decoration:none;transition:color .15s;}
footer a:hover{color:white;}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:10px;}
.footer-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center;}
.footer-sep{color:rgba(255,255,255,.25);}
.footer-copy strong{color:white;}

/* ── Episode share button ── */
.ep-share-btn{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;background:rgba(26,58,82,.08);border:1.5px solid rgba(26,58,82,.15);color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;padding:0;}
.ep-share-btn:hover{background:var(--terra);border-color:var(--terra);color:white;}

/* ── Keyframes ── */
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.4;}}
@keyframes livewave{from{height:3px}to{height:24px}}
@keyframes wave{0%,100%{height:4px;}50%{height:14px;}}

/* ── Badge "Dernière émission" ── */
.episode-card:first-child .ep-title::after{
  content:'★ Dernière';
  display:inline-block;
  background:#e74c3c;
  color:white;
  font-size:.55rem;
  font-weight:700;
  padding:2px 7px;
  border-radius:3px;
  margin-left:8px;
  text-transform:uppercase;
  letter-spacing:.04em;
  vertical-align:middle;
  animation:badgeblink 1.2s ease-in-out infinite;
}
@keyframes badgeblink{0%,100%{opacity:1;}50%{opacity:.25;}}

/* ── Description épisode ── */
.ep-desc{font-size:.78rem;color:var(--muted);margin-top:4px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
