/* ============================================================
   PROGRAMME PAGE — Afreecanard 2026 — Direction 2
   Le Carnet de Semaine: scroll storytelling, timeline par jour
   ============================================================ */

/* ── Globals page programme ─────────────────────────────────── */
.page {
  background: #16265f url('/assets/fabric-blue.webp') center / cover fixed;
}

/* ── Hero compact ────────────────────────────────────────────── */
.pp-hero {
  position: relative;
  padding: clamp(108px, 15vh, 152px) 28px clamp(48px, 6vh, 72px);
  text-align: center;
  overflow: hidden;
}

.pp-hero__eyebrow {
  font-family: 'SuperBoom', cursive;
  font-size: clamp(10px, 1.5vw, 13px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 209, 30, 0.52);
  display: block;
  margin: 0 0 14px;
}

.pp-hero__title {
  font-family: 'Heavitas', sans-serif;
  font-size: clamp(68px, 13vw, 152px);
  line-height: 0.86;
  color: #f4eedb;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}

.pp-hero__sub {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 238, 219, 0.28);
  margin: 0;
}

.pp-hero__canard {
  position: absolute;
  right: clamp(10px, 4vw, 60px);
  bottom: 0;
  width: clamp(64px, 11vw, 130px);
  opacity: 0.1;
  filter: brightness(3) saturate(0);
  pointer-events: none;
  user-select: none;
}

/* ── Sticky day nav ──────────────────────────────────────────── */
.pp-daynav {
  position: sticky;
  top: 58px;
  z-index: 90;
  display: flex;
  background: rgba(11, 22, 66, 0.88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 209, 30, 0.08);
  padding: 0 max(20px, calc(50vw - 480px));
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pp-daynav::-webkit-scrollbar { display: none; }

.pp-daynav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px;
  gap: 2px;
  text-decoration: none;
  color: rgba(244, 238, 219, 0.38);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  min-width: 72px;
}
.pp-daynav__item:hover { color: rgba(244, 238, 219, 0.72); }
.pp-daynav__item.is-active {
  color: #ffd11e;
  border-bottom-color: #ffd11e;
}
.pp-daynav__item--event { color: rgba(255, 209, 30, 0.55); }
.pp-daynav__item--event.is-active { color: #ffd11e; }

.pp-daynav__num {
  font-family: 'Heavitas', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.pp-daynav__day {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Sections jours ──────────────────────────────────────────── */
.pp-day {
  position: relative;
  padding: clamp(60px, 8vw, 100px) max(20px, calc(50vw - 480px)) 0;
  scroll-margin-top: 110px;
  overflow: clip; /* clip coupe le ghost number sans bloquer le scroll enfant */
}

/* Séparateur visuel entre jours */
.pp-day + .pp-day::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: max(20px, calc(50vw - 480px));
  right: max(20px, calc(50vw - 480px));
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 209, 30, 0.12) 20%, rgba(255, 209, 30, 0.12) 80%, transparent);
}

/* Numéro fantôme — élément architectural de fond */
.pp-day__ghost {
  position: absolute;
  top: -0.06em;
  left: max(20px, calc(50vw - 480px));
  font-family: 'Heavitas', sans-serif;
  font-size: clamp(200px, 28vw, 380px);
  line-height: 1;
  color: rgba(255, 209, 30, 0.025);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* En-tête de jour */
.pp-day__hd {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.pp-day__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-day__weekday {
  font-family: 'SuperBoom', cursive;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 209, 30, 0.55);
  line-height: 1;
}

.pp-day__date {
  font-family: 'Heavitas', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.9;
  color: #f4eedb;
  letter-spacing: -0.015em;
}

.pp-day__badge {
  display: inline-block;
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 238, 219, 0.4);
  border: 1px solid rgba(244, 238, 219, 0.15);
  border-radius: 40px;
  padding: 4px 12px;
  margin-top: 6px;
  width: fit-content;
}

.pp-day__badge--event {
  color: rgba(255, 209, 30, 0.72);
  border-color: rgba(255, 209, 30, 0.3);
}

/* Samedi headliner — légère teinte chaude sur le ghost */
.pp-day--headliner .pp-day__ghost {
  color: rgba(255, 209, 30, 0.04);
}

/* ── Timeline journée ────────────────────────────────────────── */
.pp-day__daytime {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.pp-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Ligne verticale continue du timeline */
.pp-timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 209, 30, 0.18), rgba(255, 209, 30, 0.04));
  pointer-events: none;
}

.pp-tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  gap: 0;
  padding: 18px 0;
  position: relative;
}

/* Point sur la ligne du timeline */
.pp-tl-item::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 209, 30, 0.25);
  border: 1.5px solid rgba(255, 209, 30, 0.5);
}

.pp-tl-item--allday::before {
  background: rgba(244, 238, 219, 0.1);
  border-color: rgba(244, 238, 219, 0.15);
}

