/* ═══════════════════════════════════════════════════════════════
   KarmaMakers — km-common.css
   CSS partagé : variables, reset, nav, footer, articles blog
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --y:    #FFE500;
  --yd:   #D4BF00;
  --bk:   #0A0A0A;
  --wh:   #FFFFFF;
  --gr:   #F5F5EF;
  --rd:   #E8132A;
  --grn:  #16a34a;
  --txt:  #1a1a1a;
  --soft: rgba(26,26,26,.62);
  --xs:   rgba(26,26,26,.38);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--wh);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px;
}

/* ── Google Fonts ─────────────────────────────────────────────── */
/* Importé via <link> dans chaque page head */

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION PRINCIPALE
   ═══════════════════════════════════════════════════════════════ */
.km-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: 64px;
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,229,0,.12);
  display: flex; align-items: center;
  padding: 0 40px;
}

.km-nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 900; font-size: 19px;
  color: #FFE500; text-decoration: none;
  letter-spacing: -.5px; white-space: nowrap;
  margin-right: auto;
  display: flex; align-items: center; gap: 8px;
}
.km-nav-logo img { height: 32px; width: auto; }
.km-logo-fb { display: none; }

.km-nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.km-nav-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: 8px 13px; border-radius: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.km-nav-links a:hover        { color: #fff; background: rgba(255,255,255,.06); }
.km-nav-links a.km-active    { color: #FFE500; }
.km-nav-links a.km-nav-cta   {
  background: #FFE500; color: #0A0A0A !important;
  font-weight: 800; margin-left: 10px;
  padding: 9px 18px;
}
.km-nav-links a.km-nav-cta:hover { background: #D4BF00; }

/* ── Burger ───────────────────────────────────────────────────── */
.km-burger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: 16px;
}
.km-burger span {
  display: block; width: 22px; height: 2px;
  background: #FFE500; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Mobile menu overlay ──────────────────────────────────────── */
.km-mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,.98);
  z-index: 8999;
  flex-direction: column;
  padding: 24px 24px 40px;
  overflow-y: auto;
}
.km-mobile-menu.open { display: flex; }
.km-mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-size: 18px; font-weight: 700;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .15s;
}
.km-mobile-menu a:hover    { color: #FFE500; }
.km-mobile-menu a.km-active { color: #FFE500; }
.km-mobile-menu a.km-mob-cta {
  margin-top: 20px;
  background: #FFE500; color: #0A0A0A !important;
  border-radius: 4px; text-align: center;
  padding: 18px; border-bottom: none;
  font-size: 16px;
}
.km-mobile-menu a.km-mob-cta:hover { background: #D4BF00; }
.km-mobile-menu .km-mob-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: rgba(255,229,0,.4);
  margin-top: 20px; margin-bottom: 4px;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.km-footer {
  background: #040404;
  padding: 24px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.km-footer-logo {
  font-weight: 900; font-size: 16px;
  color: #FFE500; text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.km-footer-links {
  display: flex; gap: 0; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.km-footer-links a {
  font-size: 11px; color: rgba(255,255,255,.3);
  text-decoration: none; padding: 4px 10px;
  font-family: 'Poppins', sans-serif;
  transition: color .15s;
}
.km-footer-links a:hover        { color: rgba(255,255,255,.7); }
.km-footer-links a.km-active    { color: #FFE500; font-weight: 700; }
.km-footer-copy {
  font-size: 11px; color: rgba(255,255,255,.15);
  font-family: 'Poppins', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR (articles)
   ═══════════════════════════════════════════════════════════════ */
.km-progress-bar {
  position: fixed; top: 64px; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.1); z-index: 299;
}
.km-progress-fill {
  height: 100%; background: var(--y);
  width: 0%; transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLES BLOG — styles partagés
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.art-hero {
  background: var(--bk);
  padding: 64px 60px 56px;
  position: relative; overflow: hidden;
}
.art-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(255,229,0,.06) 0%, transparent 60%);
  pointer-events: none;
}
.art-hero-in {
  max-width: 760px; margin: 0 auto;
  position: relative; z-index: 2;
}
.art-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; font-size: 11px;
  color: rgba(255,255,255,.25);
}
.art-breadcrumb a {
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .15s;
}
.art-breadcrumb a:hover { color: rgba(255,255,255,.7); }

.art-cat {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 18px;
}
.art-hero h1 {
  font-size: clamp(28px,4.5vw,52px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -2px; color: #fff;
  margin-bottom: 18px;
}
.art-hero h1 em { font-style: normal; color: var(--y); }

.art-intro {
  font-family: 'Lora', serif;
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.art-intro strong { color: rgba(255,255,255,.85); font-weight: 600; }

.art-meta {
  display: flex; align-items: center; gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.art-meta-photo {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255,229,0,.3);
}
.art-meta-photo-fb {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--y); display: flex;
  align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px;
  color: var(--bk); flex-shrink: 0;
}
.art-meta-name  { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); }
.art-meta-date  { font-size: 11px; color: rgba(255,255,255,.3); }
.art-meta-sep   { width: 1px; height: 14px; background: rgba(255,255,255,.1); }
.art-meta-time  { font-size: 11px; color: rgba(255,255,255,.3); }

/* Body */
.art-body { background: var(--wh); padding: 64px 60px; }
.art-body-in {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 72px; align-items: start;
}
.art-content { min-width: 0; }

.art-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -.5px; line-height: 1.25;
  color: var(--bk);
  margin: 48px 0 16px; padding-top: 48px;
  border-top: 2px solid var(--gr);
}
.art-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.art-content h3 {
  font-size: 17px; font-weight: 700;
  color: var(--bk); margin: 28px 0 12px; line-height: 1.4;
}
.art-content p {
  font-family: 'Lora', serif;
  font-size: 17px; line-height: 1.9;
  color: var(--soft); margin-bottom: 22px;
}
.art-content strong { color: var(--bk); font-weight: 700; }
.art-content em     { font-style: italic; }
.art-content a {
  color: var(--bk); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.art-content a:hover { color: var(--rd); }

.art-content ul { margin: 0 0 24px 0; padding: 0; list-style: none; }
.art-content ul li {
  font-family: 'Lora', serif;
  font-size: 16px; line-height: 1.75;
  color: var(--soft);
  padding: 8px 0 8px 28px; position: relative;
  border-bottom: 1px solid rgba(26,26,26,.05);
}
.art-content ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--y); font-weight: 800;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; top: 10px;
}

/* Callout */
.art-content .callout {
  background: var(--bk); color: #fff;
  border-radius: 6px; padding: 24px 28px; margin: 36px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; line-height: 1.8; font-weight: 600;
  border-left: 4px solid var(--y);
}
.art-content .callout em { font-style: normal; color: var(--y); }

/* Stat */
.art-content .stat {
  background: var(--gr); border-radius: 6px;
  padding: 20px 24px; margin: 32px 0;
  display: flex; align-items: center; gap: 20px;
}
.stat-n {
  font-size: 44px; font-weight: 900;
  color: var(--bk); letter-spacing: -2px;
  flex-shrink: 0; line-height: 1;
}
.stat-l { font-size: 14px; color: var(--soft); line-height: 1.65; }
.stat-l strong { color: var(--txt); font-weight: 700; }

/* Inline CTA */
.art-content .inline-cta {
  background: var(--y); border-radius: 6px;
  padding: 22px 26px; margin: 36px 0;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.inline-cta-txt { font-size: 13px; font-weight: 700; color: var(--bk); line-height: 1.55; }
.inline-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bk); color: #fff !important;
  font-weight: 800; font-size: 13px;
  padding: 11px 18px; border-radius: 4px;
  text-decoration: none !important; white-space: nowrap;
}
.inline-cta-btn:hover { background: #222 !important; color: var(--y) !important; }

/* Image placeholder */
.art-img-placeholder {
  width: 100%; height: 340px;
  background: var(--gr); border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 48px;
}
.aip-icon { font-size: 52px; }
.aip-txt { font-size: 11px; color: var(--xs); font-style: italic; }

/* Real article hero image */
.art-img {
  width: 100%; height: 340px;
  object-fit: cover; border-radius: 8px;
  margin-bottom: 48px;
}

/* Tags & Share */
.art-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--gr);
}
.art-tag {
  font-size: 11px; font-weight: 600;
  background: var(--gr); color: var(--soft);
  padding: 5px 14px; border-radius: 20px;
  text-decoration: none;
}
.art-tag:hover { background: var(--bk); color: rgba(255,255,255,.6); }

