/* Extrait des 21 articles le 2026-07-23 — bloc <style> inline identique,
   deplace ici pour supprimer la duplication en base. Ne pas editer sans
   verifier le rendu des articles concernes. */
.tf-blog-article {
 -primary: #0C2C47;
 -accent: #00838F;
 -accent-light: #e0f2f1;
 -text-main: #334155;
 -text-muted: #64748b;
 -bg-body: #f8fafc;
 -bg-card: #ffffff;
 -border-color: #e2e8f0;
 font-family: 'Inter', system-ui, -apple-system, sans-serif;
 color: var(--text-main);
 line-height: 1.7;
 webkit-font-smoothing: antialiased;
}

.tf-blog-article .blog-hero { max-width: 1200px; margin: 40px auto 0; padding: 0 20px; }
.tf-blog-article .hero-image-container {
 width: 100%; height: 420px; border-radius: 24px; overflow: hidden;
 position: relative; box-shadow: 0 20px 40px rgba(12, 44, 71, 0.08);
 background: linear-gradient(135deg, #0C2C47 0%, #00838F 100%);
}
.tf-blog-article .hero-placeholder {
 width: 100%; height: 100%;
 display: flex; align-items: center; justify-content: center;
 color: rgba(255,255,255,0.3); font-size: 18px; font-weight: 600;
}
.tf-blog-article .hero-overlay {
 position: absolute; inset: 0;
 background: linear-gradient(to top, rgba(12,44,71,0.4) 0%, transparent 50%);
}

.tf-blog-article .article-container {
 max-width: 1100px; margin: 40px auto 80px; padding: 0 20px;
 display: grid; grid-template-columns: 2fr 1fr; gap: 50px;
 position: relative; z-index: 10;
}

.tf-blog-article .main-content {
 background: var(--bg-card); padding: 50px 55px; border-radius: 20px;
 box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color);
}
.tf-blog-article .category-badge {
 display: inline-block; background: var(--accent-light); color: var(--accent);
 padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700;
 text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px;
}
.tf-blog-article h1 {
 font-size: 38px; font-weight: 900; color: var(--primary);
 line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 22px;
}
.tf-blog-article .meta-info {
 display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
 margin-bottom: 36px; padding-bottom: 18px;
 border-bottom: 1px solid var(--border-color);
 font-size: 13px; color: var(--text-muted);
}
.tf-blog-article .author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary); text-decoration: none; }
.tf-blog-article .author-avatar {
 width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
 display: flex; align-items: center; justify-content: center;
 color: white; font-weight: bold; font-size: 14px;
}

.tf-blog-article .content-body h2 {
 font-size: 26px; font-weight: 800; color: var(--primary);
 margin: 44px 0 18px; letter-spacing: -0.01em;
 padding-top: 12px; border-top: 2px solid var(--bg-body);
}
.tf-blog-article .content-body h2:first-of-type { border-top: none; }
.tf-blog-article .content-body h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin: 28px 0 14px; }
.tf-blog-article .content-body p { margin-bottom: 20px; font-size: 16.5px; }
.tf-blog-article .content-body strong { color: var(--primary); font-weight: 700; }
.tf-blog-article .content-body ul, .tf-blog-article .content-body ol { margin: 0 0 24px 24px; font-size: 16.5px; }
.tf-blog-article .content-body li { margin-bottom: 8px; }

