/* ─── STATS SECTION ─── */
.stats-section {
  background: var(--bg2);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center; padding: 20px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 900; line-height: 1;
  color: var(--text); letter-spacing: -2px;
}
.stat-num span { color: var(--red); }
.stat-lbl { font-size: 13px; color: var(--text3); margin-top: 8px; letter-spacing: 1px; font-weight: 300; }

/* ─── MANNEQUIN KPI SECTION ─── */
.mannequin-section { background: var(--bg); padding: 110px 0; overflow: hidden; }
.mannequin-header { text-align: center; margin-bottom: 80px; }
.mannequin-layout {
  display: grid; grid-template-columns: 1fr 320px 1fr;
  gap: 50px; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
}
.kpis-col { display: flex; flex-direction: column; gap: 18px; }
.kpis-col.right { align-items: flex-end; }
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px;
  min-width: 190px; max-width: 220px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  opacity: 0.5;
}
.kpi-card:hover { border-color: rgba(230,57,70,0.3); transform: translateX(-4px); box-shadow: var(--shadow); }
.kpis-col.right .kpi-card:hover { transform: translateX(4px); }
.kpis-col.right .kpi-card::before { left: auto; right: 0; }
.kpi-label {
  font-size: 10px; color: var(--text3); letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--font-display); font-size: 36px; font-weight: 900;
  color: var(--text); line-height: 1;
}
.kpi-value span { color: var(--red); }
.kpi-value small { font-size: 16px; color: var(--text3); font-weight: 400; }
.kpi-bar { margin-top: 10px; height: 3px; background: var(--border); border-radius: 10px; overflow: hidden; }
.kpi-bar-fill { height: 100%; background: var(--red); border-radius: 10px; transition: width 1.5s ease; }
.kpi-sub { font-size: 12px; color: var(--text3); margin-top: 6px; font-weight: 300; }

/* Body SVG */
.mannequin-body-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.mannequin-svg { width: 100%; height: auto; filter: drop-shadow(0 0 30px rgba(230,57,70,0.25)); }

/* ─── FEATURES OVERVIEW (Home) ─── */
.features-overview { background: var(--bg2); padding: 110px 0; }
.fo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 70px;
}
.fo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: all var(--transition); cursor: default;
}
.fo-card:hover { border-color: rgba(230,57,70,0.3); background: var(--surface); z-index: 1; }
.fo-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.fo-card:hover::after { opacity: 1; }
.fo-number {
  font-family: var(--font-display); font-size: 80px; font-weight: 900;
  color: var(--red); opacity: 0.05;
  position: absolute; top: 8px; right: 16px;
  line-height: 1; transition: opacity var(--transition);
  pointer-events: none;
}
.fo-card:hover .fo-number { opacity: 0.1; }
.fo-icon { font-size: 36px; margin-bottom: 20px; line-height: 1; }
.fo-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text); margin-bottom: 12px;
}
.fo-text { font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300; }
.fo-badge {
  display: inline-block; margin-top: 16px;
  font-size: 11px; color: var(--red); letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
}

/* ─── TESTIMONIALS ─── */
.testimonials-section { background: var(--bg); padding: 110px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px 28px;
  transition: all var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(230,57,70,0.2); }
.testi-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testi-stars span { color: var(--red); font-size: 14px; }
.testi-quote { font-size: 15px; line-height: 1.8; color: var(--text2); font-weight: 300; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 500; }
.testi-role { font-size: 12px; color: var(--text3); margin-top: 2px; }
.testi-result {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--red); text-transform: uppercase;
}

/* ─── MOTIVATION WALL ─── */
.motivation-wall { background: var(--black); padding: 0; overflow: hidden; }
.motivation-item {
  padding: 60px 0;
  border-bottom: 1px solid rgba(230,57,70,0.1);
  text-align: center;
  position: relative;
  transition: background var(--transition);
}
.motivation-item:hover { background: rgba(230,57,70,0.04); }
.motivation-item:last-child { border-bottom: none; }
.motivation-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900; text-transform: uppercase;
  color: rgba(240,237,230,0.85);
  letter-spacing: -1px; line-height: 1;
  max-width: 900px; margin: 0 auto; padding: 0 28px;
}
.motivation-text em { color: var(--red); font-style: normal; }
.motivation-author {
  font-size: 12px; color: rgba(240,237,230,0.3);
  letter-spacing: 3px; text-transform: uppercase;
  margin-top: 20px; font-weight: 300;
}

