/* ============================================================
   EVENT PAGE V2 — hero, timeline line-up, sticky CTA
   Chargé uniquement par event-v2.pug (en plus de site-ui.css)
   ============================================================ */

/* ---------- Hero ---------- */

.event-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

/* Voile sombre + fondu vers le fond du site en bas */
.event-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      #15003d77 0%,
      #15003d55 35%,
      #000713db 82%,
      #000713 100%);
}

.event-hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 92%);
  padding: 140px 0 56px;
}

.event-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 7vw, 4rem);
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(0, 200, 255, 0.5);
}

.event-hero .event-hero-owner {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b8b2e0;
}

.event-hero .event-hero-slogan {
  margin: 10px 0 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: #e0d8ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Chips date / heures / lieu */
.event-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(155, 0, 155, 0.55);
  background: rgba(12, 5, 38, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #eceafe;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.event-chip i {
  color: var(--event-accent, #c400c4);
}

a.event-chip:hover {
  border-color: var(--event-accent, #c400c4);
  box-shadow: 0 0 18px rgba(196, 0, 196, 0.35);
  color: #fff;
}

.event-hero-cta {
  margin-top: 30px;
}

/* ---------- Timeline line-up ---------- */

.timeline {
  position: relative;
  width: min(680px, 100%);
  margin: 30px auto 0;
  padding-left: 34px;
  text-align: left;
}

/* Rail vertical */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    var(--event-accent, #c400c4) 12%,
    #3a0ca3 88%,
    transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -29px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b0426;
  border: 2px solid var(--event-accent, #c400c4);
  box-shadow: 0 0 12px rgba(196, 0, 196, 0.6);
}

/* Bornes (ouverture / fin) */
.timeline-item.timeline-edge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #b8b2e0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-item.timeline-edge::before {
  top: 50%;
  transform: translateY(-50%);
  background: var(--event-accent, #c400c4);
}

.timeline-item.timeline-edge .timeline-hour {
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

/* Carte DJ */
.timeline-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #2e0a63;
  background: rgba(18, 8, 48, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.timeline-card:hover {
  border-color: var(--event-accent, #c400c4);
  box-shadow: 0 0 30px rgba(52, 0, 112, 0.8);
  transform: translateX(4px);
}

.timeline-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--event-accent, #c400c4);
  box-shadow: 0 0 14px rgba(196, 0, 196, 0.4);
}

/* Avatar de repli (initiale) quand pas d'image */
.timeline-avatar-fallback {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8a00b8, #3a0ca3);
  border: 2px solid var(--event-accent, #c400c4);
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-body h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.timeline-body h3 a {
  color: #fff;
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

.timeline-body h3 a:hover {
  text-shadow: 0 0 15px rgba(0, 200, 255, 0.9);
}

.timeline-styles {
  margin: 0;
  font-size: 0.88rem;
  color: rgb(106, 216, 201);
  text-shadow: 0 0 10px rgba(170, 44, 164, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.timeline-links a {
  color: #9a94c2;
  font-size: 1.05rem;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.timeline-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.9);
}

.badge-guest {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffd48a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

/* ---------- CTA billetterie collant (mobile) ---------- */

.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
    background: rgba(8, 3, 30, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(155, 0, 155, 0.5);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.5);
  }

  .sticky-cta-price {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
  }

  .sticky-cta-price span {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9a94c2;
  }

  .sticky-cta-price strong {
    font-size: 1.25rem;
    color: #fff;
  }

  .sticky-cta a.sticky-cta-btn {
    flex: 1;
    max-width: 260px;
    padding: 13px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #8a00b8, var(--event-accent, #c4009c));
    box-shadow: 0 4px 18px rgba(196, 0, 196, 0.45);
  }

  .sticky-cta a.sticky-cta-btn:active {
    transform: scale(0.98);
  }

  /* Laisse la place au bandeau en bas de page */
  body.has-sticky-cta {
    padding-bottom: 84px;
  }
}

/* ---------- Divers ---------- */

@media (max-width: 480px) {
  .event-hero-inner {
    padding-top: 110px;
  }

  .event-chip {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}

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

/* --- Étapes de la soirée (cercle PLEIN, comme Ouverture/Fin) --- */

.timeline-item.timeline-step::before {
  background: var(--event-accent, #c400c4);
}

.timeline-time {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b8b2e0;
  white-space: nowrap;
}

.timeline-step-desc {
  white-space: normal;
  color: #cfc9f2;
  text-shadow: none;
}
