/* WZ Nation */
:root {
  --bg: #06050d;
  --bg-2: #0a0817;
  --panel: #0c0919;
  --line: rgba(255, 255, 255, 0.1);
  --mag: #ff2bd6;
  --mag-hi: #ff7be6;
  --vio: #8b2bff;
  --text: #eeeaf8;
  --dim: #a39cbd;
  --mute: #6f6889;
  --ok: #3dffa0;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d6e6 38%, #8e8aa3 56%, #ecebf5 78%, #9c98b3 100%);
  --font-display: "Russo One", "Chakra Petch", system-ui, sans-serif;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --topbar-h: 34px;
  --nav-h: 72px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (max-width: 899px) {
  :root {
    --topbar-h: 0px;
    --nav-h: 62px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--mag-hi);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--mag);
  color: #14041a;
  font-family: var(--font-ui);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.5rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Cadres ---------- */

.frame {
  position: relative;
  border: 1px solid transparent;
  border-image: url("../img/ui/frame-card.svg") 40 fill / 40px stretch;
}

.frame-panel {
  position: relative;
  border: 1px solid transparent;
  border-image: url("../img/ui/frame-panel.svg") 60 fill / 60px stretch;
}

.frame-hud {
  position: relative;
  border: 1px solid transparent;
  border-image: url("../img/ui/frame-hud.svg") 24 fill / 24px stretch;
}

a.frame:hover,
a.frame:focus-visible,
.frame.is-hot:hover {
  border-image-source: url("../img/ui/frame-card-on.svg");
}

/* halo extérieur : sur un parent, car le cadre lui-même est dessiné dans sa bordure */
.glow {
  filter: drop-shadow(0 0 22px rgba(255, 43, 214, 0.14)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.glow:hover {
  filter: drop-shadow(0 0 26px rgba(255, 43, 214, 0.38)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
  transform: translateY(-4px);
}

/* ---------- Boutons ---------- */

.btn {
  --cut: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  overflow: hidden;
}

.btn .icon {
  transition: transform 0.2s ease;
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

.btn-primary {
  color: #1a0420;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(100deg, #ff58e0 0%, var(--mag) 45%, #c417ff 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  filter: brightness(1.12) saturate(1.1);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 43, 214, 0.55);
}

/* le fond magenta sert de liseré : un calque sombre découpé 1px plus petit laisse dépasser le contour biseauté */
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #0d0a1c;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.2s ease;
}

.btn-ghost {
  isolation: isolate;
}

.btn-ghost:hover {
  background: var(--mag);
}

.btn-ghost:hover::before {
  background: #1d0f33;
}

.btn-sm {
  --cut: 8px;
  min-height: 2.25rem;
  padding: 0 0.95rem;
  font-size: 0.72rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mag-hi);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 43, 214, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mag-hi);
  background: rgba(255, 43, 214, 0.12);
  border-left: 2px solid var(--mag);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  white-space: nowrap;
}

.badge-solid {
  color: #1a0420;
  background: linear-gradient(100deg, #ff58e0, var(--mag));
  border-left-color: #fff;
}

.badge-vio {
  color: #cfb2ff;
  background: rgba(139, 43, 255, 0.18);
  border-left-color: var(--vio);
}

.badge-dark {
  color: var(--text);
  background: rgba(6, 5, 13, 0.82);
}

/* ---------- En-tête ---------- */

.topbar {
  height: var(--topbar-h);
  background: #04030a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--dim);
}

.topbar p::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--mag);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--mag);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.topbar a:hover {
  color: var(--mag-hi);
}

@media (max-width: 899px) {
  .topbar {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(6, 5, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.75) 18%, rgba(139, 43, 255, 0.5) 60%, transparent);
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.logo-tile {
  width: 46px;
  height: 46px;
  object-fit: cover;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.logo-word {
  display: grid;
  line-height: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-word small {
  margin-top: 0.3rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--mag-hi);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--mag);
  box-shadow: 0 0 10px var(--mag);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-user {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.nav-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--mag);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.5);
}

.is-logged .nav-user {
  display: flex;
}

.is-logged [data-login] {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 43, 214, 0.5);
  background: #0d0a1c;
  color: #fff;
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1099px) {
  .nav-toggle {
    display: block;
  }

  .site-menu {
    /* absolu et non fixe : le flou (backdrop-filter) de l'en-tête en fait le repère des éléments fixes,
       le menu se retrouvait enfermé dans la hauteur de la barre et il fallait défiler */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-h));
    margin: 0;
    padding: 1.5rem var(--gutter) 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    background: #06050d;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a::after {
    left: 0;
    right: auto;
    width: 3rem;
    bottom: -1px;
  }
}

