/* ============================================================
   Espace de droits — Fiche pratique
   Tokens-driven, responsive, print-friendly
   ============================================================ */

:root {
  /* Color — Brand */
  --green:        #0E7C4A;
  --green-deep:   #0A5A36;
  --green-pale:   #E7F4EC;
  --yellow:       #F8C13E;
  --yellow-soft:  #FFE39A;
  --sand:         #FFF1D6;

  /* Color — Surface */
  --paper:        #FAFAF7;
  --paper-soft:   #F4F5F1;
  --white:        #FFFFFF;

  /* Color — Text */
  --ink:          #141A12;
  --ink-dim:      #5B6A5E;
  --ink-light:    #8C9590;

  /* Color — Borders */
  --border:       #E3E6E0;
  --border-soft:  #ECEEE9;

  /* Color — Feedback */
  --wrong-border: #D24A2A;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 99px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20,26,18,0.05);
  --shadow-md: 0 6px 20px rgba(20,26,18,0.08);
  --shadow-lg: 0 18px 48px rgba(20,26,18,0.10);
  --shadow-cta: 0 8px 22px rgba(14,124,74,0.22);

  /* Layout */
  --max:    1240px;
  --sidebar-w: 296px;
  --header-h: 72px;
}

/* ------------- Reset ------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ------------- Eyebrows ------------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow--accent { color: var(--green); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

/* Brand mark */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-block;
}
.brand__mark--lg { width: 40px; height: 40px; }
.brand__dot {
  position: absolute;
  border-radius: 50%;
}
.brand__dot--green {
  width: 70%; height: 70%;
  background: var(--green);
  top: 0; left: 0;
}
.brand__dot--yellow {
  width: 56%; height: 56%;
  background: var(--yellow);
  bottom: 0; right: 0;
  border: 3px solid var(--paper);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.brand__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2px;
}
.brand__eyebrow--light { color: rgba(255,255,255,.6); }
.brand__title--light { color: var(--white); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}
.site-nav__link:hover {
  color: var(--ink);
  background: var(--paper-soft);
}
.site-nav__link--active {
  color: var(--ink);
  font-weight: 700;
}
.site-nav__link--active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 10px;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
  border-bottom: 1px solid var(--border-soft);
  background: var(--paper);
}
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-dim);
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumb a { color: var(--ink-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: var(--ink-light); }
.breadcrumb__current { color: var(--ink); font-weight: 600; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.sidebar__inner { display: flex; flex-direction: column; gap: 24px; }
.sidebar__heading { display: flex; flex-direction: column; gap: 6px; }
.sidebar__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* TOC */
.toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.toc__link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.toc__link:hover { background: var(--paper-soft); color: var(--ink); }
.toc__link.is-active {
  background: var(--green-pale);
  color: var(--green-deep);
  font-weight: 700;
}
.toc__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background .15s, border-color .15s, color .15s;
}
.toc__link.is-active .toc__num {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.toc__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--yellow);
  margin-top: 1px;
}
.toc__link--pin {
  font-weight: 600;
  color: var(--ink);
}
.toc__link--pin.is-active .toc__icon { color: var(--green); }
.toc__text { flex: 1; }

/* Sidebar CTA */
.sidebar__cta { padding-top: 4px; }

/* ============================================================
   TOC TRIGGER (mobile / tablet)
   ============================================================ */
.toc-trigger {
  display: none;
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin: 0 0 24px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.toc-trigger__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.toc-trigger__current {
  flex: 1;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toc-trigger__chev { color: var(--green); transition: transform .2s; }
.toc-trigger[aria-expanded="true"] .toc-trigger__chev { transform: rotate(180deg); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.content { min-width: 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: block;
  padding: 8px 0 56px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 48px;
}
.hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 64ch; }
.hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hl {
  background: linear-gradient(180deg, transparent 0 55%, var(--yellow) 55% 92%, transparent 92%);
  color: inherit;
  padding: 0 .04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__title .hl { color: var(--ink); }
.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 60ch;
  text-wrap: pretty;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--paper-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-dim);
}
.meta-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

/* Hero shapes */
.hero__shapes {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}
.shape { position: absolute; display: block; }
.shape--circle {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--green);
  top: 16px; right: 16px;
}
.shape--square {
  width: 120px; height: 120px;
  background: var(--yellow);
  border-radius: 18px;
  bottom: 12px; left: 0;
  transform: rotate(-8deg);
}
.shape--bar {
  width: 80px; height: 24px;
  background: var(--green-deep);
  border-radius: var(--r-pill);
  bottom: 50px;
  right: 0;
  transform: rotate(14deg);
}
.shape--dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--yellow-soft);
  top: 0; left: 70px;
}

