@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

::-webkit-scrollbar {
	background-color:transparent /*#1e1a35*/;
	width:10px;
	scrollbar-width: none;
}
::-webkit-scrollbar-thumb {
	background: linear-gradient(#21D4FD,#B790FF);
	border-radius:100px;
	
}
::-webkit-scrollbar-track {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ===================== BANNIÈRE ===================== */
.banner-wrapper {
  background: linear-gradient(45deg, #ff8000, #ff00ff, #00ffff, #ff8000);
  background-size: 400% 400%;
  animation: borderGlow 10s linear infinite;
  padding: 3px;
  border-radius: 16px;
  margin: 0.5rem auto 1rem auto;
  max-width: 90%;
  box-sizing: border-box;
}
.banner {
	min-height: 120px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(270deg, #0f0c29, #302b63, #24243e);
  background-size: 600% 600%;
  animation: animatedBackground 10s ease infinite;
  overflow: hidden;
    padding: 0.5rem 0.5rem;
  background-clip: padding-box;
  box-sizing: border-box;
}


@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}


.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image: url("../images/static-grain.gif");
  opacity: 0.05;
  mix-blend-mode: screen;
  z-index: 0;
}

.banner .logo {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.banner .logo img {
 max-height: 100px;
  width: auto;
  display: block;
}

.banner h1 {
  font-family: 'Press Start 2P', cursive !important;
  font-size: 0.7rem;
  background: linear-gradient(270deg, #ff0066, #ffcc00, #00ffcc, #ff0066);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowMove 8s ease infinite;
  margin: 0.5rem 0;
  z-index: 1;
}


.banner h2 {
  font-size: 0.7rem;
  color: #eee;
  font-family: 'Arial', sans-serif;
  z-index: 1;
}

@keyframes animatedBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.fallback-name {
  margin-top: 0.5rem;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
}


#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(30, 30, 30, 0.95);
  color: #0ff;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 0 20px #00ffff44;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


.dots-loader {
  display: inline-block;
  margin-left: 0.5rem;
}

.dots-loader span {
  display: inline-block;
  font-size: 1.5rem;
  animation: bounce 1.4s infinite ease-in-out both;
  color: #0ff;
}

.dots-loader span:nth-child(1) {
  animation-delay: -0.32s;
}
.dots-loader span:nth-child(2) {
  animation-delay: -0.16s;
}
.dots-loader span:nth-child(3) {
  animation-delay: 0;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}



/* ===================== MENU NAVIGATION ===================== */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  z-index: 1;
  position: relative;
}

.nav-menu a {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: #ffffff;
  margin: 0 0.7rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffcc00, #ff00ff, #00ffff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 2px;
}

.nav-menu a:hover {
  color: #ffcc00;
  text-shadow: 0 0 6px #ffcc00, 0 0 10px #ff00ff;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

/* Lien actif (page actuelle) */
.nav-menu a.active {
  color: #ffcc00;
  text-shadow: 0 0 6px #ffcc00, 0 0 10px #ff00ff;
}

.nav-menu a.active::after {
  transform: scaleX(1);
}
.nav-menu a:not(:first-child)::before {
  content: "•"; /* tu peux mettre "|" ou même un emoji 🎯 */
  margin: 0 5px;
  color: #ccc; /* ou la couleur de ton thème */
  font-weight: bold;
}

/* Menu burger pour mobile */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2;
  margin-top: 1rem;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
  transition: all 0.3s ease;
}



/* ===================== BODY =====================  */
html, body {
  height: 100%;  /* Assurer que le body occupe toute la hauteur */
  margin: 0;
  margin-top:5px;
  padding: 0;
  display: flex;
  flex-direction: column; /* Utiliser flexbox pour le contenu et le footer */
}
.main-content {
  flex: 1; /* Assure que la section principale prend tout l'espace disponible */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

body {
  background-image: url('../images/pixel-bg3.png');
  background-size: repeat;
  background-color: #181825;
  background-attachment:fixed;
}
body.popup-open {
  overflow: hidden;
}
.content-box {
  background: #15102a;
  border: 2px solid #00ffff;
  border-radius: 16px;
  padding: 1rem;
  margin: 0 auto;
  max-width: 200px;
  box-shadow: 0 0 15px #00ffff80;
}

.fade-in {
  animation: fadeIn 1.5s ease-out;
}

.form-box {
  background: #15102a;
  border: 2px solid #00ffff;
  border-radius: 16px;
  padding: 1rem;
  margin: 0.5rem auto 1rem auto; /* centre horizontalement */
  max-width: 1280px;
      font-size: 0.75rem;
}


@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ===================== CONSTRUCTEURS ===================== */
.container-grid {
  display: grid;
  gap: 1rem;
  padding: 3rem 1rem;
  margin: 0 auto;
  justify-content: center;
  grid-template-columns: repeat(6, 1fr); /* 6 cartes par ligne max*/
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}



.card-constructeur {
  min-width: 200px;
  width: 100%;
  height: 200px; /* Hauteur fixe pour uniformiser */
  box-sizing: border-box;
  padding: 0.5rem;
  background: #111a40;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;

  /* Centrage du contenu */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-constructeur:hover {
  transform: scale(1.10);
  box-shadow: 0 0 25px #00ffff33;
}

.card-constructeur img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.card-constructeur h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  color: white;
  margin: 0;
  word-break: break-word;
}



/* ===========FOOTER============*/
.retro-footer {
    min-width: 75%;
    max-width: 95%;
    box-sizing: border-box;
    padding: 0.5rem 2rem;
    background: linear-gradient(270deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    animation: animatedBackground 10s ease infinite;
    background-size: 600% 600%;
    box-shadow: 0 -5px 15px #00ffff33;
    border-top: 3px solid #00ffff;
    border-left: 3px solid #00ffff;
    border-right: 3px solid #00ffff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.retro-footer p {
  margin: 0.3rem 0;
  text-shadow: 0 0 4px #00ffff, 0 0 6px #ff00ff;
}



/* Overlay plein écran semi-transparent */
.popup-overlay {
  position: fixed;
 background: radial-gradient(circle at center, rgba(21, 16, 42, 0.95) 60%, rgba(13, 10, 26, 0.95));

  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow: hidden; /* NE PAS mettre auto ici */
}

/* Contenu de la popup */
.popup-content {
  width: 100vw;
  max-height: 95vh; /* Limite la hauteur de la popup à 95% de la fenêtre */
 
  border: none;
  border-radius: 0;
  padding: 2rem 3rem;
  box-sizing: border-box;
  color: #ffffff;
  position: relative;
  font-family: 'Press Start 2P', cursive;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: auto; /* Permet le défilement du contenu */
  z-index: 2; /* Positionne le contenu au-dessus du cadre néon */
}

/* Cadre néon interne */
.popup-content::before {
  content: '';
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border: 2px solid #00ffff;
  border-radius: 20px;
  box-shadow: 0 0 20px #00ffff88, inset 0 0 20px #00ffff33;
  pointer-events: none;
  z-index: 1;
}

/* Bouton de fermeture */
.popup-close {
  position: fixed;
  top: 1rem;  /* Positionné à 1rem du haut de la popup */
  right: 2rem;  /* Positionné à 2rem du bord droit */
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #00ffff;
  cursor: pointer;
  z-index: 3;  /* Assurez-vous que le bouton soit toujours au-dessus du contenu */
  text-shadow: 0 0 6px #00ffffaa;
  transition: transform 0.2s ease, color 0.3s ease;
}

.popup-close:hover {
  transform: scale(1.2);
  color: #ffffff;
}


/* Titre */
.popup-content h2 {
	top: 10px;  /* Positionné à 1rem du haut de la popup */
  font-size: 1.4rem;
  color: #00ffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 5px #00ffffcc;
  
  text-align: center;
}

/* Description */
.popup-content p {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.5;
  z-index: 2;
  max-width: 90vw;
  text-align: center;
}

/* Cartes consoles */
.console-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  margin-top: 2rem;
  z-index: 2;
  width: 100%; /* <- AJOUTÉ */
}


.console-card {
  background: #1e1a35;
  border: 2px solid #00ffff44;
  border-radius: 16px;
  padding: 1rem;
  width: 180px;
  height: 200px; /* force une hauteur uniforme */
  text-align: center;
  box-shadow: 0 0 12px #00ffff33;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.console-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffff88;
   cursor: pointer;
}

.console-card img {
 max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 5px;
}

.console-card h3 {
  font-size: 0.8rem;
  color: #ffffff;
  margin-top: 0.5rem;
}




.mini-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1a35;
  border: 2px solid #00ffff;
  border-radius: 16px;
  box-shadow: 0 0 15px #00ffff88;
  padding: 1rem;
  max-width: 90vw;
  width: 50vw;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  color: #fff;
  box-sizing: border-box;
  font-size: 0.9rem;
  line-height: 1.6;
}


.mini-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #00ffff;
  background: transparent;
  border: none;
}

#mini-popup-inner {
  margin-top: 1.5rem;
}






.dl_button {
  display: inline-block;
  border-radius: 4px;
  background-color: #00ffff44;
  border: none;
  color: #FFFFFF;
  text-align: center; 
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  padding: 5px;
  width:200px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}

.dl_button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.dl_button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.dl_button:hover span {
  padding-right: 25px;
}

.dl_button:hover span:after {
  opacity: 1;
  right: 0;
}

.dl_button_search {
  display: inline-block;
  border-radius: 4px;
  background-color: #00ffff44;
  border: none;
  color: #FFFFFF;
  text-align: center; 
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  padding: 5px;
  width:200px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}








.btn_signaler_lien {
   background-color: black;
  color: white;
  border: 2px solid #e7e7e7;
  padding: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.7rem;
  margin: 2px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.btn_signaler_lien:hover {
	background-color: #e7e7e7;
	  border-radius: 4px;
	   color: black;
}






form label,
form input,
form select,
form textarea {
    color: #fff;
}

form input::placeholder,
form textarea::placeholder {
    color: #ccc;
}

form input,
form select,
form textarea {
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 2px solid cyan;
    background-color: #000;
    color: #0ff;
    font-family: 'Press Start 2P', monospace;
    width: 100%;
    box-sizing: border-box; /* ← essentiel pour que ça rentre dans le cadre */
}

form label {
    display: block;
    margin-top: 1rem;
}



#mascotte-container {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 999;
  cursor: pointer;
}

#mascotte {
  width: 80px;
  transition: transform 0.3s ease;
}