/* ---------- Hero plein écran ---------- */

.hero {
  position: relative;
  height: calc(100svh - var(--topbar-h) - var(--nav-h));
  min-height: 30rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #05040b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  animation: hero-drift 26s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09) translate(-1%, -1%);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 5, 13, 0.9) 0%, rgba(6, 5, 13, 0.5) 32%, rgba(6, 5, 13, 0) 58%),
    linear-gradient(180deg, rgba(6, 5, 13, 0.35) 0%, rgba(6, 5, 13, 0) 22%, rgba(6, 5, 13, 0) 68%, rgba(6, 5, 13, 0.95) 100%);
}

/* trame de balayage */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  inset: clamp(0.6rem, 1.6vw, 1.4rem);
  z-index: 0;
  pointer-events: none;
  --c: rgba(255, 255, 255, 0.5);
  --m: var(--mag);
  background:
    linear-gradient(var(--m), var(--m)) left top / 64px 2px,
    linear-gradient(var(--m), var(--m)) left top / 2px 64px,
    linear-gradient(var(--c), var(--c)) right top / 64px 2px,
    linear-gradient(var(--c), var(--c)) right top / 2px 64px,
    linear-gradient(var(--c), var(--c)) left bottom / 64px 2px,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 64px,
    linear-gradient(var(--m), var(--m)) right bottom / 64px 2px,
    linear-gradient(var(--m), var(--m)) right bottom / 2px 64px,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 12%, rgba(255, 255, 255, 0.14) 88%, transparent) left top / 100% 1px,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 12%, rgba(255, 255, 255, 0.14) 88%, transparent) left bottom / 100% 1px;
  background-repeat: no-repeat;
}

/* graduations latérales */
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: min(42%, 16rem);
  transform: translateY(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px 12px);
}

.hero-frame::before {
  left: 0;
  -webkit-mask: linear-gradient(90deg, #000 60%, transparent);
  mask: linear-gradient(90deg, #000 60%, transparent);
}

.hero-frame::after {
  right: 0;
  -webkit-mask: linear-gradient(270deg, #000 60%, transparent);
  mask: linear-gradient(270deg, #000 60%, transparent);
}

.hero-tag {
  position: absolute;
  top: clamp(1.1rem, 2.2vw, 2rem);
  right: clamp(1.6rem, 4vw, 3.4rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.hero-grid {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(1.5rem, 6vh, 4rem);
}

.hero-copy {
  display: grid;
  gap: clamp(0.7rem, 2vh, 1.3rem);
  justify-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--mag-hi);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 18px;
  background: var(--mag);
  transform: skewX(-18deg);
  box-shadow: 0 0 14px var(--mag);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, min(8.4vw, 13.5vh), 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.t-chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55));
}

.t-mag {
  color: var(--mag);
  background: linear-gradient(180deg, #ff9bee 0%, var(--mag) 45%, #c417c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 43, 214, 0.55)) drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}

.hero-lede {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1rem, 2.4vh, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(0.2rem, 1.5vh, 0.8rem);
}

.hero-hud {
  display: grid;
  gap: 0.8rem;
  width: 17.5rem;
}

.hud-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hud-card .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--mag-hi);
}

.hud-label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.hud-value {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vh, 2rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dim);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, var(--mag), transparent);
  animation: cue 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
  }
  60% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@media (max-width: 899px) {
  .hero {
    align-items: flex-end;
  }

  .hero-bg img {
    height: 62%;
    object-position: 50% 30%;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(6, 5, 13, 0.25) 0%, rgba(6, 5, 13, 0) 25%, rgba(6, 5, 13, 0.92) 56%, #05040b 66%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(0.8rem, 2.4vh, 1.4rem);
    padding-block: 1rem clamp(1.4rem, 4vh, 2.4rem);
  }

  .hero-hud {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .hud-card {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.7rem 0.8rem;
  }

  .hud-card > .icon,
  .hud-card > .dot-live {
    display: none;
  }

  .hero-tag,
  .scroll-cue,
  .hero-frame::before,
  .hero-frame::after {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-height: 620px) and (min-width: 900px) {
  .scroll-cue {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  isolation: isolate;
}

.section-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 26rem at 12% 0%, rgba(139, 43, 255, 0.16), transparent 70%),
    radial-gradient(40rem 22rem at 100% 100%, rgba(255, 43, 214, 0.1), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.section-storm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(6, 5, 13, 0.55) 30%, rgba(6, 5, 13, 0.55) 70%, var(--bg) 100%),
    url("../img/bg-storm.webp") center / cover no-repeat;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.7));
}

