/* ============================================================
   Digital KMY Agency — Styles communs aux ARTICLES DE BLOG
   (blog-[slug].html, y compris les futurs articles générés
   automatiquement — toute page qui charge ce fichier et
   réutilise ces classes hérite du responsive corrigé)
   Nécessite assets/css/site.css chargé avant ce fichier.
   ============================================================ */

.article-page { padding-top: 90px; }
.article-hero { background: var(--grey); padding: 64px 0 56px; border-bottom: 1px solid var(--grey-line); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8896A9; margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--electric); transition: opacity .2s; }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb svg { width: 14px; height: 14px; color: #CBD5E1; flex-shrink: 0; }
.cat-badge { font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 100px; background: rgba(21,101,255,0.1); color: var(--electric); margin-bottom: 18px; display: inline-block; }
.cat-badge.cat-sites { background: rgba(21,101,255,0.1); color: var(--electric); }
.cat-badge.cat-ia { background: rgba(0,212,255,0.12); color: #0070A0; }
.cat-badge.cat-marketing { background: rgba(21,101,255,0.08); color: #1040C0; }
.cat-badge.cat-formation { background: rgba(0,212,255,0.1); color: #007090; }
.cat-badge.cat-business { background: rgba(11,15,25,0.07); color: #3A4358; }
.article-hero h1 { font-size: clamp(24px, 6vw, 44px); font-weight: 700; color: var(--navy); line-height: 1.18; margin: 0 0 20px; letter-spacing: -0.025em; text-wrap: balance; max-width: 820px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #8896A9; font-size: 13.5px; }
.article-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #CBD5E1; }

/* ===== LAYOUT (contenu + sidebar) ===== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; padding: 64px 0 100px; }
.article-body { max-width: 760px; min-width: 0; }
.article-body .intro { font-size: 18px; line-height: 1.75; color: #3A4358; margin: 0 0 40px; font-weight: 400; }
.article-body h2 { font-size: clamp(20px, 4.5vw, 24px); font-weight: 700; color: var(--navy); margin: 48px 0 16px; letter-spacing: -0.02em; line-height: 1.25; padding-left: 16px; border-left: 3px solid var(--electric); }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: #3A4358; line-height: 1.8; margin: 0 0 18px; overflow-wrap: break-word; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li, .article-body ol li { position: relative; font-size: 15.5px; color: #3A4358; line-height: 1.65; overflow-wrap: break-word; }
.article-body ul li { padding-left: 30px; }
.article-body ol li { padding-left: 38px; }
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--electric);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter);
  counter-increment: ol-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--electric);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.highlight-box { background: rgba(21,101,255,0.06); border: 1px solid rgba(21,101,255,0.15); border-radius: 12px; padding: 24px 28px; margin: 32px 0; }
.highlight-box p { margin: 0; font-size: 15.5px; color: var(--navy); line-height: 1.7; }
.highlight-box strong { color: var(--electric); }

/* ===== TOOLS GRID (ex: liste d'outils en cartes) ===== */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.tool-card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 22px 20px; }
.tool-name { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.tool-desc { font-size: 13.5px; color: #4A5570; line-height: 1.55; margin: 0; }
.tool-tag { font-size: 11px; font-weight: 700; background: rgba(21,101,255,0.1); color: var(--electric); border-radius: 100px; padding: 3px 10px; margin-top: 10px; display: inline-block; }

/* ===== STAT ROW (3 chiffres clés) ===== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat-box { background: var(--grey); border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 24px 20px; text-align: center; }
.stat-box .num { font-size: clamp(26px, 7vw, 36px); font-weight: 800; color: var(--electric); line-height: 1; letter-spacing: -0.03em; }
.stat-box .label { font-size: 13px; color: #4A5570; margin-top: 8px; line-height: 1.4; }

/* ===== TABLEAUX (ex: table de priorités) =====
   Toujours envelopper un <table> dans <div class="table-scroll">…</div>
   pour garantir un défilement horizontal propre au lieu d'un texte
   écrasé sur les petits écrans. Convention à suivre pour les futurs
   articles générés automatiquement. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--grey-line);
  border-radius: 12px;
}
.priority-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 14.5px; }
.priority-table th { background: var(--navy); color: #fff; font-weight: 600; padding: 14px 16px; text-align: left; font-size: 13px; white-space: nowrap; }
.priority-table td { padding: 13px 16px; border-bottom: 1px solid var(--grey-line); color: #3A4358; vertical-align: top; }
.priority-table tr:last-child td { border-bottom: none; }
.priority-table tr:nth-child(even) td { background: var(--grey); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; white-space: nowrap; display: inline-block; }
.pill-high { background: rgba(16, 185, 129, 0.12); color: #047857; }
.pill-medium { background: rgba(245, 158, 11, 0.12); color: #92400E; }
.pill-low { background: rgba(21,101,255,0.1); color: var(--electric); }

/* ===== SOURCES ET RÉFÉRENCES ===== */
.sources-section { margin: 42px 0 0; padding-top: 26px; border-top: 1px solid var(--grey-line); }
.sources-section h2 { margin-top: 0; }
.sources-list { margin: 0; padding-left: 20px; }
.sources-list li { display: list-item !important; list-style: decimal; margin-bottom: 10px; font-size: 14px; color: #4A5570; }
.sources-list li::before { display: none !important; }
.sources-list a { color: var(--electric); text-decoration: underline; text-underline-offset: 2px; }

/* ===== FAQ ===== */
.faq-section { margin: 48px 0 0; }
.faq-section h2 { font-size: clamp(20px, 4.5vw, 24px); font-weight: 700; color: var(--navy); margin: 0 0 28px; }
.faq-item { border-bottom: 1px solid var(--grey-line); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.faq-a { font-size: 15px; color: #3A4358; line-height: 1.75; margin: 0; }

/* ===== CTA EN LIGNE ===== */
.article-cta { background: var(--gradient); border-radius: 16px; padding: 40px 36px; text-align: center; margin: 48px 0; position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1.5px); background-size: 24px 24px; opacity: 0.07; pointer-events: none; }
.article-cta h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 10px; position: relative; }
.article-cta p { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0 0 24px; position: relative; }
.article-cta .btn { position: relative; }

/* ===== SIDEBAR ===== */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 28px 24px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.sidebar-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 16px; }
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toc-list a { font-size: 13.5px; color: #4A5570; transition: color .2s; display: flex; align-items: center; gap: 8px; }
.toc-list a:hover { color: var(--electric); }
.toc-list a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grey-line); flex-shrink: 0; transition: background .2s; }
.toc-list a:hover::before { background: var(--electric); }
.sidebar-cta { background: var(--gradient); border-radius: var(--radius-card); padding: 28px 24px; text-align: center; }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 13.5px; margin: 0 0 16px; }
.sidebar-cta strong { display: block; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 13.5px; padding: 12px 16px; }

/* ===== ARTICLES LIÉS ===== */
.related-section { padding: 60px 0; border-top: 1px solid var(--grey-line); }
.related-section h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 28px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-card); padding: 24px; transition: box-shadow .3s; }
.related-card:hover { box-shadow: var(--shadow-card); }
.related-cat { font-size: 11.5px; font-weight: 700; color: var(--electric); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.related-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 10px; line-height: 1.4; }
.related-link { font-size: 13.5px; color: var(--electric); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   RESPONSIVE — articles de blog
   Breakpoints : 1024px (tablette), 720px (mobile), 480px (petit mobile)
   ============================================================ */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .article-page { padding-top: 76px; }
  .article-hero { padding: 40px 0 32px; }
  .article-layout { padding: 40px 0 64px; gap: 32px; }
  .stat-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-cta { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .article-page { padding-top: 64px; }
  .article-hero { padding: 28px 0 24px; }
  .breadcrumb { font-size: 12px; margin-bottom: 18px; }
  .article-meta { gap: 10px; font-size: 12.5px; }
  .article-layout { padding: 32px 0 48px; gap: 28px; }
  .article-body .intro { font-size: 16.5px; margin-bottom: 28px; }
  .article-body h2 { margin: 36px 0 14px; }
  .article-body p, .article-body ul li, .article-body ol li { font-size: 15px; }
  .highlight-box { padding: 18px 20px; margin: 24px 0; }
  .stat-box { padding: 18px 14px; }
  .article-cta { padding: 28px 20px; margin: 36px 0; }
  .article-cta h3 { font-size: 19px; }
  .sidebar-card, .sidebar-cta { padding: 20px 18px; }
  .related-section { padding: 40px 0; }
}
