/* ==========================================================================
   Formation Intelligence Émotionnelle — Design system
   YOAT Lab × Cabinet PEDETTI · 2026
   Charte : ivoire / terre / sage / gold — Fraunces, Manrope, JetBrains Mono
   ========================================================================== */

:root {
  --ivoire: #FAF5EA;
  --ivoire-2: #F5EFE0;
  --ivoire-3: #EDE5D2;
  --encre: #1A1916;
  --encre-soft: #2E2B26;
  --encre-mute: #6F6A60;
  --terre: #A8472A;
  --terre-soft: #C25D3F;
  --terre-glow: rgba(168, 71, 42, 0.08);
  --sage: #4D6053;
  --sage-soft: #6F8275;
  --sage-glow: rgba(77, 96, 83, 0.07);
  --gold: #B68B3D;
  --gold-soft: #D4A85C;
  --gold-glow: rgba(182, 139, 61, 0.12);
  --rule: rgba(26, 25, 22, 0.12);
  --rule-strong: rgba(26, 25, 22, 0.24);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--terre); color: var(--ivoire); }

/* === Top bar === */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivoire);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.02em; color: var(--encre); text-decoration: none;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.wordmark em {
  font-style: italic; color: var(--terre);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.wordmark-sub {
  display: block;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--encre-mute); margin-top: 2px;
}
.topbar-meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--encre-mute); text-align: right; line-height: 1.4;
}
.topbar-meta strong { color: var(--encre); font-weight: 500; }
.topbar-nav { display: flex; gap: 22px; align-items: center; }
.topbar-nav a {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--encre-soft); text-decoration: none; transition: color .15s;
}
.topbar-nav a:hover { color: var(--terre); }

/* === Layout leçon === */
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 32px 120px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
  column-gap: 32px;
  flex: 1; width: 100%;
}
.content { grid-column: 2; }
.rail-left { grid-column: 1; position: relative; }
.rail-right { grid-column: 3; position: relative; }
.rail-left::before {
  content: ""; position: absolute;
  top: 0; right: 16px; width: 1px; height: 240px;
  background: linear-gradient(to bottom, transparent, var(--rule-strong) 30%, var(--rule-strong) 70%, transparent);
}

/* === Hero leçon === */
.hero { position: relative; margin-bottom: 56px; }
.hero-badge {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--terre); margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.hero-badge::before { content: ""; width: 28px; height: 1px; background: var(--terre); }
.hero-numeral {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(120px, 20vw, 200px);
  line-height: 0.85; letter-spacing: -0.06em; color: var(--encre);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  margin-bottom: -8px; user-select: none;
}
.hero-numeral em {
  font-style: italic; color: var(--terre);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--encre);
  margin: 8px 0 24px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  max-width: 20ch;
}
.hero-title em { font-style: italic; color: var(--terre); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--encre-mute); padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta strong { color: var(--encre); font-weight: 500; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--terre); display: inline-block; }

/* === Objectifs (Ce que vous allez apprendre) === */
.objectifs {
  background: var(--ivoire-2);
  border-left: 3px solid var(--terre);
  padding: 26px 32px; margin: 40px 0 48px;
}
.objectifs-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--terre); display: block; margin-bottom: 16px;
}
.objectifs ul { list-style: none; }
.objectifs li {
  font-family: var(--font-display); font-size: 18px; line-height: 1.4;
  color: var(--encre); padding: 7px 0 7px 26px; position: relative;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.objectifs li::before {
  content: "→"; position: absolute; left: 0; color: var(--terre); font-weight: 500;
}

/* === Comprendre simplement === */
.simple {
  background: var(--sage-glow);
  border: 1px solid rgba(77, 96, 83, 0.22);
  padding: 26px 30px; margin: 32px 0;
  border-radius: 4px;
}
.simple-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--sage); display: block; margin-bottom: 10px;
}
.simple p { color: var(--encre-soft); margin-bottom: 0.6em; }
.simple p:last-child { margin-bottom: 0; }
.simple strong { color: var(--encre); }

