/* =============================================
   VIBE RADIO — style.css
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #3a6ff8;
  --blue-light:   #5b89fa;
  --glass:        rgba(30,10,20,0.45);
  --gb:           rgba(255,255,255,0.12);
  --muted:        rgba(255,255,255,0.6);
  --card-bg:      rgba(20,8,14,0.55);
  --radius:       16px;
  --hh:           72px;
  --fh:           36px;
  --aw:           64px;
}

html, body {
  height: 100%; width: 100%;
  overflow: hidden;
  font-family: 'Albert Sans', sans-serif;
  color: #fff;
  background: #1a0010;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 80% 20%, #c41e6a 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, #e25822 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #1a0010 40%, #2d0020 100%);
  animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift { 0%{filter:hue-rotate(0deg)} 100%{filter:hue-rotate(20deg)} }

body::after {
  content: 'vibe';
  position: fixed; bottom: -40px; right: -60px; z-index: 0;
  font-family: 'Albert Sans', sans-serif; font-weight: 800;
  font-size: min(38vw,420px); line-height: 1;
  color: rgba(255,255,255,0.04); pointer-events: none; user-select: none;
}

/* ══════════════════════════════════════════
   HEADER — position:fixed, hauteur connue
   ══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hh);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(to bottom,rgba(0,0,0,0.3),transparent);
}
.menu-btn {
  background: rgba(255,255,255,0.12); border: 1px solid var(--gb);
  color: #fff; width: 42px; height: 42px; border-radius: 10px;
  cursor: pointer; font-size: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(8px);
}
.menu-btn:hover { background: rgba(255,255,255,0.22); }
.logo { display: flex; align-items: center; cursor: pointer; }
.logo-icon { height: 52px; width: auto; }
.header-social { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header-social a {
  color: #fff; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gb); border-radius: 50%;
  font-size: 14px; text-decoration: none;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.header-social a:hover { background: rgba(255,255,255,0.22); transform: scale(1.1); }

/* ══════════════════════════════════════════
   FOOTER — position:fixed, hauteur connue
   ══════════════════════════════════════════ */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--fh); z-index: 50;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
  background: linear-gradient(to top,rgba(0,0,0,0.25),transparent);
}
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer #openLegalModal { display: inline-block; margin-left: 4px; }
.site-footer a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════
   SLIDER WRAPPER
   position:fixed, top = hauteur header, bottom = hauteur footer
   Le wrapper lui-même n'a AUCUN scroll.
   ══════════════════════════════════════════════════════ */
