/* ============================================
   Mvivibe — styles des articles
   Complète theme.css (variables, nav, boutons, cartes)
   ============================================ */

/* ---------- Liste des articles (/article) ---------- */
.article-card .card-media::after{ content:"Lire l'article →"; }
.article-card .card-body{ display:flex; flex-direction:column; }
.article-card .card-body h3{ margin-bottom:8px; }
.article-card .card-body p{ margin-bottom:12px; }
.article-card .meta{ font-size:12.5px; color:var(--text-muted); margin-top:auto; }

.articles-empty{
  text-align:center; padding:56px 24px;
  border:1px dashed var(--border); border-radius:var(--radius-lg);
  background:var(--surface); color:var(--text-muted);
}
.articles-empty strong{ display:block; font-size:18px; color:var(--text); margin-bottom:6px; }

/* ---------- Page article ---------- */
.article-wrap{ max-width:760px; margin:0 auto; padding:48px 24px 8px; }

.breadcrumb{
  display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center;
  font-size:13.5px; color:var(--text-muted); margin-bottom:22px;
}
.breadcrumb a{ color:var(--text-muted); transition:color .15s ease; }
.breadcrumb a:hover{ color:var(--primary); }
.breadcrumb .sep{ opacity:.5; }

.article-header h1{
  font-size:clamp(28px,4.4vw,44px); font-weight:800; margin:10px 0 16px;
  animation:fade-in-up .6s .06s ease both;
}
.article-lead{
  font-size:19px; line-height:1.6; color:var(--text-muted); margin-bottom:20px;
  animation:fade-in-up .6s .14s ease both;
}
.article-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px;
  font-size:13.5px; color:var(--text-muted);
  padding-bottom:22px; border-bottom:1px solid var(--border-soft);
}
.article-meta > * + *::before{ content:"·"; margin-right:14px; opacity:.6; }

.article-cover{
  margin:28px 0 8px; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow);
  aspect-ratio:16/9; background:var(--surface-2);
}
.article-cover img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Corps de l'article (.prose) ---------- */
.prose{ font-size:17px; line-height:1.78; color:var(--text); margin-top:28px; }
.prose > *:first-child{ margin-top:0; }
.prose p{ color:var(--text); margin:0 0 1.2em; }
.prose h2{
  font-size:clamp(22px,2.8vw,28px); font-weight:800;
  margin:2em 0 .6em; scroll-margin-top:90px;
}
.prose h3{ font-size:20px; font-weight:700; margin:1.7em 0 .5em; scroll-margin-top:90px; }
.prose a{
  color:var(--primary); font-weight:500;
  text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
}
.prose a:hover{ color:var(--primary-dark); }
.prose strong{ color:var(--text); font-weight:700; }
.prose ul, .prose ol{ margin:0 0 1.3em; padding-left:1.4em; color:var(--text); }
.prose li{ margin-bottom:.45em; }
.prose li::marker{ color:var(--primary); }
.prose hr{ border:0; border-top:1px solid var(--border); margin:2.4em 0; }

.prose blockquote{
  margin:1.6em 0; padding:16px 22px;
  border-left:4px solid var(--primary); background:var(--primary-soft);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p{ margin:0; color:var(--text); font-style:italic; }
.prose blockquote cite{ display:block; margin-top:8px; font-size:13.5px; font-style:normal; color:var(--text-muted); }

.prose code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.88em; background:var(--surface-2); border:1px solid var(--border);
  padding:2px 6px; border-radius:5px;
}
.prose pre{
  margin:1.6em 0; padding:18px 20px; overflow-x:auto;
  background:#0f172a; color:#e2e8f0; border-radius:var(--radius);
  font-size:14px; line-height:1.65; box-shadow:var(--shadow);
}
.prose pre code{ background:none; border:0; padding:0; color:inherit; font-size:inherit; }

.prose figure{ margin:1.8em 0; }
.prose figure img{
  width:100%; height:auto; border-radius:var(--radius);
  border:1px solid var(--border); box-shadow:var(--shadow);
}
.prose figcaption{ margin-top:10px; text-align:center; font-size:13.5px; color:var(--text-muted); }

.table-wrap{ margin:1.6em 0; overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); }
.prose table{ width:100%; border-collapse:collapse; font-size:15px; line-height:1.5; }
.prose th, .prose td{ padding:11px 14px; text-align:left; border-bottom:1px solid var(--border-soft); }
.prose th{ background:var(--surface-2); font-weight:700; white-space:nowrap; }
.prose tr:last-child td{ border-bottom:0; }

/* Sommaire (optionnel) */
.toc{
  margin:0 0 2em; padding:18px 22px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
}
.toc strong{ display:block; font-size:14px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin-bottom:8px; }
.toc ol{ margin:0; padding-left:1.2em; }
.toc li{ margin-bottom:.3em; font-size:15.5px; }

/* Encadrés : .note (vert), .note.info (bleu), .note.warn (orange) */
.note{
  margin:1.6em 0; padding:16px 20px;
  border-left:4px solid var(--accent); background:var(--accent-soft);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.note > :last-child{ margin-bottom:0; }
.note .note-title{ display:block; font-weight:700; margin-bottom:4px; color:var(--text); }
.note.info{ border-left-color:var(--primary); background:var(--primary-soft); }
.note.warn{ border-left-color:#d97706; background:#fef3e2; }

/* ---------- Pied d'article ---------- */
.article-footer{
  max-width:760px; margin:0 auto; padding:8px 24px 0;
}
.article-footer .back{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600; font-size:14.5px; color:var(--primary);
  padding:20px 0 4px;
}
.article-footer .back:hover{ color:var(--primary-dark); }
.article-cta{ padding-top:40px; }

@media (max-width:600px){
  .article-wrap{ padding-top:32px; }
  .prose{ font-size:16.5px; }
  .article-lead{ font-size:17.5px; }
}
