@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- 1. CONFIGURATION DE BASE --- */
:root {
  --theme-color: #555; /* Couleur par défaut */
  --text-on-theme: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #ffffff;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Titre principal H1 (Page d'accueil) */
h1 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #e6e6e6, #e6e6e6cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
  letter-spacing: -0.02em;
}

/* --- 2. NAVIGATION --- */
nav {
  padding-bottom: 20px;
}

.back-btn {
  text-decoration: none;
  color: white;
  background-color: var(--theme-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.2s;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-btn:hover {
  transform: scale(1.05);
}

/* --- 3. GALERIE (Page d'accueil) --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery a {
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.gallery a:hover {
  transform: translateY(-8px);
}

/* --- 4. PAGE PROFIL ARTISTE --- */
.artist-container {
  max-width: 1100px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  gap: 40px;
  background: linear-gradient(to right, #1e1e1e, #2a2a2a);
  padding: 40px;
  border-radius: 20px;
  border-left: 10px solid var(--theme-color);
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.artist-hero-img {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  border: 4px solid var(--theme-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-right {
  flex: 2;
  min-width: 300px;
}

/* Nom de l'artiste en BLANC */
.artist-name {
  font-size: 3rem;
  margin-top: 0;
  color: #ffffff; 
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
  background: none;
  -webkit-text-fill-color: initial;
}

.artist-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.stat-item {
  background: #333;
  padding: 8px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-item i {
  color: var(--theme-color);
}

.biography {
  line-height: 1.6;
  font-size: 1.1rem;
  color: #ddd;
}

/* --- 5. TOP 10 & TRACKS --- */
.track-list {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 15px;
}

.track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px;
  border-bottom: 1px solid #333;
}

.track:last-child {
  border-bottom: none;
}

.track-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.track-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--theme-color);
  min-width: 30px;
}

/* --- 6. BOUTONS STREAMING --- */
.streaming-links {
  display: flex;
  gap: 8px;
}

.platform {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--theme-color);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.platform i {
  font-size: 22px;
  color: #ffffff;
}

/* Correctif SVG pour Tidal */
.platform svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* Rotation du logo Tidal s'il est à l'envers */
.platform.tidal svg {
  transform: rotate(180deg);
}

.platform:hover {
  transform: translateY(-3px) scale(1.1);
  filter: brightness(1.2);
}

/* Zoom spécial Tidal pour garder la rotation */
.platform.tidal:hover svg {
  transform: rotate(180deg) scale(1.2);
}

/* --- 7. BADGES AGE --- */
.age-restriction, .age-restriction2, .age-restriction3, .age-restriction4, .age-restriction5 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: sans-serif;
  line-height: 1;
  margin-top: 10px;
}

.age-restriction { background-color: #910000; }
.age-restriction2 { background-color: #ff9500; }
.age-restriction3 { background-color: #ffea00; }
.age-restriction4 { background-color: #78e200; }
.age-restriction5 { background-color: #118e00; }

.warning-text { font-size: 0.5rem; font-weight: bold; }
.age-limit { font-size: 1.2rem; font-weight: 900; }

/* --- 8. DIVERS --- */
.discography h2, .top-tracks h2 {
  border-bottom: 2px solid var(--theme-color);
  padding-bottom: 10px;
  margin: 40px 0 20px 0;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.albums-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}

.albums-grid img:hover {
  transform: scale(1.05);
}

/* Cache les lecteurs audio originaux */
audio {
  display: none !important;
}

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
  .track {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .streaming-links {
    width: 100%;
    justify-content: center;
  }
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .artist-name {
    text-align: center;
  }
}