/* ============================================================
   ROYAUME DE FRANCE — feuille de style principale
   Palette : bleu de France nuit, or, parchemin.
   Typographie : Cinzel (lettrines/labels), Cormorant Garamond
   (titres), EB Garamond (texte courant).
   ============================================================ */

/* ---------- Fontes ----------
   Cinzel, Cormorant Garamond et EB Garamond sont servies par le site
   lui-même : aucune requête n'est adressée à un tiers, et l'adresse IP du
   visiteur ne quitte pas le serveur. Les trois familles sont sous licence
   SIL Open Font License 1.1 ; l'attribution figure dans les mentions.

   Deux sous-ensembles par graisse : « latin » suffit au français, « latin-ext »
   n'est téléchargé que si un caractère l'exige — c'est le rôle d'unicode-range.
   ---------------------------------------------------------------- */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/cinzel-400-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: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/cinzel-400-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: 500;
  font-display: swap;
  src: url('/assets/fonts/cinzel-500-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: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cinzel-500-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: 600;
  font-display: swap;
  src: url('/assets/fonts/cinzel-600-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: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cinzel-600-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-500i-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-500i-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-500-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-500-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-600-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-600-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-700-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-700-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: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400i-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: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400i-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: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400-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: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-400-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: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-500-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: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-500-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: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-600-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: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/eb-garamond-600-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;
}

/* ---------- Jetons ---------- */
:root {
  --seme: url('/assets/img/seme.svg');
  --seme-faible: url('/assets/img/seme-faible.svg');
  --bleu-nuit: #0b1b3a;
  --bleu-profond: #071129;
  --bleu-royal: #16305f;
  --bleu-clair: #24417a;
  --or: #c8a44d;
  --or-clair: #e6cc85;
  --or-pale: #f0e3bd;
  --or-trait: #96762c;
  --or-sombre: #806322;
  --parchemin: #f7f2e6;
  --parchemin-2: #efe7d2;
  --parchemin-3: #e6dabf;
  --encre: #221f19;
  --encre-douce: #4a443a;
  --rouge: #7b1e26;
  --blanc-casse: #fdfbf5;

  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-titre: 'Cormorant Garamond', Georgia, serif;
  --f-texte: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --largeur: 1200px;
  --largeur-lecture: 46em;
  --transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  --ombre-carte: 0 2px 6px rgba(11, 27, 58, 0.06), 0 14px 40px rgba(11, 27, 58, 0.1);
  --ombre-carte-hover: 0 4px 10px rgba(11, 27, 58, 0.1), 0 24px 60px rgba(11, 27, 58, 0.18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.155rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--parchemin);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--bleu-royal); text-decoration-color: rgba(200, 164, 77, 0.55); text-underline-offset: 3px; transition: color 0.25s ease; }
a:hover { color: var(--or-sombre); }
::selection { background: rgba(200, 164, 77, 0.35); }

.acces-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--bleu-nuit); color: var(--or-clair); padding: 0.7em 1.2em; font-family: var(--f-display);
}
.acces-contenu:focus { left: 0; }

/* Lien or */
.lien-or {
  font-family: var(--f-display);
  font-size: 0.78em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--or-sombre);
  border-bottom: 1px solid rgba(200, 164, 77, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.lien-or:hover { color: var(--bleu-royal); border-color: var(--bleu-royal); }
.sec-sombre .lien-or, .sec-final .lien-or { color: var(--or-clair); }
.sec-sombre .lien-or:hover { color: #fff; border-color: #fff; }

/* Boutons */
.bouton {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-or {
  background: linear-gradient(160deg, var(--or-clair), var(--or) 45%, var(--or-sombre));
  color: var(--bleu-profond);
  box-shadow: 0 6px 18px rgba(200, 164, 77, 0.35);
}
.bouton-or:hover { box-shadow: 0 10px 26px rgba(200, 164, 77, 0.5); color: var(--bleu-profond); }
.bouton-contour { border-color: rgba(200, 164, 77, 0.7); color: var(--or-clair); background: transparent; }
.bouton-contour:hover { background: rgba(200, 164, 77, 0.12); color: var(--or-pale); }
.sec-parchemin .bouton-contour, .page-lecture .bouton-contour { color: var(--or-sombre); border-color: var(--or-sombre); }
.bouton-petit { padding: 0.65em 1.3em; font-size: 0.72rem; }

/* ---------- Barre de progression ---------- */
.progression {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 260; pointer-events: none;
}
.progression span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--or-sombre), var(--or-clair));
}

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 240;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.entete-inner {
  max-width: var(--largeur); margin: 0 auto; padding: 0.65rem 1.4rem;
  display: flex; align-items: center; gap: 2rem;
}
.entete--fond {
  background: rgba(7, 17, 41, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(200, 164, 77, 0.22);
  box-shadow: 0 10px 30px rgba(4, 9, 22, 0.35);
}
.entete--cache { transform: translateY(-110%); }

.marque { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.marque-lys { width: 27px; height: auto; color: var(--or); flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); transition: transform 0.4s ease; }
.marque:hover .marque-lys { transform: scale(1.08); }
.marque-texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque-nom {
  font-family: var(--f-display); font-size: 1.02rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--or-pale);
}
.marque-devise {
  font-family: var(--f-titre); font-style: italic; font-size: 0.72rem;
  color: rgba(230, 204, 133, 0.75); letter-spacing: 0.06em;
}

