:root {
  --primary:#ff0080;
  --dark:#0a0e27;
  --card:#151932;
  --text:#fff;
  --muted:#8888aa;
}

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

body{
  font-family:'Inter',sans-serif;
  background:var(--dark);
  color:var(--text);
  line-height:1.6
}

a{color:inherit;text-decoration:none;transition:all .3s}

.container{max-width:1400px;margin:0 auto;padding:0 2rem}

/* ================= HEADER ================= */
.site-header{
  position:sticky;
  top:0;
  background:rgba(10,14,39,.95);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,.1);
  z-index:1000
}

.header-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
  gap:2rem
}

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

.logo-img{
  width:50px;
  height:50px;
  filter:drop-shadow(0 0 10px var(--primary))
}

.logo-text{display:flex;flex-direction:column}

.logo-name{
  font-family:'Rajdhani',sans-serif;
  font-size:1.5rem;
  font-weight:800;
  background:linear-gradient(135deg,var(--primary),#00ffff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent
}

.logo-tag{
  font-size:.75rem;
  color:var(--muted);
  text-transform:uppercase
}

.nav-desktop{display:flex;gap:.5rem}

.nav-desktop a{
  padding:.75rem 1.25rem;
  border-radius:8px;
  color:var(--muted);
  transition:all .3s;
  display:flex;
  align-items:center;
  gap:.5rem
}

.nav-desktop a:hover,
.nav-desktop a.active{
  color:var(--primary);
  background:rgba(255,0,128,.1)
}

.nav-cta{
  background:linear-gradient(135deg,var(--primary),#cc0066)!important;
  color:#fff!important
}

.header-actions{display:flex;align-items:center;gap:1rem}

/* ================= MOBILE MENU ================= */
.btn-menu{
  display:none;
  flex-direction:column;
  gap:5px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
}

.btn-menu span{
  width:25px;
  height:3px;
  background:var(--primary);
  border-radius:3px;
  transition:all .3s;
}

.btn-menu.active span:nth-child(1){
  transform:rotate(45deg) translate(8px,8px);
}
.btn-menu.active span:nth-child(2){
  opacity:0;
}
.btn-menu.active span:nth-child(3){
  transform:rotate(-45deg) translate(7px,-7px);
}

/* Menu mobile : TOUJOURS caché en desktop */
.nav-mobile{
  display:none !important;
  flex-direction:column;
  background:var(--card);
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.1);
  max-height:0;
  opacity:0;
  transition:max-height .3s ease, opacity .3s ease;
}

.nav-mobile.active{
  display:flex !important;
  max-height:500px;
  opacity:1;
  padding:1rem 0;
}

.nav-mobile a{
  padding:1rem 2rem;
  color:var(--muted);
  transition:all .3s;
  display:flex;
  align-items:center;
  gap:.5rem;
}

.nav-mobile a:hover{
  color:var(--primary);
  background:rgba(255,0,128,.1);
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.75rem 1.5rem;
  border-radius:8px;
  border:none;
  cursor:pointer;
  font-weight:600;
  transition:all .3s
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),#cc0066);
  color:#fff
}

.btn-discord{background:#5865F2;color:#fff}

.btn-copy{background:var(--dark);border:1px solid var(--primary)}

/* ================= HERO ================= */
main{min-height:calc(100vh - 200px);padding:2rem 0}

.hero{padding:6rem 0;text-align:center}

.hero h1{
  font-size:clamp(2.5rem,5vw,4rem);
  background:linear-gradient(135deg,var(--primary),#00ffff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:1rem;
  font-family:'Rajdhani',sans-serif;
  font-weight:800
}

.hero p{
  font-size:1.25rem;
  color:var(--muted);
  margin-bottom:2rem
}

.hero-actions{
  display:flex;
  gap:1rem;
  justify-content:center;
  flex-wrap:wrap
}

/* ================= CARDS / GRID ================= */
.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  padding:2rem;
  transition:all .3s
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 30px rgba(0,0,0,.5)
}

h2,h3{
  font-family:'Rajdhani',sans-serif;
  font-weight:700;
  margin-bottom:1rem
}

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

.section{padding:4rem 0}

/* ================= FOOTER ================= */
.site-footer{
  background:var(--card);
  border-top:1px solid rgba(255,255,255,.1);
  padding:3rem 0 1rem;
  margin-top:4rem
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem;
  margin-bottom:2rem
}

.footer-col h3{color:var(--primary);margin-bottom:1rem}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:.5rem}
.footer-col a:hover{color:var(--primary)}

.social{
  display:flex;
  gap:1rem;
  margin-top:1rem
}

.social a{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark);
  border-radius:8px;
  transition:all .3s
}

.social a:hover{
  background:var(--primary);
  transform:translateY(-3px)
}

.footer-bottom{
  text-align:center;
  padding-top:2rem;
  border-top:1px solid rgba(255,255,255,.1);
  color:var(--muted)
}

/* ================= RESPONSIVE ================= */
@media(max-width:1024px){
  .nav-desktop{display:none !important}
  .btn-menu{display:flex}
}

/* =====================================================
   PATCHNOTES — PRO / STABLE
   ===================================================== */
.patchnotes-content{
  font-size:15px;
  color:rgba(255,255,255,.92);
}

.patch-meta{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
}

.patch-author{font-weight:700;color:#fff;}
.patch-date{color:rgba(255,255,255,.6);}

.patch-body{line-height:1.85;}
.patch-body p{margin:0 0 14px;}
.patch-body strong{color:#fff;font-weight:800;}

.patch-body ul{
  margin:12px 0 18px 20px;
  padding:0;
}
.patch-body li{margin:8px 0;padding-left:4px;}

.patch-body code{
  padding:3px 8px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:14px;
}

.patch-body hr{
  border:none;
  height:1px;
  background:rgba(255,255,255,.08);
  margin:18px 0;
}

/* Bouton sous la preview */
.update-actions{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

/* Fallback si libs pas chargées */
.patch-fallback{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.8;
  font-size:14px;
  color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:14px;
}
