/* ==========================================================================
   Plateforme SCC · SYNAVI — feuille de style
   Identité visuelle reprise du site FSICPA (fsicpa.fr) :
   Inter, bleu marine hsl(220 65% 38%), fond clair, mode sombre, radius 0.5rem.
   Les tokens sont ceux de src/app/globals.css du projet fsicpa-website.
   ========================================================================== */

:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 15%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 15%;
  --primary: 220 65% 38%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 15% 96%;
  --secondary-foreground: 220 20% 15%;
  --muted: 220 15% 96%;
  --muted-foreground: 220 10% 45%;
  --accent: 220 15% 93%;
  --accent-foreground: 220 20% 15%;
  --border: 220 15% 90%;
  --ring: 220 65% 38%;
  --radius: 0.5rem;

  --header-h: 4rem;
  --measure: 72ch;
}

.dark {
  --background: 220 20% 9%;
  --foreground: 220 15% 92%;
  --card: 220 18% 12%;
  --card-foreground: 220 15% 92%;
  --primary: 220 75% 68%;
  --primary-foreground: 220 20% 10%;
  --secondary: 220 15% 18%;
  --secondary-foreground: 220 15% 92%;
  --muted: 220 15% 18%;
  --muted-foreground: 220 10% 62%;
  --accent: 220 15% 22%;
  --accent-foreground: 220 15% 92%;
  --border: 220 15% 22%;
  --ring: 220 75% 68%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "rlig" 1, "calt" 1;
}

a { color: hsl(var(--primary)); text-underline-offset: 4px; }

:focus-visible { outline: 1px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: .625rem 1.125rem; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 0; }

/* ── Conteneurs ────────────────────────────────────────────────────────── */

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ── En-tête ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .95);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: hsl(var(--background) / .8); backdrop-filter: blur(8px); }
}
.header-inner {
  max-width: 72rem; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 1rem;
}
@media (min-width: 640px) { .header-inner { padding: 0 1.5rem; } }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand img { height: 2.5rem; width: 2.5rem; object-fit: contain; }
@media (min-width: 640px) { .brand img { height: 3rem; width: 3rem; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em;
  color: hsl(var(--primary));
}
.brand-sub { display: none; font-size: .625rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .brand-sub { display: block; } }

.nav-desktop { display: none; align-items: center; gap: .25rem; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  padding: .5rem .75rem; border-radius: calc(var(--radius) - 2px);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  color: hsl(var(--muted-foreground)); transition: background-color .15s, color .15s;
}
.nav-desktop a:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.nav-desktop a.is-active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

.header-actions { display: flex; align-items: center; gap: .25rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.25rem; width: 2.25rem; border: 0; background: transparent;
  border-radius: calc(var(--radius) - 2px); color: inherit; cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: hsl(var(--accent)); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-moon { display: block; }
.dark .theme-toggle .icon-sun { display: none; }
@media (min-width: 900px) { .menu-btn { display: none; } }

/* ── Recherche ─────────────────────────────────────────────────────────── */

.search { position: relative; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg {
  position: absolute; left: .625rem; width: 1rem; height: 1rem;
  color: hsl(var(--muted-foreground)); pointer-events: none;
}
.search input {
  font: inherit; font-size: .875rem; width: 12rem;
  height: 2.25rem; padding: 0 .75rem 0 2rem;
  color: hsl(var(--foreground)); background: hsl(var(--background));
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
}
.search input::placeholder { color: hsl(var(--muted-foreground)); }
.search input:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 1px hsl(var(--ring)); }
@media (max-width: 1100px) { .search input { width: 9rem; } }
@media (max-width: 899px) { .search { display: none; } }
.drawer .search { display: block; margin-bottom: 1.5rem; }
.drawer .search input { width: 100%; }

.search-results {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + .375rem);
  min-width: 22rem; max-height: 65vh; overflow-y: auto; padding: .25rem;
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: 0 10px 38px -10px rgb(0 0 0 / .25);
}
@media (max-width: 899px) { .search-results { min-width: 0; } }
.search-results a {
  display: block; padding: .5rem .625rem; border-radius: calc(var(--radius) - 2px);
  text-decoration: none; color: hsl(var(--muted-foreground)); font-size: .8125rem; line-height: 1.45;
}
.search-results a:hover, .search-results a.is-cursor { background: hsl(var(--accent)); }
.search-results a strong { display: block; color: hsl(var(--foreground)); font-weight: 600; }
.search-results a em { font-style: normal; color: hsl(var(--primary)); font-weight: 600; }
.search-results .sr-group {
  display: block; font-size: .625rem; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.search-results .sr-empty { padding: .75rem; font-size: .8125rem; color: hsl(var(--muted-foreground)); }

/* ── Tiroir mobile ─────────────────────────────────────────────────────── */

.drawer-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .5);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: 20rem; max-width: 85vw; padding: 1.5rem 1.25rem;
  background: hsl(var(--background)); border-left: 1px solid hsl(var(--border));
  overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
}
.drawer.is-open { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer-head span { font-size: 1.125rem; font-weight: 700; color: hsl(var(--primary)); }
.drawer nav { display: flex; flex-direction: column; gap: .125rem; }
.drawer nav a {
  padding: .75rem; border-radius: calc(var(--radius) - 2px);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  color: hsl(var(--muted-foreground));
}
.drawer nav a:hover, .drawer nav a.is-active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.drawer-group {
  margin-top: 1rem; padding-top: .75rem; border-top: 1px solid hsl(var(--border));
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}

/* ── Boutons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.5rem; padding: 0 2rem; white-space: nowrap;
  border-radius: calc(var(--radius) - 2px); border: 1px solid transparent;
  font-size: .875rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}
.btn-primary:hover { background: hsl(var(--primary) / .9); }
.btn-outline {
  border-color: hsl(var(--border)); background: hsl(var(--background));
  color: hsl(var(--foreground)); box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-sm { height: 2rem; padding: 0 .75rem; font-size: .75rem; }

/* ── Sections ──────────────────────────────────────────────────────────── */

.section { border-bottom: 1px solid hsl(var(--border)); }
.section-muted { background: hsl(var(--muted) / .4); }
.section-inner { max-width: 72rem; margin: 0 auto; padding: 4rem 1rem; }
@media (min-width: 640px) { .section-inner { padding: 5rem 1.5rem; } }
.section-narrow { max-width: 48rem; margin: 0 auto; }

h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.2; }