.nav-principale { margin-left: auto; }
.nav-principale > ul { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-lien {
  display: block; padding: 0.8em 0.95em;
  font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(253, 251, 245, 0.88); text-decoration: none; transition: color 0.25s ease;
}
.nav-lien::after {
  content: ''; position: absolute; left: 0.95em; right: 0.95em; bottom: 0.45em; height: 1px;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.nav-item:hover .nav-lien, .nav-item:focus-within .nav-lien, .nav-item.is-active .nav-lien { color: var(--or-clair); }
.nav-item:hover .nav-lien::after, .nav-item:focus-within .nav-lien::after, .nav-item.is-active .nav-lien::after { transform: scaleX(1); }

.menu-deroulant {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 330px;
  background: linear-gradient(180deg, #0d2044, var(--bleu-profond));
  border: 1px solid rgba(200, 164, 77, 0.28);
  box-shadow: 0 30px 70px rgba(4, 9, 22, 0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  padding: 0.6rem;
}
.menu-deroulant::before {
  content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #0d2044; border-left: 1px solid rgba(200, 164, 77, 0.28); border-top: 1px solid rgba(200, 164, 77, 0.28);
}
.nav-item:hover .menu-deroulant, .nav-item:focus-within .menu-deroulant {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-deroulant ul { list-style: none; margin: 0; padding: 0; }
.menu-deroulant a {
  display: block; padding: 0.7em 0.9em; text-decoration: none;
  transition: background 0.25s ease;
}
.menu-deroulant a:hover { background: rgba(200, 164, 77, 0.1); }
.menu-sous-titre {
  display: block; font-family: var(--f-titre); font-weight: 600; font-size: 1.06rem;
  color: var(--or-pale); letter-spacing: 0.02em;
}
.menu-sous-desc { display: block; font-size: 0.85rem; color: rgba(253, 251, 245, 0.6); }

.entete-actions { display: flex; align-items: center; gap: 0.6rem; }
.bouton-recherche {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(200, 164, 77, 0.1); border: 1px solid rgba(200, 164, 77, 0.35);
  color: var(--or-pale); padding: 0.5em 0.8em; cursor: pointer;
  font-family: var(--f-texte); transition: background 0.3s ease, border-color 0.3s ease;
}
.bouton-recherche:hover { background: rgba(200, 164, 77, 0.2); border-color: var(--or); }
.bouton-recherche svg { width: 16px; height: 16px; }
.raccourci { font-size: 0.7rem; letter-spacing: 0.05em; opacity: 0.7; }

.bouton-menu { display: none; }

/* Menu mobile */
.menu-mobile {
  position: fixed; inset: 0; z-index: 230;
  background: linear-gradient(165deg, var(--bleu-profond), #0e2148 70%);
  overflow-y: auto; padding: 6rem 2rem 3rem;
}
.menu-mobile-inner { max-width: 420px; margin: 0 auto; display: grid; gap: 1.8rem; }
.menu-mobile-titre {
  font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--or); margin: 0 0 0.5rem; border-bottom: 1px solid rgba(200, 164, 77, 0.25); padding-bottom: 0.5rem;
}
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile ul a {
  display: block; padding: 0.5em 0; text-decoration: none;
  font-family: var(--f-titre); font-size: 1.5rem; font-weight: 600; color: var(--blanc-casse);
}
.menu-mobile ul a:hover { color: var(--or-clair); }
.menu-mobile-pied { text-align: center; padding-top: 1rem; }
.menu-mobile-lys { width: 40px; color: rgba(200, 164, 77, 0.4); }

/* ---------- Recherche ---------- */
.recherche-voile {
  position: fixed; inset: 0; z-index: 280;
  background: rgba(4, 9, 22, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 1.2rem 2rem;
  animation: apparition 0.25s ease;
}
@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }
.recherche-boite {
  width: 100%; max-width: 640px;
  background: var(--blanc-casse);
  border: 1px solid rgba(200, 164, 77, 0.5);
  box-shadow: 0 40px 120px rgba(4, 9, 22, 0.6);
  animation: montee 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes montee { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.recherche-champ-ligne {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--parchemin-3);
}
.recherche-champ-ligne svg { width: 20px; height: 20px; color: var(--or-sombre); flex: none; }
#champ-recherche {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--f-titre); font-size: 1.35rem; color: var(--encre);
}
#fermer-recherche {
  border: 1px solid var(--parchemin-3); background: var(--parchemin);
  font-family: var(--f-texte); font-size: 0.75rem; color: var(--encre-douce);
  padding: 0.3em 0.6em; cursor: pointer;
}
.recherche-resultats { max-height: 52vh; overflow-y: auto; }
.recherche-resultat {
  display: block; padding: 0.75rem 1.2rem; text-decoration: none;
  border-bottom: 1px solid rgba(230, 218, 191, 0.5);
}
.recherche-resultat.is-actif, .recherche-resultat:hover { background: rgba(200, 164, 77, 0.12); }
.recherche-resultat-type {
  font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--or-sombre);
}
.recherche-resultat-titre { display: block; font-family: var(--f-titre); font-weight: 600; font-size: 1.15rem; color: var(--encre); }
.recherche-resultat-desc { display: block; font-size: 0.88rem; color: var(--encre-douce); }
.recherche-vide { padding: 2rem 1.2rem; text-align: center; color: var(--encre-douce); font-style: italic; }
.recherche-pied {
  padding: 0.6rem 1.2rem; font-size: 0.75rem; color: var(--encre-douce);
  border-top: 1px solid var(--parchemin-3); display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
}
.recherche-pied kbd {
  font-family: inherit; border: 1px solid var(--parchemin-3); background: #fff;
  padding: 0 0.4em; border-radius: 3px; font-size: 0.7rem;
}

/* ---------- Filets & ornements ---------- */
.filet {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin: 1.3rem auto; color: var(--or-sombre); max-width: 340px;
}
.filet-ligne { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.filet-ligne:last-child { background: linear-gradient(90deg, currentColor, transparent); }
.filet-losange { width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); flex: none; }
.filet-lys { width: 17px; height: auto; flex: none; }
.filet-or { color: var(--or); }
.filet-gauche { margin-left: 0; justify-content: flex-start; max-width: 260px; }
.filet-heros { max-width: 420px; }

.ornement { display: flex; justify-content: center; margin: 2.6rem 0; color: var(--or-sombre); }
.ornement::before, .ornement::after {
  content: ''; flex: 0 1 90px; height: 1px; align-self: center;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornement::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornement-lys { width: 17px; height: 22px; margin: 0 1rem; flex: none; fill: currentColor; }

/* ---------- Révélation au défilement ---------- */
/* L'apparition au défilement est une amélioration, jamais une condition de
   lecture : sans JavaScript, la classe « js » n'est pas posée et tout reste
   visible. */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Héros (accueil) ---------- */
.heros {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #142b57 0%, var(--bleu-nuit) 46%, var(--bleu-profond) 100%);
  overflow: hidden; color: var(--blanc-casse);
  padding: 7rem 1.4rem 5rem;
}
.heros-fond {
  position: absolute; inset: -2%;
  background:
    radial-gradient(55% 40% at 50% 118%, rgba(200, 164, 77, 0.16), transparent 70%),
    radial-gradient(35% 28% at 12% 8%, rgba(36, 65, 122, 0.5), transparent 70%),
    radial-gradient(35% 28% at 88% 6%, rgba(36, 65, 122, 0.45), transparent 70%);
}
.heros-seme { position: absolute; inset: -12% 0; background-image: var(--seme); background-repeat: repeat; opacity: 0.75; }
.heros-halo {
  position: absolute; width: 68vmin; height: 68vmin; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  background: radial-gradient(circle, rgba(200, 164, 77, 0.13), transparent 62%);
  pointer-events: none;
}
.heros-grand-lys {
  position: absolute; left: 50%; top: 50%;
  width: min(58vmin, 520px);
  transform: translate(-50%, -54%);
  color: rgba(200, 164, 77, 0.06);
  filter: drop-shadow(0 0 40px rgba(200, 164, 77, 0.1));
  pointer-events: none;
}
.heros-grand-lys-svg { width: 100%; height: auto; animation: respiration 9s ease-in-out infinite; }
@keyframes respiration {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.035); opacity: 1; }
}

.heros-contenu { position: relative; text-align: center; max-width: 1120px; }
/* « de France » forme un bloc : entre deux inline-block, un simple espace
   insécable ne retient pas le navigateur, il faut le dire explicitement.
   Le titre se coupe donc après « Royaume », jamais après « de ». */
.heros-groupe { white-space: nowrap; }
.heros-surtitre {
  font-family: var(--f-display); font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  letter-spacing: 0.55em; text-transform: uppercase; color: rgba(230, 204, 133, 0.85);
  margin: 0 0 1.6rem; text-indent: 0.55em;
  animation: fondu 1.2s ease both 0.2s;
}
.heros-surtitre span { color: var(--or-clair); }
.heros-titre {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.6rem, 8.2vw, 6.2rem);
  line-height: 1.04; margin: 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.heros-mot {
  display: inline-block;
  background: linear-gradient(175deg, #f6ead0 8%, var(--or-clair) 38%, var(--or) 62%, var(--or-sombre) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.45));
  animation: lever 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both calc(0.25s + var(--i, 0) * 0.16s);
}
.heros-mot--de { font-size: 0.55em; vertical-align: 0.24em; letter-spacing: 0.2em; }
@keyframes lever { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.heros-sous {
  font-family: var(--f-titre); font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-style: italic;
  color: rgba(253, 251, 245, 0.88); margin: 1.4rem auto 2.4rem; max-width: 44em;
  animation: fondu 1.2s ease both 0.9s;
}
.heros-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fondu 1.2s ease both 1.15s; }
.heros-indice {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-decoration: none; color: rgba(230, 204, 133, 0.75);
  animation: fondu 1.4s ease both 1.7s;
}
.heros-indice-texte { font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; text-indent: 0.34em; }
.heros-indice-fleche { width: 1px; height: 44px; background: linear-gradient(180deg, var(--or), transparent); position: relative; overflow: hidden; }
.heros-indice-fleche::after {
  content: ''; position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--or-pale); animation: goutte 2.2s ease-in-out infinite;
}
@keyframes goutte { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ---------- Bandeau citation ---------- */
.bandeau-citation { background: var(--bleu-profond); color: var(--blanc-casse); padding: 4.5rem 1.4rem; border-top: 1px solid rgba(200, 164, 77, 0.25); }
.bandeau-citation-inner { max-width: 830px; margin: 0 auto; text-align: center; }
.bandeau-citation blockquote { margin: 0; }
.bandeau-citation p {
  font-family: var(--f-titre); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.45;
  margin: 0 0 1.2rem; color: var(--or-pale);
}
.bandeau-citation em { color: #fff; font-style: italic; }
.bandeau-citation footer { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(230, 204, 133, 0.7); }
.bandeau-citation footer a { color: inherit; }

/* ---------- Bande de statistiques ---------- */
.bande-stats { background: linear-gradient(180deg, var(--parchemin), var(--parchemin-2)); border-bottom: 1px solid var(--parchemin-3); }
.bande-stats-inner {
  max-width: var(--largeur); margin: 0 auto; padding: 2.6rem 1.4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem; text-align: center;
}
.stat-nombre {
  display: block; font-family: var(--f-display); font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--bleu-nuit); line-height: 1;
}
.stat-label { font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or-sombre); }

/* ---------- Sections ---------- */
.sec { padding: 5.5rem 1.4rem; position: relative; overflow: hidden; }
.sec-inner { max-width: var(--largeur); margin: 0 auto; position: relative; }
.sec-parchemin { background: var(--parchemin); }
.sec-parchemin:nth-of-type(even) { background: var(--blanc-casse); }
.sec-sombre {
  background: linear-gradient(180deg, var(--bleu-profond), var(--bleu-nuit) 55%, var(--bleu-profond));
  color: var(--blanc-casse);
}
.sec-sombre .sec-titre, .sec-sacre .sec-titre, .sec-final .sec-titre { color: var(--or-pale); }
.sec-sacre .sec-surtitre { color: var(--or); }
.sec-seme { position: absolute; inset: 0; background-image: var(--seme); background-repeat: repeat; opacity: 0.55; pointer-events: none; }

.sec-tete { max-width: 800px; margin: 0 auto 3rem; }
/* Quand une page enchaîne plusieurs sections, le titre de la suivante ne doit
   pas venir buter contre le contenu de la précédente. */
.page-index-inner > * + .sec-tete { margin-top: 6rem; }
.page-index-inner > .ariane + .sec-tete { margin-top: 0; }
@media (max-width: 760px) { .page-index-inner > * + .sec-tete { margin-top: 4rem; } }
.sec-tete--centre { text-align: center; }
.sec-surtitre {
  font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--or-sombre); margin: 0 0 0.7rem;
}
.sec-sombre .sec-surtitre { color: var(--or); }
.sec-titre {
  font-family: var(--f-titre); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12;
  color: var(--bleu-nuit); margin: 0;
}
.sec-titre--petit { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.sec-intro { color: var(--encre-douce); font-size: 1.08rem; margin: 1rem auto 0; max-width: 40em; }
.sec-sombre .sec-intro { color: rgba(253, 251, 245, 0.75); }
.sec-suite { text-align: center; margin: 2.6rem 0 0; }

/* ---------- Cartes dynasties ---------- */
.dynasties-grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem;
}
.carte-dynastie {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.8rem 1.4rem 1.4rem; min-height: 240px;
  background: var(--blanc-casse);
  border: 1px solid var(--parchemin-3);
  text-decoration: none; color: var(--encre);
  box-shadow: var(--ombre-carte);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.carte-dynastie::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--or-sombre), var(--or-clair), var(--or-sombre));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.carte-dynastie:hover { transform: translateY(-6px); box-shadow: var(--ombre-carte-hover); border-color: rgba(200, 164, 77, 0.6); color: var(--encre); }
