/* ═══════════════════════════════════════════════════════════════════════
   TRAININGPIXEL — STYLE FUTURISTE
   Dark tech aesthetic inspiré Space & Time
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:           #05050f;
  --bg2:          #080818;
  --bg-card:      rgba(255,255,255,0.03);
  --border:       rgba(124,58,237,0.18);
  --border-hover: rgba(124,58,237,0.5);
  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --magenta:      #ec4899;
  --cyan:         #06b6d4;
  --orange:       #f97316;
  --green:        #22c55e;
  --text:         #f0f0f8;
  --text-muted:   #7070a0;
  --glow-p:       rgba(124,58,237,0.35);
  --glow-m:       rgba(236,72,153,0.35);
  --glow-c:       rgba(6,182,212,0.3);
  --header-h:     96px;
  --radius:       14px;
  --radius-sm:    8px;
  --font:         'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Light Mode ── */
html.light {
  --bg:           #f0f0f8;
  --bg2:          #e4e4f0;
  --bg-card:      rgba(255,255,255,0.7);
  --border:       rgba(249,115,22,0.2);
  --border-hover: rgba(249,115,22,0.5);
  --purple:       #f97316;
  --purple-light: #fb923c;
  --magenta:      #e11d48;
  --cyan:         #0891b2;
  --text:         #0a0a1a;
  --text-muted:   #555577;
  --glow-p:       rgba(249,115,22,0.3);
  --glow-m:       rgba(225,29,72,0.25);
  --glow-c:       rgba(8,145,178,0.2);
}
html.light body { background: var(--bg); }
html.light #siteHeader { background: rgba(240,240,248,0.9); border-bottom-color: var(--border); }
html.light #siteHeader.scrolled { background: rgba(240,240,248,0.98); }
html.light .dropdown { background: rgba(240,240,248,0.98); }
html.light .gradient-text {
  background: linear-gradient(135deg, #111 30%, var(--purple) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light .logo-img { mix-blend-mode: multiply; }
html.light .logo-img.dark-logo { display: none; }
html.light .logo-img.light-logo { display: block; }
html.light .ltag-line { color: #0a0a1a; }
html.light .nav-link { color: var(--text-muted); }
html.light .profile-label { color: var(--text-muted); }
html.light .footer-logo-v1 { mix-blend-mode: multiply; }
html.light .dark-logo { display: none; }
html.light .light-logo { display: block; }
html.light #particleCanvas { opacity: 0.2; }
html.light .alt-bg { background: var(--bg2); }
html.light #siteFooter { background: #dcdcf0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }

/* ═══════════════════════════════════════════════════════════
   CANVAS PARTICULES (fond)
═══════════════════════════════════════════════════════════ */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(5,5,15,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#siteHeader.scrolled {
  background: rgba(5,5,15,0.96);
  box-shadow: 0 4px 32px rgba(124,58,237,0.12);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* LOGO
   Image "Site web - Blanc NOBG.png" = 2000×2000px
   Affichée à 410px → scale 0.2050
   Zone texte mesurée : x=327→1652 (w=1325), y=860→1122 (h=262)
   Séparation Training/Pixel (col vide) : x=971 → scaled 199px − 67 = 132px dans clip
   left  = -(327×0.2050) = -67px
   top   = -(860×0.2050 − 14px marge cube) = -162px
   clip-w = 1325×0.2050 = 271px  |  clip-h = 262×0.2050 + 14 = 68px
   "i" Pixel ≈ x=1158 → 237px scaled − 67px offset = 170px → cube left=163px
*/
.logo-link { display: flex; align-items: center; flex-shrink: 0; }

/* Bloc logo — conteneur unique positionné */
.logo-block {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

/* Taglines absolues dans logo-block — bougent avec lui à tout zoom */
.ltag-line {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.13em;
  color: #ffffff;
  white-space: nowrap;
  transition: text-shadow var(--transition);
}
.ltag-line--1 { top: 52px; left: -20px; }
.ltag-line--2 { top: 52px; left: 169px; }
.logo-link:hover .ltag-line { text-shadow: 0 0 6px rgba(255,255,255,1), 0 0 18px rgba(255,255,255,0.7), 0 0 35px rgba(255,255,255,0.4); }
.logo-clip {
  position: relative;
  width: 271px;
  height: 68px;
  overflow: hidden;
}
.logo-img {
  position: absolute;
  width: 410px;
  max-width: none;
  top: -162px;
  left: -67px;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}
.logo-img.light-logo { display: none; }

/* ── PIXEL CUBE 3D ──
   Centre du "i" de Pixel mesuré à x≈1197 dans image 2000px
   → scaled=1197×0.205=245px | clip=245-67=178px
   Cube 12px → left = 178 - 6 = 172px
*/
.pixel-cube-wrap {
  position: absolute;
  left: 194px;
  top:  8px;
  width: 12px;
  height: 12px;
  z-index: 10;
}
.cube-scene {
  width: 12px;
  height: 12px;
  perspective: 52px;
}
.cube {
  width: 12px;
  height: 12px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(0deg);
  will-change: transform;
}
.face {
  position: absolute;
  width: 12px;
  height: 12px;
  background-image: url('I.jpg');
  background-size: 400%;
  border: 0.5px solid rgba(255,255,255,0.15);
  opacity: 0.95;
}
.face-front  { transform: translateZ(6px);                      background-position: 0% 0%; }
.face-back   { transform: rotateY(180deg) translateZ(6px);      background-position: 33% 0%; }
.face-right  { transform: rotateY(90deg)  translateZ(6px);      background-position: 66% 0%; }
.face-left   { transform: rotateY(-90deg) translateZ(6px);      background-position: 100% 0%; }
.face-top    { transform: rotateX(90deg)  translateZ(6px);      background-position: 0% 50%; }
.face-bottom { transform: rotateX(-90deg) translateZ(6px);      background-position: 33% 50%; }

/* ── Navigation ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--text); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: rgba(10,10,24,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}
.dropdown-right { left: auto; right: 0; transform: translateY(-8px); }
.nav-item:hover .dropdown,
.profile-area:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-right:is(.dropdown) {
  transform: translateY(0) !important;
}
.nav-item:hover .dropdown-right { transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.dropdown a:hover {
  color: var(--text);
  background: rgba(124,58,237,0.1);
}

/* Profil */
.profile-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.profile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.profile-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 0 16px var(--glow-p);
}
.profile-label { font-size: 0.72rem; color: var(--text-muted); }

/* Scroll progress */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--magenta), var(--cyan));
  transition: width 0.1s linear;
}

/* Burger mobile */
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   MAIN — Layout commun
═══════════════════════════════════════════════════════════ */
main { padding-top: var(--header-h); position: relative; z-index: 1; }

.section {
  display: flex;
  align-items: center;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(124,58,237,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.alt-bg { background: var(--bg2); }
.alt-bg::before {
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(6,182,212,0.04) 0%, transparent 70%);
}

.section-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 144px);
}
.section-inner.reverse { direction: rtl; }
.section-inner.reverse > * { direction: ltr; }
.section-inner-centered {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

/* Texte section */
.section-text { display: flex; flex-direction: column; gap: 14px; }
.tag-badge {
  display: inline-flex;
  padding: 5px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 99px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  width: fit-content;
}
.center-tag { margin: 0 auto 8px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--purple-light) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* Boutons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  width: fit-content;
  box-shadow: 0 0 30px var(--glow-p);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--glow-p);
}
.btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  padding: 11px 24px;
  border: 1px solid var(--border-hover);
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--purple-light);
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-outline:hover {
  background: rgba(124,58,237,0.1);
  box-shadow: 0 0 20px var(--glow-p);
}

