/* ==========================================================================
   Airpg.fr / feuille unique
   Concept : "la fenetre de commande" (menu de J-RPG au tour par tour)
   Vocabulaire : enceinte, bandeau, sceau, frontispice, fenetre, stele,
                 vitrine, palmares, notation, parchemin, encart, pied.
   Aucune ressource externe. Polices systeme uniquement.
   ========================================================================== */

/* ---------- 1. Jetons de conception ---------- */
:root {
  /* Nuit de Gaia */
  --nuit:        #070b18;
  --nuit-basse:  #0a1023;
  --voute:       #101a31;
  --voute-haute: #172341;
  --liseret:     #22315a;
  --liseret-vif: #3d5490;

  /* Lumiere */
  --clarte:      #eef2fb;
  --demi-jour:   #a0aecd;
  --sourdine:    #6d7da2;

  /* Cristaux */
  --or-mana:     #f3c76e;
  --or-profond:  #c1943c;
  --cristal:     #5fd9cf;
  --transe:      #b58bf6;
  --braise:      #f0806a;

  /* Ecritures */
  --police-titre:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-lecture: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, "Times New Roman", serif;
  --police-donnee:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Mesures */
  --laize:         76rem;
  --laize-lecture: 42rem;
  --gouttiere:     clamp(1.15rem, 4vw, 2.5rem);
  --respiration:   clamp(3.25rem, 8vw, 6rem);
  --angle:         5px;
  --angle-large:   12px;
}

/* ---------- 2. Assises ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--clarte);
  font-family: var(--police-titre);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--nuit);
  background-image:
    radial-gradient(1100px 620px at 82% -10%, rgba(95, 217, 207, .11), transparent 62%),
    radial-gradient(900px 540px at 6% 2%,    rgba(181, 139, 246, .11), transparent 64%),
    linear-gradient(180deg, var(--nuit-basse) 0%, var(--nuit) 48%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Poussiere d'etoiles : texture fine, jamais un aplat mort */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(214, 228, 255, .075) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
}

body > * { position: relative; z-index: 1; }

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

a { color: var(--cristal); text-decoration-color: rgba(95, 217, 207, .38); text-underline-offset: .18em; }
a:hover { color: #8ff0e7; text-decoration-color: currentColor; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.021em; line-height: 1.1; }
p, ul, ol, dl, figure, table { margin: 0; }

::selection { background: rgba(243, 199, 110, .3); color: #fff; }

/* ---------- 3. Ossature ---------- */
.enceinte {
  width: 100%;
  max-width: var(--laize);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.enceinte--resserree { max-width: 58rem; }
/* Quand on passe en mode lecture, la colonne se recentre d'elle-meme. */
.enceinte--resserree > .parchemin { margin-inline: auto; }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--or-mana);
  color: #22190a;
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--angle) 0;
  z-index: 99;
}
.saut-contenu:focus { left: 0; }

.pave { padding-block: var(--respiration); }
.pave--serre { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

.pave__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.pave__titre {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.15rem);
  display: flex;
  align-items: center;
  gap: .75rem;
}
/* Curseur de menu : le losange dore */
.pave__titre::before {
  content: "";
  flex: none;
  width: .62em;
  height: .62em;
  transform: rotate(45deg);
  background: linear-gradient(140deg, #ffe6a8, var(--or-profond));
  box-shadow: 0 0 14px rgba(243, 199, 110, .45);
  border-radius: 2px;
}

.pave__note {
  max-width: 34rem;
  color: var(--demi-jour);
  font-size: .95rem;
  line-height: 1.55;
}

.filet {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--liseret) 12%, var(--liseret) 88%, transparent);
}

/* ---------- 4. Bandeau (en-tete) ---------- */
.bandeau {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 24, .78);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
          backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--liseret);
}
.bandeau::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 199, 110, .5), rgba(95, 217, 207, .4), transparent);
}

.bandeau__corps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
  padding-block: .7rem;
}

