/* ═══════════════════════════════════════════
   Formation Coloriste — Design System
   Stack: 11ty + Nunjucks
   Fonts: Space Grotesk (titres) + Nunito (corps)
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Variables ── */
:root {
  --indigo: #312e81;
  --indigo-light: #4338ca;
  --indigo-dark: #1e1b4b;
  --white: #ffffff;
  --yellow: #fbbf24;
  --yellow-light: #fef3c7;
  --yellow-dark: #d97706;
  --slate: #475569;
  --slate-light: #94a3b8;
  --slate-lighter: #e2e8f0;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --bg: #f8fafc;
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --max-w: 1280px;
  --sidebar-w: 280px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo-light); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--indigo-dark); line-height: 1.3; }

/* ── Header ── */
.site-header {
  background: var(--indigo-dark);
  color: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.site-logo svg { width: 28px; height: 28px; }
.site-logo:hover { color: var(--yellow); }

.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.header-nav a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--yellow); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: .5rem;
}

/* ── Course Layout ── */
.course-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}

/* ── Sidebar ── */
.course-sidebar {
  background: var(--white);
  border-right: 1px solid var(--slate-lighter);
  padding: 2rem 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-title {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-light);
  padding: 0 1.5rem 1rem;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  color: var(--slate);
  font-size: .92rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.sidebar-nav li a:hover {
  background: var(--bg);
  color: var(--indigo);
}
.sidebar-nav li a.active {
  background: #eef2ff;
  color: var(--indigo);
  border-left-color: var(--indigo-light);
}
.sidebar-nav .lesson-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-lighter);
  color: var(--slate);
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}
.sidebar-nav li a.active .lesson-num,
.sidebar-nav li a.completed .lesson-num {
  background: var(--indigo-light);
  color: var(--white);
}
.sidebar-nav li a.completed .lesson-num { background: var(--green); }

/* Progress bar in sidebar */
.sidebar-progress {
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--slate-lighter);
  margin-bottom: 1rem;
}
.progress-text {
  font-size: .82rem;
  color: var(--slate-light);
  margin-bottom: .5rem;
  font-weight: 600;
}
.progress-bar {
  height: 6px;
  background: var(--slate-lighter);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-light), var(--yellow));
  border-radius: 3px;
  transition: width .5s ease;
}

/* ── Main Content ── */
.course-content {
  padding: 3rem 4rem;
  max-width: 820px;
}

/* Lesson header */
.lesson-header {
  margin-bottom: 2.5rem;
}
.lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--indigo);
  color: var(--yellow);
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lesson-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.lesson-objective {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-left: 4px solid var(--indigo-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .97rem;
}
.lesson-objective strong {
  color: var(--indigo);
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-title);
}

/* Content typography */
.course-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--slate-lighter);
}
.course-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 .75rem;
}
.course-content p { margin-bottom: 1.2rem; }
.course-content ul, .course-content ol {
  margin: .5rem 0 1.2rem 1.5rem;
}
.course-content li { margin-bottom: .4rem; }
.course-content strong { color: var(--indigo-dark); }

/* ── Callout boxes ── */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  position: relative;
  font-size: .95rem;
}
.callout-icon {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.callout-icon svg { width: 18px; height: 18px; }

.callout-remember {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
}
.callout-remember .callout-icon { color: var(--yellow-dark); }

.callout-exercise {
  background: var(--green-light);
  border-left: 4px solid var(--green);
}
.callout-exercise .callout-icon { color: #059669; }

.callout-warning {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
}
.callout-warning .callout-icon { color: #ea580c; }

.callout-danger {
  background: var(--red-light);
  border-left: 4px solid var(--red);
}
.callout-danger .callout-icon { color: var(--red); }

/* ── SVG diagrams ── */
.diagram-container {
  background: var(--white);
  border: 1px solid var(--slate-lighter);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}
.diagram-container svg {
  margin: 0 auto;
}
.diagram-caption {
  font-size: .85rem;
  color: var(--slate-light);
  margin-top: 1rem;
  font-style: italic;
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .93rem;
}
thead { background: var(--indigo-dark); color: var(--white); }
th {
  padding: .8rem 1rem;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}
td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--slate-lighter);
}
tbody tr:hover { background: #f1f5f9; }

/* ── Navigation prev/next ── */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--slate-lighter);
}
.lesson-nav a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--slate-lighter);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .93rem;
  color: var(--indigo);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.lesson-nav a:hover {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}
