/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff9fb;
}

a { color: #c2185b; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 2px solid #fce4ec;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #c2185b;
}

.logo-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c2185b;
  display: inline-block;
}

.site-nav { display: flex; gap: 4px; }

.site-nav a {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: #fce4ec;
  color: #c2185b;
  font-weight: 600;
  text-decoration: none;
}

/* ── Main ── */
.site-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Typo ── */
h1 { font-size: 1.9rem; font-weight: 700; color: #111; margin-bottom: 0.6rem; }
h2 { font-size: 1.3rem; font-weight: 600; color: #222; margin: 2rem 0 0.75rem; }
h3 { font-size: 1rem; font-weight: 600; color: #111; margin-bottom: 0.3rem; }
p  { margin-bottom: 0.9rem; color: #555; }

.intro {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0d0da;
}

.body-text { color: #555; margin-bottom: 1.5rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  border-radius: 14px;
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #880e4f; }
.hero .intro { color: #ad1457; border-color: #f48fb1; margin-bottom: 0; padding-bottom: 0; }

/* ── CTA ── */
.cta { margin-bottom: 2.5rem; }
.btn {
  display: inline-block;
  background: #c2185b;
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn:hover { background: #880e4f; text-decoration: none; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid #f0d0da;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: block;
  color: #222;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(194, 24, 91, 0.12);
  text-decoration: none;
}

.card-meta {
  font-size: 0.82rem;
  color: #999;
  margin: 0;
  margin-top: 4px;
}

/* ── Badges catégorie ── */
.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 6px;
  background: #f3e5f5;
  color: #6a1b9a;
}
.card-badge.plat     { background: #fff3e0; color: #e65100; }
.card-badge.soupe    { background: #fce4ec; color: #880e4f; }
.card-badge.dessert  { background: #f3e5f5; color: #6a1b9a; }
.card-badge.boisson  { background: #e3f2fd; color: #0d47a1; }

/* ── Page recette ── */
.recette {
  background: #fff;
  border: 1px solid #f0d0da;
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.recette-header { margin-bottom: 1.2rem; }

.recette-meta {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #888;
}

.recette-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0d0da;
}

/* ── Ingrédients ── */
.ingredients h2 { margin-top: 0; }

.ingredients ul {
  list-style: none;
  padding: 0;
}

.ingredients li {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.95rem;
}

.ingredients li:last-child { border-bottom: none; }

.quantite {
  min-width: 100px;
  color: #c2185b;
  font-weight: 600;
  font-size: 0.88rem;
}

.nom { color: #333; }

/* ── Back link ── */
.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #c2185b;
  margin-top: 0.5rem;
}
.back-link:hover { text-decoration: underline; }

/* ── Recentes ── */
.recentes { margin-top: 2.5rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #f0d0da;
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: #bbb;
  background: #fff;
  margin-top: 3rem;
}

/* ── Images ── */
.hero-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.recette-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

/* ── Blocs ── */
.recette-contenu {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0d0da;
}

.recette-contenu h2 { font-size: 1.2rem; }
.recette-contenu p  { color: #555; }
.recette-contenu blockquote {
  border-left: 3px solid #f48fb1;
  padding-left: 1rem;
  color: #888;
  font-style: italic;
}

figure img {
  max-width: 100%;
}