@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;700&family=Orbitron:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500&display=swap');

:root {
  --bg-dark: #0b0b14;
  --bg-light: #141422;
  --text-main: #eae7ff;
  --text-soft: #a1a1bb;
  --violet: #9f4bff;
  --rose: #d97fff;
  --blue: #4b8bff;
  --glow: 0 0 10px rgba(159, 75, 255, 0.7);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Oxanium', sans-serif;
  background: radial-gradient(circle at 20% 20%, #0b0b14, #000);
  color: var(--text-main);
  overflow-x: hidden;
}

/* HEADER FIXE */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 70px;
  background: rgba(20, 20, 34, 0.8);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Compense la hauteur du header pour le contenu */
main, section, #hero {
  margin-top: 80px;
}

/* Logo */
.logo {
  width: 150px;
  filter: drop-shadow(0 0 8px var(--violet));
}

/* Menu central */
.menu-center {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
}

.menu-center > li {
  position: relative;
}

.menu-center > li > a {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid rgba(159,75,255,0.7);
  border-radius: 8px;
  color: #eae7ff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  transition: all 0.3s;
}

.menu-center > li > a:hover,
.menu-center > li > a.active {
  background-color: rgba(159,75,255,0.7);
  color: #000;
}

/* Sous-menu - s'applique à tous les ul dans menu-item */
.menu-item > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20,20,34,0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 10px 0;
  min-width: 160px;
  flex-direction: column;
  z-index: 1002;
  list-style: none;
  margin: 0;
  border: 1px solid rgba(159,75,255,0.3);
}

.menu-item > ul li {
  margin: 0;
}

.menu-item > ul li a {
  padding: 8px 20px;
  display: block;
  color: #eae7ff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s;
}

.menu-item > ul li a:hover {
  background: rgba(159, 75, 255, 0.4);
  color: #000;
  border-radius: 10px;
  margin: 0 8px;
}

/* Affichage au survol */
.menu-item:hover > ul,
.menu-item > ul:hover {
  display: flex;
}

/* Nav à droite et langue */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
  margin-right: 100px;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
  color: var(--rose);
  text-shadow: var(--glow);
}

.custom-select {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-select select {
  background: rgba(20, 20, 34, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 4px 8px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
}

.lang-select select option {
  background: var(--bg-dark);
  color: var(--text-main);
}

.select-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 34, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 6px 30px 6px 10px;
  font-family: 'Orbitron', sans-serif;
  position: relative;
}

.select-selected:after {
  content: "▼";
  position: absolute;
  right: 10px;
  font-size: 10px;
}

.select-items {
  position: absolute;
  background: rgba(20, 20, 34, 0.95);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  margin-top: 5px;
}

.select-items div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text-main);
  font-family: 'Orbitron', sans-serif;
  transition: background 0.2s;
}

.select-items div:hover {
  background: rgba(159, 75, 255, 0.3);
}

.select-hide {
  display: none;
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  margin-left: 5px;
}

/* Section HERO avec image et triangle */
#hero {
  position: relative;
  text-align: center;
  padding: 150px 20px 100px 20px;
  color: var(--text-main);
  background: url('../image/hero.png') no-repeat center center;
  background-size: cover;
  overflow: visible;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

#hero h1,
#hero p,
#hero .cta {
  position: relative;
  z-index: 2;
}

/* Triangle décoratif sous le hero avec angle à 35° */
#hero::after {
  content: "";
  position: absolute;
  bottom: -35vw;
  left: 0;
  width: 0;
  height: 0;
  border-top: 35vw solid rgba(20,20,34,0.8);
  border-right: 100vw solid transparent;
  z-index: 0;
  pointer-events: none;
}

#hero h1 {
  font-size: 4rem;
  color: var(--violet);
  letter-spacing: 4px;
  text-shadow: var(--glow);
  font-family: 'Orbitron', sans-serif;
}

#hero p {
  color: var(--text-soft);
  max-width: 700px;
  margin: 20px auto;
}

/* CTA */
.cta {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 15px rgba(159, 75, 255, 0.4);
}

