/* =============================================
   PokeSwidou - Main CSS
   Thème : Pixelmon Dark (bleu/vert/pixel art)
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #22c55e;
  --accent-dark: #15803d;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gold: #fbbf24;
  --bg: #0a0e1a;
  --bg2: #0f1629;
  --bg3: #151d35;
  --card: #111827;
  --card2: #1a2540;
  --border: #1e2d50;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Nunito', sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.3);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* =============================================
   SPLASH SCREEN
   ============================================= */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  cursor: default;
}

#splash-screen.hiding {
  animation: splashFadeOut 0.8s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes splashFadeOut {
  to { opacity: 0; pointer-events: none; }
}

.splash-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Couvre tout l'écran sans déformation */
  display: block;
}

/* Overlay léger pour que le texte soit lisible */
.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.05) 70%,
    rgba(0,0,0,0.2) 100%
  );
}

/* Zone cliquable de la pokeball - à positionner sur l'image */
.splash-pokeball-zone {
  position: absolute;
  /* Ces valeurs centrent la zone sur la main droite de Swid (ajustable) */
  /* L'image est 2752x1536 → la pokeball est visible environ au centre-gauche */
  right: 28%;
  top: 38%;
  width: clamp(40px, 10vw, 70px);
  height: clamp(40px, 10vw, 70px);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Debug : passer background à rgba(255,0,0,0.3) pour voir la zone */
  background: transparent;
  transition: transform 0.15s ease;
}

.splash-pokeball-zone:hover {
  transform: scale(1.08);
}

/* Halo d'indication autour de la zone cliquable */
.splash-pokeball-zone::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,1);
  animation: pokeball-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255,255,255,0.4), 0 0 40px rgba(59,130,246,0.4);
}

.splash-pokeball-zone::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  animation: pokeball-pulse 2s ease-in-out infinite 0.4s;
}

@keyframes pokeball-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.15); }
}

/* Texte d'indication en bas */
.splash-hint {
  position: absolute;
  bottom: clamp(24px, 5vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10;
  pointer-events: none;
}

.splash-hint-logo {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 2.2vw, 18px);
  letter-spacing: 3px;
  color: white;
  text-shadow: 0 0 20px rgba(59,130,246,0.9), 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 16px;
}

.splash-hint-logo span {
  color: var(--accent);
}

.splash-hint p {
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(255,255,255,0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: blink-hint 2.5s ease-in-out infinite;
}

@keyframes blink-hint {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =============================================
   PARTICULES BACKGROUND
   ============================================= */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatParticle linear infinite;
}
.particle:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-duration: 22s; animation-delay: -4s; background: var(--accent); }
.particle:nth-child(3) { left: 55%; animation-duration: 15s; animation-delay: -8s; }
.particle:nth-child(4) { left: 75%; animation-duration: 20s; animation-delay: -2s; background: var(--gold); }
.particle:nth-child(5) { left: 90%; animation-duration: 17s; animation-delay: -6s; background: var(--accent); }
@keyframes floatParticle {
  from { transform: translateY(110vh); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.15; }
  to { transform: translateY(-10vh); opacity: 0; }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,14,26,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 38px; height: 38px; }
.logo-text {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: white;
  letter-spacing: 1px;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(59,130,246,0.12);
}
.nav-link.active { color: var(--primary); }
.nav-link i { font-size: 13px; }

.nav-user { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }

.btn-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--primary);
  color: white;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  transition: var(--transition);
  border: none;
}
.btn-connect:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.4); }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}
.user-btn:hover { border-color: var(--primary); background: var(--bg3); }
.user-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 8px;
  display: none;
  box-shadow: var(--shadow);
  z-index: 100;
}
.user-dropdown.open { display: block; animation: dropDown 0.15s ease; }
@keyframes dropDown { from { opacity: 0; transform: translateY(-6px); } }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg3); color: white; }
.dropdown-divider { border-top: 1px solid var(--border); margin: 6px 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dim); border-radius: 2px; transition: var(--transition); }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  padding-top: 68px;
  position: relative;
  z-index: 1;
}

/* =============================================
   SECTIONS GÉNÉRIQUES
   ============================================= */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   HERO HOME
   ============================================= */