/* Glass card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(124,58,237,0.1);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — Layout : titre haut + corps athlete
═══════════════════════════════════════════════════════════ */

/* Conteneur principal S1 */
.s1-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Ligne titre — pleine largeur */
.s1-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.s1-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* Corps S1 : carte athlete large + aside texte/CTA */
.s1-body {
  display: grid;
  grid-template-columns: 1.65fr 0.45fr;
  gap: 48px;
  align-items: start;
  flex: 1;
}

/* Colonne droite texte/CTA */
.s1-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

/* Grille section 1 legacy (non utilisé mais conservé) */
.wide-left { grid-template-columns: 1.5fr 0.5fr !important; }

.athlete-card-wrap { position: relative; }
.athlete-card {
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
}
.athlete-card::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Layout 3 colonnes : données | avatar | caractéristiques */
.athlete-layout {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 20px;
  align-items: start;
}
.athlete-col-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-light);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.athlete-stats { display: flex; flex-direction: column; gap: 0; }
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stat-label { color: var(--text-muted); }
.stat-val { font-weight: 600; font-size: 0.82rem; }
.stat-val small { font-weight: 400; font-size: 0.68rem; color: var(--text-muted); }

.pixel-profile {
  margin-top: 12px;
  padding: 9px 10px;
  background: rgba(124,58,237,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pixel-badge {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-light);
  margin-bottom: 3px;
}
.pixel-profile strong { font-size: 0.82rem; }

/* ── Centre : grand avatar ── */
.athlete-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-stage {
  position: relative;
  width: 190px;
  height: 370px;
}
.avatar-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--glow-p) 0%, transparent 65%);
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

