.logout-float {
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  background: #181830;
  color: #e53935;
  border: 2.5px solid #e53935;
  border-radius: 999px;
  padding: 0.7rem 2.2rem;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px #e5393530, 0 2px 8px #0002;
  z-index: 999;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s, box-shadow 0.18s;
  animation: fadeIn 0.18s;
  outline: none;
  letter-spacing: 1.2px;
}
.logout-float:hover {
  background: #e53935;
  color: #fff;
  border-color: #fff;
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 0 0 8px #e53935cc, 0 2px 8px #0002;
}
#logoutBtn {
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.6rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px #0003;
}
#logoutBtn:hover {
  background: #b71c1c;
  transform: scale(1.08);
  box-shadow: 0 4px 16px #e53935;
}
.profile-pseudo-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#profilePseudo {
  color: #fff;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 8px #23234d;
  cursor: pointer;
  outline: none;
  border-radius: 6px;
  padding: 2px 8px;
  transition: background 0.2s;
}
#profilePseudo:focus, #profilePseudo:hover {
  background: #23234d;
}
.logout-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #181830;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0008;
  padding: 0.7rem 1.2rem 0.7rem 1.2rem;
  z-index: 10;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
#logoutBtn {
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.6rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: background 0.2s;
  box-shadow: 0 1px 4px #0003;
}
#logoutBtn:hover {
  background: #b71c1c;
}
.profile-container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: 2rem;
  background: rgba(20,20,40,0.85);
  border-radius: 999px;
  padding: 0.5rem 1.5rem 0.5rem 0.8rem;
  box-shadow: 0 2px 8px #0002;
  transition: box-shadow 0.2s;
}
.profile-container:hover {
  box-shadow: 0 4px 16px #4e54c8;
}
.profile-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #4e54c8;
  background: #23234d;
  transition: box-shadow 0.2s;
}
.profile-avatar:hover img {
  box-shadow: 0 0 0 3px #fff2;
}
#editAvatarBtn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: transparent;
  color: #aaa;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: none;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}
.profile-avatar:hover #editAvatarBtn {
  display: flex;
}
#editAvatarBtn:hover {
  color: #4e54c8;
  background: #fff;
}
#profilePseudo {
  color: #fff;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 8px #23234d;
}
.about-welcome-img {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.welcome-img {
  max-width: 350px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 32px #000a, 0 0 24px #4e54c8;
  margin: 0 auto;
  display: block;
}
.account-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 0;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.account-btn.white#topContact {
  padding: 0.55rem 1rem;
  font-size: 1rem;
}
.nav-contact {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.98rem;
  height: 36px;
  line-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.24);
  transition: background 0.18s, transform 0.12s, border-color 0.12s;
  text-decoration: none;
}
.nav-contact:hover {
  background: rgba(78,84,200,0.08);
  transform: translateY(-2px);
  border-color: rgba(78,84,200,0.45);
}
.account-btn.white {
  background: #fff;
  color: #4e54c8;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.7rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.account-btn.white:hover {
  background: #4e54c8;
  color: #fff;
  transform: scale(1.05);
}
.account-btn {
  background: #4e54c8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 2rem;
  box-shadow: 0 2px 8px #0004;
  transition: background 0.2s, transform 0.2s;
}
.account-btn:hover {
  background: #23234d;
  transform: scale(1.05);
}

.account-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(10,10,40,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.account-modal-content {
  background: #181830;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 4px 32px #000a;
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  text-align: center;
}
.account-modal-content h2 {
  color: #4e54c8;
  margin-bottom: 1.5rem;
}
.account-modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}
.account-modal-content .close:hover {
  color: #4e54c8;
}

/* Correction carrousel pour affichage complet */


