@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --creme: #fdf6ec;
  --brun: #4a2c0a;
  --or: #c8922a;
  --rouge: #b33000;
  --vert: #2d6a4f;
  --text: #2c1a0e;
  --card-bg: #fff8f0;
}

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

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--creme);
  color: var(--text);
}

header {
  background: var(--brun);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 4px solid var(--or);
}
header a.back {
  color: var(--or);
  text-decoration: none;
  font-size: 1.5rem;
  transition: transform .2s;
}
header a.back:hover { transform: translateX(-4px); }
header h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2rem);
}
header .emoji-header { font-size: 2rem; }

.hero-recette {
  background: linear-gradient(135deg, #3b1f07, #6b3a1f, #c8922a);
  padding: 3rem 2rem;
  text-align: center;
}
.hero-recette h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: .5rem;
}
.hero-recette p { color: #f0d9b5; font-size: 1rem; }

main { max-width: 860px; margin: 2.5rem auto; padding: 0 1.5rem 4rem; }

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--brun);
  border-left: 5px solid var(--or);
  padding-left: .8rem;
  margin: 2.5rem 0 1.2rem;
}

/* Ingrédients */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.ingredient-card {
  background: var(--card-bg);
  border: 1px solid #e8d5b5;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.ingredient-card .ing-emoji { font-size: 1.6rem; }
.ingredient-card a {
  color: var(--brun);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 1px dashed var(--or);
}
.ingredient-card a:hover { color: var(--or); }
.ingredient-card span.qty {
  font-size: .82rem;
  color: #7a5c3a;
  display: block;
}

/* Étapes */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.2rem; }
.step {
  background: var(--card-bg);
  border: 1px solid #e8d5b5;
  border-radius: 10px;
  padding: 1.1rem 1.2rem 1.1rem 4.5rem;
  position: relative;
  line-height: 1.7;
  font-size: .95rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--or);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Info bar */
.info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--brun);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
}
.info-item { color: #f0d9b5; font-size: .9rem; }
.info-item strong { color: var(--or); display: block; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; }

footer {
  background: var(--brun);
  color: #c4956a;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .85rem;
  border-top: 4px solid var(--or);
}
footer a { color: var(--or); }