.tf-blog-article .expert-callout {
 background: linear-gradient(145deg, rgba(0,131,143,0.06), rgba(0,131,143,0.02));
 border-left: 4px solid var(--accent); padding: 28px 28px 28px 32px;
 border-radius: 0 12px 12px 0; margin: 36px 0;
}
.tf-blog-article .expert-callout-title {
 font-weight: 800; color: var(--accent); margin-bottom: 8px;
 font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tf-blog-article .expert-callout p { margin-bottom: 0; font-size: 15.5px; }

.tf-blog-article .formula-block {
 background: var(--primary); color: white; padding: 28px 32px;
 border-radius: 12px; margin: 32px 0; text-align: center;
}
.tf-blog-article .formula-block .formula { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 8px; }
.tf-blog-article .formula-block .formula-legend { font-size: 13px; opacity: 0.7; }

.tf-blog-article .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px -8px 32px; padding: 0 8px; }
.tf-blog-article .comparison-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 580px; font-size: 15px; }
.tf-blog-article .comparison-table th {
 background: var(--primary); color: white; padding: 12px 16px;
 text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tf-blog-article .comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.tf-blog-article .comparison-table tr:nth-child(even) td { background: #f9fafb; }
.tf-blog-article .comparison-table .bad { color: #dc2626; font-weight: 700; }
.tf-blog-article .comparison-table .good { color: #16a34a; font-weight: 700; }

.tf-blog-article .cta-inline {
 background: linear-gradient(135deg, var(--primary), #06182c);
 color: white; padding: 32px; border-radius: 16px; margin: 40px 0;
 display: flex; align-items: center; gap: 24px;
}
.tf-blog-article .cta-inline-text { flex: 1; }
.tf-blog-article .cta-inline-text h3 { color: white; margin: 0 0 8px; font-size: 20px; }
.tf-blog-article .cta-inline-text p { color: rgba(255,255,255,0.8); margin: 0; font-size: 15px; }
.tf-blog-article .btn-cta {
 display: inline-block; background: var(--accent); color: white !important;
 padding: 13px 26px; border-radius: 8px; font-weight: 700;
 text-decoration: none !important; transition: transform 0.2s, box-shadow 0.2s;
 white-space: nowrap; font-size: 15px;
}
.tf-blog-article .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,131,143,0.4); }

.tf-blog-article .sidebar { position: sticky; top: 80px; height: max-content; }
.tf-blog-article .toc-box {
 background: var(--bg-card); padding: 28px; border-radius: 16px;
 box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color);
}
.tf-blog-article .toc-title {
 font-size: 14px; font-weight: 800; color: var(--primary);
 margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tf-blog-article .toc-list { list-style: none; padding: 0; margin: 0; }
.tf-blog-article .toc-list li { margin-bottom: 10px; }
.tf-blog-article .toc-list a {
 color: var(--text-muted); text-decoration: none; font-size: 13.5px;
 font-weight: 500; transition: all 0.2s; display: flex; align-items: center;
}
.tf-blog-article .toc-list a::before {
 content: ""; display: inline-block; width: 4px; height: 4px;
 background: var(--border-color); border-radius: 50%; margin-right: 10px;
 transition: all 0.2s; flex-shrink: 0;
}
.tf-blog-article .toc-list a:hover { color: var(--accent); transform: translateX(3px); }
.tf-blog-article .toc-list a:hover::before { background: var(--accent); }
.tf-blog-article .toc-list a.active { color: var(--accent); font-weight: 700; }
.tf-blog-article .toc-list a.active::before { background: var(--accent); height: 14px; border-radius: 2px; }

.tf-blog-article .sidebar-cta {
 margin-top: 24px; background: linear-gradient(135deg, var(--primary), #06182c);
 padding: 28px; border-radius: 16px; color: white; text-align: center;
}
.tf-blog-article .sidebar-cta h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: white; }
.tf-blog-article .sidebar-cta p { font-size: 13px; opacity: 0.8; margin-bottom: 16px; line-height: 1.5; color: white; }

.tf-blog-article .author-box {
 display: flex; gap: 20px; padding: 32px;
 background: var(--bg-body); border-radius: 16px; margin-top: 44px;
 border: 1px solid var(--border-color);
}
.tf-blog-article .author-box-avatar {
 width: 64px; height: 64px; border-radius: 50%; background: var(--primary);
 display: flex; align-items: center; justify-content: center;
 color: white; font-weight: 800; font-size: 22px; flex-shrink: 0;
}
.tf-blog-article .author-box-name { font-weight: 800; color: var(--primary); font-size: 16px; margin-bottom: 4px; }
.tf-blog-article .author-box-title { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.tf-blog-article .author-box-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.tf-blog-article .share-bar {
 display: flex; align-items: center; gap: 12px;
 padding: 20px 0; margin-top: 36px; border-top: 1px solid var(--border-color);
}
.tf-blog-article .share-bar span { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tf-blog-article .share-btn {
 display: inline-flex; align-items: center; justify-content: center;
 width: 38px; height: 38px; border-radius: 8px; background: var(--bg-body);
 border: 1px solid var(--border-color); color: var(--text-muted);
 font-size: 16px; text-decoration: none; transition: all 0.2s;
}
.tf-blog-article .share-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

@media (max-width: 900px) {
 .tf-blog-article .article-container { grid-template-columns: 1fr; margin-top: 20px; gap: 30px; }
 .tf-blog-article .sidebar { position: static; }
 .tf-blog-article .main-content { padding: 30px 24px; }
 .tf-blog-article h1 { font-size: 28px; }
 .tf-blog-article .content-body h2 { font-size: 22px; }
 .tf-blog-article .hero-image-container { height: 240px; border-radius: 16px; }
 .tf-blog-article .cta-inline { flex-direction: column; text-align: center; }
 .tf-blog-article .blog-hero { margin-top: 20px; }
}

@media (max-width: 480px) {
 .tf-blog-article .blog-hero { margin-top: 12px; padding: 0 12px; }
 .tf-blog-article .hero-image-container { height: 180px; border-radius: 12px; }
 .tf-blog-article .article-container { margin-top: 16px; padding: 0 12px; gap: 24px; }
 .tf-blog-article .main-content { padding: 24px 18px; border-radius: 14px; }
 .tf-blog-article h1 { font-size: 24px; line-height: 1.2; margin-bottom: 16px; }
 .tf-blog-article .category-badge { font-size: 11px; padding: 4px 10px; margin-bottom: 12px; }
 .tf-blog-article .meta-info { gap: 8px; font-size: 12px; margin-bottom: 24px; padding-bottom: 14px; }
 .tf-blog-article .author-avatar { width: 32px; height: 32px; font-size: 12px; }
 .tf-blog-article .content-body h2 { font-size: 20px; margin: 32px 0 14px; }
 .tf-blog-article .content-body h3 { font-size: 18px; margin: 22px 0 10px; }
 .tf-blog-article .content-body p, .tf-blog-article .content-body ul, .tf-blog-article .content-body ol { font-size: 15px; }
 .tf-blog-article .formula-block { padding: 20px 16px; }
 .tf-blog-article .formula-block .formula { font-size: 16px; word-break: break-word; }
 .tf-blog-article .expert-callout { padding: 20px 16px 20px 20px; margin: 28px 0; }
 .tf-blog-article .cta-inline { padding: 24px 18px; gap: 16px; margin: 28px 0; }
 .tf-blog-article .btn-cta { padding: 12px 22px; font-size: 14px; width: 100%; text-align: center; }
 .tf-blog-article .comparison-table { font-size: 13px; }
 .tf-blog-article .comparison-table th { padding: 8px 10px; font-size: 11px; }
 .tf-blog-article .comparison-table td { padding: 8px 10px; }
 .tf-blog-article .author-box { flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; }
}

/* === UX FIX A: Links in body content === */
.tf-blog-article .content-body a {
  color: #00838F;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tf-blog-article .content-body a:hover {
  color: #006B76;
}

/* === UX FIX C: Table scroll indicator (mobile only) === */
.tf-blog-article .table-scroll {
  position: relative;
}
@media (max-width: 900px) {
  .tf-blog-article .table-scroll::after {
    content: "2192 défiler";
    display: block;
    text-align: right;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    opacity: 0.8;
  }
}

/* === UX FIX D: TOC sidebar readability === */
.tf-blog-article .toc-list a {
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.5;
}
.tf-blog-article .toc-title {
  color: #0C2C47 !important;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px !important;
}

/* === IMAGE STYLING === */
.tf-blog-article .content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  margin: 28px auto;
  display: block;
}
.tf-blog-article .content-body figure {
  margin: 28px 0;
  text-align: center;
}
.tf-blog-article .content-body figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
}

/* === RELATED ARTICLES BOX === */
.tf-blog-article .related-box {
  background: var(--bg-card);
  padding: 22px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  margin-top: 20px;
}
.tf-blog-article .related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tf-blog-article .related-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
}
.tf-blog-article .related-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.tf-blog-article .related-list a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}
.tf-blog-article .related-list a:hover {
  color: var(--accent);
}
.tf-blog-article .related-list a::before {
  content: "→ ";
  color: var(--accent);
  font-weight: 700;
}

/* === VOIR AUSSI / MAILLAGE BLOCK === */
.tf-blog-article .voir-aussi {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 36px 0;
}
.tf-blog-article .voir-aussi-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 12px;
}
.tf-blog-article .voir-aussi ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tf-blog-article .voir-aussi ul li a {
  display: inline-block;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
}
.tf-blog-article .voir-aussi ul li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
