/* =======================================================================
   Bataillon d'Exploration — theme "Attaque des Titans"
   1. Variables      5. Boutons        9. Wiki
   2. Reset          6. Header         10. Formulaires
   3. Decor anime    7. Hero           11. Boutique
   4. Layout         8. Cartes         12. Footer / responsive
   ======================================================================= */

/* ----------------------------- 1. Variables ---------------------------- */
:root {
  --bg-0: #070907;
  --bg-1: #0d110e;
  --bg-2: #131813;
  --panel: rgba(19, 24, 19, 0.82);
  --panel-solid: #141a15;
  --line: rgba(142, 160, 122, 0.18);
  --line-strong: rgba(190, 205, 165, 0.34);

  --green: #4a6b2a;
  --green-bright: #8fbf4f;
  --green-glow: rgba(143, 191, 79, 0.35);
  --gold: #c9a227;
  --gold-soft: #e2c35c;
  --blood: #9b2020;
  --blood-bright: #d94141;

  --cream: #ece5d4;
  --text: #d8d3c4;
  --muted: #8f9585;
  --faint: #656b5d;

  --font-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-ui: 'Barlow Condensed', 'Oswald', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

  --radius: 4px;
  --shell: 1200px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-blade: cubic-bezier(0.7, 0, 0.2, 1);
}

/* ------------------------------- 2. Reset ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

/* Les classes qui posent un display (.notice, .identity…) l'emportent sinon
   sur la regle [hidden] du navigateur, et l'element reste visible. */
[hidden] { display: none !important; }
a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--gold-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------- 3. Decor anime ---------------------------- */
.decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Banniere du serveur en fond : parallaxe sur le conteneur, zoom lent sur
   l'image (::before) pour que les deux transformations ne se marchent pas
   dessus. */
.decor__banner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateY(calc(var(--par, 0) * 44px));
  will-change: transform;
}
.decor__banner::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: url('../assets/banner.png') center 35% / cover no-repeat;
  animation: banner-zoom 52s ease-in-out infinite alternate;
}
@keyframes banner-zoom {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-2.5%, -1.5%, 0); }
}

/* Nuages / brume qui derivent lentement */
.decor__fog {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 60%;
  background: radial-gradient(ellipse 40% 60% at 20% 50%, rgba(190, 205, 170, 0.05), transparent 70%),
              radial-gradient(ellipse 30% 50% at 55% 40%, rgba(190, 205, 170, 0.04), transparent 70%),
              radial-gradient(ellipse 45% 55% at 85% 60%, rgba(190, 205, 170, 0.05), transparent 70%);
  animation: fog-drift 90s linear infinite;
}
.decor__fog--1 { top: 8%; }
.decor__fog--2 { top: 32%; animation-duration: 140s; animation-direction: reverse; opacity: 0.7; }

@keyframes fog-drift {
  from { transform: translateX(-12%); }
  to   { transform: translateX(12%); }
}

/* Voile sombre : la banniere est tres chargee, le texte doit rester lisible. */
.decor__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 38%, rgba(6, 8, 6, 0.35) 0%, rgba(6, 8, 6, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 8, 6, 0.62) 0%, rgba(6, 8, 6, 0.72) 45%, rgba(6, 8, 6, 0.94) 100%);
}

/* Braises : canvas plein ecran */
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ------------------------------ 4. Layout ------------------------------ */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.section-head { margin-bottom: 2.5rem; max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head--center .eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lead { font-size: 1.06rem; color: var(--muted); }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Revelation au scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ 5. Boutons ----------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(74, 107, 42, 0.34), rgba(20, 26, 21, 0.9));
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
/* Eclat de lame qui balaye le bouton au survol */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(236, 229, 212, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-blade);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--green-bright);
  box-shadow: 0 8px 26px -12px var(--green-glow), inset 0 0 22px -14px var(--green-bright);
  color: #fff;
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:disabled::after { display: none; }

.btn--gold {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.32), rgba(26, 22, 12, 0.9));
  border-color: rgba(226, 195, 92, 0.45);
}
.btn--gold:hover { border-color: var(--gold-soft); box-shadow: 0 8px 26px -12px rgba(201, 162, 39, 0.5); }