.section-title { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
.section-lead { margin-top: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  border-bottom: 1px solid hsl(var(--border));
  background: linear-gradient(to bottom, hsl(var(--primary) / .03), transparent);
}
.hero-inner { max-width: 72rem; margin: 0 auto; padding: 5rem 1rem; }
@media (min-width: 640px) { .hero-inner { padding: 7rem 1.5rem; } }
.hero-content { max-width: 48rem; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 1.25rem; padding: .25rem .75rem;
  border: 1px solid hsl(var(--border)); border-radius: 999px;
  background: hsl(var(--background));
  font-size: .75rem; font-weight: 500; color: hsl(var(--muted-foreground));
}
.hero h1 { font-size: 1.875rem; font-weight: 700; text-wrap: balance; }
@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3rem; } }
.hero-sub {
  margin: 1.5rem auto 0; max-width: 42rem;
  font-size: 1.125rem; line-height: 1.7; color: hsl(var(--muted-foreground));
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ── Statistiques ──────────────────────────────────────────────────────── */

.stats { display: grid; gap: 2rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat svg { width: 2rem; height: 2rem; margin: 0 auto; color: hsl(var(--primary)); }
.stat-value { margin-top: .75rem; font-size: 1.5rem; font-weight: 700; }
.stat-label { margin-top: .25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* ── Cartes ────────────────────────────────────────────────────────────── */

.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  padding: 1.5rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: hsl(var(--primary) / .5); box-shadow: 0 4px 16px -4px rgb(0 0 0 / .1); }
.card-num {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: hsl(var(--primary)); margin-bottom: .5rem;
}
.card h3 { font-size: 1.125rem; font-weight: 600; }
.card > ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .125rem; }
.card > ul a {
  display: flex; gap: .5rem; padding: .25rem 0;
  font-size: .875rem; line-height: 1.45; text-decoration: none;
  color: hsl(var(--muted-foreground));
}
.card > ul a::before { content: "›"; color: hsl(var(--primary)); }
.card > ul a:hover { color: hsl(var(--primary)); }
.card > ul li.card-sub {
  padding: .75rem 0 .25rem; font-size: .6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.card > ul li.card-sub:first-child { padding-top: 0; }

/* ── Page de contenu ───────────────────────────────────────────────────── */

.page-layout {
  max-width: 72rem; margin: 0 auto; padding: 0 1rem;
  display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem;
  align-items: start;
}
@media (min-width: 640px) { .page-layout { padding: 0 1.5rem; } }
@media (max-width: 1023px) { .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Colonne défilant avec la page : pas d'ascenseur propre, la liste complète
   des propositions reste accessible par le défilement normal du document. */
.side-nav { padding: 2rem 0 4rem; font-size: .8125rem; }
@media (max-width: 1023px) { .side-nav { display: none; } }
.side-nav-group + .side-nav-group { margin-top: 1.25rem; }
.side-nav-title {
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--foreground)); margin-bottom: .5rem;
}
.side-nav ul { list-style: none; border-left: 1px solid hsl(var(--border)); }
.side-nav li.side-nav-sub {
  padding: .625rem .75rem .125rem; font-size: .625rem; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.side-nav a {
  display: block; padding: .3125rem .75rem; margin-left: -1px;
  border-left: 1px solid transparent; line-height: 1.45;
  color: hsl(var(--muted-foreground)); text-decoration: none;
}
.side-nav a:hover { color: hsl(var(--foreground)); }
.side-nav a.is-active {
  border-left-color: hsl(var(--primary));
  color: hsl(var(--primary)); font-weight: 600;
}

.article { padding: 2.5rem 0 4rem; min-width: 0; }
.breadcrumb { font-size: .8125rem; color: hsl(var(--muted-foreground)); margin-bottom: .75rem; }
.breadcrumb a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.breadcrumb a:hover { color: hsl(var(--foreground)); }
.article > header { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid hsl(var(--border)); }
.article > header h1 { font-size: 1.875rem; font-weight: 700; text-wrap: balance; }
@media (min-width: 640px) { .article > header h1 { font-size: 2.25rem; } }
.article > header h1 strong { font-weight: 700; }

.article-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.article-body.has-aside { grid-template-columns: minmax(0, 1fr) 13rem; }
@media (max-width: 1279px) { .article-body.has-aside { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ── Sommaires ─────────────────────────────────────────────────────────── */

.aside-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .8125rem; }
@media (max-width: 1279px) { .aside-toc { display: none; } }
.toc-title {
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--foreground)); margin-bottom: .625rem;
}
.aside-toc ul { list-style: none; border-left: 1px solid hsl(var(--border)); }
.aside-toc a {
  display: block; padding: .25rem .75rem; line-height: 1.45;
  color: hsl(var(--muted-foreground)); text-decoration: none;
}
.aside-toc a:hover { color: hsl(var(--primary)); }
.aside-toc li.toc-l3 a { padding-left: 1.5rem; }

.toc {
  margin-bottom: 2rem; padding: 1.25rem 1.5rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--muted) / .4);
}
.toc ul { list-style: none; }
.toc a {
  display: block; padding: .1875rem 0; font-size: .875rem;
  color: hsl(var(--muted-foreground)); text-decoration: none;
}
.toc a:hover { color: hsl(var(--primary)); }
.toc li.toc-l3 a { padding-left: .875rem; }