/* ============================================================
   À RETENIR
   ============================================================ */
.retenir {
  position: relative;
  background: var(--sand);
  border: 1px solid #F1E2BA;
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-bottom: 56px;
  overflow: hidden;
}
.retenir > * { position: relative; z-index: 1; }

.retenir__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.retenir__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.retenir__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.retenir__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.retenir__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.retenir__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  background: var(--green);
  clip-path: polygon(20% 50%, 0 70%, 38% 100%, 100% 28%, 80% 12%, 38% 60%);
}
.retenir__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed #E5CB91;
}
.retenir__hint {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--small { padding: 10px 16px; font-size: 13.5px; }
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============================================================
   QA SECTIONS (collapsible <details>)
   ============================================================ */
.qa {
  scroll-margin-top: 110px;
  padding: 16px 0 40px;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}
.qa:first-of-type { border-top: 0; padding-top: 8px; }

/* Hide default disclosure marker, add custom chevron */
.qa > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
  padding-right: 4px;
  user-select: none;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::marker { content: ""; }
.qa > summary::after {
  content: "";
  grid-column: 2;
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141A12' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .2s ease, background-color .15s, border-color .15s;
}
.qa[open] > summary::after { transform: rotate(180deg); }
.qa > summary:hover::after { background-color: var(--paper-soft); border-color: var(--ink-light); }
.qa > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

.qa__header { margin-bottom: 20px; }
.qa__header > * { grid-column: 1; }
.qa__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.qa__title {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: pretty;
}

/* ── Réponse courte ──────────────────────────────────────── */
.answer-short {
  position: relative;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 24px;
  margin: 0 0 24px;
}
.answer-short__label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.answer-short p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

/* ── Prose ──────────────────────────────────────────────── */
.prose { color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 1.8em;
  font-style: italic;
}
.prose p {
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.prose ul, .prose ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.prose ol { counter-reset: olcount; }
.prose ol > li { counter-increment: olcount; padding-left: 28px; }
.prose ol > li::before {
  content: counter(olcount);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
.prose a:hover {
  color: var(--green-deep);
  text-decoration-color: var(--green);
}
.prose strong { font-weight: 700; }

/* ── Recourse list (Q7) ─────────────────────────────────── */
.recourse {
  margin-top: 12px;
}

/* ============================================================
   QUIZ CTA
   ============================================================ */
.quiz-cta {
  position: relative;
  background: var(--green);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin: 64px 0 56px;
  overflow: hidden;
}
.quiz-cta__body { position: relative; max-width: 580px; }
.quiz-cta .eyebrow { color: var(--yellow); }
.quiz-cta__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 12px;
  text-wrap: balance;
}
.quiz-cta__lede {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  margin-bottom: 24px;
  max-width: 52ch;
  text-wrap: pretty;
}
.quiz-cta__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.quiz-cta .btn--primary {
  background: var(--yellow);
  color: var(--ink);
}
.quiz-cta .btn--primary:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.quiz-cta__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   RESOURCES
   ============================================================ */
.resources {
  margin: 48px 0;
}
.resources__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.resources__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.resources__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.resource {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.resource:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--ink);
}
.resource__source {
  grid-column: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
.resource__title {
  grid-column: 1;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.resource__arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 18px;
  color: var(--ink-light);
  transition: color .15s, transform .15s;
}
.resource:hover .resource__arrow {
  color: var(--green);
  transform: translate(2px, -2px);
}

/* ============================================================
   PAGE NAV (prev / next fiche)
   ============================================================ */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.page-nav__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: background .15s, border-color .15s;
}
.page-nav__card:hover { background: var(--white); border-color: var(--green); }
.page-nav__card--next { text-align: right; }
.page-nav__dir {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
}
.page-nav__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 80px;
  padding: 56px 32px 32px;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-partners {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-footer__brand .brand__dot--yellow { border-color: var(--ink); }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .15s;
}
.site-footer__links a:hover { color: var(--yellow); }

/* Partners */
.site-footer__partners {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.partners__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
}
.partners__small {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}
.partners__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 8px 12px;
  height: 56px;
  text-decoration: none;
  transition: transform .15s;
}
.partners__logo:hover { transform: translateY(-1px); }
.partners__logo img { max-height: 40px; width: auto; display: block; }
.partners__logo--cdp img { max-height: 44px; }
.partners__logo--faif img { max-height: 48px; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer__sep { color: rgba(255,255,255,0.25); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --sidebar-w: 260px; }
  .page { gap: 48px; }
  .hero { grid-template-columns: 1fr 200px; gap: 32px; }
  .hero__shapes { width: 200px; height: 200px; }
  .shape--circle { width: 140px; height: 140px; }
  .shape--square { width: 100px; height: 100px; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .page {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 24px 56px;
  }
  .sidebar {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 80;
    background: var(--paper);
    padding: 88px 24px 32px;
    max-height: 100vh;
    transform: translateY(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .sidebar.is-open { transform: translateY(0); }
  .toc-trigger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
    margin-bottom: 32px;
  }
  .hero__shapes {
    width: 100%;
    max-width: 280px;
    height: 180px;
    order: -1;
  }
  .shape--circle { width: 130px; height: 130px; top: 0; right: 30px; }
  .shape--square { width: 90px; height: 90px; bottom: 0; left: 10px; }
  .shape--bar   { bottom: 80px; right: 0; }
  .shape--dot   { top: 0; left: 0; }

  .retenir { padding: 28px 24px; }
  .quiz-cta { padding: 32px 28px; }
  .resources__list { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header__inner { padding: 12px 20px; gap: 16px; }
  .breadcrumb { padding: 10px 20px; font-size: 12px; }
  .page { padding: 20px 20px 48px; }

  .hero__title { font-size: clamp(28px, 8vw, 38px); }
  .hero__lede { font-size: 16px; }

  .retenir { padding: 24px 20px; }
  .retenir__title { font-size: 22px; }
  .retenir__list li { font-size: 15px; }
  .retenir__actions { flex-direction: column; align-items: flex-start; gap: 12px; }

  .qa__title { font-size: 22px; }
  .answer-short { padding: 16px 18px; }
  .answer-short p { font-size: 15.5px; }

  .quiz-cta { padding: 28px 22px; border-radius: var(--r-lg); }
  .quiz-cta__title { font-size: 24px; }
  .quiz-cta__actions { flex-direction: column; align-items: flex-start; }

  .site-footer { padding: 40px 20px 24px; }
  .partners__line { gap: 14px; }
  .partners__logo { height: 56px; padding: 8px 12px; }
  .partners__logo img { max-height: 38px; }
  .partners__logo--faif { height: 64px; }
  .partners__logo--faif img { max-height: 48px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  :root { --paper: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .site-header, .breadcrumb-wrap, .sidebar, .toc-trigger,
  .retenir__actions, .quiz-cta, .page-nav, .site-footer,
  .nav-toggle, .hero__shapes, .hero__meta {
    display: none !important;
  }
  .page {
    display: block;
    padding: 0;
    max-width: 100%;
  }
  .hero {
    display: block;
    padding: 0;
    border: 0;
    margin: 0 0 24pt;
  }
  .hero__title { font-size: 24pt; }
  .hero__lede { font-size: 12pt; color: #333; }

  .retenir {
    background: #FFF1D6 !important;
    border: 1pt solid #999 !important;
    page-break-inside: avoid;
    box-shadow: none !important;
    padding: 18pt 20pt;
    margin-bottom: 24pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .retenir::before { display: none !important; }

  .answer-short {
    background: #E7F4EC !important;
    border-left: 3pt solid #0E7C4A !important;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .qa { page-break-inside: avoid; padding: 12pt 0; }
  .qa__title { font-size: 14pt; }
  .qa__num { color: #0E7C4A; }
  .prose h3 { font-size: 12pt; }

  /* Force-open collapsibles when printing */
  details.qa { display: block !important; }
  details.qa > summary { list-style: none; }
  details.qa > summary::after { display: none !important; }
  details.qa:not([open]) > *:not(summary) { display: block !important; }

  /* Unfurl links */
  .prose a[href^="http"]::after,
  .resource[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
    word-break: break-all;
  }
  .resources__list { display: block; }
  .resource {
    display: block;
    border: 1pt solid #ccc !important;
    margin-bottom: 8pt;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  /* Print footer note */
  body::after {
    content: "Espace de droits · Un projet de Changer de Cap, soutenu par la Fondation Amnesty International France";
    display: block;
    margin-top: 24pt;
    padding-top: 12pt;
    border-top: 1pt solid #ccc;
    font-size: 9pt;
    color: #666;
    text-align: center;
  }
}
