/* École Lumina — Le Blog : design system (2026-06-06) */

:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --text: #2E2838;
  --text-muted: #6B6478;
  --violet: #6D5FA8;
  --violet-deep: #564A8C;
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gold: #C9A227;
  --border: #E9E3F2;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(109, 95, 168, 0.12);
  --shadow-soft: 0 3px 14px rgba(109, 95, 168, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, .brand { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ---- Barre de navigation ---- */
.topbar {
  background: var(--grad);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .brand {
  color: #fff;
  font-size: 1.35em;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.4px;
}
.topbar .brand span { color: #F5E6B8; font-style: italic; }
.topbar .site-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.85em;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 200ms ease-out;
  min-height: 24px;
}
.topbar .site-link:hover { background: rgba(255,255,255,0.15); }

/* ---- Hero (index) ---- */
.hero {
  position: relative;
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 0 20px;
}
.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-text { padding: 44px 40px; align-self: center; }
.hero-text h1 { font-size: 2.3em; line-height: 1.15; margin: 0 0 14px; color: var(--violet-deep); }
.hero-text p { color: var(--text-muted); margin: 0 0 22px; }
.hero-img { min-height: 320px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Cards d'articles ---- */
.posts {
  max-width: 1080px;
  margin: 40px auto 56px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.section-title {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 0 20px;
  font-size: 1.7em;
  color: var(--violet-deep);
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body a.title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--violet-deep);
  text-decoration: none;
}
.card-body a.title:hover { color: var(--violet); }
.card-body p { margin: 0; color: var(--text-muted); font-size: 0.92em; }
.card-body .date { color: #9A93A8; font-size: 0.8em; margin-top: auto; }

/* ---- Page article ---- */
article.post-page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0 0 48px;
  overflow: hidden;
}
.post-wrap { padding: 28px 20px 56px; }
article.post-page .post-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
article.post-page .inner { padding: 36px 44px 0; }
article.post-page h1 { font-size: 2.15em; line-height: 1.18; margin: 0 0 12px; color: var(--violet-deep); }
article.post-page h2 { font-size: 1.5em; color: var(--violet-deep); margin-top: 1.9em; }
article.post-page h3 { font-size: 1.15em; color: var(--violet); margin-top: 1.5em; font-family: 'Nunito Sans', sans-serif; font-weight: 700; }
article.post-page a { color: var(--violet); }
.byline {
  color: var(--text-muted);
  font-size: 0.88em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 10px;
}
figure.schema { margin: 32px 0; text-align: center; }
figure.schema img, figure.schema svg { max-width: 100%; height: auto; }
figure.schema figcaption { color: var(--text-muted); font-size: 0.85em; margin-top: 8px; }

/* ---- FAQ ---- */
.faq-block { background: #F6F2FB; border-radius: var(--radius); padding: 8px 28px 18px; margin-top: 28px; }

/* ---- CTA livre ---- */
.cta-button {
  display: inline-block;
  background: var(--grad);
  color: #fff !important;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 1.02em;
  margin: 12px 0;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- Lead magnet ---- */
.lead-magnet {
  background: linear-gradient(135deg, #F4F0FC 0%, #FBF4E4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 40px 0;
}
.lead-magnet h2, .lead-magnet h3 {
  margin: 0 0 6px;
  font-size: 1.45em;
  color: var(--violet-deep);
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.lead-magnet p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.95em; }
.lm-form { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 16px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: #fff;
}
.lm-form input[type="email"]:focus { outline: 3px solid rgba(109, 95, 168, 0.35); border-color: var(--violet); }
.lm-form button {
  min-height: 48px;
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 180ms ease-out;
}
.lm-form button:hover { transform: translateY(-1px); }
.lm-form button:disabled { opacity: 0.5; cursor: default; transform: none; }
.lm-msg { margin-top: 12px; font-size: 0.92em; display: none; }
.lm-msg.ok { display: block; color: #2E7D32; }
.lm-msg.err { display: block; color: #C62828; }
.lm-hp { position: absolute; left: -9999px; }

/* ---- Footer ---- */
footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85em;
  padding: 34px 16px 40px;
}
footer a { color: var(--violet); }

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-img { min-height: 220px; order: -1; }
  .hero-text { padding: 28px 24px 32px; }
  .hero-text h1 { font-size: 1.75em; }
  article.post-page .inner { padding: 26px 22px 0; }
  article.post-page h1 { font-size: 1.65em; }
  .post-wrap { padding: 16px 12px 40px; }
}

/* ---- Fil d'Ariane ---- */
.breadcrumb { font-size: 0.82em; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--violet); text-decoration: none; }
.breadcrumb span { color: #9A93A8; }

/* ---- A lire aussi ---- */
.related { background: #F6F2FB; border-radius: var(--radius); padding: 18px 28px 22px; margin-top: 36px; }
.related h2 { margin: 4px 0 10px; font-size: 1.25em; }
.related ul { margin: 0; padding-left: 20px; }
.related li { margin: 8px 0; }
