/* Liber Generationis : socle commun à toutes les pages
   (jetons de couleur et de typographie, remise à zéro, utilitaires, bandeau de consentement). */

/* Règles de la palette :
   - trait et texte sont distincts : une teinte écrite en texte tient 4,5:1 sur --paper et sur --sheet ;
   - un trait qui porte une information tient 3:1, sans opacité, qui fausse le calcul et varie selon le fond ;
   - un état ne repose jamais sur la seule couleur d'une bordure : fond contrasté, gras ou icône ;
   - les couples qui se répondent (--ink et --paper) s'inversent ensemble d'un thème à l'autre. */
:root {
  /* Direction « Musée » : fond plâtre, encre vert très sombre ; palette vérifiée par tests/contrast.test.mjs. */
  --paper: #e8ede6;
  --sheet: #f7f9f5;
  --ink: #10251e;
  --ink-soft: #37504a;
  --ink-faint: #4b6159;
  --rule: #cdd7cf;
  --rule-strong: #9fb0a5;
  --accent: #0f5c4d;
  --accent-strong: #0a4034;
  --accent-wash: #eef4ef;
  --on-accent: #f7f9f5;
  --gold: #a67c2b;
  --gold-ink: #6e500f;
  --gold-wash: #efe7d0;
  --gen-color: #10251e;

  /* Évangélistes : une couleur chacun, lisible comme texte (4,5:1) sur --paper et --sheet. */
  --mt: #c23a0a;
  --tag-warm: #9a3208;
  --tag-amber: #7a5200;
  --tag-cold: #1a4a98;
  --tag-green: #0f5c4d;
  --tag-violet: #4e30a5;
  --tag-neutral: #4b6159;
  --lk: #7e1044;

  /* Types de repère : biblique en ton chaud, histoire générale en ton froid (trait et titre). */
  --marker-bible: #7a4a00;
  --marker-world: #0b6a63;

  /* Civilisations des périodes (clés CIVILIZATIONS de js/validate.js), en tons froids : fond pâle + encre de la même teinte. */
  --civ-egypt: #cbe9e3;
  --civ-egypt-ink: #07524c;
  --civ-mesopotamia: #cfe0f7;
  --civ-mesopotamia-ink: #1a4a98;
  --civ-persia: #e2dafc;
  --civ-persia-ink: #4e30a5;
  --civ-greece-rome: #dfe3ea;
  --civ-greece-rome-ink: #3f4b5f;
  --civ-levant: #cfeed4;
  --civ-levant-ink: #175a30;

  /* Grands moments de l'histoire biblique (clés MOMENTS de js/validate.js), pour la frise des livres :
     tous en tons chauds : origines or, exode orange, conquête et Juges rouge brique, royaume uni brun clair,
     royaumes divisés olive, exil prune, retour sable, période hellénistique vieux rose. */
  --moment-origins: #f7dfa6;
  --moment-origins-ink: #6c4800;
  --moment-exodus: #fad5b4;
  --moment-exodus-ink: #863a00;
  --moment-conquest-judges: #f6ccbf;
  --moment-conquest-judges-ink: #8d2612;
  --moment-united-kingdom: #d8ccc4;
  --moment-united-kingdom-ink: #5a4220;
  --moment-divided-kingdoms: #e3e0b0;
  --moment-divided-kingdoms-ink: #4e4f10;
  --moment-exile: #eccde0;
  --moment-exile-ink: #7d1f5c;
  --moment-return: #f1ecc9;
  --moment-return-ink: #72651d;
  --moment-hellenistic: #f8c8d0;
  --moment-hellenistic-ink: #832e49;

  /* Titres, noms, commandes : Schibsted Grotesk ; phrases qui racontent : Newsreader.
     Les réglages « police lisible » et « police système » les remplacent. */
  --font-display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: var(--font-display);
  --font-ui: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Newsreader", Georgia, "Times New Roman", serif;

  --radius: 6px;
  /* Hauteur des commandes de l'en-tête ; 44 px sur téléphone (cible tactile). */
  --control-h: 40px;
  --shadow-float: 0 14px 40px rgba(16, 37, 30, 0.18);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
}

