/* ============================================================
   BLOG — Booster Media
   Feuille commune aux pages blog (hub + articles).
   Reprend les composants partagés du site (header, footer,
   transitions) + un design éditorial propre aux articles.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rouge: #d94358;
  --rouge-fonce: #b8364a;
  --rouge-soft: #fbedef;
  --bleu: #1e2d4a;
  --bleu-fonce: #162038;
  --creme: #faf7f2;
  --gris-clair: #f4f1ec;
  --gris-bord: #e6e1d8;
  --texte: #2b2b35;
  --texte-soft: #5e6573;
  --blanc: #ffffff;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ============ HEADER (partagé) ============ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gris-bord);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo img { height: 44px; display: block; }
nav { display: flex; align-items: center; gap: 6px; position: relative; }
nav a {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--texte); text-decoration: none; padding: 6px 13px; border-radius: 8px;
  transition: color 0.2s, background 0.2s; white-space: nowrap; position: relative; z-index: 1;
}
nav a:hover { color: var(--rouge); background: rgba(217,67,88,0.08); }
nav a.active { color: var(--rouge); background: rgba(217,67,88,0.1); box-shadow: inset 0 0 0 1px rgba(217,67,88,0.22); }
.nav-cta {
  background: var(--rouge) !important; color: var(--blanc) !important;
  padding: 8px 18px !important; border-radius: 8px !important; font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--rouge-fonce) !important; }
.nav-indicator {
  position: absolute; top: 50%; left: 0; width: 0; height: 34px; transform: translateY(-50%);
  border-radius: 9px; background: rgba(217,67,88,0.1); border: 1px solid rgba(217,67,88,0.22);
  z-index: 0; opacity: 0; pointer-events: none;
  transition: left .34s cubic-bezier(.34,1.2,.4,1), width .34s cubic-bezier(.34,1.2,.4,1), opacity .25s ease;
}
.header-deco {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%) rotate(-6deg);
  width: 118px; height: 86px; background: url('e-deco-dark.png') no-repeat center / contain;
  opacity: 0; pointer-events: none; z-index: 0; transition: opacity .4s ease;
}
header.scrolled .header-deco { opacity: 0.1; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--texte); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--blanc); border-top: 1px solid var(--gris-bord); padding: 12px 28px 20px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 15px; font-weight: 600; color: var(--texte); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--gris-bord); }
.mobile-nav a:last-child { border-bottom: none; color: var(--rouge); }
.mobile-nav a.active { color: var(--rouge); }

/* ============ TRANSITIONS / REVEAL (partagé) ============ */
.page-transition { position: fixed; inset: 0; background: #162038; z-index: 9999; opacity: 1; pointer-events: none; transition: opacity 0.4s ease; }
.page-transition.loaded { opacity: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ============ HUB BLOG ============ */
.blog-hero {
  background: var(--bleu-fonce); color: #fff; text-align: center;
  padding: 96px 28px 104px; position: relative; overflow: hidden;
  clip-path: ellipse(140% 100% at 50% 0%);
}
.blog-hero::before {
  content: ''; position: absolute; right: -90px; top: -70px; width: 380px; height: 380px;
  background: url('e-deco-white.png') no-repeat center / contain; opacity: 0.05; transform: rotate(150deg); pointer-events: none;
}
.blog-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px;
}
.blog-hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); }
.blog-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; max-width: 780px; margin: 0 auto 20px; text-wrap: balance;
}
.blog-hero h1 em { font-style: normal; color: var(--rouge); }
.blog-hero p { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,0.68); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.blog-grid {
  max-width: 1140px; margin: -56px auto 0; padding: 0 28px 100px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-card {
  display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--gris-bord);
  border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 18px 40px -28px rgba(30,45,74,0.4);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 32px 60px -30px rgba(30,45,74,0.5); border-color: rgba(217,67,88,0.3); }
