/* ── legal.wearekjc.com ──────────────────────────────────────────────────────
   La feuille de style unique du site juridique. Elle reprend le système de la
   page de connexion d'Aurore (`aurore/src/views/partials/login.css`) — c'est la
   référence de design demandée :
     · surface CLAIRE par défaut, neutres sur la ligne OKLCH H=293 (IDENTITY §1-2) ;
     · Inter pour l'interface et le corps de texte (IDENTITY §5) ;
     · Trame Serif 400 pour les faces d'affichage — h1 de document et titres
       d'index. Un seul gras existe pour cette fonte : les paliers d'affichage
       tournent donc à 400, pas au 900 de l'échelle grotesque (écart déjà
       consigné côté Aurore) ;
     · Replique Sans 900 pour le seul wordmark « WE ARE KJC » du pied de page ;
     · trois rayons (8 / 14 / 100), aucune quatrième marche ;
     · eyebrow = .6875rem / 700 / .14em / capitales.

   Le site est CLAIR, et seulement clair : pas de variante sombre, pas de
   `prefers-color-scheme`. C'est la surface de la page de connexion d'Aurore,
   telle quelle. Toute couleur se définit donc une seule fois, sur `:root` —
   il n'y a aucun second jeu de jetons à tenir en cohérence.

   Les quatre fontes sont SERVIES EN LOCAL. La référence Aurore va les chercher
   chez Google Fonts ; ce serait incohérent ici, où la Politique cookies affirme
   qu'aucun tiers ne suit l'utilisateur — une requête vers `fonts.gstatic.com`
   transmet l'adresse IP du lecteur à un tiers sur la page même qui promet le
   contraire. Inter est donc empaquetée en variable woff2 (latin + latin-ext),
   Trame Serif et Replique Sans en sous-ensembles woff2.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  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';
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: 'Trame Serif';
  src: url('/fonts/trame-serif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Replique Sans';
  src: url('/fonts/replique-sans.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  /* Le site n'existe qu'en clair : on le déclare au navigateur pour que les
     contrôles natifs et la barre de défilement suivent, quel que soit l'OS. */
  color-scheme: light;

  /* IDENTITY §1-2, colonne claire — repris tel quel de login.css */
  --ink: #0A0120; --paper: #F0EFF6;
  --bg: #F7F6FC; --surface: #FDFCFF; --surface-soft: #F0EFF7;
  --border: #D8D5E8; --border-mid: #C8C5DA;
  --text: #161322; --text-mid: #555361; --text-dim: #6F6D79;
  --accent-soft: rgba(10, 1, 32, .04);
  --ink-45: rgba(10, 1, 32, .45);
  --ink-30: rgba(10, 1, 32, .30);
  --ink-16: rgba(10, 1, 32, .16);
  --shadow-card: 0 1px 3px rgba(10, 1, 32, .06);
  --footer-bg: var(--paper);
  --footer-ink: var(--ink);

  /* §6 — trois rayons, pas un de plus */
  --r-control: 8px; --r-card: 14px; --r-pill: 100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page-max: 1320px;
  --gutter-fluid: clamp(20px, 4.1667vw, 60px);
  --gutter: max(var(--gutter-fluid), calc((100vw - var(--page-max)) / 2));
  --topbar-h: 5.2rem;
  /* largeur du panneau de dossiers — définie, pour que le 4/5 tienne */
  --shelf-w: 27rem;
  /* La colonne de lecture. 68ch tient ~95 signes par ligne en Inter 16 :
     au-delà, l'œil perd la ligne suivante sur un texte de 20 000 signes. */
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  /* Les ancres du sommaire ne doivent pas passer sous la barre collante. */
  scroll-padding-top: calc(var(--topbar-h) + 1.5rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Cible de saut clavier — invisible tant qu'elle n'a pas le focus. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1.1rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-mid); border-radius: var(--r-control);
  font-size: 13px; font-weight: 700;
}
.skip:focus { left: var(--gutter); top: .75rem; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px; border-radius: 3px;
}

