/* ==========================================================================
   Accueil — Line-up DJs (#featured-artists.flx) : affiche de festival.
   À gauche les noms en très grand (le DJ actif passe en doré), à droite la photo
   du DJ actif en grand. Rotation automatique ; survol / toucher d'un nom = mise en avant.
   Les cartes .artist-item gardent leur logique (page DJ, écoute Spotify) dans js/main.js.
   ========================================================================== */
#featured-artists {
  --flx-text: #f5f4f1;
  --flx-muted: rgba(245, 244, 241, 0.62);
  --flx-faint: rgba(245, 244, 241, 0.28);
  --flx-gold: #c6a66a;
  --flx-gold-hi: #e8d5a8;
  --flx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  margin: 0;
  padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem);
  background: radial-gradient(50% 50% at 75% 45%, rgba(198, 166, 106, 0.1), transparent 70%), #050505;
  color: var(--flx-text);
  text-align: left;
  overflow: hidden;
}
.flx-wrap { max-width: 1240px; margin: 0 auto; }

/* En-tête */
.flx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(36px, 5vw, 60px); }
.flx-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--flx-gold-hi); font-size: 11.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.flx-kicker i { width: 26px; height: 2px; border-radius: 2px; background: var(--flx-gold); }
#featured-artists .flx-title { margin: 0; font: 800 clamp(38px, 5.6vw, 80px) / 0.95 Rubik, Montserrat, sans-serif; letter-spacing: -0.035em; color: var(--flx-text); text-transform: uppercase; }
#featured-artists .flx-accent { display: block; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em; text-transform: none; color: var(--flx-gold); }
#featured-artists .flx-sub { max-width: 520px; margin: 18px 0 0; color: var(--flx-muted); font-size: 16px; line-height: 1.6; }
.flx-all { display: inline-flex; flex: none; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; background: rgba(245, 244, 241, 0.06); box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.16); color: var(--flx-text) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; transition: background 0.3s; }
.flx-all:hover { background: rgba(245, 244, 241, 0.12); }
.flx-all svg { width: 16px; height: 16px; }

/* Corps : noms + scène photo */
.flx-body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

/* Noms façon affiche */
.flx-names { margin: 0; padding: 0; list-style: none; counter-reset: flx; }
.flx-names li { display: block; }
.flx-name {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--flx-faint);
  font: 800 clamp(30px, 4.1vw, 60px) / 1.02 Rubik, Montserrat, sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--flx-ease), transform 0.45s var(--flx-ease);
}
.flx-name small { font: 700 12px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; color: var(--flx-faint); transform: translateY(-1.4em); transition: color 0.35s; }
.flx-name:hover { color: rgba(245, 244, 241, 0.7); }
.flx-name.is-on { color: var(--flx-text); transform: translateX(14px); }
.flx-name.is-on small { color: var(--flx-gold); }
.flx-name.is-on::before { content: ""; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--flx-gold); box-shadow: 0 0 0 5px rgba(198, 166, 106, 0.2); }

/* Scène : les cartes empilées, seule l'active est visible */
.flx-stage { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 480px; justify-self: end; }
#featured-artists .flx-stage .artist-item {
  position: absolute;
  inset: 0;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.6s var(--flx-ease), transform 0.8s var(--flx-ease), visibility 0s linear 0.6s;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7) !important;
}
#featured-artists .flx-stage .artist-item::after { display: none; }
#featured-artists .flx-stage .artist-item.is-on { opacity: 1; visibility: visible; transform: none; z-index: 2; transition: opacity 0.6s var(--flx-ease), transform 0.8s var(--flx-ease), visibility 0s; }
#featured-artists .flx-stage .artist-image { filter: none; transform: scale(1.08); transition: transform 6s linear; }
#featured-artists .flx-stage .artist-item.is-on .artist-image { transform: scale(1); }
#featured-artists .flx-stage .artist-card-foot { padding: 22px 24px 26px; }
#featured-artists .flx-stage .artist-name { font: 800 clamp(26px, 2.6vw, 36px) / 1 Rubik, Montserrat, sans-serif; letter-spacing: -0.03em; text-transform: uppercase; }
#featured-artists .flx-stage .artist-play-hint { opacity: 1; transform: none; padding: 9px 14px; border-radius: 999px; background: rgba(198, 166, 106, 0.95); color: #160f03; font-size: 11px; font-weight: 800; }
#featured-artists .flx-stage .artist-play-hint svg { color: #160f03; }
.flx-count { position: absolute; z-index: 3; top: 18px; left: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: var(--flx-gold-hi); font: 700 12px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; pointer-events: none; }
.flx-bar { position: absolute; z-index: 3; left: 20px; right: 20px; top: 54px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; pointer-events: none; }
.flx-bar i { display: block; height: 100%; width: 100%; background: var(--flx-gold); transform-origin: left; transform: scaleX(0); }
.flx-bar i.is-run { animation: flxFill var(--flx-dur, 4.5s) linear forwards; }
#featured-artists:hover .flx-bar i.is-run { animation-play-state: paused; }
@keyframes flxFill { to { transform: scaleX(1); } }

/* Mobile : photo en haut, noms en ligne en dessous */
@media (max-width: 860px) {
  .flx-head { flex-direction: column; align-items: flex-start; }
  .flx-body { grid-template-columns: 1fr; gap: 26px; }
  .flx-stage { order: -1; max-width: none; justify-self: stretch; aspect-ratio: 4 / 4.6; }
  .flx-names { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .flx-names li { display: inline; }
  .flx-name { font-size: clamp(22px, 7vw, 30px); gap: 0; padding: 0; }
  .flx-name small { display: none; }
  .flx-name.is-on { transform: none; }
  .flx-name.is-on::before { display: none; }
  .flx-names li:not(:last-child) .flx-name::after { content: "·"; margin: 0 10px; color: var(--flx-faint); }
}
@media (prefers-reduced-motion: reduce) {
  #featured-artists .flx-stage .artist-image { transition: none; transform: none; }
  .flx-bar { display: none; }
}