.lesson-nav a svg { width: 18px; height: 18px; }

/* ── Homepage ── */
.hero {
  background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo) 50%, var(--indigo-light) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--yellow);
  color: var(--indigo-dark);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .9rem 2rem;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(251,191,36,.4);
}
.hero-cta:hover {
  background: #f59e0b;
  color: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,191,36,.5);
}

/* Course roadmap on homepage */
.roadmap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.roadmap h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: .5rem;
}
.roadmap-subtitle {
  text-align: center;
  color: var(--slate-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.roadmap-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-lighter);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-light);
}
.roadmap-card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--yellow);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.roadmap-card h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--indigo-dark);
}
.roadmap-card p {
  font-size: .88rem;
  color: var(--slate-light);
  line-height: 1.5;
}

/* Sections homepage */
.section { padding: 4rem 2rem; }
.section-alt { background: var(--white); }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--slate-light);
  margin-bottom: 3rem;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--yellow); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--slate-light); }

/* ── Fiche technique ── */
.fiche-header {
  background: linear-gradient(135deg, var(--indigo-dark), var(--indigo));
  color: var(--white);
  padding: 3rem 2rem;
}
.fiche-header-inner {
  max-width: 820px;
  margin: 0 auto;
}
.fiche-header h1 { color: var(--white); font-size: 2rem; margin-bottom: .5rem; }
.fiche-header .fiche-brand {
  color: var(--yellow);
  font-family: var(--font-title);
  font-weight: 600;
}
.fiche-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.fiche-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.spec-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-lighter);
}
.spec-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--slate-light);
  margin-bottom: .3rem;
}
.spec-value {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--indigo-dark);
}
.spec-value.price { color: var(--green); }

.cta-mdc {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  transition: all var(--transition);
}
.cta-mdc:hover {
  background: var(--indigo-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Exercice page ── */
.exercice-scenario {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}
.exercice-scenario h3 {
  color: var(--indigo);
  margin-bottom: .75rem;
}
.exercice-choices { margin: 1.5rem 0; }
.exercice-choice {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--slate-lighter);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  cursor: pointer;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.exercice-choice:hover {
  border-color: var(--indigo-light);
  background: #f8faff;
}
.exercice-choice.correct {
  border-color: var(--green);
  background: var(--green-light);
}
.exercice-choice.incorrect {
  border-color: var(--red);
  background: var(--red-light);
}
.exercice-feedback {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: .95rem;
}
.exercice-feedback.show { display: block; }
.exercice-feedback.success {
  background: var(--green-light);
  border-left: 4px solid var(--green);
}
.exercice-feedback.error {
  background: var(--red-light);
  border-left: 4px solid var(--red);
}

/* ── Calculator ── */
.calculator {
  background: var(--white);
  border: 1px solid var(--slate-lighter);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.calculator h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.calc-group {
  margin-bottom: 1.25rem;
}
.calc-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--indigo-dark);
  margin-bottom: .4rem;
}
.calc-group select,
.calc-group input {
  width: 100%;
  padding: .65rem 1rem;
  border: 1px solid var(--slate-lighter);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--transition);
}
.calc-group select:focus,
.calc-group input:focus {
  outline: none;
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(67,56,202,.15);
}
.calc-result {
  background: linear-gradient(135deg, var(--indigo-dark), var(--indigo));
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
}
.calc-result.show { display: block; }
.calc-result .result-label {
  font-size: .82rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.calc-result .result-value {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
}

/* ── Glossary ── */
.glossary-search {
  position: sticky;
  top: 64px;
  background: var(--bg);
  padding: 1.5rem 0;
  z-index: 10;
}
.glossary-search input {
  width: 100%;
  padding: .8rem 1.2rem .8rem 2.8rem;
  border: 2px solid var(--slate-lighter);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition);
}
.glossary-search input:focus {
  outline: none;
  border-color: var(--indigo-light);
}
.glossary-letter {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--indigo);
  padding: 1.5rem 0 .5rem;
  border-bottom: 2px solid var(--indigo);
  margin-bottom: 1rem;
}
.glossary-term {
  padding: .75rem 0;
  border-bottom: 1px solid var(--slate-lighter);
}
.glossary-term dt {
  font-weight: 700;
  color: var(--indigo-dark);
  font-size: 1.02rem;
}
.glossary-term dd {
  color: var(--slate);
  font-size: .93rem;
  margin-top: .2rem;
}

