/* ============================================
   Algo Deus — Masterclass Landing Page
   Design system: 12 sections, alternating dark/light
   Dark: #0a0a0a  Light: #f5f5f0  CTA: #FFD814
   Fonts: Space Grotesk (headings) + Inter (body)
   ============================================ */

/* --- Design tokens --- */
:root {
  --bg-dark: #0a0a0a;
  --bg-light: #f5f5f0;
  --bg-offer: #ffffff;
  --cta-yellow: #FFD814;
  --cta-hover: #FFA500;
  --yellow-text: #FFD814;
  --text-on-dark: #FFFFFF;
  --text-on-light: #0a0a0a;
  --gray-on-dark: #B0B0B0;
  --gray-on-light: #555555;
  --heading-dark: #0a0a0a;
  --heading-light: #FFFFFF;
  --border-dark: rgba(255,255,255,0.1);
  --border-light: rgba(0,0,0,0.1);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1200px;
  --content-pad: 0 24px;
  --overlay-dark: rgba(0,0,0,0.72);
  --overlay-light: rgba(245,245,240,0.82);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(10,10,10,0.85);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}
.lang-btn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-on-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.lang-btn.active { color: var(--cta-yellow); border-color: var(--cta-yellow); }

/* ============================================
   SECTIONS — base
   ============================================ */
.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.section-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--content-pad);
}

/* Background image layer */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Dark overlay */
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-dark);
}
/* Lighter overlay for mechanism section */
.section-overlay-light {
  background: var(--overlay-light);
}

/* Dark sections */
.section-dark { background: var(--bg-dark); }
.section-dark h2 { color: var(--heading-light); }
.section-dark p { color: var(--gray-on-dark); }
.section-dark .section-intro { color: var(--gray-on-dark); }

/* Light sections */
.section-light { background: var(--bg-light); }
.section-light h2 { color: var(--heading-dark); }
.section-light p { color: var(--gray-on-light); }
.section-light .section-intro { color: var(--gray-on-light); }

/* Mechanism override — text on bg image with light overlay stays dark */
.section-mechanism h2 { color: var(--heading-dark); }
.section-mechanism p { color: var(--gray-on-light); }
.section-mechanism .step-card { background: rgba(255,255,255,0.92); }
.section-mechanism .step-card h3 { color: var(--heading-dark); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-intro {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 48px;
}
.prose {
  max-width: 720px;
}
.prose p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}
.prose .author {
  margin-top: 32px;
  font-size: 16px;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--cta-yellow);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,216,20,0.3);
}
.btn-cta:active { transform: translateY(0); }
.btn-cta-large { font-size: 18px; padding: 20px 48px; }

/* ============================================
   S1 — HERO
   ============================================ */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
}
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cta-yellow);
  margin-bottom: 28px;
  padding: 8px 20px;
  border: 1px solid rgba(255,216,20,0.3);
  border-radius: 40px;
}
.hero-content h1 {
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-on-dark);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-content .btn-cta {
  margin-bottom: 60px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 700px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.stat-cell {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border-dark);
}
.stat-cell:last-child { border-right: none; }
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--cta-yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--gray-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* ============================================
   S2 — CARDS (Le coût réel)
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.card h3 {
  color: var(--heading-dark);
  font-size: 22px;
  margin-bottom: 12px;
}
.card-stat {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--cta-yellow) !important;
  margin-bottom: 12px;
  background: rgba(255,216,20,0.1);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}
.card-desc {
  font-size: 16px;
  color: var(--gray-on-light) !important;
  line-height: 1.6;
}

/* ============================================
   S3 — TWO COLUMN (Ton cerveau)
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
}
.col-text p {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-on-dark);
}
.col-text .indent {
  padding-left: 24px;
  color: var(--text-on-dark);
  font-weight: 500;
}
.col-text .highlight {
  color: var(--cta-yellow) !important;
  font-weight: 700;
  font-size: 20px;
  margin-top: 12px;
}

/* ============================================
   S5 — CHECK GRID (Pour qui)
   ============================================ */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  font-size: 17px;
  color: var(--text-on-dark);
  line-height: 1.5;
}
.check-icon { font-size: 20px; flex-shrink: 0; }
.not-for {
  font-size: 16px;
  color: var(--gray-on-dark) !important;
  padding: 20px 24px;
  border-left: 3px solid #c0392b;
  background: rgba(192,57,43,0.08);
  border-radius: 0 8px 8px 0;
}

