/* =========================================================
   Livre blanc Citizen Builder — Layout & components
   --------------------------------------------------------- */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--parchment-light);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ DENSITY (tweakable) ============ */
:root {
  --density: 1;          /* 0.85 compact, 1 standard, 1.15 aérée */
  --page-pad-y: calc(72px * var(--density));
  --section-gap: calc(56px * var(--density));
  --para-gap: calc(18px * var(--density));
  --content-fs: 16.5px;
  --content-lh: calc(1.6 + (var(--density) - 1) * 0.3);
}
body.density-compact   { --density: 0.85; --content-fs: 15.5px; }
body.density-standard  { --density: 1;    --content-fs: 16.5px; }
body.density-aeree     { --density: 1.18; --content-fs: 17.5px; }

/* ============ PROGRESS BAR ============ */
.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(26, 58, 42, 0.06);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ochre);
  transition: width 0.05s linear;
}

/* ============ TOP BAR ============ */
.topbar {
  position: fixed;
  top: 2px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.4px;
  background: linear-gradient(to bottom, rgba(251,249,245,0.95) 60%, rgba(251,249,245,0));
  z-index: 99;
  pointer-events: none;
}
.topbar .left { display: flex; align-items: center; gap: 10px; }
.topbar .left img { height: 18px; width: auto; }
.topbar .right { font-variant-numeric: tabular-nums; }

/* ============ COVER ============ */
.cover {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(196,136,74,0.10) 0%, transparent 55%),
    linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 55%, var(--forest-muted) 100%);
  color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 56px 64px;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(196,136,74,0.18);
  pointer-events: none;
}
.cover-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  z-index: 2;
}
.cover-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.cover-meta {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.cover-meta strong {
  color: var(--ochre-light);
  font-weight: 500;
  display: block;
}
.cover-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  z-index: 2;
  padding: 80px 0;
}
.cover-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ochre-light);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cover-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--ochre-light);
}
.cover h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
  font-weight: 400;
  margin: 0 0 32px;
}
.cover h1 .accent { color: var(--ochre); font-style: italic; font-weight: 400; }
.cover .lede {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
  font-style: italic;
  max-width: 720px;
  margin: 0 0 48px;
  font-weight: 400;
}
.cover .signature-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ochre-light);
  border-left: 2px solid var(--ochre);
  padding-left: 18px;
  max-width: 480px;
}

.cover-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}
.cover-foot .col strong {
  color: var(--white);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 1.5px;
}
.cover-foot .col + .col { text-align: right; }

/* Decorative monogram on cover */
.cover-mono {
  position: absolute;
  bottom: -120px;
  right: -100px;
  width: 520px;
  height: 520px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}
.cover-mono svg { width: 100%; height: 100%; }

/* ============ TOC PAGE ============ */
.toc {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--page-pad-y) 32px;
}
.toc-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 18px;
}
.toc h2 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--forest);
  font-weight: 700;
  margin: 0 0 56px;
  max-width: 700px;
}
.toc h2 em { color: var(--ochre); font-style: normal; }

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--slate-line);
}
.toc li {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--slate-line);
  cursor: pointer;
  transition: padding-left var(--t-base);
}
.toc li:hover { padding-left: 8px; }
.toc li:hover .toc-title { color: var(--forest-muted); }
.toc li:hover .toc-num { color: var(--ochre); }

.toc-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--slate);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 56px;
  transition: color var(--t-base);
}
.toc-title {
  flex-grow: 1;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--forest);
  font-weight: 600;
  transition: color var(--t-base);
}
.toc-title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--slate);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0;
}
.toc-page {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ============ CONTENT ============ */
.book {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px var(--page-pad-y);
}

.section {
  padding-top: var(--section-gap);
  scroll-margin-top: 60px;
}
.section + .section { padding-top: var(--section-gap); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-line);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--ochre);
}
.section-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.9;
  color: var(--ochre);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -2px;
  flex-shrink: 0;
}
.section-title-wrap { flex-grow: 1; }
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--forest);
  font-weight: 700;
  margin: 0;
}
.section-title em { color: var(--ochre); font-style: normal; }

