/* ============================================================
   AscendPVP — styles.css
   Palette : base #0a0a0f · accent #ff2d78 · secondaire #8b2dff
   Typo    : Bebas Neue (display) · Inter (corps) · JetBrains Mono (data)
   ============================================================ */

:root {
  --ink: #0a0a0f;
  --panel: #12121a;
  --panel-2: #171722;
  --pink: #ff2d78;
  --pink-soft: #ff6aa5;
  --violet: #8b2dff;
  --text: #eceaf1;
  --muted: #9a97a8;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 24px rgba(255, 45, 120, 0.35);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: "JetBrains Mono", monospace; }

a { color: inherit; }

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}
.container-narrow { width: min(760px, 92%); }

.section { padding: 96px 0; }

.accent { color: var(--pink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #e0175f);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 45, 120, 0.3);
}
.btn-primary:hover { box-shadow: var(--glow), 0 6px 24px rgba(255, 45, 120, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(255, 45, 120, 0.5);
  box-shadow: 0 0 16px rgba(255, 45, 120, 0.15);
}

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}
.nav-inner {
  width: min(1140px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1;
}
.nav-logo span { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 45% at 30% 20%, rgba(255, 45, 120, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 75% 75%, rgba(139, 45, 255, 0.12), transparent 60%),
    var(--ink);
  animation: heroDrift 14s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 92%);
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.2rem, 13vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 28px 0 20px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  text-shadow: 0 0 40px rgba(255, 45, 120, 0.55);
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
.hero-scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--pink);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Module HUD (signature) ---------- */
.hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(18, 18, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hud-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1.5px solid var(--pink);
}
.hud-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hud-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.hud.online .hud-dot {
  background: #3dff8f;
  box-shadow: 0 0 10px rgba(61, 255, 143, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}
.hud.offline .hud-dot { background: #ff4d4d; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
.hud-label { color: var(--text); }
.hud.online .hud-label { color: #3dff8f; }
.hud.offline .hud-label { color: #ff4d4d; }
.hud-sep { color: var(--border); }
.hud-players { color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.hud-players strong { color: var(--text); }

/* ---------- Stats ---------- */
.stats { padding: 72px 0; border-block: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--text);
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Sections communes ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
  margin-bottom: 14px;
}
.crosshair {
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--pink);
}
.crosshair::before { inset: 6px 0; height: 2px; top: 6px; }
.crosshair::after { inset: 0 6px; width: 2px; left: 6px; }

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 42px;
}

/* ---------- Cartes ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 120, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 45, 120, 0.12);
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Rejoindre ---------- */
.join-steps {
  list-style: none;
  display: grid;
  gap: 18px;
  max-width: 720px;
}
.join-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.join-num {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.4);
  color: var(--pink);
  font-size: 1.1rem;
  font-weight: 600;
}
.join-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.join-step p { color: var(--muted); font-size: 0.94rem; }

.ip-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ip-row code {
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--pink-soft);
}
#copyBtn.copied {
  background: #1f8f5f;
  box-shadow: none;
}

kbd {
  font-family: "JetBrains Mono", monospace;
  background: var(--ink);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85em;
}
code.mono {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.88em;
  color: var(--pink-soft);
}

/* ---------- Staff ---------- */
.staff-grid { grid-template-columns: repeat(3, 1fr); }
.staff-card { text-align: center; }
.staff-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 24px rgba(255, 45, 120, 0.25);
}
.staff-role { color: var(--muted); font-size: 0.8rem; }

/* ---------- Boutique ---------- */
.shop-grid { align-items: stretch; }
.shop-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.shop-featured {
  border-color: rgba(255, 45, 120, 0.55);
  box-shadow: 0 0 28px rgba(255, 45, 120, 0.14);
}
.shop-badge {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
}
.shop-price {
  font-size: 1.9rem;
  color: var(--pink-soft);
  margin: 6px 0 16px;
}
.shop-list {
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  flex-grow: 1;
}
.shop-list li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.shop-list li:last-child { border-bottom: 0; }
.shop-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--pink);
  transform: rotate(45deg);
}
.shop-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { color: var(--pink-soft); }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-item a { color: var(--pink-soft); }

/* ---------- CTA final ---------- */
.final-cta {
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(255, 45, 120, 0.14), transparent 65%);
  border-top: 1px solid var(--border);
}
.final-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 34px;
}
.final-title .accent { text-shadow: 0 0 36px rgba(255, 45, 120, 0.5); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: #08080c;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-logo { font-size: 1.5rem; margin-bottom: 10px; }
.footer-text { color: var(--muted); font-size: 0.88rem; max-width: 380px; }
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--pink-soft); }
.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .cards-grid, .staff-grid, .shop-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    transform: translateY(-100%);
    transition: transform 0.35s var(--ease);
    margin: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-burger { display: flex; margin-left: auto; z-index: 10; }
  .nav-cta { display: none; }
  .hud { font-size: 0.7rem; padding: 9px 14px; flex-wrap: wrap; justify-content: center; }
  .join-step { flex-direction: column; gap: 14px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
