@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --accent: #e91e63;
  --accent2: #00e0ff;
  --bg: #0a0a0f;
  --panel: rgba(15, 15, 25, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --muted: #aaa;
  --radius: 20px;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #000428, #004e92);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 10px #0005;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar h1 {
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
  animation: glowText 3s infinite alternate;
}
@keyframes glowText {
  from { filter: drop-shadow(0 0 2px var(--accent)); }
  to { filter: drop-shadow(0 0 6px var(--accent2)); }
}
.navbar nav a {
  color: var(--text);
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}
.navbar nav a:hover {
  color: var(--accent2);
}

/* --- Intro --- */
.panel {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 1.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.intro p {
  color: var(--muted);
  font-size: 1rem;
}

/* --- Cards --- */
.cards {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 0 8%;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 25px;
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.05);
  text-decoration: none;
  color: var(--text);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
}
.card::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover::before {
  opacity: 0.15;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(233, 30, 99, 0.25), 0 0 15px rgba(0, 224, 255, 0.25);
  border-color: var(--accent2);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Audio section (non visible mais utile au DOM) --- */
.music {
  margin-top: 60px;
  display: none;
}

/* --- Footer --- */
footer {
  margin-top: 80px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 100px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .navbar h1 { font-size: 1rem; }
  .intro h2 { font-size: 1.6rem; }
}

/* 🎧 --- Bandeau Radio Stylé --- */
.radio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(15, 15, 25, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  z-index: 999;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 1s ease-out 0.8s forwards;
  box-shadow: 0 -5px 15px rgba(0, 224, 255, 0.15);
}
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Infos radio */
.radio-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.radio-title {
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(90deg, #e91e63, #00e0ff);
  -webkit-background-clip: text;
  color: transparent;
  animation: glowTitle 2s infinite alternate;
}
@keyframes glowTitle {
  from { text-shadow: 0 0 3px var(--accent); }
  to { text-shadow: 0 0 8px var(--accent2); }
}

/* Titre du morceau dynamique */
.radio-now {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  animation: fadeNow 2s ease-in-out infinite alternate;
}
@keyframes fadeNow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Animation ondes audio */
.radio-waves {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 20px;
}
.radio-waves span {
  width: 4px;
  height: 6px;
  background: #00e0ff;
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}
.radio-waves span:nth-child(2) { animation-delay: 0.1s; }
.radio-waves span:nth-child(3) { animation-delay: 0.2s; }
.radio-waves span:nth-child(4) { animation-delay: 0.3s; }
.radio-waves span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 6px; opacity: 0.6; }
  50% { height: 20px; opacity: 1; }
}

/* Contrôles radio */
.radio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radio-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.3s;
}
.radio-controls button:hover {
  transform: scale(1.25);
  color: var(--accent2);
}
.radio-controls input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 90px;
}

/* Effet glow sur le titre en cours */
.radio-now.glow {
  color: #fff;
  text-shadow: 0 0 8px var(--accent2), 0 0 12px var(--accent);
  animation: glowPulse 1.6s infinite alternate;
}
@keyframes glowPulse {
  from { opacity: 0.85; filter: drop-shadow(0 0 4px var(--accent)); }
  to { opacity: 1; filter: drop-shadow(0 0 10px var(--accent2)); }
}
