/* ==========================================================================
   DeMeFF — Délégation des Médecins Francophones en Formation
   Feuille de style principale
   Charte : Bordeaux #9B0000 · Vanilla #F9F2ED · Grey #2D2D2D · Cinzel + Inter
   ========================================================================== */

/* --- Polices auto-hébergées (pas de CDN, pas de cookie tiers, RGPD-safe) --- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons de design ---------------------------------------------------- */
:root {
  --bordeaux: #9b0000;
  --bordeaux-dark: #760000;
  --bordeaux-soft: #f4e4e4;
  --vanilla: #f9f2ed;
  --vanilla-deep: #f1e6dd;
  --grey: #2d2d2d;
  --grey-soft: #5c5651;
  --muted: #7b736c;
  --line: #e5d9d0;
  --white: #fff;

  --font-display: 'Cinzel', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --shadow: 0 1px 2px rgba(45, 45, 45, 0.06);
}

/* --- Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--bordeaux-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--grey);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bordeaux);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --- Utilitaires --------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
@media (max-width: 480px) { .wrap { width: min(100% - 2rem, var(--wrap)); } }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--vanilla); }
.section--deep { background: var(--grey); color: var(--vanilla); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep a { color: var(--vanilla); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--grey-soft); font-size: 1.05rem; }
.section--deep .section-head p { color: #cfc7c0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 0.9rem;
}
.section--deep .eyebrow { color: #e0a0a0; }

/* Le texte courant, les listes et les liens doivent rester lisibles sur le
   fond gris foncé, où les gris de la palette claire disparaissent. */
.section--deep p,
.section--deep li,
.section--deep .prose,
.section--deep .checklist li,
.section--deep .card p { color: #d8d1cb; }
.section--deep strong { color: var(--white); }
.section--deep .quote { color: var(--vanilla); }
.section--deep .quote cite { color: #a99f97; }
.section--deep a { color: var(--white); text-decoration-color: rgba(255,255,255,.5); }
.section--deep a:hover { color: var(--white); text-decoration-color: var(--white); }
.section--deep .checklist li::before { background: #e0a0a0; }
.section--deep .callout { background: rgba(249,242,237,.06); border-left-color: #e0a0a0; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--grey-soft); }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid var(--bordeaux);
  border-radius: var(--radius);
  background: var(--bordeaux);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost { background: transparent; color: var(--bordeaux); }
.btn--ghost:hover { background: var(--bordeaux); color: var(--white); }

.btn--light { background: transparent; color: var(--vanilla); border-color: rgba(249, 242, 237, 0.45); }
.btn--light:hover { background: var(--vanilla); color: var(--grey); border-color: var(--vanilla); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- En-tête ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
@media (max-width: 380px) { .brand img { height: 34px; } }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { color: var(--bordeaux); background: var(--vanilla); }
.nav a[aria-current='page'] { color: var(--bordeaux); font-weight: 700; }

.nav__cta {
  margin-left: 0.4rem;
  padding: 0.6rem 1.05rem !important;
  background: var(--bordeaux);
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--bordeaux-dark) !important; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.6rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang a { padding: 0.35rem 0.4rem; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--bordeaux); background: none; }
.lang [aria-current='true'] { color: var(--bordeaux); }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--grey);
}
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded='true'] .burger__open { display: none; }
.burger[aria-expanded='true'] .burger__close { display: block; }

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    /* Rattaché au <header> sticky, et non à la fenêtre : le panneau reste
       aligné sous l'en-tête même lorsque le bandeau d'alerte est affiché. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(45, 45, 45, 0.09);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    display: none;
    z-index: 99;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta {
    margin: 1rem 0 0;
    justify-content: center;
    display: flex;
    border-radius: var(--radius) !important;
    border-bottom: 0 !important;
  }
  .lang {
    margin: 1rem 0 0; padding: 0.75rem 0 0;
    border-left: 0; border-top: 1px solid var(--line);
    justify-content: center;
  }
  .lang a { border-bottom: 0; }
}

/* --- Bandeau d'appel (reprise de l'ASBL) --------------------------------- */
.notice {
  background: var(--bordeaux);
  color: var(--white);
  font-size: 0.9rem;
}
.notice .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding-block: 0.7rem;
}
.notice svg { width: 18px; height: 18px; flex: none; }
.notice p { margin: 0; }
.notice a { color: var(--white); font-weight: 600; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--vanilla);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: 0.5rem; }
.hero h1 span { color: var(--bordeaux); }
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--grey-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}
.hero__rule { width: 64px; height: 3px; background: var(--bordeaux); margin-bottom: 1.6rem; }
.hero__mark { justify-self: center; width: min(100%, 300px); }
.hero__mark img { width: 100%; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__mark { display: none; }
}

