/* Guide Freelance V3 — Editorial Design System */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  /* Palette — warm editorial */
  --ink: #1b1b2f;
  --ink-80: #3d3d56;
  --ink-60: #6a6a82;
  --ink-40: #9e9eb2;
  --ink-20: #cdcdd8;

  --cream: #fdfbf7;
  --cream-dark: #f5f0e8;
  --warm-gray: #ece7dd;

  --accent: #d95b3f;
  --accent-dark: #c04a30;
  --accent-light: #fceee9;

  --teal: #1a7a6d;
  --teal-light: #e6f5f2;

  --slate: #3b5998;
  --slate-light: #eef1f8;

  --gold: #c68b2c;
  --gold-light: #fdf6e8;

  /* Surfaces */
  --surface: var(--cream);
  --surface-alt: var(--cream-dark);
  --card-bg: #ffffff;

  /* Borders */
  --border: #e4dfd6;
  --border-light: #efebe4;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(27,27,47,0.04);
  --shadow-sm: 0 2px 8px rgba(27,27,47,0.06);
  --shadow-md: 0 8px 24px rgba(27,27,47,0.08);
  --shadow-lg: 0 16px 48px rgba(27,27,47,0.1);
  --shadow-accent: 0 4px 16px rgba(217,91,63,0.2);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Sizing */
  --max-w: 1180px;
  --max-w-article: 740px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.18s var(--ease);
  --t-normal: 0.3s var(--ease);
  --t-slow: 0.5s var(--ease);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
.t-display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-display--xl { font-size: clamp(3rem, 6vw, 4.5rem); }
.t-display--lg { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.t-display--md { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }

.t-body { font-size: 1.05rem; color: var(--ink-60); line-height: 1.75; }
.t-body--lg { font-size: 1.2rem; }
.t-small { font-size: 0.875rem; color: var(--ink-60); }
.t-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-40);
}

.t-italic { font-style: italic; }
.t-accent { color: var(--accent); }
.t-teal { color: var(--teal); }

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.wrap--narrow { max-width: var(--max-w-article); }
.section { padding: 6rem 0; }
.section--alt { background: var(--surface-alt); }

.flex { display: flex; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; }
.flex--gap-sm { gap: 0.75rem; }
.flex--gap { gap: 1.5rem; }
.flex--gap-lg { gap: 3rem; }
.flex--wrap { flex-wrap: wrap; }

.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .wrap { padding: 0 1.25rem; }
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t-normal);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.header__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__logo-mark svg { width: 18px; height: 18px; }

.header__nav { display: flex; align-items: center; gap: 0.25rem; }
.header__nav a {
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-60);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.header__nav a:hover { color: var(--ink); background: var(--surface-alt); }
.header__nav a.active { color: var(--accent); }

.header__cta {
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--t-fast);
}
.header__cta:hover { background: #2d2d45; transform: translateY(-1px); }

.header__mobile { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.header__mobile svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
  }
  .header__mobile { display: flex; }
  .header__cta { display: none; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: var(--accent-light);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title { margin-bottom: 1.5rem; }
.hero__title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.hero__desc {
  font-size: 1.15rem;
  color: var(--ink-60);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero__stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.hero__stat-label { font-size: 0.82rem; color: var(--ink-60); margin-top: 0.25rem; }

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__illustration {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4/3;
  transform: scale(1.35);
  transform-origin: center;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1.35) translateY(0); }
  50% { transform: scale(1.35) translateY(-12px); }
}
/* Decorative blobs behind hero */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: -1;
}
.hero::before {
  width: 500px;
  height: 500px;
  background: var(--accent-light);
  top: -10%;
  left: -5%;
}
.hero::after {
  width: 400px;
  height: 400px;
  background: var(--teal-light);
  bottom: -20%;
  right: -5%;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__illustration { max-width: 340px; }
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: #2d2d45;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--teal {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(217,91,63,0.25);
}
.btn--teal:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,91,63,0.35); }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
}
.btn--ghost:hover { color: var(--accent-dark); }