/* ─── FONCTIONNALITÉS PAGE ─── */
.fonctionnalites-section { background: var(--bg); padding: 110px 0; }
.fonct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 70px; }
.fonct-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px 40px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.fonct-card:hover { border-color: rgba(230,57,70,0.25); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fonct-card.featured { background: var(--bg2); border-color: rgba(230,57,70,0.2); }
.fonct-card-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.fonct-icon-wrap {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(230,57,70,0.12); border: 1px solid rgba(230,57,70,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.fonct-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text);
}
.fonct-subtitle { font-size: 13px; color: var(--red); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.fonct-desc { font-size: 15px; color: var(--text2); line-height: 1.8; font-weight: 300; margin-bottom: 24px; }
.fonct-features { display: flex; flex-direction: column; gap: 10px; }
.fonct-feature-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text2); font-weight: 300;
}
.fonct-feature-item::before {
  content: '→'; color: var(--red); font-weight: 700;
  flex-shrink: 0; font-size: 12px;
}
.fonct-wide { grid-column: 1 / -1; }

/* ─── À PROPOS PAGE ─── */
.apropos-section { background: var(--bg2); padding: 110px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 70px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px; text-align: center;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.team-card:hover { border-color: rgba(230,57,70,0.25); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(230,57,70,0.3), rgba(180,20,10,0.8));
  border: 2px solid rgba(230,57,70,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 900; color: #fff;
  margin: 0 auto 20px;
}
.team-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  text-transform: uppercase; color: var(--text); margin-bottom: 6px;
}
.team-role { font-size: 12px; color: var(--red); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.team-bio { font-size: 14px; color: var(--text2); line-height: 1.7; font-weight: 300; }
.team-gym {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 12px; color: var(--text3);
  background: var(--bg); padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border);
}
.team-gym::before { content: '🏋️'; font-size: 11px; }

.nakr-story {
  margin-top: 80px; padding: 60px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; text-align: center;
  position: relative; overflow: hidden;
}
.nakr-story::before {
  content: 'NAKR';
  font-family: var(--font-display); font-size: 220px; font-weight: 900;
  color: rgba(230,57,70,0.04); position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; white-space: nowrap;
}
.nakr-story p { font-size: 18px; color: var(--text2); line-height: 1.85; font-weight: 300; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.nakr-story-title {
  font-family: var(--font-display); font-size: 48px; font-weight: 900;
  text-transform: uppercase; color: var(--text);
  margin-bottom: 24px; position: relative; z-index: 1;
}
.nakr-story-title em { color: var(--red); font-style: normal; }
.school-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.2);
  color: var(--red); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  padding: 8px 20px; border-radius: 100px;
  margin-bottom: 32px; position: relative; z-index: 1;
}

/* ─── CALCULATEUR PAGE ─── */
.calculateur-section { background: var(--bg); padding: 110px 0; }
.calc-tabs {
  display: flex; gap: 2px; margin-top: 60px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 4px;
  overflow-x: auto;
}
.calc-tab {
  flex: 1; padding: 12px 20px;
  border: none; background: transparent;
  color: var(--text2); font-family: var(--font-body);
  font-size: 13px; font-weight: 500; cursor: pointer;
  border-radius: 10px; transition: all var(--transition);
  white-space: nowrap; min-width: 120px;
}
.calc-tab.active { background: var(--red); color: #fff; }
.calc-tab:hover:not(.active) { background: var(--bg2); color: var(--text); }

.calc-panel { display: none; margin-top: 40px; }
.calc-panel.active { display: block; }
.calc-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.calc-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
}
.calc-form h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  text-transform: uppercase; color: var(--text); margin-bottom: 8px;
}
.calc-form .calc-desc { font-size: 14px; color: var(--text2); margin-bottom: 30px; font-weight: 300; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 12px; color: var(--text2); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.field input, .field select {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color var(--transition); outline: none;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--red); }
.field select option { background: var(--bg2); }
.radio-group { display: flex; gap: 10px; }
.radio-btn {
  flex: 1; padding: 12px; text-align: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--text2);
  transition: all var(--transition); user-select: none;
}
.radio-btn.selected { background: rgba(230,57,70,0.12); border-color: rgba(230,57,70,0.4); color: var(--red); font-weight: 500; }
.calc-btn {
  width: 100%; margin-top: 24px;
  padding: 16px; background: var(--red); color: #fff;
  border: none; border-radius: 12px;
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all var(--transition);
}
.calc-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230,57,70,0.4); }