.page-hero {
  background: var(--vanilla);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero p { max-width: 65ch; color: var(--grey-soft); font-size: 1.05rem; }

/* --- Grilles ------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --- Cartes -------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--grey-soft); font-size: 0.96rem; margin-bottom: 0; }
.card--flat { box-shadow: none; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: var(--bordeaux-soft);
  color: var(--bordeaux);
}
.icon svg { width: 24px; height: 24px; }
.section--deep .icon { background: rgba(249, 242, 237, 0.1); color: #e6b3b3; }

/* --- Chiffres clés ------------------------------------------------------- */
.stat { text-align: left; }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  font-weight: 700;
  color: var(--bordeaux);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.stat__l { font-size: 0.92rem; color: var(--grey-soft); }
.section--deep .stat__n { color: #e6b3b3; }
.section--deep .stat__l { color: #cfc7c0; }

/* --- Liste de valeurs / points ------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--grey-soft);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  background: var(--bordeaux);
  border-radius: 50%;
}

/* --- Dossiers / documents ------------------------------------------------ */
.doc {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.doc:hover { border-color: var(--bordeaux); background: var(--vanilla); color: inherit; }
.doc__icon { flex: none; color: var(--bordeaux); margin-top: 2px; }
.doc__icon svg { width: 26px; height: 26px; }
.doc__t { font-weight: 600; display: block; margin-bottom: 0.15rem; }
.doc__m { font-size: 0.85rem; color: var(--muted); }

/* --- Actualités ---------------------------------------------------------- */
.post {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
}
.post:first-child { border-top: 0; padding-top: 0; }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center;
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 0.6rem;
}
.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bordeaux); background: var(--bordeaux-soft);
  padding: 0.25rem 0.55rem; border-radius: 2px;
}
.post h3 { margin-bottom: 0.5rem; }
.post p { color: var(--grey-soft); }
.post__more { font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.post__more:hover { text-decoration: underline; }

.news-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; height: 100%;
}
.news-card time { font-size: 0.82rem; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.news-card h3 { font-size: 1.08rem; }
.news-card p { font-size: 0.94rem; color: var(--grey-soft); }

/* --- Personnes ----------------------------------------------------------- */
.person {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.person__i {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bordeaux-soft); color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.person__n { font-weight: 600; display: block; }
.person__r { font-size: 0.87rem; color: var(--muted); }

/* --- Partenaires --------------------------------------------------------- */
.partner h3 { margin-bottom: 0.35rem; }
.partner__role {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.7rem;
}

/* --- Encadrés ------------------------------------------------------------ */
.callout {
  border-left: 3px solid var(--bordeaux);
  background: var(--vanilla);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { margin-bottom: 0.4rem; }
.callout p { color: var(--grey-soft); margin-bottom: 0; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  border-left: 3px solid var(--bordeaux);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  margin: 0;
}
.quote cite { display: block; font-family: var(--font-body); font-size: 0.85rem; font-style: normal; color: var(--muted); margin-top: 1rem; }

/* --- Contact ------------------------------------------------------------- */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-item svg { width: 22px; height: 22px; flex: none; color: var(--bordeaux); margin-top: 4px; }
.contact-item__l { font-weight: 600; display: block; }
.contact-item a { word-break: break-word; }

.data-list { margin: 0; }
.data-list div {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
  padding-block: 0.7rem; border-bottom: 1px solid var(--line);
}
.data-list dt { font-weight: 600; min-width: 190px; margin: 0; }
.data-list dd { margin: 0; color: var(--grey-soft); }

/* --- Pied de page -------------------------------------------------------- */
.site-footer {
  background: var(--grey);
  color: #cfc7c0;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.93rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer img.footer-logo { height: 46px; width: auto; margin-bottom: 1.2rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #cfc7c0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.socials a {
  width: 38px; height: 38px; border-radius: var(--radius);
  border: 1px solid rgba(249, 242, 237, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: #cfc7c0;
}
.socials a:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--white); }
.socials svg { width: 18px; height: 18px; }

.site-footer__bottom {
  border-top: 1px solid rgba(249, 242, 237, 0.15);
  padding-block: 1.4rem 2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9c948d;
}
.site-footer__bottom a { color: #9c948d; }

/* --- Contenu long -------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul li { color: var(--grey-soft); }

/* --- Tableaux -------------------------------------------------------------- */
.prose table, .post table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.94rem;
}
.prose th, .post th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bordeaux);
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
.prose td, .post td {
  padding: 0.5rem 0.9rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--grey-soft);
}
.prose td:first-child, .post td:first-child { color: var(--grey); font-weight: 600; }
.prose tr:last-child td, .post tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 1.4em; }
.table-wrap table { margin-bottom: 0; }

/* --- Sommaire de page ------------------------------------------------------ */
.section--slim { padding-block: clamp(2rem, 4vw, 3rem); }

.toc__t { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin-bottom: 1.1rem; }
.toc__i { color: var(--grey-soft); font-size: 0.98rem; margin-bottom: 1.2rem; max-width: 62ch; }

.toc {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  max-width: 60ch;
}
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.6rem 0.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  text-decoration: none;
  font-size: 0.97rem;
}
.toc li:last-child a { border-bottom: 0; }
.toc a::before {
  content: counter(toc) ".";
  min-width: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bordeaux);
  flex: none;
}
.toc a:hover { color: var(--bordeaux); }

/* --- Impression ---------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .notice, .burger { display: none; }
  body { color: #000; }
}

/* --- Mouvement réduit ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
