/* Faim de Rêve — V3
   À charger après v2.css */

:root {
  --bandcamp: #1da0c3;
  --v3-glow: rgba(255, 247, 229, .22);
}

/* Une sensation de studio, discrète et vivante */
.v3 .ban6::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 24%, var(--v3-glow), transparent 22%),
    linear-gradient(90deg, rgba(0,0,0,.06), transparent 28%, transparent 70%, rgba(0,0,0,.11));
  mix-blend-mode: screen;
}

.v3 .hero-shade,
.v3 .hero-caption,
.v3 .studio-signal { z-index: 2; }

.studio-signal {
  position: absolute;
  top: 24px;
  right: clamp(22px, 3vw, 52px);
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.studio-signal span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(16,27,28,.18);
  backdrop-filter: blur(5px);
}

.studio-signal span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff442c;
  box-shadow: 0 0 0 4px rgba(255,68,44,.16);
  animation: recPulse 2.1s ease-in-out infinite;
}

@keyframes recPulse {
  50% { opacity: .38; transform: scale(.78); }
}

/* Cartes : plus de profondeur, sans effet catalogue */
.v3 .encart {
  isolation: isolate;
  transition: transform .38s cubic-bezier(.2,.75,.25,1), box-shadow .38s ease;
}

.v3 .encart::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 30% 10%, rgba(217,37,18,.12), transparent 35%);
  transition: opacity .38s ease;
}

.v3 .encart:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(29,45,46,.17);
}

.v3 .encart:hover::before { opacity: 1; }
.v3 .encart > img { transition: transform .55s cubic-bezier(.2,.75,.25,1), filter .4s ease; }
.v3 .encart:hover > img { transform: scale(1.018); filter: contrast(1.03) saturate(1.04); }

/* Les cinq morceaux sont l’aperçu, Bandcamp donne la suite */
.v3 .lecteur-pistes li:nth-child(n+6) { display: none; }

.bandcamp-link {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(29,160,195,.34);
  border-radius: 12px;
  color: #12383f !important;
  background: linear-gradient(135deg, rgba(29,160,195,.11), rgba(29,160,195,.03));
  text-decoration: none !important;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.bandcamp-link:hover {
  transform: translateX(4px);
  border-color: rgba(29,160,195,.72);
  background: linear-gradient(135deg, rgba(29,160,195,.2), rgba(29,160,195,.06));
}

.bandcamp-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: var(--bandcamp);
  font-size: .75rem;
  box-shadow: 0 8px 20px rgba(29,160,195,.26);
}

.bandcamp-copy { display: flex; flex-direction: column; min-width: 0; }
.bandcamp-copy strong {
  font-family: "Syne", sans-serif;
  font-size: .82rem;
  line-height: 1.2;
}
.bandcamp-copy small {
  margin-top: 2px;
  color: #548088;
  font-size: .68rem;
  line-height: 1.25;
}

/* Le genre devient une signature plutôt qu’un faux bouton */
.v3 .btn-more {
  position: relative;
  padding-left: 18px;
}
.v3 .btn-more::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--fdr-red);
}

.footer-studio-note {
  max-width: 1000px;
  margin: 12px auto 24px;
  padding: 0 10px;
  color: rgba(255,255,255,.48);
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -.02em;
}

@media (prefers-reduced-motion: reduce) {
  .studio-signal span:first-child::before { animation: none; }
  .v3 .encart, .v3 .encart > img, .bandcamp-link { transition: none; }
}

@media screen and (max-width: 768px) {
  .studio-signal { top: 18px; right: 16px; }
  .studio-signal span:not(:first-child) { display: none; }
  .v3 .encart:hover { transform: none; }
  .bandcamp-link { grid-template-columns: 36px 1fr; }
  .bandcamp-icon { width: 34px; height: 34px; }
}

/* ==========================================================
   V3 LUMINEUSE — lecteur harmonisé avec le bouton Bandcamp
   ========================================================== */

