* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ===== OPTIMISATION CRITIQUE MOBILE ===== */
@media (max-width: 768px) {
  /* Accélère le rendu initial */
  .beatlist-section {
    contain: layout style;
  }
  
  .beatlist-row {
    contain: layout;
    will-change: auto;
  }
  
  /* Désactive les animations coûteuses sur mobile */
  .hero-bg-video {
    animation: none;
  }
  
  .hero-logo {
    animation: logoColorShift 8s ease-in-out infinite; /* Garde juste la couleur */
  }
}

:root {
  --primary-color: #000000;
  --secondary-color: #e11d48;
  --accent-color: #7f1d1d;
  --dark-bg: #000000;
  --light-text: #F9FAFB;
  --success-color: #16A34A;
  --border-color: #ff004c33;
}

/* Layout global */
html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000 center center no-repeat;
  background-size: cover;
  color: var(--light-text);
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Wrapper global de page */
.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animation index */
@keyframes siteFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Loader */
#page-loader {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(249, 250, 251, 0.18);
  border-top-color: #e11d48;
  animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Contenu principal */
.page-main,
.beats-page,
.licenses-page,
.about-page,
.contact-page {
  padding-bottom: 0;
}

/* Footer en bas mais qui scrolle normalement */
.footer-main {
  flex-shrink: 0;
}

/* HEADER GÃ‰NÃ‰RAL */
.header {
  background: #000000e6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Beats page (fond image optionnel) */
.beats-page {
  background-size: cover;
}

/* HEADER STYLE BEATSTARS */
.bs-header {
  height: 48px;
  background: #000;
  border-bottom: 1px solid #613b3bc2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 0.9rem;
  line-height: 48px;
}

.bs-left,
.bs-right {
  height: 48px;
}

.bs-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bs-logo-box {
  display: none;
}

.bs-logo-text {
  color: #f5e3d7;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.bs-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bs-nav-link {
  color: #f5e3d7;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  font-size: 0.85rem;
}

.bs-nav-link:hover {
  opacity: 1;
}

.bs-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #f5e3d7;
}

.bs-cart {
  color: #f5e3d7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bs-icon,
.bs-user {
  cursor: pointer;
}

.bs-icon i,
.bs-cart i,
.bs-user i {
  font-size: 0.95rem;
  color: #f5e3d7;
}

/* bouton menu cachÃ© sur desktop */
.bs-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f5e3d7;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- RESPONSIVE HEADER --- */
@media (max-width: 768px) {
  .bs-header {
    padding: 0 0.8rem;
    font-size: 0.8rem;
  }

  .bs-left { gap: 0.5rem; }

  .bs-logo-text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .bs-right { gap: 0.6rem; }

  .bs-icon i,
  .bs-cart i,
  .bs-user i {
    font-size: 0.8rem;
  }

  .bs-menu-toggle { display: block; }

  .bs-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    background: #000;
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 0.75rem;
    gap: 0.4rem;
  }

  .bs-nav-link {
    font-size: 0.85rem;
    padding: 0.2rem 0;
  }

  .bs-nav.bs-nav-open { display: flex; }
}



/* ==================== HERO (index) - VERSION FINALE ==================== */
.hero {
  position: relative;
  min-height: calc(100vh - 48px);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-link {
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* LOGO - État normal avec tremblement subtil */
/* ==================== LOGO HERO - FIX SMOOTH ==================== */
.hero-logo {
  max-width: 25vw;
  height: auto;
  display: block;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.15, -0.03, 0, 1.17);
}
@keyframes logoColorGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgb(75 75 75 / 40%)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 25px rgb(112 29 29 / 50%)) brightness(1.12);
  }
}
.hero-logo-link:hover .hero-logo {
  transform: scale(1.20);
  animation: logoColorGlow 3s ease-in-out infinite; /* Plus rapide au survol */
}
@keyframes heroLogoIdle {
  0%, 92%, 100% { transform: translate(0, 0); }
  94% { transform: translate(-0.3px, 0); }
  96% { transform: translate(0.3px, -0.3px); }
  98% { transform: translate(-0.3px, 0.3px); }
}

