/* =========================
   VARIABLES & BASE
========================= */
:root {
  /* Couleurs principales */
  --couleur-principale: #6366f1;
  --couleur-accent: #fbbf24;
  --couleur-fond: #f9fafb;
  --couleur-texte-2: #fff;
  --muted: #9ca3af;

  /* Fond */
  --bg-main: #020617;
  --color-bg-card: #0f172a;

  /* Texte */
  --color-text-primary: #f1f5f9;
  --color-muted: #64748b;
  --color-muted-light: #94a3b8;
  --color-muted-dark: #475569;

  /* Indigo palette */
  --color-indigo-light: #c7d2fe;
  --color-indigo-mid: #818cf8;
  --color-indigo-soft: #a5b4fc;

  /* Accents */
  --color-red-soft: #f87171;

  /* Utilitaires */
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);

  /* Typographie */
  --font-mono: "DM Mono", monospace;
  --font-display: "Syne", sans-serif;
  --font-body: Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.25s ease;

  /* Z-index */
  --z-base:     1;
  --z-above:    2;
  --z-nav:      10;
  --z-overlay:  200;
  --z-drawer:   201;
  --z-modal:    500;
  --z-feedback: 999;
  --z-player:   1000;

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 999px;
}

html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 72px;
}

body {
  background: var(--bg-main);
  color: var(--couleur-texte-2);
  font-family: var(--font-body);
  padding-bottom: 90px; /* espace pour le player global fixe */
}

h1,
h2,
h3 {
  color: var(--couleur-texte-2);
}

section {
  padding: 60px 0;
}

.pt-header {
  padding-top: 4.25rem;
}

/* =========================
   NAVBAR
========================= */

/* Header : position absolute sur index (hero vidéo), normal ailleurs */
header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: transparent;
}

/* Sur les pages sans hero vidéo, le header est en flux normal */
body:not(:has(section.hero)) header {
  position: relative;
  background:
    radial-gradient(
      circle at 20% 40%,
      rgba(99, 102, 241, 0.45),
      transparent 65%
    ),
    radial-gradient(
      circle at 80% 60%,
      var(--couleur-principale),
      transparent 65%
    ),
    linear-gradient(135deg, #0a0f1f 0%, #141b36 100%);
}

.navbar {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0.75rem 1.5rem;
}

.navbar .navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  margin: 10px;
  gap: 40px;
}

/* Navbar transparente sur le hero */
.navbar.navbar-hero,
.navbar.fixed-top {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
  border: none;
}

/* Texte navbar */
.navbar-hero .navbar-brand,
.navbar-hero .nav-link,
.navbar.fixed-top .navbar-brand,
.navbar.fixed-top .nav-link {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  padding-inline: 0.9rem;
  text-transform: uppercase;
}

/* Bouton hamburger */
.navbar-hero .navbar-toggler,
.navbar.fixed-top .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}
.navbar-hero .navbar-toggler-icon,
.navbar.fixed-top .navbar-toggler-icon {
  filter: invert(1);
}

/* Hover nav */
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--couleur-accent);
}

/* Menu déroulant mobile : fond sombre pour éviter collision avec le hero */
.navbar-collapse.show,
.navbar-collapse.collapsing {
  background: rgba(5, 8, 22, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0 0 16px 16px;
  padding: 0.75rem 1rem 1rem;
  margin-top: 0.25rem;
}

.navbar-collapse.show .nav-link,
.navbar-collapse.collapsing .nav-link {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}
.navbar-collapse.show .nav-link:last-child,
.navbar-collapse.collapsing .nav-link:last-child {
  border-bottom: none;
}

/* Dot connecté */
.auth-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

/* =========================
   HERO & SCROLL INDICATOR
========================= */

section.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

/* Contenu centré dans le hero */
.hero-inner {
  position: relative;
  z-index: var(--z-above);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px; /* 80px top = espace sous la navbar */
}

.hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-inner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  margin-bottom: 36px;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================
   BOUTONS
========================= */

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
  white-space: nowrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  border: 1px solid rgba(99, 102, 241, 0.6);
  color: #ffffff;
  box-shadow:
    0 0 24px rgba(99, 102, 241, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 40px rgba(99, 102, 241, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(56, 189, 248, 0.9);
  color: #ffffff;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.btn-hero-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* =========================
   COMMENT ÇA MARCHE
========================= */

.how-ultra {
  text-align: center;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(236, 72, 153, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(129, 140, 248, 0.4);
  backdrop-filter: blur(12px);
  transition: var(--transition-slow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.how-ultra:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.8);
  border-color: rgba(56, 189, 248, 0.8);
}

.hu-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.5), transparent 70%),
    radial-gradient(
      circle at 100% 100%,
      rgba(236, 72, 153, 0.5),
      transparent 70%
    ),
    var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.3rem;
  margin: 0 auto 1.2rem;
}
.hu-icon svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

/* =========================
   UTILITAIRES
========================= */

button[data-auth] {
  border-radius: var(--radius-md);
  padding: 8px 14px;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
button[data-auth]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);
}