/* === Sections === */
section { margin: 48px 0; }
section + section { margin-top: 56px; }
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.section-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--terre); letter-spacing: 0.06em; white-space: nowrap;
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 23px; letter-spacing: -0.015em; color: var(--encre);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* === Prose === */
.prose p { margin-bottom: 1.2em; color: var(--encre-soft); }
.prose strong { color: var(--encre); font-weight: 600; }
.prose em { font-style: italic; }
.prose h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  letter-spacing: -0.01em; color: var(--encre);
  margin: 32px 0 14px;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.prose ul, .prose ol { margin: 12px 0 1.2em 24px; color: var(--encre-soft); }
.prose li { margin-bottom: 7px; }
.prose code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--ivoire-2); padding: 2px 7px;
  border-radius: 3px; color: var(--terre);
}
.dropcap p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 4.2em; font-weight: 400;
  line-height: 0.82; float: left; padding: 6px 14px 0 0;
  color: var(--terre);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

/* === En pratique === */
.pratique {
  background: var(--ivoire-2);
  border-left: 3px solid var(--sage);
  padding: 24px 30px; margin: 32px 0;
}
.pratique-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--sage); display: block; margin-bottom: 14px;
}
.pratique ul { list-style: none; }
.pratique li {
  color: var(--encre-soft); padding: 8px 0 8px 24px; position: relative;
  border-bottom: 1px dotted var(--rule);
}
.pratique li:last-child { border-bottom: none; }
.pratique li::before {
  content: "▸"; position: absolute; left: 0; color: var(--sage); font-weight: 700;
}
.pratique strong { color: var(--encre); }

/* === Callout / Nuance === */
.callout {
  background: var(--gold-glow);
  border-left: 3px solid var(--gold);
  padding: 22px 28px; margin: 32px 0;
}
.callout-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.callout p { color: var(--encre-soft); margin-bottom: 0.6em; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--encre); }

/* === Citation === */
.citation {
  margin: 36px 0; padding: 8px 0 8px 28px;
  border-left: 3px solid var(--terre);
}
.citation blockquote {
  font-family: var(--font-display); font-size: 22px; line-height: 1.4;
  font-style: italic; color: var(--encre);
  font-variation-settings: "opsz" 144, "SOFT" 90;
}
.citation cite {
  display: block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 12.5px; font-style: normal;
  color: var(--encre-mute); letter-spacing: 0.02em;
}
.citation cite::before { content: "— "; }

/* === Points clés === */
.points {
  background: var(--encre); color: var(--ivoire);
  padding: 30px 34px; margin: 40px 0; border-radius: 6px;
}
.points-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold-soft); display: block; margin-bottom: 16px;
}
.points ul { list-style: none; }
.points li {
  padding: 8px 0 8px 26px; position: relative;
  color: rgba(250,245,234,0.9); line-height: 1.5;
  border-bottom: 1px solid rgba(250,245,234,0.1);
}
.points li:last-child { border-bottom: none; }
.points li::before {
  content: "★"; position: absolute; left: 0; color: var(--gold-soft); font-size: 12px; top: 11px;
}

/* === Tableau références === */
.refs { margin: 40px 0; }
.refs-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--encre); display: block; margin-bottom: 14px;
}
.refs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.refs-table thead th {
  text-align: left; font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre-mute);
  padding: 10px 14px; border-bottom: 1.5px solid var(--encre);
}
.refs-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--rule);
  color: var(--encre-soft); vertical-align: top;
}
.refs-table td:first-child { font-weight: 600; color: var(--encre); white-space: nowrap; }
.refs-table td:nth-child(2) { font-style: italic; }
.refs-table tr:last-child td { border-bottom: none; }

/* === Exercice === */
.exercice {
  background: var(--sage-glow);
  border: 1px solid rgba(77, 96, 83, 0.22);
  padding: 32px 36px; margin: 48px 0; position: relative;
}
.exercice-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--sage); display: block; margin-bottom: 14px;
}
.exercice h4 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--encre); margin-bottom: 18px; line-height: 1.3;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.01em;
}
.exercice h5 {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage); margin: 20px 0 8px;
}
.exercice p { color: var(--encre-soft); margin-bottom: 10px; }
.exercice ul, .exercice ol { margin: 8px 0 12px 22px; color: var(--encre-soft); }
.exercice li { margin-bottom: 6px; }
.exercice-input {
  width: 100%; background: var(--ivoire);
  border: 1px solid var(--rule); padding: 14px 16px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--encre); line-height: 1.5;
  resize: vertical; min-height: 120px; margin-top: 12px;
  transition: border-color 0.15s ease;
}
.exercice-input:focus { outline: none; border-color: var(--sage); }