.btn--white {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--r-lg); }

/* ═══════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════ */
.categories { padding: 5rem 0; }
.categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-normal);
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-card:hover::before { transform: scaleX(1); }

.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cat-card__icon svg { width: 26px; height: 26px; }
.cat-card__icon--accent { background: var(--accent-light); color: var(--accent); --cat-color: var(--accent); }
.cat-card__icon--teal { background: var(--teal-light); color: var(--teal); --cat-color: var(--teal); }
.cat-card__icon--slate { background: var(--slate-light); color: var(--slate); --cat-color: var(--slate); }

.cat-card__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.cat-card__desc { font-size: 0.92rem; color: var(--ink-60); margin-bottom: 1.5rem; line-height: 1.6; }
.cat-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--t-fast);
}
.cat-card__link:hover { gap: 0.7rem; }
.cat-card__link svg { width: 14px; height: 14px; }

@media (max-width: 900px) { .categories__grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   ARTICLE CARDS
   ═══════════════════════════════════════ */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.a-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
}
.a-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.a-card__img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.a-card__img svg { width: 80%; height: 80%; }
.a-card__img--accent { background: var(--accent-light); }
.a-card__img--teal { background: var(--teal-light); }
.a-card__img--slate { background: var(--slate-light); }
.a-card__img--gold { background: var(--gold-light); }

.a-card__body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }

.a-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.a-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
}
.a-card__tag--accent { background: var(--accent-light); color: var(--accent); }
.a-card__tag--teal { background: var(--teal-light); color: var(--teal); }
.a-card__tag--slate { background: var(--slate-light); color: var(--slate); }
.a-card__tag--gold { background: var(--gold-light); color: var(--gold); }

.a-card__time { font-size: 0.8rem; color: var(--ink-40); }

.a-card__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.6rem;
  transition: color var(--t-fast);
}
.a-card:hover .a-card__title { color: var(--accent); }

.a-card__excerpt { font-size: 0.9rem; color: var(--ink-60); line-height: 1.6; margin-bottom: 1.5rem; flex: 1; }

.a-card__read {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--t-fast);
}
.a-card__read svg { width: 14px; height: 14px; flex-shrink: 0; }
.a-card__read:hover { gap: 0.7rem; }

.cat-card__link svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
  .a-card__img { height: 140px; }
}

/* ═══════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════ */
.sh { margin-bottom: 3.5rem; }
.sh--center { text-align: center; }
.sh__label { margin-bottom: 0.75rem; }
.sh__title { margin-bottom: 0.75rem; }
.sh__desc { font-size: 1.1rem; color: var(--ink-60); max-width: 560px; line-height: 1.7; }
.sh--center .sh__desc { margin: 0 auto; }

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 4.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(217,91,63,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(26,122,109,0.1) 0%, transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-banner__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-banner__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   TRUST / SOCIAL PROOF
   ═══════════════════════════════════════ */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.trust-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
}
.trust-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
}
.trust-item__icon--accent { background: var(--accent-light); color: var(--accent); }
.trust-item__icon--teal { background: var(--teal-light); color: var(--teal); }
.trust-item__icon--slate { background: var(--slate-light); color: var(--slate); }
.trust-item__icon svg { width: 24px; height: 24px; }
.trust-item__title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.trust-item__desc { font-size: 0.92rem; color: var(--ink-60); line-height: 1.7; }

@media (max-width: 768px) { .trust { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 5rem 0 2.5rem;
  margin-top: 5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}
.footer__brand-desc { font-size: 0.92rem; line-height: 1.7; margin-top: 1rem; }
.footer__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.footer__links a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--t-fast);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: rgba(255,255,255,0.4); transition: color var(--t-fast); }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════ */
.article-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.article-hero__breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-40);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-hero__breadcrumb a { color: var(--accent); }
.article-hero__breadcrumb svg { width: 12px; height: 12px; color: var(--ink-20); }
.article-hero__tag { margin-bottom: 1rem; }
.article-hero__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-40);
}
.article-hero__meta svg { width: 14px; height: 14px; }