/* ============================================
   S6 — STEPS GRID (Mécanisme)
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.step-card {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-light);
}
.step-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.step-indicators {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--cta-yellow) !important;
  margin-bottom: 12px;
  background: rgba(255,216,20,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}
.step-desc {
  font-size: 16px;
  line-height: 1.6;
}
.mechanism-note {
  text-align: center;
  font-size: 14px;
  font-style: italic;
}

/* ============================================
   S7 — PAYOUT GRID (La preuve)
   ============================================ */
.payout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.payout-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  text-align: center;
}
.payout-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--cta-yellow);
  line-height: 1;
}
.payout-platform {
  font-size: 14px;
  color: var(--gray-on-dark);
  font-weight: 500;
}
.payout-date {
  font-size: 13px;
  color: #666;
}
.payout-verified {
  font-size: 13px;
  color: #4ade80;
  font-weight: 600;
}

/* ============================================
   S8 — OFFER
   ============================================ */
.section-offer {
  background: var(--bg-offer);
}
.section-offer h2 { color: var(--heading-dark); }
.section-offer p { color: var(--gray-on-light); }

.offer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.offer-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-dark);
}
.offer-label-no { color: #c0392b; }
.offer-list {
  list-style: none;
  padding: 0;
}
.offer-list li {
  font-size: 17px;
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-on-light);
}
.offer-list li:last-child { border-bottom: none; }
.offer-list-yes li::before {
  content: '✓ ';
  color: #16a34a;
  font-weight: 700;
}
.offer-list-no li::before {
  content: '✗ ';
  color: #c0392b;
  font-weight: 700;
}
.offer-list-no li {
  color: var(--gray-on-light);
}
.offer-price {
  text-align: center;
  margin-bottom: 24px;
}
.price-big {
  display: block;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--heading-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.price-note {
  font-size: 16px;
  color: var(--gray-on-light);
}
.section-offer .btn-cta {
  display: block;
  max-width: 360px;
  margin: 0 auto;
}

/* ============================================
   S9 — OBJECTIONS
   ============================================ */
.objections-list { max-width: 800px; }
.objection-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-dark);
}
.objection-item:first-child { border-top: 1px solid var(--border-dark); }
.objection-q {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.objection-a {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-on-dark);
}

/* ============================================
   S10 — FAQ
   ============================================ */
.faq-list { max-width: 800px; }
.faq-item {
  cursor: pointer;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-q {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-dark);
  padding-right: 40px;
  position: relative;
  line-height: 1.4;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-on-light);
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-a {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-on-light);
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ============================================
   S11 — CTA FINAL
   ============================================ */
.section-cta-final {
  padding: 120px 0;
}
.cta-final-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-sub {
  font-size: 18px;
  color: var(--gray-on-dark);
  margin-bottom: 40px;
  max-width: 600px;
}
.cta-final-content .btn-cta {
  margin-bottom: 24px;
}
.cta-note {
  font-size: 14px;
  color: #666;
}

/* ============================================
   S12 — FOOTER
   ============================================ */
.section-footer {
  background: var(--bg-dark);
  padding: 40px 0;
  border-top: 1px solid var(--border-dark);
}
.section-footer p {
  font-size: 13px;
  color: var(--gray-on-dark);
  line-height: 1.7;
  margin-bottom: 8px;
  text-align: center;
}
.section-footer p:last-child { margin-bottom: 0; }

/* ============================================
   MOBILE — 768px
   ============================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }

  .section-hero { padding: 100px 0 64px; }
  .hero-content .btn-cta { margin-bottom: 40px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-bottom: 1px solid var(--border-dark); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }

  .card-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .col-spacer { display: none; }
  .check-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .payout-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-cols { grid-template-columns: 1fr; gap: 32px; }

  .price-big { font-size: 48px; }

  .section-cta-final { padding: 80px 0; }
}

/* ============================================
   MOBILE — 480px
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }

  .btn-cta { padding: 14px 28px; font-size: 15px; }
  .btn-cta-large { padding: 16px 32px; font-size: 16px; }

  .stat-value { font-size: 20px; }
  .payout-amount { font-size: 28px; }
  .payout-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .payout-card { padding: 24px 12px; }
}