/* ── Barre de tête ─────────────────────────────────────────────────────────
   Un wordmark, une qualité, un sélecteur de langue. Rien d'autre : c'est
   exactement le parti de la barre d'Aurore. Collante parce qu'un document de
   20 000 signes se parcourt, et qu'on doit pouvoir changer de langue au milieu. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--topbar-h); padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.wordmark {
  font-size: 15px; font-weight: 900; letter-spacing: -.02em;
  text-transform: uppercase; color: var(--ink);
}
.wordmark-sub {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
}

/* Sélecteur de langue — deux pastilles, l'active en plein. */
.langs { display: flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--accent-soft); border-radius: var(--r-pill); }
.langs a {
  display: block; padding: .34rem .72rem; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.langs a:hover { color: var(--text); }
.langs a[aria-current='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }

main { flex: 1; }

/* ── Page d'index ──────────────────────────────────────────────────────────── */
/* Le héro reprend la composition de la page de connexion d'Aurore : une colonne
   de texte à gauche, un panneau à droite, l'ensemble tenant dans un écran.
   Là-bas c'est un film ; ici, l'étagère de dossiers. */
.index-hero {
  max-width: var(--page-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: 2rem var(--gutter) 4rem; align-items: center;
}
@media (min-width: 960px) {
  .index-hero {
    /* La LARGEUR du panneau est une valeur DÉFINIE, jamais dérivée du contenu.
       Une piste `max-content` la faisait dépendre du plus long libellé : le
       panneau rétrécissait en anglais (« Legal notice » contre « Mentions
       légales »), et comme la largeur devenait flottante, `aspect-ratio` n'avait
       plus de quoi calculer — le 4/5 partait à 0,746. Même piège que le panneau
       vidéo de la page de connexion d'Aurore, qui le documente. */
    grid-template-columns: minmax(0, 1fr) var(--shelf-w);
    justify-content: space-between;
    gap: clamp(2.5rem, 5vw, 6rem);
    padding: 0 var(--gutter) 2rem;
    /* svh d'abord pour que la barre d'adresse mobile ne rogne pas le bas ;
       vh en repli pour ce qui ne connaît pas svh. */
    min-height: calc(100vh - var(--topbar-h));
    min-height: calc(100svh - var(--topbar-h));
  }
}
@media (max-width: 959px) {
  .index-hero { padding: clamp(2.5rem, 8vw, 4rem) var(--gutter) 3.5rem; gap: 2.5rem; }
}
.eyebrow {
  display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.4rem;
}
h1.display {
  font-family: 'Trame Serif', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 400; letter-spacing: -.01em;
  line-height: 1.12; color: var(--ink); max-width: 20ch;
}

/* ── L'étagère ─────────────────────────────────────────────────────────────
   Quatre dossiers, rien d'autre. Les mêmes textes encadrent tous les services
   de l'association : les séparer par produit revenait à poser une question
   (« lequel me concerne ? ») dont la réponse est toujours « les quatre ».

   La tuile est un DOCUMENT, pas un dossier : elle ne contient rien, elle EST le
   texte. Feuille au coin corné, dessinée ici — bleu de marque (IDENTITY §3),
   deux plans : le corps, puis le rabat du pli. */
.shelf {
  width: 100%; max-width: var(--shelf-w); margin: 0 auto clamp(3rem, 8vw, 4rem);
  /* même boîte que le panneau de la page de connexion d'Aurore : portrait 4/5,
     rayon de carte, un filet de bordure sur une surface plus claire que le fond */
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  display: grid; place-items: center;
  padding: clamp(1rem, 9cqw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 960px) { .shelf { margin: 0; } }
/* 2×2, à toutes les tailles : quatre éléments dans un panneau portrait. */
.shelf ul {
  list-style: none; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 5cqw, 2.25rem);
}

.file {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: clamp(.4rem, 2.5cqw, 1rem) .35rem clamp(.5rem, 3cqw, 1.15rem);
  text-decoration: none; text-align: center;
  border-radius: var(--r-card);
  transition: background-color .22s var(--ease);
}
.file:hover { background: var(--accent-soft); }

/* La feuille est en portrait : à largeur égale elle occupe plus de hauteur que
   ne le faisait le dossier. 19cqw lui rend la même surface optique. */
.file-ico {
  width: clamp(2.25rem, 19cqw, 5rem); height: auto; display: block;
  margin-bottom: clamp(.45rem, 3.5cqw, 1rem);
  transition: transform .28s var(--ease);
}
.file .f-sheet { fill: #3B86F7; }
.file .f-fold  { fill: #2F6FD0; }
/* La feuille se soulève d'un cheveu au survol — seul mouvement de la page. */
.file:hover .file-ico { transform: translateY(-4px); }

.file-name {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.6em; /* deux lignes à line-height 1.3 */
  font-size: clamp(11.5px, 3.5cqw, 15px); font-weight: 700; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.3;
}
.file-meta {
  margin-top: .15rem;
  font-size: clamp(8.5px, 2.4cqw, 10px); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .file-ico { transition: none; }
  .file:hover .file-ico { transform: none; }
}

/* ── Page de document ──────────────────────────────────────────────────────── */
.doc {
  max-width: var(--page-max); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
/* Au-delà de 1080 px le sommaire prend une colonne à lui et suit la lecture. */
@media (min-width: 1080px) {
  .doc { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 4rem; align-items: start; }
  .toc { position: sticky; top: calc(var(--topbar-h) + 2rem); order: 2; }
  .doc-body-col { order: 1; min-width: 0; }
}

.doc-head { padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.doc-head h1 {
  font-family: 'Trame Serif', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 400; letter-spacing: -.01em;
  line-height: 1.14; color: var(--ink);
}
.doc-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
}

/* Bandeau de primauté linguistique — uniquement sur les pages EN.
   Rappel matériel : seule la version française engage (CGU, art. 19). */
.primacy {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-top: 1.75rem; padding: 1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--border-mid);
  border-radius: var(--r-control);
  font-size: 13px; line-height: 1.6; color: var(--text-mid);
  max-width: var(--measure);
}
.primacy strong { color: var(--text); font-weight: 700; }
.primacy a { color: var(--text); text-underline-offset: 3px; }

/* Sommaire */
.toc nav { border-left: 1px solid var(--border); padding-left: 1.1rem; }
.toc .eyebrow { margin-bottom: 1rem; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: .55rem;
  max-height: calc(100svh - var(--topbar-h) - 9rem); overflow-y: auto; }
.toc a {
  display: block; font-size: 12.5px; line-height: 1.45; color: var(--text-dim);
  text-decoration: none; transition: color .2s var(--ease);
}
.toc a:hover { color: var(--text); }
.toc a[aria-current='true'] { color: var(--ink); font-weight: 700; }

/* Sur mobile, le sommaire se replie : personne ne veut faire défiler 22 entrées
   avant d'atteindre l'article 1. */
.toc-mobile { margin-bottom: 2.5rem; }
.toc-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; padding: .9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '+'; font-size: 1.05rem; line-height: 1; color: var(--text-dim); }
.toc-mobile[open] summary::after { content: '–'; }
.toc-mobile ol { list-style: none; padding: 1.2rem 1.1rem 0; display: flex; flex-direction: column; gap: .7rem; }
.toc-mobile a { font-size: 13.5px; color: var(--text-mid); text-decoration: none; }
@media (min-width: 1080px) { .toc-mobile { display: none; } }
@media (max-width: 1079px) { .toc { display: none; } }

/* ── Corps du document ─────────────────────────────────────────────────────
   Tout ce qui suit stylise la sortie du rendu Markdown. La mesure est bornée à
   --measure : un article de loi se lit, il ne se survole pas. */
.doc-body { max-width: var(--measure); }
.doc-body h2 {
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
  margin: 3.25rem 0 1rem; scroll-margin-top: calc(var(--topbar-h) + 1.5rem);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin: 2.25rem 0 .75rem; scroll-margin-top: calc(var(--topbar-h) + 1.5rem);
}
.doc-body p { margin: 0 0 1.15rem; font-size: 15px; line-height: 1.8; color: var(--text-mid); }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--ink-30); transition: text-decoration-color .2s var(--ease); }
.doc-body a:hover { text-decoration-color: var(--text); }
.doc-body ul { list-style: none; margin: 0 0 1.15rem; display: flex; flex-direction: column; gap: .7rem; }
.doc-body li {
  position: relative; padding-left: 1.35rem;
  font-size: 15px; line-height: 1.75; color: var(--text-mid);
}
.doc-body li::before {
  content: ''; position: absolute; left: .3rem; top: .72em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-30);
}
.doc-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Tableaux — art. 7, 11 et 13 de la Politique de confidentialité.
   Ils débordent la mesure de lecture : trois colonnes de prose ne tiennent pas
   dans 68ch. On les laisse occuper toute la colonne disponible. */
.table-wrap { margin: 0 0 1.75rem; width: 100%; }
@media (min-width: 700px) {
  .table-wrap { width: min(100%, calc(var(--measure) + 10rem)); overflow-x: auto; }
}
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-body th {
  text-align: left; padding: .7rem .9rem;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); border-bottom: 1px solid var(--border-mid); white-space: nowrap;
}
.doc-body td {
  padding: .9rem; vertical-align: top; line-height: 1.6;
  color: var(--text-mid); border-bottom: 1px solid var(--border);
}
.doc-body tbody tr:hover { background: var(--accent-soft); }