.cta:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(75, 139, 255, 0.8);
}

/* SECTIONS */
section {
  padding: 80px 50px;
  text-align: center;
  position: relative;
  z-index: 5;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--violet);
}

#about {
  overflow: visible; /* sinon l'image est masquée */
  transform: translateX(10%); /* ajuste la valeur selon ton besoin */
}

/* ABOUT BLOCK */
.about-block {
  position: relative; /* nécessaire pour que l'image se place par rapport au bloc */
  background: rgba(20, 20, 34, 0.85);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 700px;
  margin: 50px auto;
  color: var(--text-main);
  font-family: 'Oxanium', sans-serif;
  box-shadow: 0 0 15px rgba(159, 75, 255, 0.3);
  
}

.about-title {
  position: absolute;
  top: 5px; /* centre vertical sur sa propre ligne */
  left: 15px; /* décalage à gauche pour dépasser le bloc */
  transform: translateY(-50%) rotate(-3deg); /* centre vertical + léger tilt pour effet stylé */
  background: var(--violet);
  color: #000;
  padding: 8px 16px;
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(159, 75, 255, 0.5);
  z-index: 10;
}

.about-block h2 {
  color: var(--violet);
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-shadow: var(--glow);
}

.about-block p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 1.1rem;
  margin-top: 20px; /* espace avec le titre qui dépasse */
}

.decorative {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-90%, -30%) rotate(-10deg); /* <- ici l'angle */
  width: 1450px;
  z-index: -1;
  pointer-events: none;
}

/* Section "Anarchist" */

#anarchist {
  width: 100%;
  background: none; /* plus de fond */
  box-shadow: none; /* plus d’effet lumineux */
  padding: 80px 20px;
  text-align: center;
  margin: 50px 0;
}

#anarchist .anarchist-block {
  position: relative;
  background: rgba(20, 20, 34, 0.85);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 700px;
  margin: 80px auto 0 10%; /* top 80px, left 10% */
  color: var(--text-main);
  font-family: 'Oxanium', sans-serif;
  box-shadow: 0 0 15px rgba(159, 75, 255, 0.3);
}



.anarchist-block {
  position: relative;
  background: rgba(20, 20, 34, 0.85);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-main);
  font-family: 'Oxanium', sans-serif;
  box-shadow: 0 0 15px rgba(159, 75, 255, 0.3);
}

.anarchist-title {
  position: absolute;
  top: 5px;
  left: 15px;
  transform: translateY(-50%) rotate(-3deg);
  background: var(--violet);
  color: #000;
  padding: 8px 16px;
  font-size: 1.7rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(159, 75, 255, 0.5);
  z-index: 10;
}

.anarchist-block p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Join Community Section */

#join-community {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  margin: 50px 0;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(159, 75, 255, 0.4);
}

#join-community .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#join-community .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 34, 0.85);
  z-index: 1;
}

#join-community .join-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 500px;
}

.join-wrapper h2 {
  font-size: 3rem;
  color: var(--violet);
  font-family: 'Orbitron', sans-serif;
  text-shadow: var(--glow);
  text-align: center;
  padding-right: 0%;
  margin-bottom: auto; /* pousse le reste vers le bas */
}

.bottom-row {
  display: flex;
  justify-content: space-between; /* texte à gauche, bouton à droite */
  align-items: flex-end;          /* tout en bas du cadre */
  height: 100%;
}

.text-block p {
  text-align: left;      /* texte collé à gauche */
  max-width: 700px;
  margin: 0 0 10px 0;
}

.button-wrapper {
  text-align: right;
}

#join-community .join-button {
  padding: 15px 40px;
  font-size: 18px;
  font-family: 'Orbitron', sans-serif;
  color: var(--violet);
  text-decoration: none;
  border: 2px solid var(--violet);
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 10px var(--violet), 0 0 20px var(--violet);
  transition: all 0.3s ease;
}

#join-community .join-button:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(159,75,255,0.8), rgba(180,120,255,0.8));
  box-shadow: 0 0 15px var(--violet), 0 0 30px var(--violet);
  transform: scale(1.05);
}