.carte-dynastie:hover::before { transform: scaleX(1); }
.carte-dynastie-num {
  position: absolute; top: 0.6rem; right: 0.9rem;
  font-family: var(--f-display); font-size: 2.6rem; color: rgba(200, 164, 77, 0.16); line-height: 1;
}
.carte-dynastie-periode { font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-sombre); }
.carte-dynastie-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.5rem; color: var(--bleu-nuit); line-height: 1.1; }
.carte-dynastie-accroche { font-size: 0.95rem; color: var(--encre-douce); font-style: italic; flex: 1; }
.carte-dynastie-pied { font-size: 0.82rem; color: var(--or-sombre); border-top: 1px solid var(--parchemin-3); padding-top: 0.7rem; }

/* ---------- Cartes rois ---------- */
.rois-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
/* Les huit grands rois de l'accueil tiennent sur deux lignes pleines de quatre,
   plutôt qu'une ligne de cinq suivie d'une ligne bancale de trois. */
.sec-rois .rois-grille { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .sec-rois .rois-grille { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .sec-rois .rois-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .sec-rois .rois-grille { grid-template-columns: 1fr; } }
.carte-roi {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem;
  padding: 1.9rem 1.1rem 1.5rem;
  background: rgba(253, 251, 245, 0.04);
  border: 1px solid rgba(200, 164, 77, 0.25);
  text-decoration: none; color: var(--blanc-casse);
  transition: transform var(--transition), background 0.4s ease, border-color 0.4s ease, box-shadow var(--transition);
}
.carte-roi:hover {
  transform: translateY(-6px);
  background: rgba(200, 164, 77, 0.08);
  border-color: rgba(200, 164, 77, 0.65);
  box-shadow: 0 22px 50px rgba(4, 9, 22, 0.45);
  color: var(--blanc-casse);
}
.monogramme { display: inline-block; width: 74px; height: 74px; color: var(--or); margin-bottom: 0.6rem; }
.monogramme svg { width: 100%; height: 100%; }
.monogramme-lettre { font-family: var(--f-titre); font-size: 46px; fill: currentColor; font-weight: 600; }
.monogramme-numeral { font-family: var(--f-display); font-size: 15px; letter-spacing: 2px; fill: currentColor; opacity: 0.85; }
.carte-roi-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.carte-roi-epithete { font-style: italic; font-size: 0.92rem; color: rgba(230, 204, 133, 0.9); }
.carte-roi-regne { font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.18em; color: rgba(253, 251, 245, 0.6); margin-top: 0.4rem; }
.carte-roi--clair { background: var(--blanc-casse); border-color: var(--parchemin-3); color: var(--encre); box-shadow: var(--ombre-carte); }
.carte-roi--clair:hover { background: #fff; border-color: rgba(200, 164, 77, 0.6); box-shadow: var(--ombre-carte-hover); color: var(--encre); }
.carte-roi--clair .carte-roi-nom { color: var(--bleu-nuit); }
.carte-roi--clair .carte-roi-epithete { color: var(--or-sombre); }
.carte-roi--clair .carte-roi-regne { color: var(--encre-douce); }

/* ---------- Section sacre (accueil) ---------- */
.sec-sacre { background: var(--bleu-profond); color: var(--blanc-casse); padding: 6.5rem 1.4rem; }
.sacre-fond {
  position: absolute; inset: -20% 0;
  background:
    radial-gradient(60% 50% at 80% 50%, rgba(200, 164, 77, 0.12), transparent 70%),
    radial-gradient(40% 60% at 15% 20%, rgba(36, 65, 122, 0.45), transparent 70%);
}
.sacre-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3.5rem; align-items: center; }
.sacre-texte p { color: rgba(253, 251, 245, 0.85); max-width: 34em; }
.sacre-formule { font-family: var(--f-titre); font-size: 1.5rem; color: var(--or-pale); }
.sacre-visuel {
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  margin: 0; text-align: center;
}
.sacre-medaillon {
  width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(200, 164, 77, 0.5);
  outline: 1px solid rgba(200, 164, 77, 0.18); outline-offset: 12px;
  /* Le cercle sert de masque : l'enluminure y est rognée en médaillon. */
  overflow: hidden;
  animation: respiration 8s ease-in-out infinite;
}
.sacre-medaillon img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bande chronologie (accueil) ---------- */
.chrono-bande { overflow: hidden; position: relative; padding: 0.6rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chrono-bande-piste { display: flex; gap: 1rem; width: max-content; animation: defilement 70s linear infinite; }
.chrono-bande:hover .chrono-bande-piste { animation-play-state: paused; }
@keyframes defilement { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chrono-jalon {
  flex: none; width: 235px; padding: 1.1rem 1.2rem;
  background: var(--blanc-casse); border: 1px solid var(--parchemin-3); border-left: 3px solid var(--or);
  text-decoration: none; color: var(--encre);
  box-shadow: var(--ombre-carte);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.chrono-jalon:hover { transform: translateY(-4px); box-shadow: var(--ombre-carte-hover); color: var(--encre); }
.chrono-jalon-annee { display: block; font-family: var(--f-display); color: var(--or-sombre); font-size: 0.95rem; letter-spacing: 0.08em; }
.chrono-jalon-titre { display: block; font-family: var(--f-titre); font-weight: 600; font-size: 1.08rem; line-height: 1.25; color: var(--bleu-nuit); }

/* ---------- Éphéméride & anecdotes ---------- */
.sec-ephemeride, .sec-anecdote { padding: 4.5rem 1.4rem; }
.ephemeride, .anecdote-boite { max-width: 780px; margin: 0 auto; text-align: center; }
.ephemeride-date { font-family: var(--f-titre); font-size: 1.6rem; color: var(--or-pale); margin: 0.4rem 0 1.2rem; }
.ephemeride-evt { margin: 0.8rem 0; }
.ephemeride-evt-annee { font-family: var(--f-display); color: var(--or); letter-spacing: 0.1em; margin-right: 0.8rem; }
.ephemeride-evt p { display: inline; color: rgba(253, 251, 245, 0.85); }
.anecdote-texte { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.5; color: var(--blanc-casse); margin: 1rem 0 1.6rem; }
.saviez-vous-lys { width: 14px; height: auto; vertical-align: -2px; margin-right: 0.4rem; }

/* ---------- Deux colonnes / listes élégantes ---------- */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.liste-elegante { list-style: none; margin: 1.4rem 0; padding: 0; }
.liste-elegante li { border-bottom: 1px solid var(--parchemin-3); }
.liste-elegante a {
  display: flex; flex-direction: column; padding: 0.85rem 0.4rem;
  text-decoration: none; transition: background 0.3s ease, padding-left 0.3s ease;
}
.liste-elegante a:hover { background: rgba(200, 164, 77, 0.07); padding-left: 0.9rem; }
.liste-elegante-titre { font-family: var(--f-titre); font-weight: 600; font-size: 1.25rem; color: var(--bleu-nuit); }
.liste-annee { font-family: var(--f-display); font-size: 0.75em; color: var(--or-sombre); margin-left: 0.5em; letter-spacing: 0.08em; }
.liste-elegante-detail { font-size: 0.9rem; color: var(--encre-douce); font-style: italic; }

/* ---------- Figures ---------- */
/* Douze personnages, en trois lignes pleines de quatre. */
.figures-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .figures-grille { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .figures-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .figures-grille { grid-template-columns: 1fr; } }
.carte-figure {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.5rem 1.3rem;
  border: 1px solid rgba(200, 164, 77, 0.25);
  background: rgba(253, 251, 245, 0.04);
  text-decoration: none; color: var(--blanc-casse);
  transition: transform var(--transition), border-color 0.4s ease, background 0.4s ease;
}
.carte-figure:hover { transform: translateY(-5px); border-color: rgba(200, 164, 77, 0.65); background: rgba(200, 164, 77, 0.09); color: var(--blanc-casse); }
.carte-figure-nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.carte-figure-epithete { font-style: italic; font-size: 0.9rem; color: rgba(230, 204, 133, 0.9); }
.carte-figure-dates { font-family: var(--f-display); font-size: 0.65rem; letter-spacing: 0.16em; color: rgba(253, 251, 245, 0.55); margin-top: 0.5rem; }

/* ---------- Bibliothèque ---------- */
.biblio-liste { max-width: 880px; margin: 0 auto; }
.biblio-item {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 1.4rem; align-items: center;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--parchemin-3);
  text-decoration: none; color: var(--encre);
  transition: background 0.3s ease;
}
.biblio-item:first-child { border-top: 1px solid var(--parchemin-3); }
.biblio-item:hover { background: rgba(200, 164, 77, 0.08); color: var(--encre); }
.biblio-date { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-sombre); }
.biblio-titre { font-family: var(--f-titre); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--bleu-nuit); }
.biblio-extrait { display: block; font-family: var(--f-texte); font-weight: 400; font-size: 0.9rem; color: var(--encre-douce); font-style: italic; margin-top: 0.2rem; }
.biblio-fleche { color: var(--or-sombre); font-size: 1.2rem; transition: transform 0.3s ease; }
.biblio-item:hover .biblio-fleche { transform: translateX(6px); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.chip {
  font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55em 1em; text-decoration: none;
  border: 1px solid rgba(150, 118, 44, 0.45); color: var(--or-sombre);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.chip:hover { background: var(--bleu-nuit); color: var(--or-clair); border-color: var(--bleu-nuit); transform: translateY(-2px); }
.chip-statique { cursor: default; color: var(--or-pale); border-color: rgba(200, 164, 77, 0.45); }
.chip-statique:hover { background: transparent; color: var(--or-pale); border-color: rgba(200, 164, 77, 0.45); transform: none; }

/* ---------- Section finale ---------- */
.sec-final {
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(200, 164, 77, 0.16), transparent 65%),
    linear-gradient(180deg, var(--bleu-nuit), var(--bleu-profond));
  color: var(--blanc-casse); padding: 6.5rem 1.4rem; text-align: center;
}
.sec-final-inner { max-width: 760px; margin: 0 auto; }
.final-lys { width: 44px; color: var(--or); margin-bottom: 1.6rem; }
.final-citation { font-family: var(--f-titre); font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.5; color: var(--or-pale); }
.final-source { font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(230, 204, 133, 0.7); margin: 1rem 0 2.4rem; }

/* ---------- Hero de page intérieure ---------- */
.hero-page {
  position: relative; overflow: hidden;
  background: radial-gradient(110% 100% at 50% -10%, var(--bleu-royal) 0%, var(--bleu-nuit) 55%, var(--bleu-profond) 100%);
  color: var(--blanc-casse);
  padding: 9.5rem 1.4rem 4.5rem;
  text-align: center;
}
.hero-page-fond { position: absolute; inset: 0; background-image: var(--seme-faible); background-repeat: repeat; opacity: 0.8; }
.hero-page-lys {
  position: absolute; right: -4%; bottom: -18%;
  width: min(340px, 40vw); color: rgba(200, 164, 77, 0.08); transform: rotate(-8deg);
  pointer-events: none;
}
.hero-page-inner { position: relative; max-width: 880px; margin: 0 auto; }
.hero-page-surtitre {
  font-family: var(--f-display); font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--or); margin: 0 0 1rem; text-indent: 0.32em;
}
.hero-page-titre {
  font-family: var(--f-titre); font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.1;
  margin: 0; color: var(--blanc-casse);
}
.hero-page-nom { display: block; margin-top: 0.6rem; }
.hero-page--roi .monogramme { width: 92px; height: 92px; }
.hero-page-sous { font-family: var(--f-titre); font-style: italic; font-size: 1.25rem; color: rgba(253, 251, 245, 0.82); max-width: 40em; margin: 0.6rem auto 0; }
.epithete { color: var(--or-pale); }
.signature { color: var(--or-pale); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.6rem; }

/* ---------- Pages de lecture ---------- */
.page-lecture { padding: 3.4rem 1.4rem 5rem; }
.page-lecture-inner { max-width: 980px; margin: 0 auto; }
.page-index-inner { max-width: var(--largeur); }

.ariane { margin-bottom: 2rem; }
.ariane ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; color: var(--encre-douce); }
.ariane a { color: var(--or-sombre); text-decoration: none; }
.ariane a:hover { text-decoration: underline; }
.ariane .sep { color: var(--parchemin-3); }

