/* Wiki WINDY MC, aux couleurs de la DA Windy (celle de Windy Watch) :
   violet #7566C2, crème #FDF8F2, sauge #C3D4A8, lilas #D9CEF2. Clair par défaut, sombre selon le système
   ou le bouton (data-theme sur <html>). Pas de noir pur. Le logo est l'image d'origine, jamais redessinée ni animée. */
@font-face { font-family: "Oxanium"; src: url(../fonts/oxanium-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url(../fonts/oxanium-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(../fonts/cabin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(../fonts/cabin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(../fonts/cabin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --wash: linear-gradient(112deg, #d5c4ea 0%, #ecdfee 26%, #fdf8f2 50%, #f1eeda 76%, #cdd9ae 100%);
  --side: #fffdfa; --card: #fffdfa; --tile: #f4eff9; --stripe: #f8f5fb; --track: #e7e0f1;
  --badge: #e6ddf7; --badge-text: #4a3e96; --toast: #3d3f45; --toast-text: #fdf8f2;
  --text: #34353d; --muted: #6a6777; --chip: #ece5f4; --line: #e4dbee;
  --accent: #7566c2; --accent-ink: #ffffff; --accent-soft: rgba(117, 102, 194, .12); --link: #5f50ae;
  --logo: #7566c2; --glow: none;
  --ok: #4f6f2a; --ok-fill: #7d9d4e; --ok-soft: rgba(125, 157, 78, .16); --warn: #8a5a0a; --warn-soft: rgba(199, 122, 0, .13); --bad: #b3403c; --bad-soft: rgba(179, 64, 60, .11);
  --shadow: 0 12px 32px rgba(74, 62, 150, .10);
  --c1: #7566c2; --c2: #4f9a1e; --c3: #178fa6; --c4: #c77a00; --c5: #d0478c; --c6: #8a6d3b; --c7: #5b6b7a; --c8: #a94f2c; --c0: #9a96a8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --wash: linear-gradient(112deg, #2f2650 0%, #221f30 30%, #1c1a26 52%, #1f2220 78%, #2b3525 100%);
    --side: #242131; --card: #282536; --tile: #343046; --stripe: rgba(14, 12, 22, .30); --track: #1b1925;
    --badge: #1b1925; --badge-text: #e6defc; --toast: #3a3550; --toast-text: #f6f1ea;
    --text: #f6f1ea; --muted: #aca5bf; --chip: #464060; --line: #3c3752;
    --accent: #a597f0; --accent-ink: #1c1738; --accent-soft: rgba(165, 151, 240, .16); --link: #b9adf6;
    --logo: #b3a6f5; --glow: drop-shadow(0 0 9px rgba(165, 151, 240, .55));
    --ok: #c3d4a8; --ok-fill: #c3d4a8; --ok-soft: rgba(195, 212, 168, .14); --warn: #f0c074; --warn-soft: rgba(240, 192, 116, .13); --bad: #f2918c; --bad-soft: rgba(242, 145, 140, .13);
    --shadow: 0 16px 40px rgba(8, 6, 16, .36);
    --c1: #8576f0; --c2: #66a433; --c3: #2a9db3; --c4: #c4821c; --c5: #d9659c; --c6: #b59355; --c7: #8296a8; --c8: #d27d58; --c0: #7c7690;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --wash: linear-gradient(112deg, #2f2650 0%, #221f30 30%, #1c1a26 52%, #1f2220 78%, #2b3525 100%);
  --side: #242131; --card: #282536; --tile: #343046; --stripe: rgba(14, 12, 22, .30); --track: #1b1925;
  --badge: #1b1925; --badge-text: #e6defc; --toast: #3a3550; --toast-text: #f6f1ea;
  --text: #f6f1ea; --muted: #aca5bf; --chip: #464060; --line: #3c3752;
  --accent: #a597f0; --accent-ink: #1c1738; --accent-soft: rgba(165, 151, 240, .16); --link: #b9adf6;
  --logo: #b3a6f5; --glow: drop-shadow(0 0 9px rgba(165, 151, 240, .55));
  --ok: #c3d4a8; --ok-fill: #c3d4a8; --ok-soft: rgba(195, 212, 168, .14); --warn: #f0c074; --warn-soft: rgba(240, 192, 116, .13); --bad: #f2918c; --bad-soft: rgba(242, 145, 140, .13);
  --shadow: 0 16px 40px rgba(8, 6, 16, .36);
  --c1: #8576f0; --c2: #66a433; --c3: #2a9db3; --c4: #c4821c; --c5: #d9659c; --c6: #b59355; --c7: #8296a8; --c8: #d27d58; --c0: #7c7690;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--card); color: var(--text); font: 16px/1.6 "Cabin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--wash); }
h1, h2, h3, h4 { margin: 0; font-family: "Oxanium", "Cabin", system-ui, sans-serif; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 12px; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { display: block; flex: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
* { scrollbar-width: thin; scrollbar-color: var(--chip) transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ logo */
.logo { display: block; line-height: 0; filter: var(--glow); }
.mark { display: block; width: 64px; aspect-ratio: 379 / 199; background: var(--logo); -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat; }

/* ------------------------------------------------------------------ cadre */
.shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-radius: 0 26px 26px 0; box-shadow: var(--shadow); display: flex; flex-direction: column; padding: 20px 12px 14px; gap: 14px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: inherit; }
.brand .mark { width: 58px; }
.brand b { display: block; font: 700 21px/1 "Oxanium", sans-serif; letter-spacing: .06em; }
.brand span.sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; letter-spacing: .02em; }
.searchbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-radius: 16px; background: var(--tile); color: var(--muted); text-align: left; position: relative; overflow: hidden; }
.searchbtn:hover { color: var(--text); background: var(--accent-soft); }
.searchbtn span { flex: 1; }
kbd { font: 600 12px "Cabin", sans-serif; padding: 1px 7px; border-radius: 7px; background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.navs { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 2px 6px; scrollbar-width: none; }
.navs::-webkit-scrollbar { display: none; }
.gtitle { font: 700 11.5px "Cabin", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 16px 12px 5px; }
.gtitle:first-child { margin-top: 4px; }
.nav { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; line-height: 1.25; }
.nav .ico { color: var(--muted); }
.nav:hover { color: var(--text); background: var(--stripe); }
.nav.on { background: var(--tile); color: var(--text); }
.nav.on .ico { color: var(--accent); }
.side .nav.on::after { content: ""; position: absolute; right: -12px; top: 50%; width: 4px; height: 26px; margin-top: -13px; border-radius: 4px 0 0 4px; background: var(--accent); }
.nav.lock .ico { color: var(--warn); }
.sidefoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.sidefoot small { color: var(--muted); font-size: 12px; line-height: 1.3; }

.switch { position: relative; flex: none; width: 56px; height: 30px; padding: 0; border: 0; border-radius: 99px; background: var(--tile); color: var(--muted); }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); transition: transform .18s ease; }
.switch[aria-checked="true"] i { transform: translateX(26px); }
.switch .ico { position: absolute; top: 7px; z-index: 1; }
.switch .ico:first-of-type { left: 7px; }
.switch .ico:last-of-type { right: 7px; }
.switch[aria-checked="false"] .ico:first-of-type, .switch[aria-checked="true"] .ico:last-of-type { color: var(--accent-ink); }

.topbar { display: none; }
#scrim { display: none; }
.mainwrap { min-width: 0; }
.main { padding: 30px 38px 70px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a { color: inherit; text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.head { margin-bottom: 22px; max-width: 980px; }
.head h1 { font-size: 36px; letter-spacing: .005em; display: flex; align-items: center; gap: 14px; }
.head h1 .hic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--badge); color: var(--badge-text); }
.head .sub { color: var(--muted); font-size: 17px; margin: 10px 0 0; max-width: 70ch; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 26px; align-items: start; max-width: 1280px; }
.page.wide { grid-template-columns: minmax(0, 1fr); }
.content { display: grid; gap: 18px; min-width: 0; }
.content > * { min-width: 0; }

/* ------------------------------------------------------------------ cartes et texte */
.card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 24px 28px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card h2 .anc, .card h3 .anc { opacity: 0; color: var(--muted); text-decoration: none; font-weight: 400; font-size: .8em; transition: opacity .15s; }
.card h2:hover .anc, .card h3:hover .anc, .anc:focus-visible { opacity: 1; }
.card h3 { font-size: 17px; margin: 22px 0 8px; }
.card h4 { font: 700 15px "Cabin", sans-serif; margin: 18px 0 6px; color: var(--muted); letter-spacing: .02em; }
.card ul, .card ol { margin: 0 0 14px; padding-left: 22px; }
.card li { margin: 0 0 6px; padding-left: 2px; }
.card li::marker { color: var(--accent); }
.card li > ul, .card li > ol { margin: 6px 0 0; }
.card strong { font-weight: 700; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text); }
.lead.card { background: var(--card); }
code { font: 500 .88em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--chip); padding: 1px 7px; border-radius: 8px; white-space: nowrap; }
code.cmd { cursor: copy; position: relative; transition: background-color .15s, color .15s; }
code.cmd:hover { background: var(--accent); color: var(--accent-ink); }
code.cmd.done { background: var(--ok-fill); color: #1f2a10; }
pre { background: var(--tile); border-radius: 16px; padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; }
pre code { background: none; padding: 0; white-space: pre; }
mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 2px; }

.scroll { overflow-x: auto; margin: 0 -4px 14px; padding: 0 4px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px 12px 10px; white-space: nowrap; letter-spacing: .03em; }
td { padding: 9px 12px; vertical-align: top; }
td:first-child { font-weight: 600; }
tbody tr:nth-child(odd) td { background: var(--stripe); }
td:first-child { border-radius: 12px 0 0 12px; }
td:last-child { border-radius: 0 12px 12px 0; }
td code { white-space: normal; }
.num, td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* encadrés */
.admonition { border-radius: 18px; padding: 14px 18px 14px 20px; margin: 0 0 14px; background: var(--tile); border-left: 5px solid var(--accent); }
.admonition > :last-child { margin-bottom: 0; }
.admonition-title { font: 700 14px "Oxanium", sans-serif; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px !important; color: var(--accent); }
.admonition.bref { background: var(--accent-soft); }
.admonition.astuce { background: var(--ok-soft); border-left-color: var(--ok-fill); }
.admonition.astuce .admonition-title { color: var(--ok); }
.admonition.attention { background: var(--warn-soft); border-left-color: var(--warn); }
.admonition.attention .admonition-title { color: var(--warn); }
.admonition.info { background: var(--tile); border-left-color: var(--c3); }
.admonition.info .admonition-title { color: var(--c3); }
.admonition ul, .admonition ol { margin-bottom: 8px; }

/* pastilles, tuiles, cartes d'éléments */
.badge { display: inline-block; padding: 1px 10px; border-radius: 99px; background: var(--badge); color: var(--badge-text); font: 700 12.5px "Cabin", sans-serif; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 14px; }
.tile { background: var(--tile); border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0; align-content: start; }
.tile b { font: 700 26px/1.1 "Oxanium", sans-serif; font-variant-numeric: tabular-nums; color: var(--text); }
.tile span { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0 0 14px; }
.citem { background: var(--tile); border-radius: 20px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--cc, var(--accent)); }
.citem h3, .citem h4 { margin: 0 !important; font: 700 18px "Oxanium", sans-serif !important; color: var(--text) !important; letter-spacing: 0 !important; }
.citem p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.citem .tag { font-size: 13px; color: var(--muted); }
.citem ul { margin: 2px 0 0; padding-left: 18px; font-size: 14.5px; }
.citem li { margin: 0 0 3px; }
.cards.c-race .citem:nth-child(9n+1) { --cc: var(--c1); } .cards.c-race .citem:nth-child(9n+2) { --cc: var(--c2); } .cards.c-race .citem:nth-child(9n+3) { --cc: var(--c4); }
.cards.c-race .citem:nth-child(9n+4) { --cc: var(--c8); } .cards.c-race .citem:nth-child(9n+5) { --cc: var(--c3); } .cards.c-race .citem:nth-child(9n+6) { --cc: var(--c5); }
.cards.c-race .citem:nth-child(9n+7) { --cc: var(--bad); } .cards.c-race .citem:nth-child(9n+8) { --cc: var(--c1); } .cards.c-race .citem:nth-child(9n+9) { --cc: var(--c7); }
a.citem { text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
a.citem:hover { transform: translateY(-3px); background: var(--accent-soft); }

/* étapes numérotées */
ol.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
ol.steps > li { counter-increment: st; position: relative; padding: 12px 16px 12px 58px; border-radius: 18px; background: var(--tile); margin: 0; min-height: 54px; }
ol.steps > li::before { content: counter(st); position: absolute; left: 12px; top: 11px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 17px "Oxanium", sans-serif; }
ol.steps > li > :last-child { margin-bottom: 0; }

/* plans de construction (grilles de blocs) */
figure.blocks { margin: 0 0 16px; padding: 16px 18px; background: var(--tile); border-radius: 20px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
figure.blocks figcaption { flex: 1 1 100%; font: 700 14px "Oxanium", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bgrid { display: grid; grid-template-columns: repeat(var(--cols), 34px); gap: 4px; }
.bgrid span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 14px "Oxanium", sans-serif; color: #fff; background: var(--bc, transparent); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); transition: transform .12s; }
.bgrid span.e { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.bgrid span:not(.e):hover { transform: scale(1.12); }
.blegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.blegend li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.blegend i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--bc); display: grid; place-items: center; font: 700 12px "Oxanium", sans-serif; color: #fff; font-style: normal; }

details { background: var(--tile); border-radius: 18px; padding: 0 18px; margin: 0 0 12px; }
summary { cursor: pointer; padding: 13px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); transition: transform .18s; margin-right: 4px; }
details[open] > summary::before { transform: rotate(45deg); }
details[open] { padding-bottom: 14px; }

/* sur cette page */
.toc { position: sticky; top: 24px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 12px 12px; max-height: calc(100vh - 48px); overflow: auto; }
.toc h2 { font: 700 11.5px "Cabin", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 8px 8px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.3; border-left: 3px solid transparent; }
.toc a:hover { color: var(--text); background: var(--stripe); }
.toc a.on { color: var(--text); border-left-color: var(--accent); background: var(--tile); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.pager a { display: grid; gap: 3px; padding: 14px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .16s ease, background-color .16s; }
.pager a:hover { transform: translateY(-3px); background: var(--accent-soft); }
.pager small { color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.pager b { font: 700 17px "Oxanium", sans-serif; }
.pager .next { text-align: right; grid-column: 2; }

/* accueil */
.hero { border-radius: 28px; padding: 34px 36px; background: var(--wash); box-shadow: var(--shadow); position: relative; overflow: hidden; display: grid; gap: 16px; }
.hero h1 { font-size: 40px; }
.hero p { font-size: 18px; max-width: 62ch; margin: 0; color: var(--text); }
.hero .logo { margin-bottom: 4px; }
.hero .mark { width: 110px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.btn.alt { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gcard { display: grid; gap: 4px; align-content: start; }
.gcard h2 { margin-bottom: 8px; }
.gcard a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; margin: 0 -10px; border-radius: 14px; text-decoration: none; color: inherit; transition: background-color .15s, transform .15s; }
.gcard a:hover { background: var(--tile); transform: translateX(3px); }
.gcard a .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--badge); color: var(--badge-text); display: grid; place-items: center; }
.gcard a b { display: block; line-height: 1.25; }
.gcard a span.t { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.news { display: grid; gap: 8px; }
.news a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 8px 12px; border-radius: 14px; background: var(--tile); color: inherit; }
.news a:hover { background: var(--accent-soft); }

/* règlement */
.rules .titre > h2 { font-size: 22px; }
.art { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.art:first-of-type { border-top: 0; }
.art h3 { margin: 0 0 8px; font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.art h3 .n { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--badge); color: var(--badge-text); font: 700 13px "Oxanium", sans-serif; }
.art p { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; margin: 0 0 8px; }
.art p b.k { color: var(--accent); font-variant-numeric: tabular-nums; }
.art p.plain { display: block; }
.art ul { margin: 0 0 8px 52px; padding-left: 18px; }

/* journal des mises à jour */
.release { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 22px; }
.release .v { font: 700 26px "Oxanium", sans-serif; color: var(--accent); }
.release .part h3 { margin-top: 16px; }
.release .part:first-child h3 { margin-top: 0; }
.release h4 { text-transform: none; font-size: 15px; color: var(--text); margin: 14px 0 4px; }

/* ------------------------------------------------------------------ recherche */
#sbg { position: fixed; inset: 0; z-index: 80; background: rgba(28, 23, 46, .45); backdrop-filter: blur(3px); display: grid; align-items: start; justify-items: center; padding: 11vh 14px 14px; animation: fade .18s ease; }
.sbox { width: min(660px, 100%); background: var(--card); border-radius: 24px; box-shadow: 0 24px 70px rgba(28, 23, 46, .38); overflow: hidden; animation: pop .24s cubic-bezier(.2, .8, .2, 1); }
.sbox .sin { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.sbox input { flex: 1; border: 0; background: none; outline: none; font: 600 18px "Cabin", sans-serif; color: var(--text); min-width: 0; }
.sres { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; display: grid; gap: 2px; }
.sres a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: inherit; }
.sres a.on, .sres a:hover { background: var(--tile); }
.sres a small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sres a b { font-size: 15.5px; }
.sres a span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.sres .none { padding: 26px 14px; text-align: center; color: var(--muted); }
.sfoot { display: flex; gap: 14px; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: var(--toast); color: var(--toast-text); padding: 10px 20px; border-radius: 99px; font-weight: 600; box-shadow: var(--shadow); animation: rise .25s ease; }

/* ------------------------------------------------------------------ zone staff */
.login { max-width: 520px; display: grid; gap: 14px; justify-items: start; }
.login .btn { font-size: 16px; padding: 13px 24px; }
.who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.who .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 17px "Oxanium", sans-serif; object-fit: cover; }
.who span { color: var(--muted); font-size: 14px; }
.staffnav { display: grid; gap: 2px; }
.staffgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1280px; }
.staffgrid .snav { position: sticky; top: 24px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 12px; }
.staffdoc h1, .staffdoc h2 { margin-bottom: 12px; }
.staffdoc h2 { font-size: 21px; margin-top: 26px; }
.staffdoc h3 { font-size: 17px; margin: 20px 0 8px; }
.staffdoc :is(ul, ol) { padding-left: 22px; }
.staffdoc table { margin-bottom: 14px; }
.login .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.login .note { color: var(--bad); font-weight: 600; }
.idcode { font: 600 15px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--tile); padding: 3px 9px; border-radius: 9px; word-break: break-all; }
.staffgrid details.snavd { background: none; padding: 0; margin: 0; border-radius: 0; }
.snavd > summary { display: none; padding: 10px 14px; border-radius: 14px; background: var(--tile); }
.snavd > summary::before { display: none; }
.snavd > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .18s; }
.snavd[open] > summary::after { transform: rotate(-135deg); }
.staffdoc .sub { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 70ch; }
.staffdoc blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--tile); border-radius: 0 14px 14px 0; }
.staffdoc blockquote > :last-child { margin-bottom: 0; }
@media (max-width: 980px) { .snavd > summary { display: flex; } .snavd[open] > summary { margin-bottom: 6px; } }

.skel { border-radius: 16px; background: linear-gradient(90deg, var(--tile) 25%, var(--stripe) 45%, var(--tile) 65%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }

/* ------------------------------------------------------------------ chargement, survol, clic */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes tabin { from { transform: scale(.2); opacity: 0; } }
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--card); transition: opacity .3s ease, visibility .3s; }
#splash::before { content: ""; position: absolute; inset: 0; background: var(--wash); opacity: .6; }
#splash > * { position: relative; }
#splash .mark { width: 120px; }
#splash.gone { opacity: 0; visibility: hidden; }
.loadline { display: block; width: 150px; height: 4px; border-radius: 99px; background: var(--track); overflow: hidden; }
.loadline::after, #loadbar::after { content: ""; display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--ok-fill)); animation: slide 1.1s ease-in-out infinite; }
#loadbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .2s; }
body.loading #loadbar { opacity: 1; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: ripple .55s ease-out forwards; }
.btn, .nav, .searchbtn, .citem, .pager a, .tile, .toc a, .switch { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, filter .16s; }
.btn:active, .searchbtn:active, .citem:active { transform: scale(.97); }
@media (hover: hover) {
  .nav:hover { transform: translateX(3px); }
  .tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74, 62, 150, .1); }
  .card h2 a.anc:hover { color: var(--accent); }
  .scroll tr:hover td { background: var(--accent-soft); }
  .content p a, td a, li a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; text-decoration: none; transition: background-size .2s ease; padding-bottom: 2px; font-weight: 600; }
  .content p a:hover, td a:hover, li a:hover { background-size: 100% 2px; }
}
.enter .head, .enter .hero { animation: rise .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.enter .content > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.enter .content > :nth-child(2) { animation-delay: 70ms; } .enter .content > :nth-child(3) { animation-delay: 130ms; }
.enter .content > :nth-child(n+4) { animation-delay: 190ms; }
.enter .toc { animation: fade .6s ease .2s backwards; }
.side .nav.on::after { animation: tabin .3s ease backwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ téléphone et tablette */
@media (max-width: 1240px) { .page { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(310px, 86vw); height: auto; transform: translateX(-105%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); border-radius: 0 26px 26px 0; z-index: 60; box-shadow: none; }
  body.menu .side { transform: none; box-shadow: 0 0 80px rgba(28, 23, 46, .45); }
  .side .nav.on::after { display: none; }
  #scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(28, 23, 46, .4); opacity: 0; visibility: hidden; transition: opacity .2s; }
  body.menu #scrim { opacity: 1; visibility: visible; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
  .topbar .mark { width: 46px; }
  .topbar b { font: 700 18px "Oxanium", sans-serif; letter-spacing: .06em; flex: 1; text-decoration: none; color: inherit; }
  .iconbtn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--tile); color: var(--text); display: grid; place-items: center; position: relative; overflow: hidden; }
  .main { padding: 18px 16px 60px; }
  .head h1 { font-size: 28px; } .head h1 .hic { width: 42px; height: 42px; border-radius: 14px; }
  .head .sub { font-size: 16px; }
  .card { padding: 18px 18px; border-radius: 22px; }
  .hero { padding: 24px 22px; } .hero h1 { font-size: 30px; }
  .staffgrid { grid-template-columns: minmax(0, 1fr); } .staffgrid .snav { position: static; }
  .release { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; text-align: left; }
}
@media (max-width: 520px) {
  .art p { grid-template-columns: 38px minmax(0, 1fr); }
  .art ul { margin-left: 46px; }
  .bgrid { grid-template-columns: repeat(var(--cols), 28px); gap: 3px; } .bgrid span { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
}
@media print {
  .side, .topbar, .toc, .pager, #splash, #sbg { display: none !important; }
  .shell { display: block; } body::before { display: none; } .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid-page; }
}
