header {
  background-color: #1a0b26;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(158, 78, 234, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: #c87cff;
  border: 2px solid transparent;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  border-color: #9e4eea;
  background-color: #9e4eea;
  color: #fff;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* Le body occupe toute la hauteur de l’écran */
html, body {
  height: 100%;
  margin: 0;
}

/* Le body devient une colonne verticale */
body {
  display: flex;
  flex-direction: column;
}

/* Le contenu principal prend toute la place disponible */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement */
  align-items: center;     /* centre horizontalement */
}

footer {
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 25px;
  color: #9e4eea;
  border-top: 1px solid #9e4eea;
  background-color: #1a0b26;
  margin-top: auto;
  animation: fadeInUp 1s ease;
}

@media (max-width: 600px) {
  nav {
    gap: 10px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  width: 200px;
}

/* Footer supérieur */
.footer-top {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: auto; /* colle ce bloc au-dessus du footer */
  padding: 15px 0;
  color: #9e4eea;
  background-color: #1a0b26
  border-bottom: 1px solid #9e4eea;
}