/* Body prose */
.prose p {
  font-size: var(--content-fs);
  line-height: var(--content-lh);
  color: var(--ink);
  margin: 0 0 var(--para-gap);
  text-wrap: pretty;
}
.prose p.lede {
  font-family: var(--font-display);
  font-size: calc(var(--content-fs) + 5.5px);
  line-height: 1.45;
  color: var(--forest);
  font-style: italic;
  margin-bottom: 32px;
  font-weight: 400;
}
.prose p strong {
  font-weight: 700;
  color: var(--forest);
}
.prose p em {
  font-style: italic;
  color: var(--ink);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--forest);
  font-weight: 700;
  margin: 36px 0 6px;
  letter-spacing: -0.2px;
}
.prose h3 .axe-num {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ochre);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.prose h3-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ochre);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.h3-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ochre);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.prose .question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: calc(var(--content-fs) + 1px);
  color: var(--forest-muted);
  margin: 0 0 16px;
  display: block;
}

/* ============ PULL QUOTE ============ */
.pull-quote {
  margin: 40px 0;
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--ochre);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  font-style: italic;
  color: var(--forest);
  font-weight: 400;
  letter-spacing: -0.3px;
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--slate);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============ KEY FACTS BLOCK ============ */
.facts {
  margin: 40px 0;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.facts::before {
  content: "FAITS";
  position: absolute;
  top: -8px;
  left: 24px;
  background: var(--parchment-light);
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ochre);
}
.fact .num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}
.fact .num small { font-size: 18px; color: var(--ochre); margin-left: 2px; }
.fact .label {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.fact .src {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--slate);
  font-style: italic;
}

/* ============ CALLOUT (encadré clé) ============ */
.callout {
  margin: 36px 0;
  background: var(--ochre-soft);
  border-left: 3px solid var(--ochre);
  padding: 22px 28px;
  border-radius: 4px;
}
.callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--forest);
}
.callout .label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}

/* ============ FOOTNOTE ============ */
.footnote {
  margin: 24px 0;
  padding: 14px 18px;
  background: rgba(196,136,74,0.05);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate);
  font-style: italic;
  display: flex;
  gap: 10px;
}
.footnote::before {
  content: none;
}

/* ============ COMPARATIVE TABLE ============ */
.comparative {
  margin: 40px 0;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14.5px;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  overflow: hidden;
}
.comparative thead th {
  background: var(--forest);
  color: var(--white);
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.comparative thead th + th { text-align: right; }
.comparative tbody td {
  padding: 16px 20px;
  border-top: 1px solid var(--slate-line);
  color: var(--ink);
  vertical-align: middle;
}
.comparative tbody td + td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--forest);
}
.comparative tbody td.gap {
  font-weight: 700;
  color: var(--ochre);
}
.comparative tbody tr.highlight {
  background: var(--ochre-soft);
}
.comparative tbody tr.highlight td:first-child {
  font-weight: 600;
  color: var(--forest);
}
.comparative tbody tr.highlight td.gap {
  color: var(--ochre);
  font-size: 16px;
}

/* ============ FOUR-AXIS RADAR ============ */
.radar-block {
  margin: 40px 0;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.radar-block .legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.radar-block .legend-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.radar-block .legend-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--forest);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.radar-block .legend-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 2px;
}
.radar-block .legend-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.45;
}
.radar-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}
.radar-caption {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--slate);
  text-align: center;
  font-style: italic;
}

