/* ============================================================
   BLOG — Amili Services
   Styles dédiés aux pages /blog/ (article + index)
   Basé sur les tokens de la charte (tokens.css)
   ============================================================ */

.blog-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- En-tête d'article ---------- */
.article-head {
  padding: var(--s-8) 0 var(--s-6);
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__current { color: var(--metier); font-weight: 700; }

.blog-tag {
  display: inline-block;
  background: var(--metier-12);
  color: #993C1D;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: var(--s-5);
}

.article-title {
  font-size: clamp(30px, 6.5vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-5);
}
.article-title em {
  color: var(--metier);
  font-style: italic;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: 14px;
  color: var(--text-muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Corps d'article ---------- */
.article-body { padding-bottom: var(--s-9); }
.article-lead {
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-7);
}
.article-body h2 {
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--s-8) 0 var(--s-4);
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 800;
  margin: var(--s-6) 0 var(--s-3);
}
.article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a28;
  margin: 0 0 var(--s-5);
}
.article-body a:not(.btn) {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--metier);
}
.article-body strong { font-weight: 800; }

.article-list {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
}
.article-list li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.6;
  color: #2a2a28;
  margin-bottom: var(--s-4);
}
.article-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1D9E75;
  font-weight: 900;
}

/* ---------- Sommaire ---------- */
.toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-5) var(--s-6);
  margin: 0 0 var(--s-7);
}
.toc__label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--metier);
  margin: 0 0 var(--s-3);
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 2;
}
.toc a { color: #2a2a28; text-decoration: none; }
.toc a:hover { color: var(--metier); }

/* ---------- Encadré légal (version claire) ---------- */
.law-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--metier);
  border-radius: 0 14px 14px 0;
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
}
.law-box__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.law-box__head svg { width: 19px; height: 19px; color: var(--metier); }
.law-box__item {
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a28;
  margin-bottom: var(--s-3);
}
.law-box__item:last-child { margin-bottom: 0; }
.law-box__freq { color: var(--froid); font-weight: 800; }
.law-box__note { color: var(--metier); font-weight: 700; }

/* ---------- Bloc prestations ---------- */
.presta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-5) var(--s-6);
  margin: 0 0 var(--s-6);
}

/* ---------- CTA orange ---------- */
.blog-cta {
  background: var(--metier);
  border-radius: 18px;
  padding: var(--s-7) var(--s-6);
  text-align: center;
  margin: var(--s-8) 0 var(--s-6);
}
.blog-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--papier);
  color: #993C1D;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--s-4);
}
.blog-cta__badge svg { width: 15px; height: 15px; }
.blog-cta__title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.15;
  margin: 0 0 var(--s-5);
}
.blog-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.blog-cta__btn:hover { transform: translateY(-2px); }
.blog-cta__btn svg { width: 17px; height: 17px; }

/* ---------- Note auteur ---------- */
.author-note {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
}
.author-note__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}
.author-note__name { font-weight: 800; font-size: 16px; margin: 0 0 2px; }
.author-note__role { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- Index blog (liste articles) ---------- */
.blog-index-head { padding: var(--s-9) 0 var(--s-6); text-align: center; }
.blog-index-head h1 {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-4);
}
.blog-index-head h1 em { color: var(--metier); font-style: italic; }
.blog-index-head p { font-size: 18px; color: var(--text-muted); margin: 0; }

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-9);
}
.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--s-6);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--metier); }
.article-card__tag {
  display: inline-block;
  background: var(--metier-12);
  color: #993C1D;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--s-4);
}
.article-card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
}
.article-card__excerpt { font-size: 16px; line-height: 1.6; color: #2a2a28; margin: 0 0 var(--s-4); }
.article-card__meta { font-size: 13px; color: var(--text-muted); display: flex; gap: var(--s-5); }
.article-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
  color: var(--metier);
  margin-top: var(--s-4);
}

@media (min-width: 760px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
}