@keyframes heroLogoClick {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(0.94) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

.hero-logo-clicked {
  animation: heroLogoClick 0.25s ease-out !important;
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 55vw;
  }
  
  .hero-logo-link:hover .hero-logo {
    transform: scale(1.2) !important;
  }
}
    


/* MUSIC GALLERY (optionnel) */
.music-gallery {
  padding: 2rem 2rem 5rem;
  background: #000000e6;
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.song-card {
  background: #020617;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.song-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.4);
}

.song-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #450a0a, #7f1d1d);
}

.song-info { padding: 1.5rem; }

.song-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.song-meta {
  font-size: 0.9rem;
  color: #fca5a5;
  margin-bottom: 0.5rem;
}

.song-specs {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.song-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-play {
  flex: 1;
  background: #111827;
  border: 1px solid #374151;
  color: white;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, border-color 0.3s;
}

.btn-play:hover {
  background: #1f2937;
  border-color: #fca5a5;
}

.btn-buy {
  flex: 1;
  background: var(--secondary-color);
  border: none;
  color: white;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-buy:hover {
  background: #b91c1c;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.6);
}

.song-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #f97373;
}

/* SECTION TRACKS (Beats) */

.tracks-hero {
  background: #000000;
  padding: 3rem 2rem 1.5rem;
  color: #f5f5f5;
}

/* HEADER DE TRACK */
.track-header {
  background: radial-gradient(circle at top, #ff004c22 0%, #000000 55%, #000000 100%);
  padding: 2.5rem 2.5rem 2rem;
  color: #f9fafb;
  border-bottom: 1px solid #00000005;
}

.th-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.th-cover-wrap { position: relative; }

.th-cover {
  width: 260px;
  height: 260px;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
}

.th-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.th-main { flex: 1; }

.th-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: #f5e3d7;
}

.th-artist {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fca5a5;
  margin-bottom: 0.6rem;
}

.th-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.th-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.th-price-btn {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  border: 1px solid #ff004c88;
  font-size: 0.9rem;
  cursor: pointer;
}

.th-price-btn:hover { border-color: #ff004c; }

.th-secondary-btn {
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  border: 1px solid #374151;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.th-secondary-btn:hover { border-color: #fca5a5; }

.th-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.th-tags span {
  background: #f3f4f6;
  color: #111827;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
}

/* mobile header track */
@media (max-width: 768px) {
  .track-header { padding: 1.5rem 1.25rem; }

  .th-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-cover {
    width: 180px;
    height: 180px;
  }
}

.tracks-title {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

.tracks-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tracks-filter-btn {
  background: #000000;
  color: #f5f5f5;
  border-radius: 999px;
  border: 1px solid #27272f;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tracks-filter-btn span {
  font-size: 0.75rem;
  opacity: 0.7;
}

.tracks-filter-btn:hover { border-color: var(--secondary-color); }

.tracks-search {
  max-width: 900px;
  margin: 0 auto;
  background: #050505;
  border-radius: 999px;
  border: 1px solid #27272f;
  display: flex;
  align-items: center;
  padding: 0.4rem 1.2rem;
  margin-top: 0.5rem;
}

.tracks-search-icon {
  margin-right: 0.6rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.tracks-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 0.85rem;
}

/* BEAT LIST VIEW */

.beatlist-section {
  background: #000000;
  padding: 1.5rem 2.5rem 5rem;
  color: #f5f5f5;
  text-align: center;
}

.beatlist-row {
  padding: 0.9rem 0;
  border: none;
  background: transparent;
}

.beatlist-row:hover { background: #050505; }

.bl-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bl-price-btn {
  background: #000;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  color: #fff;
  font-size: 0.8rem;
  border: 1px solid #ffffff22;
}

.bl-price-btn:hover {
  border-color: var(--secondary-color);
  background: #111;
}

/* grille colonnes */
.beatlist-header,
.beatlist-row {
  display: grid;
  grid-template-columns: 4fr 1fr 1fr 3fr 1.2fr 1.4fr;
  align-items: center;
  column-gap: 1rem;
}

/* header */
.beatlist-header {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  background: #000000;
}

.beatlist-header .bl-col { text-align: center; }

.beatlist-header .bl-title {
  text-align: left;
  padding-left: 0.5rem;
}

.beatlist-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* lignes */
.beatlist-row {
  padding: 0.75rem 0;
  border: none;
  background: #000000;
}

.bl-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bl-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #111827;
}

.bl-time,
.bl-bpm {
  font-size: 0.85rem;
  color: #d1d5db;
}

.bl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bl-tag {
  background: #f3f4f6;
  color: #111827;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.bl-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.bl-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: white;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.bl-btn-icon i { font-size: 0.8rem; }

.bl-price {
  display: flex;
  justify-content: flex-end;
}

.bl-price-btn {
  background: #000;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: #fff;
  font-size: 0.8rem;
  border: 1px solid #111827;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}


/* PLAYER MODAL */
.player-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.player-content {
  background: #020617;
  margin: 10% auto;
  padding: 3rem;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
}

.player-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
}

.player-close:hover {
  color: var(--light-text);
}

.player-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.player-content p {
  color: #fca5a5;
  margin-bottom: 0.5rem;
}

.player-info {
  background: rgba(51, 65, 85, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.player-info p {
  margin-bottom: 0.5rem;
  color: var(--light-text);
}

audio {
  width: 100%;
  margin-bottom: 2rem;
}

.btn-buy-now {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-buy-now:hover {
  transform: scale(1.02);
}

/* CART MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background: #020617;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  font-weight: bold;
}

.close:hover {
  color: var(--light-text);
}

#cartItems {
  margin: 2rem 0;
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.cart-item-genre {
  font-size: 0.85rem;
  color: #fca5a5;
}

.cart-item-price {
  font-weight: bold;
  color: var(--secondary-color);
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 1rem;
}

.cart-total {
  text-align: right;
  font-size: 1.3rem;
  padding: 1rem 0;
  border-top: 2px solid var(--border-color);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s;
  margin-top: 1rem;
}

.btn-checkout:hover {
  transform: scale(1.02);
}

/* FOOTER */
.footer {
  background: #000000;
  border-top: 1px solid #ffffff33;
  padding: 2.5rem 3rem;
  color: #f5f5f5;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.footer-brand {
  min-width: 180px;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer-copy {
  margin-top: 0.6rem;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: #f97373;
}

/* NOTIFICATIONS */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  z-index: 2000;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==== BOTTOM PLAYER Ã¢â‚¬â€œ barre AU-DESSUS faÃƒÂ§on BeatStars ==== */
.bottom-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: #000000;
  box-shadow: 0 0 10px #ffffff70;
  z-index: 2000;
  color: #ffffff;
  font-size: 0.85rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* barre en haut + contenu en dessous */
}

/* fine bordure grise tout en haut */
.bottom-player::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #444444;
}

/* progress bar globale au-dessus du player */
.bp-top-progress {
  position: relative;
  height: 4px;
  z-index: 1;
}

/* rail alignÃƒÂ© avec le padding du contenu (1.5rem) */
.bp-top-rail {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  border-radius: 999px;
  cursor: pointer;
}

/* remplissage rose */
.bp-top-fill {
  
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  width: 0%;
  background: #d1d1d1;

  transition: width 0.06s linear;
}

/* handle discret */
.bp-top-handle {
  position: absolute;
  top: 10%;
  left: 1.5rem;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgb(255 255 255 / 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}


.bp-top-progress:hover .bp-top-handle,
.bp-top-progress.dragging .bp-top-handle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
  cursor: grabbing;
}

/* contenu du player sous la barre */
.bp-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 1.5rem 6px;
}

/* cover + texte Ãƒ  gauche */
.bp-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.bp-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #111827;
}

.bp-track-info {
  display: flex;
  flex-direction: column;
}

.bp-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.bp-artist {
  font-size: 0.75rem;
  color: #d1d5db;
}

/* centre : contrÃƒÂ´les + temps inline */
.bp-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
}

.bp-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bp-time-inline {
  display: flex;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

/* temps texte */
#bpCurrentTime,
#bpDuration {
  font-size: 0.7rem;
  color: #ffffff;
}

/* droite : volume + Add */
.bp-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bp-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bp-icon {
  font-size: 0.9rem;
}

.bp-volume-bar {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.bp-volume-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: #9e1c1c;
}

.bp-add-btn {
  border-radius: 999px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bp-add-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* boutons */
.bp-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}

.bp-icon-btn i {
  pointer-events: none;
}

.bp-icon-btn:hover {
  background: rgba(255,255,255,0.06);
}

.bp-play-main {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.bp-play-main i {
  pointer-events: none;
}

/* Sur la home : seul le logo est cliquable */
.home-hero {
  padding-bottom: 0;  
}


/* titre cliquable dans la liste */
.bl-main { cursor: default; }

.bl-title-click {
  cursor: pointer;
}

.beatlist-row:hover .bl-title-click {
  text-decoration: underline;
}

/* PAGES STATIQUES (Licenses / About / Contact) */
.page-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  background: radial-gradient(circle at top, #ff004c10 0%, #020617 40%, #000000 100%);
  padding: 3rem 2.5rem 4rem;
  color: #f9fafb;
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

/* Licenses */
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.license-card {
  background: #020617;
  border-radius: 12px;
  border: 1px solid #ff004c33;
  padding: 1.5rem;
}

.license-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.license-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f97373;
  margin-bottom: 0.8rem;
}

.license-card ul {
  list-style: none;
}

.license-card li {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

/* About */
.about-text {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.8;
  max-width: 720px;
}

/* Contact */
.contact-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #ff004c66;
  color: #f9fafb;
  text-decoration: none;
  font-size: 0.85rem;
}

.contact-links a:hover {
  background: #ff004c;
}

/* MODALE LICENCES */
.license-modal {
  max-width: 980px;
  display: flex;
  gap: 2rem;
}

.license-left {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.license-cover {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  background: #111827;
}

.license-title {
  font-weight: 700;
}

.license-artist {
  font-size: 0.85rem;
  color: #9ca3af;
}

.license-right {
  flex: 1;
}

.license-heading {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.license-option {
  border: 1px solid #111827;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #020617;
}

.license-option-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.license-name {
  font-weight: 700;
}

.license-format {
  font-size: 0.8rem;
  color: #9ca3af;
}

.license-add-btn {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  border: 1px solid #ffffff33;
  font-size: 0.8rem;
  cursor: pointer;
}

.license-usage-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Anim clic */
.bp-play-main,
.bp-icon-btn,
.bl-price-btn,
.license-add-btn {
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s;
}

.bp-play-main:active,
.bp-icon-btn:active,
.bl-price-btn:active,
.license-add-btn:active {
  transform: scale(0.94);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}


/* Mobile layout pour la liste */
@media (max-width: 768px) {
  .beatlist-section {
    padding: 1rem 0.75rem 5rem;
  }

  .beatlist-header,
  .beatlist-row {
    grid-template-columns: 3fr 1fr 0.8fr;
    grid-auto-rows: auto;
  }

  .bl-tags,
  .bl-actions {
    display: none;
  }

  .bl-price {
    justify-content: flex-end;
  }

  .bl-main {
    gap: 0.5rem;
  }

  .bl-cover {
    width: 36px;
    height: 36px;
  }

  .tracks-hero {
    padding: 1.5rem 1rem 0.5rem;
  }

  .tracks-filters {
    gap: 0.5rem;
  }

  .tracks-filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .tracks-search {
    border-radius: 8px;
  }
}

/* mobile footer */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 1.5rem 4.5rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .bottom-player {
    height: auto;
  }

  .bp-inner {
    padding: 4px 0.75rem 6px;
  }

  .bp-left {
    display: none; /* on gagne de la place sur petit ÃƒÂ©cran */
  }

  .bp-center {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .bp-play-main {
    width: 40px;
    height: 40px;
  }

  .bp-time-inline {
    font-size: 0.65rem;
    gap: 0.35rem;
  }

  .bp-right {
    gap: 0.6rem;
  }

  .bp-volume-bar {
    width: 60px;
  }

  .bp-add-btn {
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
  }

  .license-modal {
    flex-direction: column;
    max-width: 95%;
  }

  .license-left {
    width: 100%;
  }
}





/* contenu (logo) au-dessus de la vidÃƒÂ©o */
.hero-logo-link {
  position: relative;
  z-index: 1;
}

/* Vidéo avec animation de couleur progressive */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
  animation: videoColorShift 20s ease-in-out infinite; /* Change toutes les 20 secondes */
}

/* Animation qui change les couleurs progressivement */
@keyframes videoColorShift {
  0% {
    filter: hue-rotate(0deg) saturate(1.3) contrast(1.1) brightness(0.9);
  }
  25% {
    filter: hue-rotate(90deg) saturate(1.5) contrast(1.2) brightness(0.85);
  }
  50% {
    filter: hue-rotate(180deg) saturate(1.4) contrast(1.15) brightness(0.9);
  }
  75% {
    filter: hue-rotate(270deg) saturate(1.6) contrast(1.1) brightness(0.88);
  }
  100% {
    filter: hue-rotate(360deg) saturate(1.3) contrast(1.1) brightness(0.9);
  }
}


/* rÃ©glages mobiles gÃ©nÃ©raux */
@media (max-width: 768px) {
  /* hero plein Ã©cran sous le header */
  .hero {
    min-height: calc(100vh - 48px);
    padding: 0 1.5rem;
  }

  /* logo un peu plus grand mais limitÃ© */
  .hero-logo {
    max-width: 55vw;           /* au lieu de 30vw */
  }
}
@media (max-width: 768px) {
  .bottom-player {
    height: 80px;
    font-size: 0.8rem;
  }

  .bp-inner {
    padding: 6px 0.8rem 6px;
  }

  .bp-left {
    gap: 0.5rem;
  }

  .bp-cover {
    width: 40px;
    height: 40px;
  }

  .bp-title {
    font-size: 0.8rem;
  }

  .bp-artist {
    font-size: 0.7rem;
  }

  .bp-play-main {
    width: 38px;
    height: 38px;
  }

  .bp-time-inline {
    font-size: 0.65rem;
  }

  .bp-volume {
    display: none; /* laisse plus de place aux boutons sur mobile */
  }
}

.beats-page {
  background: url('/beats-bg.jpg') center center no-repeat;
  background-size: cover;
  background-attachment: fixed; /* L'image reste fixe au scroll */
  min-height: 100vh;
} 
.beats-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Overlay noir 70% */
  z-index: -1;
} 

/* ===== FIX SCROLL MOBILE ===== */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.beats-page {
  overflow-y: auto;
}

@media (max-width: 768px) {
  .beatlist-section {
    padding-bottom: 10rem;
    overflow-y: visible;
  }
}

/* =============== STYLES BLAZE PLAYER PLEIN ÉCRAN =============== */
.blaze-player-wrapper {
    padding: 0;
    min-height: calc(100vh - 48px); /* 100% hauteur moins le header */
    width: 100%;
}

.blaze-embed-container {
    max-width: 100%;
    margin: 0;
    height: calc(100vh - 48px);
    width: 100%;
}

.blaze-embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}
.blaze-player-wrapper {
    padding: 0;
    min-height: calc(100vh - 48px);
    width: 100%;
}

.blaze-embed-container {
    max-width: 100%;
    margin: 0;
    height: calc(100vh - 48px);
    width: 100%;
}

.blaze-embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .blaze-player-wrapper {
        min-height: calc(100vh - 48px);
    }
    
    .blaze-embed-container {
        height: calc(100vh - 48px);
    }
}
/* ===== FIX PAGES ABOUT & LICENSES ===== */
.about-page,
.licenses-page,
.contact-page
{
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.about-page .page-main,
.licenses-page .page-main,
.contact-page .page-main {
    flex: 1;
    padding: 4rem 2rem 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.about-content,
.licenses-content,
.contact-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.about-content h1,
.licenses-content h1,
.contact-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #f5e3d7;
}

.about-content p,
.licenses-content p,
.contact-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.footer-main {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #ffffff33;
}

@media (max-width: 768px) {
    .about-page .page-main,
    .licenses-page .page-main,
    .contact-page .page-main {
        padding: 2rem 1.5rem;
    }
    
    .about-content h1,
    .licenses-content h1,
    .contact-content h1 {
        font-size: 1.8rem;
    }
    
    .about-content p,
    .licenses-content p,
    .contact-content p {
        font-size: 1rem;
    }
}