/* ============ MATRIX 2x2 ============ */
.matrix {
  margin: 44px 0 24px;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  padding: 36px 36px 32px;
}
.matrix-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ochre);
  text-align: center;
  margin-bottom: 28px;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  grid-template-rows: 1fr 1fr 56px;
  gap: 0;
  position: relative;
}
.matrix-y-label, .matrix-x-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
}
.matrix-y-label {
  grid-row: 1 / 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.matrix-x-label {
  grid-row: 3;
  grid-column: 2 / 4;
  padding-top: 18px;
}
.matrix-y-label small,
.matrix-x-label small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--slate);
  margin-top: 4px;
}
.matrix-axes-strip {
  grid-column: 2 / 4;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--slate);
  text-transform: uppercase;
  padding: 8px 0 0;
}
.matrix-cell {
  border: 1px solid var(--slate-line);
  padding: 44px 22px 22px;
  position: relative;
  min-height: 160px;
}
.matrix-cell + .matrix-cell { border-left: none; }
.matrix-grid > .matrix-cell:nth-of-type(3),
.matrix-grid > .matrix-cell:nth-of-type(4) {
  border-top: none;
}
.matrix-cell .label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
  line-height: 1.2;
}
.matrix-cell .desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}
.matrix-cell.target {
  background: var(--ochre-soft);
  border-color: var(--ochre);
  z-index: 1;
}
.matrix-cell.target .label { color: var(--ochre); }
.matrix-cell.target::before {
  content: "Cible";
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--ochre);
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.matrix-cell.danger {
  background: rgba(196, 136, 74, 0.04);
}
.matrix-cell.danger::before {
  content: "Zone critique";
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--ochre-light);
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ============ TIMELINE ============ */
.timeline {
  margin: 40px 0;
  position: relative;
  padding: 12px 0 0;
}
.timeline-rail {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--slate-line);
}
.timeline-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--ochre);
}
.timeline-events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.timeline-event {
  text-align: left;
  padding-top: 0;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--slate);
  margin-bottom: 16px;
  position: relative;
  top: 25px;
}
.timeline-event.past .timeline-dot { border-color: var(--forest); background: var(--forest); }
.timeline-event.imminent .timeline-dot {
  background: var(--ochre);
  border-color: var(--ochre);
  width: 16px;
  height: 16px;
  margin-top: -1px;
  box-shadow: 0 0 0 4px rgba(196, 136, 74, 0.18);
}
.timeline-event .date {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  margin-top: 18px;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.timeline-event.imminent .date { color: var(--ochre); }
.timeline-event .name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.timeline-event .who {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.5;
}

/* ============ MODULES BLOCK ============ */
.modules {
  margin: 36px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.module {
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  min-height: 140px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.module:hover {
  border-color: var(--ochre);
  box-shadow: var(--shadow-card);
}
.module-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ochre);
  font-weight: 400;
  letter-spacing: 1px;
}
.module-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}
.module-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}
.module-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--parchment-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.module-arrow svg { width: 10px; height: 10px; stroke: var(--ochre); fill: none; stroke-width: 2; }
.module:last-child .module-arrow { display: none; }

/* ============ NEGATION LIST (section 8) ============ */
.negation-list,
.affirmation-list {
  margin: 32px 0;
  display: grid;
  gap: 12px;
}
.negation,
.affirmation {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 8px;
}
.negation .x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.negation .x svg { width: 11px; height: 11px; stroke: var(--ochre); stroke-width: 2; fill: none; stroke-linecap: round; }

.affirmation {
  background: var(--cream);
  padding: 22px 24px;
  border-radius: 8px;
  border-left: 3px solid var(--forest);
}
.affirmation .affirm-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1;
  padding-top: 2px;
  min-width: 32px;
}
.affirmation strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--forest);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.affirmation p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* ============ PROFILES (section 4) ============ */
.profiles {
  margin: 32px 0;
  display: grid;
  gap: 10px;
}
.profile {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 6px;
  position: relative;
}
.profile.current {
  border-color: var(--ochre-light);
  background: var(--cream);
}
.profile.target {
  border-color: var(--forest);
  border-width: 2px;
  padding: 19px 21px;
}
.profile.current::after,
.profile.target::after {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.profile.current::after {
  content: "Votre profil probable";
  background: var(--white);
  color: var(--forest);
  border: 1px solid var(--ochre-light);
}
.profile.target::after {
  content: "Cible Citizen Builder";
  background: var(--ochre);
  color: var(--white);
}
.profile-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1;
  width: 44px;
  text-align: center;
  padding-top: 2px;
}
.profile-body {
  flex: 1;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.profile-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 8px;
}
.profile-gain {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ochre);
}
.profile.current .profile-gain { color: var(--ochre); }