#mascotte:hover {
  transform: scale(1.1);
}

#nouveautes-popup {
  position: fixed;
  bottom: 100px;
  right: 10px;
  width: 300px;
  max-height: 400px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
  padding: 10px;
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow-y: auto;
  font-size: 0.7rem;
  font-family:"Arial";
}

.nouveautes-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 8px;
  border-bottom: 1px solid #0ff;
  padding-bottom: 5px;
}

#fermer-popup {
  cursor: pointer;
  color: #f55;
}


  #searchInput {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            margin-bottom: 20px;
            border-radius: 8px;
            border: 1px solid #ccc;
            outline: none;
        }

        .result-list {
            list-style-type: none;
            padding: 0;
        }

        .result-item {
            background-color: #fff;
            margin: 10px 0;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .result-item a {
            text-decoration: none;
            color: #333;
        }

        .result-item a:hover {
            color: #007BFF;
        }

        .result-item span {
            font-size: 12px;
            color: #888;
        }

 .detail-item {
            background-color: #fff;
            margin: 20px 0;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .detail-item h2 {
            color: #333;
        }

        .detail-item p {
            font-size: 16px;
            color: #555;
        }

        .detail-item a {
            color: #007BFF;
            text-decoration: none;
        }
		
		
		    #searchInput {
      width:100%;
      padding: 12px;
      font-size: 18px;
      margin-bottom: 20px;
      border-radius: 8px;
      border: none;
      outline: none;
    }

    .card-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }

    .card {
      background: #333;
      border-radius: 10px;
      padding: 20px;
      width: 250px;
      box-shadow: 0 0 10px #000;
      transition: transform 0.3s;
    }

    .card:hover {
      transform: scale(1.03);
    }

    .card h3 {
      margin: 0;
      font-size: 20px;
      color: #00d1ff;
    }

    .card p {
      margin: 8px 0;
      font-size: 14px;
    }

    .card a {
      color: #00ffcc;
      text-decoration: none;
    }

    .result-list {
      list-style-type: none;
      padding: 0;
    }

    .result-item {
      padding: 10px;
      background-color: #333;
      border-radius: 8px;
      margin: 10px 0;
    }
	
		