.sceau {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.sceau__glyphe { width: 30px; height: 30px; flex: none; }
.sceau__nom {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(100deg, #fff 12%, var(--or-mana) 88%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.sceau__devise {
  display: block;
  margin-top: .28rem;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--sourdine);
}

.menu-cmd {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu-cmd::-webkit-scrollbar { display: none; }

.menu-cmd a {
  display: block;
  white-space: nowrap;
  padding: .55rem .8rem;
  border-radius: var(--angle);
  font-size: .93rem;
  font-weight: 600;
  color: var(--demi-jour);
  text-decoration: none;
  border: 1px solid transparent;
}
.menu-cmd a:hover {
  color: var(--clarte);
  background: rgba(61, 84, 144, .2);
  border-color: var(--liseret);
}
.menu-cmd a[aria-current="page"] {
  color: var(--or-mana);
  border-color: rgba(243, 199, 110, .35);
  background: rgba(243, 199, 110, .08);
}

@media (max-width: 43.75rem) {
  .bandeau__corps { flex-direction: column; align-items: stretch; gap: .55rem; }
  .menu-cmd {
    margin-inline: calc(var(--gouttiere) * -1);
    padding-inline: var(--gouttiere);
    padding-bottom: .15rem;
  }
}

/* ---------- 5. Sentier (fil d'ariane) ---------- */
.sentier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sourdine);
}
.sentier a { color: var(--demi-jour); text-decoration: none; }
.sentier a:hover { color: var(--or-mana); }
.sentier li + li::before { content: "\203A"; margin-right: .45rem; color: var(--liseret-vif); }

/* ---------- 6. Frontispice (hero) ---------- */
.frontispice { padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2rem, 5vw, 3.5rem); }

.frontispice__grille {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .frontispice__grille { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}

.mention {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--or-mana);
  margin-bottom: 1.15rem;
}
.mention::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, var(--or-profond), transparent);
}

.frontispice h1 {
  font-size: clamp(2.15rem, 1.1rem + 4.6vw, 4rem);
  letter-spacing: -.032em;
  line-height: 1.03;
  text-wrap: balance;
}
.frontispice h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--or-mana), var(--cristal));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.chapo {
  margin-top: 1.35rem;
  max-width: 36rem;
  font-family: var(--police-lecture);
  font-size: clamp(1.05rem, .4vw + .98rem, 1.2rem);
  line-height: 1.7;
  color: #dbe3f4;
}

.rangee-cmd {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

/* ---------- 7. Commandes (boutons) ---------- */
.commande {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: var(--angle);
  border: 1px solid var(--liseret-vif);
  background: linear-gradient(180deg, rgba(61, 84, 144, .34), rgba(16, 26, 49, .7));
  color: var(--clarte);
  font: 700 .93rem/1 var(--police-titre);
  letter-spacing: .015em;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.commande:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(243, 199, 110, .55);
  box-shadow: 0 12px 26px -18px rgba(243, 199, 110, .8);
}
.commande::after { content: "\203A"; font-size: 1.15em; line-height: 0; opacity: .7; }

.commande--or {
  background: linear-gradient(180deg, #ffdf9c, #dfab4b);
  border-color: #f6d489;
  color: #241a05;
}
.commande--or:hover { color: #120c02; }

.commande--nue {
  background: transparent;
  border-color: var(--liseret);
  color: var(--demi-jour);
}
.commande--nue:hover { color: var(--clarte); }

/* Lien de section discret */
.lien-suite {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--or-mana);
  text-decoration: none;
  white-space: nowrap;
}
.lien-suite::after { content: "\2192"; transition: transform .16s ease; }
.lien-suite:hover { color: #ffe0a3; }
.lien-suite:hover::after { transform: translateX(3px); }

/* ---------- 8. Fenetre : le composant signature ---------- */
.fenetre {
  position: relative;
  padding: clamp(1.3rem, 3.2vw, 2.15rem);
  border: 1px solid var(--liseret);
  border-radius: var(--angle-large);
  background:
    linear-gradient(158deg, rgba(29, 42, 78, .92), rgba(11, 18, 37, .93));
  box-shadow:
    inset 0 1px 0 rgba(160, 190, 255, .09),
    0 24px 48px -34px rgba(0, 0, 0, .95);
}
/* Le double liseret des menus de J-RPG */
.fenetre::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(120, 155, 230, .14);
  border-radius: calc(var(--angle-large) - 4px);
  pointer-events: none;
}
.fenetre > * { position: relative; }

.fenetre__titre {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cristal);
  margin-bottom: 1.05rem;
}

.fenetre--or { border-color: rgba(243, 199, 110, .38); }
.fenetre--or .fenetre__titre { color: var(--or-mana); }

/* ---------- 9. Visuels : jamais de carre vide ---------- */
.visuel {
  position: relative;
  overflow: hidden;
  border-radius: var(--angle-large);
  border: 1px solid var(--liseret);
  background-color: #0c142a;
  background-image:
    radial-gradient(115% 90% at 18% 8%,  rgba(95, 217, 207, .34), transparent 58%),
    radial-gradient(105% 100% at 86% 92%, rgba(181, 139, 246, .32), transparent 60%),
    repeating-linear-gradient(128deg, rgba(226, 238, 255, .05) 0 2px, transparent 2px 11px),
    linear-gradient(162deg, #1a2748, #090f20);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 1);
}
/* L'image recouvre le cadre. Si elle manque, le degrade reste et le texte
   alternatif s'affiche dessus, decale par text-indent (sans rogner l'image). */
.visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  color: var(--demi-jour);
  font-family: var(--police-titre);
  font-size: .82rem;
  line-height: 1.5;
  text-indent: .9rem;
}
.visuel--large { aspect-ratio: 16 / 9; }
.visuel--portrait { aspect-ratio: 4 / 5; }
.visuel--carre { aspect-ratio: 1 / 1; }

.visuel__legende {
  margin-top: .7rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--sourdine);
}

