@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: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 98, 255, 0.16);
  background-image: url(/assets/brand/logo-mark.png);
  background-size: cover;
  background-position: center;
}
.blog-logo-icon svg { display: none; }
.blog-logo-icon .logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 1px;
}
.logo-name { font-weight: 800; font-size: 0.95rem; }
.logo-tagline {
  font-weight: 600;
  font-size: 0.62rem;
  color: #64748b;
}
@media (max-width: 480px) {
  .logo-tagline { display: none; }
}

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

/* 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-hero-link {
  margin-top: 12px;
}

/* Theme filters */
.blog-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.blog-filters-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.blog-filters-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}
#blog-filter-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.blog-filter-group {
  margin-bottom: 14px;
}
.blog-filter-group:last-of-type {
  margin-bottom: 8px;
}
.blog-filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.blog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.blog-filter-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.blog-filter-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}
.blog-filter-chip .blog-filter-count {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.75;
  min-width: 1.2em;
  text-align: center;
}
.blog-filter-chip.is-active .blog-filter-count {
  opacity: 0.9;
}
.blog-filter-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.45;
}
.blog-filter-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-weight: 600;
}
.blog-filter-reset {
  display: inline;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.blog-grid--filtered {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
@media (max-width: 640px) {
  .blog-grid--filtered {
    grid-template-columns: 1fr;
  }
}

.blog-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.blog-card-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-theme-chip {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-theme-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.blog-card.is-filtered-out {
  display: none;
}
.blog-card[hidden] {
  display: none !important;
}

.blog-section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f0fdfa 0%, #eef2ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.blog-section-cta-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.tag-all { background: #f1f5f9; color: #475569; }
.tag-canicule { background: #fef3c7; color: #b45309; }
.tag-seniors { background: #ede9fe; color: #6d28d9; }
.tag-voyage { background: #dbeafe; color: #1d4ed8; }
.tag-gaming { background: #fce7f3; color: #be185d; }
.tag-emprunteur { background: #e0e7ff; color: #4338ca; }
.tag-politique { background: #fee2e2; color: #b91c1c; }
.tag-economie { background: #ffedd5; color: #c2410c; }
.tag-cuisine { background: #fef9c3; color: #a16207; }

.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; }
.tag-animaux { background: #ffedd5; color: #c2410c; }
.tag-habitation { background: #ecfccb; color: #3f6212; }
.tag-auto { background: #e0e7ff; color: #3730a3; }
.tag-prevoyance { background: #fce7f3; color: #9d174d; }
.tag-pro { background: #f3e8ff; color: #6b21a8; }
.tag-patrimoine { background: #fef3c7; color: #92400e; }
.tag-actu { background: #fee2e2; color: #b91c1c; }

.article-body h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: #334155;
}
.article-faq {
  margin: 36px 0 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.article-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #fff;
  padding: 0 14px;
}
.article-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.article-faq-item summary::-webkit-details-marker { display: none; }
.article-faq-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-links {
  margin-top: 28px;
  padding: 20px 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
}
.article-links h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.article-links ul {
  margin: 0;
  padding-left: 1.2rem;
}
.article-links a {
  font-weight: 600;
}
.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-hero {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #0f172a;
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-hero figcaption,
.article-figure figcaption,
.article-gallery-item figcaption {
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--muted);
  background: #f8fafc;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.article-figure {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.article-gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
}
.article-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.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;
}

.article-bridge {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 88, 12, 0.25);
  background: linear-gradient(145deg, #fff7ed 0%, #f0fdfa 100%);
}
.article-bridge--mid {
  border-left: 4px solid #ea580c;
}
.article-bridge--footer {
  text-align: center;
  border-color: rgba(45, 212, 191, 0.35);
}
.article-bridge-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
}
.article-bridge-hook {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.55;
}
.article-bridge-question {
  margin: 0 0 16px;
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.4;
}
.article-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.article-bridge--mid .article-bridge-actions {
  justify-content: flex-start;
}
.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-soft {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.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; }
}