@media (max-width: 1280px) {
	.mini-popup {
	width:90vw;
	}
}

@media (max-width: 720px) {
	#mascotte {
    width: 50px;
  }
  .burger {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* Responsive textes */
@media (min-width: 720px) {
  .banner h1 { font-size: 1.2rem; }
  .banner h2 { font-size: 0.8rem; }
}


@media (max-width: 520px) {
  .container-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 cartes par ligne */
  }
}

@media (min-width: 521px) and (max-width: 800px) {
  .container-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
  }
}

@media (min-width: 801px) and (max-width: 1023px) {
  .container-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cartes */
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .container-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 cartes */
  }
 }
@media (min-width: 1280px) and (max-width: 1600px) {
  .container-grid {
    grid-template-columns: repeat(5, 1fr); /*5 cartes */
  }
}
@media (min-width: 1601px) and (max-width: 1919px) {
  .container-grid {
    grid-template-columns: repeat(6, 1fr); /* 6 cartes */
  }
}
@media (min-width: 1920px) and (max-width: 2048px) {
  .container-grid {
    grid-template-columns: repeat(7, 1fr); /* 7 cartes */
  }
}
@media (min-width: 2048px) and (max-width: 2274px) {
  .container-grid {
    grid-template-columns: repeat(8, 1fr); /* 8 cartes */
  }
}
@media (min-width: 2275px) {
  .container-grid {
    grid-template-columns: repeat(9, 1fr); /* 9 cartes */
  }
}
@media (max-width: 720px) {
  .retro-footer {
    font-size: 0.5rem;
  }
}
