/* ==========================================================================
   Programmation page (template-programmation.php).
   Loaded only for that page template (see functions.php), after main.css.
   Text / days / embed / hero photo come from ACF (group_mtl_programmation).
   ========================================================================== */

/* ---- Hero --------------------------------------------------------------- */
.pg-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 52vh, 600px);
  display: flex;
  align-items: flex-end;
  /* dark gradient over the venue photo */
  background:
    linear-gradient(
      76deg,
      rgba(17, 17, 17, 0.95) 0%,
      rgba(17, 17, 17, 0.78) 46%,
      rgba(17, 17, 17, 0.28) 100%
    ),
    #111 var(--pg-hero-img, url('../assets/partners.jpg')) center 35% / cover no-repeat;
}

.pg-hero .pg-hero-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: clamp(44px, 5.5vw, 92px) clamp(20px, 4vw, 30px) clamp(30px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.pg-hero .pg-hero-eyebrow {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c3ff74;
}

.pg-hero .pg-hero-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 76px);
  line-height: 0.92;
  letter-spacing: -2.6px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: #fff;
}

.pg-hero .pg-hero-rule {
  height: 8px;
  background: #c3ff74;
  max-width: 180px;
}

.pg-hero .pg-hero-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #dcdcdc;
  max-width: 560px;
}

/* ---- Detailed schedule -------------------------------------------------- */
.pg-sched {
  background: #111;
  padding: clamp(36px, 4.5vw, 72px) clamp(20px, 4vw, 30px);
}

.pg-schedhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 56px);
  align-items: end;
  border-top: 1px solid #575757;
  padding-top: 18px;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}

.pg-sched-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pg-sched-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: #fff;
}

.pg-sched-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #a8a8a8;
  max-width: 620px;
}

.pg-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(56px, auto));
  gap: clamp(12px, 1.6vw, 24px);
  justify-items: center;
  text-align: center;
}

.pg-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border-top: 4px solid var(--dc, #c3ff74);
  padding-top: 12px;
}

.pg-day-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dc, #c3ff74);
}

.pg-day-num {
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

/* ---- Embedded schedule -------------------------------------------------- */
.pg-embed {
  border: 1px solid #575757;
  border-top: 8px solid #c3ff74;
  background: #fff;
}

.pg-embed iframe {
  display: block;
  width: 100%;
  height: clamp(600px, 80vh, 900px);
  border: 0;
}

/* ---- CTA ---------------------------------------------------------------- */
.pg-cta-section {
  padding: 0 clamp(20px, 4vw, 30px) clamp(48px, 6vw, 90px);
  background: #111;
}

.pg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  background: #c3ff74;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
}

.pg-cta .pg-cta-text {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  text-transform: uppercase;
  color: #111;
  max-width: 760px;
}

.pg-cta .pg-send {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #c3ff74;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 16px 28px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.pg-cta .pg-send:hover {
  background: #0082fe;
  color: #fff;
}

.pg-cta .pg-send svg {
  flex: none;
}

/* ---- Scroll reveal ------------------------------------------------------ */
.pg-reveal.js-armed {
  opacity: 0;
  transform: translateY(28px);
}

.pg-reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 820px) {
  .pg-schedhead {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-cta .pg-send {
    width: 100%;
    justify-content: center;
  }
}

/* ---- "Une programmation en quatre axes" — text + image ------------------- */
.pg-txt-section {
  background: #161616;
  padding: clamp(36px, 4.5vw, 72px) clamp(20px, 4vw, 30px);
}

.pg-txt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.46fr);
  gap: clamp(22px, 3vw, 56px);
  align-items: start;
  width: 100%;
  border-top: 1px solid #575757;
  padding-top: 18px;
}

.pg-txt-body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.7vw, 22px);
  min-width: 0;
}

.pg-txt-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: #fff;
}

.pg-txt-body p {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 170%;
  color: #c9c9c9;
}

.pg-txt-body blockquote {
  margin: clamp(6px, 1vw, 14px) 0;
  border-left: 8px solid #c3ff74;
  padding: clamp(4px, 0.6vw, 8px) 0 clamp(4px, 0.6vw, 8px) clamp(18px, 2vw, 28px);
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.14;
  letter-spacing: -1px;
  color: #fff;
  text-wrap: balance;
}

.pg-txt-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #111;
  border: 1px solid #575757;
  overflow: hidden;
}

.pg-txt-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .pg-txt {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-txt-figure {
    aspect-ratio: 16 / 9;
  }
}