/* Sous 700 px chaque ligne devient une carte, l'en-tête de colonne repassant
   devant la valeur via data-label (posé par le rendu Markdown). */
@media (max-width: 699px) {
  .doc-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-body tr {
    display: block; margin-bottom: .9rem; padding: .35rem .95rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
  }
  .doc-body td { display: block; padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .doc-body tr td:last-child { border-bottom: 0; }
  .doc-body td::before {
    content: attr(data-label); display: block; margin-bottom: .3rem;
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-dim);
  }
}

/* Renvois de bas de document vers les autres textes du même produit. */
.related { max-width: var(--measure); margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.related a {
  display: inline-block; padding: .5rem .95rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.related a:hover { border-color: var(--border-mid); background: var(--accent-soft); }

/* ── Pied de page ──────────────────────────────────────────────────────────
   Porté depuis `thenewkjc` (`public/static/app.css`, bloc « PIED DE PAGE ») :
   bloc papier, colonnes de liens, wordmark « WE ARE KJC » rogné par
   l'overflow du wrap. Deux écarts assumés :

   · pas de bande clap — décision explicite pour ce site ;
   · le sélecteur de langue pointe des CHEMINS (/fr/, /en/), pas un `?lang=`
     posé sur un cookie : ici la langue est dans l'URL.

   Les jetons de là-bas (`--c-ink-rgb`, `--fs-sm`…) sont remappés sur ceux
   d'ici — c'est la même palette IDENTITY, nommée autrement. */
.site-footer { background: var(--paper); }
.footer-wrap {
  background: var(--paper);
  border-top: 1px solid var(--ink-16);
  color: var(--ink);
  overflow: hidden;
}

/* Colonnes réparties sur toute la largeur, dans la gouttière du site. Le bloc
   CTA en vaut deux : une pilule ne tient pas dans la largeur d'une colonne. */
.footer-grid {
  padding: 3.5rem var(--gutter) 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .footer-grid { padding: 4rem var(--gutter) 2.5rem; }
  .footer-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.footer-cta { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-cta { grid-column: span 2; } }
.footer-cta__brand {
  display: block; font-weight: 900; font-size: 15px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1.1rem;
}
.footer-cta__note {
  margin: 1.1rem 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-45);
}

/* Bouton pilule (IDENTITY §9). Sur fond papier, le primaire est l'inversion :
   aplat encre, texte papier. */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--r-pill);
  font-weight: 700; font-size: 13px; letter-spacing: -.01em;
  line-height: 1; white-space: nowrap; text-decoration: none;
  transition: transform .3s var(--ease);
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.98); transition-duration: 80ms; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }

.footer-col-t {
  display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: 13px; color: var(--ink-45); text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--ink); }

/* Flèche ↗ des liens externes : masque SVG en data: URI, donc de la couleur du
   lien et non d'un fichier. L'espace est réservé en permanence (opacity, pas
   display) — la révéler ne décale jamais le libellé sous le curseur. */
.footer-links a[target="_blank"]::after {
  content: ''; display: inline-block; width: .72em; height: .72em;
  margin-left: .32em; vertical-align: -.01em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.4 8.6 8.6 1.4'/%3E%3Cpath d='M4.3 1.4H8.6V5.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.4 8.6 8.6 1.4'/%3E%3Cpath d='M4.3 1.4H8.6V5.7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translate(-.15em, .15em);
  transition: opacity .2s ease, transform .3s var(--ease);
}
.footer-links a[target="_blank"]:hover::after,
.footer-links a[target="_blank"]:focus-visible::after { opacity: 1; transform: translate(0, 0); }

/* Le sélecteur se range sous la première colonne, à la gouttière : c'est un
   réglage de site, pas un bout de ligne. */
.footer-bottom { display: flex; justify-content: flex-start; padding: 0 var(--gutter) .5rem; }

/* Le wordmark : une seule ligne calée sur le viewport, rognée exprès par le
   wrap. Le 8.37 est le ratio mesuré de « WE ARE KJC » en Replique Sans à ce
   tracking — changer le texte ou la fonte impose de le recalculer. */
.footer-mark {
  font-family: 'Replique Sans', 'Inter', sans-serif; font-weight: 900;
  font-size: min(calc((100vw - 4rem) / 8.37), 15rem);
  line-height: .86; letter-spacing: -.02em; text-align: center;
  white-space: nowrap; color: var(--ink-16);
  padding: 1.4rem 0 1.8rem; user-select: none;
}
@media (min-width: 860px) { .footer-mark { padding: 2rem 0 2.2rem; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .footer-links a[target="_blank"]::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* ── Impression ────────────────────────────────────────────────────────────
   Un texte juridique finit imprimé ou versé au dossier : la page doit sortir
   propre, sans chrome, avec les URL des liens en clair. */
@media print {
  .topbar, .site-footer, .toc, .toc-mobile, .related, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { display: block; padding: 0; max-width: none; }
  .doc-body, .primacy { max-width: none; }
  .doc-body p, .doc-body li, .doc-body td { color: #000; }
  .doc-body h2 { break-after: avoid; }
  .doc-body table, .doc-body tr { break-inside: avoid; }
  .doc-body a::after { content: ' (' attr(href) ')'; font-size: .85em; word-break: break-all; }
  .doc-body a[href^='/']::after { content: ' (https://legal.wearekjc.com' attr(href) ')'; }
}