.btn--ghost { background: rgba(12, 16, 12, 0.6); }

.btn--discord {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.4), rgba(20, 24, 44, 0.9));
  border-color: rgba(88, 101, 242, 0.55);
}
.btn--discord:hover {
  border-color: #5865f2;
  box-shadow: 0 8px 26px -12px rgba(88, 101, 242, 0.7);
}

.btn--lg { padding: 1.05rem 2.4rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* ------------------------------ 6. Header ------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 11, 8, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.header.is-scrolled {
  background: rgba(8, 11, 8, 0.94);
  border-bottom-color: var(--line-strong);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--cream); }
.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(143, 191, 79, 0.35));
  transition: filter 0.3s, transform 0.3s var(--ease-out);
}
.brand:hover .brand__mark {
  filter: drop-shadow(0 0 18px rgba(143, 191, 79, 0.6));
  transform: rotate(-4deg) scale(1.05);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.brand__sub {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--cream); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Bloc compte (connexion Microsoft) */
.account { display: flex; align-items: center; gap: 0.6rem; }
.account__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 16, 12, 0.7);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.account__btn:hover { border-color: var(--green-bright); color: #fff; }
.account__avatar {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  image-rendering: pixelated;
  background: var(--bg-2);
}
.account__menu {
  position: absolute;
  top: calc(var(--header-h) - 10px);
  right: max(1.25rem, calc((100vw - var(--shell)) / 2));
  min-width: 210px;
  padding: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 20px 50px -20px #000;
  display: none;
}
.account__menu.is-open { display: block; }
.account__menu p { margin: 0 0 0.5rem; padding: 0 0.4rem; font-size: 0.85rem; color: var(--muted); }
.account__menu strong { color: var(--cream); }

.account__role {
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  background: var(--gold);
  color: #16130a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.account__item {
  display: block;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.25rem;
  border-radius: 3px;
  color: var(--text);
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.account__item:hover { background: rgba(74, 107, 42, 0.24); color: var(--cream); }
.account__item--staff { color: var(--gold-soft); }
.account__item--staff:hover { background: rgba(201, 162, 39, 0.18); }

/* ------------------------------- 7. Hero ------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
}
.hero__inner { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; text-align: center; }

/* Logo du serveur : flottement lent + halo qui respire. */
.hero__logo {
  position: relative;
  width: clamp(140px, 20vw, 230px);
  margin: 0 auto 1.8rem;
  animation: logo-float 7s ease-in-out infinite;
}
.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(143, 191, 79, 0.42));
}
/* Anneau lumineux qui pulse derriere le logo */
.hero__logo::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(143, 191, 79, 0.35);
  animation: logo-halo 4.5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes logo-halo {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 0.15; }
}

.hero__title { margin-bottom: 0.4rem; }

/* L'etat initial vit dans les keyframes (from) et non sur l'element : si les
   animations ne tournent pas, le contenu reste visible au lieu de disparaitre. */
@keyframes word-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Chaque mot du titre monte en cascade (index pose par js/app.js) */
.hero__title .word {
  display: inline-block;
  animation: word-rise 0.85s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}

.hero__tagline {
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  animation: word-rise 0.9s var(--ease-out) 0.6s both;
}
.hero__text {
  max-width: 62ch;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.06rem;
  animation: word-rise 0.9s var(--ease-out) 0.75s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: word-rise 0.9s var(--ease-out) 0.9s both;
}

