/* Bandeau défilant sous le header — uniquement si live Kick (kick-live-banner.js) */

.nebula-kick-live-bar {
  position: sticky;
  top: var(--nebula-kick-bar-top, 62px);
  z-index: 999;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(8, 5, 18, 0.97) 0%, rgba(107, 47, 255, 0.2) 45%, rgba(8, 5, 18, 0.97) 100%);
  border-bottom: 1px solid rgba(107, 47, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.nebula-kick-live-bar[hidden] {
  display: none !important;
}

/* lien en flex : sans width 100 %, le <a> se rétrécit au contenu → bandeau pas pleine largeur */
.nebula-kick-live-bar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.55rem 1.5rem;
  text-decoration: none;
  color: #f0ecff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
}

.nebula-kick-live-bar__link:hover {
  color: #fff;
}

.nebula-kick-live-bar__link:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(210, 78, 224, 0.85);
}

.nebula-kick-live-bar__live-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-left: 0;
  border-radius: 50%;
  background: #ff3355;
  box-shadow: 0 0 12px rgba(255, 51, 85, 0.85);
  animation: nebula-kick-pulse 1.4s ease-in-out infinite;
}

@keyframes nebula-kick-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15);
  }
}

.nebula-kick-live-bar__viewport {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-left: 0.25rem;
}

.nebula-kick-live-bar__track {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  /* N copies identiques ; JS pose --nebula-kick-marquee-copies pour calc(-100% / N) */
  --nebula-kick-marquee-copies: 5;
  animation: nebula-kick-marquee 20s linear infinite;
  will-change: transform;
}

.nebula-kick-live-bar__chunk {
  flex: 0 0 auto;
  padding-right: clamp(4rem, 12vw, 10rem);
  padding-left: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .nebula-kick-live-bar__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nebula-kick-live-bar__chunk {
    padding-right: 1.5rem;
  }

  .nebula-kick-live-bar__live-dot {
    animation: none;
  }
}

/* Défilement immédiat (pas d’attente hors écran) : 0 → une copie vers la gauche, boucle */
@keyframes nebula-kick-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% / var(--nebula-kick-marquee-copies)), 0, 0);
  }
}
