/* Animation des éléments de texte */
.text-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

  /* Animation de la ligne violette */
  .bg-gradient-to-r {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
  }

@keyframes gradientShift {
    0%, 100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .text-column {
      margin-bottom: 2rem;
    }
}

:root {
    --bg: #000000;
    --text-dim: #a3a3a3;
    --text: #ffffff;
    --card-w: 224px;
    --card-h: 324px;
    --meta-h: 50px;
    --gap: 23px;
    --radius: 16px;
    --shadow: 0 30px 60px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.38);
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
  }

section.coverflow-wrap {
    position: relative;
    background: var(--bg);
    overflow: hidden;
  }

.coverflow {
    display: flex;
    height: max-content;
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: visible;
    padding: 48px 6vw 48px 6vw;
    perspective: 1400px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 6vw;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, black 8vw, black calc(100% - 8vw), transparent 100%);
  }

/* Masquer la scrollbar pour un rendu propre (toujours scrollable) */
.coverflow::-webkit-scrollbar { height: 0; width: 0; }
.coverflow { scrollbar-width: none; }
.coverflow::-webkit-scrollbar-thumb { background: transparent; }
.coverflow::-webkit-scrollbar-track { background: transparent; }

  .card {
    position: relative;
    flex: 0 0 var(--card-w);
    height: calc(var(--card-h) + var(--meta-h) + 20);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), filter .35s ease, opacity .35s ease;
    will-change: transform;
    filter: saturate(.85);
  }

  .artwork {
    position: relative;
    width: 100%;
    height: var(--card-h);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: #0f172a;
  }
  .artwork img, .artwork .placeholder {
    position: absolute; inset: 0; width: 100%; height: var(--card-h); object-fit: cover; object-position: center;
  }
  .artwork .placeholder {
    background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.09), transparent 45%),
                radial-gradient(120% 140% at 100% 100%, rgba(255,255,255,.06), transparent 40%),
                linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  }
  .glow { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent, #fff) 0, transparent 20%, transparent 80%, var(--accent, #fff) 100%); mix-blend-mode: screen; opacity: .12; }

  .meta { top: auto; bottom: 100%; left: 2px; right: 2px; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial; line-height: 1.15; }
  .title { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .artist { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .price { font-size: 12px; color: var(--accent-primary); font-weight: 500; margin-top: 4px; }

/* Description sous chaque capsule */
.description {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px; /* réserve d'espace pour éviter les creux */
}

  .play { position: absolute; top: -22px; left: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); backdrop-filter: blur(2px); cursor: pointer; }
  .play:before { content: ""; display: block; width: 0; height: 0; border-left: 6px solid white; border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 2px; }
  .play:hover { background: rgba(255,255,255,.14); }

  .fade-left, .fade-right { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; pointer-events: none; }
  .fade-left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .fade-right { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

  .card { transform: rotateY(0deg) translateZ(0) scale(1); }

/* Flèches de navigation */
.nav-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 6vw 0 6vw;
}
.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.nav-arrow:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }

  @media (max-width: 520px) {
    :root { --card-w: 180px; --card-h: 260px; --gap: 40px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
  }