/* PromptPME — Styles communs
   Charte cohérente avec deck v2 (slide_v2-*) et guide PDF */

:root {
  --navy: #0E1B33;
  --navy-deep: #08111F;
  --paper: #F6F4EE;
  --surface: #FBFAF6;
  --gold: #C9A24B;
  --gold-soft: #E6D6A8;
  --gold-deep: #9C7A2C;
  --ink: #1A1F2E;
  --muted: #6B7280;
  --border: #D8D3C4;
  --white: #FFFFFF;
  --success: #2F855A;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.04), 0 1px 3px rgba(14, 27, 51, 0.06);
  --shadow: 0 4px 12px rgba(14, 27, 51, 0.06), 0 2px 4px rgba(14, 27, 51, 0.04);
  --shadow-lg: 0 16px 40px rgba(14, 27, 51, 0.10), 0 4px 8px rgba(14, 27, 51, 0.05);

  --container: 1200px;
  --container-narrow: 960px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 3px;
  background: var(--gold);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(246, 244, 238, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}
.logo .word-prompt { color: var(--navy); }
.logo .word-pme { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-deep); }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-deep);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-ghost { color: var(--navy); padding: 11px 14px; }
.btn-ghost:hover { color: var(--gold-deep); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 24px;
  width: 50px;
  height: 3px;
  background: var(--gold);
}
.hero .kicker {
  color: var(--gold);
  margin-top: 0;
}
.hero h1 {
  color: var(--white);
  max-width: 900px;
  margin-bottom: 18px;
}
.hero .sub-en {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--gold-soft);
  margin-bottom: 32px;
}
.hero .lead {
  color: rgba(246, 244, 238, 0.82);
  max-width: 640px;
  margin-bottom: 36px;
  font-size: 1.15rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 60px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: var(--gold-soft);
  font-size: 0.9rem;
}
.hero-meta strong { color: var(--white); font-weight: 600; }

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-surface { background: var(--surface); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy .lead { color: rgba(246, 244, 238, 0.78); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grid layouts */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.card .card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.card .card-icon svg { width: 24px; height: 24px; }
.card .module-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 6px; }
.card .module-en {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.card-divider {
  width: 36px; height: 3px;
  background: var(--gold);
  margin: 14px 0 18px;
}
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.card-meta span { display: flex; align-items: center; gap: 6px; }

.bullets { list-style: none; padding: 0; margin: 0 0 18px; }
.bullets li {
  padding-left: 22px;
  position: relative;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.5;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--gold);
}

.card-price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 14px 0 18px;
}
.card-price small { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* Pillars (3 col on home) */
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.pillar .num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}
.testimonial blockquote::before { content: "« "; color: var(--gold); }
.testimonial blockquote::after { content: " »"; color: var(--gold); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-meta { line-height: 1.3; }
.testimonial-meta strong { color: var(--navy); font-size: 0.95rem; display: block; }
.testimonial-meta span { color: var(--muted); font-size: 0.85rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.price-card.featured {
  border-color: var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.price-card .plan-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.price-card .plan-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price-amount .num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--navy);
}
.price-amount .per { color: var(--muted); font-size: 0.95rem; }
.price-card .ht-note { color: var(--muted); font-size: 0.82rem; margin-bottom: 24px; }
.price-card .bullets { flex: 1; margin-bottom: 24px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .chev {
  width: 20px; height: 20px;
  transition: transform 0.2s;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 22px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 244, 238, 0.72);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 0.9rem; transition: color 0.15s; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(216, 211, 196, 0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}
.site-footer .logo .word-prompt { color: var(--white); }
.site-footer p { color: rgba(246, 244, 238, 0.6); font-size: 0.88rem; margin-top: 14px; }

/* Module detail page */
.module-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 96px;
}
.module-hero .kicker { color: var(--gold); }
.module-hero h1 { color: var(--white); }
.module-hero .sub-en {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.3rem;
  margin: 8px 0 26px;
}
.badges { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(201, 162, 75, 0.15);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--gold-soft);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 100px;
}
.badge.solid { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.video-placeholder {
  background: var(--navy-deep);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 162, 75, 0.08), transparent 70%);
}
.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.3);
  cursor: pointer;
  transition: transform 0.18s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 30px; height: 30px; fill: var(--navy); margin-left: 4px; }

.module-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
}
.accordion-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--navy);
}
.accordion-q .ch-num {
  color: var(--gold-deep);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-right: 12px;
}
.accordion-q .ch-dur { color: var(--muted); font-weight: 400; font-size: 0.88rem; margin-right: 14px; }
.accordion-item.open .accordion-q .chev { transform: rotate(180deg); }
.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0 22px;
}
.accordion-item.open .accordion-a {
  max-height: 600px;
  padding: 0 22px 20px;
}
.accordion-a ul { padding-left: 20px; margin: 0; }
.accordion-a li { margin-bottom: 6px; }