.bme-section {
  background:
    radial-gradient(
        circle at top left,
        rgba(79, 70, 229, 0.16),
        transparent 60%
      )
      no-repeat,
    #020617;
}

.btn-primary-bme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.8);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(56, 189, 248, 0.45),
    rgba(30, 64, 175, 0.9)
  );
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: #e6f0ff;
  text-decoration: none;
  transition: var(--transition-slow);
}

.btn-primary-bme:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 1);
}

.btn-secondary-bme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #e2e8f0;
  text-decoration: none;
  transition: var(--transition-slow);
}

.btn-secondary-bme:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(129, 140, 248, 0.6);
}

/* =========================
   TRACKS
========================= */

#tracks {
  background: linear-gradient(var(--bg-main), var(--bg-main));
  padding-top: 5rem;
  padding-bottom: 5rem;
}
#discover {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
#how,
#discord {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ── Containers élargis pour les grilles ── */
#discover .container,
#tracks .container {
  max-width: 1400px;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Grilles : gap généreux entre les cartes ── */
#discover-grid.row,
#tracks-grid.row {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

/* ── Zone texte sous la cover : hauteur fixe + flex pour aligner ── */

/* Titre : une seule ligne avec ellipsis */
.track-title-main {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lien artiste aligné sous le titre */
.track-artist-link:hover {
  opacity: 1;
  color: var(--color-indigo-light);
  text-shadow: 0 0 8px rgba(165, 180, 252, 0.6);
}

/* wrap titre+artiste : colonne, pas de overflow */

#tracks .titre {
  color: var(--couleur-fond);
}
.track-card.playing {
  outline: 2px solid rgba(139, 92, 246, 0.9);
}

#discover .track-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
#discover .track-card:hover::before {
  transform: translateX(120%);
}
#discover .track-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-slow);
  pointer-events: none;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.tracks-filters {
  padding: 0 0 10px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(15, 12, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--couleur-texte-2);
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  scroll-snap-align: start;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(129, 140, 248, 0.6);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(129, 140, 248, 0.35);
  border-color: rgba(129, 140, 248, 1);
  color: #fff;
}

.tracks-count {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #e5e7eb;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
  white-space: nowrap;
}

.tracks-count::before {
  content: "⚡ ";
  opacity: 0.6;
}

#tracks .track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border var(--transition-slow);
  cursor: pointer;
}

.track-card.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.track-card.truncated {
  display: none;
}

.track-media {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.track-cover-full {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
  cursor: pointer;
}

#tracks .track-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(129, 140, 248, 0.12) 20%,
    transparent 40%
  );
  transform: translateX(-110%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

#tracks .track-card:hover::before {
  transform: translateX(120%);
}

#tracks .track-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-slow);
  pointer-events: none;
}

#tracks .track-card:hover::after {
  background: rgba(0, 0, 0, 0.25);
}
#tracks .track-card:hover .track-cover-full {
  transform: scale(1.05);
}

.track-play-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: radial-gradient(
    circle at 30% 30%,
    #60a5fa 0,
    #1d4ed8 45%,
    #020617 100%
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.track-card:hover .track-play-pill,
.track-card.is-playing .track-play-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.track-play-pill::before {
  content: "▶";
  color: #e5e7eb;
  font-size: 0.8rem;
  margin-left: 1px;
}

.track-card.is-playing .track-play-pill::before {
  content: "⏸";
}

.track-main-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

.track-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.track-level-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  white-space: nowrap;
}

.track-level--novice {
  border-color: rgba(148, 163, 184, 0.9);
  opacity: 0.9;
}
.track-level--inter {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}
.track-level--avance {
  border-color: var(--couleur-accent);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.track-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem 0.9rem;
  gap: 0.5rem;
}

.track-like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #e5e7eb;
  font-size: 0.75rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.track-like-btn .like-icon {
  font-size: 14px;
  display: inline-block;
  transform: translateY(1px);
}

.track-like-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.5);
}

.track-like-btn.is-liked {
  background: rgba(255, 0, 90, 0.25);
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}

.track-like-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.track-like-icon {
  font-size: 0.85rem;
}
.track-like-count {
  min-width: 1.2rem;
  text-align: right;
}

.track-card.is-playing {
  outline: 1px solid var(--couleur-accent);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
}

.track-card.is-playing:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.55);
  border-color: var(--couleur-accent);
}

.track-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: var(--couleur-texte-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.track-tag--bpm {
  border-color: var(--couleur-accent);
}
.track-tag--style {
  border-color: rgba(96, 165, 250, 0.8);
}
.track-tag--mood {
  border-color: rgba(244, 114, 182, 0.8);
}

#tracks .text-mod {
  color: var(--couleur-fond);
}

