/* ---------- Corps de la page ---------- */
body {
  margin:0; /* Supprime les marges par défaut du navigateur */
  font-family: 'Segoe UI', sans-serif; /* Définie une police lisible et moderne */
  background-color: #020617; /* Fond sombre pour un style élégant */
  color: #ffffff; /* Texte en blanc pour un bon contraste */
  text-align: center; /* Centre le texte par défaut */
}

/* ---------- En-tête du site ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* ✅ Hauteur réduite */
  background-color: #1e293b; /* Couleur de fond sombre */
  z-index: 1000; /* Toujours visible en haut */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center; /* Centre verticalement les éléments */
}

/* ---------- Conteneur interne ---------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Espace horizontal interne */
}

/* ---------- Logo ou titre principal ---------- */
h1 {
  color: #00d9ff;
  font-size: 1rem; /* Augmenté pour être visible */
  margin: 0;
}

h1 img {
  height: 40px; /* Taille du logo */
}

/* ---------- Liens de navigation ---------- */
nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00b4d8;
}

/* ---------- Formulaire ---------- */
.register-container {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 1s ease-in-out;
}

/* ---------- Animation ---------- */
@keyframes fadeIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.register-container h2 {
  margin-bottom: 20px;
  color: #f1f5f9;
}

.register-container input,
.register-container select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background-color: #1e293b;
  color: #f1f5f9;
  font-size: 16px;
  transition: background-color 0.3s;
}

.register-container input::placeholder,
.register-container select {
  color: #94a3b8;
}

.register-container input:focus,
.register-container select:focus {
  background-color: #334155;
  outline: none;
}

.register-container button {
  width: 100%;
  padding: 12px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register-container button:hover {
  background-color: #3b82f6;
}

.login-link {
  margin-top: 20px;
  font-size: 14px;
  color: #cbd5e1;
}

.login-link a {
  color: #facc15;
  text-decoration: none;
  font-weight: bold;
}
.login-link a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 600px) {
  .container {
    flex-direction: column;
    padding: 10px 20px;
  }
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .register-container {
    padding: 30px 20px;
  }
}
