/* BDEEI Néon — interface sombre, accents violet/cyan, une teinte par rubrique. */

@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #07080f;
  --deep: #0a0c18;
  --panel: #12152b;
  --panel-2: #181c36;
  --line: #2a3057;
  --txt: #e9ebfb;
  --txt-soft: #c7cbef;
  --muted: #a1a8d2;
  --violet: #a970ff;
  --violet-soft: #c9a7ff;
  --cyan: #3fe0f0;
  --font-display: "Chakra Petch", "Segoe UI Semibold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4vw, 34px);
  --notch: 20px;
  --tone: var(--violet);
  --tone-rgb: 169 112 255;
}

/* Teintes néon des rubriques, réparties de façon stable par identifiant de catégorie. */
.tone-0 { --tone: #a970ff; --tone-rgb: 169 112 255; }
.tone-1 { --tone: #3fe0f0; --tone-rgb: 63 224 240; }
.tone-2 { --tone: #ff5fc8; --tone-rgb: 255 95 200; }
.tone-3 { --tone: #7ef29b; --tone-rgb: 126 242 155; }
.tone-4 { --tone: #ffbf4d; --tone-rgb: 255 191 77; }
.tone-5 { --tone: #6aa8ff; --tone-rgb: 106 168 255; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; color-scheme: dark; }

body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgb(169 112 255 / 18%), transparent 62%),
    radial-gradient(760px 480px at 6% 4%, rgb(63 224 240 / 12%), transparent 60%),
    linear-gradient(180deg, #090b16 0%, var(--night) 46%);
  background-repeat: no-repeat;
  color: var(--txt);
  font: 400 1.06rem/1.7 var(--font-body);
  overflow-wrap: break-word;
}

img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-soft); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.mono { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; }

.wrap { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(46px, 7vw, 92px); }
.band--deep { background: linear-gradient(180deg, var(--deep), #0c0f1f); border-block: 1px solid var(--line); }
.band-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 26px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--violet); color: #0b0620; font-weight: 700; padding: 10px 18px; }
.skip-link:focus { top: 12px; color: #0b0620; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 600 .74rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* Badges, boutons, liens */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px;
  font: 700 .78rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--tone); background: rgb(var(--tone-rgb) / 12%);
  border: 1px solid rgb(var(--tone-rgb) / 45%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip .icon { width: 1.25em; height: 1.25em; }
.chip:hover { color: #08090f; background: var(--tone); box-shadow: 0 0 18px rgb(var(--tone-rgb) / 45%); }

.button, .find button, .comment-form .submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px;
  border: 1px solid var(--violet); background: linear-gradient(135deg, #c3a0ff, var(--violet));
  color: #0a0518; font: 700 1rem/1 var(--font-display); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.button:hover, .find button:hover, .comment-form .submit:hover {
  color: #0a0518; filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgb(169 112 255 / 80%);
}

.link { display: inline-flex; align-items: center; gap: 8px; font: 700 .96rem/1.2 var(--font-display); letter-spacing: .04em; text-decoration: none; color: var(--cyan); }
.link .icon { transition: transform .2s ease; }
.link:hover { color: var(--cyan); text-shadow: 0 0 14px rgb(63 224 240 / 60%); }
.link:hover .icon { transform: translateX(5px); }

/* Bandeau HUD et en-tête */
.hud { background: #050610; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.hud-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.hud-date { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.hud-date .icon { color: var(--cyan); }
.hud-text { color: var(--txt-soft); }
.hud-feed { color: var(--violet-soft); text-decoration: none; letter-spacing: .04em; }
.hud-feed:hover { color: var(--cyan); }

.site-head { position: sticky; top: 0; z-index: 50; background: rgb(7 8 15 / 88%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
.head-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.branding { flex: none; }
.custom-logo { max-height: 54px; width: auto; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--txt); }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; color: #0a0518;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  box-shadow: 0 0 22px rgb(169 112 255 / 45%);
  transition: box-shadow .25s ease;
}
.logo-mark .icon { width: 24px; height: 24px; }
.logo-text { font: 700 1.6rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.logo-dot { color: var(--cyan); }
.logo:hover { color: var(--txt); }
.logo:hover .logo-mark { box-shadow: 0 0 30px rgb(63 224 240 / 65%); }

.nav { margin-left: auto; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--txt-soft);
  font: 600 .96rem/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.nav-list a:hover, .nav-list [aria-current="page"], .nav-list .current-menu-item > a {
  color: var(--txt); border-bottom-color: var(--violet); text-shadow: 0 0 14px rgb(169 112 255 / 60%);
}
.nav-list .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 210px; padding: 8px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -20px #000; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s ease; z-index: 5;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.burger { display: none; }

/* Recherche */
.head-search { position: relative; }
.head-search summary {
  display: grid; place-items: center; width: 42px; height: 42px; cursor: pointer; list-style: none;
  color: var(--txt); border: 1px solid var(--line); background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: border-color .2s ease, color .2s ease;
}
.head-search summary::-webkit-details-marker { display: none; }
.head-search summary:hover { border-color: var(--cyan); color: var(--cyan); }
.head-search summary .icon + .icon, .head-search[open] summary .icon:first-child { display: none; }
.head-search[open] summary .icon + .icon { display: block; }
.head-search-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(430px, calc(100vw - 32px)); padding: 12px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px #000;
}

.find { display: flex; gap: 8px; align-items: center; max-width: 580px; background: var(--panel); border: 1px solid var(--line); padding: 6px; }
.find:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 1px rgb(63 224 240 / 40%); }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 12px; outline: none; color: var(--txt); }
.find input::placeholder { color: var(--muted); }
.find button { padding: 11px 18px; }
.head-search-panel .find, .foot-search .find { max-width: none; }

/* Accueil : écran de démarrage */
.hero { padding-block: clamp(34px, 5vw, 70px) clamp(10px, 2vw, 26px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgb(169 112 255 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(63 224 240 / 6%) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  mask-image: radial-gradient(70% 70% at 50% 20%, #000 20%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 58px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.015em; margin-bottom: 20px; }
.hero-copy h1::after { content: "_"; color: var(--cyan); animation: bdeei-blink 1.4s steps(1) infinite; }
@keyframes bdeei-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero-text { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--txt-soft); max-width: 48ch; margin-bottom: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 30px; list-style: none; padding: 22px 0 0; margin: 30px 0 0; border-top: 1px solid var(--line); color: var(--muted); text-transform: uppercase; }
.stats strong { display: block; font: 700 1.8rem/1 var(--font-display); color: var(--txt); letter-spacing: .02em; }
.stats li:first-child strong { color: var(--cyan); }
.hero-stage { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.hero-stage .tile--hero { grid-row: span 2; }
@media (min-width: 961px) {
  .hero-stage { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; }
  .hero-stage .tile--row { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .hero-stage .tile--row .tile-media { aspect-ratio: 16 / 9; --notch: 16px; }
}

.arcade { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 12px; min-height: 420px; }
.arcade span {
  display: grid; place-items: center; padding: 14px; color: var(--tone); background: rgb(var(--tone-rgb) / 8%);
  border: 1px solid rgb(var(--tone-rgb) / 35%); font: 700 1.1rem/1 var(--font-display); letter-spacing: .14em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.arcade span:nth-child(1) { grid-row: span 2; }
.arcade span:nth-child(5) { grid-column: span 2; }
.hero-stage .arcade { grid-column: 1 / -1; }

/* Tuiles d’article */
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile-media {
  position: relative; display: block; overflow: hidden; text-decoration: none; aspect-ratio: 16 / 10;
  background: rgb(var(--tone-rgb) / 10%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; filter: saturate(1.05) contrast(1.02); }
.tile:hover .tile-media img { transform: scale(1.05); filter: saturate(1.2); }
.tile-scan {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgb(4 5 12 / 34%) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgb(var(--tone-rgb) / 16%), transparent 55%);
  opacity: .65;
}
.ghost {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-color: #0c0f20;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgb(var(--tone-rgb) / 30%), transparent 60%),
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.ghost-letter {
  font: 700 clamp(3rem, 9vw, 6.4rem)/1 var(--font-display); text-transform: uppercase; color: var(--tone);
  text-shadow: 0 0 26px rgb(var(--tone-rgb) / 70%); transition: transform .45s ease;
}
.tile:hover .ghost-letter { transform: scale(1.08); }

.tile-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; position: relative; z-index: 2; }
.tile-time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.tile-title { font-size: 1.28rem; margin: 0; line-height: 1.2; }
.tile-title a { text-decoration: none; transition: color .2s ease; }
.tile-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile:hover .tile-title a { color: var(--tone); }
.tile-desc { color: var(--muted); margin: 0; font-size: .96rem; }
.tile-date { margin-top: auto; color: var(--muted); }

/* Panneau anguleux commun aux tuiles, rubriques et encadrés */
.tile--default, .tile--row, .rub, .void, .ladder li, .post-navigation a, .comment-body, .comment-respond, .board-badge {
  position: relative;
  background: linear-gradient(170deg, rgb(var(--tone-rgb) / 9%), transparent 42%), var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid rgb(var(--tone-rgb) / 60%);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.tile--default::after, .tile--row::after, .rub::after, .ladder li::after, .post-navigation a::after {
  content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; pointer-events: none;
  background: linear-gradient(225deg, rgb(var(--tone-rgb) / 85%) 0 46%, transparent 46%);
}
.tile--default:hover, .tile--row:hover, .rub:hover, .ladder li:hover, .post-navigation a:hover {
  border-color: rgb(var(--tone-rgb) / 55%); transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgb(var(--tone-rgb) / 30%), 0 20px 42px -26px rgb(var(--tone-rgb) / 75%);
}

.tile--default { padding: 12px 12px 18px; }
.tile--default .tile-body { padding: 16px 6px 0; }

.tile--row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; }
.tile--row .tile-media { aspect-ratio: 1; --notch: 12px; }
.tile--row .ghost-letter { font-size: 2.2rem; }
.tile--row .tile-body { gap: 7px; }
.tile--row .tile-title { font-size: 1.02rem; }
.tile--row .tile-date { display: none; }

.tile--bare .tile-body { gap: 7px; }
.tile--bare .tile-title { font-size: 1.08rem; }
.tile--bare .tile-date { display: none; }

.tile--hero { min-height: 430px; overflow: hidden; color: var(--txt); isolation: isolate; border: 1px solid var(--line); }
.tile--hero .tile-media { position: absolute; inset: 0; aspect-ratio: auto; clip-path: none; }
.tile--hero .tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 8 15 / 15%) 20%, rgb(7 8 15 / 92%) 100%); }
.tile--hero .ghost-letter { font-size: clamp(7rem, 18vw, 13rem); opacity: .55; }
.tile--hero .tile-body { position: relative; z-index: 2; justify-content: flex-end; padding: clamp(20px, 3vw, 34px); pointer-events: none; }
.tile--hero .tile-body a, .tile--hero .tile-body .chip { pointer-events: auto; }
.tile--hero .tile-title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); max-width: 24ch; }
.tile--hero .tile-desc { color: var(--txt-soft); max-width: 58ch; }
.tile--hero .tile-date { margin-top: 0; }
.tile--hero:hover { box-shadow: 0 0 0 1px rgb(var(--tone-rgb) / 45%), 0 26px 60px -30px rgb(var(--tone-rgb) / 80%); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); }

/* Sections d’accueil */
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); }
.band-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0; }
.board-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--cyan); text-transform: uppercase; }

.rubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rub { display: flex; flex-direction: column; gap: 8px; min-height: 168px; padding: 18px; text-decoration: none; color: var(--txt); overflow: hidden; }
.rub-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--tone); border: 1px solid rgb(var(--tone-rgb) / 45%); background: rgb(var(--tone-rgb) / 10%); }
.rub-icon .icon { width: 22px; height: 22px; }
.rub strong { margin-top: auto; font: 700 1.25rem/1.15 var(--font-display); letter-spacing: .01em; }
.rub small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.rub-count { position: absolute; right: 14px; bottom: 12px; font-size: 2.6rem; font-weight: 700; color: rgb(var(--tone-rgb) / 22%); line-height: 1; }
.rub:hover { color: var(--txt); }
.rub:hover strong { color: var(--tone); }

.ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: score; list-style: none; margin: 0; padding: 0; }
.ladder li { counter-increment: score; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px 18px; }
.ladder li::before { content: counter(score, decimal-leading-zero); font: 700 1.7rem/1 var(--font-display); color: var(--tone); text-shadow: 0 0 18px rgb(var(--tone-rgb) / 55%); }

.rub-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.rub-block { display: flex; flex-direction: column; gap: 14px; }
.rub-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid rgb(var(--tone-rgb) / 55%); }
.rub-block-head h2 { font-size: 1.6rem; margin: 0; color: var(--tone); }
.rub-block .link { color: var(--tone); }

.find-band { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 76px); background: linear-gradient(120deg, #140a2e, #071018 60%); border-top: 1px solid var(--line); }
.find-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 82% 50%, rgb(63 224 240 / 20%), transparent 70%), radial-gradient(420px 220px at 10% 20%, rgb(169 112 255 / 22%), transparent 70%);
}
.find-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.find-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; }

.void { padding: clamp(26px, 5vw, 52px); text-align: center; }
.void h2, .void h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.void p { color: var(--muted); }
.void .find { margin: 20px auto 0; }
.void--soft { padding: 22px; text-align: left; }
.void--soft p { margin: 0; }

/* Titres de page et archives */
.page-head { margin-bottom: clamp(26px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.archive-head {
  margin: calc(-1 * clamp(46px, 7vw, 92px)) 0 clamp(32px, 5vw, 56px); padding-block: clamp(38px, 6vw, 68px);
  background: linear-gradient(140deg, rgb(var(--tone-rgb) / 16%), transparent 55%), var(--deep);
  border-bottom: 2px solid rgb(var(--tone-rgb) / 55%);
}
.archive-head .eyebrow { color: var(--tone); }
.archive-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); }
.archive-desc { max-width: 66ch; color: var(--txt-soft); }
.archive-desc p:last-child { margin: 0; }
.archive-count { display: inline-block; margin: 14px 0 0; padding: 6px 12px; color: var(--tone); border: 1px solid rgb(var(--tone-rgb) / 45%); text-transform: uppercase; }
.archive-head .find { margin-top: 18px; }