/* TOC */
.toc {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0 3rem;
}
.toc__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  margin-bottom: 1rem;
}
.toc ol { padding-left: 1.25rem; counter-reset: toc; }
.toc ol li { counter-increment: toc; margin-bottom: 0.6rem; }
.toc ol li::marker { color: var(--accent); font-weight: 600; }
.toc a {
  font-size: 0.95rem;
  color: var(--ink-60);
  transition: color var(--t-fast);
}
.toc a:hover { color: var(--accent); }

/* Article content */
.article-content { padding: 2rem 0 4rem; }
.article-content h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.25;
}
.article-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.article-content p { color: var(--ink-60); margin-bottom: 1.3rem; max-width: none; }
.article-content strong { color: var(--ink); }
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3rem;
  color: var(--ink-60);
  list-style: revert;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--accent-dark); }

/* CTA Box in articles */
.cta-box {
  background: linear-gradient(135deg, var(--cream-dark) 0%, #fff 100%);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--teal), var(--accent-dark));
}
.cta-box__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.cta-box__desc { font-size: 0.95rem; color: var(--ink-60); margin: 0 auto 2rem; max-width: 500px; line-height: 1.7; }
.cta-box .btn { min-width: 180px; justify-content: center; }

.cta-box--teal { border-color: rgba(26,122,109,0.2); }
.cta-box--teal::before { background: linear-gradient(90deg, var(--teal), var(--accent-dark), var(--teal)); }

/* Comparison table */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 2rem 0;
}
.comp-table th {
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}
.comp-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--ink-60);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:nth-child(even) td { background: var(--surface); }

/* Article visual breaks — SVG illustrations between sections */
.article-visual {
  margin: 3rem 0;
  padding: 2.5rem 2rem;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-visual svg { max-width: 400px; width: 100%; }
.article-visual--accent { background: var(--accent-light); }
.article-visual--teal { background: var(--teal-light); }
.article-visual--slate { background: var(--slate-light); }
.article-visual--gold { background: var(--gold-light); }

/* Article CTA buttons */
.article-cta {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.article-cta .btn {
  min-width: 180px;
  justify-content: center;
  text-decoration: none;
}

/* Key info boxes */
.info-box {
  background: var(--surface-alt);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.info-box--accent { border-left-color: var(--accent); }
.info-box__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* Article section spacing */
.article-content h2 + p { margin-top: 0.5rem; }
.article-content > div > h2:not(:first-child) { margin-top: 4rem; }

/* Carousel related articles */
.carousel {
  margin: 3rem 0;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
}
.carousel__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.carousel__track::-webkit-scrollbar { height: 4px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.carousel__item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: all var(--t-fast);
}
.carousel__item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.carousel__item-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.carousel__item-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.carousel__item-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Comparator page */
.comparator { padding: 3rem 0; }
.comp-hero {
  text-align: center;
  padding: 4rem 0 2rem;
}
.comp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}
.comp-card {
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--t-normal);
  position: relative;
}
.comp-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.comp-card--featured { border-color: var(--accent); }
.comp-card--featured::before {
  content: 'Recommande';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 50px;
}
.comp-card__name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.comp-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}
.comp-card__price span { font-size: 0.9rem; font-weight: 400; color: var(--ink-40); }
.comp-card__features {
  text-align: left;
  margin: 1.5rem 0;
  list-style: none;
}
.comp-card__features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comp-card__features li:last-child { border-bottom: none; }
.comp-card__check { color: var(--teal); flex-shrink: 0; }
.comp-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }

@media (max-width: 768px) { .comp-cards { grid-template-columns: 1fr; } }

