/*
 * home-page.css — La Petite Cuisine
 * Ce fichier est conservé pour compatibilité mais les styles sont maintenant
 * centralisés dans style.css. Laisser vide ou retirer son enqueue dans functions.php.
 */

/* ══════════════════════════════════════════════════════════════
   ARCHIVE HERO (version 1 colonne)
══════════════════════════════════════════════════════════════ */
.hero-inner--archive {
  grid-template-columns: 1fr;
  max-width: 680px;
  padding: 56px 48px;
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════ */
.archive-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all .2s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  font-weight: 500;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   RECIPE TAGS NAVIGATION
══════════════════════════════════════════════════════════════ */
.recipe-tags-nav {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recipe-tags-nav .rtag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--light-gray);
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s ease;
  border: 1px solid transparent;
}

.recipe-tags-nav .rtag:hover {
  background: var(--coral-light);
  color: var(--coral);
}

/* ══════════════════════════════════════════════════════════════
   POST NAVIGATION (single)
══════════════════════════════════════════════════════════════ */
.post-navigation {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.post-navigation .nav-subtitle {
  font-size: 11px;
  color: var(--coral);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-navigation .nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.post-navigation .nav-next { text-align: right; margin-left: auto; }

/* ══════════════════════════════════════════════════════════════
   CONTENU RECETTE — .recipe-main-content + .entry-content
   (les deux sélecteurs pour couvrir tous les cas)
══════════════════════════════════════════════════════════════ */
.recipe-main-content h2,
.entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 18px;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--coral-light);
}

.recipe-main-content h2:first-child,
.entry-content h2:first-child { margin-top: 0; }

.recipe-main-content h3,
.entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
  margin-top: 28px;
}

.recipe-main-content p,
.entry-content p {
  font-size: 15px;
  color: var(--gray);       /* ← GRIS comme la maquette */
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 16px;
}

.recipe-main-content ol,
.recipe-main-content ul,
.entry-content ol,
.entry-content ul {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
}

/* ── LISTE NUMÉROTÉE → Étapes de préparation ── */
.recipe-main-content ol,
.entry-content ol {
  counter-reset: step-counter;
}

.recipe-main-content ol li,
.entry-content ol li {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  counter-increment: step-counter;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  font-weight: 300;
}

/* Cercle coral avec numéro — comme la maquette */
.recipe-main-content ol li::before,
.entry-content ol li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--coral);
  margin-top: 0;
  box-shadow: 0 0 0 4px rgba(232,115,90,0.08);
}

/* ── LISTE À PUCES → Ingrédients ── */
.recipe-main-content ul li,
.entry-content ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--black);
  font-weight: 400;
  line-height: 1.4;
}

.recipe-main-content ul li:last-child,
.entry-content ul li:last-child { border-bottom: none; }

/* Icône ingrédient : on prend le premier emoji du texte si présent,
   sinon on affiche une pastille coral */
.recipe-main-content ul li::before,
.entry-content ul li::before {
  content: '';
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Si l'item commence par un emoji, on l'utilise comme icône */
.recipe-main-content ul li[data-emoji]::before,
.entry-content ul li[data-emoji]::before {
  content: attr(data-emoji);
}

/* Quantité en coral — dernier span <strong> dans le li */
.recipe-main-content ul li strong,
.entry-content ul li strong {
  margin-left: auto;
  color: var(--coral);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* ── Step body (injecté par JS) ── */
.recipe-main-content ol li .step-body,
.entry-content ol li .step-body {
  flex: 1;
}
.recipe-main-content ol li .step-title,
.entry-content ol li .step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.recipe-main-content ol li .step-text,
.entry-content ol li .step-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════════════════════════ */
.search-results-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 48px 80px;
}

.search-results-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 32px;
}

.search-results-title em {
  color: var(--coral);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════════ */
.error-404-wrap {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 48px;
  text-align: center;
}

.error-404-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-wrap p {
  font-size: 18px;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE supplements
══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  .hero-inner--archive { padding: 28px 20px; }
  .search-results-wrap { padding: 28px 20px 48px; }
  .error-404-wrap { padding: 0 20px; margin: 48px auto; }
  .error-404-wrap h1 { font-size: 60px; }
  .post-navigation { flex-direction: column; }
  .post-navigation a { max-width: 100%; }
  .post-navigation .nav-next { text-align: left; margin-left: 0; }
  .entry-content h2 { font-size: 20px; }
  .archive-pagination .page-numbers { width: 36px; height: 36px; font-size: 13px; }
}