.post-cover { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; }
.post-cover svg { width: 46px; height: 46px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; }
.post-cover.c-com { background: linear-gradient(135deg, #d94358, #b8364a); }
.post-cover.c-prix { background: linear-gradient(135deg, #2b3d63, #162038); }
.post-cover.c-local { background: linear-gradient(135deg, #e07a4a, #d94358); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rouge); background: var(--rouge-soft); padding: 4px 11px; border-radius: 99px; margin-bottom: 14px; }
.post-body h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: var(--bleu); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 12px; }
.post-body p { font-size: 14.5px; color: var(--texte-soft); line-height: 1.65; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 12.5px; color: var(--texte-soft); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gris-bord); }
.post-meta svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--rouge); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--rouge); }
.post-more svg { width: 15px; height: 15px; transition: transform .25s ease; }
.post-card:hover .post-more svg { transform: translateX(4px); }

/* ============ ARTICLE ============ */
.article-hero { background: var(--creme); padding: 40px 28px 56px; border-bottom: 1px solid var(--gris-bord); }
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--texte-soft); margin-bottom: 28px; }
.breadcrumb a { color: var(--texte-soft); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--bleu); font-weight: 600; }
.article-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rouge); background: var(--rouge-soft); padding: 5px 13px; border-radius: 99px; margin-bottom: 20px; }
.article-hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; color: var(--bleu); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; text-wrap: balance; }
.article-lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--texte-soft); line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; font-size: 13px; color: var(--texte-soft); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gris-bord); }
.article-meta svg { width: 15px; height: 15px; stroke: var(--rouge); fill: none; stroke-width: 2; vertical-align: -2px; margin-right: 5px; }

.article-body { max-width: 720px; margin: 0 auto; padding: 56px 28px 24px; }
.article-body > p, .article-body > ul, .article-body > ol { font-size: 17px; line-height: 1.85; color: var(--texte); margin-bottom: 22px; }
.article-body > p { color: #3a3f4c; }
.article-body h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(23px, 3vw, 30px); font-weight: 800; color: var(--bleu); line-height: 1.2; letter-spacing: -0.015em; margin: 48px 0 18px; }
.article-body h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; color: var(--bleu); margin: 34px 0 12px; }
.article-body a { color: var(--rouge); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; font-weight: 600; }
.article-body a:hover { color: var(--rouge-fonce); }
.article-body strong { color: var(--bleu); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 4px; list-style: none; }
.article-body li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 17px; line-height: 1.7; color: #3a3f4c; }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); }
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--rouge-soft); color: var(--rouge); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* encadré clé */
.callout { display: flex; gap: 16px; background: var(--creme); border: 1px solid var(--gris-bord); border-left: 4px solid var(--rouge); border-radius: 0 14px 14px 0; padding: 22px 24px; margin: 32px 0; }
.callout-ic { flex: none; width: 30px; height: 30px; }
.callout-ic svg { width: 30px; height: 30px; stroke: var(--rouge); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--texte); }
.callout strong { color: var(--bleu); }

/* citation */
.pullquote { margin: 40px 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--rouge); font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: var(--bleu); line-height: 1.35; letter-spacing: -0.01em; }

/* tableau comparatif */
.compare-wrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--gris-bord); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gris-bord); }
.compare thead th { background: var(--bleu); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:nth-child(even) { background: var(--creme); }
.compare td:first-child { font-weight: 700; color: var(--bleu); }
.compare .win { color: var(--rouge); font-weight: 700; }

/* CTA fin d'article */
.article-cta { max-width: 720px; margin: 48px auto 0; padding: 0 28px; }
.article-cta-box {
  background: var(--bleu-fonce); border-radius: 22px; padding: 44px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.article-cta-box::before { content: ''; position: absolute; left: -70px; bottom: -90px; width: 300px; height: 300px; background: url('e-deco-white.png') no-repeat center / contain; opacity: 0.06; pointer-events: none; }
.article-cta-box h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.015em; position: relative; }
.article-cta-box p { color: rgba(255,255,255,0.72); font-size: 15.5px; line-height: 1.7; max-width: 480px; margin: 0 auto 26px; position: relative; }
.btn-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--rouge); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 99px; transition: background .25s, transform .25s; position: relative; }
.btn-cta:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.btn-cta svg { width: 16px; height: 16px; }

/* articles liés */
.related { max-width: 1140px; margin: 0 auto; padding: 80px 28px 100px; }
.related-head { text-align: center; margin-bottom: 40px; }
.related-head .eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-soft); margin-bottom: 12px; }
.related-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--bleu); letter-spacing: -0.015em; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }

/* ============ FOOTER (partagé) ============ */
footer { background: var(--bleu-fonce); padding: 72px 28px 40px; color: rgba(255,255,255,0.6); }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14.5px; line-height: 1.75; margin-top: 18px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s, border-color .2s; }
.footer-social a:hover { background: var(--rouge); border-color: var(--rouge); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--blanc); }
.footer-contact { display: flex; flex-direction: column; gap: 15px; }
.footer-contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.62); text-decoration: none; transition: color .2s; }
.footer-contact-item:hover { color: #fff; }
.footer-contact-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(217,67,88,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.footer-contact-icon svg { width: 16px; height: 16px; stroke: var(--rouge); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; font-size: 13px; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .header-inner nav { display: none; }
  .burger { display: flex; }
  .header-deco { display: none; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; max-width: 420px; }
  .related-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .article-cta-box { padding: 36px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
