/* En-tête V-KORP */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 7, 9, .82); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s, background .2s;
}
.site-header::after { /* filet violet → or sous l'en-tête */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--gold) 70%, transparent); opacity: .55;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.8); background: rgba(7,7,9,.94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }

.brand img { width: 46px; height: auto; transition: transform .2s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

/* navigation */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.main-nav > a, .nav-group__toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px;
  font-family: var(--f-head); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative;
  transition: color .15s, background .15s;
}
.main-nav > a:hover, .nav-group__toggle:hover, .nav-group.open .nav-group__toggle { color: #fff; background: var(--panel); }
.main-nav > a.active, .nav-group.is-active .nav-group__toggle { color: #fff; }
.main-nav > a.active::after, .nav-group.is-active .nav-group__toggle::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--accent); border-radius: 2px;
}
.nav-group__toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-group.open .nav-group__toggle svg { transform: rotate(180deg); }

/* menu déroulant des serveurs */
.nav-group { position: relative; }
.nav-group__menu {
  position: absolute; top: calc(100% + 12px); left: -10px; width: 320px;
  padding: 10px; border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #15151b, #0e0e12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(113,30,255,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-group__menu::before { content: ""; position: absolute; left: 0; top: 0; width: 70px; height: 3px; background: var(--accent); border-radius: 14px 0 0 0; }
.nav-group.open .nav-group__menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu__section {
  margin: 4px 6px 8px; font-family: var(--f-head); font-weight: 900; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim);
}
.nav-menu__section::before { content: "// "; color: var(--accent); }
.nav-menu__section:not(:first-child) { margin-top: 14px; }
.nav-menu__grid { display: grid; gap: 2px; }
.nav-menu__grid.is-cols { grid-template-columns: 1fr 1fr; column-gap: 8px; }
.nav-menu__link {
  display: grid; grid-template-columns: 8px 24px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text-soft); font-size: 14.5px;
  transition: background .12s, color .12s;
}
.nav-menu__link:hover, .nav-menu__link:focus-visible { background: color-mix(in srgb, var(--c) 14%, transparent); color: #fff; outline: none; }
.nav-menu__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.nav-menu__num { font-family: var(--f-head); font-weight: 900; color: var(--dim); font-size: 13px; }
.nav-menu__link:hover .nav-menu__num { color: var(--c); }
.nav-menu__name { font-family: var(--f-head); font-weight: 900; text-transform: uppercase; }
.nav-menu__tag { font-family: var(--f-head); font-weight: 700; font-size: 11.5px; color: var(--dim); }
.nav-menu__link:hover .nav-menu__tag { color: var(--c); }
.nav-menu__all {
  display: block; margin-top: 12px; padding: 11px 12px; border-top: 1px solid var(--line);
  font-family: var(--f-head); font-weight: 900; text-transform: uppercase; font-size: 13px; color: var(--accent); text-decoration: none;
}
.nav-menu__all:hover { color: #fff; }

/* actions à droite */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-link {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 9px;
  font-family: var(--f-head); font-weight: 900; font-size: 13.5px; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--text); transition: background .15s, border-color .15s, transform .15s;
}
.header-link svg { width: 18px; height: 18px; }
.header-link:hover { transform: translateY(-1px); }
.header-link.is-discord:hover { border-color: #5865f2; background: rgba(88,101,242,.15); }
.header-link.is-steam { background: var(--violet); border-color: var(--violet); color: #fff; }
.header-link.is-steam:hover { background: var(--violet-2); border-color: var(--violet-2); box-shadow: 0 8px 24px -8px rgba(113,30,255,.8); }

.language { display: flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; height: 40px; }
.language button {
  background: none; border: 0; color: var(--dim); width: 38px; cursor: pointer;
  font-family: var(--f-head); font-weight: 900; font-size: 13px;
}
.language button.active { background: var(--gold); color: #111; }
.language button:not(.active):hover { color: #fff; }

.menu-toggle { display: none; width: 44px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: none; color: #fff; cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* tablette / mobile */
@media (max-width: 1000px) {
  .menu-toggle { display: grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 40px; overflow-y: auto;
    background: var(--ink-2); transform: translateX(100%); transition: transform .25s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav > a, .nav-group__toggle { height: 56px; width: 100%; font-size: 18px; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 6px; }
  .main-nav > a.active::after, .nav-group.is-active .nav-group__toggle::after { left: 6px; right: auto; width: 40px; bottom: 8px; }
  .nav-group__menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: none; padding: 10px 0; }
  .nav-group.open .nav-group__menu { display: block; }
  .nav-group__menu::before { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .header-link span { display: none; }
  .header-link { padding: 0 11px; }
  .nav-menu__grid.is-cols { grid-template-columns: 1fr; }
}


/* ligne de jeu dans le menu */
.nav-menu__item {
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px; text-decoration: none; position: relative;
  transition: background .12s;
}
.nav-menu__item:hover, .nav-menu__item:focus-visible { background: color-mix(in srgb, var(--c) 13%, transparent); outline: none; }
.nav-menu__item:hover::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.nav-menu__logo {
  width: 40px; height: 40px; border-radius: 9px; position: relative; overflow: hidden; display: grid; place-items: center;
  font-family: var(--f-logo); font-size: 13px; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.nav-menu__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.nav-menu__text { display: grid; line-height: 1.25; }
.nav-menu__text b { font-family: var(--f-head); font-weight: 900; font-size: 15px; color: #fff; }
.nav-menu__text small { font-family: var(--f-body); font-weight: 700; font-size: 13px; color: var(--muted); }
.nav-menu__item:hover .nav-menu__text small { color: var(--text-soft); }
.nav-menu__item.is-soon .nav-menu__logo { filter: grayscale(.6) opacity(.75); }
.nav-menu__item.is-soon .nav-menu__text small { color: var(--dim); font-style: italic; }
.nav-menu__section { margin: 8px 10px 6px !important; }
.nav-menu__sep { display: block; height: 1px; background: var(--line); margin: 8px 4px; }
@media (max-width: 1000px) {
  .nav-group__menu { padding: 6px 0 12px; }
  .nav-menu__item:hover::before { display: none; }
}

/* icônes devant Accueil / Serveurs */
.main-nav > a svg:first-child, .nav-group__toggle svg:first-child { width: 18px; height: 18px; flex: none; color: var(--dim); transition: color .15s; }
.main-nav > a:hover svg:first-child, .main-nav > a.active svg:first-child,
.nav-group__toggle:hover svg:first-child, .nav-group.open .nav-group__toggle svg:first-child, .nav-group.is-active .nav-group__toggle svg:first-child { color: var(--accent); }
.nav-group__toggle svg:first-child { transform: none !important; }
@media (max-width: 1000px) {
  .main-nav > a, .nav-group__toggle { justify-content: flex-start; gap: 12px; }
  .nav-group__toggle svg:last-child { margin-left: auto; }
  .main-nav > a svg:first-child, .nav-group__toggle svg:first-child { width: 22px; height: 22px; }
}

/* ===== style « titre d'embed » (comme sur les panneaux Discord) =====
   TITRE ▮      bloc de couleur, relié au trait par un angle
   ━━━━━━ ▪▪▪ ━┘ trait de couleur coupé par 3 carrés blancs
   ───           second trait, plus fin et plus foncé                    */
/* Mesuré sur le panneau « BANS & EXPULSIONS » (Roboto Black) et converti en em :
   le décor garde exactement les mêmes proportions à toutes les tailles. */
.vk-title { position: relative; display: inline-block; line-height: 1; padding: 0 .63em .40em 0; }
.vk-title::after { /* bloc ▮ */
  content: ""; position: absolute; right: 0; top: .10em; width: .37em; height: .80em;
  background: var(--c, var(--accent)); pointer-events: none;
  opacity: 0; transition: opacity .16s;
}
.vk-line { /* ━━━━━━━━  ▪ ▪ ▪  ━━━━┘ */
  position: absolute; left: -.05em; right: 0; top: 1.14em; height: max(.11em, 2px);
  display: flex; align-items: center; pointer-events: none;
  clip-path: inset(-1em 100% -1em 0); transition: clip-path .26s ease;
}
.vk-line::before { content: ""; flex: 1 1 auto; align-self: stretch; background: var(--c, var(--accent)); }
.vk-line i { /* les 3 carrés blancs */
  flex: none; width: .86em; height: max(.09em, 1.5px); margin: 0 .21em 0 .16em;
  background: linear-gradient(90deg, #fff 0 .2em, transparent .2em .33em, #fff .33em .53em, transparent .53em .66em, #fff .66em .86em);
}
.vk-line::after { content: ""; flex: 0 0 27%; align-self: stretch; background: var(--c, var(--accent)); }
.vk-line u { /* crochet : remonte au bout du trait, s'arrête sous le bloc */
  position: absolute; right: 0; bottom: 0; width: max(.09em, 1.5px); height: calc(.295em + 100%);
  background: var(--c, var(--accent));
}
.vk-line b { /* second trait, fin et foncé */
  position: absolute; left: 0; top: calc(100% + .083em); width: 39%; height: max(.065em, 1px);
  background: color-mix(in srgb, var(--c, var(--accent)) 55%, #000);
}
.main-nav > a.is-sel .vk-title::after, .nav-group.is-sel > .nav-group__toggle .vk-title::after,
.nav-menu__item.is-sel .vk-title::after { opacity: 1; }
.main-nav > a.is-sel .vk-line, .nav-group.is-sel > .nav-group__toggle .vk-line,
.nav-menu__item.is-sel .vk-line { clip-path: inset(-1em -1px -1em 0); }
.main-nav > a.is-sel .vk-title, .nav-group.is-sel > .nav-group__toggle .vk-title,
.nav-menu__item.is-sel .vk-title { text-shadow: .035em .035em 0 rgba(0,0,0,.8); }

/* barre : plus de trait simple, c'est le titre d'embed qui marque l'entrée */
.main-nav > a.active::after, .nav-group.is-active .nav-group__toggle::after { display: none; }
.main-nav > a, .nav-group__toggle { padding-top: 9px; }
.main-nav > a:hover, .main-nav > a.active, .nav-group__toggle:hover, .nav-group.open .nav-group__toggle, .nav-group.is-active .nav-group__toggle { background: none; }

/* menu déroulant : nom en capitales comme les titres des panneaux */
.nav-menu__text b { justify-self: start; }
.nav-menu__item .vk-title { margin-bottom: 2px; }
.nav-menu__item:hover::before, .nav-menu__item:focus-visible::before { display: none; }

/* entrée « jeu » du menu principal : logo du jeu devant le nom, icône dans les lignes du menu déroulant */
.nav-ico { width: 20px; height: 20px; flex: none; border-radius: 5px; object-fit: cover; }
.nav-group__toggle .vk-title { white-space: nowrap; }
.nav-group__menu { width: 290px; }
.nav-group__menu::before { background: var(--c, var(--accent)); }
.nav-menu__logo svg { width: 22px; height: 22px; }
.nav-group__toggle svg:last-child { width: 14px; height: 14px; }
@media (max-width: 1000px) { .nav-ico { width: 24px; height: 24px; } .nav-group__menu { width: auto; } }
