/* =====================================================================
   MIRANORP — STYLES (v8)
   Fond anthracite avec un motif discret de « M », navbar flottante,
   cartes arrondies. Chaque partie du wiki a sa couleur (--c).
   ===================================================================== */

:root {
  --bg: #0b0a0d;
  --bg2: #131217;
  --card: #141318;
  --card2: #1a1920;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --fg: #f3f1f6;
  --muted: #a6a2ad;
  --dim: #75717c;
  --accent: #a855f7;
  --accent-2: #8b2be2;
  --ok: #3ddc84;
  --bad: #ff5a6e;
  --c: var(--accent);
  --r: 14px;
  --r-lg: 20px;
  --f: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --hdr: 64px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27140%27%20height%3D%27140%27%3E%3Cg%20fill%3D%27white%27%20fill-opacity%3D%27.045%27%3E%3Cg%20transform%3D%27translate%2824%2024%29%20scale%28.032%29%20translate%28-90%20-140%29%27%3E%3Cpath%20d%3D%27M120%20150%20L432%20465%20L748%20143%20L743%20803%20L610%20460%20L433%20677%20L258%20462%20L258%20470%20L120%20358%20Z%27/%3E%3Cpath%20d%3D%27M115%20382%20L248%20495%20L212%20600%20L270%20595%20L90%20845%20L165%20640%20L120%20640%20L148%20430%20Z%27/%3E%3C/g%3E%3Cg%20transform%3D%27translate%2894%2094%29%20scale%28.032%29%20translate%28-90%20-140%29%27%3E%3Cpath%20d%3D%27M120%20150%20L432%20465%20L748%20143%20L743%20803%20L610%20460%20L433%20677%20L258%20462%20L258%20470%20L120%20358%20Z%27/%3E%3Cpath%20d%3D%27M115%20382%20L248%20495%20L212%20600%20L270%20595%20L90%20845%20L165%20640%20L120%20640%20L148%20430%20Z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--fg); font: 400 1rem/1.65 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(168, 85, 247, .14), transparent 65%),
    radial-gradient(700px 500px at -10% 30%, rgba(139, 43, 226, .08), transparent 65%),
    var(--pattern) 0 0 / 140px 140px,
    var(--bg);
  background-attachment: fixed, fixed, fixed, scroll;
}
body.intro-on { overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--accent-2); color: #fff; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
kbd { font: 500 .7rem/1 var(--mono); padding: 4px 6px; border: 1px solid var(--line2); border-radius: 6px; color: var(--dim); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.linkbtn:hover { color: #fff; }
.link { color: var(--c); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
mark { background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; padding: 0 2px; border-radius: 3px; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); cursor: pointer; clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease); }
.intro.out { clip-path: inset(0 0 100% 0); }
.intro__logo { width: 160px; height: 160px; animation: logoIn 1.1s var(--ease) both; }
.intro__logo img { width: 100%; height: 100%; animation: zap 1.2s .9s ease-in-out both; }
@keyframes logoIn { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes zap { 0%, 100% { transform: none; filter: none; } 15% { transform: translate(-4px, 2px) skewX(-6deg); } 30% { transform: translate(4px, -2px) skewX(6deg); filter: brightness(1.5); } 45% { transform: none; } }
.intro__name { margin: 0; font: italic 800 2.2rem/1 var(--f); letter-spacing: -.04em; animation: up .7s .6s var(--ease) both; }
.intro__name span, .brand b, .hero__brand b, .ftr__brand b span { color: var(--accent); }
.intro__bar { width: 160px; height: 3px; border-radius: 999px; background: var(--line2); overflow: hidden; animation: up .5s .7s var(--ease) both; }
.intro__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: bar 1.3s .8s var(--ease) both; }
@keyframes bar { from { transform: scaleX(0); } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Navbar flottante ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 14px max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.hdr__in { pointer-events: auto; max-width: 1240px; margin: 0 auto; height: var(--hdr); display: flex; align-items: center; gap: 18px; padding: 0 10px 0 18px;
  background: rgba(17, 16, 21, .78); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: background .3s, box-shadow .3s; }
.hdr.scrolled .hdr__in { background: rgba(17, 16, 21, .92); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: italic 800 1.3rem/1 var(--f); letter-spacing: -.045em; flex-shrink: 0; margin-right: 10px; }
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav { flex: 1; display: flex; align-items: center; gap: 2px; }
.nav > a, .nav__dd > a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font: 600 .92rem/1 var(--f); transition: color .2s, background .2s; }
.nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav .chev { width: 13px; height: 13px; margin-left: -2px; transition: transform .25s; }
.nav > a:hover, .nav__dd > a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav .nav__login { margin-left: auto; padding: 10px 16px; border: 1px solid var(--line2); color: #fff; }
.nav .nav__login:hover { background: #fff; color: var(--bg); border-color: #fff; }

/* Menu déroulant du wiki */
.nav__dd { position: relative; }
.dd { position: absolute; top: calc(100% + 12px); left: -10px; width: 330px; padding: 8px; display: grid; gap: 2px; background: rgba(20, 19, 25, .97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease); }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__dd:hover .dd, .nav__dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.nav__dd:hover .chev, .nav__dd:focus-within .chev { transform: rotate(180deg); }
.dd a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.dd a:hover, .dd a.on { background: rgba(255, 255, 255, .05); }
.dd__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.dd__icon svg { width: 18px; height: 18px; }
.dd b { display: block; font-size: .92rem; color: #fff; }
.dd small { display: block; font-size: .78rem; color: var(--dim); line-height: 1.35; }

.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 12px; background: none; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--fg); transition: .3s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav { position: fixed; left: 14px; right: 14px; top: calc(var(--hdr) + 26px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - var(--hdr) - 50px); overflow-y: auto;
    flex-direction: column; align-items: stretch; padding: 10px; background: rgba(17, 16, 21, .98); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav__dd > a { padding: 14px 12px; font-size: 1rem; }
  .nav a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .chev { display: none; }
  .dd { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 6px 18px; }
  .dd small { display: none; }
  .nav .nav__login { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 12px; text-decoration: none; cursor: pointer; font: 700 .96rem/1 var(--f); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn--white { background: #fff; color: #0b0a0d; }
.btn--white svg { fill: currentColor; stroke: none; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 255, 255, .12); }
.btn--ghost, .btn--line { border-color: var(--line2); color: #fff; background: rgba(255, 255, 255, .02); }
.btn--ghost:hover, .btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .88rem; border-radius: 10px; }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding-block: clamp(48px, 8vw, 110px) 60px; min-height: calc(100svh - var(--hdr) - 14px); }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; } }
.hero__brand { display: flex; align-items: center; gap: 12px; margin: 0; font: italic 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f); letter-spacing: -.05em; }
.hero__brand img { width: 1.25em; height: 1.25em; transition: transform .5s var(--ease); filter: drop-shadow(0 8px 24px rgba(168, 85, 247, .45)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -6px; } }
.hero__title { margin: 22px 0 0; font: 800 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--f); letter-spacing: -.045em; color: #d9d6de; }
.hero__title em { font-style: normal; color: #fff; }
.hero__sub { margin: 22px 0 0; max-width: 50ch; color: var(--muted); font-size: 1.08rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 26px 0 0; font-size: .88rem; color: var(--dim); }
.hero__meta b { color: var(--fg); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.led.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2s infinite; }
.led.off { background: var(--bad); }
@keyframes blink { 50% { opacity: .35; } }
.hero__text > * { animation: up .8s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; } .hero__text > :nth-child(3) { animation-delay: .16s; } .hero__text > :nth-child(4) { animation-delay: .24s; } .hero__text > :nth-child(5) { animation-delay: .32s; }

/* Carte wiki */
.wcard { position: relative; border: 1px solid var(--line2); border-radius: var(--r-lg); background: rgba(20, 19, 25, .88); backdrop-filter: blur(8px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); animation: up .9s .2s var(--ease) both; }
.wcard::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(160deg, rgba(168, 85, 247, .6), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.wcard__bar { display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 16px 0; border-bottom: 1px solid var(--line); }
.wcard__tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--card2); font: 500 .8rem/1 var(--mono); color: var(--fg); margin-bottom: -1px; }
.wcard__tab svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.wcard__date { padding-bottom: 10px; font: 500 .78rem/1 var(--mono); color: var(--dim); }
.wcard__body { padding: 22px 24px 8px; }
.wcard__kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tag { font: 500 .72rem/1 var(--mono); letter-spacing: 0; text-transform: none; padding: 4px 7px; border-radius: 6px; background: #fff; color: #0b0a0d; }
.wcard__t { margin: 12px 0 18px; font: 800 1.6rem/1.15 var(--f); letter-spacing: -.035em; }
.wcard__list { list-style: none; margin: 14px 0 0; padding: 0; }
.wcard__list li + li { border-top: 1px solid var(--line); }
.wcard__list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; padding: 12px 6px; text-decoration: none; border-radius: 10px; transition: background .2s, padding .25s var(--ease); }
.wcard__list a:hover { background: rgba(255, 255, 255, .04); padding-left: 12px; }
.wl__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.wl__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wl__name { font-weight: 700; }
.wl__count { font: 500 .78rem/1 var(--mono); color: var(--dim); }
.wl__go { color: var(--dim); transition: transform .25s var(--ease), color .2s; }
.wcard__list a:hover .wl__go { transform: translateX(4px); color: var(--c); }
.wcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.f8 { padding: 0; background: none; border: 0; cursor: pointer; max-width: 100%; }
.f8 code { display: inline-block; max-width: 100%; font: 500 .78rem/1.3 var(--mono); color: var(--muted); padding: 8px 10px; border: 1px dashed var(--line2); border-radius: 8px; overflow-wrap: anywhere; transition: color .2s, border-color .2s; }
.f8:hover code { color: #fff; border-color: var(--accent); }

.hsearch { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.hsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 85, 247, .15); }
.hsearch svg, .psearch svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.hsearch input, .psearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: 500 .95rem var(--f); }
.hsearch input::placeholder, .psearch input::placeholder { color: var(--dim); }
.hsearch__list { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 20; padding: 6px; background: #17161c; border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); max-height: 330px; overflow-y: auto; }
.hres { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px; text-decoration: none; }
.hres:hover, .hres:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.hres__cat { font: 500 .7rem/1 var(--mono); padding: 4px 7px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.hres__n { font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.hres__t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hres__empty { margin: 0; padding: 14px 10px; color: var(--muted); font-size: .9rem; }

.block { padding-block: 70px 0; }
.block:last-child { padding-bottom: 100px; }
.block__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.block__t { margin: 0; font: 800 clamp(1.7rem, 3.4vw, 2.4rem)/1.1 var(--f); letter-spacing: -.04em; }
.block__s { margin: 0; color: var(--muted); max-width: 44ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 8px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(20, 19, 25, .7); transition: border-color .25s, transform .25s var(--ease); }
.steps li:hover { border-color: var(--line2); transform: translateY(-3px); }
.step__n { font: 500 .85rem/1 var(--mono); color: var(--accent); }
.steps h3 { margin: 6px 0 0; font: 800 1.2rem/1.2 var(--f); letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 19, 25, .7); transition: border-color .25s; }
.faq__item[open] { border-color: var(--line2); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; cursor: pointer; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); transition: background .25s, transform .35s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--accent); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 22px 20px; color: var(--muted); }
.faq__a p { margin: 0 0 10px; max-width: 72ch; }
.faq .link { --c: var(--accent); }

