/* ═══════════════════════════════════════════════════════════════
   SCALEORIA.FR — Design System
   MOOC haut de gamme, palette bleu nuit / doré
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ────────────────────────────────────────────── */
:root {
  --primary:        #2D3A8C;
  --primary-light:  #3D4CA6;
  --primary-pale:   #ECEEFB;
  --gold:           #C4A265;
  --gold-light:     #D4B87E;
  --gold-pale:      #FAF5EB;
  --success:        #1B7A4E;
  --success-pale:   #E8F5EE;
  --danger:         #C0392B;
  --danger-pale:    #FBEAEA;
  --violet:         #6C3483;
  --violet-pale:    #F3EDF7;
  --dark:           #1A1A2E;
  --dark-deeper:    #0F0F1A;
  --text:           #1A1A2E;
  --text-light:     #5A5A72;
  --bg:             #FAFAFA;
  --bg-alt:         #F0F0F5;
  --border:         rgba(26, 26, 46, 0.1);
  --shadow:         rgba(45, 58, 140, 0.08);
  --shadow-lg:      rgba(45, 58, 140, 0.12);
  --radius:         8px;
  --radius-lg:      14px;
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --header-h:       72px;
  --sidebar-w:      300px;
  --content-max:    780px;
  --page-max:       1200px;
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
ul, ol { list-style-position: inside; }
table { border-collapse: collapse; width: 100%; }

/* ─── Typography ───────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); color: var(--dark); line-height: 1.3; }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.8rem; margin-bottom: 0.6rem; }
h4 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); }
p { margin-bottom: 1rem; }
strong { font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 1.5rem 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

/* ─── Container ────────────────────────────────────────────── */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.3s ease;
}
.site-header.is-slim .header-inner { height: 56px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 36px; width: auto; transition: height 0.3s ease; }
.site-header.is-slim .logo-img { height: 28px; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.site-header.is-slim .logo-text { font-size: 1.2rem; }
.header-nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* Mobile progress bar */
.mobile-progress-bar {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 99;
}
.mobile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 0 2px 2px 0;
  width: 0%;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR MOOC
   ═══════════════════════════════════════════════════════════════ */
.sidebar-mooc {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-mooc::-webkit-scrollbar { width: 5px; }
.sidebar-mooc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sidebar-mooc-inner { padding: 24px 16px; }
.sidebar-logo { display: none; } /* shown only when sidebar is standalone */

/* Progress */
.sidebar-progress { margin-bottom: 16px; }
.sidebar-progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.sidebar-progress-pct {
  margin-left: auto;
  color: var(--primary);
  font-weight: 700;
}
.sidebar-progress-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 3px;
}
.sidebar-progress-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Module toggle */
.sidebar-module { margin-bottom: 4px; }
.sidebar-module-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 10px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.sidebar-module-toggle:hover { background: var(--bg-alt); }
.sidebar-module-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  width: 100%;
}
.sidebar-module-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  flex: 1;
}
.sidebar-chevron {
  transition: transform 0.3s ease;
  color: var(--text-light);
}
.sidebar-module.is-open .sidebar-chevron { transform: rotate(180deg); }

/* Sections */
.sidebar-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.sidebar-section:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.sidebar-section.is-current {
  background: var(--primary-pale);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-section.is-done { color: var(--text-light); }

/* Status dots */
.sidebar-section-status {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-size: 0;
}
.sidebar-section-status.is-done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.sidebar-section-status.is-current-dot {
  border-color: var(--primary);
  background: var(--primary-pale);
}
.sidebar-section-status.is-current-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.sidebar-section-num {
  font-size: 0.78rem;
  font-weight: 500;
  min-width: 24px;
  color: inherit;
}
.sidebar-section-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quiz lock (désactivé — quiz toujours accessibles) */
/*
.sidebar-quiz.is-locked {
  opacity: 0.5;
  pointer-events: none;
}
*/
.sidebar-quiz-lock { border: none; }
.sidebar-quiz-lock.is-locked { color: var(--text-light); }
.sidebar-quiz-lock.is-unlocked { color: var(--success); border: none; }

/* Advanced */
.sidebar-advanced-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.sidebar-advanced {
  border-left: 2px solid var(--gold-pale);
  margin-left: 22px;
}

/* Tools link */
.sidebar-tools-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.sidebar-tools-link:hover { background: var(--gold-pale); color: var(--gold); }

/* Author */
.sidebar-author { padding: 4px 0; }
.sidebar-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-light);
}
.sidebar-author-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.sidebar-author-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}
.sidebar-author-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}

/* Mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 49;
}
.sidebar-overlay.is-visible { display: block; }
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 48;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow-lg);
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}
.sidebar-mobile-toggle:hover { transform: translateY(-2px); }

/* Icon helpers */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════
   FORMATION LAYOUT (sidebar + content)
   ═══════════════════════════════════════════════════════════════ */
.formation-layout {
  margin-top: var(--header-h);
  margin-left: var(--sidebar-w);
  min-height: calc(100vh - var(--header-h));
}
.formation-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ─── Section header ───────────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.section-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-module-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ─── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  margin-bottom: 24px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-light);
}
.breadcrumb li::after {
  content: '/';
  margin-left: 6px;
  color: var(--border);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   ARTICLE BODY (formation content styling)
   ═══════════════════════════════════════════════════════════════ */
.article-body h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-of-type { border-top: none; padding-top: 0; }
.article-body p { line-height: 1.9; }
.article-body ul, .article-body ol {
  margin-bottom: 1rem;
  padding-left: 0;
}
.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
}
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(45, 58, 140, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover {
  text-decoration-color: var(--primary);
}

/* ─── Tables ───────────────────────────────────────────────── */
.article-body table {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.article-body thead {
  background: var(--dark);
  color: #fff;
}
.article-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:nth-child(even) { background: var(--bg-alt); }
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   ENCADRÉS SPÉCIAUX (info boxes)
   ═══════════════════════════════════════════════════════════════ */
.info-box {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin: 1.8rem 0;
  border-left: 5px solid;
  position: relative;
}
.info-box h3, .info-box h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box p { font-size: 0.95rem; line-height: 1.75; }
.info-box ul, .info-box ol { font-size: 0.95rem; }

/* A retenir */
.info-box-remember {
  background: var(--primary-pale);
  border-color: var(--primary);
}
.info-box-remember h3, .info-box-remember h4 { color: var(--primary); }

/* Erreur courante */
.info-box-error {
  background: var(--danger-pale);
  border-color: var(--danger);
}
.info-box-error h3, .info-box-error h4 { color: var(--danger); }

/* Exemple concret */
.info-box-example {
  background: var(--success-pale);
  border-color: var(--success);
}
.info-box-example h3, .info-box-example h4 { color: var(--success); }

/* Astuce pro */
.info-box-tip {
  background: var(--violet-pale);
  border-color: var(--violet);
}
.info-box-tip h3, .info-box-tip h4 { color: var(--violet); }

/* Outil intégré */
.info-box-tool {
  background: var(--gold-pale);
  border-color: var(--gold);
}
.info-box-tool h3, .info-box-tool h4 { color: var(--gold); }

/* CTA Services */
.cta-service {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 2.5rem 0;
  color: #fff;
  border-left: none;
}
.cta-service h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.cta-service p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.cta-service .btn {
  margin-top: 12px;
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.cta-service .btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #fff;
}
.cta-service a:not(.btn) { color: var(--gold); }
.cta-service .btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════════════════
   OUTILS INTERACTIFS (classes communes)
   ═══════════════════════════════════════════════════════════════ */
.tool-label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tool-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
}
.tool-input:focus { outline: none; border-color: var(--primary); }
select.tool-input { cursor: pointer; }
.tool-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-choice {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-choice:hover { border-color: var(--primary); background: var(--primary-pale); }
.tool-choice.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.tool-nav { display: flex; gap: 12px; margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION PREV/NEXT + "J'AI COMPRIS"
   ═══════════════════════════════════════════════════════════════ */
.section-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.mark-done-wrapper {
  text-align: center;
  margin-bottom: 24px;
}
.mark-done-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mark-done-btn:hover {
  background: #1a8f55;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 122, 78, 0.25);
}
.mark-done-btn.is-already-done { background: var(--text-light); }
.mark-done-btn.is-done-animate {
  background: var(--success);
  animation: markDonePulse 0.5s ease;
}
@keyframes markDonePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.nav-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.nav-prev-next a {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.2s;
  max-width: 48%;
  text-decoration: none;
}
.nav-prev-next a:hover {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
}
.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.nav-title { font-weight: 500; }
.nav-next { text-align: right; margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(165deg, var(--dark-deeper) 0%, var(--dark) 40%, var(--primary) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--gold);
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust band */
.trust-band {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.trust-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.trust-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Sections homepage */
.home-section {
  padding: 80px 24px;
}
.home-section:nth-child(even) { background: var(--bg-alt); }
.home-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.home-section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.home-section-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Module timeline */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
}
.timeline-dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 4px 12px var(--shadow);
}
.timeline-card {
  flex: 1;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}
.timeline-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow);
}
.timeline-card h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}
.timeline-sections {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.tool-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}
.tool-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-pale);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tool-card h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.tool-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Transparency section */
.transparency {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.transparency p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.transparency blockquote {
  text-align: left;
  font-size: 1rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(165deg, var(--dark-deeper) 0%, var(--dark) 60%, var(--primary) 100%);
  color: #fff;
}
.final-cta h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.final-cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}
/* Sur les pages formation, le footer se décale avec la sidebar */
.page-formation .site-footer {
  margin-left: var(--sidebar-w);
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-newsletter-text {
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.footer-newsletter {
  display: flex;
  gap: 8px;
}
.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.footer-newsletter input::placeholder { color: rgba(255, 255, 255, 0.35); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a { color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════ */
.error-404 {
  padding: 80px 20px;
  text-align: center;
}
.error-404-inner {
  max-width: 560px;
  margin: 0 auto;
}
.error-code {
  display: block;
  font-size: 6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404 h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.error-404 p {
  color: var(--text-light);
  margin-bottom: 32px;
}
.error-suggestions {
  margin-top: 48px;
}
.error-suggestions h2 {
  font-size: 1rem;
  color: var(--text-light);
  border: none;
  padding: 0;
}
.error-suggestions ul { list-style: none; }
.error-suggestions li { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar-mooc {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    top: 0;
    width: 280px;
  }
  .sidebar-mooc.is-open { transform: translateX(0); }
  .sidebar-mooc .sidebar-logo { display: block; margin-bottom: 16px; }
  .sidebar-mobile-toggle { display: flex; }
  .formation-layout { margin-left: 0; }
  .page-formation .site-footer { margin-left: 0; }
  .mobile-progress-bar { display: block; }
  body.sidebar-open { overflow: hidden; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .trust-inner { gap: 20px; }
  .trust-item { font-size: 0.82rem; }
  .trust-number { font-size: 1.2rem; }
  .home-section { padding: 48px 20px; }
  .home-section-header h2 { font-size: 1.6rem; }
  .timeline::before { left: 20px; }
  .timeline-dot { width: 40px; height: 40px; font-size: 0.9rem; }
  .formation-content { padding: 32px 20px 60px; }
  .section-title { font-size: 1.6rem; }
  .nav-prev-next { flex-direction: column; }
  .nav-prev-next a { max-width: 100%; }
  .info-box { padding: 16px 18px; }
  .article-body table { font-size: 0.85rem; }
  .article-body th, .article-body td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }
  .tools-grid { grid-template-columns: 1fr; }
}