/* Section "Restez Connectés" */

#stay-connected {
  width: 100%; /* prend toute la largeur */
  background: rgba(20, 20, 34, 0.85);
  backdrop-filter: blur(12px);
  padding: 80px 20px;
  box-shadow: 0 0 25px rgba(159, 75, 255, 0.4);
  text-align: center;
  margin: 50px 0;
}

#stay-connected .stay-wrapper {
  max-width: 1200px; /* centre le contenu et limite la largeur */
  margin: 0 auto;
}

#stay-connected h2 {
  font-size: 3rem;
  color: var(--violet);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 30px;
  text-shadow: var(--glow);
}

#stay-connected .social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

#stay-connected .social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(159, 75, 255, 0.3);
  color: #fff;
  font-size: 1.8rem;
  transition: all 0.3s;
  text-decoration: none; 
}

#stay-connected .social-icons a:hover {
  background: rgba(159, 75, 255, 0.6);
  transform: scale(1.2);
  box-shadow: 0 0 10px #b06aff, 0 0 20px #b06aff, 0 0 35px #b06aff;
}


/* Section "Nos Jeux" */

#other-games {
  overflow: visible;
  padding: 60px 20px;
}

.games-block {
  position: relative;
  background: rgba(20, 20, 34, 0.85);
  padding: 40px 50px;
  border-radius: 12px;
  max-width: 700px;
  margin: 50px auto;
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(159, 75, 255, 0.3);
  font-family: 'Oxanium', sans-serif;
}

.games-title {
  position: absolute;
  top: 5px;
  left: 20px;
  transform: translateY(-100%) rotate(-3deg);
  background: var(--violet);
  color: #000;
  padding: 8px 16px;
  font-size: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(159, 75, 255, 0.5);
  z-index: 10;
}

.games-block p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 1.1rem;
  margin-top: 20px;
}

.games-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.games-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
}

.games-wrapper::-webkit-scrollbar {
  display: none;
}

.game-item {
  min-width: 200px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-item img {
  width: 150px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(159,75,255,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(75,139,255,0.5);
}

.arrow {
  background: rgba(159,75,255,0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 15px;       /* un peu plus pour arrondir correctement */
  cursor: pointer;
  border-radius: 50%;  /* cercle parfait */
  transition: transform 0.3s, background 0.3s;
  z-index: 5;
  width: 50px;         /* largeur fixe */
  height: 50px;        /* hauteur fixe */
  display: flex;       /* centre le symbole */
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  transform: scale(1.2);
  background: rgba(159,75,255,0.6);
}

.arrow.left {
  margin-right: 10px;
}

.arrow.right {
  margin-left: 10px;
}

/* Section "Rejoins Anarkadia" */
#join {
  background: rgba(20, 20, 34, 0.8);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 100px 50px;
  text-align: center;
  color: #eae7ff;
}

#join h2 {
  color: var(--violet);
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: var(--glow);
}

#join p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--text-soft);
}

#join .cta.discord {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(159, 75, 255, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

#join .cta.discord:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(75, 139, 255, 0.8);
}

/* FOOTER */
footer {
  background: rgba(159, 75, 255, 0.15);
  padding: 25px 0;
  text-align: center;
  border-top: 2px solid rgba(159, 75, 255, 0.4);
  color: #d8caff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-center {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  transform: translateX(-80px);
}

.social-footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Roboto Condensed', sans-serif;
}

.social-footer p {
  max-width: 600px;
  margin: 0 auto;
  word-wrap: break-word;
  line-height: 1.5;
}

.social-footer .social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #b06aff;
  font-size: 22px;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 transparent;
  text-decoration: none;
}

.social-footer .social-icons a:hover {
  background: rgba(176, 106, 255, 0.25);
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 10px #b06aff, 0 0 20px #b06aff, 0 0 35px #b06aff;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 15px;
}

.community-logo {
  width: 125px;
  height: auto;
  margin-bottom: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}
