/* ============================================
   HYROX.CSS — Page HYROX · Coach Brandon Fit
   Dark Brutalist · Volt Accent #D4FF00
   ============================================ */

/* ============================================
   SECTION WRAPPER HYROX
   ============================================ */
.section-hyrox {
  padding: 80px 0;
  position: relative;
}

.container-hyrox {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ============================================
   BURGER BTN (classe utilisée dans hyrox.html)
   ============================================ */
.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 101;
}
.burger-btn span {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--text-main);
  transition: all 0.3s;
}
.burger-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--accent); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--accent); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #000000;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  padding: 32px 24px;
  transform: translateY(-150%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  border-bottom: 1px solid var(--border-hard);
  z-index: 99;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: block;
  padding: 20px 0;
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 992px) {
  .nav-links { display: none; }
  .burger-btn { display: flex; }
  .mobile-menu { display: flex; }
}

/* ============================================
   SECTION 1 — HERO HYROX
   ============================================ */
.hyrox-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* offset navbar */
}

.hyrox-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: grayscale(20%);
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hyrox-hero:hover .hyrox-hero-bg {
  transform: scale(1.0);
}

.hyrox-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0.75) 50%,
    rgba(5, 5, 5, 0.5) 100%
  );
  z-index: 1;
}

/* Watermark */
.hyrox-watermark {
  position: absolute;
  bottom: -20px;
  right: -40px;
  font-family: 'Anton', sans-serif;
  font-size: 320px;
  line-height: 1;
  color: #ffffff;
  opacity: 0.04;
  text-transform: uppercase;
  letter-spacing: -10px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.hyrox-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.hyrox-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hyrox-hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(96px, 15vw, 180px);
  line-height: 0.9;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -4px;
  margin-bottom: 20px;
  opacity: 0; /* initial state for GSAP */
  transform: scale(0.8); /* initial state for GSAP */
}

.hyrox-hero-kicker {
  font-family: 'Anton', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hyrox-hero-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 36px;
  font-weight: 500;
}

.hyrox-hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   SECTION 2 — FORMAT RACE CARD
   ============================================ */
.hyrox-explique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hyrox-explique-text p {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.hyrox-explique-text p strong {
  color: var(--text-main);
  font-weight: 700;
}

.hyrox-format-card {
  background: #111111;
  border: 1px solid #222222;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.hyrox-format-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--accent);
  color: #050505;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hyrox-race-list {
  padding: 8px 0;
}

.race-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(34, 34, 34, 0.6);
  transition: background 0.2s;
}
.race-row:last-child { border-bottom: none; }

/* Course 1km — accent */
.race-row.race-run {
  color: var(--accent);
  background: rgba(212, 255, 0, 0.04);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.race-row.race-run i { opacity: 1; }

/* Stations — blanc */
.race-row.race-station {
  color: var(--text-main);
  padding-left: 40px;
}
.race-row.race-station i { color: var(--text-muted); flex-shrink: 0; }

.hyrox-format-footer {
  padding: 16px 24px;
  background: rgba(212, 255, 0, 0.1);
  border-top: 2px solid var(--accent);
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* ============================================
   SECTION 3 — PREP GRID (3×2)
   ============================================ */
.hyrox-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hyrox-prep-card {
  padding: 32px 28px;
  cursor: default;
}

.prep-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 255, 0, 0.08);
  border: 1px solid rgba(212, 255, 0, 0.2);
  color: var(--accent);
  margin-bottom: 20px;
}

.hyrox-prep-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hyrox-prep-card p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* Card accent (tous niveaux) */
.hyrox-prep-card--accent {
  border-color: var(--accent) !important;
}
.hyrox-prep-card--accent .prep-card-icon,
.prep-card-icon--accent {
  background: rgba(212, 255, 0, 0.15);
  border-color: var(--accent);
}
.hyrox-prep-card--accent h3 {
  color: var(--accent);
}

/* ============================================
   SECTION 4 — GALERIE 2×2
   ============================================ */
.hyrox-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hyrox-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #111;
}

.hyrox-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%);
  transition: transform 0.5s ease, filter 0.4s ease;
  display: block;
}

.hyrox-gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}

.hyrox-gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.hyrox-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hyrox-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.94);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 80px rgba(212, 255, 0, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hard);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: var(--accent);
  color: #050505;
  border-color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid var(--border-hard);
  color: var(--text-main);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: #050505;
  border-color: var(--accent);
}

/* ============================================
   SECTION 5 — CTA FINAL
   ============================================ */
.hyrox-cta-final {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.hyrox-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: grayscale(40%);
  transform: scale(1.04);
}

.hyrox-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.88) 0%,
    rgba(5, 5, 5, 0.78) 60%,
    rgba(5, 5, 5, 0.92) 100%
  );
}

.hyrox-cta-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hyrox-cta-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: -1px;
  margin: 0;
}

.hyrox-cta-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  color: var(--text-body);
  max-width: 480px;
  line-height: 1.6;
  font-weight: 500;
  margin: 8px 0 16px;
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {

  /* Hero */
  .hyrox-hero {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: 48px;
  }
  .hyrox-hero-title {
    font-size: clamp(72px, 20vw, 120px);
    letter-spacing: -2px;
  }
  .hyrox-watermark {
    font-size: 160px;
    bottom: 0;
    right: -20px;
    letter-spacing: -4px;
  }
  .hyrox-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Section 2 */
  .hyrox-explique-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hyrox-format-card {
    position: static;
  }

  /* Section 3 */
  .hyrox-prep-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Section 4 */
  .hyrox-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* CTA Final */
  .hyrox-cta-final { padding: 80px 0; }
  .hyrox-cta-title { font-size: clamp(32px, 10vw, 56px); }
  .hyrox-cta-desc { font-size: 15px; }
}

@media (max-width: 992px) {
  /* Section 3 — 2 colonnes sur tablette */
  .hyrox-prep-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Section 2 */
  .hyrox-explique-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hyrox-format-card {
    position: static;
  }
}
