/* Style général */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  color: #333;
  padding: 40px;
  max-width: 600px;
  margin: auto;
  border-radius: 8px;
}

/* Titre */
h1 {
  text-align: center;
  color: #2c3e50;
}

/* Champ et bouton */
p {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

button {
  padding: 10px 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #2980b9;
}

/* Liste des produits */
ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

/*li {
  background: white;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.1s ease;
}*/

/* Pour mieux organiser la liste avec le bouton supprimer a droite*/
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


li:hover {
  transform: scale(1.02);
}

li button {
  background-color: #e74c3c;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  margin-left: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

li button:hover {
  background-color: #c0392b;
}

.bloc-produit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.bloc-produit h2 {
  margin: 0;
  font-size: 16px;
}

/*
si je veux que les deux champs de texte soient de meme taille
input[type="text"] {
  width: 100%;
  max-width: 300px; /*Tu peux ajuster cette valeur 
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

*/