button, input, select { font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }

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

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

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100; transform: translateY(-100vh);
  background: var(--ink); color: var(--paper); padding: .5rem .875rem; border-radius: var(--radius);
}
.skip-link:focus { transform: none; }

/* ---------- Bandeau de consentement (créé par js/analytics.js) ----------
   Accepter et Refuser ont exactement le même poids visuel, comme le demande la CNIL. */

.consent {
  position: fixed; z-index: 1000;
  left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(25rem, calc(100vw - 32px));
  padding: 1.1rem 1.2rem 1rem;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 10px;
  box-shadow: var(--shadow-float);
  font-family: var(--font-ui); font-size: .9375rem; line-height: 1.45;
}
/* .consent devant : l'emporte sur « .site h2 » des pages de contenu. */
.consent .consent-title { font-family: var(--font-ui); font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0 0 .35rem; }
.consent-text { margin: 0; color: var(--ink-soft); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.consent-btn {
  min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; cursor: pointer;
}
.consent-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.consent-more { display: inline-block; margin-top: .65rem; color: var(--accent); font-size: .875rem; }

@media print { .consent { display: none; } }

/* ---------- Sélecteur de langue (créé par js/lang.js) ----------
   EN · FR dans l'en-tête ou le pied de page. */

.lang-switch { display: inline-flex; gap: .15rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; min-height: 32px;
  padding: 0 .4rem; border-radius: 4px; color: var(--ink-soft); text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); background: var(--accent-wash); }
.lang-switch a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Panneau « Affichage » (créé par js/display.js) et réglages d'accessibilité ----------
   Les réglages sont des attributs data-* sur <html>, posés par js/display-boot.js avant le rendu. */

.display-menu { position: relative; display: inline-flex; }
/* Les commandes de l'en-tête ont le même gabarit, qu'elles ouvrent un panneau ou mènent à une page. */
.display-toggle, .site-menu-button, .header-cta, .site .help-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; box-sizing: border-box;
  min-width: var(--control-h); min-height: var(--control-h); padding: 0 .7rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--sheet); color: var(--ink); cursor: pointer;
  font-size: .9375rem; font-style: normal; font-weight: 600; line-height: 1; white-space: nowrap;
}
.display-toggle:hover, .display-toggle[aria-expanded="true"], .site-menu-button:hover, .site-menu[open] .site-menu-button, .site .help-link:hover { background: var(--accent-wash); border-color: var(--accent); }
.display-panel {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 900;
  width: min(22rem, calc(100vw - 32px)); max-height: calc(100dvh - 5.25rem); overflow: auto;
  padding: 0 1rem 1rem;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: var(--shadow-float);
  font-family: var(--font-ui); font-size: .9375rem; line-height: 1.4; text-align: left;
}
/* Téléphone : pas la largeur de s'ancrer sous le bouton. */
@media (max-width: 520px) { .display-panel { position: fixed; right: 1rem; top: 4.25rem; } }
.display-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; padding: .9rem 0 .3rem; background: var(--sheet); }
.display-panel .display-head h2 { margin: 0; font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.display-close {
  width: 32px; height: 32px; border: 0; border-radius: var(--radius); background: none;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.display-close:hover { background: var(--accent-wash); color: var(--ink); }
.display-panel fieldset { margin: .6rem 0 0; padding: 0; border: 0; }
.display-panel legend .icon { width: 1.1em; margin-right: .3em; color: var(--ink); }
.display-panel legend { padding: 0; margin-bottom: .2rem; font-weight: 600; font-size: .875rem; color: var(--ink-soft); }
/* Une bascule par réglage, comme dans la barre d'outils. Le vrai bouton radio couvre son libellé : clavier et lecteurs d'écran n'y voient aucune différence. */
.display-options { display: flex; flex-wrap: wrap; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.display-panel label { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 36px; padding: .2rem .55rem; font-size: .875rem; text-align: center; cursor: pointer; }
.display-panel label + label { border-left: 1px solid var(--rule-strong); }
.display-panel label:hover { background: var(--accent-wash); }
.display-panel label:has(input:checked) { color: var(--paper); background: var(--ink); font-weight: 600; }
.display-panel label:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: -4px; }
.display-panel input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (forced-colors: active) { .display-panel label:has(input:checked) { forced-color-adjust: none; color: HighlightText; background: Highlight; } }
.display-more { margin-top: .75rem; border-top: 1px solid var(--rule); }
.display-more > summary { display: flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.display-more > summary::after { content: '▾'; margin-left: auto; color: var(--ink-soft); }
.display-more[open] > summary::after { content: '▴'; }
.display-more > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.display-more fieldset:first-of-type { margin-top: 0; }
.display-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--rule); }
.display-foot p { font-size: .8125rem; color: var(--ink-faint); }
.display-reset {
  min-height: 36px; padding: .3rem .8rem; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--sheet); cursor: pointer; white-space: nowrap;
}
.display-reset:hover { border-color: var(--ink-soft); }