/* Cadre du frontispice : le visuel repose sur un socle lumineux */
.frontispice__visuel { position: relative; }
.frontispice__visuel::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(95, 217, 207, .28), transparent);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------- 10. Vitrine et steles (grilles et cartes) ---------- */
.vitrine {
  display: grid;
  gap: clamp(.9rem, 2.2vw, 1.35rem);
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .vitrine--2, .vitrine--3, .vitrine--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) {
  .vitrine--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vitrine--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stele {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--liseret);
  border-radius: var(--angle-large);
  background: linear-gradient(168deg, rgba(24, 36, 66, .85), rgba(10, 17, 34, .92));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.stele:hover {
  transform: translateY(-4px);
  border-color: var(--liseret-vif);
  box-shadow: 0 26px 46px -34px rgba(0, 0, 0, 1);
}
.stele__visuel {
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--liseret);
  box-shadow: none;
}
.stele__corps {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.05rem 1.15rem 1.2rem;
  flex: 1;
}
.stele__titre { font-size: 1.13rem; letter-spacing: -.015em; }
.stele__titre a { color: var(--clarte); text-decoration: none; }
.stele__titre a:hover { color: var(--or-mana); }
.stele__titre a::after { content: ""; position: absolute; inset: 0; }
.stele { position: relative; }
.stele__resume {
  font-family: var(--police-lecture);
  font-size: .96rem;
  line-height: 1.62;
  color: var(--demi-jour);
}
.stele__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: .8rem;
  font-size: .78rem;
  color: var(--sourdine);
}

/* ---------- 11. Jetons (etiquettes) ---------- */
.jetons { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }

.jeton {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--liseret);
  background: rgba(61, 84, 144, .16);
  color: var(--demi-jour);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jeton--cristal { border-color: rgba(95, 217, 207, .38); color: var(--cristal); background: rgba(95, 217, 207, .08); }
.jeton--or      { border-color: rgba(243, 199, 110, .4);  color: var(--or-mana); background: rgba(243, 199, 110, .09); }
.jeton--transe  { border-color: rgba(181, 139, 246, .4);  color: var(--transe);  background: rgba(181, 139, 246, .09); }

/* Note affichee sur une carte de test */
.note-pastille {
  display: inline-flex;
  align-items: baseline;
  gap: .12rem;
  font-family: var(--police-donnee);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--or-mana);
  font-size: 1.02rem;
  letter-spacing: -.02em;
}
.note-pastille small { font-size: .68rem; color: var(--sourdine); font-weight: 600; }