.pp-tl-time {
  font-family: 'Heavitas', sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 209, 30, 0.65);
  padding-top: 1px;
  text-align: right;
  padding-right: 14px;
  align-self: start;
}

.pp-tl-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(255, 209, 30, 0.14);
  min-width: 0;
}

.pp-tl-name {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #f4eedb;
  line-height: 1.15;
}

.pp-tl-item--allday .pp-tl-name {
  color: rgba(244, 238, 219, 0.62);
  font-size: 16px;
  font-weight: 600;
}

.pp-tl-item--allday .pp-tl-detail {
  color: rgba(244, 238, 219, 0.55);
}

.pp-tl-detail {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 14px;
  color: rgba(244, 238, 219, 0.52);
  line-height: 1.4;
}

.pp-tl-tel {
  color: rgba(255, 209, 30, 0.65);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s;
}
.pp-tl-tel:hover { color: #ffd11e; }

.pp-tl-price {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 219, 0.45);
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  background: rgba(244, 238, 219, 0.05);
  border: 1px solid rgba(244, 238, 219, 0.12);
  border-radius: 30px;
  padding: 2px 10px;
}

.pp-tl-price--free {
  color: #ffd11e;
  background: rgba(255, 209, 30, 0.07);
  border-color: rgba(255, 209, 30, 0.22);
}

/* ── Thème de soirée ─────────────────────────────────────────── */
.pp-day__theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 14px 5px 10px;
  background: rgba(255, 209, 30, 0.07);
  border: 1px solid rgba(255, 209, 30, 0.22);
  border-radius: 30px;
  width: fit-content;
}

.pp-day__theme-eyebrow {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 209, 30, 0.42);
  white-space: nowrap;
}

.pp-day__theme-name {
  font-family: 'Heavitas', sans-serif;
  font-size: clamp(12px, 1.4vw, 15px);
  color: #ffd11e;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pp-day__theme-duck {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

/* ── Slider photos 3 carrées ─────────────────────────────────── */
.pp-slider {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.pp-slider__viewport {
  overflow: hidden;
  border-radius: 12px;
}

.pp-slider__track {
  display: flex;
  gap: 10px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pp-slider__slide {
  flex: 0 0 calc(33.333% - 7px);
  flex-shrink: 0;
}

.pp-slider__slide img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.pp-slider__slide img:hover { opacity: 1; }

/* Boutons + dots dans une barre sous le slider */
.pp-slider__ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 0;
}

.pp-slider__btn {
  background: none;
  border: 1.5px solid rgba(255, 209, 30, 0.28);
  color: rgba(255, 209, 30, 0.7);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.pp-slider__btn:hover {
  border-color: #ffd11e;
  color: #ffd11e;
}

.pp-slider__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.pp-slider__dots {
  display: flex;
  gap: 6px;
}

.pp-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 238, 219, 0.18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.pp-slider__dot.is-active {
  background: #ffd11e;
  transform: scale(1.45);
}

/* ── Bande photo sous la timeline ──────────────────────────── */
.pp-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pp-photo-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  opacity: 0.82;
  transition: opacity 0.3s;
}

.pp-photo-strip img:hover { opacity: 1; }

/* ── .pp-gallery supprimé (remplacé par .pp-slider) ─────────── */
/* Règles conservées en stub pour éviter les erreurs si réf. rés. */
.pp-gallery img:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* ── Concert photo hero ──────────────────────────────────────── */
.pp-concert {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: none;
  margin: 0 calc(-1 * max(20px, calc(50vw - 480px)));
}

.pp-concert--event {
  min-height: 560px;
}

/* Photo de fond avec zoom entrant */
.pp-concert__bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center top;
  transform: scale(1.08);
  transition: transform 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.pp-concert.is-visible .pp-concert__bg {
  transform: scale(1);
}

/* Matronome — fond graphique charte (pas de photo sombre) */
.pp-concert--graphic .pp-concert__bg {
  background: #0c1840 url('/assets/fabric-blue.webp') center/cover;
  transform: none;
  transition: none;
}
.pp-concert--graphic.is-visible .pp-concert__bg { transform: none; }

/* Dégradé vertical → texte lisible */
.pp-concert__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8, 16, 50, 0) 0%,
    rgba(8, 16, 50, 0.08) 28%,
    rgba(8, 16, 50, 0.72) 56%,
    rgba(5, 10, 36, 0.97) 100%
  );
}

.pp-concert__inner {
  position: relative;
  z-index: 2;
  padding: 0 max(28px, calc(50vw - 452px)) 40px;
  width: 100%;
}

/* "CONCERT · 21H" */
.pp-concert__label {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 209, 30, 0.6);
  margin: 0 0 12px;
}