.tracks-loading,
.tracks-empty {
  margin-top: 0.5rem;
}
.tracks-loading p,
.tracks-empty p {
  font-size: 0.95rem;
  opacity: 0.85;
}
.tracks-empty span {
  font-size: 0.85rem;
}

/* =========================
   DISCORD CARD
========================= */

.discord-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(129, 140, 248, 0.16),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
}

.discord-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    rgba(56, 189, 248, 0),
    rgba(56, 189, 248, 0.45),
    rgba(129, 140, 248, 0),
    rgba(236, 72, 153, 0.52),
    rgba(56, 189, 248, 0)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.discord-card:hover::before {
  opacity: 0.18;
}

.discord-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 1.3rem;
}

.discord-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.26);
}

.discord-pill-text {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.discord-card-main {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
}

.discord-card-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 0, rgba(251, 191, 36, 0.8), transparent 55%),
    radial-gradient(
      circle at 80% 100%,
      rgba(56, 189, 248, 0.85),
      transparent 55%
    ),
    #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.discord-icon-letter {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.discord-card-text {
  flex: 1;
  min-width: 0;
}
.discord-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.discord-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.discord-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.9);
}

/* =========================
   FOOTER
========================= */

.footer-section {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.2), transparent 55%),
    radial-gradient(
      circle at 80% 60%,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: var(--couleur-texte-2);
}

.footer-section .footer-link,
.footer-section .footer-title,
.footer-section .footer-copy {
  color: #f9fafb;
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--couleur-texte-2);
}

.footer-link {
  color: var(--couleur-texte-2);
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: var(--transition-slow);
}

.footer-link:hover {
  opacity: 1;
  color: var(--couleur-accent);
  text-shadow: 0 0 8px rgba(129, 140, 248, 0.45);
}

.footer-line {
  width: 100%;
  height: 1px;
  margin: 1.2rem auto 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(129, 140, 248, 0.6),
    transparent
  );
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.4);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-stagger],
#tracks .reveal[data-stagger] {
  transition-delay: var(--stagger, 0ms);
}

.track-artist-link {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-indigo-soft);
  text-decoration: none;
  opacity: 0.85;
  transition:
    opacity var(--transition-base),
    color var(--transition-base),
    text-shadow var(--transition-base);
}
.track-artist-link:hover {
  opacity: 1;
  color: var(--color-indigo-light);
  text-shadow: 0 0 8px rgba(165, 180, 252, 0.6);
}
.track-card:hover .track-artist-link {
  opacity: 1;
}

/* =========================
   TRACK PAGE
========================= */

.track-title-link {
  color: inherit;
  text-decoration: none;
}
.track-title-link:hover {
  color: var(--couleur-accent);
  text-decoration: underline;
}

.track-page-content {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
}

.track-page-cover-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.track-page-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-base);
}
.track-page-like-btn .like-icon {
  font-size: 1rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--color-muted-light);
}
.track-page-like-btn.is-liked {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-red-soft);
}
.track-page-like-btn.is-liked .like-icon {
  color: var(--color-red-soft);
  transform: scale(1.2);
}
.track-page-like-btn:hover .like-icon {
  transform: scale(1.15);
}

.track-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red-soft);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity var(--transition-base),
    background var(--transition-base),
    transform var(--transition-base);
  z-index: var(--z-nav);
}
.track-card:hover .track-delete-btn {
  opacity: 1;
}
.track-delete-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  transform: scale(1.1);
}
.track-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   ARTISTS SECTION
========================= */

.artist-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  cursor: pointer;
  height: 100%;
}

.artist-card:hover,
.artist-card:focus-visible {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.18);
  outline: none;
  color: inherit;
  text-decoration: none;
}

/* ── Banner couleur en haut de la carte ── */
.artist-banner {
  height: 64px;
  position: relative;
  flex-shrink: 0;
}

/* ── Avatar à cheval sur la banner ── */
.artist-avatar-wrap {
  position: absolute;
  bottom: -24px;
  left: 16px;
}

.artist-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  border: 3px solid #020617;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  user-select: none;
  position: relative;
  z-index: var(--z-base);
  overflow: hidden;
}

/* Photo de profil dans l'avatar */
.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.artist-avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  filter: blur(8px);
}

.artist-card:hover .artist-avatar-glow { opacity: 0.6; }