/* Bandeau d'etat du serveur */
.serverbar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 10, 0.7);
  backdrop-filter: blur(6px);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  animation: word-rise 0.9s var(--ease-out) 1.05s both;
}
.serverbar__item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.serverbar__item strong { color: var(--cream); font-weight: 600; }
.serverbar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 0 currentColor;
}
.serverbar__dot--online { background: var(--green-bright); color: var(--green-glow); animation: pulse 2.4s infinite; }
.serverbar__dot--offline { background: var(--blood-bright); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--green-glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.copy-ip {
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.copy-ip:hover { background: rgba(143, 191, 79, 0.12); color: var(--cream); }

/* Bandeau de page (pages internes) */
.pagehead {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.pagehead__title { margin-bottom: 0.6rem; }
.pagehead__text { max-width: 66ch; margin: 0 auto; color: var(--muted); }

/* ------------------------------ 8. Cartes ------------------------------ */
.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
/* Liseré doré qui descend sur le bord gauche au survol */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -28px #000;
}
.card:hover::before { transform: scaleY(1); }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(74, 107, 42, 0.16);
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.07);
  font-size: 0.94rem;
  color: var(--text);
}
.notice--danger { border-left-color: var(--blood-bright); background: rgba(155, 32, 32, 0.09); }
.notice--ok { border-left-color: var(--green-bright); background: rgba(143, 191, 79, 0.08); }
.notice p:last-child { margin-bottom: 0; }

/* ------------------------------- 9. Wiki ------------------------------- */
.wiki-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.wiki-side {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.wiki-side__title {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.wiki-side__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.6rem;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.wiki-side__link:hover, .wiki-side__link.is-active {
  background: rgba(74, 107, 42, 0.2);
  color: var(--cream);
}
.wiki-side__count { font-family: var(--font-mono); font-size: 0.76rem; color: var(--faint); }

.wiki-search {
  position: relative;
  margin-bottom: 2rem;
}
/* Le selecteur porte le [type] pour passer devant la regle generique
   input[type='text'] de la section Formulaires, definie plus bas. */
.wiki-search input[type='text'] {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 3.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10, 14, 10, 0.85);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}
.wiki-search input::placeholder { color: var(--faint); }
.wiki-search::before {
  content: '⌕';
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--green-bright);
}

.wiki-group { margin-bottom: 3rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.wiki-group__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.wiki-group__head h2 { margin: 0; font-size: 1.5rem; }
.wiki-group__desc { color: var(--muted); font-size: 0.9rem; }

.cmd {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 16, 0.7);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.cmd:hover { border-color: var(--line-strong); }
.cmd__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.cmd__name {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--green-bright);
  white-space: nowrap;
}
.cmd__short { color: var(--muted); font-size: 0.92rem; flex: 1; min-width: 0; }
.cmd__chevron { color: var(--faint); transition: transform 0.3s var(--ease-out); flex: none; }
.cmd.is-open .cmd__chevron { transform: rotate(90deg); }

.cmd__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.cmd.is-open .cmd__body { grid-template-rows: 1fr; }
.cmd__body > div { overflow: hidden; }
.cmd__inner { padding: 0 1.1rem 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cmd__inner p { font-size: 0.95rem; }

.cmd__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.tag {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--staff { border-color: rgba(217, 65, 65, 0.4); color: var(--blood-bright); }
.tag--rank { border-color: rgba(201, 162, 39, 0.4); color: var(--gold-soft); }
.tag--plugin { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }

.cmd__usage {
  display: block;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0a0d0a;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cream);
  overflow-x: auto;
  white-space: pre;
}
.cmd__sub { margin: 0; padding: 0; list-style: none; }
.cmd__sub li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
}
.cmd__sub code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--gold-soft);
  white-space: nowrap;
}
.cmd__sub span { color: var(--muted); flex: 1; min-width: 180px; }

.wiki-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }

/* Tableau (salaires, etc.) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 460px; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: rgba(74, 107, 42, 0.16);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(143, 191, 79, 0.05); }
td strong { color: var(--cream); }

/* --------------------------- 10. Formulaires --------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}
.field__hint { font-size: 0.82rem; color: var(--faint); }
.field__req { color: var(--blood-bright); }

input[type='text'],
input[type='email'],
input[type='number'],
input[type='url'],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 12, 9, 0.85);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(143, 191, 79, 0.14);
}
textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-bright) 50%),
                    linear-gradient(135deg, var(--green-bright) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

/* Choix en gros boutons (type de report / grade) */
.choices { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 18, 14, 0.75);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.choice__box:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.choice input:checked + .choice__box {
  border-color: var(--green-bright);
  background: rgba(74, 107, 42, 0.22);
  box-shadow: inset 0 0 24px -14px var(--green-bright);
}
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.choice__title {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.choice__desc { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

.counter { font-size: 0.78rem; color: var(--faint); text-align: right; font-family: var(--font-mono); }
.counter.is-low { color: var(--blood-bright); }

.form__status { display: none; }
.form__status.is-shown { display: flex; }

/* Etat "connecte" affiche dans les formulaires */
.identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(74, 107, 42, 0.12);
}
.identity img { width: 40px; height: 40px; border-radius: 3px; image-rendering: pixelated; }
.identity div { min-width: 0; }
.identity strong { display: block; color: var(--cream); }
.identity span { font-size: 0.84rem; color: var(--muted); font-family: var(--font-mono); word-break: break-all; }

/* ----------------------------- 11. Boutique ---------------------------- */

/* Chaque carte porte ses couleurs via --accent / --glow / --deep,
   poses en style inline depuis public/data/shop.js. */
.offers {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
}

.rank {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--deep, #1a201a), rgba(12, 16, 12, 0.94));
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.rank:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 26px 60px -30px #000, 0 0 40px -22px var(--glow);
}
.rank--featured { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* --- Visuel du grade --- */
.rank__art {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Fond : la banniere du serveur, teintee a la couleur du grade */
.rank__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/banner.png') center / cover no-repeat;
  transform: scale(1.15);
  filter: saturate(0.5) brightness(0.5);
  transition: transform 0.8s var(--ease-out);
}
.rank:hover .rank__art::before { transform: scale(1.25); }
.rank__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 55%, var(--glow) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 10, 8, 0.35), rgba(8, 10, 8, 0.9));
}

/* Medaillon central */
.rank__crest {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), rgba(8, 10, 8, 0.85));
  box-shadow: 0 0 34px -6px var(--glow), inset 0 0 22px -8px var(--accent);
  font-size: 2.3rem;
  line-height: 1;
  animation: crest-pulse 4s ease-in-out infinite;
}
@keyframes crest-pulse {
  0%, 100% { box-shadow: 0 0 30px -8px var(--glow), inset 0 0 20px -10px var(--accent); }
  50%      { box-shadow: 0 0 48px -4px var(--glow), inset 0 0 26px -6px var(--accent); }
}

/* Reflet qui balaye le visuel au survol */
.rank__art .shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-blade);
}
.rank:hover .rank__art .shine { transform: translateX(120%); }

.rank__names {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  margin-top: 0.9rem;
}
.rank__tag {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--accent);
  text-shadow: 0 0 18px var(--glow);
  word-break: break-word;
}
.rank__kind {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.rank__ribbon {
  position: absolute;
  top: 1rem;
  right: -2.6rem;
  z-index: 4;
  padding: 0.28rem 2.8rem;
  transform: rotate(38deg);
  background: var(--accent);
  color: #14100a;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -6px #000;
}

/* --- Corps --- */
.rank__body { padding: 1.4rem 1.4rem 0; flex: 1; }
.rank__name {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0 0 0.2rem;
  text-align: center;
}
.rank__tagline {
  margin: 0 0 1.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.rank__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rank__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.93rem;
  line-height: 1.45;
}
.rank__perks li.is-highlight {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--cream);
}
.rank__perk-icon { flex: none; font-size: 1.05rem; line-height: 1.35; }

/* --- Pied : prix et bouton --- */
.rank__foot { padding: 1.3rem 1.4rem 1.4rem; }
.rank__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.rank__amount {
  font-family: var(--font-title);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 24px var(--glow);
}
.rank__currency { font-family: var(--font-title); font-size: 1.3rem; color: var(--accent); }

.rank__btn {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 16%, rgba(10, 14, 10, 0.9));
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}
.rank__btn:hover {
  background: color-mix(in srgb, var(--accent) 34%, rgba(10, 14, 10, 0.9));
  box-shadow: 0 10px 30px -14px var(--glow);
  transform: translateY(-2px);
  color: #fff;
}
.rank__btn:active { transform: translateY(0); }