/* Vues SVG — transition entre les 3 états */
.aview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.aview.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.aview svg {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(124,58,237,0.3));
  animation: floatUp 4s ease-in-out infinite;
}
#aview-squelette svg { filter: drop-shadow(0 0 10px rgba(160,190,255,0.35)); }
#aview-muscles  svg { filter: drop-shadow(0 0 12px rgba(239,68,68,0.4)); }

/* Score badge centré sous avatar */
.avatar-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 20px 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  width: 100%;
}
.ascore-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.score-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--purple-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tabs SOUS l'avatar */
.avatar-tabs {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  width: 100%;
  justify-content: center;
}
.atab {
  flex: 1;
  padding: 5px 0;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  text-align: center;
}
.atab.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 14px var(--glow-p);
}
.atab:hover:not(.active) { color: var(--text); }

/* Barres caractéristiques */
.charac-bars { display: flex; flex-direction: column; gap: 8px; }
.bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 3px;
}
.bar-score { color: var(--text-muted); font-size: 0.72rem; }
.bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--c, var(--purple));
  box-shadow: 0 0 8px var(--c, var(--purple));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.bar-fill.animated { width: var(--target, 0%); }

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — Programmes
═══════════════════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}
.program-card {
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.program-card.large { grid-column: span 1; }
.program-icon { font-size: 1.6rem; flex-shrink: 0; }
.program-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.program-info p { font-size: 0.75rem; color: var(--text-muted); }
.program-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(124,58,237,0.2);
  border-radius: 99px;
  font-size: 0.65rem;
  color: var(--purple-light);
}
.programs-see-more {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — Disciplines (stack)
═══════════════════════════════════════════════════════════ */
.discipline-stack-wrap { position: relative; }
.discipline-stack {
  position: relative;
  height: 340px;
}
.disc-card {
  position: absolute;
  left: 0; right: 0;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s;
  overflow: hidden;
}
.disc-card[data-index="0"] { top: 0;   z-index: 5; transform: translateY(0)   scale(1);    opacity: 1; }
.disc-card[data-index="1"] { top: 16px; z-index: 4; transform: translateY(0)   scale(0.97); opacity: 0.85; }
.disc-card[data-index="2"] { top: 32px; z-index: 3; transform: translateY(0)   scale(0.94); opacity: 0.7; }
.disc-card[data-index="3"] { top: 48px; z-index: 2; transform: translateY(0)   scale(0.91); opacity: 0.5; }
.disc-card[data-index="4"] { top: 64px; z-index: 1; transform: translateY(0)   scale(0.88); opacity: 0.3; }
.disc-icon { font-size: 2rem; }
.disc-info h3 { font-size: 1rem; font-weight: 600; }
.disc-info p  { font-size: 0.8rem; color: var(--text-muted); }
.disc-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--glow-m) 0%, transparent 70%);
  pointer-events: none;
}
.stack-scroll-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — Nutrition
═══════════════════════════════════════════════════════════ */
.nutrition-cards { display: flex; flex-direction: column; gap: 18px; }
.nutrition-card { padding: 22px; }
.nutrition-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.nut-icon { font-size: 1.4rem; }
.nutrition-header h3 { font-size: 0.95rem; font-weight: 600; }
.nutrition-macros {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.macro { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-muted); }
.macro-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--c, var(--purple)) var(--pct, 50%), rgba(255,255,255,0.06) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.macro-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--bg2);
  border-radius: 50%;
}
.kcal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.kcal-val { font-size: 1.1rem; font-weight: 700; color: var(--orange); }
.kcal-val small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }

