/* ═══════════════════════════════════════════════════════
   ATHLETIC BLUEPRINT — effects3d.css
   3D Design System / Superpower-inspired premium effects
═══════════════════════════════════════════════════════ */

/* ── Custom cursor ──────────────────────────────────── */
@media (pointer: fine) {
  body { cursor: none; }

  #cursor-outer {
    position: fixed;
    width: 38px; height: 38px;
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    top: -19px; left: -19px;
    will-change: transform;
    transition: width .2s ease, height .2s ease,
                border-color .2s ease, background .2s ease;
    mix-blend-mode: screen;
  }
  #cursor-inner {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    top: -2.5px; left: -2.5px;
    will-change: transform;
    box-shadow: 0 0 6px rgba(26,92,255,0.8);
  }
  #cursor-outer.hovering {
    width: 64px; height: 64px;
    top: -32px; left: -32px;
    border-color: rgba(26,92,255,0.9);
    background: rgba(26,92,255,0.05);
  }
  #cursor-inner.hovering {
    width: 8px; height: 8px;
    top: -4px; left: -4px;
    background: var(--gold-light);
  }

  a, button, .ttcard, .programme-card, .usp__item, .service-item,
  label.quiz__opt { cursor: none; }
}

/* ── Scroll progress bar ────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), #00C5B8);
  z-index: 101;
  box-shadow: 0 0 10px rgba(26,92,255,0.4), 0 0 20px rgba(0,197,184,0.2);
  transition: width .05s linear;
}

/* ── Hero 3D canvas ─────────────────────────────────── */
#hero-rings-canvas {
  position: absolute;
  top: 0; right: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero text — bigger, more impact ───────────────── */
.hero__title {
  font-size: clamp(4rem, 9vw, 8rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.01em !important;
}
.hero__title .text-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 45%, #00C5B8 80%, var(--cyan-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 1.15rem !important;
  max-width: 480px !important;
  line-height: 1.9 !important;
}

/* ── Section headings gradient ─────────────────────── */
.section-title .text-gold {
  background: linear-gradient(120deg, var(--gold-dark) 0%, var(--gold) 55%, #00C5B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
}

/* ── Section label decorative line ─────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* ── Glassmorphism cards ────────────────────────────── */
.ttcard {
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(26,92,255,0.10) !important;
}
.ttcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(26,92,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.usp__item {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26,92,255,0.08) !important;
}

.programme-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.programme-card--featured {
  background: rgba(240,245,255,0.90) !important;
  border: 1px solid var(--gold) !important;
  box-shadow:
    0 0 0 1px rgba(26,92,255,0.2),
    0 0 60px rgba(26,92,255,0.08),
    0 24px 64px rgba(26,92,255,0.08) !important;
}
.programme-card--elite {
  background: rgba(240,252,252,0.90) !important;
}

/* ── Training types — horizontal scroll ─────────────── */
.training-types__grid {
  display: flex !important;
  grid-template-columns: unset !important;
  overflow-x: auto;
  gap: 1.25rem !important;
  padding: 0.5rem 0 2.5rem !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,92,255,0.25) transparent;
}
.training-types__grid::-webkit-scrollbar { height: 3px; }
.training-types__grid::-webkit-scrollbar-track { background: transparent; }
.training-types__grid::-webkit-scrollbar-thumb {
  background: rgba(26,92,255,0.3);
  border-radius: 2px;
}
.ttcard {
  flex: 0 0 310px !important;
  scroll-snap-align: start;
  position: relative;
}
.ttcard--featured {
  flex: 0 0 330px !important;
  border-color: rgba(26,92,255,0.3) !important;
}

/* ── Scroll indicator for horizontal section ──────── */
.training-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.training-scroll-hint::after {
  content: '→→→';
  letter-spacing: 0.05em;
  color: rgba(26,92,255,0.5);
  animation: scrollArrow 1.5s ease-in-out infinite;
}
@keyframes scrollArrow {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* ── Stats number glow ──────────────────────────────── */
.stats__number {
  text-shadow: 0 0 24px rgba(26,92,255,0.35) !important;
}

/* ── Programmes section glow bg ─────────────────────── */
.programmes {
  position: relative;
  overflow: hidden;
}
.programmes::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(26,92,255,0.045) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Service items glass ────────────────────────────── */
.service-item {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.80) !important;
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}
.service-item:hover {
  transform: translateX(8px) !important;
  border-color: rgba(26,92,255,0.30) !important;
  box-shadow: -4px 0 20px rgba(26,92,255,0.10) !important;
  background: rgba(255,255,255,0.95) !important;
}

/* ── CTA Band — full-screen feel ────────────────────── */
.cta-band {
  padding: 120px 0 !important;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(26,92,255,0.07) 0%, transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(26,92,255,0.03) 50%, transparent 100%);
}
.cta-band__title {
  font-size: clamp(3rem, 7vw, 5.5rem) !important;
  line-height: 0.95 !important;
}

/* ── Nav links — underline animation ─────────────────── */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease, left .3s ease;
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 70%;
  left: 15%;
}

/* ── Glow dividers ──────────────────────────────────── */
.section-divider {
  position: relative;
  padding-top: 3rem;
  border-top: 1px solid transparent;
  background-clip: padding-box;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(26,92,255,0.3) 30%,
              rgba(26,92,255,0.6) 50%, rgba(26,92,255,0.3) 70%, transparent 100%);
}