/* Visual about page */
.about-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.about-value {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-normal);
}
.about-value:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.about-value__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.about-value__icon svg { width: 34px; height: 34px; }
.about-value__title { font-family: 'Instrument Serif', serif; font-size: 1.3rem; font-weight: 400; margin-bottom: 0.6rem; color: var(--ink); }
.about-value__desc { font-size: 0.95rem; color: var(--ink-60); line-height: 1.7; }

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}
.about-mission__visual {
  background: var(--surface-alt);
  border-radius: var(--r-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-mission__visual svg { width: 100%; max-width: 300px; }

@media (max-width: 768px) {
  .about-values { grid-template-columns: 1fr; }
  .about-mission { grid-template-columns: 1fr; gap: 2rem; }
}

/* Stats grid (about page) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-normal);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card__num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  line-height: 1;
}
.stat-card__num--accent { color: var(--accent); }
.stat-card__num--teal { color: var(--teal); }
.stat-card__num--slate { color: var(--slate); }
.stat-card__label { font-size: 0.85rem; color: var(--ink-60); margin-top: 0.5rem; }

.about-cta-wrap {
  max-width: 680px;
  margin: 2rem auto;
  text-align: center;
}
.about-cta-wrap .t-body { margin-bottom: 2rem; }
.about-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card__num { font-size: 2rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Disclosure */
.disclosure {
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: var(--ink-40);
  line-height: 1.7;
}

/* Related articles */
.related { padding: 3rem 0; border-top: 1px solid var(--border-light); }

/* ═══════════════════════════════════════
   BLOG LISTING
   ═══════════════════════════════════════ */
.blog-hero { padding: 4rem 0 3rem; text-align: center; }
.blog-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.blog-filter {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--ink-60);
  transition: all var(--t-fast);
}
.blog-filter:hover { border-color: var(--ink-40); color: var(--ink); }
.blog-filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══════════════════════════════════════
   ACCESSIBILITY — focus-visible
   ═══════════════════════════════════════ */
.btn:focus-visible,
.header__cta:focus-visible,
.a-card:focus-visible,
.cat-card:focus-visible,
.comp-card .btn:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.header__nav a:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* Skip to content (screen readers) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up { opacity: 0; animation: fadeUp 0.65s var(--ease) forwards; }
.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.2s; }
.fade-up--d3 { animation-delay: 0.3s; }
.fade-up--d4 { animation-delay: 0.4s; }
.fade-up--d5 { animation-delay: 0.5s; }

/* Scroll reveal (JS-driven) */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   SUBTLE TEXTURE
   ═══════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════
   STICKY CTA BAR (bottom — conversion)
   ═══════════════════════════════════════ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--ink);
  padding: 0.85rem 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.sticky-cta__text {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
}
.sticky-cta__text strong { color: #fff; }
.sticky-cta .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; border-radius: var(--r-sm); }

@media (max-width: 600px) {
  .sticky-cta__text { display: none; }
  .sticky-cta .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Tables: horizontal scroll */
  .comp-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  /* Article visuals */
  .article-visual { padding: 1.5rem 1rem; margin: 2rem 0; }
  
  /* CTA box */
  .cta-box { padding: 2rem 1.5rem; }
  .cta-box .btn { width: 100%; min-width: unset; }
  .cta-box .btn--lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
  
  /* CTA banner */
  .cta-banner { padding: 3rem 2rem; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .cta-banner__actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  
  /* Hero buttons */
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  
  /* Banques pro CTA buttons */
  .banques-cta-flex { flex-direction: column !important; align-items: center; }
  .banques-cta-flex .btn { width: 100%; max-width: 300px; justify-content: center; }
  
  /* Carousel items */
  .carousel__track { gap: 1rem; }
  .carousel__item { flex: 0 0 260px; }
  
  /* About CTA */
  .about-cta-actions { flex-direction: column; align-items: center; }
  .about-cta-actions .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  /* Even tighter mobile */
  .t-display--xl { font-size: 2.2rem; }
  .comp-card { padding: 2rem 1.5rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero__stats { gap: 1.5rem; }
  .hero__stat-num { font-size: 1.6rem; }
  
  /* Sticky CTA: stack */
  .sticky-cta__inner { gap: 0.5rem; }
  .sticky-cta .btn { padding: 0.45rem 0.85rem; font-size: 0.75rem; border-radius: 6px; }
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-40); }
