body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}

.login-box {
  max-width: 500px;
  margin: 80px auto;
  background: #fff;
  padding: 40px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.login-box h2 {
  margin-bottom: 25px;
  text-align: center;
  font-size: 22px;
}

.login-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"],
.login-box select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.login-box button:hover {
  background-color: #1976D2;
}

/* Pour les messages d'erreur */
.login-box .error {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.alerte {
  background-color: #ffdddd;
  color: #a00;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  border-bottom: 2px solid #a00;
}

.user-info {
  text-align: right;
  font-size: 14px;
  padding: 10px 20px;
  color: #555;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ccc;
}

.accueil-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  gap: 20px;
}

.tuile {
  width: 220px;
  height: 110px;
  border-radius: 10px;
  color: white;
  font-size: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease-in-out;
}

.tuile:hover {
  transform: scale(1.05);
}

.tuile-vert    { background-color: #4CAF50; }
.tuile-bleu    { background-color: #2196F3; }
.tuile-rouge   { background-color: #f44336; }
.tuile-orange  { background-color: #FF9800; }
.tuile-gris    { background-color: #607D8B; }

.logout-button {
  text-align: right;
  margin: 10px 20px 0;
}

.logout-button form {
  display: inline;
}

.logout-button button {
  background-color: #ccc;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.logout-button button:hover {
  background-color: #bbb;
}

/* Boutons radio */
input[type="radio"] {
  margin-right: 6px;
  transform: scale(1.2);
}

input[type="radio"] + label {
  margin-right: 20px;
  font-weight: normal;
}

/* Cases à cocher */
input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Zone de texte (textarea) */
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 20px;
}

input[type="date"],
input[type="time"],
input[type="number"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
}