/* ── Infos artiste ── */
.artist-info {
  padding: 32px 16px 16px;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.artist-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-bio {
  font-size: 0.78rem;
  color: var(--color-muted-light);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Stats en bas de la carte ── */
.artist-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.artist-prod-count {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.artist-feedback-count {
  font-size: 0.7rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.artist-skeleton {
  pointer-events: none;
}

.skeleton-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  flex-shrink: 0;
}

.skeleton-line {
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  display: block;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* =========================
   UPLOAD PAGE DÉDIÉE
========================= */

.upload-hero {
  min-height: 22vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.5rem;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(99, 102, 241, 0.35),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(139, 92, 246, 0.25),
      transparent 60%
    ),
    #020617;
  border-bottom: 1px solid rgba(99, 102, 241, 0.18);
}

.upload-hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--couleur-principale);
  margin-bottom: 0.5rem;
}

.upload-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.upload-hero-sub {
  color: var(--color-muted-light);
  font-size: 1rem;
  max-width: 520px;
}

.upload-auth-wall {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}
.upload-auth-wall.is-visible {
  display: block;
}
.upload-auth-wall .wall-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.upload-auth-wall h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.upload-auth-wall p {
  color: var(--color-muted-light);
  margin-bottom: 1.5rem;
}

.upload-page-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* ── Dropzone ── */
.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.04);
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    background var(--transition-base);
  margin-bottom: 1.25rem;
}

.upload-dropzone:hover,
.upload-dropzone.is-drag {
  border-color: rgba(99, 102, 241, 0.8);
  background: rgba(99, 102, 241, 0.1);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
}

.dropzone-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.dropzone-content p {
  font-size: 0.9rem;
  color: var(--color-muted-light);
  margin: 0;
}

.dropzone-content small {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.dropzone-content .accent {
  color: var(--color-indigo-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}
.upload-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 36px;
  right: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.upload-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted-light);
  transition: all 0.3s ease;
}
.upload-step.is-active .step-dot {
  background: var(--couleur-principale);
  border-color: var(--couleur-principale);
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}
.upload-step.is-done .step-dot {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.step-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s;
}
.upload-step.is-active .step-label {
  color: var(--color-indigo-light);
}

.upload-progress-wrap {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
}

.upload-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-muted-light);
  margin-bottom: 0.6rem;
}
.upload-progress-label strong {
  color: #fff;
}

.upload-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.upload-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--couleur-principale), var(--color-indigo-mid));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.file-preview {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.file-preview.is-visible {
  display: flex;
}
.file-preview-icon {
  font-size: 1.3rem;
}
.file-preview-name {
  color: #e2e8f0;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-preview-size {
  color: var(--color-muted);
  white-space: nowrap;
}

.upload-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.upload-success.is-visible {
  display: block;
}
.upload-success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes popIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.upload-success h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.upload-success p {
  color: var(--color-muted-light);
  margin-bottom: 2rem;
}

/* =========================
   LECTEUR GLOBAL — fixe en bas
========================= */

.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-player);
  padding: 0 1.25rem;
  height: 72px;
  background: rgba(9, 11, 22, 0.97);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.global-player.is-visible {
  transform: translateY(0);
}

.gp-cover {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.gp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.gp-info {
  flex: 1;
  min-width: 0;
}
.gp-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.gp-meta {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  flex-shrink: 0;
}
.gp-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.3s ease,
    height 0.3s ease;
}
.gp-wave-bar.is-played {
  background: rgba(99, 102, 241, 0.6);
}
.gp-wave-bar.is-current {
  background: #6366f1;
}

.global-player.is-playing .gp-wave-bar.is-current {
  animation: waveAnim 0.8s ease-in-out infinite alternate;
}
@keyframes waveAnim {
  from {
    transform: scaleY(0.7);
  }
  to {
    transform: scaleY(1.3);
  }
}

.gp-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.gp-label {
  display: none;
}

.gp-progress-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  cursor: pointer;
}
.gp-progress-track {
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
}
.gp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, var(--color-indigo-mid));
  transition: width 0.5s linear;
}

.global-player audio {
  display: none;
}
.nowplaying {
  display: none;
}

/* =========================
   FEEDBACK / RATINGS
========================= */

.feedback-dropdown {
  position: relative;
  display: inline-block;
}
.feedback-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.feedback-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: rgba(9, 11, 22, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 6px;
  z-index: var(--z-feedback);
  backdrop-filter: blur(20px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  animation: menuSlideUp 0.18s ease;
}
@keyframes menuSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.feedback-menu.is-open {
  display: block;
}

.feedback-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.feedback-menu-item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: inherit;
  text-decoration: none;
}

.feedback-menu-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feedback-menu-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.feedback-menu-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 1px;
}
.fb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.fb-row:last-of-type {
  border-bottom: none;
}
.fb-icon {
  font-size: 15px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.fb-label {
  font-size: 13px;
  color: var(--color-muted-light);
  width: 120px;
  flex-shrink: 0;
}

.fb-stars {
  display: flex;
  gap: 3px;
}
.fb-star {
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #1e293b;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-star.star-active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--color-indigo-mid);
}
.fb-star.star-hot {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-red-soft);
}