/* =====================================================================
   PAGES INTÉRIEURES
   ===================================================================== */
.phead { padding-block: clamp(36px, 6vw, 64px) 26px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--accent); }
.ptitle { margin: 12px 0 0; font: 800 clamp(2.3rem, 5.4vw, 3.8rem)/1.02 var(--f); letter-spacing: -.045em; animation: up .7s var(--ease) both; }
.psub { margin: 14px 0 0; max-width: 58ch; color: var(--muted); font-size: 1.06rem; animation: up .7s .06s var(--ease) both; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--dim); }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: #fff; }
.phead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 18px; }
.phead__row .ptitle { margin: 0; }
.phead__icon { width: 68px; height: 68px; flex-shrink: 0; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.phead__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font: 500 .8rem/1.4 var(--mono); color: var(--dim); }
.phead__meta span:first-child { color: var(--c); }
.phead__cta { margin-left: auto; }
@media (max-width: 600px) { .phead__icon { width: 52px; height: 52px; border-radius: 14px; } .phead__icon svg { width: 24px; height: 24px; } .phead__cta { margin-left: 0; } }
.parts { display: flex; gap: 6px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; }
.parts::-webkit-scrollbar { display: none; }
.parts a { flex-shrink: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--muted); transition: .2s; }
.parts a:hover { color: #fff; border-color: var(--line2); }
.parts a[aria-current="page"] { color: #0b0a0d; background: var(--c); border-color: var(--c); }
.psearch { display: flex; align-items: center; gap: 12px; margin-top: 14px; height: 52px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(20, 19, 25, .8); transition: border-color .2s, box-shadow .2s; }
.psearch:focus-within { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.psearch__count { font: 500 .8rem/1 var(--mono); color: var(--c); white-space: nowrap; }
.psearch__also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.psearch__also a { padding: 5px 11px; border: 1px solid var(--line2); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--c); }
.psearch__also a:hover { border-color: var(--c); }

/* Wiki : accueil */
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 100px; }
@media (max-width: 900px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .wgrid { grid-template-columns: minmax(0, 1fr); } }
.wpart { position: relative; overflow: hidden; display: grid; gap: 8px; align-content: start; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(20, 19, 25, .75); text-decoration: none; transition: border-color .3s, transform .3s var(--ease); }
.wpart::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); opacity: .5; transition: opacity .3s, transform .5s var(--ease); }
.wpart:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-4px); }
.wpart:hover::after { opacity: 1; transform: scale(1.2); }
.wpart__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 8px; }
.wpart__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wpart__name { font: 800 1.3rem/1.2 var(--f); letter-spacing: -.03em; }
.wpart__desc { color: var(--muted); font-size: .94rem; }
.wpart__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: auto; padding-top: 14px; font: 500 .76rem/1.4 var(--mono); color: var(--dim); }
.wpart__meta span:first-child { color: var(--c); }
.wpart__go { margin-left: auto; font-size: 1.1rem; color: var(--c); transition: transform .25s var(--ease); }
.wpart:hover .wpart__go { transform: translateX(4px); }

