/* Brume Éternelle — « Brume d'encre » */
:root {
  --nuit: #0a0e11;
  --nuit-2: #10161a;
  --ardoise: #1a2329;
  --ligne: rgba(214, 228, 232, .12);
  --ligne-2: rgba(214, 228, 232, .22);
  --brume: #dfe7ea;
  --brume-2: #a9b8be;
  --brume-3: #6f8088;
  --jade: #8fd6c8;
  --jade-2: #4fb3a2;
  --sceau: #b8322a;
  --ambre: #d7b777;

  --f-titre: "Cormorant Garamond", "Times New Roman", serif;
  --f-texte: "Spectral", Georgia, serif;
  --f-k: "Shippori Mincho B1", "Yu Mincho", serif;

  --t-hero: clamp(3.4rem, 1.2rem + 9vw, 9.5rem);
  --t-h1: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  --t-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --t-base: clamp(1.02rem, .96rem + .3vw, 1.16rem);

  --gut: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--brume);
  font: 300 var(--t-base)/1.75 var(--f-texte);
  overflow-x: hidden;
  min-height: 100vh;
}
body::before { /* voile de profondeur */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(143, 214, 200, .08), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(184, 50, 42, .06), transparent 60%),
    linear-gradient(180deg, #0c1115 0%, var(--nuit) 40%, #080b0d 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brume); }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(143, 214, 200, .3); color: #fff; }

.fog { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--brume); color: var(--nuit); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gut);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(10, 14, 17, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-color: var(--ligne); padding-block: 9px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--brume); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #e8eef1 0 60%, #c8d4d9); padding: 3px; box-shadow: 0 0 0 1px var(--ligne-2), 0 0 22px rgba(143, 214, 200, .18); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font: 600 1.32rem/1 var(--f-titre); letter-spacing: .04em; }
.brand-txt small { font-size: .7rem; letter-spacing: .14em; color: var(--brume-3); text-transform: uppercase; margin-top: 4px; }
nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
nav a {
  position: relative; display: flex; align-items: center; gap: .45em;
  padding: .55em .85em; color: var(--brume-2); text-decoration: none;
  font: 500 1.06rem/1 var(--f-titre); letter-spacing: .05em; border-radius: 999px; white-space: nowrap;
  transition: color .3s, background .3s;
}
.nav-k { font: 600 .8rem/1 var(--f-k); color: var(--brume-3); transition: color .3s; }
nav a:hover { color: var(--brume); background: rgba(223, 231, 234, .06); }
nav a:hover .nav-k, nav a[aria-current] .nav-k { color: var(--jade); }
nav a[aria-current] { color: var(--brume); }
nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--jade); transform: translateX(-50%); box-shadow: 0 0 10px var(--jade); }
.burger { display: none; }

