/* ==============================================================
   PasteurConnect Blog — Style éditorial
   ============================================================== */

:root {
  --indigo: #4B39EF;
  --indigo-dark: #241B7A;
  --indigo-darker: #150F4F;
  --indigo-soft: #EDEBFF;
  --indigo-mid: #C9C2FB;
  --amber: #F5A623;
  --emerald: #16B978;
  --text: #1A1730;
  --text-dim: #52526B;
  --border: #EAE8FA;
  --bg: #FAFAFE;
  --card: #FFFFFF;
  --font-display: 'Newsreader', serif;
  --font-body: 'Sora', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--indigo-darker); }

/* ---------- Header ---------- */
header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 10px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--indigo-darker); }
.brand-name .blog-tag { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--indigo); display: block; margin-top: 1px; }
.header-cta { background: var(--indigo); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 100px; font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .brand-name { font-size: 13.5px; }
  .brand-name .blog-tag { font-size: 9px; letter-spacing: 1px; }
  .header-cta { padding: 8px 12px; font-size: 11px; }
}

/* ---------- Hero (dernier article) ---------- */
.hero-article { display: block; text-decoration: none; color: inherit; margin: 36px 0 48px; }
.hero-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 20px; background: var(--indigo-soft); }
.hero-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--indigo); margin-top: 24px; }
.hero-title { font-size: clamp(26px, 4vw, 40px); font-style: italic; line-height: 1.25; margin-top: 10px; }
.hero-excerpt { font-size: 15px; color: var(--text-dim); margin-top: 12px; max-width: 640px; line-height: 1.7; }
.hero-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; font-weight: 600; }

/* ---------- Grille d'articles ---------- */
.section-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; padding-top: 28px; border-top: 1px solid var(--border); }
.articles-grid { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 50px; }
.articles-grid .article-card { flex: 1 1 280px; }

.article-card { text-decoration: none; color: inherit; display: block; }
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; background: var(--indigo-soft); }
.article-card .cat-title { font-family: var(--font-display); font-style: italic; font-size: 18px; margin-top: 14px; line-height: 1.35; }
.article-card .cat-excerpt { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .cat-meta { font-size: 11px; color: var(--text-dim); margin-top: 8px; font-weight: 600; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.empty-state .icon { font-size: 34px; margin-bottom: 14px; }

/* ---------- Article (page complète) ---------- */
.article-hero-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 0 0 24px 24px; }
.article-header { max-width: 720px; margin: 0 auto; padding: 36px 24px 0; text-align: center; }
.article-back { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--indigo); text-decoration: none; margin-bottom: 18px; }
.article-title { font-size: clamp(28px, 5vw, 44px); font-style: italic; line-height: 1.25; }
.article-meta { font-size: 13px; color: var(--text-dim); margin-top: 16px; font-weight: 600; }

.article-body { max-width: 680px; margin: 40px auto; padding: 0 24px; font-size: 17px; line-height: 1.85; color: #2A2745; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 25px; font-style: italic; margin: 38px 0 16px; color: var(--indigo-darker); }
.article-body h3 { font-size: 20px; margin: 30px 0 12px; color: var(--indigo-darker); }
.article-body blockquote { border-left: 3px solid var(--indigo); padding-left: 20px; margin: 28px 0; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--indigo-darker); }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: 14px; margin: 28px 0; }
.article-body a { color: var(--indigo); text-decoration: underline; }

.cta-block { max-width: 680px; margin: 56px auto; padding: 0 24px; }
.cta-inner { background: linear-gradient(155deg, var(--indigo-darker) 0%, var(--indigo) 100%); color: #fff; border-radius: 20px; padding: 36px 32px; text-align: center; }
.cta-inner h3 { color: #fff; font-size: 22px; font-style: italic; }
.cta-inner p { color: #D6D8F7; font-size: 13.5px; margin: 12px auto 22px; max-width: 420px; line-height: 1.65; }
.cta-inner a { background: var(--emerald); color: #fff; text-decoration: none; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 14px; display: inline-block; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-dim); }
.footer-inner a { color: var(--indigo); font-weight: 600; text-decoration: none; }
