/* Général test*/
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #1E1E2F, #3A3A55); /* Bleu nuit vers gris foncé */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #EAEAEA; /* Blanc cassé pour un meilleur contraste */
}

/* Conteneur principal */
.app-container {
  background: #27293D; /* Bleu-gris foncé */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Titre */
.app-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #FFD700; /* Doré pour une touche premium */
  font-weight: bold;
}

/* Formulaire */
#todo-form {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

#todo-input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #444;
  border-radius: 8px 0 0 8px;
  outline: none;
  background-color: #333546;
  color: #EAEAEA;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

#todo-input:focus {
  border-color: #FFD700;
  background-color: #3E4059;
}

button {
  padding: 12px 15px;
  background-color: #FFD700; /* Doré */
  color: #1E1E2F;
  font-weight: bold;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #E6C200;
  transform: scale(1.05);
}

/* Liste des tâches */
#todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #333546;
  color: #EAEAEA;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#todo-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

#todo-list li.completed {
  text-decoration: line-through;
  color: #AAA;
  background: #2A2C40;
}

/* Boutons */
.delete-btn {
  background: none;
  border: none;
  color: #FF4C4C; /* Rouge vif pour la suppression */
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.delete-btn:hover {
  color: #D90000;
  transform: scale(1.1);
}

/* Checkboxes */
.task-toggle {
  margin-right: 10px;
  transform: scale(1.3);
  cursor: pointer;
  accent-color: #FFD700;
}

/* Responsivité */
@media (max-width: 480px) {
  #todo-form {
    flex-direction: column;
  }

  #todo-input {
    border-radius: 8px;
    margin-bottom: 10px;
  }

  button {
    border-radius: 8px;
  }
}