/* ============================================================
   OPENDRIVE — BLOG
   Liste d'articles (home.php) et article seul (single.php)
   S'appuie sur les variables de opendrive.css
   ============================================================ */

.od-blog, .od-blog *, .od-blog *::before, .od-blog *::after { box-sizing: border-box; }
.od-blog { font-family: var(--od-font-body); color: var(--od-text); line-height: 1.6; }
.od-blog img { display: block; max-width: 100%; height: auto; }
.od-blog a { color: inherit; text-decoration: none; }
.od-blog ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Bandeau ---------- */
.od-blog-hero { background: linear-gradient(135deg, #0A0F1E, #0F1E3A); padding: 64px 32px 58px; position: relative; overflow: hidden; }
.od-blog-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(216,31,38,0.18), transparent 70%); pointer-events: none; }
.od-blog-hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.od-blog-eyebrow { font-family: var(--od-font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--od-red); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.od-blog-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--od-red); }
.od-blog-hero h1 { font-family: var(--od-font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -0.03em; color: #fff; margin: 0 0 16px; max-width: 800px; }
.od-blog-hero h1 .accent { color: var(--od-red); }
.od-blog-hero p { font-size: clamp(15px, 1.2vw, 17px); color: rgba(255,255,255,0.72); max-width: 620px; margin: 0; line-height: 1.6; }

/* ---------- Liste ---------- */
.od-blog-list { padding: 64px 32px 88px; background: var(--od-bg); }
.od-blog-list-inner { max-width: 1120px; margin: 0 auto; }
.od-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.od-post-card { background: #fff; border: 1px solid var(--od-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.od-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,0.09); border-color: var(--od-blue); }
.od-post-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--od-bg-dark); display: block; }
.od-post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.od-post-card:hover .od-post-card-img img { transform: scale(1.06); }
.od-post-card-cat { position: absolute; top: 12px; left: 12px; background: var(--od-red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; z-index: 2; }
.od-post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.od-post-card-meta { font-family: var(--od-font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--od-text-dim); margin-bottom: 10px; }
.od-post-card h2 { font-family: var(--od-font-display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; color: var(--od-text); margin: 0 0 10px; }
.od-post-card p { font-size: 14px; line-height: 1.65; color: var(--od-text-dim); margin: 0 0 18px; flex: 1; }
.od-post-card-link { font-size: 13px; font-weight: 700; color: var(--od-text); display: inline-flex; align-items: center; gap: 8px; transition: color .2s, gap .2s; }
.od-post-card:hover .od-post-card-link { color: var(--od-blue); gap: 12px; }

.od-blog-empty { text-align: center; padding: 60px 20px; color: var(--od-text-dim); font-size: 15px; }

.od-blog-pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.od-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--od-border); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--od-text); transition: all .2s; }
.od-blog-pagination .page-numbers:hover { border-color: var(--od-blue); color: var(--od-blue); }
.od-blog-pagination .page-numbers.current { background: var(--od-text); border-color: var(--od-text); color: #fff; }

/* ---------- Article ---------- */
.od-article-hero { background: linear-gradient(135deg, #0A0F1E, #0F1E3A); padding: 58px 32px 52px; }
.od-article-hero-inner { max-width: 780px; margin: 0 auto; }
.od-article-hero h1 { font-family: var(--od-font-display); font-weight: 700; font-size: clamp(27px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin: 0 0 18px; }
.od-article-meta { font-family: var(--od-font-mono); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.5); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.od-article-meta span.sep { color: rgba(255,255,255,0.25); }

.od-article-cover { max-width: 1000px; margin: -34px auto 0; padding: 0 32px; position: relative; z-index: 2; }
.od-article-cover img { width: 100%; border-radius: 14px; box-shadow: 0 22px 50px rgba(10,15,30,0.28); }

.od-article-wrap { padding: 52px 32px 80px; background: var(--od-bg); }
.od-article { max-width: 780px; margin: 0 auto; }
.od-article p { font-size: 16.5px; line-height: 1.8; color: #374151; margin: 0 0 20px; }
.od-article h2 { font-family: var(--od-font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.2; letter-spacing: -0.02em; color: var(--od-text); margin: 46px 0 16px; scroll-margin-top: 110px; }
.od-article h3 { font-family: var(--od-font-display); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--od-text); margin: 32px 0 10px; scroll-margin-top: 110px; }
.od-article ul, .od-article ol { margin: 0 0 22px; padding-left: 22px; }
.od-article ul { list-style: disc; }
.od-article ol { list-style: decimal; }
.od-article li { font-size: 16.5px; line-height: 1.8; color: #374151; margin-bottom: 7px; }
.od-article strong { font-weight: 700; color: var(--od-text); }
.od-article a { color: var(--od-blue); text-decoration: underline; text-underline-offset: 2px; }
.od-article a:hover { color: var(--od-blue-hover); }

.od-article blockquote { margin: 28px 0; padding: 22px 26px; background: var(--od-blue-soft); border-left: 3px solid var(--od-blue); border-radius: 0 10px 10px 0; }
.od-article blockquote p { margin: 0; font-size: 16px; line-height: 1.7; color: #1E3A8A; font-weight: 500; }

.od-article table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.od-article th { background: var(--od-bg-dark); color: #fff; font-family: var(--od-font-display); font-size: 13.5px; font-weight: 600; padding: 12px 14px; text-align: left; }
.od-article td { padding: 12px 14px; border-bottom: 1px solid var(--od-border); color: #374151; line-height: 1.55; }
.od-article tr:hover td { background: var(--od-bg-alt); }
.od-article-table-scroll { overflow-x: auto; margin: 26px 0; }
.od-article-table-scroll table { margin: 0; }

/* Sommaire */
.od-toc { background: var(--od-bg-alt); border: 1px solid var(--od-border); border-radius: 12px; padding: 24px 28px; margin: 0 0 36px; }
.od-toc-title { font-family: var(--od-font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--od-red); margin-bottom: 14px; }
.od-toc ol { margin: 0; padding-left: 20px; list-style: decimal; }
.od-toc li { font-size: 15px; line-height: 1.6; margin-bottom: 7px; color: var(--od-text-dim); }
.od-toc a { color: var(--od-text); text-decoration: none; font-weight: 500; }
.od-toc a:hover { color: var(--od-blue); text-decoration: underline; }

/* Chiffre mis en avant */
.od-stat { display: flex; align-items: center; gap: 18px; background: var(--od-bg-dark); border-radius: 12px; padding: 22px 26px; margin: 28px 0; }
.od-stat-value { font-family: var(--od-font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1; color: var(--od-red); letter-spacing: -0.02em; flex-shrink: 0; }
.od-stat-label { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.75); }

/* Encadré neutre */
.od-callout { background: var(--od-bg-alt); border: 1px solid var(--od-border); border-radius: 12px; padding: 20px 24px; margin: 26px 0; }
.od-callout p { margin: 0; font-size: 15.5px; color: #4B5563; }

/* Bandeau de conversion en fin d'article */
.od-article-cta { max-width: 780px; margin: 56px auto 0; background: linear-gradient(135deg, #0A0F1E, #0F1E3A); border-radius: 14px; padding: 38px 36px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.od-article-cta h2 { font-family: var(--od-font-display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin: 0 0 8px; }
.od-article-cta p { font-size: 14.5px; color: rgba(255,255,255,0.68); margin: 0; max-width: 420px; }
.od-article-cta .od-btn-primary { flex-shrink: 0; }

/* Articles suivants */
.od-related { background: var(--od-bg-alt); padding: 66px 32px 80px; }
.od-related-inner { max-width: 1120px; margin: 0 auto; }
.od-related-head { font-family: var(--od-font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--od-text); margin: 0 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .od-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .od-blog-hero { padding: 48px 20px 44px; }
  .od-blog-list { padding: 44px 20px 64px; }
  .od-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .od-article-hero { padding: 44px 20px 42px; }
  .od-article-cover { padding: 0 20px; margin-top: -24px; }
  .od-article-wrap { padding: 38px 20px 60px; }
  .od-article p, .od-article li { font-size: 16px; }
  .od-article-cta { padding: 30px 24px; margin-top: 44px; }
  .od-related { padding: 48px 20px 62px; }
  .od-toc { padding: 20px 22px; }
}