/* ---------- 12. Palmares (classements) ---------- */
.palmares {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rang;
}
.palmares > li {
  counter-increment: rang;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  padding-block: 1.1rem;
  border-top: 1px solid var(--liseret);
}
.palmares > li:first-child { border-top: 0; padding-top: .35rem; }
.palmares > li::before {
  content: counter(rang, decimal-leading-zero);
  font: 800 1.55rem/1 var(--police-donnee);
  font-variant-numeric: tabular-nums;
  color: rgba(243, 199, 110, .22);
  -webkit-text-stroke: 1px rgba(243, 199, 110, .55);
  padding-top: .05rem;
}
.palmares__titre {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.012em;
  margin-bottom: .3rem;
}
.palmares__titre a { color: var(--clarte); text-decoration: none; }
.palmares__titre a:hover { color: var(--or-mana); }
.palmares__titre span {
  font-family: var(--police-donnee);
  font-size: .76rem;
  font-weight: 600;
  color: var(--sourdine);
  letter-spacing: .04em;
  margin-left: .5rem;
  white-space: nowrap;
}
.palmares__mot {
  font-family: var(--police-lecture);
  font-size: .97rem;
  line-height: 1.62;
  color: var(--demi-jour);
}

/* ---------- 13. Notation (tableau de note d'un test) ---------- */
.notation { display: grid; gap: 1.4rem; }
@media (min-width: 46rem) {
  .notation { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2.25rem; }
}

.notation__lignes { display: grid; gap: .72rem; }

.notation__ligne {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr) 2.7rem;
  align-items: center;
  gap: .85rem;
}
.notation__critere {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--demi-jour);
}
.notation__jauge {
  height: 6px;
  border-radius: 999px;
  background: rgba(226, 238, 255, .09);
  overflow: hidden;
}
.notation__jauge > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cristal), var(--or-mana));
}
.notation__valeur {
  font-family: var(--police-donnee);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: .88rem;
  text-align: right;
  color: var(--clarte);
}

.notation__moyenne {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  width: 8.6rem;
  height: 8.6rem;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid rgba(243, 199, 110, .4);
  background:
    radial-gradient(closest-side, rgba(243, 199, 110, .16), transparent 78%),
    linear-gradient(160deg, rgba(31, 45, 82, .9), rgba(10, 17, 34, .9));
  box-shadow: inset 0 0 0 5px rgba(7, 11, 24, .7), 0 0 34px -12px rgba(243, 199, 110, .5);
}
.notation__chiffre {
  font-family: var(--police-donnee);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--or-mana);
}
.notation__socle {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sourdine);
}

/* ---------- 14. Verdict (forts / faibles) ---------- */
.verdict { display: grid; gap: 1.1rem; }
@media (min-width: 44rem) { .verdict { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.verdict__bloc {
  padding: 1.05rem 1.2rem;
  border-radius: var(--angle-large);
  border: 1px solid var(--liseret);
  background: rgba(13, 21, 41, .7);
}
.verdict__bloc h3 {
  font-size: .73rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.verdict__bloc ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.verdict__bloc li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--police-lecture);
  font-size: .97rem;
  line-height: 1.55;
  color: #d7dff1;
}
.verdict__bloc li::before {
  position: absolute;
  left: 0;
  top: -.05em;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1rem;
}
.verdict--fort { border-color: rgba(95, 217, 207, .34); }
.verdict--fort h3 { color: var(--cristal); }
.verdict--fort li::before { content: "+"; color: var(--cristal); }
.verdict--faible { border-color: rgba(240, 128, 106, .3); }
.verdict--faible h3 { color: var(--braise); }
.verdict--faible li::before { content: "\2212"; color: var(--braise); }

/* ---------- 15. Fiche technique ---------- */
.fiche-technique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1px;
  border: 1px solid var(--liseret);
  border-radius: var(--angle-large);
  background: var(--liseret);
  overflow: hidden;
}
.fiche-technique > div { background: rgba(14, 22, 44, .96); padding: .92rem 1.05rem; }
.fiche-technique dt {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sourdine);
}
.fiche-technique dd {
  margin: .35rem 0 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clarte);
}

