/* ============================================================
   blog.css — Styles partagés pour tous les articles du blog
   Utilisé par blog.html et les pages d'articles.
   ============================================================ */

/* ---------- Variables & Reset (identiques au site) ---------- */
:root {
  --navy: #16243f;
  --navy-soft: #1f3358;
  --navy-deep: #0f1a2e;
  --gray-bg: #f5f7fa;
  --gray-border: #e6eaf0;
  --gray-text: #5a6678;
  --orange: #ff6a1a;
  --orange-dark: #e8550a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(22, 36, 63, 0.04), 0 4px 12px rgba(22, 36, 63, 0.05);
  --shadow-md: 0 8px 30px rgba(22, 36, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 36, 63, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center; white-space: nowrap;
}
.btn--primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 106, 26, 0.28);
}
.btn--primary:hover {
  background: var(--orange-dark); transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 106, 26, 0.36);
}
.btn--lg { padding: 18px 38px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header (identique au site) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy);
  display: grid; place-items: center; color: var(--orange); font-size: 18px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--gray-text); transition: color 0.15s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Hero article ---------- */
.article-hero {
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  color: var(--white); padding: 80px 0 64px; text-align: center;
}
.article-hero__inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #aeb9d0; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--orange); }
.article-hero__cat {
  display: inline-block; background: rgba(255,106,26,0.15); color: var(--orange);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.article-hero h1 {
  font-size: clamp(28px, 5vw, 48px); line-height: 1.12; font-weight: 900;
  letter-spacing: -0.025em; margin-bottom: 22px;
}
.article-hero__meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #aeb9d0; }
.article-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-hero__meta svg { width: 16px; height: 16px; color: var(--orange); }

/* ---------- Corps de l'article ---------- */
.article { padding: 64px 0 40px; }
.article__inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.article__intro {
  font-family: 'Lora', Georgia, serif; font-size: 21px; line-height: 1.6;
  color: #38455a; font-style: italic; margin-bottom: 40px;
  border-left: 4px solid var(--orange); padding-left: 22px;
}
.article__body { font-size: 18px; line-height: 1.78; color: #2c3a52; }
.article__body p { margin-bottom: 22px; }
.article__body h2 {
  font-size: clamp(23px, 3vw, 29px); font-weight: 800; color: var(--navy);
  line-height: 1.22; letter-spacing: -0.015em; margin: 48px 0 18px;
}
.article__body h2::before {
  content: ""; display: block; width: 48px; height: 4px; background: var(--orange);
  border-radius: 4px; margin-bottom: 16px;
}
.article__body ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.article__body ul li {
  position: relative; padding-left: 34px; color: #2c3a52; line-height: 1.6;
}
.article__body ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); opacity: 0.15;
}
.article__body ul li::after {
  content: ""; position: absolute; left: 5px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.article__body ul li strong { color: var(--navy); font-weight: 700; }

.pullquote {
  background: var(--gray-bg); border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg); padding: 28px 32px; margin: 36px 0;
  font-family: 'Lora', Georgia, serif; font-size: 20px; line-height: 1.5;
  color: var(--navy); font-style: italic; position: relative;
}
.pullquote::before {
  content: """; font-family: Georgia, serif; font-size: 72px; color: var(--orange);
  opacity: 0.2; position: absolute; top: 0; left: 20px; line-height: 1;
}
.pullquote p { margin: 0; padding-left: 30px; }

.price-table { margin: 36px 0; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--gray-border); border-radius: var(--radius);
  background: var(--white); margin-bottom: 12px; transition: box-shadow 0.2s ease;
}
.price-row:hover { box-shadow: var(--shadow-md); }
.price-row--featured {
  border: 2px solid var(--orange); background: linear-gradient(135deg, #fff7f1, #fff);
  position: relative;
}
.price-row__title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.price-row__desc { font-size: 15px; color: var(--gray-text); line-height: 1.5; }
.price-row__amount { font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-row--featured .price-row__amount { color: var(--orange); }
.price-row__badge {
  position: absolute; top: -11px; right: 22px;
  background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}

/* ---------- CTA final ---------- */
.cta-block {
  margin: 56px 0 8px; padding: 48px 40px;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  border-radius: var(--radius-lg); text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; top: -50px; right: -50px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,106,26,0.22), transparent 70%);
}
.cta-block h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.015em; position: relative; }
.cta-block p { color: #c4cde0; font-size: 17px; max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-block .btn { position: relative; }

/* ---------- Tags / partage ---------- */
.article__footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--gray-border); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tag {
  font-size: 13px; font-weight: 600; color: var(--gray-text);
  background: var(--gray-bg); border: 1px solid var(--gray-border);
  padding: 6px 14px; border-radius: 999px;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--orange); }
.back-link:hover { color: var(--orange-dark); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Articles similaires ---------- */
.related { background: var(--gray-bg); padding: 72px 0; }
.related h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 32px; letter-spacing: -0.02em; text-align: center; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.related-card {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card__cat { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.related-card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--navy); }
.related-card p { font-size: 14px; color: var(--gray-text); }
@media (max-width: 760px) { .related__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #aeb9d0; padding: 64px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: 15px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 15px; transition: color 0.15s ease; }
.footer ul a:hover { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.footer__bottom .legal { display: flex; gap: 20px; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
  .article { padding: 48px 0 24px; }
  .article__intro { font-size: 19px; padding-left: 16px; }
  .article__body { font-size: 17px; }
  .cta-block { padding: 36px 24px; }
  .price-row { grid-template-columns: 1fr; }
  .price-row__amount { margin-top: 8px; }
}
