* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', serif;
}

body {
  background-color: #ffe4e1;
  padding: 20px;
}

header {
  text-align: center;
  padding-bottom: 20px;
}

#Élégance {
  font-style: oblique;
  color: deeppink;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

nav {
  background-color: rgb(216, 192, 255);
  padding: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
}

nav ul li a:hover {
  background-color: deeppink;
  border-radius: 5px;
}

.img {
  text-align: center;
  margin: 20px 0;
}

.img img {
  width: 40%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
}

.container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.container h2, #Liste h2 {
  text-align: center;
  margin-bottom: 15px;
  text-decoration: underline;
  color: #333;
}

input, button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

input:focus {
  background-color: #ffe6f0;
}

button {
  background-color: deeppink;
  color: white;
  cursor: pointer;
}

.modifier, .supprimer {
  background-color: deeppink;
  color: white;
  margin: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#Liste {
  max-width: 700px;
  margin: 30px auto;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
  .img img {
    width: 80%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .container, #Liste {
    width: 90%;
  }

  button, input {
    font-size: 1rem;
  }
}