/* ---------- 16. Sommaire et grille de sections ---------- */
.grille-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: .55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.grille-sections a {
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 100%;
  padding: .78rem .9rem;
  border: 1px solid var(--liseret);
  border-radius: var(--angle);
  background: rgba(21, 33, 61, .55);
  color: var(--demi-jour);
  font-size: .89rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.grille-sections a::before {
  content: "";
  flex: none;
  width: .42rem;
  height: .42rem;
  transform: rotate(45deg);
  border-radius: 1px;
  background: var(--liseret-vif);
}
.grille-sections a:hover {
  color: var(--clarte);
  border-color: rgba(243, 199, 110, .4);
  background: rgba(243, 199, 110, .07);
}
.grille-sections a:hover::before { background: var(--or-mana); }

.ancrages {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ancrages a {
  display: block;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--liseret);
  font-size: .82rem;
  font-weight: 600;
  color: var(--demi-jour);
  text-decoration: none;
}
.ancrages a:hover { color: var(--or-mana); border-color: rgba(243, 199, 110, .4); }

/* ---------- 17. Parchemin (corps de lecture) ---------- */
.parchemin {
  font-family: var(--police-lecture);
  font-size: clamp(1.06rem, .3vw + 1rem, 1.18rem);
  line-height: 1.76;
  color: #dde4f4;
  max-width: var(--laize-lecture);
}
.parchemin > * + * { margin-top: 1.15em; }

.parchemin h2 {
  font-family: var(--police-titre);
  font-size: clamp(1.35rem, .7rem + 1.6vw, 1.75rem);
  margin-top: 2.4em;
  padding-top: 1.05rem;
  border-top: 1px solid var(--liseret);
  color: #fff;
}
.parchemin h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.parchemin h3 {
  font-family: var(--police-titre);
  font-size: 1.12rem;
  margin-top: 1.9em;
  color: var(--or-mana);
  letter-spacing: -.008em;
}
.parchemin ul, .parchemin ol { padding-left: 1.3rem; }
.parchemin li + li { margin-top: .5em; }
.parchemin li::marker { color: var(--or-profond); }
.parchemin strong { color: #fff; font-weight: 700; }
.parchemin blockquote {
  margin: 1.6em 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--or-profond);
  font-style: italic;
  color: #e8eefc;
}
.parchemin code {
  font-family: var(--police-donnee);
  font-size: .87em;
  padding: .12em .38em;
  border-radius: 3px;
  background: rgba(61, 84, 144, .26);
  color: var(--cristal);
}
.parchemin figure { margin-block: 2em; }

/* Le parchemin peut vivre en pleine largeur dans une colonne dediee */
.colonne-lecture { max-width: var(--laize-lecture); }

/* ---------- 18. Encarts ---------- */
.encart {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--cristal);
  border-radius: 0 var(--angle-large) var(--angle-large) 0;
  background: linear-gradient(90deg, rgba(95, 217, 207, .1), rgba(95, 217, 207, 0) 78%);
  font-family: var(--police-lecture);
  font-size: 1rem;
  line-height: 1.65;
  color: #dfe6f6;
}
.encart__titre {
  display: block;
  font-family: var(--police-titre);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--cristal);
  margin-bottom: .45rem;
}
.encart--astuce { border-left-color: var(--or-mana); background: linear-gradient(90deg, rgba(243, 199, 110, .11), transparent 78%); }
.encart--astuce .encart__titre { color: var(--or-mana); }
.encart--garde { border-left-color: var(--braise); background: linear-gradient(90deg, rgba(240, 128, 106, .11), transparent 78%); }
.encart--garde .encart__titre { color: var(--braise); }

/* ---------- 19. Etapes (solution pas a pas) ---------- */
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 1.05rem; }
.etape {
  counter-increment: etape;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--liseret);
  border-radius: var(--angle-large);
  background: rgba(14, 23, 45, .62);
}
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(243, 199, 110, .38);
  background: rgba(243, 199, 110, .08);
  font: 700 .82rem/1 var(--police-donnee);
  font-variant-numeric: tabular-nums;
  color: var(--or-mana);
}
.etape h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.etape p {
  font-family: var(--police-lecture);
  font-size: .99rem;
  line-height: 1.65;
  color: var(--demi-jour);
}
.etape p + p { margin-top: .6em; }