.fb-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted-light);
  min-width: 28px;
}
.fb-sub-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.fb-averages {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}
.fb-total {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: normal;
  margin-left: 8px;
}

.fb-avg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.fb-avg-row:last-child {
  margin-bottom: 0;
}
.fb-avg-icon {
  font-size: 13px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.fb-avg-label {
  font-size: 12px;
  color: var(--color-muted);
  width: 110px;
  flex-shrink: 0;
}
.fb-avg-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.fb-avg-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.fb-avg-val {
  font-size: 12px;
  font-weight: 700;
  min-width: 28px;
  text-align: right;
}

/* Page profil — section avatar */
body > section:first-of-type {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.profile-tracks-section .container,
body > section .container {
  max-width: 900px;
  padding-left: 2rem;
  padding-right: 2rem;
}

#profile-tracks.row {
  row-gap: 1.5rem;
}

/* Tablette (≤ 768px) */
/* Mobile standard (≤ 576px) */
/* iPhone SE et très petits écrans (≤ 390px) */
/* =========================
   PAGE PRODS — prods.html
========================= */

/* ── Hero mini ── */
.prods-hero {
  position: relative;
  background: var(--bg-main);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  padding: 6rem 0 3rem;
  overflow: hidden;
}

/* Grille perspective en fond */
.prods-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.5) 80%, transparent);
  pointer-events: none;
}

/* Glows */
.prods-hero::after {
  content: "";
  position: absolute;
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 65%);
  pointer-events: none;
}

.prods-hero .container {
  position: relative;
  z-index: var(--z-base);
}

/* Waveform decorative droite */
.prods-hero-waveform {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.12;
  z-index: 0;
}

.prods-hero-waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--color-indigo-mid);
  animation: prodsWave 1.4s ease-in-out infinite;
}

@keyframes prodsWave {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

/* Ligne de séparation dégradé */
.prods-hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99,102,241,0.6) 30%, rgba(139,92,246,0.6) 65%, transparent);
}

.prods-hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--couleur-principale);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dot pulsant devant le label */
.prods-hero-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99,102,241,0.8);
  animation: prodsDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes prodsDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(99,102,241,0.8); }
  50%       { opacity: 0.4; box-shadow: 0 0 3px rgba(99,102,241,0.3); }
}

.prods-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(99,102,241,0.3);
}

.prods-hero-sub {
  color: var(--color-muted-dark);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ── Layout pleine largeur ── */
.prods-layout-wrap {
  width: 100%;
}

.prods-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: start;
  padding: 0;
}

/* ── Sidebar filtres ── */
.prods-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: rgba(5, 8, 20, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.prods-sidebar::-webkit-scrollbar {
  width: 4px;
}
.prods-sidebar::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
}

.filter-section-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.prods-search-wrap {
  position: relative;
}

.prods-search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-dark);
  pointer-events: none;
}

.prods-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem 0.55rem 2.25rem;
  color: var(--color-text-primary);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition:
    border-color var(--transition-base),
    background var(--transition-base);
  outline: none;
}

.prods-search::placeholder {
  color: var(--color-muted-dark);
}

.prods-search:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.06);
}

.filter-pills {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: var(--color-muted-light);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
}

.filter-pill:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--color-indigo-light);
}

.filter-pill.is-active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.6);
  color: #e0e7ff;
  font-weight: 600;
}

.filter-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.filter-pill.is-active .filter-pill-dot {
  background: currentColor;
}

.filter-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.sort-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  color: var(--color-text-primary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.sort-select:focus {
  border-color: rgba(99, 102, 241, 0.5);
}
.sort-select option {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
}

.filter-reset-btn {
  width: 100%;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.07);
  color: var(--color-red-soft);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.6);
}

/* ── Badges filtres actifs ── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-height: 0;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--color-indigo-light);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.active-filter-badge button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  font-size: 0.85rem;
}
.active-filter-badge button:hover {
  opacity: 1;
}

/* ── Zone grille principale ── */
.prods-main {
  min-width: 0;
  padding: 2.5rem 2.5rem 5rem;
}

.prods-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.prods-count-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

.prods-count-label strong {
  color: var(--color-indigo-soft);
  font-weight: 600;
}

/* ── Section À découvrir ── */
.discover-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.discover-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.discover-modes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Bouton filtres mobile ── */
.prods-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-indigo-light);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  margin-bottom: 1rem;
}

/* ── Drawer mobile ── */
.prods-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  z-index: var(--z-overlay);
  backdrop-filter: blur(4px);
}

.prods-sidebar-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-drawer);
  background: var(--color-bg-card);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl) 20px 0 0;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prods-sidebar-drawer.is-open {
  transform: translateY(0);
}
.prods-sidebar-overlay.is-open {
  display: block;
}

