/* Reset + variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0f0f0f;
  --bg-darker: #0b0b0b;
  --surface: #171717;
  --text-color: #e5e5e5;
  --text-muted: #b3b3b3;
  --accent: #ff5a1f;
  --brand: #ffffff;
  --border: #2a2a2a;
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 14px 30px rgba(0,0,0,.45);
}

body.theme-dark {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-dark);
  scroll-behavior: smooth;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: #121212; border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { color: var(--brand); font-weight: 800; letter-spacing: 1px; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { text-decoration: none; color: var(--brand); font-weight: 500; position: relative; transition: color .2s ease; }
.nav-link:hover { color: var(--accent); }
.hamburger { display: none; flex-direction: column; cursor: pointer; background: transparent; border: 0; }
.bar { width: 25px; height: 3px; background: var(--text-color); margin: 3px 0; transition: .3s; }

/* Layout helpers */
.section { padding: 72px 0; position: relative; }
.content-wrap { margin: 0 auto; padding: 0 20px; }
.content-wrap.narrow { max-width: 1000px; }
.content-wrap.wide { max-width: 1280px; }
.content-wrap.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

/* Hero */
.hero-section { background: var(--bg-darker); padding-top: 24px; }
.hero-banner { position: relative; margin: 0 auto; max-width: 1180px; box-shadow: var(--shadow-lg); }
.hero-banner img,
.hero-banner video { width: 100%; height: auto; display: block; }
.hero-caption { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: 28px; text-shadow: 0 4px 18px rgba(0,0,0,.7); }
.scroll-down { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: 26px; opacity: .9; }

/* About */
.about-section { background: var(--bg-dark); }
.about-image img,
.about-image video { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
.about-text h2 { font-size: 36px; margin-bottom: 12px; }
.about-text p { color: var(--text-muted); font-size: 18px; }

/* Platforms */
.platforms-section { background: #121212 url('../assets/WEBSITE/Bckground.JPG') center/cover no-repeat; }
.platforms-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.platforms-section .content-wrap { position: relative; z-index: 1; }
.platforms-section h2 { text-align: center; font-size: 32px; margin-bottom: 8px; }
.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 28px; }
.platforms-list { list-style: none; display: flex; gap: 36px; justify-content: center; align-items: center; margin: 28px 0 18px; }
.platforms-label { margin-top: 24px; text-align: center; letter-spacing: 6px; color: var(--accent); }
.platform-btn { width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; box-shadow: var(--shadow); background: #222; position: relative; overflow: hidden; color: #fff; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, filter .2s ease; }
.platform-btn svg { width: 36px; height: 36px; display: block; }
.platform-btn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.platform-btn:active { transform: translateY(0) scale(.96); }
.platform-btn:active::after { animation: ripple .6s ease-out; }
.platform-btn:hover { transform: translateY(-2px) scale(1.03); }
.platform-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.platform-btn.spotify:hover { box-shadow: 0 0 0 4px rgba(30,215,96,.18), 0 12px 28px rgba(30,215,96,.35); filter: saturate(1.1); }
.platform-btn.apple-music:hover { box-shadow: 0 0 0 4px rgba(255,60,60,.18), 0 12px 28px rgba(255,60,60,.35); filter: saturate(1.1); }
.platform-btn.youtube:hover { box-shadow: 0 0 0 4px rgba(255,0,0,.18), 0 12px 28px rgba(255,0,0,.35); filter: saturate(1.1); }

@keyframes ripple {
  0% { opacity: .5; transform: translate(-50%, -50%) scale(0); }
  70% { opacity: .25; transform: translate(-50%, -50%) scale(5.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7); }
}
.platform-btn.spotify { background: radial-gradient(circle at 30% 30%, #1ed760, #0f5132); }
.platform-btn.apple-music { background: radial-gradient(circle at 30% 30%, #ff3c3c, #9b1c1c); }
.platform-btn.itunes { background: radial-gradient(circle at 30% 30%, #c471f5, #6a00f4); }
.platform-btn.youtube { background: radial-gradient(circle at 30% 30%, #ff0000, #8b0000); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; }

/* Projects */
.projects-section { background: #141414; }
.albums-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; justify-items: center; }
.album-card { text-align: center; max-width: 360px; position: relative; }
.album-card img { width: 100%; height: auto; border: 6px solid #0e0e0e; box-shadow: var(--shadow); }
.album-card h3 { color: var(--accent); font-weight: 700; letter-spacing: 2px; margin: 16px 0; font-size: 28px; }
.album-card h3 em { font-style: italic; font-weight: 600; opacity: .9; }
.album-meta { list-style: none; text-align: left; background: #1f2937; color: #e5edf7; padding: 14px; border-radius: 6px; }
.album-meta li { margin: 6px 0; }
.album-meta span { color: #cfe1ff; font-weight: 600; }

/* Gallery */
.gallery-section { background: var(--bg-dark); }
.gallery-section h2 { text-align: center; margin-bottom: 8px; }
.gallery-section p { text-align: center; color: var(--text-muted); }

/* Contact */
.contact-section { background: var(--bg-darker); }
.contact-section a { color: var(--accent); }

/* Footer */
.site-footer { background: #0a0a0a; border-top: 1px solid var(--border); padding: 36px 0; color: var(--text-muted); text-align: center; }
.footer-logo { width: 120px; height: auto; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 1024px) {
  .albums-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .albums-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-menu { position: fixed; left: -100%; top: 64px; flex-direction: column; background-color: #121212; width: 100%; text-align: center; transition: 0.3s; box-shadow: var(--shadow); padding: 2rem 0; gap: 1rem; }
  .nav-menu.active { left: 0; }
  .hamburger { display: flex; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 12px; }
  .hero-caption { font-size: 20px; bottom: 22px; }
  .platform-btn { width: 64px; height: 64px; }
}
/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); 
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--surface);
  margin: 2vh auto; 
  padding: 20px;
  border: 1px solid var(--border);
  width: 95%; 
  max-width: 1200px;
  height: 96vh;
  border-radius: 8px;
  position: relative;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10;
  color: var(--text-muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  flex: 1;
  min-height: 0; /* Important for nested scroll */
  overflow: hidden;
  padding-top: 10px;
}

.album-details {
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 10px;
}

.album-details img {
  width: 100%;
  max-width: 250px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin: 0 auto 15px;
}

.tracklist {
  text-align: left;
  margin-top: 20px;
  overflow-y: auto;
  flex: 1;
}

.lyrics-container {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  height: 100%;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .modal-content {
    height: auto;
    min-height: 100vh;
    margin: 0;
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .lyrics-container {
    height: auto;
    max-height: none;
  }
}

.tracklist {
  text-align: left;
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.track-item {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  gap: 10px;
}

.track-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.track-item.active {
  background-color: rgba(255, 90, 31, 0.1);
  border-left: 3px solid var(--accent);
}

.track-number {
  color: var(--text-muted);
  font-weight: bold;
  min-width: 25px;
}

.track-title {
  font-weight: 500;
}

.lyrics-container {
  background: rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.lyrics-container h3 {
  color: var(--accent);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.lyrics-container pre {
  white-space: pre-wrap;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #ddd;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  .lyrics-container {
    max-height: 400px;
  }
}

/* Badge Nouveau */
.badge-new {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-color);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  padding-left: 50px; /* Space for icon */
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  display: none; /* Hidden by default */
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.result-title {
  font-weight: 700;
  color: var(--text-color);
}

.result-album {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.result-snippet {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: var(--text-color);
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--accent);
}

.cookie-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.cookie-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}