/* ---------- 20. Table de donnees ---------- */
.tablier { overflow-x: auto; border: 1px solid var(--liseret); border-radius: var(--angle-large); }
.tablier table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 30rem; }
.tablier th, .tablier td { padding: .72rem .95rem; text-align: left; border-bottom: 1px solid rgba(34, 49, 90, .7); }
.tablier th {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sourdine);
  background: rgba(23, 35, 65, .8);
}
.tablier tr:last-child td { border-bottom: 0; }
.tablier td { color: #d7dff1; }
.tablier .num { font-family: var(--police-donnee); font-variant-numeric: tabular-nums; color: var(--or-mana); }

/* ---------- 21. Constellation (liens connexes) ---------- */
.constellation { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 44rem) { .constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.constellation a {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .9rem 1.05rem;
  border: 1px solid var(--liseret);
  border-radius: var(--angle-large);
  background: rgba(19, 30, 57, .55);
  text-decoration: none;
}
.constellation a:hover { border-color: rgba(95, 217, 207, .42); background: rgba(95, 217, 207, .06); }
.constellation strong { font-size: .99rem; font-weight: 700; color: var(--clarte); }
.constellation span { font-size: .82rem; color: var(--sourdine); line-height: 1.45; }

/* ---------- 22. Signature editoriale ---------- */
.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  font-size: .8rem;
  color: var(--sourdine);
}
.signature b { color: var(--demi-jour); font-weight: 700; }
.signature time { font-family: var(--police-donnee); font-variant-numeric: tabular-nums; }
.signature__point { width: 3px; height: 3px; border-radius: 50%; background: var(--liseret-vif); }

/* ---------- 23. Reperes (bande de trois) ---------- */
.reperes {
  display: grid;
  gap: 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 44rem) { .reperes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; } }
.reperes li { display: grid; gap: .3rem; }
.reperes dt, .reperes b {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-mana);
}
.reperes p {
  font-family: var(--police-lecture);
  font-size: .96rem;
  line-height: 1.6;
  color: var(--demi-jour);
}

/* ---------- 24. Pied de page ---------- */
.pied {
  margin-top: var(--respiration);
  border-top: 1px solid var(--liseret);
  background: linear-gradient(180deg, rgba(10, 16, 35, .5), rgba(5, 8, 18, .9));
  padding-block: clamp(2.5rem, 6vw, 3.75rem) 2rem;
}
.pied__grille {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
@media (min-width: 50rem) {
  .pied__grille { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}
.pied__manifeste {
  font-family: var(--police-lecture);
  font-size: .97rem;
  line-height: 1.68;
  color: var(--demi-jour);
  max-width: 24rem;
  margin-top: .95rem;
}
.pied h2 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--sourdine);
  margin-bottom: .85rem;
}
.pied ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pied ul a { color: var(--demi-jour); text-decoration: none; font-size: .92rem; }
.pied ul a:hover { color: var(--or-mana); }

.pied__ourlet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 49, 90, .8);
  font-size: .8rem;
  color: var(--sourdine);
  line-height: 1.6;
}
.pied__ourlet p { max-width: 46rem; }
.pied__ourlet a { color: var(--demi-jour); }

/* ---------- 25. Utilitaires ---------- */
/* Titre d'une fenetre, sous son surtitre en petites capitales */
.titre-fenetre {
  font-size: clamp(1.18rem, .62rem + 1.1vw, 1.42rem);
  margin-bottom: .95rem;
}
/* Corps de texte serre, pour l'interieur d'une fenetre ou d'une colonne */
.parchemin--compact { font-size: 1rem; line-height: 1.68; max-width: none; }

.apres-sentier { margin-top: 1.6rem; }
.decale-haut   { margin-top: 1.35rem; }

.pile-s  > * + * { margin-top: .75rem; }
.pile-m  > * + * { margin-top: 1.35rem; }
.pile-l  > * + * { margin-top: 2.15rem; }
.centre-texte { text-align: center; }
.mesure { max-width: 42rem; }
.discret { color: var(--sourdine); font-size: .84rem; line-height: 1.6; }
.hors-ecran {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
