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

body {
  font-family: 'Inter', sans-serif;
  content: "";
  position: relative;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(-45deg, #070530, #1d014d, #0d1125, #0c1733);
  color: white;
   min-height: 100vh;
  overflow-x: hidden;
  background-size: 400% 400%;
  animation: gradientMove 60s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


#stars-container {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: star-fade 2s forwards;
}

@keyframes star-fade {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: transparent;
  position: relative;
  z-index: 10;
}


nav a {
  padding: 0.5rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav  a:hover {
  background-color: #0077cc;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background-color: #111827;
  border: 1px solid #4f46e5;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
  overflow: hidden;
  z-index: 100;
  padding: 0.3rem 0;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #4f46e5;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown > a::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 6px;
  opacity: 0.7;
  vertical-align: middle;
}

.logo {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.logo span {
  margin-left: 10px;
}

.btn-primary {
  background-color: #4f46e5;
  padding: 10px 20px;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  position: relative;
  z-index: 5;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ccc;
}

section.hero h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

section.hero .cards,
section.hero .fonctionnalites,
section.hero .stats,
section.hero .blog {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section.hero .cards > div,
section.hero .fonctionnalites > div,
section.hero .blog > div {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 250px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease;
}

section.hero .cards > div:hover,
section.hero .fonctionnalites > div:hover,
section.hero .blog > div:hover {
  transform: translateY(-5px);
}

section.hero .stats > div {
  text-align: center;
  flex: 1 1 150px;
}

section.hero .stats h3 {
  font-size: 2rem;
  color: #4f46e5;
  margin-bottom: 0.3rem;
}

section.hero .blog a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

section.hero .blog a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

  section.hero h2 {
    font-size: 1.6rem;
  }

  section.hero .cards > div,
  section.hero .fonctionnalites > div,
  section.hero .blog > div,
  section.hero .stats > div {
    flex: 1 1 100%;
    max-width: 100%;
  }

  section.hero .stats {
    gap: 1.5rem;
  }

  .rocket-img {
    max-width: 80%;
  }
}

@keyframes minefivem {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translate(3px, -5px) rotate(1deg);
  }
  40% {
    transform: translate(-3px, -10px) rotate(-1deg);
  }
  60% {
    transform: translate(2px, -15px) rotate(0.5deg);
  }
  80% {
    transform: translate(-1px, -8px) rotate(-0.5deg);
  }
}


.minefivem-img {
  max-width: 500px;
  animation: minefivem 5s ease-in-out infinite;
  margin-bottom: 100px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.rocket-img {
  max-width: 500px;
  animation: float 3s ease-in-out infinite;
}

footer {
  text-align: center;
  padding: 40px;
  color: #888;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {

  header {
    flex-wrap: wrap;
    padding: 15px 4vw;
  }

  nav {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    margin: 5px;
    font-size: 1rem;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
    margin: 10px auto 0;
    display: block;
    white-space: normal;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    padding: 6vh 4vw;
    gap: 1.5rem;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .rocket-img {
    width: 80%;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
  }
}

.hero-unique {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8vh 8vw;
  flex-wrap: wrap;
}

.left-content {
  max-width: 600px;
  z-index: 2;
}

.left-content h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
}

.left-content .highlight {
  color: #4f46e5;
}

.left-content p {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #4f46e5;
  color: #4f46e5;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background-color: #4f46e5;
  color: white;
}

.right-images .rocket-img {
  max-width: 420px;
  animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-unique {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .right-images {
    order: -1;
  }

  .left-content h1 {
    font-size: 2rem;
  }

  .right-images .rocket-img {
    max-width: 300px;
  }
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: block;
}

.nav-link:hover {
  background-color: #0077cc;
}

.dropdown-menu.user-menu {
  top: 100% !important;
  left: auto !important;
  right: 0;
  transform: none !important;
}

input[type=\"number\"] {
  font-size: 1.1rem;
  text-align: center;
  background: #1e293b;
  color: white;
  border: 2px solid #4f46e5;
}
input[type=\"number\"]:focus {
  outline: none;
  border-color: #7c3aed;
  background: #111827;
}

.faq-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.faq-section {
  background: #1e293b;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-left: 5px solid #4f46e5;
  padding-left: 10px;
}

.faq-section ul {
  list-style: none;
  padding-left: 0;
}

.faq-section li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.faq-section strong {
  color: #4f46e5;
}

.faq-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 2rem 0;
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
}

.form-label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.form-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #4f46e5;
  background: #1e293b;
  color: white;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #7c3aed;
  background: #111827;
}

#changePasswordForm button {
  margin-top: 1.5rem;
}

.btn-2fa {
  padding: 12px 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.btn-2fa.on {
  background-color: #ef4444; /* Rouge pour désactiver */
  color: white;
}

.btn-2fa.off {
  background-color: #22c55e; /* Vert pour activer */
   color: white;
}

.btn-2fa:hover {
  filter: brightness(1.1);
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


