/* ============================================================
   DUPLO CAPITAL — Articles longs du blog (guides piliers)
   Réutilisable par tous les articles blog-*.html de ce format.
   Complète style.css : ne redéfinit aucune variable de la charte.
   ============================================================ */

:root { --gold-a11y: #8A6420; }   /* or de marque assombri — contraste AA sur fond clair */

/* ===== BANDEAU « article en français uniquement » =====
   Affiché par défaut, masqué dès que la langue active est le français.
   Le data-lang est posé avant le premier rendu par le script inline du
   <head>, donc aucun clignotement pour les visiteurs francophones. */
.article-lang-note {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 14px 20px;
  background: rgba(201, 151, 58, 0.1);
  border: 1px solid rgba(201, 151, 58, 0.35);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.article-lang-note a { color: var(--gold-a11y); font-weight: 700; text-decoration: underline; }
html[data-lang="fr"] .article-lang-note { display: none; }

/* ===== HERO ===== */
.article-hero { background: rgba(201, 151, 58, 0.08); padding: 140px 24px 48px; text-align: center; }
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold-a11y); border: 1.5px solid var(--gold);
  border-radius: 50px; padding: 6px 18px; margin-bottom: 20px;
}
.article-h1 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(28px, 5vw, 46px); font-weight: 700; line-height: 1.18;
  color: #111; margin: 0 0 22px; text-wrap: balance;
}
.article-meta {
  font-size: 15px; line-height: 1.7; color: #6a6a6a; max-width: 680px;
  margin: 0 auto; font-style: normal;
}
.article-meta em { font-style: normal; }
.article-meta-facts {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 20px; font-size: 13px; font-weight: 600; color: #6a6a6a;
}
.article-meta-facts span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta-facts svg { flex-shrink: 0; color: var(--gold-a11y); }

/* ===== IMAGE DE COUVERTURE ===== */
.article-cover { max-width: 980px; margin: -20px auto 0; padding: 0 24px; }
.article-cover img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); background: #eee;
}