@media (max-width: 1080px) {
  .burger {
    display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; z-index: 2;
    background: rgba(223, 231, 234, .05); border: 1px solid var(--ligne-2); border-radius: 50%; cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--brume); transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  nav {
    position: fixed; inset: 0; background: rgba(8, 11, 13, .96); backdrop-filter: blur(10px);
    display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  nav.open { opacity: 1; visibility: visible; }
  nav ul { flex-direction: column; align-items: center; gap: .6rem; }
  nav a { font-size: 1.9rem; padding: .4em .8em; }
  .nav-k { font-size: 1.1rem; }
  .brand-txt small { display: none; }
}

/* ---------- Typo commune ---------- */
main { display: block; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
.eyebrow {
  margin: 0 0 1rem; font: 400 .76rem/1.4 var(--f-texte); letter-spacing: .32em; text-transform: uppercase; color: var(--jade);
  display: flex; align-items: center; gap: .9em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em;
  font: 500 1.08rem/1 var(--f-titre); letter-spacing: .08em; color: var(--nuit); text-decoration: none;
  background: linear-gradient(135deg, var(--brume), #b9cdd2); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 40px -12px rgba(143, 214, 200, .55); transition: transform .4s var(--ease), box-shadow .4s, background .4s;
}
.btn:hover { color: var(--nuit); transform: translateY(-2px); box-shadow: 0 18px 50px -14px rgba(143, 214, 200, .8); background: linear-gradient(135deg, #fff, var(--jade)); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--brume); box-shadow: inset 0 0 0 1px var(--ligne-2); }
.btn.ghost:hover { color: var(--nuit); background: var(--brume); }

.sec-head { max-width: var(--max); margin: 0 auto 3rem; padding: 0 var(--gut); }
.sec-head h2 { font-size: var(--t-h2); }
.sec-lead { max-width: 56ch; color: var(--brume-2); margin: 1.2rem 0 0; }

.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px var(--gut) 90px; overflow: hidden; }
.hero-k {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font: 800 clamp(16rem, 42vw, 44rem)/.8 var(--f-k); color: transparent;
  -webkit-text-stroke: 1px rgba(223, 231, 234, .1);
  background: linear-gradient(180deg, rgba(223, 231, 234, .1), rgba(223, 231, 234, 0) 80%); -webkit-background-clip: text; background-clip: text;
  user-select: none; animation: respire 9s ease-in-out infinite;
}
@keyframes respire { 50% { opacity: .55; transform: translateY(-52%) scale(1.02); } }
.hero-in { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero h1 { font-size: var(--t-hero); font-weight: 400; line-height: .9; letter-spacing: -.02em; }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-style: italic; padding-left: clamp(0rem, 8vw, 9rem); background: linear-gradient(100deg, var(--brume) 10%, var(--jade) 60%, var(--brume-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 46ch; margin: 2.2rem 0 2.4rem; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--brume-2); font-style: italic; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-in > * { animation: lever 1.6s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .15s; }
.hero-in > :nth-child(3) { animation-delay: .35s; }
.hero-in > :nth-child(4) { animation-delay: .5s; }
@keyframes lever { from { opacity: 0; transform: translateY(30px); filter: blur(12px); } }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1px solid var(--ligne-2); border-radius: 20px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; background: var(--jade); border-radius: 2px; transform: translateX(-50%); animation: goutte 2.2s ease-in-out infinite; }
@keyframes goutte { 60% { transform: translate(-50%, 14px); opacity: 0; } 61% { transform: translate(-50%, 0); opacity: 0; } }

.forces-wrap { padding: 6rem 0 4rem; }
.forces { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.force { position: relative; padding: 2.4rem 2rem 2.6rem; border-top: 1px solid var(--ligne-2); }
.force + .force { border-left: 1px solid var(--ligne); }
.force:nth-child(2) { margin-top: 3.5rem; }
.force:nth-child(3) { margin-top: 7rem; }
.force-k { display: block; font: 800 4.4rem/1 var(--f-k); color: transparent; -webkit-text-stroke: 1px var(--jade); margin-bottom: 1.4rem; transition: color .6s; }
.force:hover .force-k { color: rgba(143, 214, 200, .25); }
.force h3 { font-size: 2.1rem; font-style: italic; margin-bottom: .6rem; }
.force p { margin: 0; color: var(--brume-2); }
@media (max-width: 820px) {
  .forces { grid-template-columns: 1fr; }
  .force:nth-child(n) { margin-top: 0; border-left: 0; }
}

.stats { max-width: var(--max); margin: 3rem auto 6rem; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stats div { padding: 1.8rem 1.4rem; background: linear-gradient(180deg, rgba(223, 231, 234, .04), transparent); border-top: 1px solid var(--ligne); }
.stats b { display: block; font: 400 clamp(3rem, 2rem + 3vw, 4.6rem)/1 var(--f-titre); color: var(--brume); }
.stats span { color: var(--brume-3); font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.lignee { padding: 2rem 0 6rem; }
.strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 1rem var(--gut) 2rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--brume-3) transparent;
  scroll-padding-inline: var(--gut);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.strip-item { position: relative; flex: 0 0 210px; height: 290px; border-radius: 4px; overflow: hidden; scroll-snap-align: start; color: var(--brume); text-decoration: none; background: var(--ardoise); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.75) brightness(.8) contrast(1.05); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.strip-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 17, .95)); }
.strip-item span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font: 500 1.3rem/1.1 var(--f-titre); }
.strip-item b { display: block; font: 400 .68rem/1.4 var(--f-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--jade); margin-bottom: 4px; }
.strip-item:hover img, .strip-item:focus-visible img { filter: none; transform: scale(1.1); }

.serment-teaser { position: relative; max-width: 900px; margin: 0 auto 7rem; padding: 4rem var(--gut); text-align: center; }
.serment-teaser blockquote { margin: 0 0 2.2rem; font: italic 400 clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem)/1.3 var(--f-titre); }
.serment-teaser blockquote p { margin: 0; }
.seal {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.6rem;
  font: 800 2rem/1 var(--f-k); color: #f6e9e6; background: var(--sceau); border-radius: 6px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .12), 0 10px 40px -10px rgba(184, 50, 42, .8); transform: rotate(-4deg);
}
.seal.big { width: 86px; height: 86px; font-size: 2.8rem; }

.chapitres { padding-bottom: 6rem; }
.chap-list { list-style: none; margin: 0 auto; padding: 0 var(--gut); max-width: var(--max); }
.chap-list a {
  position: relative; display: grid; grid-template-columns: 3.5rem 5rem 1fr auto; align-items: center; gap: 1.2rem;
  padding: 1.8rem .4rem; border-top: 1px solid var(--ligne); color: var(--brume); text-decoration: none; overflow: hidden;
}
.chap-list li:last-child a { border-bottom: 1px solid var(--ligne); }
.chap-list a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(143, 214, 200, .09), transparent 70%); transform: translateX(-101%); transition: transform .8s var(--ease); }
.chap-list a:hover::before, .chap-list a:focus-visible::before { transform: none; }
.chap-n { font: 600 1rem/1 var(--f-k); color: var(--brume-3); }
.chap-k { font: 800 3.4rem/1 var(--f-k); color: transparent; -webkit-text-stroke: 1px var(--brume-3); transition: color .5s, -webkit-text-stroke-color .5s; }
.chap-list a:hover .chap-k { color: var(--jade); -webkit-text-stroke-color: var(--jade); }
.chap-t b { display: block; font: 500 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.1 var(--f-titre); }
.chap-t small { color: var(--brume-2); font-size: .95rem; }
.chap-go { font-size: 1.6rem; color: var(--jade); transition: transform .5s var(--ease); }
.chap-list a:hover .chap-go { transform: translateX(8px); }
@media (max-width: 640px) {
  .chap-list a { grid-template-columns: 3.4rem 1fr; }
  .chap-n, .chap-go { display: none; }
  .chap-k { font-size: 2.6rem; }
}