/* Nom artiste — entre après reveal */
.pp-concert__name {
  font-family: 'Heavitas', sans-serif;
  font-size: clamp(48px, 8.5vw, 96px);
  line-height: 0.88;
  color: #f4eedb;
  margin: 0;
  letter-spacing: -0.015em;
  word-break: break-word;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.42s;
}

.pp-concert.is-visible .pp-concert__name {
  opacity: 1;
  transform: translateY(0);
}

/* Concert événement (MASSBEAT) — nom en jaune, plus grand */
.pp-concert--event .pp-concert__name {
  font-size: clamp(60px, 12vw, 130px);
  color: #ffd11e;
}

.pp-concert__genre {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 219, 0.3);
  margin: 10px 0 0;
}

.pp-concert__support {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 219, 0.28);
  margin: 10px 0 0;
}

.pp-concert__support strong {
  color: rgba(244, 238, 219, 0.55);
  font-weight: 700;
}

/* Ticket strip */
.pp-concert__ticket {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 10px 22px;
  border-radius: 8px;
  background: rgba(255, 209, 30, 0.06);
  border: 1px solid rgba(255, 209, 30, 0.16);
}

.pp-ticket__price {
  font-family: 'Heavitas', sans-serif;
  font-size: 26px;
  color: #ffd11e;
  line-height: 1;
  white-space: nowrap;
}

.pp-ticket__cur {
  font-size: 0.5em;
  vertical-align: super;
  line-height: 0;
}

.pp-ticket__price--free {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 219, 0.65);
}

.pp-ticket__info {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(244, 238, 219, 0.3);
  line-height: 1.55;
}

/* ── Reveal animations (IntersectionObserver) ────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Concert blocks : pas de translateY (ils sont full-bleed) */
.pp-concert[data-reveal] {
  transform: none;
  transition: opacity 0.5s ease;
}

/* la galerie de dimanche gère son propre padding-bottom */

/* ── Tablette + grand mobile (header = 64px) ─────────────────── */
@media (max-width: 768px) {
  .pp-daynav {
    top: 64px; /* header .nav2 fait 64px sur ≤768px */
  }
  .pp-day {
    scroll-margin-top: 112px; /* 64 header + ~48 daynav */
  }
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pp-hero { padding-top: clamp(90px, 18vw, 128px); padding-left: 20px; padding-right: 20px; }
  .pp-hero__title { font-size: 11vw; }
  .pp-hero__canard { display: none; }
  .page-back { display: none; }

  .pp-daynav {
    padding: 0 8px;
  }
  .pp-daynav__item { padding: 8px 14px; min-width: 58px; }
  .pp-daynav__num { font-size: 16px; }

  .pp-day {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: clamp(44px, 10vw, 68px);
    scroll-margin-top: 96px;
  }

  .pp-day + .pp-day::before {
    left: 16px;
    right: 16px;
  }

  .pp-day__ghost {
    font-size: clamp(140px, 40vw, 220px);
    left: 0;
    opacity: 0.02;
  }

  .pp-day__date { font-size: clamp(30px, 10vw, 44px); }

  .pp-timeline::before { left: 60px; }
  .pp-tl-item::before { left: 56px; top: 22px; }
  .pp-tl-item { grid-template-columns: 68px 1fr; padding: 14px 0; }
  .pp-tl-time { font-size: 12px; padding-right: 12px; }
  .pp-tl-name { font-size: 17px; }
  .pp-tl-item--allday .pp-tl-name { font-size: 14px; }
  .pp-tl-detail { font-size: 13px; }

  .pp-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .pp-photo-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .pp-photo-strip img:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 16/7;
  }

  /* Slider : 2 photos visibles sur mobile (le JS lit 2 aussi) */
  .pp-slider__slide {
    flex: 0 0 calc(50% - 5px); /* 2 × (50%-5px) + 1 gap 10px = 100% */
  }
  .pp-slider__slide img { border-radius: 8px; }

  .pp-concert {
    min-height: 300px;
    margin: 0 -16px;
  }
  .pp-concert--event { min-height: 400px; }
  .pp-concert__inner { padding: 0 18px 28px; }

  .pp-concert__name {
    font-size: clamp(30px, 10.5vw, 48px);
    word-break: normal;
    overflow-wrap: break-word;
  }
  .pp-concert--event .pp-concert__name {
    font-size: clamp(40px, 13.5vw, 64px);
  }

  .pp-concert__ticket { padding: 8px 16px; gap: 12px; margin-top: 16px; }
  .pp-ticket__price { font-size: 22px; }
}

/* ── TNT : recadrage desktop pour montrer la scène ──────────── */
@media (min-width: 769px) {
  .pp-concert--tnt .pp-concert__bg {
    background-position: center 38%;
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .pp-concert[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pp-concert__bg {
    transform: scale(1) !important;
    transition: none !important;
  }
  .pp-concert__name {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
