/* ---------- 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 20px; /* 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: 21px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00b4d8;
}

/* ---------- Formulaire de connexion ---------- */
.login-container {
  margin-top: 110px; /* espace sous le header */
  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: 400px;
  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;
  }
}

/* ---------- Titre du formulaire ---------- */
.login-container h2 {
  margin-bottom: 20px;
  color: #f1f5f9;
}

/* ---------- Champs de formulaire ---------- */
.login-container input {
  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;
}

.login-container input::placeholder {
  color: #94a3b8;
}

.login-container input:focus {
  background-color: #334155;
  outline: none;
}

/* ---------- Bouton de connexion ---------- */
.login-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;
}

.login-container button:hover {
  background-color: #3b82f6;
}

/* ---------- Lien vers inscription ---------- */
.signup-link {
  margin-top: 20px;
  font-size: 14px;
  color: #cbd5e1;
}

.signup-link a {
  color: #facc15;
  text-decoration: none;
  font-weight: bold;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* ---------- Responsive Mobile ---------- */
@media screen and (max-width: 600px) {
  .container {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .login-container {
    padding: 30px 20px;
  }
}

/* ---------- Pied de page ---------- */
footer {
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}