/* ---------- En-tête de page ---------- */
.page-head { position: relative; max-width: var(--max); margin: 0 auto; padding: 170px var(--gut) 4rem; }
.page-head h1 { font-size: var(--t-h1); font-weight: 400; max-width: 16ch; }
.chapo { max-width: 52ch; margin: 1.4rem 0 0; color: var(--brume-2); font-style: italic; font-size: 1.15rem; }
.page-k {
  position: absolute; right: var(--gut); top: 110px; font: 800 clamp(9rem, 22vw, 20rem)/1 var(--f-k);
  color: transparent; -webkit-text-stroke: 1px rgba(223, 231, 234, .12); pointer-events: none; user-select: none;
}
.sec-title { display: flex; align-items: baseline; gap: 1.1rem; margin: 0 0 2.4rem; }
.sec-title span { font: 800 1.6rem/1 var(--f-k); color: var(--jade); }
.sec-title h2 { font-size: var(--t-h2); }

/* ---------- Fondamentaux ---------- */
.doc { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 6rem; display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 5rem); }
.doc-body { min-width: 0; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: .2rem; border-left: 1px solid var(--ligne); }
.toc a { display: flex; gap: .8em; align-items: center; padding: .6em 1em; margin-left: -1px; color: var(--brume-3); text-decoration: none; border-left: 1px solid transparent; font: 500 1.08rem/1.2 var(--f-titre); transition: color .3s, border-color .3s; }
.toc a span { font: 600 .85rem/1 var(--f-k); }
.toc a:hover, .toc a.on { color: var(--brume); border-color: var(--jade); }
.toc a.on span { color: var(--jade); }
.scroll-sec { padding-top: 1rem; margin-bottom: 7rem; scroll-margin-top: 90px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.25em; }
.prose.big { font-size: 1.2em; }
.drop > p:first-child::first-letter { float: left; font: 500 4.6em/.8 var(--f-titre); padding: .08em .12em 0 0; color: var(--jade); }
.pull { margin: 2rem 0 !important; padding: 1.4rem 0 1.4rem 1.6rem; border-left: 2px solid var(--jade); font: italic 400 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.35 var(--f-titre); color: var(--brume); }
.lineage { margin: 3rem 0 0; display: flex; align-items: center; gap: 0; max-width: 640px; }
.lineage div { position: relative; flex: 1; padding: 1.2rem 1rem; text-align: center; border: 1px solid var(--ligne); border-radius: 4px; background: rgba(223, 231, 234, .02); }
.lineage div.on { border-color: var(--jade); box-shadow: 0 0 40px -12px var(--jade); }
.lineage small { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brume-3); }
.lineage b { display: block; font: 500 1.6rem/1.2 var(--f-titre); }
.lineage span { font: 800 1.3rem/1 var(--f-k); color: var(--brume-3); }
.lineage .on span { color: var(--jade); }
.lineage i { flex: 0 0 28px; height: 1px; background: var(--ligne-2); }
.articles { list-style: none; margin: 0; padding: 0; }
.article { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.4rem; padding: 1.8rem 0; border-top: 1px solid var(--ligne); }
.art-k { font: 600 1.05rem/1.3 var(--f-k); color: var(--brume-3); writing-mode: vertical-rl; letter-spacing: .3em; transition: color .4s; }
.article:hover .art-k { color: var(--jade); }
.article h3 { font-size: 1.85rem; margin-bottom: .6rem; }
.article h3 small { display: block; font: 400 .72rem/1.6 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--jade); }
.article p { margin: 0; color: var(--brume-2); max-width: 66ch; }
.serment { position: relative; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--ligne); border-radius: 4px; background: radial-gradient(80% 100% at 0% 0%, rgba(143, 214, 200, .06), transparent 70%), rgba(10, 14, 17, .5); }
.serment .seal { position: absolute; right: clamp(1rem, 3vw, 2.4rem); top: -30px; }
.poeme { font: italic 400 clamp(1.35rem, 1rem + 1.3vw, 2.05rem)/1.55 var(--f-titre); }
.vers { margin: 0; }
.serment.in .vers { animation: vers 1.3s var(--ease) both; animation-delay: calc(var(--v) * 160ms + .2s); }
@keyframes vers { from { opacity: 0; filter: blur(8px); transform: translateX(-10px); } }
.vers.fin { margin-top: 1.4rem; font-style: normal; color: var(--jade); }
.serment-form { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .8rem; align-items: end; }
.form-aide { grid-column: 1 / -1; margin: 0; color: var(--brume-3); font-size: .92rem; }
.serment-form label { min-width: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brume-3); }
.serment-form input { font: 400 1.05rem/1.2 var(--f-texte); color: var(--brume); background: rgba(223, 231, 234, .04); border: 1px solid var(--ligne-2); border-radius: 4px; padding: .7em .8em; min-width: 0; transition: border-color .3s, background .3s; }
.serment-form input:focus { outline: none; border-color: var(--jade); background: rgba(143, 214, 200, .06); }
@media (max-width: 980px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--ligne); }
  .toc a { border-left: 0; border-bottom: 1px solid transparent; margin: 0 0 -1px; }
  .serment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .serment-form .btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 560px) {
  .lineage { flex-direction: column; }
  .lineage i { width: 1px; height: 18px; flex-basis: 18px; }
  .lineage div { width: 100%; }
  .article { grid-template-columns: 2.4rem 1fr; gap: 1rem; }
}