/* Parties du wiki */
.pbody { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-block: 20px 100px; }
@media (max-width: 960px) { .pbody { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.toc { position: sticky; top: calc(var(--hdr) + 40px + env(safe-area-inset-top, 0px)); align-self: start; }
.toc__t { margin: 0 0 10px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.35; transition: .2s; }
.toc a small { font: 500 .74rem/1.9 var(--mono); color: var(--dim); }
.toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.toc a.active { color: #fff; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 2px 0 0 var(--c); }
.toc a.active small { color: var(--c); }
.tocsel { display: none; }
@media (max-width: 960px) {
  .toc { display: none; }
  .tocsel { display: block; position: sticky; top: calc(var(--hdr) + 24px + env(safe-area-inset-top, 0px)); z-index: 10; margin-bottom: 22px; }
  .tocsel select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: #17161c; color: var(--fg); font: 600 .95rem var(--f); }
}
.pmain { min-width: 0; }
.intro-box { margin: 0 0 36px; padding: 20px 24px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); font-size: 1.04rem; color: #e6e2ec; }
.sec { scroll-margin-top: calc(var(--hdr) + 40px); margin-bottom: 48px; }
.sec__t { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 800 1.5rem/1.2 var(--f); letter-spacing: -.035em; }
.sec__t span { font: 500 .74rem/1 var(--mono); padding: 5px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

.rule { scroll-margin-top: calc(var(--hdr) + 100px); margin-bottom: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 19, 25, .78); transition: border-color .25s, background .5s; }
.rule:hover { border-color: var(--line2); }
.rule.flash { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.rule__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.rule__n { font: 500 .8rem/1 var(--mono); padding: 5px 8px; border-radius: 7px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-variant-numeric: tabular-nums; }
.rule__t { margin: 0; font: 800 1.08rem/1.3 var(--f); letter-spacing: -.015em; }
.copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; color: var(--muted); font: 600 .76rem/1 var(--f); transition: .2s; }
.copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.copy:hover, .copy:focus-visible { color: #0b0a0d; background: #fff; border-color: #fff; }
@media (hover: hover) { .rule .copy, .lex__item .copy { opacity: 0; } .rule:hover .copy, .lex__item:hover .copy, .copy:focus-visible { opacity: 1; } }
.badge { font: 700 .68rem/1 var(--f); padding: 5px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.badge--lourde { color: #ff8b99; border-color: rgba(255, 90, 110, .35); background: rgba(255, 90, 110, .08); }
.badge--dossier { color: #f7cf6b; border-color: rgba(245, 192, 74, .3); background: rgba(245, 192, 74, .07); }
.badge--delai { color: #5ee6cf; border-color: rgba(45, 212, 191, .3); background: rgba(45, 212, 191, .07); }
.badge--police { color: #8bb8ff; border-color: rgba(91, 157, 255, .35); background: rgba(91, 157, 255, .08); }
.rule__box { color: #cfcbd6; font-size: .97rem; line-height: 1.72; }
.rule__box p { margin: 0 0 10px; } .rule__box > :last-child { margin-bottom: 0; }
.rule__box ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 7px; }
.rule__box li { position: relative; padding-left: 18px; }
.rule__box li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.rule.in, .lex__item.in { animation: up .5s var(--ease) both; }

.tbl { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.tbl table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--dim); background: rgba(255, 255, 255, .02); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; color: #fff; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl a { text-decoration: none; } .tbl a:hover { color: var(--c); }
.na { color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pill--ok { color: #6ee7a6; } .pill--ok::before { background: var(--ok); }
.pill--no { color: #ff8b99; } .pill--no::before { background: var(--bad); }
.pill--file { color: #f7cf6b; } .pill--file::before { background: #f5c04a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chip { padding: 7px 12px; border: 1px solid var(--line2); border-radius: 999px; background: none; cursor: pointer; color: var(--muted); font: 600 .8rem/1 var(--f); transition: .2s; }
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { color: #0b0a0d; background: var(--c); border-color: var(--c); }

.recap { scroll-margin-top: calc(var(--hdr) + 40px); margin-bottom: 48px; padding: 24px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: var(--r-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--card)), var(--card)); }
.recap__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.recap__head h2 { margin: 0; font: 800 1.45rem/1.2 var(--f); letter-spacing: -.03em; }
.recap__head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.recap__ctrl { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; }
.recap__ctrl input { accent-color: var(--c); width: 150px; }
.recap__ctrl output { font: 800 1.5rem/1 var(--f); min-width: 2ch; }
.recap .tbl table { min-width: 780px; }
.recap tr { transition: opacity .3s; }
.recap tr.off td { opacity: .32; }

.lex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .lex { grid-template-columns: minmax(0, 1fr); } }
.lex__item { scroll-margin-top: calc(var(--hdr) + 100px); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 19, 25, .78); transition: border-color .25s, background .5s; }
.lex__item:hover { border-color: var(--line2); }
.lex__item.flash { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.lex__n { align-self: stretch; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); font: 500 .8rem/1 var(--mono); }
.lex__c { padding: 10px 12px; min-width: 0; }
.lex__term { margin: 0; font: 800 1.02rem/1.3 var(--f); }
.lex__hrp { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }
.lex__hrp span { margin-right: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); font: 500 .68rem/1 var(--mono); color: var(--dim); }
.copy--icon { margin: 0 8px 0 0; padding: 8px; }

.empty { padding: 40px; margin-bottom: 40px; text-align: center; border: 1px dashed var(--line2); border-radius: 16px; color: var(--muted); }
.empty p { margin: 0; }
.disclaimer { margin: 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: .9rem; background: rgba(20, 19, 25, .6); }
.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center; margin-top: 18px; padding: 24px 26px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: var(--r-lg); text-decoration: none; background: color-mix(in srgb, var(--c) 10%, var(--card)); transition: transform .3s var(--ease), border-color .3s; }
.next span { font-size: .82rem; color: var(--muted); }
.next b { grid-column: 1; font: 800 clamp(1.3rem, 3vw, 1.8rem)/1.15 var(--f); letter-spacing: -.035em; }
.next i { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 1.8rem; color: var(--c); transition: transform .3s var(--ease); }
.next:hover { transform: translateY(-3px); border-color: var(--c); }
.next:hover i { transform: translateX(6px); }

/* ---------- Équipe : profils façon Discord ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 22px; padding-bottom: 100px; }
.dp { position: relative; border-radius: 18px; overflow: hidden; background: #111214; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transition: transform .35s var(--ease), box-shadow .35s; animation: up .7s var(--ease) both; }
.dp:nth-child(2) { animation-delay: .1s; }
.dp:hover { transform: translateY(-5px); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent); }
.dp__banner { height: 120px; background: var(--banner); }
.dp__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 16px; height: 52px; }
.dp__avatar { position: relative; margin-top: -50px; width: 100px; height: 100px; border-radius: 50%; padding: 6px; background: #111214; }
.dp__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.dp:hover .dp__avatar img { transform: scale(1.04) rotate(-2deg); }
.dp__st { position: absolute; right: 4px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; border: 6px solid #111214; background: #80848e; }
.dp__st--online { background: #23a55a; } .dp__st--idle { background: #f0b232; } .dp__st--dnd { background: #f23f43; }
.dp__badges { display: flex; gap: 4px; margin-top: 12px; padding: 4px 6px; border-radius: 10px; background: rgba(0, 0, 0, .35); }
.dp__badge { width: 24px; height: 24px; display: grid; place-items: center; }
.dp__badge svg { width: 18px; height: 18px; fill: #f5c04a; }
.dp__card { margin: 0 14px 14px; padding: 14px 16px 16px; border-radius: 12px; background: #1e1f22; }
.dp__name { margin: 0; font: 800 1.35rem/1.2 var(--f); letter-spacing: -.02em; }
.dp__user { margin: 2px 0 0; display: flex; gap: 6px; font-size: .9rem; color: #b5bac1; }
.dp__user span { color: #6d6f78; }
.dp__sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.dp__sec h3 { margin: 0 0 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #dbdee1; }
.dp__sec p { margin: 0; font-size: .9rem; color: #dbdee1; }
.dp__since { display: flex; align-items: center; gap: 8px; }
.dp__roles { display: flex; flex-wrap: wrap; gap: 6px; }
.role { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 6px; background: #2b2d31; font-size: .8rem; font-weight: 600; color: #dbdee1; }
.role i { width: 11px; height: 11px; border-radius: 50%; }
.dp__msg { display: block; margin-top: 16px; padding: 11px 14px; border-radius: 8px; background: #111214; border: 1px solid rgba(255, 255, 255, .06); color: #949ba4; font-size: .88rem; text-decoration: none; transition: color .2s, border-color .2s; }
.dp__msg:hover { color: #fff; border-color: var(--acc); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 48px; padding-bottom: 100px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about__story p { margin: 0 0 18px; color: #cfcbd6; font-size: 1.1rem; line-height: 1.75; max-width: 62ch; }
.about__story .about__lead { font: 800 clamp(1.5rem, 3vw, 2rem)/1.25 var(--f); letter-spacing: -.035em; color: #fff; }
.about__side { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: rgba(20, 19, 25, .85); }
.fact { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fact > span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.fact b { font: 800 1.8rem/1 var(--f); letter-spacing: -.03em; }
.duo { display: flex; flex-wrap: wrap; gap: 8px; }
.duo__p { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; transition: border-color .2s; }
.duo__p:hover { border-color: var(--line2); }
.duo__p img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* ---------- Discord ---------- */
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 100px; }
@media (max-width: 720px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
.dcard { display: grid; gap: 8px; align-content: start; padding: 26px; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--r-lg); background: rgba(20, 19, 25, .8); transition: transform .3s var(--ease); }
.dcard:hover { transform: translateY(-4px); }
.dcard__t { margin: 0; font: 800 1.35rem/1.2 var(--f); letter-spacing: -.03em; }
.dcard__d { margin: 0; color: var(--muted); }
.dcard__on { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: .85rem; color: var(--dim); }
.dcard__on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dcard .btn { justify-self: start; margin-top: 10px; }

/* ---------- Footer ---------- */
.ftr { margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17, 16, 21, .9); padding-bottom: env(safe-area-inset-bottom, 0px); }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-block: 44px 30px; }
@media (max-width: 820px) { .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
.ftr__brand { display: flex; gap: 12px; align-items: flex-start; }
.ftr__brand b { font: italic 800 1.25rem/1 var(--f); letter-spacing: -.04em; }
.ftr__brand p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.ftr__col { display: grid; gap: 8px; align-content: start; font-size: .92rem; color: var(--muted); }
.ftr__col h2 { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ftr__col a { text-decoration: none; } .ftr__col a:hover { color: #fff; }
.ftr .linkbtn { word-break: break-all; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }

/* ---------- Toast, retour haut ---------- */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 150; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: #fff; color: #0b0a0d; font: 700 .88rem/1 var(--f); transition: .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.totop { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 46px; height: 46px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(20, 19, 25, .92); color: #fff; font-size: 1.1rem; font-weight: 800; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: #fff; color: #0b0a0d; }

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