/* Styles du projet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fff7fb 0%, #fef6ff 100%);
  color: #5b4b7a;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  background: #ffdff0;
  border-bottom: 3px solid #f9b9dd;
  box-shadow: 0 4px 14px rgba(91, 75, 122, 0.12);
}

.site-header h1 {
  font-size: 2rem;
  letter-spacing: 0.03em;
}

.tagline {
  margin-top: 0.5rem;
  color: #7f67a8;
}

main {
  flex: 1;
  width: min(1000px, 100%);
  margin: 1.75rem auto;
  padding: 0 1rem;
}

#list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.card {
  background: #ffffff;
  border: 2px solid #ffd2ec;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 12px rgba(147, 107, 156, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(147, 107, 156, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #ffffff;
}

.card-body {
  padding: 1rem;
  background: #ffe8f4;
}

.card-body h2 {
  margin-bottom: 0.4rem;
  color: #5b4b7a;
  font-size: 1.1rem;
}

.card-body p {
  color: #7f67a8;
  margin-bottom: 0.55rem;
}

.ranking {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ffe8f4;
  color: #7f67a8;
  font-weight: 700;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  background: #ffe8f4;
  border-top: 3px solid #f9b9dd;
  color: #7f67a8;
}
/*formulaire*/
form{
  margin-bottom: 1em ;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

input, select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input:focus, select:focus {
  outline: none;
  border-color: #0078d4;
}
.btn-delete {
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #e74c3c;
  color: white;
  /* Supprime la bordure par défaut des <button> */
  border: none;
  border-radius: 4px;
  /* Affiche la main au survol */
  cursor: pointer;
  /* Légèrement plus petit que le texte normal (1rem) */
  font-size: 0.85rem;
}

.btn-delete:hover {
  /* Rouge plus foncé au survol — feedback visuel */
  background-color: #c0392b;
}
.no-result {
  /* Texte discret — information secondaire, pas une erreur */
  color: #666;
  font-style: italic;
  padding: 1rem 0;
}