/* Taille du texte : tout le site est en rem. */
:root[data-size="115"] { font-size: 115%; }
:root[data-size="130"] { font-size: 130%; }
:root[data-size="150"] { font-size: 150%; }

/* Police */
:root[data-font="hyperlegible"] {
  --font-display: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-title: var(--font-display);
  --font-ui: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-read: var(--font-ui);
}
:root[data-font="system"] {
  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: var(--font-display);
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: var(--font-ui);
}

:root[data-theme="dark"] {
  --tag-warm: #ffb59a;
  --tag-amber: #f0c674;
  --tag-cold: #a9c7f5;
  --tag-green: #8fe0c8;
  --tag-violet: #c9bbfa;
  --tag-neutral: #b8c8be;
  color-scheme: dark;
  --paper: #10251e;
  --sheet: #18332a;
  --ink: #e8ede6;
  --ink-soft: #b8c8be;
  --ink-faint: #9fb2a7;
  --rule: #2b4a40;
  --rule-strong: #547468;
  --accent: #6fd3be;
  --accent-strong: #a5e8d8;
  --accent-wash: #1a3f35;
  --on-accent: #10251e;
  --gold: #ddb968;
  --gold-ink: #e3c27a;
  --gold-wash: #3b3216;
  --gen-color: #e8ede6;
  --mt: #ff8a5c;
  --lk: #f08cb8;
  --marker-bible: #e8b96a;
  --marker-world: #5fd0c4;
  --civ-egypt: #123f3a;
  --civ-egypt-ink: #7fe0d2;
  --civ-mesopotamia: #1b3560;
  --civ-mesopotamia-ink: #a5c4ff;
  --civ-persia: #30265f;
  --civ-persia-ink: #c9bafa;
  --civ-greece-rome: #2c3544;
  --civ-greece-rome-ink: #cfd8e6;
  --civ-levant: #1b4128;
  --civ-levant-ink: #a5e3b4;
  --moment-origins: #4a3a10;
  --moment-origins-ink: #f2cf7a;
  --moment-exodus: #4f2e10;
  --moment-exodus-ink: #f7b57e;
  --moment-conquest-judges: #4f2015;
  --moment-conquest-judges-ink: #f5a48d;
  --moment-united-kingdom: #3f3022;
  --moment-united-kingdom-ink: #e8c9a4;
  --moment-divided-kingdoms: #3d3d10;
  --moment-divided-kingdoms-ink: #dedd8f;
  --moment-exile: #4f1f3d;
  --moment-exile-ink: #f2b2da;
  --moment-return: #38341a;
  --moment-return-ink: #fbe9b1;
  --moment-hellenistic: #4a2233;
  --moment-hellenistic-ink: #f2a6b8;
  --shadow-float: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* Contraste renforcé : encre noire, filets marqués, accent plus sombre, liens soulignés. */
:root[data-contrast="high"] {
  --paper: #ffffff;
  --sheet: #ffffff;
  --ink: #000000;
  --ink-soft: #1c1f22;
  --ink-faint: #2f3439;
  --rule: #6b7178;
  --rule-strong: #2f3439;
  --accent: #07463a;
  --accent-strong: #042a22;
  --accent-wash: #dcebe3;
  --on-accent: #ffffff;
  --gold-ink: #4f3800;
  --mt: #8f2a05;
  --lk: #5e0a32;
  --marker-bible: #573500;
  --marker-world: #074a45;
  /* Fonds pâles inchangés ; encres plus sombres. */
  --civ-egypt-ink: #043a36;
  --civ-mesopotamia-ink: #113471;
  --civ-persia-ink: #392181;
  --civ-greece-rome-ink: #2b3648;
  --civ-levant-ink: #0e421f;
  --moment-origins-ink: #4f3400;
  --moment-exodus-ink: #642a00;
  --moment-conquest-judges-ink: #681a0b;
  --moment-united-kingdom-ink: #3f2d13;
  --moment-divided-kingdoms-ink: #373809;
  --moment-exile-ink: #5a1240;
  --moment-return-ink: #4a3e08;
  --moment-hellenistic-ink: #612036;
}
:root[data-contrast="high"] a { text-decoration-thickness: 2px; }
:root[data-contrast="high"] :focus-visible { outline: 3px solid #000; box-shadow: 0 0 0 6px #ffd400; }

/* Contraste renforcé sur thème sombre : fond noir, encre blanche, teintes plus claires. */
:root[data-theme="dark"][data-contrast="high"] {
  --paper: #000000;
  --sheet: #000000;
  --ink: #ffffff;
  --ink-soft: #e8ede6;
  --ink-faint: #d0d8d2;
  --rule: #8fa096;
  --rule-strong: #d0d8d2;
  --accent: #9ff0dc;
  --accent-strong: #d5fff3;
  --accent-wash: #123a30;
  --on-accent: #000000;
  --gold-ink: #f2d999;
  --mt: #ffb08c;
  --lk: #ffb8d6;
  --marker-bible: #f5d08f;
  --marker-world: #9ff0e6;
  --civ-egypt-ink: #a8f0e5;
  --civ-mesopotamia-ink: #c5d9ff;
  --civ-persia-ink: #dcd2ff;
  --civ-greece-rome-ink: #e4eaf3;
  --civ-levant-ink: #c4f0cc;
  --moment-origins-ink: #f9e2a8;
  --moment-exodus-ink: #fbcfa8;
  --moment-conquest-judges-ink: #fac4b4;
  --moment-united-kingdom-ink: #f5dfc4;
  --moment-divided-kingdoms-ink: #eeedb5;
  --moment-exile-ink: #f9d0ea;
  --moment-return-ink: #f2e9bd;
  --moment-hellenistic-ink: #f9cbd9;
}
:root[data-theme="dark"][data-contrast="high"] :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #7a5a00; }

/* Espacement élargi (valeurs du critère WCAG 1.4.12). */
:root[data-spacing="wide"] body { line-height: 1.8; letter-spacing: .12em; word-spacing: .16em; }
/* Tout le texte suit le réglage, même ce qui fixe son propre espacement. Les dessins SVG, mesurés au pixel, gardent .06em. */
:root[data-spacing="wide"] body *:not(svg, svg *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
:root[data-spacing="wide"] svg { letter-spacing: .06em; }
:root[data-spacing="wide"] p { margin-bottom: .4em; }

/* Liens toujours soulignés */
:root[data-links="underline"] a,
:root[data-contrast="high"] main a,
:root[data-contrast="high"] footer a { text-decoration: underline !important; text-underline-offset: .18em; }

/* Animations réduites, à la demande du visiteur (le réglage du système est traité dans css/style.css). */
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
  transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important;
}


@media print { .lang-switch { display: none; } }

/* ---------- Couleurs par civilisation et par grand moment ----------
   Une classe civ-<clé> ou moment-<clé> expose --tint (fond pâle) et --tint-ink (encre) à son dessin. */

.civ-egypt { --tint: var(--civ-egypt); --tint-ink: var(--civ-egypt-ink); }
.civ-mesopotamia { --tint: var(--civ-mesopotamia); --tint-ink: var(--civ-mesopotamia-ink); }
.civ-persia { --tint: var(--civ-persia); --tint-ink: var(--civ-persia-ink); }
.civ-greece-rome { --tint: var(--civ-greece-rome); --tint-ink: var(--civ-greece-rome-ink); }
.civ-levant { --tint: var(--civ-levant); --tint-ink: var(--civ-levant-ink); }
.moment-origins { --tint: var(--moment-origins); --tint-ink: var(--moment-origins-ink); }
.moment-exodus { --tint: var(--moment-exodus); --tint-ink: var(--moment-exodus-ink); }
.moment-conquest-judges { --tint: var(--moment-conquest-judges); --tint-ink: var(--moment-conquest-judges-ink); }
.moment-united-kingdom { --tint: var(--moment-united-kingdom); --tint-ink: var(--moment-united-kingdom-ink); }
.moment-divided-kingdoms { --tint: var(--moment-divided-kingdoms); --tint-ink: var(--moment-divided-kingdoms-ink); }
.moment-exile { --tint: var(--moment-exile); --tint-ink: var(--moment-exile-ink); }
.moment-return { --tint: var(--moment-return); --tint-ink: var(--moment-return-ink); }
.moment-hellenistic { --tint: var(--moment-hellenistic); --tint-ink: var(--moment-hellenistic-ink); }

/* ---------- Liens externes ----------
   Ils ouvrent un nouvel onglet (target="_blank", rel="noopener noreferrer") : une flèche le montre ; la mention
   « (nouvel onglet) » est dans le lien même, en texte masqué (.sr-only) ou dans son nom accessible (js/links.js,
   pages construites : scripts/build.mjs le vérifie). La flèche n'a donc pas de texte de remplacement. */

a[target="_blank"]::after {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .25em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z'/%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='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (forced-colors: active) { a[target="_blank"]::after { background: LinkText; } }

/* Icônes (js/icons.js) : hautes d'une ligne, de la couleur du texte. */
.icon { display: inline-block; fill: currentColor; vertical-align: -.125em; }

/* Bouton Wikipédia : le « W » de Font Awesome (pas le logo du globe), aux couleurs des liens ; cible de 32 px au moins.
   Nom accessible « Wikipédia : <sujet> (nouvel onglet) » (aria-label) ; la flèche seulement quand le mot est écrit. */
a.wiki-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 32px; min-height: 32px; box-sizing: border-box;
  vertical-align: middle; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--accent-strong);
  font-size: .875rem; font-weight: 600;
}
a.wiki-link::after { content: none; }
a.wiki-link.has-text::after { content: ""; margin-left: 0; }
.wiki-icon { width: 1.25rem; height: 1rem; flex: none; overflow: visible; }
.wiki-w { fill: currentColor; }
a.wiki-link.has-text { min-height: 36px; padding: 0 .7rem; }
a.wiki-link:hover, a.wiki-link:focus-visible { background: var(--accent-wash); border-color: var(--accent); }
a.wiki-link:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }

/* ---------- « Connu par » des événements (frise, page des dates) ----------
   Distinct de la précision de la date : l'archéologie reconstitue, la tradition raconte après coup. */

.basis-tag {
  display: inline-block; padding: 0 .35rem; border: 1px solid var(--rule-strong); border-radius: 3px;
  font-family: var(--font-ui); font-size: .6875rem; font-weight: 600; letter-spacing: .03em; line-height: 1.45;
  text-transform: uppercase; vertical-align: .1em; color: var(--ink-soft); white-space: nowrap;
}
.basis-tag.is-ecrits { border-color: var(--accent); color: var(--accent); }
.basis-tag.is-archeologie { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-ink); }
.basis-tag.is-tradition { border-style: dashed; font-style: italic; }

/* Échec de chargement : le message et le bouton qui recharge la page. */
.load-failure-reload { min-height: 44px; margin: 0 1rem 2rem; padding: .5rem 1.25rem; font: inherit; font-weight: 600; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
.load-failure-reload:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