/* ── Prose ─────────────────────────────────────────────────────────────── */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }

.prose h2 { font-size: 1.375rem; font-weight: 700; margin-top: 2.5rem; }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin-top: 2rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--header-h) + 1rem); position: relative; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }

.anchor {
  position: absolute; left: -1.25rem; width: 1.25rem; opacity: 0;
  color: hsl(var(--muted-foreground)); text-decoration: none; font-weight: 500;
  transition: opacity .12s;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor,
.anchor:focus-visible { opacity: 1; color: hsl(var(--primary)); }

.prose p { color: hsl(var(--muted-foreground)); line-height: 1.75; }
.prose strong { color: hsl(var(--foreground)); font-weight: 600; }
.prose a { text-decoration: underline; }
.prose a:hover { text-decoration: none; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: .875em;
  background: hsl(var(--muted)); padding: .125rem .3125rem;
  border-radius: calc(var(--radius) - 4px);
}

.prose ul { list-style: disc; padding-left: 1.5rem; color: hsl(var(--muted-foreground)); }
.prose ol { list-style: decimal; padding-left: 1.5rem; color: hsl(var(--muted-foreground)); }
.prose li { margin: .375rem 0; line-height: 1.75; }
.prose li::marker { color: hsl(var(--primary)); }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin-top: .375rem; }

.prose blockquote {
  border-left: 4px solid hsl(var(--primary) / .3);
  padding-left: 1rem; font-style: italic; color: hsl(var(--muted-foreground));
}