/* ---------- Légendes ---------- */
.filtres { max-width: var(--max); margin: 0 auto 4rem; padding: 0 var(--gut); display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 400 .9rem/1 var(--f-texte); color: var(--brume-2); background: transparent; border: 1px solid var(--ligne-2); border-radius: 999px; padding: .65em 1.1em; cursor: pointer; transition: all .3s; }
.chip:hover { color: var(--brume); border-color: var(--brume-3); }
.chip.on { background: var(--brume); color: var(--nuit); border-color: var(--brume); }
.roster { max-width: var(--max); margin: 0 auto 6rem; padding: 0 var(--gut); }
.grid-perso { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.grid-perso.piliers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.perso.masque { display: none; }
.perso-btn {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--ardoise); color: var(--brume); text-align: left; cursor: pointer; font: inherit;
  box-shadow: 0 0 0 1px var(--ligne); transition: box-shadow .5s, transform .6s var(--ease);
}
.perso-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.55) brightness(.85); transform: scale(1.03); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.perso-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 17, .1) 30%, rgba(10, 14, 17, .96) 92%); }
.perso-btn:hover, .perso-btn:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ligne-2), 0 26px 50px -24px rgba(143, 214, 200, .55); }
.perso-btn:hover img, .perso-btn:focus-visible img { filter: none; transform: scale(1.08); }
.perso-n { position: absolute; z-index: 1; top: 10px; left: 12px; font: 800 1.5rem/1 var(--f-k); color: rgba(255, 255, 255, .85); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.perso-txt { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.perso-txt small { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brume-2); }
.perso-txt b { font: 500 1.55rem/1.1 var(--f-titre); }
.statut { --c: var(--brume-3); display: inline-flex; align-items: center; gap: .5em; align-self: flex-start; margin-top: 6px; font: normal 400 .74rem/1 var(--f-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.s-vivant .statut, .statut.s-vivant { --c: var(--jade); }
.s-retraite .statut, .statut.s-retraite { --c: #9fb7d9; }
.s-decede .statut, .statut.s-decede { --c: #8a969b; }
.s-traitre .statut, .statut.s-traitre { --c: #e2574c; }
.s-inconnu .statut, .statut.s-inconnu { --c: var(--ambre); }
.s-traitre .perso-btn { box-shadow: 0 0 0 1px rgba(226, 87, 76, .35); }
.s-vivant .perso-btn { box-shadow: 0 0 0 1px rgba(143, 214, 200, .4); }
.perso:target .perso-btn { box-shadow: 0 0 0 2px var(--jade), 0 0 50px -10px var(--jade); }
.perso { scroll-margin-top: 120px; }

.fiche { width: min(980px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--ligne-2); border-radius: 6px; background: var(--nuit-2); color: var(--brume); overflow: auto; }
.fiche[open] { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); animation: fiche .6s var(--ease); }
.fiche::backdrop { background: rgba(5, 7, 9, .82); backdrop-filter: blur(6px); }
@keyframes fiche { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.fiche-img { background: #000; min-height: 0; }
.fiche-img img { width: 100%; height: 100%; max-height: calc(100svh - 34px); object-fit: cover; object-position: 50% 20%; }
.fiche-txt { padding: clamp(1.6rem, 4vw, 3.2rem); align-self: end; }
.fiche-txt h2 { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); margin-bottom: 1rem; }
.fiche-txt .statut { font-size: .85rem; }
.fiche-autre { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--ligne); color: var(--brume-2); }
.fiche-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ligne-2); background: rgba(10, 14, 17, .7); color: var(--brume); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fiche-x:hover { background: var(--brume); color: var(--nuit); }
@media (max-width: 720px) {
  .fiche[open] { grid-template-columns: 1fr; }
  .fiche-img img { max-height: 55svh; }
  .grid-perso, .grid-perso.piliers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .perso-txt b { font-size: 1.15rem; }
  .perso-txt small { font-size: .56rem; letter-spacing: .1em; }
}

/* ---------- Archives ---------- */
.relique-nav { max-width: var(--max); margin: 0 auto 5rem; padding: 0 var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.relique-nav a { padding: 1.4rem 1.6rem; border: 1px solid var(--ligne); color: var(--brume); text-decoration: none; transition: background .4s, border-color .4s; }
.relique-nav a:hover { background: rgba(143, 214, 200, .06); border-color: var(--jade); }
.relique-nav b { display: block; font: 500 1.8rem/1.1 var(--f-titre); }
.relique-nav small { color: var(--brume-3); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.relique { max-width: var(--max); margin: 0 auto 8rem; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); scroll-margin-top: 90px; }
.relique-art { position: sticky; top: 110px; align-self: start; text-align: center; }
.rune-halo {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 220, 190, .22), rgba(70, 220, 190, .04) 45%, transparent 68%);
}
.rune-halo::before, .rune-halo::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px dashed rgba(143, 214, 200, .35); animation: tourne 40s linear infinite; }
.rune-halo::after { inset: 22%; border-style: solid; border-color: rgba(143, 214, 200, .14); animation-duration: 24s; animation-direction: reverse; }
@keyframes tourne { to { transform: rotate(360deg); } }
.rune-halo img { width: 38%; height: auto; border-radius: 16%; image-rendering: auto; filter: drop-shadow(0 0 18px rgba(70, 230, 200, .75)); animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
.relique-k { margin: 1.4rem 0 0; font: 800 5rem/1 var(--f-k); color: transparent; -webkit-text-stroke: 1px var(--brume-3); }
.relique-txt h2 { font-size: var(--t-h1); font-weight: 400; margin-bottom: 2.4rem; }
.relique-txt h2 em { display: block; font-size: .5em; color: var(--jade); margin-top: .3em; }
.relique-txt h3 { font-size: 1.1rem; font-family: var(--f-texte); font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--brume-3); margin-bottom: 1.6rem; }
@media (max-width: 860px) {
  .relique { grid-template-columns: 1fr; }
  .relique-art { position: static; }
  .rune-halo { max-width: 240px; }
  .relique-k { display: none; }
  .relique-nav { grid-template-columns: 1fr; }
}

/* ---------- Techniques ---------- */
.technique { max-width: var(--max); margin: 0 auto 7rem; padding: 0 var(--gut); scroll-margin-top: 90px; }
.tech-head { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 3rem); padding-bottom: 2.4rem; margin-bottom: 2.8rem; border-bottom: 1px solid var(--ligne); }
.tech-k { flex: none; font: 800 clamp(3.4rem, 2rem + 4vw, 6rem)/1 var(--f-k); writing-mode: vertical-rl; color: transparent; -webkit-text-stroke: 1px var(--jade); }
.tech-head h2 { font-size: var(--t-h2); }
.tech-meta { margin: .8rem 0 0; color: var(--brume-2); }
.tech-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.tech-grid.one { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.tech-grid h3 { font: 400 .8rem/1 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--jade); margin-bottom: 1.4rem; }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.etape { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-bottom: 1.8rem; }
.etape:not(:last-child)::before { content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: .4rem; width: 1px; background: linear-gradient(var(--jade), transparent); }
.etape-n { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--jade); font: 600 1.2rem/1 var(--f-k); color: var(--jade); }
.etape p { margin: .5rem 0 1rem; }
.cmds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmd { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem .9rem; background: rgba(0, 0, 0, .35); border: 1px solid var(--ligne); border-radius: 4px; }
.cmd code { flex: 1; min-width: 0; font: 400 .9rem/1.45 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--brume); overflow-wrap: anywhere; }
.cmd.roll { border-color: rgba(215, 183, 119, .4); }
.cmd.roll code { color: var(--ambre); }
.copy { flex: none; font: 400 .72rem/1 var(--f-texte); letter-spacing: .1em; text-transform: uppercase; padding: .55em .8em; border-radius: 3px; border: 1px solid var(--ligne-2); background: transparent; color: var(--brume-2); cursor: pointer; transition: all .3s; }
.copy:hover { color: var(--nuit); background: var(--brume); }
.copy.ok { color: var(--nuit); background: var(--jade); border-color: var(--jade); }
.tech-fin { font: italic 400 1.4rem/1.4 var(--f-titre); margin: .4rem 0 1.4rem 4rem; }
.alerte { display: flex; gap: 1rem; align-items: flex-start; margin: 0; padding: 1.1rem 1.2rem; border: 1px solid rgba(226, 87, 76, .5); border-radius: 4px; background: rgba(184, 50, 42, .1); color: #f1c9c4; font-size: .92rem; letter-spacing: .02em; }
.alerte span { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 4px; background: var(--sceau); color: #fff; font: 800 1.1rem/1 var(--f-k); }
.tornade { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; margin: 0 auto; }
.tornade i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(223, 231, 234, .18); border-top-color: rgba(143, 214, 200, .8); animation: tourne 6s linear infinite; }
.tornade i:nth-child(2) { inset: 12%; animation-duration: 4.5s; animation-direction: reverse; border-top-color: rgba(223, 231, 234, .6); }
.tornade i:nth-child(3) { inset: 26%; animation-duration: 3s; }
.tornade i:nth-child(4) { inset: 40%; animation-duration: 2s; animation-direction: reverse; background: radial-gradient(circle, rgba(143, 214, 200, .25), transparent 70%); }
@media (max-width: 860px) {
  .tech-grid, .tech-grid.one { grid-template-columns: 1fr; }
  .tech-fin { margin-left: 0; }
  .tornade { max-width: 220px; }
}

/* ---------- Pied ---------- */
.pied { position: relative; text-align: center; padding: 5rem var(--gut) 3rem; border-top: 1px solid var(--ligne); color: var(--brume-3); font-size: .92rem; }
.pied-k { font: 800 3rem/1 var(--f-k); color: var(--brume-3); opacity: .5; margin-bottom: 1rem; }
.pied p { margin: .3rem 0; }
.pied strong { color: var(--brume-2); font-weight: 400; }
.pied-src { font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