.drawer-handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 1.5rem;
}

/* ── Typo cards sur prods.html ── */
#discover-grid .track-title-main,
#tracks-grid .track-title-main {
  font-family: var(--font-mono);
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  color: #e2e8f0;
}

#discover-grid .track-artist-link,
#tracks-grid .track-artist-link {
  font-family: var(--font-mono);
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em;
  color: #6366f1;
  opacity: 1;
}

/* ── Responsive prods.html ── */
/* Classes utilitaires prods.html (remplacements inline) */
.filter-count-badge {
  background: rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-full);
  padding: 0 6px;
  font-size: 0.7rem;
}

.btn-refresh-discover {
  opacity: 0.6;
  transition: opacity var(--transition-base);
}
.btn-refresh-discover:hover {
  opacity: 1;
}

.prods-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin: 0 0 0.2rem;
}

/* =========================
   SECTION STATS — index.html
========================= */

.stats-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(99,102,241,0.12), transparent 70%),
    #020617;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.5));
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-indigo-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Responsive */
/* =========================
   PAGE PROFIL — Refonte V2
========================= */

/* ── Hero banner ── */
.profile-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(2,6,23,0.65) 100%);
}

.profile-banner-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition-base);
}
.profile-banner-edit:hover {
  background: rgba(0,0,0,0.65);
}

/* ── Zone principale sous la banner ── */
.profile-body {
  background: var(--bg-main);
  padding: 0 0 4rem;
}

.profile-body .container {
  max-width: 960px;
}

/* ── Header : avatar + infos + actions ── */
.profile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-top: 0;
}

/* ── Avatar ── */
.profile-avatar-wrap {
  position: relative;
  margin-top: -52px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #020617;
  display: block;
  background: linear-gradient(135deg, #6366f1, var(--color-indigo-mid));
}

.profile-avatar-letter {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  user-select: none;
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99,102,241,0.9);
  border: 2px solid #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: #fff;
  transition: background 0.2s;
}
.profile-avatar-edit-btn:hover { background: rgba(99,102,241,1); }

/* ── Actions droite ── */
.profile-actions {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  flex-wrap: wrap;
}

/* ── Infos texte ── */
.profile-info {
  margin-bottom: 1.25rem;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem;
}

.profile-tagline {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

/* Bio inline éditable */
.profile-bio-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 540px;
}

.profile-bio-text {
  font-size: 0.9rem;
  color: var(--color-muted-light);
  line-height: 1.6;
  margin: 0;
}

.profile-bio-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  resize: none;
  outline: none;
  display: none;
}
.profile-bio-input:focus { border-color: rgba(99,102,241,0.8); }

.profile-bio-edit-btn {
  background: none;
  border: none;
  color: var(--color-muted-dark);
  cursor: pointer;
  padding: 2px;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.profile-bio-edit-btn:hover { color: var(--color-indigo-soft); }

/* ── Liens réseaux ── */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.profile-link-pill {
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148,163,184,0.35);
  color: var(--color-muted-light);
  background: rgba(15,26,42,0.6);
  transition: all var(--transition-base);
}
.profile-link-pill:not(.disabled):hover {
  border-color: rgba(129,140,248,0.8);
  color: var(--color-indigo-light);
  box-shadow: 0 0 10px rgba(129,140,248,0.3);
}
.profile-link-pill.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Stats ── */
.profile-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
}

/* ── Section prods ── */
.profile-tracks-section {
  padding: 0;
}

.profile-tracks-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
  margin-bottom: 1.25rem;
}

/* ── Modal édition liens ── */
.profile-links-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(2,6,23,0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.profile-links-modal.is-open { display: flex; }

.profile-links-modal-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: min(90%, 440px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem;
}

.profile-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-modal-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
}

.profile-modal-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--color-text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.profile-modal-input:focus { border-color: rgba(99,102,241,0.6); }

.profile-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ── Upload hidden inputs ── */
.profile-upload-input { display: none; }

/* ── Responsive profil ── */

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-above);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  animation: scrollFade 2.5s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.hero-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* Disparaît quand l'user commence à scroller */
.hero-scroll-indicator.is-hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* =========================
   CTA FINAL — index.html
========================= */

.cta-final-section {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99,102,241,0.18), transparent 70%),
    #020617;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.cta-final-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 1rem;
}

.cta-final-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.cta-final-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* =========================
   PROD EN VEDETTE — index.html
========================= */

.featured-section {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(99,102,241,0.1), transparent 70%),
    #020617;
}

.featured-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--couleur-principale);
  margin: 0 0 0.3rem;
}

.featured-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
}

/* ── Card featured ── */
.featured-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-slow), transform var(--transition-slow);
  cursor: pointer;
}

.featured-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-3px);
}

/* Cover gauche */
.featured-cover-wrap {
  position: relative;
  overflow: hidden;
}