/* ── Hero scroll hint improved ──────────────────────── */
.hero__scroll-hint { letter-spacing: 0.2em; }
.scroll-line {
  background: linear-gradient(180deg, rgba(26,92,255,0.8), transparent) !important;
}

/* ── Floating elements keyframe ────────────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(0.5deg); }
  66%       { transform: translateY(-4px) rotate(-0.3deg); }
}
.hero__logo-mark {
  animation: floatY 6s ease-in-out infinite;
  animation-delay: 1.8s;
}

/* ── Text scramble — prevent layout shift ───────────── */
.scramble-target {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Hero Globe Canvas ──────────────────────────────── */
#hero-globe-canvas {
  position: absolute;
  top: 0; right: 0;
  width: 62%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.2s ease;
}
/* Hero content must render above the globe canvas */
.hero__content {
  position: relative;
  z-index: 4 !important;
}
.hero__scroll-hint {
  position: relative;
  z-index: 4 !important;
}

/* ── Scroll Storytelling — 4 Programmes ─────────────── */
.pillars-story {
  height: 380vh;
  position: relative;
}
.pillars-story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#pillars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.pillars-story__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}
.pillars-story__header .section-title {
  margin-bottom: 0;
}
.pillars-story__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pillar-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  opacity: 0.22;
  transform: translateX(16px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
              transform 0.55s cubic-bezier(0.16,1,0.3,1);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.pillar-item--active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(26,92,255,0.04);
  border-color: rgba(26,92,255,0.12);
}
.pillar-item__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 2.8rem;
  opacity: 0.7;
}
.pillar-item--active .pillar-item__num {
  opacity: 1;
}
.pillar-item__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}
.pillar-item__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 0.75rem;
  font-style: italic;
}

/* Client identity line */
.pillar-item__client {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 0 0.85rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(201,168,76,0.3);
  transition: border-color 0.4s ease;
}
.pillar-item--active .pillar-item__client {
  color: rgba(255,255,255,0.75);
  border-left-color: var(--gold);
}
.pillar-item__client strong {
  color: var(--gold);
  font-weight: 600;
}

/* Benefits list */
.pillar-item__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pillar-item__benefits li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  padding-left: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}
.pillar-item__benefits li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(201,168,76,0.4);
  font-size: 0.7rem;
  transition: color 0.3s ease;
}
.pillar-item--active .pillar-item__benefits li {
  color: rgba(255,255,255,0.72);
}
.pillar-item--active .pillar-item__benefits li::before {
  color: var(--gold);
}

/* Badge type de programme */
.pillar-item__badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(26,92,255,0.08);
  border: 1px solid rgba(26,92,255,0.22);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 0.5rem;
}
.pillar-item__badge--hyrox {
  color: var(--cyan-dark, #009A91);
  background: rgba(0,197,184,0.08);
  border-color: rgba(0,197,184,0.28);
}
.pillar-item--active .pillar-item__badge {
  background: rgba(26,92,255,0.14);
  border-color: rgba(26,92,255,0.35);
}

/* Méta — fréquence & niveau */
.pillar-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-bottom: 0.85rem;
}
.pillar-item__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #4F6380);
  font-weight: 500;
}
.pillar-item__meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.6;
}
.pillar-item--active .pillar-item__meta-dot {
  opacity: 1;
}

/* Tags méthodes */
.pillar-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pillar-item__tags span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, #7A90A8);
  background: transparent;
  border: 1px solid rgba(26,92,255,0.16);
  border-radius: 100px;
  padding: 0.22rem 0.6rem;
  transition: all 0.3s ease;
}
.pillar-item--active .pillar-item__tags span {
  border-color: rgba(26,92,255,0.32);
  color: var(--gold);
}

/* ── Dark theme overrides for 3D effects ───────────── */
[data-theme="dark"] #scroll-progress {
  box-shadow: 0 0 14px rgba(26,92,255,0.6), 0 0 28px rgba(0,197,184,0.3);
}
[data-theme="dark"] .hero__title .text-gold {
  background: linear-gradient(135deg, #4D82FF 0%, var(--gold) 40%, #00C5B8 75%, #3DD6CE 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .section-title .text-gold {
  background: linear-gradient(120deg, #4D82FF 0%, var(--gold) 50%, #00C5B8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .pillar-item--active {
  background: rgba(26,92,255,0.08);
  border-color: rgba(26,92,255,0.20);
}
[data-theme="dark"] .pillar-item__name { color: #F0F5FF; }
[data-theme="dark"] .programmes::before {
  background: radial-gradient(ellipse, rgba(26,92,255,0.08) 0%, transparent 65%);
}
[data-theme="dark"] .stats__number {
  text-shadow: 0 0 24px rgba(26,92,255,0.45) !important;
}

/* ── Responsive adjustments ─────────────────────────── */
@media (max-width: 768px) {
  .hero__title { font-size: clamp(3rem, 11vw, 5rem) !important; }
  #hero-rings-canvas { width: 100%; opacity: 0.25; }
  #hero-globe-canvas { width: 100%; opacity: 0.18 !important; }
  .training-types__grid { gap: 1rem !important; }
  .ttcard { flex: 0 0 280px !important; }
  .cta-band { padding: 80px 0 !important; }

  /* Pillars — disable sticky, show static list */
  .pillars-story { height: auto; }
  .pillars-story__sticky {
    position: static;
    height: auto;
    padding: 5rem 0;
  }
  #pillars-canvas { display: none; }
  .pillars-story__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }
  .pillar-item {
    opacity: 1;
    transform: none;
  }
}
