/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f7f6; /* très clair, presque blanc */
  color: #6b6259; /* gris doux */
  padding: 30px 20px;
  line-height: 1.5;
}

/* En-tête */
header {
  background: #f6d9d0; /* rose pastel très doux */
  padding: 40px 15px;
  border-radius: 40px 40px 0 0;
  text-align: center;
  box-shadow: 0 6px 12px rgba(246, 217, 208, 0.4);
}

header h1 {
  font-weight: 900;
  font-size: 3rem;
  color: #a17970; /* marron clair doux */
  letter-spacing: 2px;
  font-family: 'Fredoka One', cursive;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 18px;
  list-style: none;
}

nav a {
  color: #a17970;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(161, 121, 112, 0.2);
  transition: background 0.3s ease;
}

nav a:hover {
  background: rgba(161, 121, 112, 0.4);
}

/* Introduction */
.intro {
  max-width: 700px;
  margin: 50px auto 60px;
  font-size: 1.25rem;
  color: #8a7f79;
  text-align: center;
}

/* Section recettes */
.recettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 950px;
  margin: 0 auto;
}

.recette {
  background: #fef8f5; /* crème très clair */
  border-radius: 30px;
  box-shadow: 0 10px 18px rgba(161, 121, 112, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recette:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 28px rgba(161, 121, 112, 0.35);
}

.recette img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  display: block;
}

.recette h3 {
  margin: 20px 20px 10px;
  color: #a17970;
  font-weight: 700;
  font-size: 1.4rem;
  font-family: 'Fredoka One', cursive;
}

.recette p {
  margin: 0 20px 20px;
  color: #8a7f79;
  font-size: 1rem;
  line-height: 1.4;
}

/* Style spécifique dessert */
.recette.dessert {
  border-top: 5px solid #f4c7bd; /* rose pastel très doux */
}

/* Pied de page */
footer {
  margin-top: 80px;
  text-align: center;
  color: #8a7f79;
  font-size: 1rem;
  padding-bottom: 20px;
}
a {
  color: #a17970;
  text-decoration: none;
}

a:visited {
  color: #a17970;
}
.footer-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 20px;
  padding: 20px 0;
}

.footer-nav a {
  color: #a17970;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 22px;
  border-radius: 25px;
  background: rgba(161, 121, 112, 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-nav a:hover {
  background: rgba(161, 121, 112, 0.3);
  transform: translateY(-2px);
}
/* Style barre de recherche */
.search-bar {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

#searchInput {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.2rem;
  border-radius: 30px;
  border: 2px solid rgba(161, 121, 112, 0.3); /* couleur douce marron clair */
  font-family: 'Poppins', sans-serif;
  color: #6b6259;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchInput::placeholder {
  color: #a17970;
  opacity: 0.7;
  font-style: italic;
}

#searchInput:focus {
  outline: none;
  border-color: #a17970;
  box-shadow: 0 0 10px rgba(161, 121, 112, 0.5);
}
.favori-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 10px 20px;
  color: #bbb;
  transition: color 0.3s ease;
}
.favori-btn.active {
  color: red;
}
.favori-btn:hover {
  color: #ff6666;
}
.portion-control {
  margin: 20px 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.portion-control button {
  padding: 5px 12px;
  font-size: 1.5rem;
  cursor: pointer;
  border: 1px solid #a17970;
  background: #f6d9d0;
  border-radius: 8px;
  color: #a17970;
  transition: background 0.3s;
}

.portion-control button:hover {
  background: #d1b7ac;
}
.favori-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999; /* gris clair pour coeur vide */
  user-select: none;
  transition: color 0.3s ease;
}
.favori-btn::before {
  content: '♡'; /* cœur vide */
}
.favori-btn.active {
  color: red;
}
.favori-btn.active::before {
  content: '♥'; /* cœur rempli */
}