/* CONTENEUR GLOBAL (optionnel si liste) */
body.category-recette main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 25px;
}




.site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

/* HEADER pleine largeur */
body.category-recette .site-main h1,
body.category-recette .site-main .header-recette {
  grid-column: 1 / -1;
}
/* CARD */
.category-recette article {
  background: #fff;
  border-radius: 18px;
  padding: 30px 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* HOVER */
.category-recette article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}


.cat-links{
  display: none;
}
/* TITRE */
.entry-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.entry-title a {
  text-decoration: none;
  color: #333;
}

.entry-title a:hover {
  color:#17412D;
}

/* META */
.entry-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 15px;
}

/* CONTENU */
.entry-content p {
  color: #555;
  line-height: 1.5;
}

/* BOUTON */
.btn-recette {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  background:#17412D;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.btn-recette:hover {
  background: #B84551;
  color: #fff;
}

/* FOOTER */
.entry-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #aaa;
}



@media (max-width: 600px) {

body.category-recette main {

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}



}
/*

Page recette

*/


/* =========================
   PAGE RECETTE - BASE
========================= */

article.category-recette {
  max-width: 760px;
  margin: 40px auto;
  background: #F6F4EF;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(63, 90, 64, 0.08);
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}

article.category-recette h1{

  display: block;
}

/* =========================
   TITRE RECETTE
========================= */

article.category-recette .entry-title {
  font-size: 1.8rem;
  color: #3F5A40;
  margin-bottom: 10px;
  position: relative;
}

article.category-recette .entry-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #9CAF88;
  margin-top: 10px;
  border-radius: 2px;
}

/* =========================
   META (date / auteur)
========================= */

article.category-recette .entry-meta {
  font-size: 0.9rem;
  color: #6B6B63;
  margin-bottom: 25px;
}

article.category-recette .entry-meta a {
  color: #6F9C8A;
  text-decoration: none;
}

/* =========================
   CONTENU RECETTE
========================= */

article.category-recette .entry-content {
  font-size: 1.05rem;
  color: #4A4A44;
}

/* LISTE INGREDIENTS (IMPORTANT UX) */
article.category-recette .entry-content ul {
  background: #DDE7D3;
  padding: 20px 25px;
  border-radius: 12px;
  list-style: none;
  margin: 15px 0 25px;
}

article.category-recette .entry-content ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}


/* PARAGRAPHES */
article.category-recette .entry-content p {
  margin-bottom: 15px;
}

/* =========================
   FOOTER (catégorie / admin)
========================= */

article.category-recette .entry-footer {
  margin-top: 30px;
  font-size: 0.85rem;
  color: #8B6B4E;
  border-top: 1px solid #D8C3A5;
  padding-top: 15px;
}

article.category-recette .cat-links a {
  color: #3F5A40;
  font-weight: 600;
  text-decoration: none;
}

/* =========================
   PETIT BONUS UX MOBILE
========================= */

/* =========================
   MOBILE RECETTE (≤ 600px)
========================= */

@media (max-width: 600px) {







  article.category-recette {
    padding: 18px;
    margin: 10px;
    border-radius: 14px;
    box-shadow: none; /* plus léger sur mobile */
  }

  /* TITRE */
  article.category-recette .entry-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  article.category-recette .entry-title::after {
    width: 60px;
    height: 2px;
  }

  /* META */
  article.category-recette .entry-meta {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  /* CONTENU */
  article.category-recette .entry-content {
    font-size: 1rem;
  }

  /* LISTE INGREDIENTS -> version "cards" mobile */
  article.category-recette .entry-content ul {
    padding: 15px;
    border-radius: 10px;
  }

  article.category-recette .entry-content ul li {
    background: #F6F4EF;
    margin-bottom: 10px;
    padding: 10px 12px 10px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(63, 90, 64, 0.06);
  }

  article.category-recette .entry-content ul li::before {
    left: 10px;
  }

  /* PARAGRAPHES */
  article.category-recette .entry-content p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  /* FOOTER */
  article.category-recette .entry-footer {
    font-size: 0.75rem;
    text-align: center;
  }

  .single-post article.category-recette  .entry-content{
    padding: 0px;
  }
}




/* =========================
   NAVIGATION ARTICLE
========================= */

.post-navigation {
  margin: 40px auto;
  padding: 20px 0;
  
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* lien précédent / suivant */
.post-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #3F5A40;
  background: #DDE7D3;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* hover */
.post-navigation a:hover {
  background: #9CAF88;
  color: #fff;
  transform: translateY(-1px);
}

/* icône */
.post-navigation i {
  color: #6F9C8A;
}

/* version mobile */
@media (max-width: 600px) {
  .post-navigation .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .post-navigation a {
    width: 100%;
    justify-content: center;
  }
}