/* === Sources / Pour aller plus loin === */
.sources { border: 1px solid var(--rule); padding: 24px 28px; margin: 40px 0; }
.sources-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--encre); display: block; margin-bottom: 14px;
}
.sources ul { list-style: none; }
.sources li {
  font-size: 14px; padding: 9px 0 9px 22px; position: relative;
  border-bottom: 1px dotted var(--rule); color: var(--encre-soft);
}
.sources li:last-child { border-bottom: none; }
.sources li::before { content: "↗"; position: absolute; left: 0; color: var(--terre); }
.sources a { color: var(--encre); border-bottom: 1px solid var(--terre); text-decoration: none; }
.sources a:hover { color: var(--terre); }

/* === Validation === */
.validation {
  margin-top: 60px; padding-top: 36px;
  border-top: 2px solid var(--encre);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.validation-text {
  font-family: var(--font-display); font-size: 18px;
  color: var(--encre); line-height: 1.4;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  max-width: 34ch;
}
.btn-validate {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--encre); color: var(--ivoire); border: none;
  padding: 16px 28px; cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; gap: 12px;
  min-width: 240px; justify-content: center;
}
.btn-validate:hover { background: var(--terre); }
.btn-validate.is-acquis { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--gold); }
.btn-validate.is-acquis:hover { background: var(--ivoire); color: var(--encre-mute); }
.btn-validate .check-mark { width: 14px; height: 14px; display: none; }
.btn-validate.is-acquis .check-mark { display: inline-block; }
.btn-validate.is-acquis .label-default { display: none; }
.btn-validate .label-acquis { display: none; }
.btn-validate.is-acquis .label-acquis { display: inline; }
.acquis-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--encre-mute);
  margin-top: 8px; width: 100%; text-align: right; display: none;
}
.acquis-meta.visible { display: block; }

/* === Nav leçons === */
.lesson-nav {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.nav-link {
  text-decoration: none; color: var(--encre);
  padding: 18px 22px; border: 1px solid var(--rule);
  transition: all 0.2s ease; display: block;
}
.nav-link:hover { border-color: var(--terre); background: var(--ivoire-2); }
.nav-link.is-disabled { opacity: 0.4; pointer-events: none; }
.nav-link .nav-direction {
  font-family: var(--font-mono); font-size: 11px; color: var(--encre-mute);
  text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 6px;
}
.nav-link .nav-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.nav-link.next { text-align: right; }

/* === Footer === */
.page-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 32px; text-align: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--encre-mute); letter-spacing: 0.04em;
}
.page-footer a { color: var(--encre-mute); text-decoration: none; border-bottom: 1px solid var(--rule); }
.page-footer a:hover { color: var(--terre); }

/* ============ INDEX / PORTAIL ============ */
main.wrap { flex: 1; max-width: 1080px; margin: 0 auto; padding: 72px 32px 64px; width: 100%; }
.page-hero { text-align: center; margin-bottom: 64px; }
.page-hero .hero-badge { justify-content: center; }
.page-hero .hero-badge::before { display: none; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--encre); margin-bottom: 20px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.page-hero h1 em { font-style: italic; color: var(--terre); }
.page-lead {
  font-size: 18px; color: var(--encre-soft); max-width: 60ch; margin: 0 auto; line-height: 1.55;
}

.module-block { margin-bottom: 48px; }
.module-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--encre);
}
.module-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--terre);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.module-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  letter-spacing: -0.015em; color: var(--encre);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.module-name em { font-style: italic; color: var(--terre); }
.module-desc { font-size: 14px; color: var(--encre-mute); margin-left: auto; max-width: 38ch; text-align: right; }