.featured-cover {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.35s ease;
}

.featured-card:hover .featured-cover {
  transform: scale(1.04);
}

.featured-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(2,6,23,0.4));
}

/* Bouton play sur la cover */
.featured-play-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #60a5fa 0, #1d4ed8 45%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  transition: transform var(--transition-base);
}
.featured-play-btn:hover { transform: scale(1.1); }

/* Tag genre */
.featured-genre-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Infos droite */
.featured-info {
  padding: 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
}

.featured-artist {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-indigo-soft);
  text-decoration: none;
  transition: color var(--transition-base);
}
.featured-artist:hover { color: var(--color-indigo-light); }

.featured-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.featured-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.featured-stat strong {
  color: var(--color-muted-light);
  font-weight: 600;
}

.featured-cta {
  margin-top: 0.5rem;
}

/* Skeleton */
.featured-skeleton {
  height: 220px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Responsive */
/* Discover : 4 colonnes identiques aux cartes main (format Steam) */
/* =========================
   ROADMAP SECTION
========================= */

.roadmap-card {
  position: relative;
  padding: 2rem 1.8rem 1.8rem;
  border-radius: var(--radius-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(129, 140, 248, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  overflow: hidden;
}

.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(129, 140, 248, 0.06) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.roadmap-card:hover::before {
  transform: translateX(110%);
}

.roadmap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
}

/* Variantes */
.roadmap-done {
  border-color: rgba(16, 185, 129, 0.3);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 55%),
    rgba(15, 23, 42, 0.75);
}
.roadmap-done:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 24px 55px rgba(16, 185, 129, 0.12);
}

.roadmap-wip {
  border-color: rgba(251, 191, 36, 0.3);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 55%),
    rgba(15, 23, 42, 0.75);
}
.roadmap-wip:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 24px 55px rgba(251, 191, 36, 0.1);
}

.roadmap-soon {
  border-color: rgba(99, 102, 241, 0.3);
}
.roadmap-soon:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 24px 55px rgba(99, 102, 241, 0.12);
}

.roadmap-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--color-muted-light);
  margin-bottom: 0.25rem;
}

.roadmap-done .roadmap-badge {
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.roadmap-wip .roadmap-badge {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.roadmap-soon .roadmap-badge {
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--color-indigo-mid);
}

.roadmap-icon {
  font-size: 2rem;
  line-height: 1;
}

.roadmap-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
}

.roadmap-desc {
  font-size: 0.85rem;
  color: var(--color-muted-light);
  line-height: 1.65;
  margin: 0;
}

/* =========================
   DASHBOARD V2 — Dark Neon
========================= */

.db-wrap {
  min-height: 100vh;
  background: var(--bg-main);
  padding-bottom: 100px;
}

/* ── Hero ── */
.db-hero {
  padding: 6rem 0 3rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(236,72,153,0.12) 0%, transparent 50%),
    #020617;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2.5rem;
}
.db-hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.5rem;
}
.db-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}
.db-hero-sub {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ── Grid KPI ── */
.db-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.db-kpi {
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-slow), transform var(--transition-slow), box-shadow var(--transition-slow);
}
.db-kpi:hover { transform: translateY(-3px); }
.db-kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.06;
  pointer-events: none;
}

.db-kpi.kpi-plays  { border-color: rgba(99,102,241,0.25); }
.db-kpi.kpi-plays:hover  { border-color: rgba(99,102,241,0.6);  box-shadow: 0 0 30px rgba(99,102,241,0.15); }
.db-kpi.kpi-plays::after { background: radial-gradient(circle at top left, #6366f1, transparent); }

.db-kpi.kpi-likes  { border-color: rgba(239,68,68,0.25); }
.db-kpi.kpi-likes:hover  { border-color: rgba(239,68,68,0.6);   box-shadow: 0 0 30px rgba(239,68,68,0.15); }
.db-kpi.kpi-likes::after { background: radial-gradient(circle at top left, #ef4444, transparent); }

.db-kpi.kpi-comments  { border-color: rgba(16,185,129,0.25); }
.db-kpi.kpi-comments:hover  { border-color: rgba(16,185,129,0.6);  box-shadow: 0 0 30px rgba(16,185,129,0.15); }
.db-kpi.kpi-comments::after { background: radial-gradient(circle at top left, #10b981, transparent); }

/* Anneau SVG */
.db-kpi-ring {
  flex-shrink: 0;
  position: relative;
  width: 72px;
  height: 72px;
}
.db-kpi-ring svg { transform: rotate(-90deg); }
.db-kpi-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 5;
}
.db-kpi-ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kpi-plays    .db-kpi-ring-fill { stroke: #6366f1; }
.kpi-likes    .db-kpi-ring-fill { stroke: #ef4444; }
.kpi-comments .db-kpi-ring-fill { stroke: #10b981; }

.db-kpi-ring-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.db-kpi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.db-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Section titre ── */
.db-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.db-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}
.db-track-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6366f1;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ── Grille prods ── */
.db-tracks-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.db-track-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}
.db-track-row:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.25);
  transform: translateX(4px);
}
.db-track-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.db-track-cover {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.db-track-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.db-track-genre {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-muted-dark);
  letter-spacing: 0.08em;
}

/* Rating pills */
.db-ratings {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.db-rating-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--color-indigo-mid);
  letter-spacing: 0.05em;
}
.db-rating-pill.top {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.4);
  color: #fbbf24;
}

/* Stats inline */
.db-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
}
.db-stat-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}
.db-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
}
.db-stat-cell.plays .db-stat-val { color: var(--color-indigo-mid); }
.db-stat-cell.likes .db-stat-val { color: var(--color-red-soft); }
.db-stat-cell.coms  .db-stat-val { color: #34d399; }

.db-track-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.db-track-action a:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: var(--color-indigo-light);
}

