/* RESET / LAYOUT GLOBAL */
body {
  margin: 0;
  padding: 0;
  background: #060608;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Canvas inutilisé sur cette page */
#particles {
  display: none !important;
}

/* =====================================================
   HEADER
===================================================== */
.top-nav {
  width: 100%;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(6px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-logo {
  width: 48px;
  filter: drop-shadow(0 0 6px #00ffae99);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.players {
  margin-left: 6px;
  font-size: 0.98rem;
  opacity: 0.85;
}

/* NAVIGATION */
.nav-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  position: relative;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: #00ffae;
  background: rgba(0, 255, 174, 0.06);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: #00ffae;
  opacity: 0;
  transform: scaleX(0.7);
  transition: 0.2s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ESPACE JOUEUR */
.account-zone {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.btn-login {
  margin-right: 40px;
  padding: 9px 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #00d17a, #00ffae);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
  font-size: 0.98rem;
  box-shadow: 0 0 10px rgba(0, 255, 174, 0.3);
}

.btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 255, 174, 0.6);
}

/* =====================================================
   ZONE CENTRALE (Logo)
===================================================== */
.center-logo {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0 20px;
  position: relative;
  z-index: 5;
}

.big-logo {
  width: 260px;
  animation: bigPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px #00ffae88);
}

@keyframes bigPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* =====================================================
   DERNIER PATCHNOTE (Accueil)
===================================================== */
.last-patch-box {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.7s ease-out;
}

.last-patch-title {
  font-size: 1.8rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: #00ffae;
  text-shadow: 0 0 8px #00ffae55;
  text-align: center;
}

#last-patch-content {
  font-size: 1.2rem;
  line-height: 1.5;
  white-space: pre-line;
  
  /* correction : centrer tout le texte */
  text-align: center;
  
  /* évite les textes trop larges */
  max-width: 700px;
  margin: 0 auto;
}

/* Images patchnotes */
.patch-images {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* correction : centre les images */
}

.patch-img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   FOOTER
===================================================== */
footer.foot {
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  position: relative;
  z-index: 10;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 900px) {

  .top-nav {
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .account-zone {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }

  .big-logo {
    width: 220px;
  }

  .center-logo {
    padding: 60px 0 20px;
  }

  .last-patch-box {
    margin-bottom: 40px;
    padding: 18px;
  }

  #last-patch-content {
    font-size: 1.05rem;
  }
}
