/* Pages éditoriales : accueil, sources, crédits, mentions légales, confidentialité, page introuvable. */

.site {
  --measure: 42rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.site a { color: var(--accent); text-underline-offset: .18em; }
.site a:hover { color: var(--accent-strong); }
/* Icône « W » de Wikipédia (fiche, frise) : encre forte, que « .site a » n'écrase pas (relecture 8.1). */
.site a.wiki-link, .site .marker-wiki, .site a.wiki-link:hover, .site .marker-wiki:hover { color: var(--accent-strong); }
.site a.wiki-link, .site a.wiki-link:hover { text-decoration: none; }
/* Lien d'évitement : son couple encre et papier s'inverse d'un thème à l'autre, « .site a » ne doit pas le casser. */
.site a.skip-link, .site a.skip-link:hover { color: var(--paper); }
.site main:focus { outline: none; }

.site h1, .site h2, .site h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.site h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.15; margin-bottom: 1rem; }
.site h1, .site h2 { font-family: var(--font-title); font-weight: 700; letter-spacing: -.025em; }
.site h3 { font-size: 1.375rem; line-height: 1.25; margin: 2.5rem 0 .75rem; }
.site p + p { margin-top: .9rem; }

/* ---------- En-tête et pied de page ---------- */

/* En-tête d'une seule ligne : sa hauteur est connue, et ce qui colle dessous (la barre de la Bible) s'y appuie. Valeur de départ : js/display-boot.js la remplace par la hauteur mesurée. */
@media (min-width: 521px) { .site-brand span { white-space: nowrap; } }
:root { --header-h: calc(var(--control-h) + 28px + env(safe-area-inset-top, 0px)); scroll-padding-top: calc(var(--header-h) + .75rem); }
@media (max-width: 679px) {
  .site-header:not(.explorer-page .site-header) .header-cta { display: none; }
  .site-header .site-brand + .header-cta + .display-menu { margin-left: auto; }
}
/* Collant partout, sauf dans l'explorateur, qui a sa propre mise en page sur toute la hauteur. */
.site-header:not(.explorer-page .site-header) {
  position: sticky; top: 0; z-index: 40; background: var(--paper); box-shadow: 0 1px 0 var(--rule);
  /* Jamais de clip-path ni d'overflow ici : les panneaux Menu et Affichage dépassent de l'en-tête. */
}
/* Toute la largeur sur toutes les pages : le logo et les commandes ne bougent pas de l'une à l'autre. */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
}
.site-brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink) !important; text-decoration: none;
  font-family: var(--font-title); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
}
.site-mark { width: auto; height: 34px; flex: none; }
.site-mark-dark { display: none; }
:root[data-theme="dark"] .site-mark-light { display: none; }
:root[data-theme="dark"] .site-mark-dark { display: inline; }
/* Pages éditoriales : le texte courant en Newsreader. L'explorateur (main#app) garde la police de l'interface. */
.site main:not(#app) p, .site main:not(#app) li { font-family: var(--font-read); }
/* Gabarit commun des commandes de l'en-tête : css/base.css. Celle-ci, mise en avant : pleine, comme les boutons principaux. */
.header-cta { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; text-decoration: none; }
.header-cta::before, .cta::after { content: ''; display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -.125em; }
.header-cta::before { margin-right: .45em; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z'/%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 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cta::after { margin-left: .55em; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%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 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (forced-colors: active) { .header-cta::before, .cta::after { background: LinkText; } }
.header-cta:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
/* Sélecteur de langue : poussé à droite, avant les commandes. Sans lui (site en une seule langue),
   la première commande suit le nom du site et prend sa place. */
.site-header .lang-switch, .site-header .site-brand + .display-menu, .site-header .site-brand + .header-cta { margin-left: auto; }
.site .lang-switch a { color: var(--ink-soft); }
.site .lang-switch a:hover, .site .lang-switch a[aria-current] { color: var(--ink); }

.site-footer {
  max-width: 72rem; margin: 0 auto;
  padding: .6rem max(20px, env(safe-area-inset-right)) max(.6rem, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--rule);
  color: var(--ink-soft); font-size: .8125rem; line-height: 1.4;
}
.site-footer p { margin: 0; }
.site .site-footer a { color: inherit; }
.site .site-footer a:hover { color: var(--ink); }

/* Menu du site, en haut à droite sur toutes les pages et toutes les largeurs. <details> : il marche sans script ;
   js/display.js ajoute Échap et le clic ailleurs. */
.site-menu { position: relative; flex: none; }
.site-menu-button { list-style: none; }
.site-menu-button::-webkit-details-marker { display: none; }
.site-menu-button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.site-menu-panel { position: absolute; z-index: 950; top: calc(100% + .4rem); right: 0; box-sizing: border-box; width: min(20rem, calc(100vw - 2rem)); max-height: calc(100dvh - 5rem); overflow-y: auto; padding: .5rem; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: var(--shadow-float); font-size: .9375rem; }
.site-menu-panel nav { display: flex; flex-direction: column; }
.site-menu-panel nav .icon { flex: none; width: 1.1rem; height: 1rem; }
.site .site-menu-panel nav a, .site-menu-panel .link-button { display: flex; align-items: center; gap: .65rem; min-height: 40px; padding: .15rem .6rem; color: var(--ink); text-decoration: none; text-align: left; border-radius: 4px; }
.site .site-menu-panel nav a:hover, .site-menu-panel .link-button:hover { background: var(--accent-wash); color: var(--ink); }
.site .site-menu-panel nav a[aria-current] { color: var(--paper); background: var(--ink); font-weight: 600; }
.site-menu-panel .link-button[hidden] { display: none; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
@media (max-width: 520px) {
  /* Marque et commandes sur une seule ligne, sans retour possible : la police de secours, plus large, ferait sauter la
     page à l'arrivée de la vraie (CLS). Le nom du site ne se coupe que si le texte est agrandi. */
  .site-header { gap: .5rem; }
  .site-brand { min-width: 0; }
  /* À 150 %, « Generationis » seul dépasserait la place laissée par les trois boutons. */
  :root[data-size="150"] .site-header:has(.help-link) .site-brand { font-size: .75rem; }
  :root:not([data-size="115"], [data-size="130"], [data-size="150"]) .site-brand span { white-space: nowrap; }
  /* Le mot reste pour les lecteurs d'écran : l'icône seule à l'écran. */
  .site-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Commandes de 44 px dans un en-tête qui garde sa hauteur : moins de marge autour. */
  :root { --control-h: 44px; --header-h: calc(var(--control-h) + 18px + env(safe-area-inset-top, 0px)); }
  .site-header { padding-block: max(9px, env(safe-area-inset-top)) 9px; }
  .site-menu-button { padding-inline: 0; }
}
/* Très petits téléphones : le nom du site se resserre pour ne pas passer sous les commandes. */
@media (max-width: 339px) {
  .site-brand { gap: .4rem; font-size: 1rem; }
  .site-mark { height: 28px; }
}
/* Petits téléphones, dans l'explorateur (trois commandes) : le nom du site se resserre, puis, faute de place, le logo reste seul (le nom reste pour les lecteurs d'écran). */
@media (max-width: 389px) {
  .site-header:has(.help-link) { gap: .25rem; }
  .site-header:has(.help-link) .site-brand { gap: .4rem; font-size: 1rem; }
  .site-header:has(.help-link) .site-mark { height: 28px; }
}
@media (max-width: 359px) {
  :root:not([data-size="130"], [data-size="150"]) .site-header:has(.help-link) .site-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Accueil : le fil (js/home-scene.js) ---------- */

.home-open, .home-lead, .home-doors, .home-method { max-width: 72rem; margin: 0 auto; padding-inline: 20px; }
.home-open { padding-block: 2.5rem .75rem; }
.home-open h1 {
  max-width: 19ch; margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -.028em;
}
/* Le dessin s'étire sans se déformer (traits à épaisseur fixe) ; les noms et les points sont en HTML, posés en %. */
.home-scene { position: relative; height: clamp(15rem, 26.4vw, 24rem); margin-top: 1.25rem; overflow: hidden; }
.home-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Squelette de chargement (pages à données) : dans le HTML, affiché dès le premier rendu, sans script. Il remplit la scène et
   le pied de page attend (sauf sous la scène de l'explorateur, hors de l'écran) : rien de visible ne bouge au montage (CLS). Seule l'opacité s'anime, hors du fil principal. */
.boot { display: none; }
:root[data-js] .boot { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; box-sizing: border-box; min-height: calc(100dvh - 9.5rem); }
:root[data-js] body:has(> main .boot) > .site-footer { display: none; }
.boot-bar { display: flex; gap: .75rem; align-self: stretch; box-sizing: border-box; min-height: 3.1rem; padding: .5rem 1rem; align-items: center; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.boot-bar i { width: 7rem; height: 2rem; border-radius: var(--radius); background: var(--rule); opacity: .6; }
.boot-bar i:last-child { margin-left: auto; width: 6rem; }
/* Les deux lignées se dessinent d'Abraham vers Jésus, se séparent, se rejoignent : en boucle tant que l'avancement est
   inconnu ; dès qu'il l'est (js/app.js, classe has-progress et --p de 0 à 1), le trait suit le chargement réel. Les nœuds
   paraissent quand le trait les atteint. pathLength="1" : la longueur du trait vaut 1, --p en est la part dessinée. */
.boot-fil { flex: 0 1 auto; width: 7.5rem; max-height: 55vh; margin-top: 3rem; overflow: visible; }
.boot-fil .thr { vector-effect: none; stroke-width: 3px; stroke-dasharray: 1; stroke-dashoffset: 1; animation: boot-draw 2.8s cubic-bezier(.55, 0, .25, 1) infinite; }
.boot-fil .thr-lk { animation-delay: .12s; }
.boot-node { fill: var(--paper); stroke: var(--ink); stroke-width: 2px; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.boot-node-1 { animation: boot-node-1 2.8s ease-out infinite; }
.boot-node-2 { fill: var(--ink); animation: boot-node-2 2.8s ease-out infinite; }
.boot-node-3 { animation: boot-node-3 2.8s ease-out infinite; }
@keyframes boot-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes boot-node-1 { 0%, 10% { transform: scale(0); opacity: 1; } 15% { transform: scale(1.35); } 20%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes boot-node-2 { 0%, 34% { transform: scale(0); opacity: 1; } 39% { transform: scale(1.35); } 44%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes boot-node-3 { 0%, 58% { transform: scale(0); opacity: 1; } 63% { transform: scale(1.35); } 68%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.boot.has-progress .thr, .boot.has-progress .boot-node { animation: none; }
.boot.has-progress .thr { stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset .3s ease-out; }
.boot.has-progress .boot-node { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.boot.has-progress .boot-node-1 { transform: scale(clamp(0, calc((var(--p, 0) - .16) * 25), 1)); }
.boot.has-progress .boot-node-2 { transform: scale(clamp(0, calc((var(--p, 0) - .52) * 25), 1)); }
.boot.has-progress .boot-node-3 { transform: scale(clamp(0, calc((var(--p, 0) - .94) * 25), 1)); }
.boot-label { margin: 1.25rem 1rem 0; font-size: .9375rem; color: var(--ink-soft); opacity: 0; animation: boot-show .2s linear .4s forwards; }
.boot-pct { font-variant-numeric: tabular-nums; }
/* Barre d'avancement : sa place est tenue dès le départ (rien ne bouge quand elle paraît). */
.boot-meter { width: 10rem; height: 4px; margin-top: .75rem; overflow: hidden; border-radius: 2px; background: var(--rule); opacity: 0; transition: opacity .2s; }
.boot-meter i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--mt), var(--lk)); transition: width .3s ease-out; }
.boot.has-progress .boot-meter { opacity: 1; }
@keyframes boot-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .boot-fil .thr, .boot-node { animation: none; }
  .boot-fil .thr { stroke-dashoffset: 0; opacity: .7; }
  .boot-node { transform: scale(1); }
  .boot.has-progress .thr, .boot.has-progress .boot-node, .boot-meter i { transition: none; }
  .boot-label { animation: none; opacity: 1; }
}
/* Même chose avec le réglage « Animations : réduites » de l'application (css/base.css raccourcit les animations, ce qui
   ferait clignoter la boucle). */
:root[data-motion="reduce"] .boot-fil .thr, :root[data-motion="reduce"] .boot-node { animation: none; }
:root[data-motion="reduce"] .boot-fil .thr { stroke-dashoffset: 0; opacity: .7; }
:root[data-motion="reduce"] .boot-node { transform: scale(1); }
.thr { fill: none; stroke-width: 2.2px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.thr-mt { stroke: var(--mt); }
.thr-lk { stroke: var(--lk); }
.home-scene .thr { stroke-width: 3px; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: home-draw 2.6s cubic-bezier(.55, 0, .2, 1) .15s forwards; }
@keyframes home-draw { to { stroke-dashoffset: 0; } }
@keyframes home-appear { from { opacity: 0; } to { opacity: 1; } }
/* L'écart entre deux noms suit la largeur de la scène : la marque aussi, pour qu'elles ne se touchent jamais ; sous 1100 px, un trait plus fin pour que plein et vide restent distincts. */
.home-scene { --nd: clamp(4.5px, calc(.75vw - 1.75px), 8px); --nd-line: 1.5px; --cross: clamp(2rem, 3.2vw, 2.75rem); --cross-w: calc(var(--cross) * .6); }
@media (max-width: 1100px) { .home-scene { --nd-line: 1px; } }
.nd { position: absolute; width: var(--nd); height: var(--nd); margin: calc(var(--nd) / -2) 0 0 calc(var(--nd) / -2); box-sizing: border-box; background: var(--paper); border: var(--nd-line) solid var(--ink); border-radius: 50%; animation: home-appear .6s ease 2s both; }
.nd-matthew { border-color: var(--mt); }
.nd-luke { border-color: var(--lk); }
/* Losange : nom commun aux deux listes ; rond : nom propre à l'une d'elles. */
.nd-both { background: none; border: 0; }
.nd-both::before { content: ''; position: absolute; inset: 0; box-sizing: border-box; background: linear-gradient(45deg, var(--mt) 50%, var(--lk) 50%); border-radius: 1px; transform: rotate(45deg); }
.nd:hover { z-index: 3; background: var(--ink); }
.nd-both:hover { background: none; }
/* Ce que dit l'autre liste : plein, elle donne d'autres noms ; vide, elle se tait ; losange vide, même nom discuté. */
.nd-matthew.st-differs { background: var(--mt); }
.nd-luke.st-differs { background: var(--lk); }
.nd.st-debated { background: none; border: 0; }
.nd.st-debated::before { content: ''; position: absolute; inset: 0; box-sizing: border-box; background: var(--paper); border: var(--nd-line) solid var(--ink); border-radius: 1px; transform: rotate(45deg); }
.home-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .5rem 1.5rem; max-width: 72rem; margin: .5rem auto 0; padding: 0 max(20px, env(safe-area-inset-right)); list-style: none; font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); }
.home-key li { display: flex; gap: .55rem; }
.home-key strong { color: var(--ink); font-weight: 600; }
.status-mark { flex: none; box-sizing: border-box; width: 9px; height: 9px; margin-top: .35em; border: 1.5px solid var(--ink); border-radius: 50%; }
.status-mark.st-differs { background: var(--ink); }
.status-mark.st-both { border: 0; background: linear-gradient(45deg, var(--mt) 50%, var(--lk) 50%); }
.status-mark.st-both, .status-mark.st-debated { border-radius: 1px; transform: rotate(45deg); }
.nd::after { content: attr(data-name); position: absolute; left: 50%; bottom: 1rem; padding: .2rem .55rem; color: var(--paper); background: var(--ink); border-radius: 5px; font: 500 1.0625rem/1.2 var(--font-display); white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); }
/* Le nom s'affiche à l'intérieur de la mandorle, là où rien d'autre n'est écrit. */
.nd-matthew::after { top: 1rem; bottom: auto; }
.nd:hover::after { opacity: 1; }
.lab { position: absolute; color: var(--ink); font-family: var(--font-display); line-height: 1; white-space: nowrap; pointer-events: none; transform: translateX(-50%); animation: home-appear .6s ease 1.8s both; }
.lab-leader { stroke: var(--ink-soft); stroke-width: 1px; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; animation: home-appear .6s ease 1.8s both; }
.lab-start { transform: none; }
.lab-end { transform: translateX(-100%); }
.lab-big { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 700; letter-spacing: -.02em; }
.lab-mid { font-size: clamp(1rem, 1.35vw, 1.1875rem); font-weight: 600; }
/* Texte agrandi : les noms entre les courbes n'y tiennent plus (ils restent dans la description du dessin et le texte). */
:root:is([data-size="130"], [data-size="150"]) :is(.lab-wide, .lab-leader) { display: none; }
.lab-last { margin-left: calc(var(--cross-w) + .75rem); transform: translateY(-50%); }
/* Jésus au bout du fil : une croix latine, fine et juste après les deux lignées, qui y arrivent sans la traverser ni toucher le nom de Joseph. */
.home-cross { position: absolute; width: var(--cross-w); height: var(--cross); transform: translate(3px, -32%); background: linear-gradient(var(--ink), var(--ink)) center / 3px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 0 32% / 100% 3px no-repeat; animation: home-appear .6s ease 1.8s both; }
.lab-who { font-size: 1rem; font-weight: 500; line-height: 1.2; }
.lab-who.col-matthew { color: var(--mt); }
.lab-who.col-luke { color: var(--lk); }

.home-lead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2rem 4.5rem; padding-block: 2rem 5rem; }
.home-lead > div { flex: 1 1 32rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.home-lead .lead { max-width: 40rem; margin: 0; color: var(--ink-soft); font-family: var(--font-read); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.34; }
.home-lead .latin { flex: 0 1 24rem; margin: 0; color: var(--ink-faint); font-family: var(--font-read); font-size: 1.125rem; font-style: italic; }
.home-lead .latin span { font-style: normal; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1.9rem;
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper) !important; text-decoration: none;
  font-size: 1.1875rem; font-weight: 600;
  transition: transform .18s;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: none; }
.cta:focus-visible { outline-offset: 4px; }
.site .home-doors h2 { margin: 0 0 1.4rem; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; }
.home-doors { padding-bottom: 6rem; }
.site .door { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 204px; gap: 2.5rem; align-items: center; padding: 1.6rem 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--rule); }
.door:last-child { border-bottom: 1px solid var(--rule); }
.door:hover .door-q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.site .door-q { color: var(--ink); text-decoration: none; }
.door-q::after { content: ''; position: absolute; inset: 0; }
.door-q:focus-visible { outline: none; }
.door-q:focus-visible::after { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: var(--radius, 4px); }
.door-name { position: relative; z-index: 1; }
.door-q { font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.9375rem); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; }
.door-a { color: var(--ink-soft); line-height: 1.45; }
.door-mini { display: block; width: 100%; height: auto; overflow: visible; }
.door-mini .thr { opacity: .75; }
.door-mini circle { fill: var(--ink); }
.site .home-method h2 { max-width: 50rem; margin: 0 0 2.5rem; font-family: var(--font-display); font-size: clamp(1.875rem, 3.2vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.home-method { padding-bottom: 5rem; }
.home-about { max-width: 72rem; margin: 0 auto; padding: 0 20px 5rem; }
.home-about .cta { margin-top: 1rem; }
.home-about .doc-meta { margin-top: 1.5rem; color: var(--ink-faint); font-family: var(--font-ui); font-size: .9375rem; }
.home-about p { max-width: 40rem; color: var(--ink-soft); font-family: var(--font-read); font-size: 1.125rem; line-height: 1.5; }
.home-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; margin-bottom: 2rem; }
.home-mark p { margin: .2rem 0 0; color: var(--ink-soft); }
/* Les quatre motifs sont ceux des barres de datation de l'explorateur (css/explorer.css). */
.mark { display: block; width: 4.5rem; height: .625rem; margin-bottom: .75rem; }
.mark-certaine { background: var(--ink); }
.mark-approximative { background: linear-gradient(90deg, transparent, var(--ink) 30%, var(--ink) 70%, transparent); }
.mark-traditionnelle { background: repeating-linear-gradient(115deg, var(--ink) 0 1.5px, transparent 1.5px 6px); }
.mark-hypothetique { box-sizing: border-box; border: 1.5px dashed var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .home-scene .thr { stroke-dashoffset: 0; animation: none; }
  .nd, .lab, .lab-leader, .home-cross { animation: none; }
  .cta { transition: none; }
}
/* Salathiel et Zorobabel mordraient sur l'arc de Matthieu : leurs losanges vides et la légende restent. */
@media (max-width: 1199px) { .lab-pair, .lab-leader { display: none; } }
@media (max-width: 719px) {
  .site .site-menu-panel nav a, .site-menu-panel .link-button { min-height: 44px; }
  /* Trop serrés pour tout écrire : le trait seul, Adam sous la ligne, Jésus sous sa croix ; sans marques à expliquer, la légende ne garde que ses chiffres. */
  .lab-wide, .nd, .home-key .status-mark { display: none; }
  .lab-start { transform: translateY(4rem); }
  .lab-last { left: auto !important; right: .35rem; top: calc(50% + 2.75rem) !important; margin-left: 0; transform: none; font-size: 1.125rem; }
  .lab-who { font-size: .9375rem; }
  .site .door { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .door-mini { width: 9rem; }
}

/* ---------- Accueil : sections de lecture ---------- */

.block {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 20px 0;
}

.doubling {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.doubling caption {
  caption-side: bottom; text-align: left;
  padding-top: .6rem; color: var(--ink-faint); font-family: var(--font-ui); font-size: .875rem;
}
.doubling th {
  padding: 0 .75rem .5rem 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-faint); font-family: var(--font-ui); font-size: .875rem; font-weight: 400; text-align: left;
}
.doubling th:last-child, .doubling td:last-child { text-align: right; padding-right: 0; }
.doubling td {
  padding: .5rem .75rem .5rem 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.doubling td:first-child::before {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .6em;
  border-radius: 50%; background: var(--g, var(--ink-faint)); vertical-align: .05em;
}
.doubling td:last-child {
  font-family: var(--font-display);
  font-size: calc(1.05rem + var(--rank, 0) * .12rem);
  color: var(--ink);
}

.thresholds { list-style: none; margin: 0; padding: 0; }
.thresholds li {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.thresholds li:last-child { border-bottom: 1px solid var(--rule); }
.threshold-gen {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--g, var(--ink));
}
.thresholds p {
  color: var(--ink-soft);
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5;
  font-variant-numeric: lining-nums;
}
.thresholds strong { color: var(--ink); font-weight: 600; }

.features { margin: 1.5rem 0 0; display: grid; gap: 1.6rem 2.5rem; }
.features div { padding-left: 1rem; border-left: 3px solid var(--g, var(--rule-strong)); }
.features dt { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.features dd { margin: .3rem 0 0; color: var(--ink-soft); }

.faq { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--font-ui); font-size: 1.4rem; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 38rem; }

.closing {
  margin: 5.5rem 0 0;
  padding: 4.5rem 20px 5rem;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closing h2 { margin-bottom: .6rem; }
.closing p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto; }

@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site { font-size: 1rem; }
  .header-cta { display: none; }
  .site-header .display-toggle-label { display: none; }
  .hero { padding-bottom: 3.5rem; }
  .cta { width: 100%; max-width: 22rem; padding-inline: 1.5rem; }
  .block { padding-top: 3.5rem; }
  .thresholds li { grid-template-columns: 2.8rem 1fr; gap: .75rem; }
  .threshold-gen { font-size: 2rem; }
  .doubling td:last-child { font-size: 1rem; }
}

/* ---------- Pages de texte (mentions, confidentialité, introuvable) ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 20px 5rem;
}
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.08; margin-bottom: .5rem; }
.doc .doc-meta { color: var(--ink-faint); font-size: .9375rem; }
.doc h2 { font-size: 1.6rem; margin: 2.75rem 0 .75rem; }
.doc ul { padding-left: 1.2rem; margin: .75rem 0 0; }
.doc li + li { margin-top: .4rem; }
.doc address { font-style: normal; margin-top: .75rem; padding-left: 1rem; border-left: 3px solid var(--rule-strong); }
/* Tableaux plus larges que la colonne de texte, centrés sur elle : la page garde sa largeur de lecture. */
.doc-wide { --wide: min(68rem, calc(100vw - 40px)); width: var(--wide); margin: 1.25rem 0 1.5rem calc((100% - var(--wide)) / 2); }
/* À côté d'une table des matières, le tableau reste dans sa colonne. */
.doc-layout .doc-wide { width: auto; margin-inline: 0; }
.doc-storage { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 1.75rem; font-size: .9375rem; line-height: 1.4; }
.doc-storage caption { margin-bottom: .5rem; font-family: var(--font-title); font-size: 1.1rem; font-weight: 600; text-align: left; }
.doc-storage th, .doc-storage td { padding: .65rem .85rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.doc-storage th { color: var(--ink-soft); background: var(--sheet); font-size: .875rem; font-weight: 600; border-bottom-color: var(--rule-strong); }
.doc-storage th:nth-child(1) { width: 21%; }
.doc-storage th:nth-child(2) { width: 33%; }
.doc-storage th:nth-child(3) { width: 19%; }
.doc-storage td:first-child { padding-left: .85rem; }
.doc-storage code { font-weight: 600; }
/* Étroit : chaque ligne devient une fiche, avec ses intitulés ; rien à faire défiler de côté. */
@media (max-width: 760px) {
  .doc-storage, .doc-storage caption, .doc-storage tbody, .doc-storage tr, .doc-storage td { display: block; width: auto; }
  .doc-storage thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-storage tr { padding: .6rem .85rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
  .doc-storage tr + tr { margin-top: .6rem; }
  .doc-storage td { padding: .2rem 0; border: 0; }
  .doc-storage td:first-child { padding-left: 0; }
  .doc-storage td:not(:first-child)::before { content: attr(data-label) " : "; color: var(--ink-soft); font-weight: 600; }
}
.doc code { font-size: .9em; }
.doc h3 { font-size: 1.1rem; margin: 1.75rem 0 .4rem; }
.doc-lead { font-size: 1.2rem; line-height: 1.45; }
/* Crédits : un petit logo devant chaque technologie. */
.tech-link { white-space: nowrap; }
.tech-icon { display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.125em; fill: currentColor; }
@media (forced-colors: active) { .tech-icon { fill: LinkText; } }
/* Page 404 : de quoi reprendre le fil. */
.nf-search { margin-top: .75rem; font-family: var(--font-ui); }
.nf-search label { display: block; margin-bottom: .25rem; font-weight: 600; }
.nf-search-row { display: flex; gap: .25rem; max-width: 30rem; }
.nf-search input { flex: 1 1 auto; box-sizing: border-box; min-width: 0; min-height: 2.75rem; padding: 0 .5rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; }
.nf-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.nf-search button { flex: none; min-height: 2.75rem; padding: 0 .9rem; font: inherit; font-weight: 600; color: var(--paper); background: var(--ink); border: 0; border-radius: 4px; cursor: pointer; }
.doc ul.nf-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; margin-top: .75rem; padding: 0; list-style: none; font-family: var(--font-ui); }
.doc .nf-ways li + li { margin-top: 0; }
.doc .nf-ways a { display: block; height: 100%; box-sizing: border-box; padding: .9rem 1rem; color: var(--ink); text-decoration: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.doc .nf-ways a:hover { border-color: var(--accent); }
.doc .nf-ways a:hover strong { text-decoration: underline; }
.nf-ways strong, .nf-ways span { display: block; }
.nf-ways span { margin-top: .2rem; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
.nf-report { margin-top: 1.5rem; color: var(--ink-soft); font-size: .9375rem; }
/* Pages de référence : la table des matières suit l'écran. En barre sous l'en-tête, puis en colonne dès qu'il y a la place. */
:root:has(.doc-toc) { scroll-padding-top: calc(var(--header-h) + 3.75rem); }
.doc-toc { position: sticky; top: var(--header-h); z-index: 10; margin: 1.25rem -20px 0; padding: .5rem 20px; overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--rule); font-family: var(--font-ui); font-size: .9375rem; }
.doc-toc-title { display: none; }
.doc .doc-toc ul { display: flex; gap: 1.1rem; list-style: none; padding: 0; margin: 0; white-space: nowrap; }
.doc .doc-toc li + li { margin-top: 0; }
.doc-toc a { display: inline-block; padding-block: .3rem; color: var(--ink-soft); }
.doc-toc a[aria-current] { color: var(--ink); font-weight: 700; }
@media (min-width: 1000px) {
  :root:has(.doc-toc) { scroll-padding-top: calc(var(--header-h) + 1.5rem); }
  .doc:has(.doc-layout) { max-width: calc(var(--measure) + 16rem); }
  .doc-layout { display: grid; grid-template-columns: 13rem minmax(0, var(--measure)); gap: 3rem; align-items: start; }
  .doc-toc { top: calc(var(--header-h) + 1.5rem); margin: 2.75rem 0 0; padding: 0; max-height: calc(100dvh - var(--header-h) - 3rem); overflow: auto; background: none; border-bottom: 0; }
  .doc-toc-title { display: block; margin: 0 0 .5rem; color: var(--ink-faint); font-size: .8125rem; font-weight: 600; }
  .doc .doc-toc ul { flex-direction: column; gap: 0; white-space: normal; }
  .doc-toc a { display: block; padding: .3rem 0 .3rem .75rem; border-left: 2px solid var(--rule); line-height: 1.3; text-decoration: none; }
  .doc-toc a:hover { color: var(--ink); text-decoration: underline; }
  .doc-toc a[aria-current] { border-left-color: var(--accent); }
}
@media print { .doc-toc { display: none; } }
/* Les dates : un exemple réel, puis un tableau par question. */
.doc-example { margin: 1.25rem 0 0; padding: 1rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; font-family: var(--font-ui); }
.doc-example figcaption { color: var(--ink-faint); font-size: .875rem; }
.doc-example .doc-example-range { margin: .15rem 0 .75rem; font-size: 1.25rem; font-weight: 700; }
.doc-example dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem 1.25rem; margin: 0 0 .75rem; }
.doc-example dt { color: var(--ink-soft); font-size: .875rem; }
.doc-example dd { margin: 0; font-weight: 600; }
.doc-example p:last-child { margin: 0; font-size: .9375rem; }
.doc-scale { width: 100%; margin-top: .5rem; border-collapse: collapse; font-family: var(--font-ui); font-size: .9375rem; line-height: 1.4; }
.doc-scale th, .doc-scale td { padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc-scale thead th { color: var(--ink-faint); font-size: .8125rem; font-weight: 600; }
.doc-scale tbody th { width: 34%; font-weight: 600; }
.doc-scale td { color: var(--ink-soft); }
.doc-scale .doc-count { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-scale .mark { width: 3rem; margin-bottom: .4rem; }
/* Étroit : le sens passe sous la réponse, le compte reste en face. */
@media (max-width: 560px) {
  .doc-scale, .doc-scale thead, .doc-scale tbody { display: block; }
  .doc-scale tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
  .doc-scale th, .doc-scale td { padding: 0; border: 0; }
  .doc-scale thead th:nth-child(2) { display: none; }
  .doc-scale tbody th { width: auto; }
  .doc-scale tbody td:not(.doc-count) { grid-column: 1 / -1; grid-row: 2; }
}
.doc-scale + p, .doc-shapes + p { margin-top: 1rem; }
.doc ul.doc-shapes { padding: 0; list-style: none; font-family: var(--font-ui); font-size: .9375rem; }
.doc-shape { flex: none; margin-right: .6rem; vertical-align: -3px; color: var(--ink); }
.doc-terms { margin: .5rem 0 0; }
.doc-terms dt { font-weight: 600; margin-top: .6rem; }
.doc-terms dd { margin: 0; color: var(--ink-soft); }
.doc-biblio { font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.doc .doc-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-consent {
  min-height: 44px; padding: .5rem 1.1rem;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--sheet); color: var(--accent);
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn-consent:hover { background: var(--accent-wash); }
.doc .cta { margin-top: 1.75rem; }
/* ---------- Avertissement « estimations », pied de page, données et crédits ---------- */

.footer-text { display: grid; gap: .3rem; max-width: 36rem; }
.footer-estimates, .footer-report { font-size: .875rem; }
.footer-version { font-size: .8125rem; }
.footer-version a { color: var(--ink-faint); text-decoration: none; }
.footer-version a:hover { text-decoration: underline; }

.doc .doc-warning {
  margin: 1.25rem 0 0; padding: .9rem 1.1rem;
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--gold); border-radius: var(--radius);
  background: var(--gold-wash); color: var(--ink);
}
.doc .doc-lede { color: var(--ink-soft); max-width: 62ch; margin-top: .75rem; }
.downloads-wrap { overflow-x: auto; }
.doc table.downloads th[scope="row"] { font-weight: 600; }
.doc table.downloads td:nth-child(3) { white-space: normal; }
.doc pre.prompt {
  margin: .75rem 0 0; padding: 1rem 1.1rem; overflow-x: auto;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: .875rem; line-height: 1.55; white-space: pre-wrap;
}
.doc code { font-size: .9em; }
.credit-sources { display: grid; gap: .5rem; }
.credit-usage { display: block; color: var(--ink-faint); font-size: .875rem; }
.credit-version { font-weight: 600; }