.pagination { margin-top: clamp(36px, 5vw, 60px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 14px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); font: 700 .98rem/1 var(--font-display);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color .2s ease, color .2s ease;
}
.page-numbers.current { background: linear-gradient(135deg, #c3a0ff, var(--violet)); border-color: var(--violet); color: #0a0518; }
a.page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.page-numbers.dots { border-color: transparent; background: none; }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; background: rgb(255 255 255 / 6%); }
.admin-bar .progress { top: 32px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 14px rgb(169 112 255 / 70%); transform-origin: 0 50%; transform: scaleX(0); }
.post-main { max-width: 1040px; }
.post-head { max-width: 840px; margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.post-head .chip { margin-bottom: 16px; }
.post-head h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.05; }
.post-lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--txt-soft); max-width: 62ch; margin: 0 auto 20px; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; color: var(--muted); text-transform: uppercase; }
.post-meta > * + *:not(.post-author)::before { content: "//"; margin-right: 16px; color: var(--line); }
.post-avatar { border-radius: 50%; border: 1px solid rgb(var(--tone-rgb) / 60%); }
.post-author { color: var(--txt); margin-left: -6px; }
.post-cover { margin: 0 0 clamp(28px, 5vw, 48px); }
.post-cover img { width: 100%; border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.post-cover figcaption { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--muted); }