.sticky-cta {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.sticky-cta h4 { margin-bottom: 6px; }

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.form-card h3 { margin-bottom: 18px; }

.summary-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 96px;
}
.summary-card h3 { color: var(--white); margin-bottom: 18px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 211, 196, 0.15);
  font-size: 0.95rem;
}
.summary-line.total {
  border-bottom: none;
  border-top: 2px solid var(--gold);
  margin-top: 8px;
  padding-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.summary-line span:last-child { color: var(--gold-soft); }
.summary-line.total span:last-child { color: var(--gold); }

.security-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 211, 196, 0.15);
  flex-wrap: wrap;
}
.security-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(246, 244, 238, 0.7);
}
.security-row svg { width: 16px; height: 16px; }

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 96px 0;
}
.check-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.5s ease-out;
}
.check-circle svg { width: 48px; height: 48px; stroke: var(--navy); fill: none; stroke-width: 3; }
.check-circle svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.6s 0.3s ease-out forwards;
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.conf-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  max-width: 520px;
  margin: 32px auto;
}
.conf-info dt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.conf-info dd { margin: 0 0 14px; color: var(--ink); }

/* Membres dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}
.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 32px 20px;
}
.sidebar .logo .word-prompt { color: var(--white); }
.side-nav {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.side-nav li { margin-bottom: 4px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(246, 244, 238, 0.8);
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.side-nav a:hover { background: rgba(201, 162, 75, 0.08); color: var(--gold-soft); }
.side-nav a.active {
  background: rgba(201, 162, 75, 0.15);
  color: var(--gold);
  font-weight: 500;
}
.side-nav svg { width: 18px; height: 18px; }

.main {
  padding: 40px 48px;
  background: var(--paper);
}
.main h1 { font-size: 2rem; margin-bottom: 6px; }

.stats-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin: 32px 0 48px;
  align-items: center;
}
.progress-ring-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.progress-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
}
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}
.progress-ring .pct-num { font-size: 2.4rem; color: var(--navy); line-height: 1; }
.progress-ring .pct-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.stat .stat-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.module-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.module-card .progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.module-card .progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.5s ease;
}
.module-card .progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Lesson */
.lesson-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 72px);
}
.lesson-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  overflow-y: auto;
}
.lesson-side h3 { font-size: 0.92rem; margin-bottom: 18px; }
.chapter-list { list-style: none; padding: 0; margin: 0; }
.chapter-list .chap-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.chap-num {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-list { list-style: none; padding: 0 0 14px 36px; margin: 0; }
.lesson-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.lesson-list a:hover { background: rgba(201, 162, 75, 0.08); color: var(--navy); }
.lesson-list a.current { background: rgba(201, 162, 75, 0.15); color: var(--navy); font-weight: 500; }
.lesson-list .check {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.lesson-list .done .check {
  background: var(--gold);
  border-color: var(--gold);
  position: relative;
}
.lesson-list .done .check::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--navy);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.lesson-main { padding: 40px 48px; max-width: 900px; }
.lesson-main .crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.lesson-main .crumb a { color: var(--gold-deep); }

.prompt-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  margin: 32px 0;
  position: relative;
}
.prompt-box .prompt-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.prompt-box pre {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  color: rgba(246, 244, 238, 0.92);
}
.copy-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 14px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.copy-btn.copied { background: var(--gold-soft); }

.transcript {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.lesson-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Connexion */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.tab {
  flex: 1;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Legal */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 60px 0 96px;
}
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 0.92rem;
}
.legal-toc h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--ink); transition: color 0.15s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--gold-deep); }

.legal-content h2 { margin: 40px 0 16px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: var(--ink); }

/* Outils IA */
.tool-card { position: relative; }
.tool-card .badge-incl {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-incl.included { background: rgba(47, 133, 90, 0.12); color: var(--success); }
.badge-incl.pro { background: rgba(201, 162, 75, 0.15); color: var(--gold-deep); }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 56px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.compare-table thead th {
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--navy);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.check { color: var(--success); font-weight: 700; }
.compare-table td.dash { color: var(--muted); }

/* Module CTA stack */
.cta-stack { display: flex; flex-direction: column; gap: 10px; }

/* CTA strip */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip .lead { color: rgba(246, 244, 238, 0.78); margin-bottom: 28px; }

/* Activity feed */
.activity-feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 18px; height: 18px; }
.activity-meta { font-size: 0.85rem; color: var(--muted); }
.activity-meta strong { color: var(--navy); display: block; font-size: 0.93rem; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .module-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .dashboard, .lesson-layout { grid-template-columns: 1fr; }
  .sidebar, .lesson-side {
    position: relative;
    width: 100%;
  }
  .main, .lesson-main { padding: 32px 24px; }
  .stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: inline-flex; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero { padding: 64px 0 72px; }
  section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-5, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .main, .lesson-main { padding: 24px 18px; }
  .lesson-side { padding: 20px 18px; }
  .sidebar { padding: 24px 18px; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
}

/* ============================================================
   Cap AI – Demo banner & Systeme.io platform notices
   ============================================================ */
.demo-banner {
  background: #E6D6A8;
  color: #0E1B33;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(14, 27, 51, 0.08);
}
.demo-banner__text { max-width: 1000px; }
.demo-banner__text a {
  color: #0E1B33;
  text-decoration: underline;
  font-weight: 600;
}
.demo-banner__close {
  background: transparent;
  border: 1px solid rgba(14, 27, 51, 0.3);
  color: #0E1B33;
  font-size: 1rem;
  line-height: 1;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.demo-banner__close:hover { background: rgba(14, 27, 51, 0.08); }
.demo-banner.is-hidden { display: none; }

.systeme-notice {
  background: rgba(201, 162, 75, 0.08);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--ink, #0E1B33);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.systeme-notice strong { color: var(--gold-deep, #C9A24B); }
.systeme-notice .systeme-notice__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold-deep, #C9A24B);
}