/* ============ PREAMBLE ============ */
.preamble {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 60px 60px;
}
.preamble .section-num {
  color: var(--ochre);
  font-size: 36px;
}
.negation strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--forest);
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.negation p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* ============ CTA / SIGNATURE FINALE ============ */
.cta-block {
  margin: 80px 0 40px;
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 60%, var(--forest-muted) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 56px 56px;
  position: relative;
  overflow: hidden;
}
.cta-block::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(196,136,74,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.cta-block::before {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -40px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(196,136,74,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ochre-light);
  margin-bottom: 24px;
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--white);
  margin: 0 0 24px;
  font-weight: 400;
  max-width: 580px;
}
.cta-block h2 em { color: var(--ochre); font-style: italic; }
.cta-block p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 0 32px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--ochre);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-base);
  text-decoration: none;
}
.cta-button:hover { background: var(--ochre-light); }
.cta-button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============ SOURCES ============ */
.sources {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--slate-line);
}
.sources h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 18px;
}
.sources ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: src;
  display: grid;
  gap: 10px;
}
.sources li {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  counter-increment: src;
  padding-left: 32px;
  position: relative;
}
.sources li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ochre);
  font-weight: 400;
}
.sources li strong { color: var(--forest); font-weight: 700; }
.sources li em { color: var(--slate); font-style: italic; }

/* ============ END NOTE ============ */
.end-signature {
  margin: 80px auto 0;
  max-width: 760px;
  padding: 0 32px 80px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
}
.end-signature::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ochre);
  margin: 0 auto 24px;
}

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: 12px;
  box-shadow: var(--shadow-raised);
  padding: 18px 20px;
  z-index: 1000;
  font-family: var(--font-sans);
  width: 240px;
  display: none;
}
.tweaks.on { display: block; }
.tweaks-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ochre);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate);
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.tweaks-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
}
.tweaks-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--parchment-light);
  border: 1px solid var(--slate-line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tweaks-segment button {
  background: transparent;
  border: none;
  padding: 7px 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate);
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
}
.tweaks-segment button.active {
  background: var(--forest);
  color: var(--white);
}

/* ============ PRINT ============ */
@page {
  size: A4;
  margin: 18mm 16mm 18mm 16mm;
}
@media print {
  body { background: var(--white); }
  .progress-rail, .topbar, .tweaks { display: none !important; }
  .cover {
    min-height: 100vh;
    page-break-after: always;
    padding: 40mm 30mm;
  }
  .toc, .book { padding-top: 0; }
  .toc { page-break-after: always; }
  .section { page-break-inside: avoid; padding-top: 24mm; }
  .section-head { page-break-after: avoid; }
  .pull-quote, .callout, .facts, .radar-block, .matrix, .timeline, .comparative {
    page-break-inside: avoid;
  }
  .cta-block { page-break-before: always; }
  .sources { page-break-before: always; }
  .end-signature { color: var(--slate); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 800px) {
  .cover { padding: 36px 28px; }
  .cover h1 { font-size: 40px; }
  .cover .lede { font-size: 17px; }
  .cover-foot { flex-direction: column; gap: 18px; align-items: flex-start; }
  .cover-foot .col + .col { text-align: left; }
  .toc h2 { font-size: 30px; }
  .section-num { font-size: 38px; }
  .section-title { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }
  .radar-block { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 36px 1fr; grid-auto-rows: minmax(120px, auto); }
  .matrix-cell + .matrix-cell { border-left: 1px solid var(--slate-line); border-top: none; }
  .timeline-events { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr; }
  .module-arrow { display: none; }
  .cta-block { padding: 36px 28px; }
  .cta-block h2 { font-size: 28px; }
}
