/* KiwiMoov — vitrine (v2), charte alignée produit */
:root {
  --primary: #215a38;
  --primary-light: #2e8f57;
  --primary-soft: #ddefe3;
  --secondary: #8a5a36;
  --secondary-soft: #f1e6dd;
  --accent: #111111;

  --bg: #fcfcf8;
  --bg-alt: #f4f4f0;
  --surface: #ffffff;
  --surface-tinted: #edfaf2;

  --text-strong: #111111;
  --text-main: #2c3a32;
  --text-muted: #6b7d72;
  --text-faint: #9aada2;
  --text-on-dark: rgba(255, 255, 255, 0.9);
  --text-on-dark-muted: rgba(255, 255, 255, 0.55);

  --border: rgba(33, 90, 56, 0.1);
  --border-md: rgba(33, 90, 56, 0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(33, 90, 56, 0.07);
  --shadow-md: 0 4px 20px rgba(33, 90, 56, 0.09);

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;

  --font: "Sora", system-ui, sans-serif;
  --max: 880px;
  --nav-h: 58px;
  --scroll-offset: calc(var(--nav-h) + 16px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  z-index: 200;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  min-height: var(--nav-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.nav-inner > nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  margin-left: auto;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links .btn-nav {
  font-size: 13px;
  font-weight: 500;
  color: var(--surface) !important;
  background: var(--primary);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background 0.15s;
  box-shadow: var(--shadow-sm);
}

.nav-links .btn-nav:hover {
  background: var(--primary-light) !important;
  color: var(--surface) !important;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

main > section {
  padding: var(--sp-8) 0;
}

main > section + section {
  border-top: 0.5px solid var(--border);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.overline-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}

/* ── HERO ── */
#hero {
  padding: 80px 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 143, 87, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

#hero h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0 0 var(--sp-2);
}

#hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 0 var(--sp-4);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.btn-primary {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--surface);
  background: var(--primary);
  border: none;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.12s, box-shadow 0.12s;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--surface);
}

.btn-ghost {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.btn-ghost:hover {
  color: var(--text-main);
}

.hero-note {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 400;
  margin: 0;
}

/* ── SECTION TITLES ── */
/* :not(#eleves) pour ne pas écraser le h2 de la carte verte (.student-strip) */
section:not(#hero):not(#eleves) h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 var(--sp-2);
}

.section-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin: 0;
}

/* ── PROBLÈME ── */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: start;
  margin-top: var(--sp-4);
}

.problem-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.problem-body p {
  margin: 0;
}

.problem-body p + p {
  margin-top: var(--sp-2);
}

.stat-card-hero {
  background: var(--surface-tinted);
  border: 0.5px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.stat-card-hero .overline {
  margin-bottom: var(--sp-2);
}

.stat-big {
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-1);
}

.stat-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.stat-source {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-faint);
  margin-top: var(--sp-2);
}

/* Carte Ebbinghaus : contraste renforcé sur fond vert très pâle */
.stat-card-hero .stat-big {
  color: var(--primary-light);
}

.stat-card-hero .stat-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-main);
}

.stat-card-hero .stat-source {
  color: var(--text-muted);
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 6px;
  line-height: 1.35;
}

.card p {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── ÉLÈVES ── */
#eleves {
  border-top: none;
  padding: var(--sp-3) 0;
}

.student-strip {
  background: var(--primary);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  box-shadow: var(--shadow-md);
}

.student-strip .overline {
  color: rgba(255, 255, 255, 0.72);
}

.student-strip .overline-dot {
  background: rgba(255, 255, 255, 0.55);
}

.student-strip h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f7fbf8;
  margin: 0 0 8px;
}

.student-strip p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}

.student-strip-actions {
  margin-top: var(--sp-3);
}

.btn-student-download {
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: #f7fbf8;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-student-download:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.btn-student-download:focus-visible {
  outline: 2px solid #f7fbf8;
  outline-offset: 3px;
}

.pill {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── PREUVE ── */
.proof-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: start;
  margin-top: var(--sp-4);
}

.stats-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-row {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
  min-width: 90px;
}

.stat-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

.proof-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.proof-text p {
  margin: 0;
}

.proof-text p + p {
  margin-top: var(--sp-2);
}

.partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-3);
}

.partner-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r-pill);
  padding: 5px 14px;
}

/* ── CTA CONTACT ── */
#contact {
  padding: var(--sp-8) 0;
}

.cta-block {
  max-width: 480px;
}

.cta-block h2 {
  margin-bottom: 10px;
}

.cta-block .section-intro {
  margin-bottom: var(--sp-3);
}

.cta-note {
  margin-top: var(--sp-2);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-faint);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: var(--sp-3) 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-faint);
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--text-main);
}

.footer-links {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-inner > nav {
    flex: 1 1 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--sp-3);
    background: rgba(252, 252, 248, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 0.5px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .nav-links .btn-nav {
    margin-top: var(--sp-2);
    text-align: center;
    display: block;
    padding: 12px 18px;
  }
}

@media (max-width: 720px) {
  .problem-layout,
  .cards-grid,
  .proof-layout {
    grid-template-columns: 1fr;
  }

  .student-strip {
    grid-template-columns: 1fr;
  }

  #hero h1 {
    font-size: 32px;
  }

  .stat-big {
    font-size: 36px;
  }
}
