/* ==========================================================================
   TBF DIGITAL — Mise en page des articles de blog
   Couleurs : voir assets/css/design-tokens.css (chargé avant ce fichier).
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); letter-spacing: -0.02em; }
a { color: var(--blue); }
ul, ol { padding-left: 22px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER (identique aux pages principales) ===== */
header {
  background: var(--navy);
  padding: 20px 0;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--white); }
.logo img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.logo span { color: var(--glass); }
.header-right { display: flex; align-items: center; gap: 14px; }
.back-link { color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--white); }

/* ===== EN-TETE ARTICLE ===== */
.article-hero-img {
  width: 100%; height: clamp(220px, 32vw, 380px); object-fit: cover; display: block;
}
main { padding-bottom: 80px; }
.article-header { padding: 40px 0 28px; }
.article-cat {
  display: inline-block; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.article-header h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13.5px; font-family: 'JetBrains Mono', monospace; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== CORPS DE L'ARTICLE ===== */
.article-body h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-body p { color: var(--ink); font-size: 15.5px; margin-bottom: 16px; }
.article-body li { color: var(--ink); font-size: 15.5px; margin-bottom: 8px; }
.article-body strong { color: var(--navy); }

.article-tip {
  background: var(--blue-light); border: 1px solid rgba(30,111,232,0.2); border-radius: 14px;
  padding: 18px 22px; margin: 28px 0; font-size: 14.5px; color: var(--navy);
}
.article-tip strong { display: block; margin-bottom: 6px; }

.article-cta {
  margin: 44px 0; padding: 28px; border-radius: 18px; text-align: center;
  background: var(--navy); color: var(--white);
}
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 16px; font-size: 14.5px; }
.article-cta .btn {
  display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: var(--white);
  font-weight: 700; font-size: 14.5px; padding: 12px 24px; border-radius: 10px; text-decoration: none;
  transition: transform 0.2s ease;
}
.article-cta .btn:hover { transform: translateY(-2px); }

.article-author {
  display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
}
.article-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.article-author-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.article-author-role { color: var(--muted); font-size: 13px; }

.article-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--blue);
  font-weight: 600; font-size: 14px;
}

/* ===== FOOTER (identique aux autres pages) ===== */
footer { background: var(--navy); padding: 44px 0 20px; margin-top: 60px; }
footer .wrap { max-width: 1120px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.footer-logo-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-lockup img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 6px 16px rgba(30,111,232,0.32); }
.footer-logo-lockup strong { font-size: 16px; font-weight: 800; color: var(--white); letter-spacing: -0.2px; }
.footer-logo-lockup strong span { color: var(--glass); }
.footer-col h5 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-family: 'Montserrat', sans-serif; }
.footer-col a, .footer-col p { color: rgba(255,255,255,0.65); font-size: 13.5px; display: block; margin-bottom: 8px; text-decoration: none; }
.footer-col a { position: relative; width: fit-content; transition: color 0.25s ease, transform 0.25s ease; }
.footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--glass);
  transition: width 0.3s cubic-bezier(.16,1,.3,1);
}
.footer-col a:hover { color: var(--white); transform: translateX(3px); }
.footer-col a:hover::after { width: 100%; }
.footer-hours { display: flex; align-items: center; gap: 8px; }
.footer-socials { display: flex; flex-direction: column; gap: 8px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.65); font-size: 13.5px; text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-link i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  font-size: 14px; transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social-link:hover, .social-link:focus-visible { color: var(--white); transform: translateX(2px); }
.social-link:hover i, .social-link:focus-visible i { border-color: transparent; }
.social-link[href*="facebook"]:hover i { background: #1877F2; box-shadow: 0 6px 14px rgba(24,119,242,0.4); }
.social-link[href*="instagram"]:hover i { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); box-shadow: 0 6px 14px rgba(221,42,123,0.4); }
.social-link[href*="wa.me"]:hover i { background: #25D366; box-shadow: 0 6px 14px rgba(37,211,102,0.4); }
.footer-payments {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  padding: 12px 20px; font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
}
.footer-payments-label { font-weight: 600; color: rgba(255,255,255,0.7); }
.footer-payments .payment-item { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; margin-top: 12px;
  text-align: center; color: rgba(255,255,255,0.4); font-size: 12.5px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--white); }

.wa-float {
  position: fixed; bottom: 24px; right: 24px; background: #25D366; color: var(--white);
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 18px rgba(0,0,0,0.2); z-index: 200; text-decoration: none;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 22px; }
}

/* ===== MODE SOMBRE ===== */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: var(--ink); }
[data-theme="dark"] main strong,
[data-theme="dark"] .article-body strong,
[data-theme="dark"] .article-author-name { color: var(--ink); }
[data-theme="dark"] .article-tip { background: rgba(30,111,232,0.10); color: var(--ink); }