.lede {
  font-family: var(--f-titre); font-size: 1.45rem; line-height: 1.5;
  color: var(--bleu-royal); max-width: 34em; margin: 0 auto 2.4rem; text-align: center;
}
.lede-document { font-style: italic; }

.lecture-deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3.4rem; align-items: start; }
.lecture-avec-toc { max-width: var(--largeur-lecture); margin: 0 auto; }
.lecture-principale { min-width: 0; }

 /* Une scène large — bataille, château — se donne en pleine largeur de lecture. */
.planche-large { max-width: var(--largeur-lecture); margin: 0 auto 3rem; }
.planche-large img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--parchemin-3);
  box-shadow: var(--ombre-carte);
}
.planche-large .portrait-legende { padding: 0.7rem 0 0; }

/* Armoiries de la province, en tête de la fiche. */
.blason { margin: 0 0 1.2rem; text-align: center; }
.blason img { display: block; width: 92px; height: auto; margin: 0 auto; }

/* La colonne latérale reprend le cadre de la fiche royale ; elle n'ajoute que
   ce qu'il faut pour qu'une planche vienne s'y loger à fleur de bord. */
.planche { position: sticky; top: 96px; }
.planche:not(.fiche) {
  border: 1px solid var(--parchemin-3);
  background: var(--blanc-casse);
  box-shadow: var(--ombre-carte);
  padding: 1.6rem 1.5rem;
}
.planche .portrait { margin-bottom: 1.2rem; }
.planche .portrait:only-child { margin-bottom: 0; }

/* Planche : le tableau garde ses proportions, jamais recadré. */
.portrait { margin: -1.6rem -1.5rem 1.4rem; }
.portrait-img {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--parchemin-3);
}
.portrait-legende {
  font-size: 0.72rem; line-height: 1.5; color: var(--encre-douce);
  padding: 0.7rem 1.5rem 0; margin: 0;
}
.portrait-legende em, .portrait-legende i { font-style: italic; }

/* Fiche royale */
.fiche {
  position: sticky; top: 96px;
  border: 1px solid var(--parchemin-3);
  background: var(--blanc-casse);
  box-shadow: var(--ombre-carte);
  padding: 1.6rem 1.5rem;
}
.fiche-lys { display: block; width: 20px; height: 26px; margin: 0 auto 0.7rem; color: var(--or); }
.fiche-titre {
  font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  text-align: center; color: var(--or-sombre); margin: 0 0 1.2rem;
  border-bottom: 1px solid var(--parchemin-3); padding-bottom: 1rem;
}
.fiche dl { margin: 0; }
.fiche-ligne { padding: 0.55rem 0; border-bottom: 1px solid rgba(230, 218, 191, 0.45); }
.fiche-ligne:last-child { border-bottom: none; }
.fiche dt { font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-sombre); }
.fiche dd { margin: 0.15rem 0 0; font-size: 0.98rem; color: var(--encre); }
.fiche-lien { display: inline-block; margin-top: 1.2rem; }

/* Sommaire */
.toc {
  border-left: 2px solid var(--or); background: rgba(200, 164, 77, 0.06);
  padding: 1.1rem 1.5rem; margin: 0 0 2.4rem;
}
.toc-titre { font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or-sombre); margin: 0 0 0.6rem; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; }
.toc li { margin: 0.3rem 0; }
.toc a { text-decoration: none; color: var(--encre-douce); }
.toc a:hover, .toc a.est-actif { color: var(--or-sombre); }

/* Corps d'article */
.article-corps { font-size: 1.155rem; }
.article-corps > p { margin: 0 0 1.25em; }
.article-corps h2 {
  font-family: var(--f-titre); font-weight: 600; font-size: 1.85rem; line-height: 1.2;
  color: var(--bleu-nuit); margin: 2.2em 0 0.7em;
  scroll-margin-top: 110px;
}
.article-corps h2::after {
  content: ''; display: block; width: 64px; height: 2px; margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--or), transparent);
}
.article-corps h3 { font-family: var(--f-titre); font-weight: 700; font-size: 1.35rem; color: var(--bleu-royal); margin: 1.8em 0 0.5em; }
.article-corps ul, .article-corps ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.article-corps li { margin: 0.35em 0; }
.article-corps strong { color: var(--bleu-nuit); }

/* Lettrine */
p.initiale::first-letter {
  font-family: var(--f-titre); font-weight: 700;
  font-size: 4.6em; line-height: 0.78;
  float: left; padding: 0.06em 0.12em 0 0;
  color: var(--or-sombre);
  text-shadow: 1px 2px 0 rgba(200, 164, 77, 0.25);
}

 /* Articles d'un édit : la cote se détache de la prose qu'elle ouvre. */
.article-corps .article-loi { margin-top: 1.5em; }
.article-corps .article-loi-num {
  font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--or-sombre);
  display: block; margin-bottom: 0.3em;
}

/* Chapô : la voix de l'éditeur avant celle du document */
.article-corps .chapo-doc {
  font-size: 0.97rem; line-height: 1.72;
  color: var(--encre-douce);
  border-left: 2px solid var(--or-trait);
  margin: 0; padding: 0 0 0.9em 1.35rem;
}
.article-corps .chapo-doc-fin { padding-bottom: 0; }
.article-corps .chapo-doc + :not(.chapo-doc) { margin-top: 2.4em; }

