/* ============================================================
   BTX CONSEIL - Styles des articles (dossier /blog/)
   Complète style.css. Charte graphique version 1 - juillet 2026.
   Règles : orange graphique (#FF7303) jamais en texte, texte en
   bleu, texte courant ou orange-texte (#B85200). Aucun contenu
   masqué en attente de JavaScript.
   ============================================================ */

/* --- Accessibilité --- */
.evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--btx-bleu); color: #fff; padding: 12px 20px; z-index: 2000;
  font-weight: 700;
}
.evitement:focus { left: 16px; top: 16px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--btx-bleu); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --- En-tête de page --- */
.page-hero {
  background: var(--btx-creme);
  padding: 140px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 90% 50%, rgba(255,115,3,0.06) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 24ch; margin-top: 8px; }
.page-hero .chapeau { color: var(--btx-texte); font-size: 1.1rem; max-width: 60ch; margin-top: 16px; }
.fil { font-size: 0.85rem; color: var(--btx-texte-secondaire); margin-bottom: 20px; max-width: none; }
.fil a { color: var(--btx-bleu); text-decoration: underline; }
.article-meta { font-size: 0.85rem; color: var(--btx-texte-secondaire); margin-top: 20px; }

/* --- Corps d'article --- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 {
  font-size: 1.45rem; margin: 48px 0 16px;
  border-left: 4px solid var(--btx-orange-graphique); padding-left: 16px;
}
.article-body h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; line-height: 1.75; max-width: none; }
.article-body a { color: var(--btx-bleu); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--btx-orange-texte); }
.article-body ul, .article-body ol { margin: 0 0 20px 0; padding: 0; }
.article-body ul li {
  list-style: none; position: relative; padding-left: 20px;
  margin-bottom: 10px; line-height: 1.7;
}
.article-body ul li::before { content: "-"; position: absolute; left: 4px; color: var(--btx-orange-texte); font-weight: 700; }
.article-body ol { counter-reset: etape; }
.article-body ol li {
  list-style: none; counter-increment: etape; position: relative;
  padding-left: 44px; margin-bottom: 14px; line-height: 1.7;
}
.article-body ol li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--btx-bleu); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.article-body strong { color: var(--btx-bleu); }

/* --- Encadrés --- */
.essentiel {
  background: var(--btx-creme); border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 40px;
}
.essentiel__titre, .encart__titre {
  font-family: var(--font-display); font-weight: 700; color: var(--btx-bleu);
  margin-bottom: 12px; font-size: 1.05rem;
}
.essentiel ul { margin-bottom: 0; }
.essentiel ul li:last-child { margin-bottom: 0; }
.encart {
  background: var(--btx-fond-alterne); border-left: 4px solid var(--btx-bleu);
  border-radius: var(--radius); padding: 24px 28px; margin: 28px 0;
}
.encart p:last-child, .encart ul:last-child { margin-bottom: 0; }

/* --- Sources, auteur, à lire aussi --- */
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--btx-bordure); }
.article-body .sources h2, .article-body .lire h2 {
  font-size: 1.05rem; border-left: 0; padding-left: 0; margin: 0 0 12px;
}
.sources li { font-size: 0.9rem; }
.article-cta {
  background: var(--btx-creme); border-radius: var(--radius-lg);
  padding: 36px 32px; margin-top: 56px; text-align: center;
}
.article-body .article-cta h2, .article-cta h2 {
  border-left: 0; padding-left: 0; margin: 0 0 12px; font-size: 1.35rem;
}
.article-cta p { max-width: 52ch; margin: 0 auto 24px; }
.article-cta .btn { text-decoration: none; }
.article-body .article-cta a.btn { color: var(--btx-texte); }
.cta__plus { margin: 18px auto 0 !important; font-size: 0.9rem; }
.cta__plus a { color: var(--btx-bleu); text-decoration: underline; }
.auteur {
  margin-top: 40px; padding: 24px 28px;
  border: 1px solid var(--btx-bordure); border-radius: var(--radius-lg);
}
.auteur p { margin-bottom: 8px; font-size: 0.95rem; }
.auteur p:last-child { margin-bottom: 0; }
.auteur__nom { font-family: var(--font-display); font-weight: 700; color: var(--btx-bleu); }
.lire { margin-top: 48px; }
.lire__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-body a.lire__carte {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  padding: 18px 20px; border: 1px solid var(--btx-bordure); border-radius: var(--radius);
  background: var(--blanc-pur);
}
.article-body a.lire__carte:hover { border-color: var(--btx-bleu); }
.lire__cat, .article-card__cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--btx-orange-texte); font-family: var(--font-display);
}
.lire__titre { font-family: var(--font-display); font-weight: 600; color: var(--btx-bleu); line-height: 1.35; }

/* --- Page d'accueil des articles --- */
.theme { margin-bottom: 56px; }
.theme h2 { font-size: 1.5rem; }
.theme__sous { color: var(--btx-texte-secondaire); margin: 8px 0 24px; }
.theme__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
a.article-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--blanc-pur); border: 1px solid var(--btx-bordure);
  border-radius: var(--radius-lg); padding: 26px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
a.article-card:hover { border-color: var(--btx-bleu); box-shadow: var(--shadow-sm); }
.article-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--btx-bleu); line-height: 1.3; }
.article-card__desc { font-size: 0.92rem; line-height: 1.6; color: var(--btx-texte); flex: 1; }
.article-card__meta { font-size: 0.8rem; color: var(--btx-texte-secondaire); }

@media (max-width: 900px) {
  .theme__grille, .lire__grille { grid-template-columns: 1fr; }
  .page-hero { padding: 124px 0 40px; }
  .essentiel, .article-cta { padding: 24px 20px; }
}