.divider::after {
  transform: scaleX(-1);
}

.divider i {
  width: 10px;
  height: 10px;
  background: var(--mag);
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--mag), 0 0 0 4px rgba(255, 43, 214, 0.15);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mag-hi);
}

.section-kicker b {
  padding: 0.12rem 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a0420;
  background: var(--mag);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.section-kicker::after {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--mag), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-sub {
  margin-top: 0.9rem;
  max-width: 38rem;
  color: var(--dim);
}

/* ---------- Cartes tournoi ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.t-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.7rem;
}

.t-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
  background: #120d26;
}

.t-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.glow:hover .t-media img {
  transform: scale(1.06);
}

.t-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 9, 25, 0.95));
}

.t-media .badge {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  left: 0.9rem;
}

.t-prize {
  position: absolute;
  z-index: 1;
  right: 0.8rem;
  bottom: 0.6rem;
  text-align: right;
  line-height: 1;
}

.t-prize strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.8);
}

.t-prize span {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mag-hi);
}

.t-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  padding: 1rem 0.5rem 0.4rem;
}

.t-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.t-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.t-meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.035);
  border-left: 2px solid rgba(139, 43, 255, 0.7);
}

.t-meta .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--mag-hi);
}

.t-meta span {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.t-meta b {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
}

.t-fill {
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
}

.t-fill p {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.t-fill p b {
  color: #fff;
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.bar i {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: repeating-linear-gradient(115deg, var(--mag) 0 8px, #d81fc0 8px 12px);
  box-shadow: 0 0 12px var(--mag);
}

/* ---------- Communauté ---------- */

.community {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .community {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    gap: 3.5rem;
  }
}

.community-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.crown {
  width: 3.4rem;
  filter: drop-shadow(0 0 16px rgba(255, 43, 214, 0.6));
}

.tagline {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--mag-hi);
}

.board {
  display: grid;
  gap: 0;
  padding: 1.8rem;
}

@media (min-width: 700px) {
  .board {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.stats {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem 1.5rem 0.5rem;
}

@media (min-width: 700px) {
  .stats {
    padding: 0.5rem 1.8rem 0.5rem 0.5rem;
    border-right: 1px solid var(--line);
  }
}

.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.stat-ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--mag-hi);
  background: rgba(255, 43, 214, 0.1);
  border: 1px solid rgba(255, 43, 214, 0.45);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.stat-ico .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1;
}

.stat span {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.feed {
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}

@media (min-width: 700px) {
  .feed {
    padding-left: 1.8rem;
  }
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.feed-thumb {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: #1a1233;
}

.feed-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.feed-item time {
  font-size: 0.76rem;
  color: var(--mute);
}

/* ---------- Velkra ---------- */

.velkra {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  overflow: hidden;
}

@media (min-width: 1000px) {
  .velkra {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
    gap: 2.5rem;
  }
}

.velkra-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(48%, 30rem);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  -webkit-mask: linear-gradient(270deg, #000 30%, transparent);
  mask: linear-gradient(270deg, #000 30%, transparent);
}

.velkra-logo {
  width: 100%;
  max-width: 26rem;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, #000 50%, transparent 98%);
  mask: radial-gradient(closest-side, #000 50%, transparent 98%);
}

.velkra-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.velkra-copy .section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

.roster {
  min-width: 13rem;
  padding: 1.1rem 1.2rem;
}

.roster h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mag-hi);
}

.roster li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.roster li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--vio);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--vio);
}

.roster li small {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Boutique ---------- */

.shop {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .shop {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
    gap: 3rem;
  }
}

.shop-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.p-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.7rem;
}

.p-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
  background: #120d26;
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.glow:hover .p-media img {
  transform: scale(1.06);
}

.p-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.8rem;
  padding: 0.9rem 0.5rem 0.4rem;
}

.p-body h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.p-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--mag-hi);
}