/* ── Skeleton ── */
.db-skel-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
}
.db-skel {
  height: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: db-shimmer 1.4s infinite linear;
}
@keyframes db-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Auth wall / Empty ── */
.db-auth-wall {
  text-align: center;
  padding: 5rem 2rem;
}
.db-auth-wall p { color: var(--color-muted); margin-bottom: 1.5rem; }
.db-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.db-empty a { color: var(--color-indigo-mid); text-decoration: none; }

/* =========================
   MEDIA QUERIES
========================= */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .prods-layout {
    grid-template-columns: 1fr;
  }
  .prods-sidebar {
    display: none;
  }
  .prods-filter-toggle {
    display: inline-flex;
  }
  .prods-main {
    padding: 1.5rem 1.25rem 4rem;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar .navbar-nav {
    gap: 0.5rem;
  }

  /* Hero */
  .hero-inner {
    padding: 100px 20px 40px;
  }
  .hero-inner h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
  }

  /* Boutons hero côte à côte → colonne si trop serré */
  .hero-inner > div {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Sections */
  #how,
  #discover,
  #tracks,
  #discord {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .profile-tracks-section .container,
  body > section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Discord card */
  .discord-card {
    padding: 1.4rem 1.2rem;
  }
  .discord-card-main {
    flex-direction: column;
  }
  .discord-card-icon {
    width: 56px;
    height: 56px;
  }

  /* Upload */
  .upload-page-card {
    padding: 1.25rem;
  }
  .step-label {
    display: none;
  }

  /* Player */
  .gp-waveform {
    display: none;
  }

  /* Profil */
  .profile-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .profile-avatar-wrap {
    margin-bottom: 1.5rem;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-cover {
    min-height: 200px;
    height: 200px;
  }
  .featured-cover-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(2,6,23,0.4));
  }
  .featured-info {
    padding: 1.5rem;
  }
  .featured-title { font-size: 1.2rem; }

  .db-kpi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .db-track-row { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .hero-inner {
    padding: 90px 16px 32px;
  }
  .hero-inner h1 {
    font-size: clamp(1.6rem, 8vw, 2rem) !important;
  }
  .hero-inner p {
    font-size: 0.8rem !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.7rem 1.3rem;
    font-size: 0.7rem;
  }

  /* Sections */
  #how,
  #discover,
  #tracks,
  #discord {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* "Comment ça marche" : 1 colonne */
  #how-wrapper .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Player */
  .gp-waveform {
    display: none;
  }
  .gp-cover {
    width: 38px;
    height: 38px;
  }
  .global-player {
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  /* Feedback */
  .fb-label {
    width: 80px;
    font-size: 12px;
  }
  .fb-avg-label {
    width: 75px;
    font-size: 11px;
  }

  .prods-hero {
    padding: 5rem 0 2rem;
  }
  .discover-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .prods-main {
    padding: 1.25rem 1rem 4rem;
  }

  .stats-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-value {
    font-size: 2.4rem;
  }

  .profile-hero { height: 160px; }
  .profile-avatar { width: 80px; height: 80px; }
  .profile-avatar-letter { width: 80px; height: 80px; font-size: 1.8rem; }
  .profile-avatar-wrap { margin-top: -40px; }
  .profile-name { font-size: 1.3rem; }
  .profile-stats { gap: 1.25rem; }
  .profile-header { flex-direction: column; align-items: flex-start; }
  .profile-actions { padding-bottom: 0; }
}

@media (max-width: 390px) {
  .hero-inner {
    padding: 80px 14px 28px;
  }
  .hero-inner h1 {
    font-size: 1.6rem !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.65rem 1.1rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .dash-table-head span:nth-child(4),
  .dash-table-row > div:nth-child(4) {
    display: block;
  }
}