.hero {
  min-height: calc(90vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(34,197,94,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-text {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '●'; font-size: 10px; color: var(--accent); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-server-ip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-top: 28px;
}
.hero-server-ip i { color: var(--accent); }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
   TWITCH EMBED
   ============================================= */
.twitch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.twitch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(145,71,255,0.12);
  border-bottom: 1px solid var(--border);
}
.twitch-dot { width: 10px; height: 10px; background: #9147ff; border-radius: 50%; animation: blink 1.5s infinite; }
.twitch-header span { font-weight: 800; font-size: 14px; }
.twitch-header a { color: #9147ff; margin-left: auto; font-size: 12px; font-weight: 700; }
.twitch-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.twitch-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.discord-widget-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.discord-widget-card:hover { border-color: #5865f2; transform: translateY(-2px); }
.discord-icon { font-size: 32px; color: #5865f2; }
.discord-info h4 { font-weight: 800; margin-bottom: 4px; }
.discord-info p { font-size: 13px; color: var(--text-muted); }
.discord-btn {
  margin-left: auto;
  padding: 10px 20px;
  background: #5865f2;
  color: white;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  transition: var(--transition);
  white-space: nowrap;
}
.discord-btn:hover { background: #4752c4; }

/* =============================================
   CARDS / ARTICLES
   ============================================= */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.article-card.pinned { border-color: var(--gold); }
.article-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg3), var(--card2));
  overflow: hidden;
  position: relative;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border);
  background: linear-gradient(135deg, var(--bg3) 0%, var(--card2) 100%);
}
.article-pin-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: #000;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
}
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.article-date, .article-author { font-size: 12px; color: var(--text-muted); }
.article-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.article-excerpt { font-size: 14px; color: var(--text-dim); flex: 1; }
.article-footer { margin-top: 16px; }
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-read:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* =============================================
   BOUTONS GÉNÉRIQUES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(59,130,246,0.4); }
.btn-success { background: var(--accent); color: white; }
.btn-success:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* =============================================
   PAGE HERO GÉNÉRIQUE
   ============================================= */
.page-hero {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--text-dim); }

/* =============================================
   FAQ
   ============================================= */
.faq-categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.faq-cat-btn {
  padding: 8px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}
.faq-cat-btn.active, .faq-cat-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.faq-group { margin-bottom: 48px; }
.faq-group-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  gap: 16px;
  cursor: pointer;
}
.faq-question i { color: var(--primary); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-question.open i { transform: rotate(45deg); }
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-answer.open { padding: 0 22px 20px; max-height: 800px; }

/* =============================================
   SUPPORT / TICKETS
   ============================================= */
.support-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.support-sidebar .info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.info-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.info-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.ticket-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; }
.form-label span { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }

/* =============================================
   BOUTIQUE
   ============================================= */
