:root, body, body * {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* Améliore le rendu typographique */
}

/* Version variable si supportée */
@supports (font-variation-settings: normal) {
  :root, body, body * {
    font-family: InterVariable, sans-serif;
  }
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom, white, #B38282);
  min-height: 100vh;
  background-attachment: fixed;
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  list-style: none;
  color: #980000;
  font-size: 18px;
  margin: 0;
  gap: 180px;
}

/* Cible uniquement les li qui contiennent du texte (pas le logo) */
header nav ul li:not(:has(img)) {
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 12px;
}

/* Animation au survol (texte seulement) */
header nav ul li:not(:has(img)):hover {
  transform: translateY(-3px);
  text-shadow: 0 2px 4px rgba(152, 0, 0, 0.3);
}

/* Effet de soulignement animé (texte seulement) */
header nav ul li:not(:has(img))::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #980000;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

header nav ul li:not(:has(img)):hover::after {
  width: 80%;
}

/* Animation au clic (texte seulement) */
header nav ul li:not(:has(img)):active {
  transform: translateY(1px);
  transition: all 0.1s ease;
}

/* Le logo conserve ses animations originales */
header nav ul li .logo {
  transition: transform 1s ease-in-out;
  margin: 0 30px;
}

header nav ul li .logo:hover {
  transform: rotate(560deg) scale(1.5);
  animation: spin 3.5s linear infinite;
}
nav ul li a {
  color: inherit; /* Garde la couleur du texte parent */
  text-decoration: none; /* Supprime le soulignement */
}

.logo {
  height: 80px;
  transition: transform 1s ease-in-out; /* Transition plus douce */
  margin: 0 30px;
}

.logo:hover {
  transform: rotate(560deg) scale(1.5); /* Rotation complète + léger zoom */
  animation: spin 3.5s linear infinite; /* Animation continue */
}

/* Style pour la boîte de contenu */
/* Style pour la boîte de contenu */
.content-box {
  background-color: none;
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  margin: 50px auto;
  display: flex; /* Ajouté */
  justify-content: center; /* Ajouté */
  flex-direction: column; /* Ajouté */
}

/* Styles pour le formulaire */
.auth-form {
  display: flex;
  flex-direction: column;
  color: white;
  width: 100%; /* Ajouté pour prendre toute la largeur disponible */
}


.auth-form h2 {
  color: #980000;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.form-group {
  margin-bottom: 25px;
    color: #333; /* Ajout de cette ligne */
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #333;
  color: white;
  font-size: 16px;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #980000;
  box-shadow: 0 0 0 2px rgba(152, 0, 0, 0.3);
}

.button-group {
display: flex;
  justify-content: center; /* Changé de space-between à center */
  gap: 15px;
  margin-top: 20px;
}

.btn {
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  max-width: 150px; /* Ajouté pour limiter la largeur des boutons */
}

.btn-primary {
  background-color: #980000;
  color: white;
}

.btn-secondary {
  background-color: #333;
  color: white;
  border: 1px solid #555;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(1px);
}
