@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #6366f1;
  --accent-light: #e0e7ff;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --line: #e2e8f0;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 6px -1px rgba(15,23,42,.07), 0 10px 30px -5px rgba(15,23,42,.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }

.blog-topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(226,232,240,.7);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  color: var(--muted);
  transition: color .2s;
}
.blog-back:hover { color: var(--text); }
.blog-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.blog-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-logo-icon svg { width: 18px; height: 18px; }

.blog-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

/* Index page */
.blog-hero {
  text-align: center;
  margin-bottom: 40px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}
.blog-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.blog-grid {
  display: grid;
  gap: 20px;
}
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.blog-card-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.tag-vtc { background: var(--primary-light); color: var(--primary-dark); }
.tag-sante { background: var(--blue-light); color: #1d4ed8; }
.tag-immo { background: var(--accent-light); color: #4338ca; }
.blog-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}
.blog-card p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 14px;
}
.blog-card-meta {
  font-size: .82rem;
  color: var(--muted);
}

/* Article page */
.article-header {
  margin-bottom: 32px;
}
.article-tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.article-header h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.article-meta {
  font-size: .88rem;
  color: var(--muted);
}
.article-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
}
.article-body p {
  margin: 0 0 16px;
  color: #334155;
}
.article-body ul, .article-body ol {
  margin: 0 0 16px;
  padding-left: 1.3rem;
  color: #334155;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: #f0fdfa;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #334155;
}
.article-body blockquote p { margin: 0; }

.article-cta {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f0fdfa, #e0e7ff);
  border: 1px solid rgba(45,212,191,.3);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta p {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0d8a80);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13,148,136,.3);
}

.blog-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: .84rem;
  color: var(--muted);
}
.blog-footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.blog-footer a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .article-body { padding: 24px 18px; }
  .blog-topbar-inner { padding: 0 10px; }
}