.shop-categories-nav { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.shop-cat-tab {
  padding: 10px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dim);
  transition: var(--transition);
  cursor: pointer;
}
.shop-cat-tab.active, .shop-cat-tab:hover { background: var(--primary); border-color: var(--primary); color: white; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.shop-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.shop-card:hover { transform: translateY(-6px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.shop-card.popular { border-color: var(--gold); }
.shop-popular-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 50px;
  font-family: var(--font-pixel);
  letter-spacing: 1px;
}
.shop-card-header {
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
}
.shop-card-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  border: 3px solid currentColor;
  opacity: 0.9;
}
.shop-card-name { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.shop-card-price {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--accent);
  margin-top: 12px;
}
.shop-card-body { padding: 0 24px 24px; flex: 1; }
.shop-card-desc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.shop-features { list-style: none; }
.shop-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-features li:last-child { border-bottom: none; }
.shop-features li i { color: var(--accent); font-size: 12px; }
.shop-card-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.shop-card-footer .btn { width: 100%; }

/* =============================================
   TÉLÉCHARGEMENT
   ============================================= */
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  transition: var(--transition);
  margin-bottom: 20px;
}
.download-card:hover { border-color: var(--primary); }
.download-icon { font-size: 52px; }
.download-info h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.download-info p { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.download-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.download-badge {
  padding: 4px 12px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.download-requirements { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-top: 32px; }
.download-requirements h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.req-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.req-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.req-item i { color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 11px;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.social-btn.twitch { color: #9147ff; }
.social-btn.twitch:hover { background: #9147ff; color: white; border-color: #9147ff; }
.social-btn.discord { color: #5865f2; }
.social-btn.discord:hover { background: #5865f2; color: white; border-color: #5865f2; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 12px; font-family: var(--font-pixel); color: var(--text-muted); letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.server-info-footer { display: flex; flex-direction: column; gap: 10px; }
.server-ip, .server-ver { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.server-ip i, .server-ver i { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.footer-disclaimer { font-size: 11px !important; }

/* =============================================
   MAINTENANCE BANNER
   ============================================= */
.maintenance-banner {
  background: var(--warning);
  color: #000;
  text-align: center;
  padding: 10px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 999;
}

/* =============================================
   PAGE ERREUR
   ============================================= */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-family: var(--font-pixel); font-size: clamp(60px, 12vw, 100px); color: var(--primary); opacity: 0.7; line-height: 1; margin-bottom: 20px; }
.error-page h2 { font-size: 24px; margin-bottom: 12px; }
.error-page p { color: var(--text-dim); margin-bottom: 28px; }

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.admin-sidebar-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 2px;
  padding: 0 20px;
  margin-bottom: 16px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 700;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: white;
  background: rgba(59,130,246,0.08);
  border-left-color: var(--primary);
}
.admin-nav-link i { width: 18px; text-align: center; font-size: 14px; }
.admin-main { padding: 32px; background: var(--bg); overflow-x: hidden; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 26px; font-weight: 900; }
.admin-header p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); }
.stat-icon { font-size: 22px; margin-bottom: 12px; }
.stat-value { font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table tr:last-child td { border-bottom: none; }

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-card-header h2 { font-size: 16px; font-weight: 800; }
.admin-card-body { padding: 24px; }

/* Badges statuts */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}
.badge-open { background: rgba(34,197,94,0.15); color: var(--accent); }
.badge-in_progress { background: rgba(59,130,246,0.15); color: var(--primary); }
.badge-closed { background: rgba(100,116,139,0.2); color: var(--text-muted); }
.badge-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-paid { background: rgba(34,197,94,0.15); color: var(--accent); }
.badge-low { background: rgba(34,197,94,0.1); color: var(--accent); }
.badge-normal { background: rgba(59,130,246,0.1); color: var(--primary); }
.badge-high { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-urgent { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-user { background: rgba(100,116,139,0.2); color: var(--text-muted); }
.badge-moderator { background: rgba(34,197,94,0.1); color: var(--accent); }
.badge-admin { background: rgba(59,130,246,0.1); color: var(--primary); }
.badge-superadmin { background: rgba(251,191,36,0.1); color: var(--gold); }

/* =============================================
   TICKET DETAIL
   ============================================= */
.ticket-thread { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.ticket-message {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.ticket-message.staff { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.04); }
.ticket-msg-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ticket-msg-author { font-weight: 800; font-size: 14px; }
.ticket-msg-date { font-size: 12px; color: var(--text-muted); }
.staff-tag { padding: 2px 8px; background: var(--primary); border-radius: 4px; font-size: 10px; font-weight: 700; color: white; }
.ticket-msg-body { font-size: 14px; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; }

/* =============================================
   EDITOR (simplifié)
   ============================================= */
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.editor-btn {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}
.editor-btn:hover { background: var(--bg3); color: white; }
.editor-area {
  width: 100%;
  min-height: 240px;
  padding: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
  outline: none;
  line-height: 1.7;
  transition: var(--transition);
}
.editor-area:focus { border-color: var(--primary); }

/* =============================================
   ALERTS
   ============================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--accent); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--primary); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .support-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg2); padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Splash screen mobile : recadrer sur la zone importante */
  .splash-bg { object-position: 60% center; }
  .splash-pokeball-zone {
    right: 20%;
    top: 40%;
    width: clamp(60px, 15vw, 90px);
    height: clamp(60px, 15vw, 90px);
  }
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .section { padding: 48px 0; }
  .ticket-form-card { padding: 20px; }
  .footer-links { grid-template-columns: 1fr; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =============================================
   SELECTION
   ============================================= */
::selection { background: rgba(59,130,246,0.3); color: white; }