.lessons { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.lesson {
  background: var(--ivoire); display: grid;
  grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 18px;
  padding: 18px 22px; text-decoration: none; color: var(--encre);
  transition: background 0.15s ease;
}
.lesson:hover { background: var(--ivoire-2); }
.lesson-num {
  font-family: var(--font-display); font-size: 26px; font-weight: 300;
  color: var(--terre); font-variation-settings: "opsz" 144, "SOFT" 70;
}
.lesson-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 60; }
.lesson-subtitle { font-size: 13px; color: var(--encre-mute); margin-top: 2px; }
.lesson-cat {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--encre-mute);
  padding: 3px 8px; border: 1px solid var(--rule); border-radius: 3px;
}
.lesson-arrow { color: var(--terre); font-size: 18px; transition: transform 0.15s; }
.lesson:hover .lesson-arrow { transform: translateX(4px); }

/* === Mode card (portail) === */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0 auto 56px; max-width: 880px; }
.mode-card {
  background: var(--ivoire-2); border: 1px solid var(--rule); padding: 38px 34px;
  text-decoration: none; color: var(--encre); transition: all 0.2s ease;
  display: flex; flex-direction: column; gap: 16px;
}
.mode-card:hover { border-color: var(--terre); background: var(--ivoire); transform: translateY(-2px); box-shadow: 0 14px 40px -20px rgba(168,71,42,0.2); }
.mode-icon {
  width: 48px; height: 48px; background: var(--terre); color: var(--ivoire);
  display: flex; align-items: center; justify-content: center; border-radius: 12px;
  font-family: var(--font-display); font-size: 24px;
}
.mode-tag { font-family: var(--font-mono); font-size: 11px; color: var(--encre-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.mode-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 60; }
.mode-card h2 em { font-style: italic; color: var(--terre); }
.mode-card p { color: var(--encre-soft); line-height: 1.55; flex: 1; }
.mode-features { list-style: none; border-top: 1px solid var(--rule); padding-top: 16px; }
.mode-features li { font-size: 14px; color: var(--encre-soft); padding: 6px 0; display: flex; gap: 10px; }
.mode-features li::before { content: "—"; color: var(--terre); }
.mode-cta { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--terre); padding-top: 8px; }
.mode-cta::after { content: " →"; }

/* === Bannière quiz === */
.quiz-banner {
  display: block; margin: 8px auto 0; max-width: 100%;
  background: var(--encre); border-radius: 14px; padding: 32px 36px;
  text-decoration: none; color: var(--ivoire); transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.quiz-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(168,71,42,0.25), transparent 70%); pointer-events: none;
}
.quiz-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,25,22,0.18); }
.quiz-banner-inner { display: flex; align-items: center; gap: 24px; position: relative; z-index: 1; }
.quiz-banner-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--terre); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0;
}
.quiz-banner-content { flex: 1; }
.quiz-banner-label { font-size: 11px; color: var(--gold-soft); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; }
.quiz-banner-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 6px 0 8px; color: var(--ivoire); }
.quiz-banner-title em { font-style: italic; color: var(--terre-soft); }
.quiz-banner-desc { color: rgba(250,245,234,0.75); font-size: 14px; line-height: 1.55; }
.quiz-banner-arrow { font-size: 32px; color: var(--terre-soft); flex-shrink: 0; transition: transform 0.2s; }
.quiz-banner:hover .quiz-banner-arrow { transform: translateX(6px); }

/* === Info box === */
.info { max-width: 760px; margin: 48px auto 0; padding: 30px 34px; background: var(--ivoire-2); border-left: 3px solid var(--gold); }
.info-label { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 12px; display: block; }
.info p { color: var(--encre-soft); line-height: 1.55; margin-bottom: 8px; }
.info p:last-child { margin-bottom: 0; }
.info strong { color: var(--encre); }