.slider-wrapper {
  position: fixed;
  top: var(--hh);
  bottom: var(--fh);
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════
   SLIDES
   position:absolute; top:0; left:0; right:0; bottom:0
   = exactement la zone du wrapper, rien de plus
   overflow-y:auto = le scroll est ICI, pas ailleurs
   ══════════════════════════════════════════════════════ */
.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
  padding: 24px var(--aw) 68px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(80px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.slide.active  { opacity: 1; pointer-events: all; transform: translateX(0); }
.slide.exit-left  { opacity: 0; transform: translateX(-80px); }
.slide.exit-right { opacity: 0; transform: translateX(80px); }

/* Empêche iOS de scroller la page sous le slide actif */
.slide.active { touch-action: pan-y; }

/* HOME */
.slide-home { display: flex; flex-direction: column; gap: 28px; }

.now-playing-card { display: flex; gap: 32px; align-items: center; }
.cover-wrap {
  position: relative; flex-shrink: 0;
  width: 180px; height: 180px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.play-big {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); border: none; cursor: pointer; color: #fff;
}
.play-big i {
  background: var(--blue); width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 20px rgba(58,111,248,0.6); transition: transform 0.2s;
}
.play-big:hover i { transform: scale(1.1); }
.live-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; letter-spacing: 0.5px;
}
.live-badge i { font-size: 8px; color: #7af; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.now-info { display: flex; flex-direction: column; gap: 6px; }
.now-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.now-title { font-family:'Albert Sans',sans-serif; font-weight:800; font-size:clamp(28px,4vw,52px); line-height:1; letter-spacing:-1px; }
.now-artist { font-family:'Albert Sans',sans-serif; font-weight:600; font-size:clamp(16px,2.5vw,28px); color:rgba(255,255,255,0.8); }
.waveform { display:flex; gap:4px; align-items:flex-end; height:28px; margin-top:8px; }
.waveform span { display:block; width:4px; background:var(--blue); border-radius:2px; animation:wave 1.2s ease-in-out infinite alternate; }
.waveform span:nth-child(1){height:60%;animation-delay:.0s}.waveform span:nth-child(2){height:90%;animation-delay:.1s}.waveform span:nth-child(3){height:50%;animation-delay:.2s}.waveform span:nth-child(4){height:100%;animation-delay:.3s}.waveform span:nth-child(5){height:70%;animation-delay:.4s}.waveform span:nth-child(6){height:40%;animation-delay:.5s}.waveform span:nth-child(7){height:85%;animation-delay:.6s}.waveform span:nth-child(8){height:60%;animation-delay:.7s}.waveform span:nth-child(9){height:100%;animation-delay:.8s}.waveform span:nth-child(10){height:55%;animation-delay:.9s}
@keyframes wave { 0%{transform:scaleY(0.3)} 100%{transform:scaleY(1)} }

.recent-tracks { width: 100%; }
.section-label { font-family:'Albert Sans',sans-serif; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.tracks-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.track-item { display:flex; gap:12px; align-items:center; background:var(--glass); backdrop-filter:blur(12px); border:1px solid var(--gb); border-radius:12px; padding:10px 14px; transition:background 0.2s; }
.track-item:hover { background:rgba(255,255,255,0.1); }
.track-item img { width:46px; height:46px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.track-meta { display:flex; flex-direction:column; gap:2px; min-width:0; }
.track-time { display:inline-block; background:var(--blue); color:#fff; font-size:10px; font-weight:700; padding:2px 7px; border-radius:20px; width:fit-content; margin-bottom:2px; }
.track-name { font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-song { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* CONTENT SLIDES */
.slide-content { width: 100%; }
.content-card { width:100%; background:var(--card-bg); backdrop-filter:blur(20px); border:1px solid var(--gb); border-radius:20px; padding:32px 40px; }
.card-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:28px; padding-bottom:20px; border-bottom:1px solid var(--gb); }
.card-title { font-family:'Albert Sans',sans-serif; font-weight:800; font-size:26px; display:flex; align-items:center; gap:10px; }
.card-title i { color:var(--blue-light); font-size:22px; }
.card-subtitle { font-size:14px; color:var(--muted); margin-top:4px; }

.day-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.day-tab { background:rgba(255,255,255,0.08); border:1px solid var(--gb); color:var(--muted); padding:6px 12px; border-radius:8px; cursor:pointer; font-size:13px; font-family:'Albert Sans',sans-serif; transition:all 0.2s; }
.day-tab.active,.day-tab:hover { background:var(--blue); border-color:var(--blue); color:#fff; }
.emissions-list { display:flex; flex-direction:column; gap:10px; }
.emission-item { display:flex; align-items:center; gap:16px; background:rgba(255,255,255,0.05); border:1px solid var(--gb); border-radius:12px; padding:14px 20px; transition:background 0.2s; }
.emission-item:hover { background:rgba(255,255,255,0.09); }
.emission-time { font-family:'Albert Sans',sans-serif; font-weight:700; font-size:14px; color:var(--blue-light); min-width:130px; flex-shrink:0; }
.emission-info { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.emission-name { font-weight:600; font-size:15px; }
.emission-host { font-size:13px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.emission-tag { background:rgba(58,111,248,0.2); border:1px solid rgba(58,111,248,0.4); color:var(--blue-light); padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; flex-shrink:0; }

.actu-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.actu-card { background:rgba(255,255,255,0.05); border:1px solid var(--gb); border-radius:14px; overflow:hidden; transition:transform 0.2s,background 0.2s; }
.actu-card:hover { transform:translateY(-3px); background:rgba(255,255,255,0.09); }
.actu-card.featured { grid-column:1/-1; display:flex; }
.actu-card.featured .actu-img { width:240px; height:100%; object-fit:cover; flex-shrink:0; }
.actu-img { width:100%; height:150px; object-fit:cover; display:block; }
.actu-body { padding:16px 20px; }
.actu-date { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:6px; margin-bottom:6px; }
.actu-title { font-family:'Albert Sans',sans-serif; font-weight:700; font-size:17px; margin-bottom:6px; }
.actu-desc { font-size:13px; color:rgba(255,255,255,0.7); line-height:1.5; }

.team-grid { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.team-card { background:rgba(255,255,255,0.05); border:1px solid var(--gb); border-radius:18px; padding:28px 24px; text-align:center; flex:1; min-width:180px; max-width:260px; transition:transform 0.2s,background 0.2s; }
.team-card:hover { transform:translateY(-6px); background:rgba(255,255,255,0.09); }
.team-avatar { position:relative; display:inline-block; width:100px; height:100px; margin-bottom:14px; }
.team-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; border:3px solid var(--gb); }
.team-avatar-overlay { position:absolute; inset:0; border-radius:50%; background:rgba(58,111,248,0.7); display:flex; align-items:center; justify-content:center; font-size:24px; opacity:0; transition:opacity 0.2s; }
.team-card:hover .team-avatar-overlay { opacity:1; }
.team-name { font-family:'Albert Sans',sans-serif; font-weight:700; font-size:18px; margin-bottom:4px; }
.team-role { font-size:13px; color:var(--muted); margin-bottom:14px; }
.team-socials { display:flex; gap:10px; justify-content:center; }
.team-socials a { color:var(--muted); font-size:15px; text-decoration:none; transition:color 0.2s; }
.team-socials a:hover { color:var(--blue-light); }

.contact-form { display:flex; flex-direction:column; gap:16px; }
.form-row { display:flex; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:8px; flex:1; }
.form-group label { font-size:13px; font-weight:500; color:rgba(255,255,255,0.7); display:flex; align-items:center; gap:6px; }
.form-group label i { color:var(--blue-light); font-size:12px; }
.form-group input,.form-group textarea { background:rgba(255,255,255,0.07); border:1px solid var(--gb); border-radius:10px; padding:12px 16px; color:#fff; font-family:'Albert Sans',sans-serif; font-size:14px; outline:none; transition:border-color 0.2s,background 0.2s; width:100%; }
.form-group input::placeholder,.form-group textarea::placeholder { color:rgba(255,255,255,0.3); }
.form-group input:focus,.form-group textarea:focus { border-color:var(--blue); background:rgba(58,111,248,0.08); }
.captcha-row { align-items:flex-end; }
.captcha-box { background:rgba(255,255,255,0.07); border:1px solid var(--gb); border-radius:10px; padding:12px 16px; font-size:16px; font-weight:600; letter-spacing:1px; }
.submit-btn { background:linear-gradient(135deg,var(--blue),var(--blue-light)); border:none; color:#fff; padding:14px 32px; border-radius:40px; cursor:pointer; font-family:'Albert Sans',sans-serif; font-weight:700; font-size:15px; display:flex; align-items:center; gap:8px; align-self:flex-start; transition:transform 0.2s,box-shadow 0.2s; box-shadow:0 4px 20px rgba(58,111,248,0.4); }
.submit-btn:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(58,111,248,0.6); }

/* ARROWS */
.arrow-btn { position:fixed; top:50%; z-index:50; transform:translateY(-50%); background:rgba(255,255,255,0.1); backdrop-filter:blur(10px); border:1px solid var(--gb); color:#fff; width:44px; height:44px; border-radius:50%; cursor:pointer; font-size:15px; display:flex; align-items:center; justify-content:center; transition:background 0.2s,transform 0.2s; }
.arrow-btn:hover { background:rgba(255,255,255,0.22); transform:translateY(-50%) scale(1.08); }
.arrow-prev { left:10px; }
.arrow-next { right:10px; }
.arrow-btn.hidden { opacity:0; pointer-events:none; }

/* DOTS */
.slide-dots { position:fixed; bottom:calc(var(--fh) + 12px); left:50%; transform:translateX(-50%); z-index:50; display:flex; gap:8px; }
.dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.3); border:none; cursor:pointer; transition:background 0.2s,width 0.3s; }
.dot.active { background:#fff; width:24px; border-radius:4px; }

/* SIDE NAV */
.side-nav { position:fixed; top:0; left:0; width:280px; height:100%; background:linear-gradient(160deg,rgba(40,15,50,0.95),rgba(20,8,30,0.98)); backdrop-filter:blur(20px); border-right:1px solid var(--gb); z-index:200; padding:80px 32px 32px; display:flex; flex-direction:column; transform:translateX(-100%); transition:transform 0.4s cubic-bezier(0.4,0,0.2,1); overflow-y:auto; }
.side-nav.open { transform:translateX(0); }
.nav-close { position:absolute; top:20px; left:20px; background:rgba(255,255,255,0.1); border:1px solid var(--gb); color:#fff; width:38px; height:38px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; transition:background 0.2s; }
.nav-close:hover { background:rgba(255,255,255,0.22); }
.side-nav ul { list-style:none; display:flex; flex-direction:column; gap:4px; }
.nav-link { display:block; padding:12px 16px; font-family:'Albert Sans',sans-serif; font-weight:600; font-size:17px; color:var(--muted); text-decoration:none; border-radius:10px; transition:color 0.2s,background 0.2s; }
.nav-link:hover,.nav-link.active { color:#fff; background:rgba(255,255,255,0.1); }
.nav-lang { display:flex; gap:8px; margin-top:32px; padding:0 16px; }
.lang-btn { background:rgba(255,255,255,0.08); border:1px solid var(--gb); color:var(--muted); padding:6px 16px; border-radius:20px; cursor:pointer; font-family:'Albert Sans',sans-serif; font-size:13px; transition:all 0.2s; }
.lang-btn.active,.lang-btn:hover { background:var(--blue); border-color:var(--blue); color:#fff; }
.nav-player { margin-top:auto; background:rgba(255,255,255,0.06); border:1px solid var(--gb); border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:10px; }
.nav-cover { width:64px; height:64px; border-radius:10px; object-fit:cover; align-self:center; }
.nav-track-info { text-align:center; }
.nav-track-title { display:block; font-family:'Albert Sans',sans-serif; font-weight:700; font-size:14px; }
.nav-track-artist { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.nav-controls { display:flex; align-items:center; gap:12px; }
.nav-play-btn { background:var(--blue); border:none; color:#fff; width:36px; height:36px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:13px; }
.nav-vol { display:flex; align-items:center; gap:8px; flex:1; font-size:13px; color:var(--muted); }
.vol-slider { flex:1; accent-color:var(--blue); }
.nav-overlay { display:none; position:fixed; inset:0; z-index:190; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px); }
.nav-overlay.show { display:block; }


/* ============================================================
   TABLET ≤ 900px
   ============================================================ */
@media (max-width:900px) {
  :root { --aw:52px; }
  .tracks-grid { grid-template-columns:repeat(2,1fr); }
  .actu-card.featured { flex-direction:column; }
  .actu-card.featured .actu-img { width:100%; height:180px; }
}

/* ============================================================
   MOBILE ≤ 640px
   ============================================================ */
@media (max-width:640px) {
  :root { --hh:60px; --fh:30px; --aw:36px; }

  .site-header{
    padding-top: max(env(safe-area-inset-top), 8px);
    height: calc(var(--hh) + env(safe-area-inset-top));
  }

  .slider-wrapper{
    top: calc(var(--hh) + env(safe-area-inset-top) + 18px);
  }

  .slide{
    padding-top: 28px;
  }

  .logo-icon { height:36px; }
  .header-social { gap:5px; }
  .header-social a { width:28px; height:28px; font-size:10px; }
  .menu-btn { width:34px; height:34px; font-size:14px; }

  .arrow-btn { width:30px; height:30px; font-size:11px; }
  .arrow-prev { left:4px; }
  .arrow-next { right:4px; }

  .slide { padding:16px var(--aw) 60px; }

  .slide-home { gap:16px; }
  .now-playing-card { flex-direction:column; align-items:center; text-align:center; gap:14px; width:100%; }
  .cover-wrap { width:130px; height:130px; }
  .play-big i { width:46px; height:46px; font-size:16px; }
  .now-title { font-size:26px; }
  .now-artist { font-size:16px; }
  .waveform { justify-content:center; }
  .recent-tracks { width:100%; }
  .tracks-grid { grid-template-columns:1fr; gap:8px; }
  .track-item { padding:9px 10px; }
  .track-item img { width:40px; height:40px; }

  .content-card { padding:18px 16px; border-radius:14px; }
  .card-header { flex-direction:column; gap:10px; margin-bottom:18px; padding-bottom:14px; }
  .card-title { font-size:20px; }
  .card-title i { font-size:18px; }

  .day-tabs { gap:5px; }
  .day-tab { padding:5px 9px; font-size:12px; }
  .emission-item { flex-wrap:wrap; gap:6px; padding:11px 13px; }
  .emission-time { min-width:unset; width:100%; font-size:12px; }
  .emission-name { font-size:14px; }

  .actu-grid { grid-template-columns:1fr; gap:10px; }
  .actu-card.featured { display:block; }
  .actu-card.featured .actu-img { width:100%; height:160px; }
  .actu-img { height:130px; }
  .actu-body { padding:12px 14px; }
  .actu-title { font-size:15px; }

  .team-grid { flex-direction:column; align-items:stretch; gap:10px; }
  .team-card { max-width:100%; min-width:unset; padding:18px 14px; }

  .form-row { flex-direction:column; gap:12px; }
  .captcha-row { flex-direction:row; gap:12px; align-items:flex-end; }
  .submit-btn { align-self:stretch; justify-content:center; }

  .site-footer { font-size:10px; padding:0 8px; text-align:center; }
}

/* ============================================================
   SMALL ≤ 380px
   ============================================================ */
@media (max-width:380px) {
  :root { --aw:30px; }
  .now-title { font-size:21px; }
  .now-artist { font-size:14px; }
  .cover-wrap { width:110px; height:110px; }
  .content-card { padding:14px 10px; }
  .card-title { font-size:18px; }
}


/* ============================================================
   CORRECTION MOBILE — container sous le header + scroll toujours en haut
   ============================================================ */
@media (max-width:640px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    inset: 0;
    width: 100%;
  }

  :root {
    --mobile-header-h: calc(var(--hh) + env(safe-area-inset-top));
    --mobile-gap: 16px;
  }

  .site-header {
    top: 0;
    min-height: var(--mobile-header-h);
  }

  .slider-wrapper {
    position: fixed;
    top: calc(var(--mobile-header-h) + var(--mobile-gap));
    bottom: auto;
    left: 0;
    right: 0;
    height: calc(var(--app-vh, 100dvh) - var(--mobile-header-h) - var(--mobile-gap) - var(--fh));
    overflow: hidden;
  }

  .slide {
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    height: 100%;
    padding: 0 var(--aw) 72px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-padding-top: 0;
    scroll-margin-top: 0;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
  }

  .slide-home {
    align-items: stretch;
    justify-content: flex-start;
  }

  .slide-content,
  .content-card,
  .now-playing-card {
    margin-top: 0;
  }

  .slide.active {
    scroll-behavior: auto;
  }
}


/* ============================================================
   AJUSTEMENTS DEMANDÉS — mobile + navigation circulaire
   ============================================================ */
@media (max-width:640px) {
  :root {
    --mobile-gap: 28px;
  }

  .slider-wrapper {
    top: calc(var(--mobile-header-h) + var(--mobile-gap));
    height: calc(var(--app-vh, 100dvh) - var(--mobile-header-h) - var(--mobile-gap) - var(--fh));
  }

  .slide {
    padding-bottom: 104px;
  }

  .live-badge,
  .waveform {
    display: none !important;
  }

  .slide-dots {
    bottom: calc(var(--fh) + 2px);
    z-index: 80;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
  }

  .content-card,
  .recent-tracks {
    margin-bottom: 18px;
  }
}

/* ============================================================
   CORRECTIONS DEMANDÉES — titres, layout desktop, social mobile
   ============================================================ */
.social-toggle { display:none; }

.now-label,
.section-label {
  font-family:'Albert Sans',sans-serif;
  font-weight:800;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--muted);
}
.section-label { gap:0; }

.day-name {
  font-family:'Albert Sans',sans-serif;
  font-weight:800;
  font-size:14px;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:#fff;
  background:rgba(255,255,255,0.08);
  border:1px solid var(--gb);
  border-radius:999px;
  padding:7px 16px;
}

.card-title i,
.section-label i,
.form-group label i { display:none !important; }

@media (min-width:641px) {
  .slide {
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .slide-home {
    flex-direction:column;
  }
  .slide-content,
  .recent-tracks,
  .now-playing-card {
    width:min(100%, 1060px);
    margin-left:auto;
    margin-right:auto;
  }
  .content-card {
    margin-left:auto;
    margin-right:auto;
  }
  .slide-dots {
    bottom:calc(var(--fh) + 16px);
  }
}

@media (max-width:640px) {
  :root { --mobile-gap: 40px; }

  .header-social {
    position:relative;
    flex-direction:column;
    gap:7px;
    align-items:center;
  }
  .social-toggle {
    display:flex;
    width:32px;
    height:32px;
    border-radius:50%;
    border:1px solid var(--gb);
    background:rgba(255,255,255,0.12);
    color:#fff;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(8px);
    cursor:pointer;
    font-size:12px;
    order:0;
  }
  .header-social a {
    position:absolute;
    top:40px;
    right:0;
    opacity:0;
    transform:translateY(-6px) scale(.92);
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .header-social a:nth-of-type(2) { top:76px; }
  .header-social a:nth-of-type(3) { top:112px; }
  .header-social.open a {
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
  }

  .slider-wrapper {
    top: calc(var(--mobile-header-h) + var(--mobile-gap));
    height: calc(var(--app-vh, 100dvh) - var(--mobile-header-h) - var(--mobile-gap) - var(--fh));
  }
  .slide-dots {
    bottom: calc(var(--fh) + 8px);
    z-index: 80;
    background: rgba(0,0,0,0.26);
  }
  .content-card,
  .recent-tracks,
  .now-playing-card {
    margin-top:0 !important;
  }
  .nav-play-btn {
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:50%;
  }
  .card-header {
    border-bottom:0;
    padding-bottom:0;
  }
}

/* ============================================================
   CORRECTIONS FINALES — demandes 20/05
   ============================================================ */

/* Desktop : centrage vertical réel des contenus, sans les coller au header */
@media (min-width:641px) {
  .slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: clamp(72px, 10vh, 120px);
    padding-bottom: clamp(82px, 10vh, 120px);
  }

  .slide-home {
    min-height: 100%;
    justify-content: center !important;
  }

  .slide:not(.slide-home) .slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
  }

  .slide:not(.slide-home) .content-card {
    width: min(100%, 1120px);
  }
}

/* Mobile : un seul bouton réseaux rond, puis ouverture verticale des réseaux */
@media (max-width:640px) {
  .header-social {
    width: 34px;
    min-width: 34px;
    position: relative;
    z-index: 160;
  }

  .social-toggle,
  .header-social a {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-social a {
    right: 0;
    top: 44px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }

  .header-social a:nth-of-type(2) { top: 86px; }
  .header-social a:nth-of-type(3) { top: 128px; }

  .header-social:not(.open) a {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important;
  }

  .header-social.open a {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto !important;
  }

  /* Menu : bouton play/pause parfaitement rond */
  .nav-play-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    aspect-ratio: 1 / 1;
    border-radius: 999px !important;
    padding: 0 !important;
  }
}

/* La flèche suivante reste disponible sur Contact et renvoie à Accueil */
.arrow-next {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   FIX RÉSEAUX SOCIAUX — desktop normal / mobile tiroir vertical
   ============================================================ */
.header-social {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  z-index: 160;
}

.social-toggle {
  display: none !important;
}

.header-social a {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
}

@media (max-width: 640px) {
  .header-social {
    width: 36px !important;
    min-width: 36px !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .social-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--gb) !important;
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .header-social a {
    position: absolute !important;
    right: 0 !important;
    top: 46px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(.92) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
    background: rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }

  .header-social a:nth-of-type(2) { top: 90px !important; }
  .header-social a:nth-of-type(3) { top: 134px !important; }

  .header-social.open a {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* ============================================================
   CORRECTION FINALE RÉSEAUX SOCIAUX
   Desktop : icônes côte à côte.
   Mobile/tablette portrait : un seul bouton rond + tiroir vertical.
   ============================================================ */
.header-social,
.site-header .header-social {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  z-index: 300 !important;
}

.site-header .social-toggle {
  display: none !important;
}

.site-header .header-social > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .site-header .header-social {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: block !important;
    position: relative !important;
  }

  .site-header .social-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  .site-header .header-social > a {
    position: absolute !important;
    right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(.9) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .site-header .header-social > a:nth-of-type(1) { top: 52px !important; }
  .site-header .header-social > a:nth-of-type(2) { top: 102px !important; }
  .site-header .header-social > a:nth-of-type(3) { top: 152px !important; }

  .site-header .header-social.open > a {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }
}


/* ============================================================
   PATCH FINAL — appliqué sur nouveau-theme-fonctions-integrees(1).zip
   ============================================================ */
body::before {
  background:
    linear-gradient(120deg, rgba(0,0,0,.68), rgba(0,0,0,.22) 48%, rgba(0,0,0,.72)),
    var(--current-cover, url('assets/bg-cover.svg')) center / cover no-repeat !important;
  filter: blur(0px);
  transform: scale(1.02);
  animation: none !important;
}
body::after { display:none !important; content:'' !important; }

.menu-btn,
.site-header .menu-btn {
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  border-radius:999px !important;
  padding:0 !important;
  background:rgba(255,255,255,.12) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  backdrop-filter:blur(10px) !important;
  -webkit-backdrop-filter:blur(10px) !important;
}

@media (min-width: 641px) {
  .logo-icon {
    height: 64px !important;
    width:auto !important;
    max-width: 280px !important;
    object-fit: contain !important;
  }
}
@media (max-width: 640px) {
  .logo-icon {
    height: 46px !important;
    width:auto !important;
    max-width: 190px !important;
    object-fit: contain !important;
  }
}

.side-nav {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--blue) 78%, #000 22%) 0%, rgba(10,10,18,.98) 100%) !important;
  border-right:1px solid color-mix(in srgb, var(--blue) 55%, rgba(255,255,255,.18)) !important;
}
.nav-link:hover,.nav-link.active { background:rgba(255,255,255,.16) !important; }
.nav-player { background:rgba(0,0,0,.18) !important; }

.nav-controls { align-items:center !important; }
.nav-play-btn,
.nav-play-btn.is-playing {
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  max-width:44px !important;
  max-height:44px !important;
  aspect-ratio:1/1 !important;
  flex:0 0 44px !important;
  padding:0 !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  box-sizing:border-box !important;
}
.nav-play-btn i { width:auto !important; height:auto !important; line-height:1 !important; }

.now-title,
.nav-track-title { text-transform: uppercase !important; }

.track-name { font-weight:700 !important; font-size:13px !important; }
.track-song { font-size:12px !important; color:var(--muted) !important; }

/* Desktop : les réseaux restent tous visibles côte à côte */
@media (min-width: 641px) {
  .site-header .header-social {
    display:flex !important;
    flex-direction:row !important;
    width:auto !important;
    height:auto !important;
    gap:10px !important;
  }
  .site-header .social-toggle { display:none !important; }
  .site-header .header-social > a {
    position:static !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:none !important;
    display:inline-flex !important;
  }
}

/* Mobile uniquement : un bouton rond + tiroir vertical */
@media (max-width: 640px) {
  .site-header { padding:0 16px !important; }
  .site-header .header-social {
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    display:block !important;
    position:relative !important;
  }
  .site-header .social-toggle {
    display:inline-flex !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    border-radius:999px !important;
  }
  .site-header .header-social > a {
    position:absolute !important;
    right:0 !important;
    top:52px !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    border-radius:999px !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-10px) scale(.9) !important;
  }
  .site-header .header-social > a:nth-of-type(1) { top:52px !important; }
  .site-header .header-social > a:nth-of-type(2) { top:102px !important; }
  .site-header .header-social > a:nth-of-type(3) { top:152px !important; }
  .site-header .header-social > a:nth-of-type(4) { top:202px !important; }
  .site-header .header-social > a:nth-of-type(5) { top:252px !important; }
  .site-header .header-social > a:nth-of-type(6) { top:302px !important; }
  .site-header .header-social > a:nth-of-type(7) { top:352px !important; }
  .site-header .header-social > a:nth-of-type(8) { top:402px !important; }
  .site-header .header-social.open > a {
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateY(0) scale(1) !important;
  }
}

/* ============================================================
   PATCH — menu plus large, logo desktop espacé, background flouté
   ============================================================ */
body::before {
  filter: blur(8px) saturate(.95) !important;
  transform: scale(1.06) !important;
}

@media (min-width: 901px) {
  :root { --hh: 96px; }
  .site-header {
    height: var(--hh) !important;
    align-items: flex-start !important;
    padding-top: 16px !important;
  }
  .logo-icon {
    height: 74px !important;
    max-height: 74px !important;
    max-width: 320px !important;
  }
}

.side-nav {
  width: 330px !important;
  padding-left: 34px !important;
  padding-right: 34px !important;
}
.nav-player {
  overflow: hidden !important;
}
.nav-controls {
  width: 100% !important;
  gap: 12px !important;
}
.nav-vol {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}
.vol-slider {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.nav-play-btn,
.nav-play-btn.is-playing {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 999px !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  .side-nav {
    width: min(330px, 92vw) !important;
  }
}

/* Correction : l'effet sous le bouton play de la cover reprend la couleur de la radio */
.play-big i {
  background: var(--blue) !important;
  box-shadow: 0 4px 22px color-mix(in srgb, var(--blue) 65%, transparent) !important;
}
.play-big:hover i {
  box-shadow: 0 6px 28px color-mix(in srgb, var(--blue) 78%, transparent) !important;
}

/* ============================================================
   PATCH — transitions nowplaying / cover / background / derniers titres
   ============================================================ */
[data-track-title],
[data-track-artist],
[data-current-cover],
.nav-cover,
[data-recent-list] {
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
  will-change: opacity, transform, filter;
}

.np-updating {
  opacity: .18 !important;
  transform: translateY(6px) scale(.985) !important;
  filter: blur(3px) !important;
}

.np-updated {
  animation: npSoftReveal .48s ease both;
}

.track-item {
  transition: opacity .32s ease, transform .32s ease, background .2s ease !important;
}

[data-recent-list].np-updating .track-item {
  opacity: .12 !important;
  transform: translateY(8px) !important;
}

[data-recent-list].np-updated .track-item {
  animation: npTrackReveal .42s ease both;
}
[data-recent-list].np-updated .track-item:nth-child(2) { animation-delay: .035s; }
[data-recent-list].np-updated .track-item:nth-child(3) { animation-delay: .07s; }
[data-recent-list].np-updated .track-item:nth-child(4) { animation-delay: .105s; }
[data-recent-list].np-updated .track-item:nth-child(5) { animation-delay: .14s; }
[data-recent-list].np-updated .track-item:nth-child(6) { animation-delay: .175s; }

body.np-bg-updating::before {
  animation: npBackgroundRefresh .72s ease both !important;
}

@keyframes npSoftReveal {
  0% { opacity: .12; transform: translateY(6px) scale(.985); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes npTrackReveal {
  0% { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes npBackgroundRefresh {
  0% { opacity: .78; filter: blur(10px) saturate(.9) brightness(.82); transform: scale(1.08); }
  55% { opacity: .92; filter: blur(9px) saturate(1.08) brightness(.96); transform: scale(1.065); }
  100% { opacity: 1; filter: blur(8px) saturate(.95); transform: scale(1.06); }
}

/* ══════════════════════════════════════════
   MODAL MENTIONS LÉGALES
   ══════════════════════════════════════════ */
.legal-modal[hidden] { display: none !important; }
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}
.legal-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(78vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18,8,14,0.94), rgba(18,8,14,0.78));
  box-shadow: 0 28px 80px rgba(0,0,0,0.45), 0 0 0 1px color-mix(in srgb, var(--blue) 28%, transparent);
  color: #fff;
}
.legal-modal__dialog h2 {
  font-family: 'Albert Sans', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  padding-right: 48px;
}
.legal-modal__text {
  overflow: auto;
  padding-right: 8px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  font-size: 14px;
  white-space: normal;
}
.legal-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: color-mix(in srgb, var(--blue) 78%, rgba(255,255,255,0.12));
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 24%, transparent);
}
.legal-modal__close:hover { transform: scale(1.04); }
body.legal-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .legal-modal { align-items: flex-end; padding: 12px; }
  .legal-modal__dialog { width: 100%; max-height: 84vh; padding: 24px 20px; border-radius: 22px; }
  .legal-modal__text { font-size: 13px; }
}

/* ============================================================
   PATCH FINAL — demandes mobile/tablette/radio couleur
   ============================================================ */

/* Le logo est un peu plus gros sur ordinateur, avec sa respiration haute conservée. */
@media (min-width: 901px) {
  .logo-icon {
    height: 82px !important;
    max-height: 82px !important;
    max-width: 350px !important;
  }
}

/* Hover équipe : on remplace le bleu fixe par la couleur dynamique de la radio. */
.team-avatar-overlay {
  background: color-mix(in srgb, var(--blue) 72%, transparent) !important;
}
.team-socials a:hover { color: var(--blue-light) !important; }

/* Émissions : badge EN DIRECT uniquement généré par PHP si l'émission est en cours. */
.emission-tag,
.emission-tag-live {
  background: color-mix(in srgb, var(--blue) 22%, transparent) !important;
  border-color: color-mix(in srgb, var(--blue) 58%, rgba(255,255,255,.18)) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 18%, transparent) !important;
  text-transform: uppercase;
  letter-spacing: .35px;
}

/* Tablette : le contact descend légèrement pour ne plus coller au haut. */
@media (min-width: 641px) and (max-width: 1024px) {
  .slide-contact .slide-content {
    align-items: center !important;
    padding-top: clamp(24px, 5vh, 58px) !important;
  }
  .slide-contact .content-card {
    margin-top: clamp(18px, 4vh, 46px) !important;
  }
}

/* Mobile : éviter que Contact et Mentions légales soient coupés quand la barre navigateur est haute. */
@media (max-width: 640px) {
  :root { --mobile-gap: 54px; }

  .slider-wrapper {
    top: calc(var(--mobile-header-h) + var(--mobile-gap)) !important;
    height: calc(var(--app-vh, 100dvh) - var(--mobile-header-h) - var(--mobile-gap) - var(--fh) - env(safe-area-inset-bottom)) !important;
  }

  .slide-contact {
    padding-top: 18px !important;
    padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important;
    scroll-padding-top: 18px !important;
  }

  .slide-contact .slide-content,
  .slide-contact .content-card {
    margin-top: 0 !important;
  }

  .legal-modal {
    align-items: flex-start !important;
    padding: calc(env(safe-area-inset-top) + 76px) 12px calc(env(safe-area-inset-bottom) + 20px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .legal-modal__dialog {
    width: 100% !important;
    max-height: calc(var(--app-vh, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 112px) !important;
    overflow: hidden !important;
    padding: 26px 20px !important;
    border-radius: 22px !important;
  }

  .legal-modal__text {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}


/* ============================================================
   PATCH — contact bouton + tablette paysage navigateur haut
   ============================================================ */
.submit-btn {
  gap: 0 !important;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--blue) 45%, transparent) !important;
}
.submit-btn i { display: none !important; }
.submit-btn:hover {
  box-shadow: 0 12px 34px color-mix(in srgb, var(--blue) 62%, transparent) !important;
}

/* iPad/tablettes en paysage : on descend la slide contact pour éviter la barre navigateur haute. */
@media (orientation: landscape) and (min-width: 641px) and (max-height: 900px) {
  .slide-contact {
    padding-top: clamp(56px, 9vh, 86px) !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }
  .slide-contact .slide-content {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: auto !important;
  }
  .slide-contact .content-card {
    margin-top: 0 !important;
  }
}

@media (orientation: landscape) and (min-width: 900px) and (max-height: 760px) {
  .slide-contact {
    padding-top: clamp(74px, 11vh, 104px) !important;
  }
}


/* ============================================================
   PATCH — logo, fond par défaut, langues et zoom mobile
   ============================================================ */
.nav-lang a,
.lang-btn,
.lang-btn:visited,
.lang-btn:hover,
.lang-btn.active {
  text-decoration: none !important;
}

@media (min-width: 901px) {
  :root { --hh: 112px; }
  .site-header { height: var(--hh) !important; }
  .logo-icon {
    height: 96px !important;
    max-height: 96px !important;
    max-width: 380px !important;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .logo-icon { height: 68px !important; max-height: 68px !important; }
}

.contact-form input,
.contact-form textarea,
.form-group input,
.form-group textarea {
  font-size: 16px !important;
}

@media (max-width: 640px) {
  .contact-form input,
  .contact-form textarea,
  .form-group input,
  .form-group textarea {
    font-size: 16px !important;
    transform: translateZ(0);
  }
}


/* ============================================================
   PATCH FINAL — tablette paysage, logo centré, actus badge date
   ============================================================ */

/* Logo vraiment centré par rapport à la largeur du site, indépendamment du menu et des réseaux. */
.site-header { position: fixed !important; }
.site-header .logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  z-index: 2 !important;
}
@media (min-width: 901px) {
  .site-header .logo { top: calc(50% + 4px) !important; }
}
@media (max-width: 640px) {
  .site-header .logo { top: calc(50% + env(safe-area-inset-top) / 2) !important; }
}

/* Contact : sur tablette paysage avec la barre navigateur haute, le bloc démarre plus bas et reste scrollable. */
@media (orientation: landscape) and (min-width: 641px) and (max-height: 820px) {
  .slide-contact {
    padding-top: clamp(92px, 13vh, 132px) !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .slide-contact .slide-content {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: auto !important;
  }
  .slide-contact .content-card {
    margin-top: 0 !important;
    max-height: calc(var(--app-vh, 100dvh) - var(--hh) - var(--fh) - 24px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .slide-contact .card-header {
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
  }
  .slide-contact .contact-form { gap: 12px !important; }
  .slide-contact .form-group { gap: 6px !important; }
  .slide-contact .form-group input,
  .slide-contact .form-group textarea,
  .slide-contact .captcha-box {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .slide-contact textarea { min-height: 78px !important; }
}

/* Actualités : date en badge couleur radio, alignée à droite du bloc. */
.actu-card { position: relative !important; }
.actu-body { position: relative !important; }
.actu-date {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  background: var(--blue) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 38%, transparent) !important;
}
.actu-date i { color: #fff !important; }
.actu-card.featured .actu-body { padding-top: 52px !important; }
@media (max-width: 640px) {
  .actu-date { top: 12px !important; right: 12px !important; font-size: 10px !important; }
  .actu-card.featured .actu-body { padding-top: 48px !important; }
}

/* ============================================================
   PATCH FINAL — Albert Sans, date actualité à droite, modal mentions scrollable tablette
   ============================================================ */
html, body,
button, input, textarea, select,
.card-title, .now-title, .now-artist, .section-label,
.day-tab, .emission-time, .actu-title, .team-name,
.submit-btn, .nav-link, .lang-btn, .nav-track-title,
.legal-modal__dialog h2 {
  font-family: 'Albert Sans', sans-serif !important;
}

/* Le badge date est maintenant fixé au bord droit du bloc article complet. */
.actu-card.featured {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
}
.actu-card.featured .actu-body {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-top: 52px !important;
}
.actu-card.featured .actu-date,
.actu-date {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 5 !important;
}
@media (max-width: 640px) {
  .actu-card.featured {
    display: block !important;
  }
  .actu-card.featured .actu-date,
  .actu-date {
    top: 12px !important;
    right: 12px !important;
  }
}

/* Tablette : la modale mentions légales garde son propre scroll tactile. */
.legal-modal {
  overflow: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}
.legal-modal__dialog {
  max-height: calc(var(--app-vh, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 44px) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.legal-modal__text {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 8px !important;
}
@media (min-width: 641px) and (max-width: 1180px) {
  .legal-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px) !important;
  }
  .legal-modal__dialog {
    width: min(760px, 100%) !important;
    max-height: calc(var(--app-vh, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px) !important;
  }
}


/* ============================================================
   PATCH FINAL — titre en cours en Albert Sans + ajustements pochettes/badges
   ============================================================ */
/* Le titre en cours repasse en Albert Sans. */
.now-title,
[data-track-title] {
  font-family: 'Albert Sans', sans-serif !important;
  font-weight: 800 !important;
}
.now-artist,
[data-track-artist] {
  font-family: 'Albert Sans', sans-serif !important;
}

/* Pochette du titre en cours légèrement plus grande. */
.cover-wrap {
  width: 198px !important;
  height: 198px !important;
}

/* Derniers titres : pochette plus grande, titrage centré verticalement, heure à droite du bloc. */
.track-item {
  position: relative !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 76px !important;
  padding: 10px 72px 10px 14px !important;
}
.track-item img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 10px !important;
}
.track-meta {
  min-height: 58px !important;
  justify-content: center !important;
  padding: 0 !important;
}
.track-time {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Pochette du player dans le menu plus grande. */
.nav-cover {
  width: 92px !important;
  height: 92px !important;
  border-radius: 14px !important;
}

@media (max-width: 760px) {
  .cover-wrap {
    width: 128px !important;
    height: 128px !important;
  }
  .track-item {
    min-height: 74px !important;
    padding-right: 70px !important;
  }
  .track-item img {
    width: 56px !important;
    height: 56px !important;
  }
  .track-meta {
    min-height: 56px !important;
  }
  .nav-cover {
    width: 100px !important;
    height: 100px !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .cover-wrap {
    width: 148px !important;
    height: 148px !important;
  }
}


/* Ombre légère sous le titre et l'artiste en cours */
.now-title,
.now-artist,
[data-track-title],
[data-track-artist]{
  text-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
}

/* ============================================================
   PATCH — espacement badges FR/EN dans le menu mobile
   ============================================================ */
@media (max-width: 640px) {
  .nav-lang {
    margin-bottom: clamp(18px, 4.5vh, 36px) !important;
  }
}

@media (max-width: 640px) and (max-height: 760px) {
  .side-nav {
    padding-bottom: calc(env(safe-area-inset-bottom) + 22px) !important;
  }
  .nav-lang {
    margin-top: 24px !important;
    margin-bottom: 30px !important;
  }
  .nav-player {
    margin-top: 0 !important;
  }
}

/* ============================================================
   PATCH — centrage des derniers titres sur petits mobiles
   ============================================================ */
@media (max-width: 640px) {
  .slide-home {
    align-items: center !important;
  }

  .slide-home .now-playing-card,
  .slide-home .recent-tracks {
    width: min(100%, 330px) !important;
    max-width: calc(100vw - (var(--aw) * 2)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .slide-home .recent-tracks {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .slide-home .section-label {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .slide-home .tracks-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .slide-home .track-item {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 380px) {
  .slide-home .now-playing-card,
  .slide-home .recent-tracks {
    width: min(100%, 312px) !important;
    max-width: calc(100vw - 56px) !important;
  }

  .slide-home .tracks-grid {
    gap: 8px !important;
  }

  .slide-home .track-item {
    padding-left: 12px !important;
    padding-right: 66px !important;
  }
}

/* ============================================================
   PATCH — centrage strict des derniers titres sur iPhone mini
   ============================================================ */
@media (max-width: 390px) {
  .slide-home .recent-tracks {
    width: min(100%, 286px) !important;
    max-width: 286px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    transform: none !important;
  }

  .slide-home .tracks-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  .slide-home .track-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 62px !important;
  }
}

@media (max-width: 360px) {
  .slide-home .recent-tracks {
    width: min(100%, 272px) !important;
    max-width: 272px !important;
  }
}

/* ============================================================
   PATCH FINAL — centrage iPhone 13 mini / petits écrans
   Le padding horizontal global utilisait --aw (64px), ce qui
   réduisait trop la zone utile et décalait les derniers titres.
   ============================================================ */
@media (max-width: 390px) {
  .slide.slide-home {
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }

  .slide-home .now-playing-card,
  .slide-home .recent-tracks {
    width: 100% !important;
    max-width: 292px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
  }

  .slide-home .tracks-grid {
    width: 100% !important;
    max-width: 292px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-items: stretch !important;
  }

  .slide-home .track-item {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 360px) {
  .slide.slide-home {
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }

  .slide-home .now-playing-card,
  .slide-home .recent-tracks,
  .slide-home .tracks-grid {
    max-width: calc(100vw - 48px) !important;
  }
}

/* ============================================================
   PATCH FINAL — iPhone 13 mini : centrage réel des derniers titres
   Le rendu iOS/Safari peut garder un léger décalage à droite à cause
   des paddings cumulés du slide et des anciennes règles max-width.
   On centre la liste sur la largeur réelle du viewport, puis on laisse
   les cartes remplir exactement cette largeur.
   ============================================================ */
@media (max-width: 390px) {
  .slide.slide-home {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .slide-home .recent-tracks {
    width: calc(100vw - 72px) !important;
    max-width: 300px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: translateX(-14px) !important;
    box-sizing: border-box !important;
  }

  .slide-home .tracks-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
  }

  .slide-home .track-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .slide-home .section-label {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 360px) {
  .slide-home .recent-tracks {
    width: calc(100vw - 64px) !important;
    max-width: 288px !important;
    transform: translateX(-12px) !important;
  }
}

/* ============================================================
   PATCH 2026-05-22 — iPhone 12 mini : mini-player menu adaptatif
   + défilement automatique du titrage trop long
   ============================================================ */
.side-nav{
  height:100vh !important;
  max-height:100vh !important;
  box-sizing:border-box !important;
}
@supports (height: 100svh){
  .side-nav{height:100svh !important;max-height:100svh !important;}
}

.nav-track-info{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.nav-track-title,
.nav-track-artist{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
.nav-track-title.is-marquee,
.nav-track-artist.is-marquee{
  display:block !important;
  overflow:visible !important;
  text-overflow:clip !important;
  padding-left:100% !important;
  animation:navTrackMarquee 9s linear infinite !important;
  will-change:transform !important;
}
.nav-track-artist.is-marquee{animation-duration:10.5s !important;}
@keyframes navTrackMarquee{
  0%,12%{transform:translateX(0);}
  88%,100%{transform:translateX(-100%);}
}

@media (max-width:640px){
  .side-nav{
    width:min(86vw, 318px) !important;
    padding:70px 24px calc(env(safe-area-inset-bottom) + 18px) !important;
    overflow:hidden !important;
  }
  .side-nav ul{gap:3px !important;flex:0 0 auto !important;}
  .nav-link{padding:11px 15px !important;font-size:16px !important;line-height:1.1 !important;}
  .nav-lang{margin-top:22px !important;margin-bottom:18px !important;flex:0 0 auto !important;}
  .nav-player{
    flex:0 0 auto !important;
    margin-top:auto !important;
    padding:14px !important;
    gap:8px !important;
    border-radius:14px !important;
    max-height:calc(100svh - 420px) !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  .nav-cover{
    width:clamp(68px, 22svh, 96px) !important;
    height:clamp(68px, 22svh, 96px) !important;
    border-radius:13px !important;
  }
  .nav-track-title{font-size:13px !important;line-height:1.1 !important;}
  .nav-track-artist{font-size:11.5px !important;line-height:1.1 !important;}
  .nav-controls{gap:10px !important;min-height:38px !important;}
  .nav-play-btn{width:38px !important;height:38px !important;min-width:38px !important;}
  .nav-vol{gap:7px !important;min-width:0 !important;}
  .vol-slider{min-width:0 !important;width:100% !important;}
}

@media (max-width:390px) and (max-height:760px){
  .side-nav{
    padding-top:62px !important;
    padding-left:20px !important;
    padding-right:20px !important;
    padding-bottom:calc(env(safe-area-inset-bottom) + 14px) !important;
  }
  .nav-close{top:18px !important;left:18px !important;width:34px !important;height:34px !important;}
  .nav-link{padding:10px 14px !important;font-size:15.5px !important;}
  .nav-lang{margin-top:18px !important;margin-bottom:14px !important;}
  .lang-btn{padding:6px 14px !important;font-size:12px !important;}
  .nav-player{padding:12px !important;gap:7px !important;}
  .nav-cover{width:72px !important;height:72px !important;border-radius:12px !important;}
  .nav-controls{gap:8px !important;}
  .nav-play-btn{width:34px !important;height:34px !important;min-width:34px !important;font-size:12px !important;}
}

@media (max-width:390px) and (max-height:700px){
  .side-nav{padding-top:56px !important;}
  .nav-link{padding:8px 13px !important;font-size:14.5px !important;}
  .nav-lang{margin-top:14px !important;margin-bottom:10px !important;}
  .nav-player{padding:10px !important;gap:6px !important;}
  .nav-cover{width:60px !important;height:60px !important;}
  .nav-track-title{font-size:12px !important;}
  .nav-track-artist{font-size:10.5px !important;}
  .nav-play-btn{width:32px !important;height:32px !important;min-width:32px !important;}
}

/* ============================================================
   PATCH 2026-05-25 — Derniers titres : blocs largeur uniforme
   + ellipsis sur les textes trop longs
   ============================================================ */
.recent-tracks,
.tracks-grid,
.track-item,
.track-meta,
.track-name,
.track-song {
  box-sizing: border-box !important;
}

.tracks-grid {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

.track-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.track-meta {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.track-name,
.track-song {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1180px) {
  .tracks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .slide-home .tracks-grid,
  .tracks-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .slide-home .track-item,
  .track-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}