/* ===== SOMMAIRE ===== */
.article-toc {
  max-width: 820px; margin: 44px auto 0; padding: 28px 32px;
  background: #fafafa; border: 1px solid #ececec; border-radius: 14px;
}
.article-toc h2 {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-a11y); margin: 0 0 16px;
}
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin: 0 0 9px; padding-left: 30px; position: relative; }
.article-toc li::before {
  content: counter(toc); position: absolute; left: 0; top: 1px;
  font-size: 12px; font-weight: 800; color: var(--gold-a11y);
  width: 21px; height: 21px; border-radius: 50%; background: rgba(201, 151, 58, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.article-toc a { color: #333; font-size: 15px; line-height: 1.5; text-decoration: none; }
.article-toc a:hover { color: var(--gold-a11y); text-decoration: underline; }

/* ===== CORPS ===== */
.article-body { max-width: 820px; margin: 0 auto; padding: 8px 24px 64px; }
.article-body h2.blog-h2 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.25;
  color: #111; margin: 56px 0 18px; scroll-margin-top: 110px;
}
.article-body h3.blog-h3 {
  font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; line-height: 1.35;
  color: #1a1a1a; margin: 36px 0 14px; scroll-margin-top: 110px;
}
.article-body h4.blog-h4 {
  font-size: 17px; font-weight: 700; color: #1a1a1a;
  margin: 30px 0 12px; scroll-margin-top: 110px;
}
.article-body p.blog-intro {
  font-size: 19px; line-height: 1.75; color: #333; font-weight: 500; margin: 0 0 26px;
}
.article-body p.blog-text { font-size: 17px; line-height: 1.8; color: #444; margin: 0 0 20px; }
.article-body p.blog-text strong, .article-body li strong { color: #1a1a1a; font-weight: 700; }
.article-body a { color: var(--gold-a11y); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: #6d4c16; }

/* Listes */
.article-body ul.blog-list { list-style: none; padding: 0; margin: 0 0 24px; }
.article-body ul.blog-list li {
  position: relative; padding-left: 28px; margin-bottom: 13px;
  font-size: 17px; line-height: 1.75; color: #444;
}
.article-body ul.blog-list li::before {
  content: ''; position: absolute; left: 6px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.article-body ol.blog-numbered { padding: 0; margin: 0 0 24px; list-style: none; counter-reset: art; }
.article-body ol.blog-numbered li {
  counter-increment: art; position: relative; padding-left: 42px; margin-bottom: 16px;
  font-size: 17px; line-height: 1.75; color: #444;
}
.article-body ol.blog-numbered li::before {
  content: counter(art); position: absolute; left: 0; top: 2px;
  width: 27px; height: 27px; border-radius: 50%; background: var(--gold-a11y); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Encadrés */
.article-body .blog-callout {
  margin: 30px 0; padding: 22px 26px; background: rgba(201, 151, 58, 0.09);
  border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0;
}
.article-body .blog-callout p {
  margin: 0; font-size: 17px; line-height: 1.75; color: #2b2b2b; font-weight: 500;
}

/* Note de sources */
.article-body p.blog-sources {
  margin: 44px 0 0; padding-top: 24px; border-top: 1px solid #e8e8e8;
  font-size: 13.5px; line-height: 1.7; color: #6f6f6f;
}
.article-body p.blog-sources em { font-style: normal; }

/* ===== TABLEAUX — défilement horizontal sur mobile ===== */
.blog-table-wrap {
  margin: 28px 0 32px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 12px; border: 1px solid #ececec;
}
.blog-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.article-body table.blog-table {
  width: 100%; min-width: 520px; border-collapse: collapse; margin: 0; font-size: 15px;
}
.article-body table.blog-table th[scope="col"] {
  background: var(--gold-a11y); color: #fff; padding: 13px 16px;
  font-size: 13.5px; font-weight: 700; text-align: left; vertical-align: top;
}
.article-body table.blog-table td,
.article-body table.blog-table th[scope="row"] {
  padding: 12px 16px; color: #4a4a4a; border-bottom: 1px solid #f0f0f0;
  text-align: left; font-weight: 400; vertical-align: top; line-height: 1.6;
}
.article-body table.blog-table th[scope="row"] { color: #1a1a1a; font-weight: 600; }
.article-body table.blog-table tbody tr:last-child td,
.article-body table.blog-table tbody tr:last-child th { border-bottom: none; }
.article-body table.blog-table tbody tr:nth-child(even) { background: #fbfbfb; }

/* ===== CTA ===== */
.article-cta {
  max-width: 820px; margin: 0 auto 64px; padding: 44px 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 18px; text-align: center;
}
.article-cta-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: #fff; margin: 0 0 10px; }
.article-cta-sub { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); margin: 0 0 26px; }
.article-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article-cta-btn {
  display: inline-block; padding: 15px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 0.2s, background 0.2s;
}
.article-cta-btn.primary { background: var(--gold-a11y); color: #fff; }
.article-cta-btn.primary:hover { background: #6d4c16; transform: translateY(-2px); }
.article-cta-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.article-cta-btn.ghost:hover { border-color: #E8C176; color: #E8C176; transform: translateY(-2px); }

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .article-hero { padding: 120px 18px 36px; }
  .article-cover { padding: 0 18px; margin-top: -12px; }
  .article-cover img { border-radius: 12px; }
  .article-toc { margin: 32px 18px 0; padding: 22px 20px; border-radius: 12px; }
  .article-body { padding: 8px 18px 48px; }
  .article-body p.blog-intro { font-size: 17.5px; }
  .article-body p.blog-text,
  .article-body ul.blog-list li,
  .article-body ol.blog-numbered li { font-size: 16.5px; }
  .article-body .blog-callout { padding: 18px 20px; }
  .article-cta { margin: 0 18px 48px; padding: 34px 22px; border-radius: 14px; }
  .article-cta-btns { flex-direction: column; }
  .article-cta-btn { width: 100%; }
  .article-lang-note { margin: 0 18px 22px; }
}

/* ===== À LIRE AUSSI ===== */
.article-related { max-width: 820px; margin: 0 auto 72px; padding: 0 24px; }
.article-related h2 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(21px, 2.8vw, 26px); font-weight: 700; color: #111; margin: 0 0 22px;
}
.article-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-related-card {
  display: block; padding: 22px 20px; background: #fff; border: 1px solid #e6e6e6;
  border-radius: 12px; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.article-related-card:hover {
  border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
.article-related-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-a11y); margin-bottom: 9px;
}
.article-related-card h3 { font-size: 16px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin: 0 0 12px; }
.article-related-link { font-size: 14px; font-weight: 700; color: var(--gold-a11y); }
@media (max-width: 767px) {
  .article-related { padding: 0 18px; margin-bottom: 52px; }
  .article-related-grid { grid-template-columns: 1fr; }
}