.art-share {
  margin-top: 24px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.art-share-lbl { font-size: 12px; font-weight: 700; color: var(--xs); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gr); color: var(--soft);
  font-weight: 600; font-size: 12px;
  padding: 8px 14px; border-radius: 4px;
  text-decoration: none; border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; transition: all .15s;
}
.share-btn:hover { background: var(--bk); color: #fff; }

/* Sidebar */
.art-sidebar {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 20px;
}
.toc-card { background: var(--gr); border-radius: 6px; padding: 20px; }
.toc-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--xs); margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-item a {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--soft); text-decoration: none;
  padding: 6px 10px; border-radius: 3px;
  border-left: 2px solid transparent;
  transition: all .15s; line-height: 1.4;
}
.toc-item a:hover, .toc-item a.active {
  background: var(--wh); color: var(--bk);
  border-left-color: var(--y);
}
.sb-cta {
  background: var(--bk);
  border: 2px solid rgba(255,229,0,.15);
  border-radius: 8px; padding: 24px 20px;
}
.sb-cta-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,229,0,.4); margin-bottom: 10px;
}
.sb-cta-title {
  font-size: 14px; font-weight: 800;
  color: #fff; margin-bottom: 8px; line-height: 1.35;
}
.sb-cta-title em { font-style: normal; color: var(--y); }
.sb-cta-desc { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 16px; line-height: 1.65; }
.sb-cta-btn {
  display: block; background: var(--y);
  color: var(--bk); font-weight: 800; font-size: 13px;
  padding: 11px 14px; border-radius: 4px;
  text-decoration: none; text-align: center;
}

/* Related */
.related { background: var(--gr); padding: 72px 60px; }
.related-in { max-width: 1060px; margin: 0 auto; }
.related h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -.5px; color: var(--bk); margin-bottom: 28px;
}
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.rel-card {
  background: var(--wh); border-radius: 6px;
  overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.rel-img {
  height: 120px; background: var(--gr);
  display: flex; align-items: center;
  justify-content: center; font-size: 28px;
  overflow: hidden;
}
.rel-img img { width: 100%; height: 100%; object-fit: cover; }
.rel-body { padding: 16px; }
.rel-cat {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--xs); margin-bottom: 6px;
}
.rel-title { font-size: 13px; font-weight: 700; color: var(--bk); line-height: 1.4; }
.rel-read { font-size: 11px; font-weight: 700; color: var(--xs); margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .km-nav         { padding: 0 20px; }
  .km-nav-links   { display: none; }
  .km-burger      { display: flex; }
  .km-footer      { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .art-hero, .art-body, .related { padding: 48px 24px; }
  .art-body-in    { grid-template-columns: 1fr; }
  .art-sidebar    { position: static; }
  .related-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .related-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .km-mobile-menu a { font-size: 16px; }
}