.p-cart {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--mag-hi);
  border: 1px solid rgba(255, 43, 214, 0.5);
  background: rgba(255, 43, 214, 0.08);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* ---------- Pied de page ---------- */

.site-footer {
  position: relative;
  margin-top: 2rem;
  padding-block: 3rem 1.5rem;
  background: #04030a;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mag) 30%, var(--vio) 70%, transparent);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.6);
}

.footer-main {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: auto 1fr auto;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.footer-brand p {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

@media (min-width: 900px) {
  .footer-nav {
    justify-content: center;
  }
}

.footer-nav a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--mag-hi);
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: #0d0a1c;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.socials a:hover {
  color: #1a0420;
  background: var(--mag);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

/* ---------- Cookies ---------- */

.cookie {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1rem;
  width: min(100% - 2rem, 46rem);
  transform: translate(-50%, 140%);
  transition: transform 0.4s ease;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
}

.cookie.is-on {
  transform: translate(-50%, 0);
}

.cookie-in {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .cookie-in {
    grid-template-columns: 1fr auto;
  }
}

.cookie-in a {
  color: var(--mag-hi);
  text-decoration: underline;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* ---------- Apparition ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.card-grid .glow {
  height: 100%;
}

.shop .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
}

.velkra-art {
  opacity: 0.75;
}

[hidden] {
  display: none !important;
}

/* ---------- Sous-pages : en-tête ---------- */

.page-hero {
  position: relative;
  min-height: clamp(17rem, 44vh, 26rem);
  display: flex;
  align-items: flex-end;
  padding-block: 2.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #05040b;
}

.page-hero > img,
.page-hero > picture img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 5, 13, 0.92) 0%, rgba(6, 5, 13, 0.55) 45%, rgba(6, 5, 13, 0.1) 100%),
    linear-gradient(180deg, rgba(6, 5, 13, 0.2) 0%, rgba(6, 5, 13, 0) 40%, var(--bg) 100%);
}

.page-hero .hero-frame::before,
.page-hero .hero-frame::after {
  display: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.page-hero-copy {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  max-width: 44rem;
}

.page-hero-copy p:not(.eyebrow) {
  color: var(--dim);
}

/* ---------- Onglets ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.tab {
  padding: 0.55rem 1.1rem;
  border: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tab:hover {
  color: #fff;
  background: rgba(255, 43, 214, 0.18);
}

.tab.is-active,
.tab[aria-selected="true"] {
  color: #1a0420;
  background: linear-gradient(100deg, #ff58e0, var(--mag));
}

/* ---------- Tableaux ---------- */

.table-wrap {
  padding: 0.6rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
}

.table th {
  padding: 0.8rem 0.9rem;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mag-hi);
  border-bottom: 1px solid rgba(255, 43, 214, 0.4);
  white-space: nowrap;
}

.table td {
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background: rgba(255, 43, 214, 0.07);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table .rank {
  width: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dim);
}

.table tr[data-rank="1"] .rank,
.table tr[data-rank="2"] .rank,
.table tr[data-rank="3"] .rank {
  color: var(--mag-hi);
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.7);
}

/* ---------- Zone sans contenu : cadre dessiné, vide ---------- */

.empty {
  min-height: 14rem;
}

/* ---------- Texte long (pages légales) ---------- */

.prose {
  max-width: 46rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.prose h2 {
  margin: 2.2rem 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin-bottom: 0.8rem;
  color: #d5d0e6;
}

.prose ul {
  padding-left: 1.2rem;
  list-style: square;
}

.prose a {
  color: var(--mag-hi);
  text-decoration: underline;
}

/* ---------- Formulaires ---------- */

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 2px solid var(--mag);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mag);
  box-shadow: 0 0 0 3px rgba(255, 43, 214, 0.18);
}

.notice {
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--mag);
  background: rgba(255, 43, 214, 0.08);
  font-size: 0.92rem;
}

.notice-ok {
  border-left-color: var(--ok);
  background: rgba(61, 255, 160, 0.08);
}
/* ---------- États sans contenu ---------- */

.state {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  padding: clamp(2rem, 5vw, 3.2rem) 1.5rem;
  text-align: center;
}

.state-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.state p:not(.state-title) {
  color: var(--dim);
}

.state-wide {
  grid-column: 1 / -1;
}

.feed-none {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.empty {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.empty:not(:has(a))::before {
  content: "Rien à afficher pour le moment.";
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dim);
}