/* Les traités : l'année d'abord, comme une borne. */
.carte-traite {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.6rem 1.5rem; background: var(--blanc-casse);
  border: 1px solid var(--parchemin-3); border-top: 3px solid var(--or-trait);
  box-shadow: var(--ombre-carte); text-decoration: none; color: var(--encre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte-traite:hover { transform: translateY(-4px); box-shadow: var(--ombre-carte-hover); color: var(--encre); }
.carte-traite-annee { font-family: var(--f-titre); font-size: 1.7rem; line-height: 1; color: var(--or-sombre); }
.carte-traite-titre { font-family: var(--f-titre); font-size: 1.12rem; line-height: 1.25; color: var(--bleu-nuit); }
.carte-traite-effet { font-size: 0.9rem; line-height: 1.55; color: var(--encre-douce); margin-top: auto; }

/* Idées reçues : la carte annonce le verdict avant l'énoncé. */
.cartes-grille--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cartes-grille--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.carte-idee {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.7rem 1.5rem; background: var(--blanc-casse);
  border: 1px solid var(--parchemin-3); box-shadow: var(--ombre-carte);
  text-decoration: none; color: var(--encre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte-idee:hover { transform: translateY(-4px); box-shadow: var(--ombre-carte-hover); color: var(--encre); }
.carte-idee-verdict {
  align-self: flex-start;
  font-family: var(--f-display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35em 0.8em; border: 1px solid currentColor;
}
.verdict--faux { color: #9b2c2c; }
.verdict--nuance { color: var(--or-sombre); }
.verdict--vrai { color: #2f6b46; }
.carte-idee-claim { font-family: var(--f-titre); font-style: italic; font-size: 1.06rem; line-height: 1.45; color: var(--bleu-nuit); }
.carte-idee-titre { font-family: var(--f-display); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-douce); margin-top: auto; }

/* Exposants ordinaux : petites majuscules, comme le veut la typographie. */
sup {
  font-size: 0.66em; line-height: 0; vertical-align: 0.42em;
  font-variant-caps: all-small-caps; letter-spacing: 0.03em;
}

/* ---------- Arbre capétien ---------- */
.arbre-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; max-width: var(--largeur-lecture); margin: 0 auto 1.4rem; }
.arbre-legende { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.arbre-filtre {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-display); font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.5em 0.9em; cursor: pointer; color: var(--encre-douce);
  background: transparent; border: 1px solid var(--parchemin-3);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.arbre-filtre:hover, .arbre-filtre.est-actif { border-color: var(--or-trait); color: var(--encre); }
.arbre-pastille { width: 10px; height: 10px; border-radius: 50%; }
.arbre-pastille--capetiens { background: #1f4e79; }
.arbre-pastille--valois { background: #7a5b1e; }
.arbre-pastille--bourbons { background: #8c2f39; }
.arbre-pastille--commun { background: #1f4e79; }
.arbre-pastille--aines { background: #8c2f39; }
.arbre-pastille--espagne { background: #b8860b; }
.arbre-pastille--orleans { background: #2f6b46; }
.arbre-aide { font-size: 0.82rem; color: var(--encre-douce); margin: 0; }

.arbre-cadre {
  overflow: auto; max-width: 100%;
  border: 1px solid var(--parchemin-3); background: var(--blanc-casse);
  box-shadow: var(--ombre-carte);
  cursor: grab;
}
.arbre-cadre.est-tire { cursor: grabbing; }
.arbre-plan { position: relative; }
.arbre-liens { position: absolute; inset: 0; pointer-events: none; }
.arbre-lien { fill: none; stroke-width: 1.4; }
.arbre-lien--capetiens { stroke: rgba(31, 78, 121, 0.42); }
.arbre-lien--valois { stroke: rgba(122, 91, 30, 0.42); }
.arbre-lien--bourbons { stroke: rgba(140, 47, 57, 0.42); }
.arbre-lien--commun { stroke: rgba(31, 78, 121, 0.42); }
.arbre-lien--aines { stroke: rgba(140, 47, 57, 0.42); }
.arbre-lien--espagne { stroke: rgba(184, 134, 11, 0.5); }
.arbre-lien--orleans { stroke: rgba(47, 107, 70, 0.45); }
.arbre-lien.est-eclaire { stroke-width: 2.6; stroke: var(--or-trait); }

.arbre-carte {
  position: absolute; width: 172px; min-height: 60px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 0.15rem;
  padding: 0.5rem 0.7rem; text-decoration: none;
  background: #fff; border: 1px solid var(--parchemin-3); border-left-width: 3px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.arbre-carte--capetiens { border-left-color: #1f4e79; }
.arbre-carte--valois { border-left-color: #7a5b1e; }
.arbre-carte--bourbons { border-left-color: #8c2f39; }
.arbre-carte--commun { border-left-color: #1f4e79; }
.arbre-carte--aines { border-left-color: #8c2f39; }
.arbre-carte--espagne { border-left-color: #b8860b; }
.arbre-carte--orleans { border-left-color: #2f6b46; }
/* Un maillon résumé, une branche éteinte, un prétendant vivant. */
.arbre-carte.est-resume { background: transparent; border-style: dotted; }
.arbre-carte.est-resume .arbre-nom { font-style: italic; font-size: 0.86rem; }
.arbre-carte.est-eteinte { border-left-style: dotted; }
.arbre-carte.est-eteinte .arbre-nom::after { content: ' †'; color: var(--encre-douce); }
.arbre-carte.est-pretendant { box-shadow: 0 0 0 2px var(--or-trait); background: #fffdf5; }
.arbre-carte.est-cadet { background: var(--parchemin); border-style: dashed; }
.arbre-carte.est-charniere { box-shadow: 0 0 0 2px rgba(200, 164, 77, 0.35); }
.arbre-nom { font-family: var(--f-titre); font-size: 0.92rem; line-height: 1.2; color: var(--bleu-nuit); }
.arbre-dates { font-family: var(--f-display); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-douce); }
a.arbre-carte:hover { box-shadow: var(--ombre-carte-hover); transform: translateY(-2px); }
.arbre-carte.est-eclaire { background: #fffdf5; box-shadow: 0 0 0 2px var(--or-trait); }
.arbre-carte.est-estompe { opacity: 0.28; }

/* Liens internes posés automatiquement : discrets dans le fil du texte,
   ils ne doivent pas le hacher de couleur. */
.article-corps .lien-interne {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 77, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.article-corps .lien-interne:hover {
  color: var(--or-sombre);
  text-decoration-color: var(--or-sombre);
}

/* Citations */
.citation {
  position: relative; margin: 2em 0; padding: 1.4em 1.8em 1.4em 2.2em;
  background: rgba(200, 164, 77, 0.07);
  border-left: 3px solid var(--or);
  font-family: var(--f-titre); font-size: 1.14em; line-height: 1.55;
}
.citation::before {
  content: '«'; position: absolute; left: 0.35rem; top: 0.1em;
  font-family: var(--f-titre); font-size: 2.4em; color: rgba(200, 164, 77, 0.5);
}
.citation p { margin: 0 0 0.6em; }
.citation p:last-of-type { margin-bottom: 0; }
.citation-source { font-family: var(--f-display); font-size: 0.62em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-sombre); margin-top: 0.9em; }
.citation-majeure { max-width: 40em; margin: 0 auto 2.6rem; text-align: center; border-left: none; background: transparent; font-size: 1.3rem; }
.citation-majeure::before { content: none; }
.citation-majeure p { color: var(--bleu-royal); }

/* Document historique */
.article-corps--document { font-size: 1.13rem; }
.article-corps--document .citation { font-style: italic; }
.signature-fin {
  max-width: var(--largeur-lecture); margin: 2rem auto 0; text-align: right;
  font-family: var(--f-titre); font-style: italic; font-size: 1.2rem; color: var(--encre-douce);
}

/* Le saviez-vous (encart) */
.saviez-vous {
  margin: 3rem 0 0; padding: 1.5rem 1.8rem;
  border: 1px solid rgba(200, 164, 77, 0.5);
  background: linear-gradient(120deg, rgba(200, 164, 77, 0.1), rgba(200, 164, 77, 0.03));
  position: relative;
}
.saviez-vous-titre { font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or-sombre); margin: 0 0 0.6rem; }
.saviez-vous p:last-child { margin: 0; font-size: 1.02rem; }

/* Navigation précédent / suivant */
.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 3.6rem auto 0; max-width: 880px;
  border-top: 1px solid var(--parchemin-3); padding-top: 1.6rem;
}
.prev-next-lien { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; padding: 0.8rem 1rem; transition: background 0.3s ease; }
.prev-next-lien:hover { background: rgba(200, 164, 77, 0.08); }
.prev-next-lien.next { text-align: right; }
.pn-role { font-family: var(--f-display); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-sombre); }
.pn-titre { font-family: var(--f-titre); font-weight: 600; font-size: 1.2rem; color: var(--bleu-nuit); }

/* ---------- Cartes génériques (index) ---------- */
.cartes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
/* Nombre de colonnes imposé, quand la série gagne à tomber juste. En dessous
   de la largeur de lecture, la grille reprend sa liberté. */
.cartes-grille--5 { grid-template-columns: repeat(5, 1fr); }
.cartes-grille--5 .carte-generique { padding: 1.5rem 1.2rem; }
@media (max-width: 1080px) {
  .cartes-grille--5 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .cartes-grille--5 .carte-generique { padding: 1.7rem 1.5rem; }
}
.carte-generique {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.7rem 1.5rem; min-height: 160px;
  background: var(--blanc-casse); border: 1px solid var(--parchemin-3);
  text-decoration: none; color: var(--encre);
  box-shadow: var(--ombre-carte);
  transition: transform var(--transition), box-shadow var(--transition), border-color 0.4s ease;
  position: relative; overflow: hidden;
}
.carte-generique::after {
  content: '→'; position: absolute; right: 1.2rem; bottom: 0.9rem;
  color: var(--or-sombre); opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.carte-generique:hover { transform: translateY(-6px); box-shadow: var(--ombre-carte-hover); border-color: rgba(200, 164, 77, 0.6); color: var(--encre); }
.carte-generique:hover::after { opacity: 1; transform: none; }
.carte-generique-surtitre { font-family: var(--f-display); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-sombre); }
.carte-generique-annee { font-size: 1.5rem; letter-spacing: 0.06em; color: rgba(200, 164, 77, 0.85); }
.carte-generique-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.45rem; line-height: 1.12; color: var(--bleu-nuit); }
.carte-generique-detail { font-style: italic; font-size: 0.94rem; color: var(--encre-douce); }

/* ---------- Liste complète des rois ---------- */
.liste-rois-groupe { margin: 0 auto 2.8rem; max-width: 880px; }
.liste-rois-dyn {
  font-family: var(--f-display); font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--or-sombre); text-align: center; margin: 2.2rem 0 1.2rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.liste-rois-dyn::before, .liste-rois-dyn::after { content: ''; flex: 1; height: 1px; background: var(--parchemin-3); }
.liste-rois { list-style: none; margin: 0; padding: 0; counter-reset: roi; }
.liste-rois-item {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem;
  padding: 0.5rem 0.6rem; border-bottom: 1px dotted rgba(230, 218, 191, 0.8);
  transition: background 0.25s ease;
}
.liste-rois-item:hover { background: rgba(200, 164, 77, 0.06); }
.liste-rois-nom { font-family: var(--f-titre); font-weight: 600; font-size: 1.14rem; color: var(--encre); }
.liste-rois-nom a { text-decoration: none; color: var(--bleu-royal); border-bottom: 1px solid rgba(200, 164, 77, 0.5); }
.liste-rois-nom a:hover { color: var(--or-sombre); }
.liste-rois-nom em { font-style: italic; color: var(--or-sombre); font-weight: 500; }
.liste-rois-points { flex: 1; border-bottom: 1px dotted rgba(150, 118, 44, 0.4); transform: translateY(-4px); min-width: 30px; }
.liste-rois-dates { font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--encre-douce); }
.liste-rois-note { flex-basis: 100%; font-size: 0.84rem; font-style: italic; color: var(--encre-douce); padding-left: 0.2rem; }

/* ---------- Frise chronologique ---------- */
/* Les époques tiennent sur une seule ligne : la barre déborde la colonne de
   lecture, sans jamais dépasser la fenêtre. */
.frise-filtres {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  /* Centrage par les marges, non par transform : l'animation de révélation
     utilise déjà transform et les deux se contrarieraient. */
  width: min(1400px, calc(100vw - 3rem));
  margin: 0 0 3rem calc(50% - min(700px, (100vw - 3rem) / 2));
}
.frise-filtre {
  font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6em 0.95em; cursor: pointer;
  background: transparent; border: 1px solid rgba(150, 118, 44, 0.45); color: var(--or-sombre);
  transition: background 0.3s ease, color 0.3s ease;
}
.frise-filtre span { opacity: 0.6; margin-left: 0.3em; }
.frise-filtre:hover { background: rgba(200, 164, 77, 0.12); }
.frise-filtre.is-actif { background: var(--bleu-nuit); color: var(--or-clair); border-color: var(--bleu-nuit); }

.frise { position: relative; max-width: 980px; margin: 0 auto; padding: 1rem 0 2rem; }
.frise-ligne {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--or) 4%, var(--or) 96%, transparent);
  opacity: 0.5;
}
.frise-evt {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr; gap: 3.2rem;
  margin-bottom: 2.2rem; align-items: start;
}
.frise-evt.est-masque { display: none; }
.frise-point {
  position: absolute; left: 50%; top: 0.45rem; width: 11px; height: 11px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--parchemin); border: 2px solid var(--or-sombre);
  z-index: 2; transition: background 0.3s ease, transform 0.3s ease;
}
.frise-evt--majeur .frise-point { background: var(--or); width: 14px; height: 14px; }
.frise-evt:hover .frise-point { transform: translateX(-50%) rotate(45deg) scale(1.25); }
.frise-date { text-align: right; padding-top: 0.1rem; }
.frise-annee { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--bleu-nuit); line-height: 1; }
.frise-evt--majeur .frise-annee { font-size: 2.2rem; color: var(--or-sombre); }
.frise-jour { font-family: var(--f-titre); font-style: italic; color: var(--encre-douce); font-size: 0.95rem; }
.frise-carte {
  background: var(--blanc-casse); border: 1px solid var(--parchemin-3);
  box-shadow: var(--ombre-carte); padding: 1.2rem 1.4rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.frise-evt:hover .frise-carte { transform: translateY(-3px); box-shadow: var(--ombre-carte-hover); }
.frise-evt--majeur .frise-carte { border-top: 3px solid var(--or); }
.frise-carte h3 { font-family: var(--f-titre); font-weight: 700; font-size: 1.3rem; margin: 0 0 0.4rem; color: var(--bleu-nuit); }
.frise-carte p { margin: 0 0 0.7rem; font-size: 0.99rem; color: var(--encre-douce); }
.frise-ere {
  font-family: var(--f-display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--or-sombre); border: 1px solid rgba(150, 118, 44, 0.4); padding: 0.25em 0.7em;
}
/* alternance gauche / droite */
.frise-evt:nth-child(even of .frise-evt) .frise-date { order: 2; text-align: left; }
.frise-evt:nth-child(even of .frise-evt) .frise-carte { order: 1; }

/* ---------- Étapes du sacre ---------- */
.sacre-etapes { margin: 4.5rem auto 0; max-width: 880px; }
.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etapes::before {
  content: ''; position: absolute; left: 34px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--or) 6%, var(--or) 94%, transparent);
}
.etape { display: grid; grid-template-columns: 68px 1fr; gap: 1.6rem; margin-bottom: 2.4rem; position: relative; }
.etape-num {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 1.15rem; color: var(--or-sombre);
  background: var(--blanc-casse); border: 1px solid var(--or);
  box-shadow: 0 0 0 6px var(--parchemin);
  position: relative; z-index: 1;
}
.etape-corps h3 { font-family: var(--f-titre); font-weight: 700; font-size: 1.4rem; color: var(--bleu-nuit); margin: 0.4rem 0 0.3rem; }
.etape-latin { font-style: italic; color: var(--or-sombre); margin: 0 0 0.4rem; font-size: 1.02rem; }
.etape-corps p { margin: 0; color: var(--encre-douce); }

/* Registre des sacres */
.sacres-table-sec { margin-top: 4.5rem; }
.sacres-table { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--parchemin-3); }
.sacres-ligne {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem;
  padding: 0.7rem 0.8rem; border-bottom: 1px solid rgba(230, 218, 191, 0.6);
  align-items: baseline;
}
.sacres-ligne:hover { background: rgba(200, 164, 77, 0.06); }
.sacres-roi { font-family: var(--f-titre); font-weight: 600; font-size: 1.12rem; color: var(--bleu-nuit); }
.sacres-date { font-family: var(--f-display); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--or-sombre); }
.sacres-lieu { font-size: 0.95rem; color: var(--encre-douce); }
.sacres-note { grid-column: 1 / -1; font-size: 0.85rem; font-style: italic; color: var(--encre-douce); }

/* ---------- Glossaire ---------- */
.glossaire-outils { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 2.6rem; }
.champ-filtre {
  flex: 1 1 260px; max-width: 380px;
  font-family: var(--f-titre); font-size: 1.1rem; color: var(--encre);
  padding: 0.7em 1em; border: 1px solid var(--parchemin-3); background: var(--blanc-casse); outline: none;
}
.champ-filtre:focus { border-color: var(--or); }
.glossaire-alphabet { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.glossaire-alphabet a {
  font-family: var(--f-display); font-size: 0.8rem; color: var(--or-sombre);
  text-decoration: none; padding: 0.3em 0.5em; border: 1px solid transparent;
}
.glossaire-alphabet a:hover { border-color: rgba(150, 118, 44, 0.4); }
.glossaire { max-width: 880px; margin: 0 auto; }
.glossaire-lettre {
  font-family: var(--f-display); font-size: 2.2rem; color: rgba(200, 164, 77, 0.75);
  border-bottom: 1px solid var(--parchemin-3); margin: 2.4rem 0 1rem; scroll-margin-top: 110px;
}
.glossaire-entree { padding: 0.8rem 0.4rem; border-bottom: 1px dotted rgba(230, 218, 191, 0.8); }
.glossaire-entree dt { font-family: var(--f-titre); font-weight: 700; font-size: 1.28rem; color: var(--bleu-nuit); }
.glossaire-entree dd { margin: 0.3rem 0 0; color: var(--encre-douce); }
.glossaire-entree.est-masque, .glossaire-groupe.est-masque { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--parchemin-3); background: var(--blanc-casse); margin-bottom: 0.8rem; box-shadow: var(--ombre-carte); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 1.2rem 1.5rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--f-titre); font-weight: 600; font-size: 1.28rem; color: var(--bleu-nuit); }
.faq-signe { position: relative; width: 16px; height: 16px; flex: none; }
.faq-signe::before, .faq-signe::after {
  content: ''; position: absolute; background: var(--or-sombre); transition: transform 0.35s ease;
}
.faq-signe::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq-signe::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.faq-item[open] .faq-signe::after { transform: scaleY(0); }
.faq-r { padding: 0 1.5rem 1.4rem; color: var(--encre-douce); max-width: 60em; }
.faq-r p { margin: 0; }

/* ---------- Plan du site ---------- */
.plan-site { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.4rem; }
.plan-groupe h2 { font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or-sombre); border-bottom: 1px solid var(--parchemin-3); padding-bottom: 0.5rem; }
.plan-groupe ul { list-style: none; margin: 0; padding: 0; }
.plan-groupe li { margin: 0.45rem 0; }
.plan-groupe a { text-decoration: none; }

/* ---------- 404 ---------- */
.hero-page--404 { min-height: 82svh; display: flex; align-items: center; justify-content: center; }
.lys-404 { width: 52px; color: var(--or); margin-bottom: 1.4rem; }

/* ---------- Pied de page ---------- */
.pied { background: linear-gradient(180deg, var(--bleu-profond) 0%, #050b1a 100%); color: rgba(253, 251, 245, 0.75); padding: 0 1.4rem 2rem; }
.pied-ornement { padding-top: 3rem; }
.filet-pied { max-width: 480px; color: var(--or); }
.pied-inner {
  max-width: var(--largeur); margin: 2.5rem auto 0;
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 3.5rem;
}
.pied-lys { display: inline-block; width: 40px; height: 52px; color: var(--or); }
.pied-nom { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-pale); margin: 0.7rem 0; }
.pied-devise { font-family: var(--f-titre); font-style: italic; font-size: 1.05rem; color: rgba(253, 251, 245, 0.6); }
.pied-devise span { font-family: var(--f-display); font-style: normal; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(230, 204, 133, 0.6); }
.pied-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pied-titre { font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or); margin: 0 0 0.9rem; }
.pied-col ul { list-style: none; margin: 0; padding: 0; }
.pied-col li { margin: 0.45rem 0; }
.pied-col a { color: rgba(253, 251, 245, 0.75); text-decoration: none; transition: color 0.25s ease, padding-left 0.25s ease; }
.pied-col a:hover { color: var(--or-clair); padding-left: 0.3rem; }
.pied-bas {
  max-width: var(--largeur); margin: 3rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(200, 164, 77, 0.15);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.82rem; color: rgba(253, 251, 245, 0.45);
}
.pied-bas p { margin: 0; }
.pied-liens-discrets a { color: rgba(253, 251, 245, 0.45); text-decoration: none; }
.pied-liens-discrets a:hover { color: var(--or-clair); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-principale { display: none; }
  .bouton-menu {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 9px;
    background: rgba(200, 164, 77, 0.1); border: 1px solid rgba(200, 164, 77, 0.35);
    cursor: pointer;
  }
  .bouton-menu span { display: block; height: 1.5px; background: var(--or-pale); transition: transform 0.35s ease, opacity 0.35s ease; }
  .bouton-menu.est-ouvert span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .bouton-menu.est-ouvert span:nth-child(2) { opacity: 0; }
  .bouton-menu.est-ouvert span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .entete-actions { margin-left: auto; }
  .raccourci { display: none; }
  .lecture-deux-colonnes { grid-template-columns: 1fr; }
  /* Une fois la colonne repliée, la planche ne doit pas occuper toute la page. */
  .planche { position: static; max-width: 340px; margin: 0 auto; }
  .fiche { position: static; max-width: 460px; margin: 2.5rem auto 0; }
  .sacre-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .pied-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .sec { padding: 3.8rem 1.1rem; }
  .deux-colonnes { grid-template-columns: 1fr; gap: 2.8rem; }
  .biblio-item { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 0.8rem; }
  .biblio-fleche { display: none; }
  .frise-ligne { left: 8px; }
  .frise-evt { grid-template-columns: 1fr; gap: 0.5rem; padding-left: 2.2rem; }
  .frise-point { left: 8px; }
  .frise-date, .frise-evt:nth-child(even of .frise-evt) .frise-date { text-align: left; order: 0; }
  .frise-evt:nth-child(even of .frise-evt) .frise-carte { order: 1; }
  .etapes::before { left: 24px; }
  .etape { grid-template-columns: 48px 1fr; gap: 1rem; }
  .etape-num { width: 48px; height: 48px; font-size: 0.9rem; }
  .sacres-ligne { grid-template-columns: 1fr; gap: 0.15rem; }
  .pied-colonnes { grid-template-columns: 1fr 1fr; }
  .heros-actions .bouton { width: 100%; text-align: center; }
  .hero-page { padding-top: 7.5rem; }
}

/* ---------- Impression ---------- */
@media print {
  .entete, .pied, .progression, .heros-indice, .prev-next, .bouton, .menu-mobile, .recherche-voile { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero-page { background: #fff; color: #000; padding: 1cm 0; }
  .hero-page-titre { color: #000; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-height: 640px) { .heros-indice { display: none; } }

/* ---------- Index général ---------- */
.index-entree dt a { text-decoration: none; }
.index-genre {
  font-family: var(--f-display); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--or-sombre); border: 1px solid rgba(150, 118, 44, 0.35); padding: 0.2em 0.55em;
  margin-left: 0.6rem; vertical-align: 0.15em;
}

/* ---------- Index par siècle ---------- */
.siecles { max-width: 880px; margin: 0 auto; }
.siecle { margin-bottom: 3rem; }
.siecle-titre {
  font-family: var(--f-titre); font-weight: 600; font-size: 1.7rem; color: var(--bleu-nuit);
  display: flex; align-items: baseline; gap: 0.7rem;
  border-bottom: 1px solid var(--parchemin-3); padding-bottom: 0.6rem; scroll-margin-top: 110px;
}
.siecle-num { font-family: var(--f-display); font-size: 2.1rem; color: var(--or); }
.siecle-liste { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.siecle-liste li { border-bottom: 1px dotted rgba(230, 218, 191, 0.8); }
.siecle-liste a {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: baseline;
  padding: 0.55rem 0.5rem; text-decoration: none; transition: background 0.25s ease;
}
.siecle-liste a:hover { background: rgba(200, 164, 77, 0.07); }
.siecle-annee { font-family: var(--f-display); font-size: 0.9rem; color: var(--or-sombre); }
.siecle-item { font-family: var(--f-titre); font-weight: 600; font-size: 1.12rem; color: var(--bleu-nuit); }
.siecle-genre { font-family: var(--f-display); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-douce); }
@media (max-width: 620px) {
  .siecle-liste a { grid-template-columns: 62px 1fr; }
  .siecle-genre { display: none; }
}

/* ---------- Anthologie de citations ---------- */
.citations-grille {
  columns: 3 300px; column-gap: 1.2rem; max-width: var(--largeur); margin: 0 auto;
}
.citation-carte {
  break-inside: avoid; margin: 0 0 1.2rem; padding: 1.7rem 1.6rem 1.4rem;
  background: var(--blanc-casse); border: 1px solid var(--parchemin-3);
  box-shadow: var(--ombre-carte); position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.citation-carte::before {
  content: '❝'; position: absolute; top: 0.4rem; left: 0.8rem;
  font-size: 1.8rem; color: rgba(200, 164, 77, 0.4); line-height: 1;
}
.citation-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-carte-hover); border-color: rgba(200, 164, 77, 0.55); }
.citation-carte.est-masque { display: none; }
/* Un passage long ne se lit pas en colonne étroite : il prend la largeur,
   dans un corps un peu moindre, et se détache des sentences brèves. */
/* Un élément qui traverse les colonnes n'hérite pas de la gouttière : sans
   marge propre, il viendrait toucher la carte du dessus. */
.citation-carte--longue { column-span: all; padding: 2rem 2.2rem 1.6rem; margin: 2.4rem 0; }
.citation-carte--longue blockquote p { font-size: 1.06rem; line-height: 1.62; text-align: justify; }
@media (max-width: 640px) {
  .citation-carte--longue { padding: 1.7rem 1.6rem 1.4rem; }
  .citation-carte--longue blockquote p { text-align: left; }
}
.citation-carte blockquote { margin: 0.6rem 0 1rem; }
.citation-carte blockquote p {
  margin: 0; font-family: var(--f-titre); font-size: 1.18rem; line-height: 1.5; color: var(--encre);
}
.citation-carte figcaption { border-top: 1px solid var(--parchemin-3); padding-top: 0.7rem; }
.citation-auteur {
  display: block; font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--or-sombre);
}
.citation-src { display: block; font-size: 0.85rem; font-style: italic; color: var(--encre-douce); margin-top: 0.2rem; }
@media (max-width: 700px) { .citations-grille { columns: 1; } }

/* ---------- Carte du royaume ---------- */
.carte { margin: 0; max-width: 900px; margin-inline: auto; }
.carte-svg { width: 100%; height: auto; display: block; }
.carte-mer { fill: var(--parchemin); }
.carte-grille line { stroke: rgba(200, 164, 77, 0.13); stroke-width: 0.7; }
.carte-terre {
  fill: var(--blanc-casse); stroke: var(--or-sombre); stroke-width: 1.6;
  stroke-linejoin: round; filter: drop-shadow(0 3px 10px rgba(11, 27, 58, 0.12));
}
.marqueur { cursor: pointer; }
.marqueur-halo { fill: rgba(200, 164, 77, 0.14); transition: r 0.3s ease, fill 0.3s ease; }
.marqueur-point { fill: var(--or-sombre); stroke: var(--blanc-casse); stroke-width: 1.6; transition: fill 0.3s ease; }
.marqueur--sacre .marqueur-point, .marqueur--necropole .marqueur-point { fill: var(--rouge); }
.marqueur--bataille .marqueur-point { fill: var(--bleu-royal); }
.marqueur-nom {
  font-family: var(--f-titre); font-size: 17px; fill: var(--encre-douce);
  paint-order: stroke; stroke: var(--blanc-casse); stroke-width: 4px; stroke-linejoin: round;
  text-anchor: middle; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.marqueur--sacre .marqueur-nom { opacity: 0.95; fill: var(--bleu-nuit); }
.marqueur:hover .marqueur-halo { r: 22; fill: rgba(200, 164, 77, 0.3); }
.marqueur:hover .marqueur-nom { opacity: 1; fill: var(--bleu-nuit); }
.marqueur.est-masque { display: none; }
.carte figcaption { text-align: center; font-size: 0.9rem; color: var(--encre-douce); font-style: italic; margin-top: 1.2rem; }

/* Le semé de lys est dessiné à taille fixe : sur écran étroit il paraît deux
   fois plus dense. On l'agrandit et on l'atténue pour garder la même valeur. */
@media (max-width: 760px) {
  .heros-seme, .sec-seme, .hero-page-fond { background-size: 220px 260px; opacity: 0.5; }
  .marque-nom { font-size: 0.9rem; letter-spacing: 0.1em; }
  .marque-devise { font-size: 0.66rem; }
  .marque-lys { width: 23px; height: auto; }
  .entete-inner { padding: 0.55rem 1rem; gap: 0.8rem; }
}
@media (max-width: 420px) {
  .marque-nom { font-size: 0.82rem; }
  .marque-devise { display: none; }
}

/* ---------- Focus clavier ---------- */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 2px;
}
.sec-sombre :focus-visible, .heros :focus-visible, .entete :focus-visible,
.pied :focus-visible, .hero-page :focus-visible, .sec-final :focus-visible,
.sec-sacre :focus-visible, .menu-mobile :focus-visible {
  outline-color: var(--or-clair);
}
.bouton:focus-visible, .chip:focus-visible { outline-offset: 4px; }
/* Les navigateurs sans :focus-visible gardent le contour par défaut. */
:focus:not(:focus-visible) { outline: none; }

/* Le menu déroulant doit rester ouvert quand on le parcourt au clavier. */
.nav-item:focus-within .menu-deroulant { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Voir aussi ---------- */
.voir-aussi {
  margin: 3.6rem auto 0; max-width: 880px;
  border-top: 1px solid var(--parchemin-3); padding-top: 2rem;
}
.voir-aussi-titre {
  font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--or-sombre); margin: 0 0 1.2rem; text-align: center;
}
.voir-aussi-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.voir-aussi-carte {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1rem 1.1rem; text-decoration: none; color: var(--encre);
  background: var(--blanc-casse); border: 1px solid var(--parchemin-3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.voir-aussi-carte:hover {
  transform: translateY(-3px); border-color: rgba(200, 164, 77, 0.6);
  box-shadow: var(--ombre-carte); color: var(--encre);
}
.voir-aussi-genre { font-family: var(--f-display); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-sombre); }
.voir-aussi-nom { font-family: var(--f-titre); font-weight: 600; font-size: 1.12rem; line-height: 1.2; color: var(--bleu-nuit); }
.voir-aussi-detail { font-size: 0.85rem; font-style: italic; color: var(--encre-douce); }

/* ---------- Note de source (documents) ---------- */
.note-source {
  max-width: var(--largeur-lecture); margin: 3rem auto 0;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--parchemin-3);
  font-size: 0.92rem; color: var(--encre-douce);
}
.note-source-titre {
  font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--or-sombre); margin: 0 0 0.4rem;
}
.note-source p:last-child { margin: 0; }

/* ---------- Textes liturgiques ----------
   Les livres de liturgie impriment en rouge ce que l'on fait, en noir ce que
   l'on dit : les instructions au célébrant y sont des « rubriques », de ruber.
   On reprend cette convention pour que la lecture distingue d'un regard la
   narration, les prières et les réponses du roi. */
.article-corps .lit { margin: 0 0 1.15em; }

/* Ce que l'on fait : la narration et les gestes. */
.article-corps .lit-rubrique {
  color: var(--rouge);
  font-style: italic;
  font-size: 0.97em;
  line-height: 1.6;
}

/* Ce que dit l'évêque : prières, bénédictions, remise des insignes. */
.article-corps .lit-oraison {
  color: var(--encre);
  font-size: 1.06em;
  line-height: 1.62;
  padding-left: 1.4em;
  border-left: 2px solid rgba(200, 164, 77, 0.4);
}

/* Ce que répond le roi : serments et promesses. */
.article-corps .lit-reponse {
  color: var(--bleu-nuit);
  font-family: var(--f-titre);
  font-size: 1.16em;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.7em 1.2em;
  background: rgba(11, 27, 58, 0.045);
  border-left: 3px solid var(--bleu-royal);
}

/* Les litanies : invocations brèves, en réponse alternée. */
.article-corps .lit-litanie {
  color: var(--encre-douce);
  font-size: 0.99em;
  margin: 0 0 0.35em;
  padding-left: 1.4em;
  text-indent: -1.4em;
}
.article-corps .lit-litanie::before {
  content: '℟';
  color: var(--rouge);
  font-style: normal;
  margin-right: 0.6em;
  opacity: 0.75;
}

/* Un changement de nature marque une respiration. */
.article-corps .lit-oraison + .lit-rubrique,
.article-corps .lit-litanie + .lit-rubrique,
.article-corps .lit-reponse + .lit-rubrique,
.article-corps .lit-rubrique + .lit-oraison,
.article-corps .lit-rubrique + .lit-reponse,
.article-corps .lit-litanie + .lit-oraison { margin-top: 1.9em; }

@media (max-width: 620px) {
  .article-corps .lit-oraison, .article-corps .lit-litanie { padding-left: 1em; }
  .article-corps .lit-litanie { text-indent: -1em; }
}

/* Signes du verset et du répons, dans les textes liturgiques. */
.article-corps .lit-signe {
  color: var(--rouge);
  font-style: normal;
  font-weight: 600;
  padding-right: 0.1em;
}
/* Les lignes de verset et de répons s'alignent sous la première. */
.article-corps .lit-oraison br + .lit-signe,
.article-corps .lit-litanie br + .lit-signe { margin-left: 0; }
.article-corps .lit-oraison { text-indent: 0; }

/* Indications de régie glissées dans le fil du texte : qui parle, qui répond.
   Elles relèvent de la rubrique, non du texte chanté. */
.article-corps .lit-regie {
  color: var(--rouge);
  font-style: italic;
}
.article-corps .lit-rubrique .lit-regie { font-style: normal; }

/* ---------- En-tête des documents anciens ----------
   Lieu et date de délivrance, suscription de l'auteur : ce qui précède le texte
   proprement dit. Présenté en retrait et en petites capitales, comme sur la
   pièce d'origine, sans le cartouche réservé aux citations. */
.article-corps .adresse-doc {
  font-family: var(--f-titre);
  font-size: 1.06em;
  font-style: italic;
  color: var(--encre-douce);
  text-align: right;
  max-width: 34em;
  margin: 0 0 0.45em auto;
  line-height: 1.5;
}
.article-corps .adresse-doc:first-child { margin-top: 0.5em; }
/* Un filet clôt l'en-tête et ouvre le texte. */
.article-corps .adresse-doc + :not(.adresse-doc) { margin-top: 2.6em; }
@media (max-width: 620px) {
  .article-corps .adresse-doc { text-align: left; margin-left: 0; }
}

/* Clausule : ce qui clôt une pièce ancienne — doxologie, formule d'envoi,
   signature. Symétrique de l'adresse placée en tête. */
.article-corps .clausule-doc {
  font-family: var(--f-titre);
  font-size: 1.08em;
  font-style: italic;
  color: var(--encre-douce);
  text-align: center;
  max-width: 32em;
  margin: 2.8em auto 0;
  position: relative;
  line-height: 1.55;
}
.article-corps .clausule-doc::before {
  content: ''; position: absolute; top: -1.5em; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