.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.carousel-item {
  min-width: 30%;
  max-width: 220px;
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #23234d;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0006;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
@media (max-width: 900px) {
  .carousel-item {
    min-width: 45%;
    max-width: 180px;
    flex: 0 0 45%;
    padding: 0.7rem 0.5rem;
  }
  .carousel-item img {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 600px) {
  .carousel-item {
    min-width: 90vw;
    max-width: 98vw;
    flex: 0 0 90vw;
  }
}
.carousel-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px #4e54c8);
}

@media (max-width: 900px) {
  .carousel-item {
    min-width: 120px;
    max-width: 140px;
    flex: 0 0 120px;
    padding: 0.7rem 0.5rem;
  }
  .carousel-item img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 900px) {
  .carousel-item {
    min-width: 120px;
    max-width: 140px;
    padding: 0.7rem 0.5rem;
  }
  .carousel-item img {
    width: 60px;
    height: 60px;
  }
}
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0a0a23 url('https://www.transparenttextures.com/patterns/stardust.png');
  color: #f0f0f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Top hero big rounded rectangle */
.top-hero {
  margin: 2rem auto;
  max-width: 1100px;
  background: linear-gradient(180deg, rgba(24,24,48,0.95), rgba(20,20,40,0.9));
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6), 0 0 40px rgba(78,84,200,0.08) inset;
}
.top-hero-inner {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}
.top-left, .top-right {
  flex: 1 1 50%;
  padding: 1rem;
}
.top-left h2, .top-right h2 {
  margin: 0 0 0.8rem 0;
  color: #e8e8ff;
}
.social-links.big {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-links.big a {
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.big-carousel { padding: 0.5rem 0; }
.big-carousel .carousel-track {
  max-width: none;
  overflow: hidden;
  display: flex;
}
.big-carousel .carousel-item {
  min-width: 140px;
  max-width: 180px;
  margin-right: 12px;
}

/* Side tabs for FAQ / Contact */
.side-tabs {
  position: fixed;
  right: 18px;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.side-tabs a {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform 0.14s, background 0.18s;
}
.side-tabs a:hover { transform: translateX(-6px); background: rgba(78,84,200,0.95); }

/* Panneau latéral (slide-in) pour afficher FAQ / Contact */
.side-panel {
  position: fixed;
  right: 18px;
  top: 12%;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 76vh;
  background: linear-gradient(180deg, rgba(24,24,40,0.98), rgba(16,16,32,0.98));
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateX(120%);
  transition: transform 0.36s cubic-bezier(.22,.9,.3,1);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.side-panel.open {
  transform: translateX(0);
}
.side-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.side-panel .panel-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}
.side-panel .close-panel {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.side-panel .panel-body {
  padding: 1rem;
  overflow-y: auto;
  color: #e6e6ff;
  flex: 1 1 auto;
}
.side-panel .panel-body details { background: transparent; }

/* Hide FAQ/Contact in the main flow (we show them via the side-panel) */
.hidden-main { display: none; }

/* Styles spécifiques au formulaire Contact dans le panneau latéral */
.side-panel .panel-body form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-panel .panel-body input,
.side-panel .panel-body textarea {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(78,84,200,0.22);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 6px 20px rgba(78,84,200,0.06);
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s, transform 0.12s;
}
.side-panel .panel-body input::placeholder,
.side-panel .panel-body textarea::placeholder { color: #cfcfff; opacity: 0.9; }
.side-panel .panel-body input:focus,
.side-panel .panel-body textarea:focus {
  border-color: #8f93ff;
  box-shadow: 0 12px 40px rgba(78,84,200,0.18);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.side-panel .panel-body textarea { min-height: 140px; resize: vertical; }
.side-panel .panel-body button {
  background: linear-gradient(90deg, #6b6cff, #4e54c8);
  color: #fff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(78,84,200,0.24);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.side-panel .panel-body button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.side-panel .panel-body #contactMessage { color: #9fb0ff; font-weight: 700; margin-top: 0.6rem; }

/* Fixed left news frame */
.news-frame {
  position: fixed !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: auto; /* auto width so the box fits the text */
  max-width: calc(50vw - 36px);
  min-width: 180px;
  background: linear-gradient(180deg, rgba(18,18,36,0.98), rgba(12,12,28,0.98));
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  overflow: visible;
  z-index: 9999 !important;
  display: inline-flex;
  flex-direction: column;
  padding: 0.45rem 0.8rem;
  height: auto;
  max-height: 70vh;
}
.news-frame h2 { margin: 0 0 0.35rem 0; color: #fff; font-size: 0.98rem; font-weight: 700; }
.news-frame .news-list { list-style: none; margin: 0; padding: 0; overflow: visible; }
.news-frame .news-list li { padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); color: #cfd8ff; font-size: 0.98rem; }
.news-frame .news-list .date { color: #fff; font-weight: 700; margin-right: 6px; }
@media (max-width: 900px) { .news-frame { display: none; } }

/* ensure smooth scroll */
html { scroll-behavior: smooth; }

@media (max-width: 900px) {
  .top-hero-inner { flex-direction: column; }
  .side-tabs { right: 8px; top: 50%; }
}

#starfield {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main, nav, footer {
  position: relative;
  z-index: 1;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: rgba(10,10,40,0.95);
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px #000a;
  border-bottom: 2px solid #4e54c8;
}
.logo {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #4e54c8;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #4e54c8;
}
.hero {
  background: linear-gradient(120deg, #23234d 60%, #4e54c8 100%);
  text-align: center;
  padding: 5rem 2rem 3rem 2rem;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 32px #000a;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.about {
  margin: 3rem auto;
  max-width: 700px;
  background: rgba(30,30,60,0.92);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 16px #0008;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.about .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 0 24px #4e54c8;
  border: 3px solid #fff2;
  background: #23234d;
}
.about p {
  font-size: 1.1rem;
  color: #e0e0ff;
  max-width: 400px;
}

.news {
  margin: 3rem auto;
  max-width: 600px;
  background: rgba(20,20,40,0.90);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 16px #0006;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.news-list li {
  margin-bottom: 0.7rem;
  color: #b3b3ff;
  font-size: 1.05rem;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
  position: relative;
}
.carousel-btn {
  background: #23234d;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0004;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.carousel-btn:hover {
  background: #4e54c8;
  transform: scale(1.1);
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  overflow: hidden;
  min-width: 240px;
  max-width: 600px;
}
.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #23234d;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0006;
  padding: 1rem 1.5rem;
  min-width: 140px;
  max-width: 160px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.carousel-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px #4e54c8);
}
.carousel-item span {
  font-size: 1.1rem;
  margin-top: 0.2rem;
}
.carousel-item:hover {
  background: #4e54c8;
  transform: scale(1.08);
}

.faq {
  margin: 3rem auto;
  max-width: 600px;
  background: rgba(20,20,40,0.90);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 16px #0006;
}
.faq details {
  margin-bottom: 1rem;
  background: #23234d;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px #0003;
}
.faq summary {
  font-weight: bold;
  color: #4e54c8;
  outline: none;
}
.faq p {
  margin: 0.5rem 0 0 0;
  color: #b3b3ff;
}

.contact {
  margin: 3rem auto;
  max-width: 600px;
  background: rgba(20,20,40,0.90);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 16px #0006;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.contact input, .contact textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #181830;
  color: #fff;
  resize: none;
}
.contact button {
  background: #4e54c8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.contact button:hover {
  background: #23234d;
}
#contactMessage {
  margin-top: 1rem;
  color: #4e54c8;
  font-weight: bold;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 0 12px #4e54c8;
}
.hero p {
  font-size: 1.3rem;
  color: #b3b3ff;
}
.links, .games, .account {
  margin: 3rem auto;
  max-width: 600px;
  background: rgba(20,20,40,0.85);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 16px #0006;
}
.social-links, .game-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.social-links a, .game-links a {
  background: #23234d;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px #0004;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-links a.discord { background: #5865F2; }
.social-links a.tiktok { background: #010101; color: #fff; }
.social-links a.youtube { background: #FF0000; }
.social-links a:hover, .game-links a:hover {
  background: #4e54c8;
  color: #fff;
  transform: scale(1.08);
}
.account form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.account input {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}
.account button {
  background: #4e54c8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.account button:hover {
  background: #23234d;
}
#accountMessage {
  margin-top: 1rem;
  color: #4e54c8;
  font-weight: bold;
}
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #b3b3ff;
  background: transparent;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .carousel-track {
    min-width: 180px;
    max-width: 350px;
  }
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .hero {
    padding: 3rem 1rem 2rem 1rem;
  }
  .links, .games, .account, .about, .news, .faq, .contact {
    padding: 1rem;
    max-width: 98vw;
  }
  .carousel-track {
    min-width: 120px;
    max-width: 200px;
  }
  .carousel-item {
    min-width: 100px;
    max-width: 120px;
    padding: 0.5rem 0.7rem;
  }
  .about .avatar {
    width: 80px;
    height: 80px;
  }
}