/* ── Page wrapper (non-course) ── */
.page-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 3rem 1.25rem 1.25rem;
  color: var(--white);
}
.gallery-caption strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--white);
}
.gallery-caption span {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card img { height: 280px; }
}

/* ── Breadcrumb ── */
.breadcrumb, .breadcrumb-visual, .fiche-breadcrumb {
  font-size: .85rem;
  color: var(--slate-light);
  padding: .75rem 0;
  margin-bottom: .5rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after { content: "\203A"; margin-left: .3rem; color: var(--slate-light); }
.breadcrumb a, .breadcrumb-visual a, .fiche-breadcrumb a { color: var(--indigo-light); font-weight: 600; }
.breadcrumb a:hover, .breadcrumb-visual a:hover, .fiche-breadcrumb a:hover { color: var(--indigo); }
.fiche-breadcrumb { color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.fiche-breadcrumb a { color: var(--yellow); }
.fiche-breadcrumb span { color: rgba(255,255,255,.8); }

/* ── Lesson internal links ── */
.lesson-links {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-lighter);
}
.lesson-links h3 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.lesson-links ul { margin-left: 1.25rem; }
.lesson-links li { margin-bottom: .4rem; font-size: .93rem; }

/* ── Fiche internal links ── */
.fiche-internal-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--slate-lighter);
}
.fiche-internal-links h2 {
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 1rem;
}
.fiche-internal-links ul {
  margin: 0 0 2rem 1.25rem;
}
.fiche-internal-links li {
  margin-bottom: .5rem;
  font-size: .93rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--indigo-dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 2rem;
  font-size: .88rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.footer-brand strong { color: rgba(255,255,255,.85); font-size: 1rem; }
.footer-desc { margin-top: .35rem; font-size: .85rem; max-width: 600px; }
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.footer-col-title { color: rgba(255,255,255,.85); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .84rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-copy { font-size: .8rem; opacity: .6; }

/* ── FAQ Schema ── */
.faq-item {
  border-bottom: 1px solid var(--slate-lighter);
  padding: 1.5rem 0;
}
.faq-question {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--indigo-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer.open { max-height: 800px; }
.faq-answer-inner { padding-top: 1rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .course-wrapper {
    grid-template-columns: 1fr;
  }
  .course-sidebar {
    position: fixed;
    left: -300px;
    top: 64px;
    width: 280px;
    height: calc(100vh - 64px);
    z-index: 90;
    transition: left .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .course-sidebar.open { left: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0,0,0,.4);
    z-index: 89;
  }
  .sidebar-overlay.open { display: block; }
  .mobile-toggle { display: block; }
  .course-content { padding: 2rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .lesson-title { font-size: 1.6rem; }
  .course-content { padding: 1.5rem 1rem; }
  .fiche-specs { grid-template-columns: 1fr; }
  .lesson-nav { flex-direction: column; }
  .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}