/* Result panel */
.calc-result {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  position: sticky; top: 90px;
  min-height: 300px;
  display: flex; flex-direction: column; gap: 20px;
}
.calc-result-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 200px; text-align: center;
}
.calc-result-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.calc-result-empty-text { font-size: 14px; color: var(--text3); font-weight: 300; }
.result-main-label { font-size: 11px; color: var(--text3); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; }
.result-main-value {
  font-family: var(--font-display); font-size: 72px; font-weight: 900;
  color: var(--red); line-height: 1; letter-spacing: -2px;
}
.result-main-unit { font-size: 22px; color: var(--text3); }
.result-category {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  text-transform: uppercase; padding: 8px 20px;
  border-radius: 8px; display: inline-block;
}
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.result-item-label { font-size: 11px; color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.result-item-value { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); }
.result-item-value span { font-size: 14px; color: var(--text3); font-weight: 400; }
.result-advice { font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300; padding: 16px; background: rgba(230,57,70,0.06); border-radius: 10px; border-left: 3px solid var(--red); }
.result-advice strong { color: var(--red); font-weight: 600; }

/* Macro bars */
.macro-bar-wrap { display: flex; flex-direction: column; gap: 14px; }
.macro-bar-item { }
.macro-bar-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.macro-bar-label { font-size: 13px; color: var(--text2); font-weight: 500; }
.macro-bar-val { font-size: 13px; color: var(--text); font-weight: 600; }
.macro-bar { height: 8px; background: var(--border); border-radius: 10px; overflow: hidden; }
.macro-bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }

/* ─── HATER BAND (marquee défilant — partagé entre toutes les pages) ─── */
.hater-band { background: var(--red); padding: 14px 0; overflow: hidden; position: relative; }
.hater-band-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hater-band-item {
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.95);
  padding: 0 36px; display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0;
}
.hater-band-item::before { content: '✦'; opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .hater-band-track { animation: none; }
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--bg);
  padding-top: 130px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── FONCTIONNALITÉS PAGE — extended styles ─── */
.fonct-number {
  font-family: var(--font-display); font-size: 90px; font-weight: 900;
  color: var(--red); opacity: 0.06;
  position: absolute; top: 12px; right: 20px;
  line-height: 1; pointer-events: none;
}
.fonct-icon { font-size: 40px; margin-bottom: 20px; line-height: 1; }
.fonct-text { font-size: 15px; color: var(--text2); line-height: 1.8; font-weight: 300; }
.fonct-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fonct-tag {
  font-size: 11px; color: var(--red); letter-spacing: 1px;
  text-transform: uppercase; font-weight: 600;
  background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.2);
  padding: 5px 12px; border-radius: 100px;
}

.features-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}

/* Aive chat bubble demo */
.fonct-chat { display: flex; flex-direction: column; gap: 14px; }
.chat-bubble {
  padding: 14px 18px; border-radius: 16px;
  font-size: 14px; line-height: 1.65; max-width: 90%;
}
.chat-bubble.aive {
  background: rgba(230,57,70,0.12); border: 1px solid rgba(230,57,70,0.2);
  color: var(--text2); border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.user {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text2); border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* ─── À PROPOS PAGE — extended styles ─── */
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; justify-content: center; }
.nakr-story-text {
  font-size: 17px; color: var(--text2); line-height: 1.85;
  font-weight: 300; max-width: 700px; margin: 0 auto;
  position: relative; z-index: 1;
}
.nakr-story-letter {
  font-family: var(--font-display); font-size: 200px; font-weight: 900;
  color: rgba(230,57,70,0.05); position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  pointer-events: none; user-select: none; line-height: 1;
  display: none;
}

/* ─── CALCULATEUR PAGE — class-based field/form overrides ─── */
.calc-form-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  text-transform: uppercase; color: var(--text); margin-bottom: 8px;
}
.calc-form-sub { font-size: 14px; color: var(--text2); margin-bottom: 30px; font-weight: 300; }
.field-label { font-size: 12px; color: var(--text2); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.field-input {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color var(--transition); outline: none;
  -webkit-appearance: none; width: 100%;
}
.field-input:focus { border-color: var(--red); }
.field-input option { background: var(--bg2); }

/* ─── ESSAYER SECTION ─── */
.essayer-section {
  background: var(--bg2); padding: 140px 0; text-align: center;
  position: relative; overflow: hidden;
}
.essayer-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(230,57,70,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.08) 0%, transparent 60%);
}
.essayer-section::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(230,57,70,0.02) 0, rgba(230,57,70,0.02) 1px, transparent 1px, transparent 50%);
  background-size: 24px 24px;
}
.essayer-inner { position: relative; z-index: 1; }
.essayer-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 900; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -3px;
  color: var(--text); margin-bottom: 30px;
}
.essayer-title em { color: var(--red); font-style: normal; }
.essayer-sub {
  font-size: 18px; color: var(--text2); font-weight: 300;
  max-width: 500px; margin: 0 auto 50px; line-height: 1.75;
}
.essayer-cta-wrap { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.essayer-note { font-size: 13px; color: var(--text3); margin-top: 24px; font-weight: 300; }
