/* Blog Discall — thème clair, lecture confortable. Partagé par l'index et les
   articles. Palette alignée sur la landing (bleu Discall). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --fg: #0f172a;
  --fg-soft: #475569;
  --fg-dim: #94a3b8;
  --accent: #2E74B5;
  --accent-2: #339dff;
  --accent-soft: rgba(46, 116, 181, 0.10);
  --border: rgba(15, 23, 42, 0.10);
  --max: 760px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header img { height: 28px; display: block; }
.site-nav { display: flex; gap: 24px; font-size: 14.5px; align-items: center; }
.site-nav a { color: var(--fg-soft); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn:hover { background: var(--accent-2); text-decoration: none; }

/* Index */
.blog-hero { padding: 64px 0 24px; text-align: center; }
.blog-hero h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1px; margin: 0 0 14px; font-weight: 800; }
.blog-hero p { color: var(--fg-soft); font-size: 18px; max-width: 600px; margin: 0 auto; }
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 30px 0 4px; }
.chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  color: var(--fg-soft); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 32px 0 72px; }
.post-card.hidden { display: none; }
.post-card[data-cat="taxi"] .cat { color: #E6A100; }
.post-card[data-cat="sante"] .cat { color: #0F766E; }
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured .cat::after { content: " · À la une"; color: var(--fg-dim); font-weight: 600; }
.post-card.featured h2 { font-size: clamp(22px, 3vw, 30px); max-width: 760px; }
.post-card.featured p { font-size: 16px; max-width: 720px; }
.post-card.featured .card-thumb img { aspect-ratio: 24 / 7; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px;
  padding: 0; overflow: hidden; background: var(--bg-soft); transition: transform .15s, box-shadow .15s; color: inherit; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(15,23,42,0.25); text-decoration: none; }
.card-thumb { display: block; background: #eef4fb; }
.card-thumb img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.post-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); padding: 20px 24px 0; }
.post-card h2 { font-size: 20px; line-height: 1.3; margin: 10px 0 10px; letter-spacing: -0.3px; padding: 0 24px; }
.post-card p { color: var(--fg-soft); font-size: 15px; margin: 0 0 14px; padding: 0 24px; }
.post-card .date { color: var(--fg-dim); font-size: 13px; padding: 0 24px 22px; margin-top: auto; }
.article-cover { margin: 6px 0 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.article-cover img { width: 100%; height: auto; display: block; aspect-ratio: 24 / 8; object-fit: cover; }

/* Article */
.article-head { padding: 56px 0 8px; }
.kicker { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); margin: 0 0 14px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 16px; font-weight: 800; }
.article-meta { color: var(--fg-dim); font-size: 14px; }
.article-body { padding: 20px 0 48px; font-size: 17.5px; }
.article-body h2 { font-size: 26px; letter-spacing: -0.4px; margin: 40px 0 12px; line-height: 1.25; }
.article-body h3 { font-size: 20px; margin: 28px 0 8px; }
.article-body p { margin: 0 0 20px; color: #1e293b; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; color: #1e293b; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--fg); }
.article-body blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--fg-soft); font-style: italic; }
.article-cta { margin: 40px 0 8px; padding: 26px 28px; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--border); }
.article-cta p { margin: 0 0 14px; color: var(--fg-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--fg-soft); font-size: 14px; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--accent); }
.site-footer .muted { color: var(--fg-dim); font-size: 13px; }

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .blog-hero { padding: 44px 0 12px; }
  .article-body { font-size: 17px; }
}