.divider { border: 0; border-top: 1px solid hsl(var(--border)); margin: 2.5rem 0; }

.callout {
  display: flex; gap: .875rem; padding: 1.25rem 1.5rem;
  border: 1px solid hsl(var(--border)); border-left: 4px solid hsl(var(--primary));
  border-radius: var(--radius); background: hsl(var(--muted) / .5);
}
.callout > span { flex-shrink: 0; font-size: 1.125rem; line-height: 1.5; }
.callout > div { min-width: 0; }
.callout > div > * + * { margin-top: .75rem; }
.callout p { font-size: .9375rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; align-items: start; }
@media (max-width: 767px) { .two-col { grid-template-columns: 1fr; } }
.two-col .col > * + * { margin-top: 1rem; }

details.toggle {
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: .875rem 1.125rem; background: hsl(var(--card));
}
details.toggle summary { cursor: pointer; font-weight: 500; }
details.toggle .toggle-body > * + * { margin-top: .875rem; }
details.toggle .toggle-body { margin-top: .875rem; }

.video {
  position: relative; padding-top: 56.25%; margin: 1.5rem 0;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  overflow: hidden; background: hsl(var(--muted));
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.filecard, .linkcard, .refcard {
  display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
  padding: 1rem 1.25rem; text-decoration: none;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); color: hsl(var(--muted-foreground));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
  transition: border-color .15s, box-shadow .15s;
}
.filecard:hover, .linkcard:hover, .refcard:hover {
  border-color: hsl(var(--primary) / .5); box-shadow: 0 4px 16px -4px rgb(0 0 0 / .1);
}
.filecard svg, .refcard svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.filecard-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.filecard-body strong { color: hsl(var(--foreground)); font-size: .9375rem; font-weight: 600; }
.filecard-body span { font-size: .8125rem; }

.refcard { align-items: flex-start; }
.refcard-body { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.refcard-label {
  font-size: .625rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--primary));
}
.refcard strong { color: hsl(var(--foreground)); font-size: .9375rem; font-weight: 500; }

.prose figure img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figcaption { margin-top: .5rem; font-size: .8125rem; color: hsl(var(--muted-foreground)); }

/* ── Pagination ────────────────────────────────────────────────────────── */

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border));
}
@media (max-width: 639px) { .pager { grid-template-columns: 1fr; } }
.pager a {
  display: flex; flex-direction: column; gap: .1875rem;
  padding: .875rem 1.125rem; text-decoration: none;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); transition: border-color .15s;
}
.pager a:hover { border-color: hsl(var(--primary) / .5); }
.pager span {
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: hsl(var(--primary));
}
.pager strong { font-size: .875rem; font-weight: 500; color: hsl(var(--foreground)); line-height: 1.35; }
.pager-next { text-align: right; }

/* ── Pied de page ──────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .4); }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem; }
@media (min-width: 640px) { .footer-inner { padding: 3rem 1.5rem; } }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h3 { font-size: 1.125rem; font-weight: 700; color: hsl(var(--primary)); }
.footer-grid h4 {
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: hsl(var(--foreground));
}
.footer-grid p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.footer-grid .footer-note { margin-top: 1rem; font-size: .75rem; }
.footer-grid ul { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.footer-grid ul a, .footer-contact a {
  font-size: .875rem; color: hsl(var(--muted-foreground)); text-decoration: none;
}
.footer-grid ul a:hover, .footer-contact a:hover { color: hsl(var(--foreground)); }
.footer-contact { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .75rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.footer-contact li > a { display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact svg { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: .125rem; }
.footer-contact strong { color: hsl(var(--foreground)); font-weight: 600; }
.footer-grid .footer-note a { color: hsl(var(--primary)); text-decoration: underline; }
.footer-grid .footer-note a:hover { text-decoration: none; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border));
  text-align: center; font-size: .75rem; color: hsl(var(--muted-foreground));
}

/* ── Impression ────────────────────────────────────────────────────────── */

@media print {
  .site-header, .side-nav, .aside-toc, .pager, .skip, .site-footer,
  .hero-actions, .drawer, .drawer-overlay { display: none !important; }
  .page-layout, .article-body.has-aside { display: block; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article, .section-inner, .hero-inner { padding: 0; max-width: none; }
  .prose { max-width: none; }
  .prose p, .prose li { color: #000; }
  .prose h2, .prose h3 { break-after: avoid; }
  a { color: #000; text-decoration: none; }
  .anchor { display: none; }
}