.metabolic-table { font-size: 0.78rem; }
.mt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.header-row { color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.total-row { font-weight: 700; color: var(--purple-light); border-bottom: none; padding-top: 10px; }

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — Encyclopédie
═══════════════════════════════════════════════════════════ */
.encyclo-cards { display: flex; flex-direction: column; gap: 18px; }
.encyclo-card { padding: 24px; }
.encyclo-icon { font-size: 2rem; margin-bottom: 10px; }
.encyclo-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.encyclo-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.encyclo-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.encyclo-tags span {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — Leaderboard
═══════════════════════════════════════════════════════════ */
.leaderboard-wrap { position: relative; }
.leaderboard { padding: 28px 28px 24px; }
.lb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap; gap: 10px;
}
.lb-header h3 { font-size: 0.95rem; font-weight: 600; }
.lb-filters { display: flex; gap: 6px; }
.lb-filter {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.lb-filter.active, .lb-filter:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple);
  color: var(--text);
}

.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 0;
}
.podium-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; max-width: 110px;
}
.podium-crown { font-size: 1.2rem; }
.podium-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.p1 .podium-avatar { width: 52px; height: 52px; font-size: 1.1rem; box-shadow: 0 0 24px var(--glow-p); }
.podium-name { font-size: 0.72rem; font-weight: 600; text-align: center; }
.podium-score { font-size: 0.8rem; color: var(--purple-light); font-weight: 700; }
.podium-rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.p1 .podium-rank { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.p2 .podium-rank { background: rgba(192,192,192,0.3); color: #ccc; }
.p3 .podium-rank { background: rgba(205,127,50,0.3);  color: #cd7f32; }

.lb-rows { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  transition: background var(--transition);
}
.lb-row:hover { background: rgba(124,58,237,0.06); }
.lb-me { border-color: var(--purple) !important; background: rgba(124,58,237,0.08) !important; }
.lb-pos { width: 20px; text-align: right; color: var(--text-muted); font-size: 0.75rem; }
.lb-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.lb-name { flex: 1; font-size: 0.8rem; }
.lb-bar-mini { flex: 1; max-width: 80px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.lb-bar-mini div { height: 100%; background: linear-gradient(90deg, var(--purple), var(--magenta)); border-radius: 99px; }
.lb-pts { font-size: 0.8rem; font-weight: 700; color: var(--purple-light); }

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — Témoignages
═══════════════════════════════════════════════════════════ */
.testimonials-track {
  position: relative;
  overflow: visible;
  margin-top: 16px;
  padding-bottom: 20px;
}
.testimonials-clip {
  overflow: hidden;
  width: 100%;
}
.testimonials-inner {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
  min-width: calc(33.333% - 14px);
  padding: 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stars { color: #FFD700; font-size: 0.85rem; letter-spacing: 2px; }
.testi-quote { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.85rem; }
.testi-author span { font-size: 0.72rem; color: var(--text-muted); }
.testi-result {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  padding: 6px 12px;
  background: rgba(34,197,94,0.1);
  border-radius: 99px;
  width: fit-content;
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 20px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(124,58,237,0.2);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 10;
}
.carousel-btn:hover { background: rgba(124,58,237,0.4); box-shadow: 0 0 20px var(--glow-p); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-dots {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.carousel-dot.active { background: var(--purple); transform: scale(1.4); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#siteFooter {
  background: #020209;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-top {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.brand-col {}
/* Footer logo — même image 2000×2000px
   Affichée à 310px → scale 0.155
   left = -(327×0.155) = -51px
   top  = -(860×0.155 - 8px marge) = -125px
   clip-w = 1325×0.155 = 205px  |  clip-h = 262×0.155 + 8 = 49px
*/
.footer-logo-wrap {
  width: 205px;
  height: 49px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.footer-logo {
  position: absolute;
  width: 310px;
  max-width: none;
  top: -125px;
  left: -51px;
  mix-blend-mode: screen;
}
.footer-col-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links-list li { margin-bottom: 10px; }
.footer-links-list a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links-list a:hover { color: var(--text); }
.see-more-link { color: var(--purple-light) !important; }

.footer-social-list { display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted);
  transition: color var(--transition);
}
.social-link:hover { color: var(--text); }
.social-icon { font-size: 0.9rem; }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS SCROLL-REVEAL
═══════════════════════════════════════════════════════════ */
.reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-up    { transform: translateY(32px); }

.reveal-left.visible, .reveal-right.visible, .reveal-up.visible {
  opacity: 1;
  transform: translate(0);
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════════════ */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes scanline {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* Ligne scanline déco */
.glass-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
  top: -2px;
  animation: scanline 4s linear infinite;
  pointer-events: none;
  border-radius: 0;
}
.glass-card { position: relative; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .section-inner { gap: 40px; padding: 0 32px; min-height: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(5,5,15,0.98);
    padding: 32px 24px;
    overflow-y: auto;
    gap: 8px;
  }
  .main-nav.open .nav-link { font-size: 1rem; padding: 12px 0; }
  .main-nav.open .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 16px;
  }
  .burger { display: flex; }
  .section-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }
  .section-inner.reverse { direction: ltr; }
  .athlete-body-wrap { grid-template-columns: 1fr; }
  .avatar-center { order: -1; }
  .testimonial-card { min-width: calc(100% - 0px); }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .program-card.large { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 32px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; text-align: center; }
  /* Mobile — logo à scale 295/1082 = 0.2727
     Zone texte : x≈43-253, y≈126-170
     Cube : left=157, top=9
  */
  /* Mobile logo — image 2000×2000px affichée à 317px → scale 0.1585
     left=-(327×0.1585)=-52px  top=-(860×0.1585-14)=-122px
     clip-w=1325×0.1585=210px  clip-h=262×0.1585+14=56px
     cube: i centre x=1197 → 1197×0.1585-52=138px → left=138-6=132px */
  .logo-clip { width: 210px; height: 56px; }
  .logo-img { width: 317px; max-width: none; top: -122px; left: -52px; }
  .pixel-cube-wrap { left: 154px; top: 8px; }
  .logo-tagline { width: 210px; }
  .ltag-line { font-size: 0.56rem; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 44px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Grille déco en fond */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 75%);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(124,58,237,0.15) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 12% 78%, rgba(236,72,153,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 88% 18%, rgba(6,182,212,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.btn-large        { padding: 16px 38px; font-size: 0.95rem; }
.btn-outline-large { padding: 15px 32px; font-size: 0.9rem; }

/* Barre de statistiques */
.hero-stats {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 40px;
}
.hero-stat-sep {
  width: 1px;
  height: 38px;
  background: var(--border);
  flex-shrink: 0;
}
.hstat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 10%, var(--purple-light) 55%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hstat-unit { font-size: 55%; vertical-align: super; }
.hstat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Flèche scroll animée */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--text-muted);
  opacity: 0.35;
  animation: heroBounce 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(8px);  opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════════ */
.cta-final {
  padding: 110px 48px;
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--bg2);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,58,237,0.17) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, black 15%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, black 15%, transparent 68%);
}
.cta-final-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.cta-final-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
}
.cta-final-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE COMPLÉMENTAIRE
═══════════════════════════════════════════════════════════ */

/* 1100px ─ hero stats un peu plus serrées */
@media (max-width: 1100px) {
  .hero-stat { padding: 0 22px; }
}

/* 900px ─ correction wide-left + athlete-layout + nouvelles sections */
@media (max-width: 900px) {
  /* S1 en colonne sur mobile */
  .s1-inner { padding: 0 20px; gap: 20px; }
  .s1-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .s1-title { white-space: normal; font-size: 1.6rem; }
  .s1-body { grid-template-columns: 1fr; gap: 20px; }

  /* Athlete card : avatar passe en premier, layout en 1 colonne */
  .athlete-layout { grid-template-columns: 1fr; gap: 16px; }
  .athlete-center { order: -1; max-width: 230px; margin: 0 auto; }

  /* Hero */
  .hero-section { padding: 44px 24px 36px; min-height: auto; }
  .hero-stat    { padding: 0 16px; }

  /* CTA final */
  .cta-final { padding: 80px 24px; }
}

/* 720px ─ hero stats en grille 2×2 */
@media (max-width: 720px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
  }
  .hero-stat {
    width: 50%;
    padding: 20px 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:nth-child(4),
  .hero-stat:nth-child(7) { border-right: none; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .hero-stat-sep { display: none; }
}

/* 640px ─ petits ajustements */
@media (max-width: 640px) {
  .hero-section { padding: 48px 20px 44px; }
  .hstat-num { font-size: 2rem; }
  .cta-final { padding: 64px 20px; }
  .cta-final-title { letter-spacing: -0.015em; }
}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(124,58,237,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
}
.theme-toggle:hover { background: rgba(124,58,237,0.2); box-shadow: 0 0 14px var(--glow-p); }
.theme-toggle-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset -4px -2px 0 2px var(--bg);
  transition: all 0.4s;
}
html.light .theme-toggle-icon {
  background: #f97316;
  box-shadow: 0 0 0 2px #f97316, inset 0 0 0 8px #fef3c7;
}

/* ═══════════════════════════════════════════════════════════
   HEADER — profile dropdown separator + auth links
═══════════════════════════════════════════════════════════ */
.dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}
.dropdown-auth { color: var(--purple-light) !important; font-weight: 500; }
.dropdown-auth--out { color: var(--text-muted) !important; font-size: 0.78rem !important; }

/* ═══════════════════════════════════════════════════════════
   HERO — infini stat
═══════════════════════════════════════════════════════════ */
.hstat-inf { font-size: 2.4rem; line-height: 0.9; }

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — athlete card title + improvements
═══════════════════════════════════════════════════════════ */
.athlete-card-title {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.athlete-card-title h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.improvements-block {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(124,58,237,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.improvements-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--magenta);
  margin-bottom: 8px;
}
.improvement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  padding: 3px 0;
}
.imp-name { color: var(--text-muted); }
.imp-val { font-weight: 700; font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — Programme featured + icon-letter
═══════════════════════════════════════════════════════════ */
.program-featured {
  grid-column: span 2;
  border-color: var(--border-hover) !important;
  background: rgba(124,58,237,0.06) !important;
  flex-direction: column;
  gap: 10px;
}
.program-featured .program-info h3 { font-size: 1.05rem; }
.program-featured .program-info p { font-size: 0.82rem; max-width: 380px; }
.program-icon-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  border: 1px solid var(--border-hover);
  padding: 3px 10px;
  border-radius: 99px;
  width: fit-content;
}
.featured-badge { color: var(--cyan); border-color: var(--cyan); }
.program-icon-letter {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(var(--lc, 124,58,237), 0.15);
  border: 1px solid rgba(var(--lc, 124,58,237), 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
  color: var(--lc, var(--purple));
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — Discipline arrows + disc-letter
═══════════════════════════════════════════════════════════ */
.disc-letter {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  color: var(--dc, var(--purple-light));
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.disc-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  position: relative;
  z-index: 20;
}
.disc-arrow-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  line-height: 1;
}
.disc-arrow-btn:hover { background: rgba(124,58,237,0.35); box-shadow: 0 0 16px var(--glow-p); }
.disc-counter { font-size: 0.78rem; color: var(--text-muted); min-width: 40px; text-align: center; }

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — BMR Metabolic Calculation
═══════════════════════════════════════════════════════════ */
.bmr-profile { margin-bottom: 14px; }
.bmr-profile-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}
.bmr-methods {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bmr-method { padding: 0 12px; }
.bmr-method-name {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 4px;
  font-weight: 600;
}
.bmr-formula { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 6px; font-family: monospace; }
.bmr-result { font-size: 0.85rem; }
.bmr-result strong { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.bmr-result small { color: var(--text-muted); font-size: 0.7rem; }
.bmr-sep { width: 1px; height: 60px; background: var(--border); }
.bmr-tdee-row, .bmr-goal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: 0.8rem;
}
.bmr-goal-row { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; }
.goal-val { color: var(--cyan) !important; }
.macro small { font-size: 0.65rem; color: var(--purple-light); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — Encyclopédie exercise preview
═══════════════════════════════════════════════════════════ */
.encyclo-featured { padding: 20px; }
.exercice-preview { margin-bottom: 14px; }
.ex-muscles { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ex-muscle-tag {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.65rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.ex-muscle-tag.primary {
  background: rgba(124,58,237,0.15);
  border-color: var(--purple);
  color: var(--purple-light);
}
.ex-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ex-header h3 { font-size: 1rem; font-weight: 600; }
.ex-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.ex-count {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.ex-count sup { font-size: 0.8rem; vertical-align: super; }
.ex-tip { font-size: 0.78rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — Carousel arrows bigger
═══════════════════════════════════════════════════════════ */
.carousel-btn { width: 52px; height: 52px; font-size: 1.8rem; }
.carousel-btn.prev { left: -26px; }
.carousel-btn.next { right: -26px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — Full logo v1 + social icons
═══════════════════════════════════════════════════════════ */
.footer-logo-v1-wrap {
  margin-bottom: 16px;
  width: 200px;
  height: 20px;      /* même hauteur de ligne que footer-col-title */
  overflow: hidden;
  position: relative;
}
.footer-logo-v1 {
  position: absolute;
  width: 200px;
  height: auto;
  top: -32px;        /* ajuste ce offset pour aligner le texte */
  left: 0;
  mix-blend-mode: screen;
}
.light-logo { display: none; }
.dark-logo { display: block; }

.social-icon-svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
/* Social icons: colored icon, muted text */
.social-link { color: var(--text-muted); transition: color var(--transition), transform var(--transition); }
.social-link:hover { color: var(--text); transform: translateX(3px); }
.social-instagram .social-icon-svg { color: #e1306c; }
.social-facebook  .social-icon-svg { color: #1877f2; }
.social-youtube   .social-icon-svg { color: #ff0000; }
.social-tiktok    .social-icon-svg { color: var(--text-muted); }

/* CTA final inner wrapper (needed for new flex+center display) */
.cta-final-inner { width: 100%; }

/* Footer rise-up animation */
#siteFooter {
  transform: translateY(60px);
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
#siteFooter.footer-visible { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   SECTION 8 — CTA Final (section dédiée)
═══════════════════════════════════════════════════════════ */
.s8-cta {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
#s8::before {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,58,237,0.14) 0%, transparent 65%);
}

/* S7 CTA intégré (legacy — conservé au cas où) */
.s7-cta {
  margin-top: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  padding: 36px 48px;
}
.s7-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: var(--radius);
}

/* Light mode disc-card contrast */
html.light .disc-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(249,115,22,0.2);
}
html.light .disc-info h3 { color: var(--text); }
html.light .disc-info p  { color: var(--text-muted); }
