/* ============================================================
   SAINTÉ OF COURSE — blog.css
   Styles pour blog.html et article.html
   ============================================================ */

/* ── HERO BLOG ────────────────────────────────────────────── */
.blog-hero {
  padding: calc(60px + 3rem) 2rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.blog-hero-sub {
  color: var(--soc-texte-muted); font-size: .95rem; margin-bottom: 1.75rem;
}

/* ── FILTRES CATÉGORIES ───────────────────────────────────── */
.cat-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat-btn {
  background: transparent; border: 1px solid var(--soc-bordure);
  color: var(--soc-texte-muted); border-radius: 20px;
  padding: .35rem 1rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: all .15s; font-family: var(--soc-font-corps);
}
.cat-btn:hover  { border-color: var(--soc-rouge); color: var(--soc-rouge); }
.cat-btn.active { background: var(--soc-rouge); border-color: var(--soc-rouge); color: #fff; }

/* ── GRILLE ARTICLES ──────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.articles-loading, .articles-empty {
  color: var(--soc-texte-muted); font-size: .9rem;
  padding: 2rem 0; grid-column: 1/-1; text-align: center;
}

/* ── CARTE ARTICLE ────────────────────────────────────────── */
.article-card {
  background: var(--soc-carte); border: 1px solid var(--soc-bordure);
  border-radius: 8px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.article-card:hover { border-color: var(--soc-rouge); transform: translateY(-2px); }

/* Carte featured (premier article) */
.article-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.article-card.featured .article-cover { flex: 0 0 45%; max-height: 280px; }
.article-card.featured .article-body  { padding: 2rem; }
.article-card.featured .article-title { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }

/* Cover */
.article-cover {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--soc-bordure); overflow: hidden; flex-shrink: 0;
}
.article-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .article-cover img { transform: scale(1.03); }
.article-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: linear-gradient(135deg, #1a0008, #1c1c1c);
}

/* Badge catégorie */
.article-cat {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--soc-rouge); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .6rem; border-radius: 3px;
}

/* Corps */
.article-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.article-title {
  font-family: var(--soc-font-display);
  font-size: 1.2rem; letter-spacing: .03em;
  color: var(--soc-texte); margin-bottom: .6rem; line-height: 1.2;
}
.article-excerpt {
  color: var(--soc-texte-muted); font-size: .85rem; line-height: 1.6;
  flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--soc-texte-muted);
  border-top: 1px solid var(--soc-bordure); padding-top: .75rem;
}
.article-author { font-weight: 600; }

/* ── PAGE ARTICLE COMPLET ─────────────────────────────────── */
.article-full-cover {
  width: 100%; max-height: 420px; overflow: hidden;
}
.article-full-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-full-body {
  max-width: 760px; margin: 0 auto; padding: 2.5rem 2rem 5rem;
}

.article-full-header { margin-bottom: 2.5rem; }
.article-full-header .article-cat { position: static; display: inline-block; margin-bottom: .75rem; }

.article-full-title {
  font-family: var(--soc-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1; letter-spacing: .02em;
  color: var(--soc-texte); margin-bottom: .75rem;
}
.article-full-meta {
  display: flex; gap: .75rem; align-items: center;
  font-size: .82rem; color: var(--soc-texte-muted);
}

/* Contenu de l'article */
.article-full-content {
  font-size: 1rem; line-height: 1.85; color: #D0D0D0;
}
.article-full-content h2 {
  font-family: var(--soc-font-display);
  font-size: 1.8rem; letter-spacing: .03em;
  color: var(--soc-texte); margin: 2rem 0 .75rem;
}
.article-full-content h3 {
  font-family: var(--soc-font-display);
  font-size: 1.3rem; letter-spacing: .03em;
  color: var(--soc-texte); margin: 1.5rem 0 .5rem;
}
.article-full-content p  { margin-bottom: 1.1rem; }
.article-full-content ul,
.article-full-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-full-content li { margin-bottom: .4rem; }
.article-full-content strong { font-weight: 700; color: var(--soc-texte); }
.article-full-content em     { font-style: italic; color: #aaa; }
.article-full-content blockquote {
  border-left: 3px solid var(--soc-rouge);
  margin: 1.5rem 0; padding: .75rem 1.25rem;
  background: rgba(200,16,46,.07);
  color: #bbb; font-style: italic; border-radius: 0 5px 5px 0;
}
.article-full-content a { color: var(--soc-rouge); }
.article-full-content a:hover { text-decoration: underline; }
.article-full-content hr {
  border: none; border-top: 1px solid var(--soc-bordure); margin: 2rem 0;
}
.article-full-content img {
  max-width: 100%; border-radius: 6px; margin: 1rem 0;
}

.article-full-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--soc-bordure); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .article-card.featured { flex-direction: column; }
  .article-card.featured .article-cover { flex: none; max-height: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: calc(60px + 2rem); }
}
