/* === RESET GLOBAL === */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #1e1e2f;
  color: white;
}

/* === PAGE DE CONNEXION === */
body.login {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background-color: #2e2e45;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  background-color: #3a3a5a;
  color: white;
  width: 100%;
}

.login-box button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.login-box a {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-decoration: none;
}

/* Message d'erreur */
.error {
  background-color: #2e2e45;
  color: #f66;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #c00;
  border-radius: 6px;
  text-align: center;
}

/* === PAGE ADMINISTRATION === */
.admin-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #1e1e2f;
}

/* Barre supérieure */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2e2e45;
  padding: 1rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.top-bar span {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar a {
  color: #5dade2;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Conteneur du formulaire */
.admin-container {
  background-color: #2e2e45;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Formulaire */
.admin-container h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 0.3rem;
  border: none;
  border-radius: 6px;
  background-color: #3a3a5a;
  color: white;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button[type="submit"] {
  margin-top: 2rem;
  background-color: #3498db;
  padding: 10px 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Message de succès */
.success-message {
  background-color: #27ae60;
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Masquer dynamiquement */
.hidden {
  display: none;
}

/* ... (reste du CSS inchangé) ... */

/* Spécifique à la page de connexion */
body.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

body.login .login-box {
  width: 100%;
  max-width: 400px;
  text-align: -webkit-center;
}

/* Ne pas appliquer le centrer global aux autres pages */
body:not(.login) {
  display: block;
}
.profile-link {
  color: #5dade2;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
}

.profile-link:hover {
  text-decoration: underline;
}