.prose { max-width: 760px; margin-inline: auto; font-size: 1.1rem; line-height: 1.78; color: var(--txt-soft); }
.prose::after { content: ""; display: table; clear: both; }
.prose > * { margin-block: 0 1.3em; }
.prose h2, .prose h3, .prose h4 { color: var(--txt); }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.8em; padding-left: 14px; border-left: 3px solid var(--violet); }
.prose h3 { font-size: clamp(1.22rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.prose a { color: var(--cyan); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--violet-soft); }
.prose strong { color: var(--txt); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--cyan); }
.prose blockquote, .prose .wp-block-quote {
  margin-inline: 0; padding: 14px 20px; background: rgb(169 112 255 / 8%); border-left: 3px solid var(--violet);
  font: 600 1.22rem/1.5 var(--font-display); color: var(--txt);
}
.prose blockquote cite { display: block; margin-top: 10px; font: 400 .92rem/1.4 var(--font-body); color: var(--muted); }
.prose img { border: 1px solid var(--line); }
.prose figcaption, .wp-caption-text, .gallery-caption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose pre { overflow-x: auto; padding: 18px; background: #05060e; border: 1px solid var(--line); color: #dfe4ff; font-size: .9rem; }
.prose code { font-family: var(--font-mono); font-size: .92em; }
.prose :not(pre) > code { padding: 2px 6px; background: rgb(63 224 240 / 10%); color: var(--cyan); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--txt); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.prose hr { border: 0; height: 2px; width: 90px; margin-inline: auto; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.prose .alignwide { max-width: 1140px; margin-inline: calc(50% - min(570px, 50vw - var(--gutter))); width: auto; }
.prose .alignfull { max-width: none; margin-inline: calc(50% - 50vw); width: 100vw; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-block-button__link { background: linear-gradient(135deg, #c3a0ff, var(--violet)); color: #0a0518; border-radius: 0; }
.post-password-form { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.post-password-form input[type="password"] { padding: 10px 12px; background: #0a0c18; border: 1px solid var(--line); color: var(--txt); }
.post-password-form input[type="submit"] { padding: 11px 20px; border: 1px solid var(--violet); background: var(--violet); color: #0a0518; font-weight: 700; cursor: pointer; }
.page-links { font-weight: 600; }

.post-foot { max-width: 760px; margin: clamp(30px, 5vw, 46px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { padding: 6px 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-size: .86rem; color: var(--txt-soft); }
.post-tags a::before { content: "#"; color: var(--cyan); }
.post-tags a:hover { border-color: var(--cyan); color: var(--cyan); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share a, .copy-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; background: transparent;
  border: 1px solid var(--line); text-decoration: none; color: var(--txt-soft);
  font: 700 .86rem/1 var(--font-display); letter-spacing: .04em; cursor: pointer; transition: .2s ease;
}
.share a:hover, .copy-link:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px -4px rgb(63 224 240 / 60%); }
.copy-link.is-done { border-color: var(--tone); color: var(--tone); }

.post-navigation { max-width: 760px; margin: clamp(36px, 5vw, 52px) auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; text-decoration: none; font: 700 1.04rem/1.25 var(--font-display); }
.post-navigation a .mono { color: var(--cyan); text-transform: uppercase; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.related { margin-top: clamp(50px, 7vw, 82px); padding-top: clamp(34px, 5vw, 50px); border-top: 1px solid var(--line); }

/* Commentaires */
.talk { max-width: 760px; margin: clamp(50px, 7vw, 82px) auto 0; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: clamp(14px, 4vw, 36px); }
.comment-body { padding: 20px; margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--txt); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--font-mono); font-size: .78rem; margin: 4px 0 10px 58px; color: var(--muted); }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { color: var(--txt-soft); }
.comment-content p:last-child { margin: 0; }
.reply a { font: 700 .84rem/1 var(--font-display); color: var(--cyan); text-decoration: none; letter-spacing: .04em; }
.comment-respond { margin-top: 30px; padding: clamp(20px, 4vw, 30px); }
.comment-reply-title { font-size: 1.45rem; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--txt); }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea {
  width: 100%; padding: 12px 14px; background: #0a0c18; border: 1px solid var(--line); color: var(--txt);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .submit { justify-self: start; }
.comment-notes, .comment-form .logged-in-as { color: var(--muted); font-size: .9rem; }
.talk-closed { color: var(--muted); }
.bypostauthor > .comment-body { border-left-color: var(--cyan); }
.comments-pagination { margin-block: 18px; }

/* 404 */
.lost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 5vw, 60px); align-items: center; }
.lost-code {
  margin: 0; font: 700 clamp(5rem, 16vw, 12rem)/.85 var(--font-display); letter-spacing: -.04em; color: var(--violet);
  text-shadow: 0 0 40px rgb(169 112 255 / 60%), 4px 4px 0 rgb(63 224 240 / 45%);
}
.lost h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.lost p { color: var(--muted); }
.lost .find { margin: 22px 0; }

/* Pied de page */
.site-foot { margin-top: clamp(40px, 6vw, 72px); background: #05060e; border-top: 1px solid var(--line); padding-top: clamp(44px, 6vw, 72px); font-size: .95rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; }
.foot-brand p { margin-top: 16px; max-width: 36ch; }
.foot-col h2 { font: 700 .78rem/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--txt); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--txt-soft); text-decoration: none; }
.foot-col a:hover { color: var(--cyan); }
.foot-col li[class*="tone-"] a { display: inline-flex; align-items: center; gap: 10px; }
.foot-col li[class*="tone-"] a::before { content: ""; width: 9px; height: 9px; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.foot-search .find { background: #0a0c18; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(34px, 5vw, 56px); padding-block: 20px; border-top: 1px solid var(--line); font-size: .84rem; }

/* Adaptatif */
@media (max-width: 1100px) {
  .rubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .head-inner { gap: 12px; min-height: 66px; flex-wrap: wrap; }
  .burger {
    display: inline-flex; align-items: center; gap: 10px; order: 3; padding: 12px 16px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line); color: var(--txt);
    font: 700 .92rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  }
  .burger[aria-expanded="true"] { border-color: var(--violet); color: var(--violet); }
  .head-search { margin-left: auto; }
  .burger-lines, .burger-lines::before, .burger-lines::after { display: block; width: 16px; height: 2px; background: currentColor; transition: .2s ease; }
  .burger-lines { position: relative; }
  .burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
  .burger-lines::before { top: -5px; }
  .burger-lines::after { top: 5px; }
  .burger[aria-expanded="true"] .burger-lines { background: transparent; }
  .burger[aria-expanded="true"] .burger-lines::before { top: 0; transform: rotate(45deg); }
  .burger[aria-expanded="true"] .burger-lines::after { top: 0; transform: rotate(-45deg); }

  /* Sans JavaScript, le menu reste visible sous l’en-tête. */
  .nav { order: 4; flex-basis: 100%; margin: 0; padding-bottom: 10px; }
  .nav-list { flex-wrap: wrap; }
  .js .nav { position: absolute; top: 100%; left: 0; right: 0; padding: 10px var(--gutter) 18px; background: #080a15; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -28px #000; display: none; }
  .js .nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; }
  .js .nav-list a { padding: 14px 4px; font-size: 1.06rem; border-bottom: 1px solid var(--line); }
  .nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 16px; min-width: 0; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage .tile--hero, .arcade { min-height: 380px; }
  .rub-blocks, .ladder { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .find-band-inner { grid-template-columns: 1fr; }
  .hud-text { display: none; }
}

@media (max-width: 782px) {
  .admin-bar .site-head { top: 46px; }
  .admin-bar .progress { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-head { top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .logo-text { font-size: 1.25rem; }
  .logo-mark { width: 36px; height: 36px; }
  .burger span:last-child { display: none; }
  .burger { padding: 13px 12px; }
  .grid, .rub-blocks { grid-template-columns: 1fr; }
  .rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rub { min-height: 140px; padding: 14px; }
  .rub-count { font-size: 2rem; }
  .tile--row { grid-template-columns: 84px minmax(0, 1fr); }
  .hero-stage .tile--hero, .arcade { min-height: 330px; }
  .band-head { flex-direction: column; align-items: flex-start; }
  .post-meta > *::before { display: none; }
  .find button span { display: none; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: 1; text-align: left; }
  .lost { grid-template-columns: 1fr; text-align: center; }
  .lost .find { margin-inline: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .alignleft, .alignright { float: none; margin: 0 0 1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-copy h1::after { animation: none; }
  .tile:hover, .rub:hover, .ladder li:hover, .post-navigation a:hover, .button:hover, .find button:hover, .comment-form .submit:hover,
  .tile:hover .tile-media img, .tile:hover .ghost-letter, .link:hover .icon { transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .hud, .site-head, .site-foot, .progress, .share, .post-navigation, .related, .talk, .find-band { display: none; }
  .prose, .post-head { color: #000; }
}
