﻿/* ==========================================================================
   TOP 99 RECETTES — Styles du blog (archive + article)
   ========================================================================== */

.t99-blog-hero {
  background: linear-gradient(160deg, #1a130c 0%, #2b1c10 100%);
  color: #fff;
  padding: 6rem 1.5rem 4.5rem;
  text-align: center;
}
.t99-blog-hero .t99-eyebrow { color: #f0a05c; }
.t99-blog-hero h1 {
  font-family: var(--t99-font-display);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 400;
  margin: 0.6rem 0 1rem;
}
.t99-blog-hero p {
  max-width: 60ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
}
.t99-eyebrow {
  font-family: var(--t99-font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--t99-accent-dark);
}

.t99-blog-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.t99-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.t99-post-card {
  background: #fff;
  border: 1px solid var(--t99-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s var(--t99-ease), box-shadow 0.3s var(--t99-ease);
  display: flex;
  flex-direction: column;
}
.t99-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(20,16,11,0.12);
}
.t99-post-card-media {
  aspect-ratio: 3 / 2;
  background: var(--t99-accent-soft);
  position: relative;
  overflow: hidden;
}
.t99-post-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--t99-ease);
}
.t99-post-card:hover .t99-post-card-media img { transform: scale(1.06); }
.t99-post-card-media .t99-post-card-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--t99-font-display);
  font-size: 2.4rem;
  color: var(--t99-accent);
  background: linear-gradient(160deg, var(--t99-accent-soft), #fff);
}
.t99-post-card-cat {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: rgba(20,16,11,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.t99-post-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.t99-post-card-meta {
  font-size: 0.78rem;
  color: var(--t99-muted);
  margin-bottom: 0.5rem;
}
.t99-post-card h2, .t99-post-card h3 {
  font-family: var(--t99-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.t99-post-card h2 a, .t99-post-card h3 a {
  color: var(--t99-ink);
  text-decoration: none;
}
.t99-post-card h2 a:hover, .t99-post-card h3 a:hover { color: var(--t99-accent); }
.t99-post-card p { color: var(--t99-muted); font-size: 0.92rem; flex: 1; margin: 0 0 1rem; }
.t99-post-card-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t99-accent);
  text-decoration: none;
}

.t99-pagination {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3.5rem;
}
.t99-pagination a, .t99-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--t99-line);
  text-decoration: none;
  color: var(--t99-ink-soft);
  font-size: 0.9rem;
}
.t99-pagination .current { background: var(--t99-accent); color: #fff; border-color: var(--t99-accent); }
.t99-pagination a:hover { border-color: var(--t99-accent); color: var(--t99-accent); }

.t99-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--t99-muted);
}

/* ------------------------------- Article seul ------------------------------- */
.t99-article-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
  text-align: center;
}
.t99-article-cat {
  display: inline-block;
  background: var(--t99-accent-soft);
  color: var(--t99-accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.t99-article-header h1 {
  font-family: var(--t99-font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 1.2rem;
}
.t99-article-meta {
  font-size: 0.88rem;
  color: var(--t99-muted);
}
.t99-article-feat {
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.t99-article-feat img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20,16,11,0.15);
}

.t99-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--t99-ink-soft);
}
.t99-article-body h2 {
  font-family: var(--t99-font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--t99-ink);
  margin: 2.4rem 0 1rem;
}
.t99-article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--t99-ink);
  margin: 1.8rem 0 0.8rem;
}
.t99-article-body p { margin: 0 0 1.3rem; }
.t99-article-body ul, .t99-article-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.t99-article-body li { margin-bottom: 0.5rem; }
.t99-article-body a { color: var(--t99-accent-dark); text-decoration: underline; }
.t99-article-body strong { color: var(--t99-ink); }
.t99-article-body blockquote {
  border-left: 4px solid var(--t99-accent);
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  font-style: italic;
  color: var(--t99-muted);
}
.t99-article-body img { border-radius: 12px; margin: 1.5rem 0; }

.t99-article-cta {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.t99-article-cta-box {
  background: linear-gradient(160deg, #1a130c, #2b1c10);
  color: #fff;
  border-radius: 18px;
  padding: 2.4rem 2rem;
  text-align: center;
}
.t99-article-cta-box h3 {
  font-family: var(--t99-font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 0.6rem;
}
.t99-article-cta-box p { color: rgba(255,255,255,0.75); margin: 0 0 1.4rem; }
.t99-article-cta-box a {
  display: inline-block;
  background: var(--t99-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: background 0.2s var(--t99-ease);
}
.t99-article-cta-box a:hover { background: var(--t99-accent-dark); }

/* ------------------------- Article recette (ex: /recette-crepes) ------------------------- */
.t99-recipe-infobar {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 0.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  box-sizing: border-box;
}
.t99-recipe-infobar span {
  background: var(--t99-accent-soft);
  color: var(--t99-accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.t99-recipe-ingredients {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.2rem;
}
.t99-recipe-ingredients li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--t99-line);
}
.t99-recipe-ingredients li::before {
  content: "🥞";
  flex-shrink: 0;
}

.t99-recipe-steps {
  counter-reset: t99-step;
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
}
.t99-recipe-steps li {
  counter-increment: t99-step;
  position: relative;
  padding: 0.3rem 0 1.2rem 2.8rem;
}
.t99-recipe-steps li::before {
  content: counter(t99-step);
  position: absolute;
  left: 0; top: 0.2rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--t99-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t99-recipe-tips {
  background: var(--t99-bg-alt);
  border-left: 4px solid var(--t99-accent);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 1.3rem;
}
.t99-recipe-tips p:last-child { margin-bottom: 0; }

.t99-recipe-faq-item {
  border-bottom: 1px solid var(--t99-line);
  padding: 1.3rem 0;
}
.t99-recipe-faq-item:last-child { border-bottom: none; }
.t99-recipe-faq-item h3 { margin: 0 0 0.5rem; }
.t99-recipe-faq-item p { margin: 0; }

.t99-article-cta-secondary {
  text-align: center;
  margin: -1.5rem 0 3rem;
}
.t99-article-cta-secondary a {
  display: inline-block;
  color: var(--t99-accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.t99-free-badge {
  display: inline-block;
  background: var(--t99-accent-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.t99-book-contents {
  background: var(--t99-bg-alt);
  border: 1px solid var(--t99-line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 1.3rem;
}
.t99-book-contents ul { margin: 0.6rem 0 0; }
.t99-book-contents li { margin-bottom: 0.4rem; }

.t99-recipe-toc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--t99-bg-alt);
  border-radius: 10px;
  font-size: 0.92rem;
  text-align: center;
  box-sizing: border-box;
}
.t99-recipe-toc p { margin: 0 0 0.7rem; font-weight: 700; color: var(--t99-ink); }
.t99-recipe-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
}
.t99-recipe-toc li { margin: 0; }
.t99-recipe-toc a {
  display: inline-block;
  color: var(--t99-accent-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--t99-line);
}
.t99-recipe-toc a:hover { background: var(--t99-accent-soft); border-color: var(--t99-accent); }

/* ============================== RESPONSIVE ================================= */
@media (max-width: 1080px) {
  .t99-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .t99-post-grid { grid-template-columns: 1fr; }
  .t99-blog-hero { padding: 4.5rem 1.25rem 3rem; }
  .t99-article-body { font-size: 1rem; }
  .t99-recipe-ingredients { grid-template-columns: 1fr; }
}
