/* Style partagé des pages de contenu (articles / blog) — Nova Confort Zone */
:root {
  color-scheme: light dark;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --bg: #f5f3ff;
  --surface: #ffffff;
  --surface-2: #f3f0ff;
  --text: #1f1b3a;
  --text-soft: #4b4670;
  --muted: #6b6690;
  --border: #e7e1ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121f;
    --surface: #201b33;
    --surface-2: #262040;
    --text: #f3f0ff;
    --text-soft: #c9c2e8;
    --muted: #9a93b8;
    --border: #342b52;
    --violet: #a78bfa;
    --violet-soft: #c4b5fd;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--violet); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--violet);
}
.brand span { font-size: 1.3rem; }
.header-cta {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  padding: 8px 16px;
  border-radius: 999px;
}

/* Article */
article { padding: 32px 0 8px; }
.eyebrow {
  color: var(--violet);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 8px 0 10px;
}
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
article h2 { font-size: 1.35rem; margin: 30px 0 10px; letter-spacing: -0.01em; }
article p, article li { color: var(--text-soft); }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--violet);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

/* Encart d'appel à l'action */
.cta-box {
  margin: 32px 0;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(140deg, #8b5cf6, #6d28d9);
  color: #fff;
  text-align: center;
}
.cta-box h3 { margin: 0 0 6px; font-size: 1.25rem; }
.cta-box p { color: rgba(255, 255, 255, 0.9); margin: 0 0 16px; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #6d28d9;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
}

/* Cartes (index) */
.card-grid { display: grid; gap: 16px; padding: 24px 0; }
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px var(--violet); }
.post-card h2 { margin: 4px 0 6px; font-size: 1.2rem; color: var(--text); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Articles liés */
.related { margin: 36px 0 8px; }
.related h2 { font-size: 1.1rem; }
.related a { display: block; margin: 6px 0; }

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.site-footer a { color: var(--muted); margin: 0 8px; }
