/* ========================================
   Heure Bleue Live — section cinétique
   Fond dégradé multicouche animé (20s+),
   particules d'étoiles qui tombent lentement,
   transition crépuscule ↔ aube.
   ======================================== */

.heure-bleue-live {
  position: relative;
  background-color: #1a2a3a;
  overflow: hidden;
  padding: var(--space-3xl) 0;
  isolation: isolate;
  color: var(--color-cream);
}

/* Couche 1 — dégradé radial qui respire */
.heure-bleue-live__gradient {
  position: absolute;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(58, 106, 140, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(210, 180, 140, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 120%, rgba(93, 138, 168, 0.4) 0%, transparent 60%);
  animation: hb-breathe 24s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes hb-breathe {
  0%, 100% { transform: translate3d(-3%, -2%, 0) scale(1.02); }
  33% { transform: translate3d(2%, 1%, 0) scale(1.05); }
  66% { transform: translate3d(-1%, 3%, 0) scale(1.03); }
}

/* Couche 2 — sweep horizontal nuit → aube → nuit (20s) */
.heure-bleue-live__sweep {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(58, 106, 140, 0.1) 20%,
    rgba(210, 180, 140, 0.25) 50%,
    rgba(58, 106, 140, 0.1) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: hb-sweep 32s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes hb-sweep {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

/* Couche 3 — étoiles qui scintillent */
.heure-bleue-live__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.heure-bleue-live__stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: rgba(247, 244, 239, 0.85);
  box-shadow: 0 0 4px rgba(247, 244, 239, 0.5);
  animation: hb-twinkle 4s ease-in-out infinite;
  opacity: 0;
}

.heure-bleue-live__stars span:nth-child(odd) {
  width: 1.5px;
  height: 1.5px;
  animation-duration: 6s;
}

.heure-bleue-live__stars span:nth-child(3n) { animation-duration: 8s; background-color: rgba(210, 180, 140, 0.75); }
.heure-bleue-live__stars span:nth-child(5n) { animation-duration: 5s; }

@keyframes hb-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --- Contenu --- */

.heure-bleue-live .container {
  position: relative;
  z-index: 1;
}

.heure-bleue-live__kicker {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(210, 180, 140, 0.9);
  margin-bottom: var(--space-md);
}

.heure-bleue-live__title {
  font-family: var(--font-heading);
  font-weight: var(--weight-light);
  font-size: var(--text-3xl);
  color: var(--color-cream);
  margin: 0 0 var(--space-md);
  line-height: var(--leading-tight);
}

.heure-bleue-live__title::after {
  background-color: rgba(210, 180, 140, 0.55);
}

.heure-bleue-live__intro {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: var(--text-lg);
  color: rgba(247, 244, 239, 0.85);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.heure-bleue-live__live {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: rgba(247, 244, 239, 0.92);
  margin-bottom: var(--space-md);
}

.heure-bleue-live__context {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: var(--text-xl);
  color: rgba(247, 244, 239, 0.78);
}

.heure-bleue-live__time {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  color: var(--color-cream);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.heure-bleue-live__time time {
  position: relative;
  padding: 0 6px;
  color: var(--color-tan);
  font-weight: var(--weight-regular);
  transition: color 0.5s ease;
}

/* Léger pulse doré sur les times */
.heure-bleue-live__time time::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, rgba(210, 180, 140, 0.25) 0%, transparent 70%);
  opacity: 0;
  animation: hb-time-glow 6s ease-in-out infinite;
  z-index: -1;
}

.heure-bleue-live__time time:nth-of-type(2)::after { animation-delay: -3s; }

@keyframes hb-time-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.heure-bleue-live__duration {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(247, 244, 239, 0.7);
  margin-top: var(--space-xs);
  font-style: italic;
}

.heure-bleue-live__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: var(--text-xl);
  color: rgba(210, 180, 140, 0.95);
  margin-top: var(--space-xl);
  line-height: var(--leading-relaxed);
}

/* État "en ce moment" — variante chaude */
.heure-bleue-live.is-now .heure-bleue-live__time time {
  color: var(--color-tan);
  animation: hb-now-pulse 2.4s ease-in-out infinite;
}

@keyframes hb-now-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(210, 180, 140, 0.4); }
  50% { text-shadow: 0 0 20px rgba(210, 180, 140, 0.85), 0 0 40px rgba(210, 180, 140, 0.3); }
}

/* --- Responsive --- */

@media (min-width: 768px) {
  .heure-bleue-live {
    padding: var(--space-4xl) 0;
  }

  .heure-bleue-live__title {
    font-size: var(--text-4xl);
  }

  .heure-bleue-live__time {
    font-size: var(--text-4xl);
  }

  .heure-bleue-live__context {
    font-size: var(--text-2xl);
  }

  .heure-bleue-live__tagline {
    font-size: var(--text-2xl);
  }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  .heure-bleue-live__gradient,
  .heure-bleue-live__sweep,
  .heure-bleue-live__stars span,
  .heure-bleue-live__time time::after,
  .heure-bleue-live.is-now .heure-bleue-live__time time {
    animation: none !important;
  }
}