/* --- Variante pack d'argent --- */
.rank--money .rank__art { height: 160px; }
.rank--money .rank__crest {
  width: 96px;
  height: 96px;
  font-size: 1.05rem;
  font-family: var(--font-title);
  color: var(--accent);
  flex-direction: column;
  text-align: center;
}
.rank--money .rank__coins { font-size: 1.9rem; line-height: 1; }

.shop-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 14, 10, 0.7);
  margin-bottom: 2.5rem;
}
.shop-tab {
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.shop-tab:hover { color: var(--cream); }
.shop-tab.is-active { background: rgba(74, 107, 42, 0.3); color: var(--cream); }

/* Fenetre de commande */
.checkout {
  width: min(100% - 2rem, 520px);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 40px 90px -40px #000;
}
.checkout::backdrop {
  background: rgba(4, 6, 4, 0.78);
  backdrop-filter: blur(4px);
}
.checkout[open] { animation: dialog-in 0.3s var(--ease-out); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.checkout h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.checkout p { color: var(--muted); font-size: 0.96rem; }
.checkout strong { color: var(--cream); }
.checkout .form__row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ------------------------------ 12. Vote ------------------------------- */
/* Les noms de plateformes sont longs (« Liste-Serveurs-Minecraft.org ») :
   il faut des colonnes larges, sinon tout se casse en trois lignes. */
.votes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

.vote {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), rgba(14, 18, 14, 0.86));
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.vote:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 20px 44px -26px #000, 0 0 30px -20px var(--accent);
}
.vote--disabled { opacity: 0.55; }
.vote--disabled:hover { transform: none; border-color: var(--line); box-shadow: none; }

.vote__num {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, rgba(8, 10, 8, 0.8));
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--accent);
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.vote__info { flex: 1; min-width: 0; }
.vote__name {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.vote__meta { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--muted); }
.vote__go {
  flex: none;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s;
}
.vote__go:hover { background: color-mix(in srgb, var(--accent) 38%, transparent); color: #fff; }
.vote__go[aria-disabled='true'] { pointer-events: none; border-color: var(--line); background: none; color: var(--faint); }

/* ---------------------- 13. Tickets / conversation --------------------- */
.ticket-list { display: grid; gap: 0.75rem; }

.ticket-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 21, 16, 0.78);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-out);
}
.ticket-row:hover { border-color: var(--line-strong); transform: translateX(3px); }
.ticket-row.is-active { border-color: var(--green-bright); background: rgba(74, 107, 42, 0.2); }