/* === Boutons génériques === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--terre); color: var(--ivoire); border: none;
  padding: 16px 32px; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn:hover { background: var(--encre); }
.btn-ghost { background: transparent; color: var(--encre); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--terre); color: var(--terre); background: transparent; }

/* === Print === */
@media print {
  .topbar, .lesson-nav, .btn-validate, .exercice-input, #yoat-license-banner, #yoat-watermark { display: none !important; }
  body { background: white; font-size: 11pt; }
  .container { padding: 0; max-width: none; grid-template-columns: 1fr; }
  .content { grid-column: 1; }
  .rail-left, .rail-right { display: none; }
  .hero-numeral { font-size: 90px; }
  section { page-break-inside: avoid; }
  .points { background: white; color: black; border: 1px solid #999; }
  .points li, .points-label { color: black; }
}

/* === Responsive === */
@media (max-width: 920px) {
  .container { grid-template-columns: 1fr; padding: 40px 22px 80px; }
  .content { grid-column: 1; }
  .rail-left, .rail-right { display: none; }
  .lesson-nav { grid-template-columns: 1fr; }
  .nav-link.next { text-align: left; }
  .topbar-inner { padding: 12px 18px; flex-wrap: wrap; gap: 8px; }
  .topbar-meta { text-align: left; }
  .validation { flex-direction: column; align-items: flex-start; }
  .btn-validate { width: 100%; }
  .modes { grid-template-columns: 1fr; }
  .module-head { flex-direction: column; gap: 6px; }
  .module-desc { margin-left: 0; text-align: left; }
  .lesson { grid-template-columns: 44px 1fr auto; }
  .lesson-cat { display: none; }
}


/* ===== En-tête & pied commerciaux (uniformes, style site Claude) ===== */
:root{ --max-w:1140px; --vif-cyan:#00B5A8; --shadow-card:0 1px 3px rgba(26,25,22,.04),0 12px 24px rgba(26,25,22,.06); }
.site-header{border-bottom:1px solid var(--rule);padding:16px 0;position:sticky;top:0;background:rgba(250,245,234,0.95);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:60}
.site-header-inner{max-width:var(--max-w);margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.site-header .wordmark{font-family:var(--font-display);font-weight:600;font-size:22px;letter-spacing:-0.01em;color:var(--encre)}
.site-header .wordmark em{font-style:italic;color:var(--terre);font-variation-settings:"opsz" 144,"SOFT" 100}
.site-header .wordmark-sub{display:block;font-size:10.5px;color:var(--encre-mute);text-transform:uppercase;letter-spacing:0.14em;margin-top:2px;font-weight:500}
.nav-links{display:flex;gap:26px;align-items:center}
.nav-links a{color:var(--encre-soft);text-decoration:none;font-size:14px;font-weight:500}
.nav-links a:hover{color:var(--terre)}
.nav-cta{background:var(--encre);color:var(--ivoire)!important;padding:9px 18px;border-radius:100px;font-size:13.5px!important;font-weight:600!important;transition:transform .2s,box-shadow .2s}
.nav-cta:hover{background:var(--terre);transform:translateY(-1px);box-shadow:0 4px 12px rgba(168,71,42,.25)}
@media(max-width:760px){.nav-links a:not(.nav-cta){display:none}}
.site-footer{margin-top:auto;padding:48px 24px 32px;background:var(--encre);color:var(--ivoire)}
.site-footer-inner{max-width:var(--max-w);margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:48px}
.site-footer h4{color:var(--ivoire);font-size:14px;text-transform:uppercase;letter-spacing:0.12em;margin-bottom:16px;font-weight:600}
.site-footer a{color:rgba(250,245,234,0.7);text-decoration:none;font-size:14px;display:block;margin-bottom:8px}
.site-footer a:hover{color:var(--ivoire)}
.site-footer .footer-brand{font-family:var(--font-display);font-size:22px;color:var(--ivoire);margin-bottom:12px}
.site-footer .footer-brand em{color:var(--terre-soft);font-style:italic}
.site-footer .footer-credits{grid-column:1/-1;padding-top:28px;margin-top:28px;border-top:1px solid rgba(250,245,234,0.12);font-family:var(--font-mono);font-size:11px;color:rgba(250,245,234,0.5);line-height:1.6}
@media(max-width:720px){.site-footer-inner{grid-template-columns:1fr;gap:32px}}