:root {
  --player-blue: #289fc7;
  --player-blue-dark: #167fa4;
  --player-ink: #20373e;
  --player-muted: #607980;
  --player-line: rgba(40, 159, 199, .20);
  --player-bg: #f5fbfd;
}

/* Ambiance générale plus lumineuse */
.v3 {
  background: #f5f1e9;
}

.v3 .content {
  background:
    radial-gradient(circle at 80% 12%, rgba(40,159,199,.055), transparent 28%),
    #f5f1e9;
}

.v3 .encart {
  border-color: rgba(32,55,62,.13) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 12px 30px rgba(32,55,62,.06) !important;
}

.v3 .encart:hover {
  box-shadow: 0 22px 46px rgba(32,55,62,.12) !important;
}

/* Titre du lecteur */
.v3 .titres-alb {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(32,55,62,.11);
}

.v3 .lector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--fdr-red) !important;
  font-size: .66rem !important;
  font-weight: 800;
  letter-spacing: .14em;
}

.v3 .lector::before,
.v3 .lector::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(217,37,18,.35);
}

/* Bloc lecteur : même langage visuel que Bandcamp */
.v3 .lecteur-pistes {
  max-height: none;
  margin: 0 0 11px !important;
  padding: 5px 12px 5px 39px !important;
  overflow: visible;
  border: 1px solid rgba(40,159,199,.40);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(40,159,199,.10), rgba(40,159,199,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.v3 .lecteur-pistes li {
  position: relative;
  min-height: 34px;
  padding: 9px 36px 9px 7px !important;
  border-bottom: 1px solid var(--player-line);
  color: var(--player-ink) !important;
  font-family: "Manrope", sans-serif !important;
  font-size: .76rem !important;
  font-weight: 600;
  line-height: 1.35 !important;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.v3 .lecteur-pistes li:last-child {
  border-bottom: 0;
}

.v3 .lecteur-pistes li::after {
  content: "▶";
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: var(--player-blue);
  font-size: .56rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 5px 12px rgba(40,159,199,.24);
  opacity: .84;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.v3 .lecteur-pistes li:hover {
  color: var(--player-blue-dark) !important;
  background: rgba(255,255,255,.64);
  transform: translateX(2px);
}

.v3 .lecteur-pistes li:hover::after {
  opacity: 1;
  background: var(--player-blue-dark);
  transform: translateY(-50%) scale(1.08);
}

.v3 .lecteur-pistes li::marker {
  color: var(--player-muted);
  font-weight: 700;
}

.v3 .estjoue {
  display: inline-block;
  margin-left: 5px;
  color: var(--player-blue-dark) !important;
  font-size: .61rem !important;
  font-weight: 700;
  opacity: .72;
}

/* Le lien Bandcamp reste la continuité naturelle du lecteur */
.v3 .bandcamp-link {
  margin-top: 10px;
  border-color: rgba(40,159,199,.42);
  background: linear-gradient(135deg, rgba(40,159,199,.15), rgba(40,159,199,.045));
  box-shadow: 0 8px 18px rgba(40,159,199,.08);
}

.v3 .bandcamp-link:hover {
  border-color: rgba(40,159,199,.78);
  background: linear-gradient(135deg, rgba(40,159,199,.24), rgba(40,159,199,.08));
}

.v3 .bandcamp-icon {
  background: var(--player-blue);
}

@media (max-width: 1100px) {
  .v3 .lecteur-pistes li {
    font-size: .73rem !important;
  }
}

@media (max-width: 480px) {
  .v3 .lecteur-pistes {
    padding-left: 35px !important;
  }

  .v3 .lecteur-pistes li {
    padding-right: 31px !important;
    font-size: .72rem !important;
  }

  .v3 .lecteur-pistes li::after {
    right: 3px;
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================
   CORRECTION — centrage des lecteurs dans les cartes
   ========================================================== */
.v3 .portfolio-caption,
.v3 .titres-alb {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.v3 .lecteur-pistes,
.v3 .bandcamp-link {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}