.ticket-row__id { font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); flex: none; }
.ticket-row__main { flex: 1; min-width: 0; }
.ticket-row__subject {
  display: block;
  color: var(--cream);
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-row__meta { display: block; font-size: 0.8rem; color: var(--muted); }

.badge {
  flex: none;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--ouvert   { color: #5fb0e0; }
.badge--en_cours { color: var(--gold-soft); }
.badge--resolu   { color: var(--green-bright); }
.badge--accepte  { color: var(--green-bright); }
.badge--refuse   { color: var(--blood-bright); }
.badge--bug      { color: #b48ce0; }
.badge--joueur   { color: #e08a5f; }
.badge--candidature { color: #5fd0b0; }

/* Fil de discussion */
.thread { display: grid; gap: 0.9rem; max-height: 460px; overflow-y: auto; padding-right: 0.4rem; }
.thread::-webkit-scrollbar { width: 8px; }
.thread::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.msg {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(14, 18, 14, 0.7);
}
.msg--staff {
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.msg__avatar { width: 34px; height: 34px; border-radius: 3px; image-rendering: pixelated; flex: none; }
.msg__body { flex: 1; min-width: 0; }
.msg__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.msg__author { font-weight: 600; color: var(--cream); font-size: 0.93rem; }
.msg__staff-tag {
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  background: var(--gold);
  color: #16130a;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.msg__time { font-size: 0.78rem; color: var(--faint); font-family: var(--font-mono); }
.msg__text { margin: 0; font-size: 0.94rem; white-space: pre-wrap; word-break: break-word; }

.ticket-detail__fields {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(10, 14, 10, 0.6);
  font-size: 0.9rem;
}
.ticket-detail__fields div { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ticket-detail__fields dt {
  min-width: 130px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticket-detail__fields dd { margin: 0; flex: 1; min-width: 180px; color: var(--text); word-break: break-word; }

/* -------------------------- 14. Panel staff ---------------------------- */
.panel-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }

.panel-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.panel-nav__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.25rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.panel-nav__btn:hover { background: rgba(74, 107, 42, 0.18); color: var(--cream); }
.panel-nav__btn.is-active { background: rgba(74, 107, 42, 0.3); color: var(--cream); }
.panel-nav__count {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--blood);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-view[hidden] { display: none; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 2rem; }
.stat {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 21, 16, 0.78);
}
.stat__value { font-family: var(--font-title); font-size: 2rem; line-height: 1; color: var(--cream); }
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Grille des joueurs connectes */
.players { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 21, 16, 0.78);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.player:hover { border-color: var(--green-bright); background: rgba(74, 107, 42, 0.18); }
.player.is-selected { border-color: var(--gold); background: rgba(201, 162, 39, 0.14); }
.player img { width: 32px; height: 32px; border-radius: 3px; image-rendering: pixelated; }
.player span { font-size: 0.94rem; color: var(--cream); overflow: hidden; text-overflow: ellipsis; }

/* Boutons d'action du panel */
.actions-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.action-btn {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 21, 16, 0.8);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.action-btn:hover:not(:disabled) { border-color: var(--green-bright); color: var(--cream); background: rgba(74, 107, 42, 0.2); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.action-btn--danger:hover:not(:disabled) { border-color: var(--blood-bright); color: #fff; background: rgba(155, 32, 32, 0.24); }

/* Inventaire lu par le plugin SNKPanel */
.inv-titre {
  margin: 1.3rem 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  max-width: 520px;
}
.slot {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 10, 8, 0.7);
}
.slot--plein {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(74, 107, 42, 0.32), rgba(12, 16, 12, 0.9));
  display: grid;
  place-items: center;
  padding: 2px;
  cursor: help;
}
.slot__nom {
  font-size: 0.52rem;
  line-height: 1.1;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.slot__qte {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

.player span small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.console-out {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #070907;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}

/* ------------------------- 15. Footer / divers ------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 1.4rem 1.2rem 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem; top: 1.1rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(74, 107, 42, 0.2);
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gold-soft);
}
.steps h3 { margin-bottom: 0.3rem; font-size: 1.08rem; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 6, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer h4 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer a { color: var(--muted); font-size: 0.94rem; }
.footer a:hover { color: var(--cream); }
.footer__blurb { margin-top: 1rem; font-size: 0.88rem; color: var(--faint); max-width: 34ch; }

.footer__discord {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(88, 101, 242, 0.5);
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.14);
  color: #b9c0ff !important;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.footer__discord:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: #5865f2;
  color: #fff !important;
  transform: translateY(-2px);
}
.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--faint);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 900px) {
  .wiki-layout, .panel-layout { grid-template-columns: 1fr; }
  .wiki-side, .panel-nav { position: static; }
  .wiki-side__links { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .panel-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .panel-nav__btn { width: auto; margin: 0; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: rgba(8, 11, 8, 0.97);
    border-bottom: 1px solid var(--line-strong);
    backdrop-filter: blur(14px);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 0.8rem 1rem; }
  .account { order: 2; margin-left: auto; }
  .account__label { display: none; }
  .account__menu { right: 1.25rem; }
  .decor__titan { display: none; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 1.75rem); }
  .shop-tabs { display: flex; width: 100%; }
  .shop-tab { flex: 1; padding: 0.6rem 0.5rem; letter-spacing: 0.08em; }
  .offer__amount { font-size: 2rem; }
}

/* --------------------- Preference : mouvement reduit ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .word,
  .hero__tagline,
  .hero__text,
  .hero__actions,
  .serverbar { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  #embers { display: none; }
  .decor__banner::before { animation: none; transform: scale(1.05); }
}
