/* =========================================================
   CautionLoyerSuisse — Design System (Mockup v1)
   ========================================================= */

:root {
  /* Couleurs */
  --ink-900: #0b1220;
  --ink-800: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;

  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-cream: #fbf7ee;
  --bg-cream-strong: #f5edd8;

  --primary: #b91c1c;       /* red-700 */
  --primary-600: #dc2626;
  --primary-500: #ef4444;
  --primary-50: #fef2f2;

  --accent: #dc2626;        /* red-600 — accord avec --primary */
  --accent-50: #fef2f2;

  --gold: #d97706;          /* amber-600 */
  --gold-soft: #fef3c7;

  --rose: #be123c;
  --rose-soft: #ffe4e6;

  /* Rayons / ombres */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);

  /* Typo */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1400px;
  --container-lg: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-700); }

/* Container ============================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.container-lg { max-width: var(--container-lg); }

/* Header full-width : logo collé à gauche du viewport, CTA collé à droite.
   Footer garde une largeur contenue pour rester lisible. */
.site-header .container {
  max-width: 100%;
  padding: 0 32px;
}
.site-footer .container {
  max-width: var(--container-lg);
  padding: 0 40px;
}
@media (max-width: 640px) {
  .site-header .container { padding: 0 18px; }
}

/* Header ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-900);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-500) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand small { color: var(--ink-500); font-weight: 500; font-size: .82rem; display: block; line-height: 1; margin-top: 2px;}

/* Brand image variant (PNG-Logo) ============================ */
.brand--logo { gap: 0; }
.brand__img {
  display: block;
  width: auto;
  height: 38px;       /* Header default */
  max-width: 100%;
}
.brand__img--footer { height: 34px; }
@media (max-width: 640px) {
  .brand__img { height: 32px; }
  .brand__img--footer { height: 30px; }
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav a:hover { color: var(--primary); }
.nav a.is-active { color: var(--ink-900); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--primary);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Burger-Menu (nur Mobile) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav-burger:hover { background: var(--bg-soft); }
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-900);
  margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-Off-Canvas-Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.nav-mobile a {
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile a.is-active { color: var(--primary); }
.nav-mobile a.btn { padding: 12px 22px; text-align: center; }
.nav-mobile a.btn { border-bottom: 0; }

@media (max-width: 920px) {
  .nav { display: none; }
  .nav-burger { display: block; }
  .nav-mobile:not([hidden]) { display: flex; }
  /* Header-CTA verstecken im Mobile : déplacé plus bas pour passer la cascade
     (la règle générique .btn { display: inline-flex } est déclarée après ce
     bloc et écraserait le display:none sinon). */
}
.lang {
  display: inline-flex; gap: 2px; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  font-size: .8rem; font-weight: 600;
}
.lang button {
  border: 0; background: transparent; padding: 4px 10px; border-radius: 999px;
  color: var(--ink-500); cursor: pointer; font: inherit;
}
.lang button.is-active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-xs); }

/* Buttons ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #111827; color: #fff; box-shadow: var(--shadow-md); }
.btn--accent {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(185, 28, 28, .25);
}
.btn--accent:hover { background: var(--primary-600); color: #fff; }
.btn--cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(220, 38, 38, .25);
  padding: 14px 26px;
  font-size: 1rem;
}
.btn--cta:hover { background: #991b1b; color: #fff; }

/* Compact header CTA — moins dominant que les .btn--accent par défaut.
   Doit être déclaré APRÈS .btn pour que padding et font-size gagnent
   en cascade (spécificité égale → ordre de déclaration). */
.btn--cta-header {
  padding: 9px 18px;
  font-size: .88rem;
  box-shadow: 0 2px 8px rgba(185, 28, 28, .18);
}
.btn--cta-header:hover { box-shadow: 0 4px 14px rgba(185, 28, 28, .28); }

@media (max-width: 920px) {
  .btn--cta-header { display: none; }
}
.btn--ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--ink-900); border-color: var(--ink-400); background: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* Pills / Badges ========================================= */
.pill {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
}
.pill--accent { background: var(--accent-50); color: var(--accent); }
.pill--cream { background: var(--bg-cream-strong); color: #7c5a13; }
.pill--gold { background: var(--gold-soft); color: var(--gold); }
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.badge-best {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(217, 119, 6, .3);
  white-space: nowrap;
}

/* Section ================================================ */
.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }
.section--ink { background: var(--ink-900); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left {
  margin-left: 0;
  text-align: left;
}
.section-head p { color: var(--ink-500); font-size: 1.08rem; }

/* Hero =================================================== */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(220, 38, 38, .10), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(217, 119, 6, .10), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary) 20%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 1.18rem;
  color: var(--ink-500);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-500);
  font-size: .9rem;
}
.hero__trust strong { color: var(--ink-900); }
.avatars {
  display: flex;
}
.avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-cream-strong);
  border: 2px solid #fff;
  margin-left: -8px;
  background-size: cover;
  background-position: center;
}
.avatars span:nth-child(1){ background: linear-gradient(135deg, #fde68a, #f59e0b);}
.avatars span:nth-child(2){ background: linear-gradient(135deg, #bae6fd, #0ea5e9);}
.avatars span:nth-child(3){ background: linear-gradient(135deg, #bbf7d0, #10b981);}
.avatars span:nth-child(4){ background: linear-gradient(135deg, #fbcfe8, #ec4899);}

/* Calculator Card ======================================== */
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.calc-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(220,38,38,.12), rgba(217,119,6,.12));
  filter: blur(40px);
  z-index: -1;
  border-radius: var(--r-xl);
}
.calc-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.calc-card .small {
  color: var(--ink-500); font-size: .9rem; margin-bottom: 22px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.calc-field label { font-weight: 600; font-size: .88rem; color: var(--ink-700); }
.calc-input,
.calc-select {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.calc-input:focus,
.calc-select:focus {
  outline: 0;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.calc-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 4px;
  margin-top: 4px;
}
.calc-segment button {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-500);
  cursor: pointer;
}
.calc-segment button.is-active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-xs); }

.calc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.calc-card-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.calc-card-opt:hover { border-color: var(--ink-300, #d0d4dc); }
.calc-card-opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc-card-opt__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink-700);
  transition: background-color .15s ease, color .15s ease;
}
.calc-card-opt__label {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-700);
}
.calc-card-opt.is-active {
  border-color: var(--primary-500);
  background: rgba(220,38,38,.04);
  box-shadow: 0 0 0 4px rgba(220,38,38,.08);
}
.calc-card-opt.is-active .calc-card-opt__icon {
  background: var(--primary-500);
  color: #fff;
}
.calc-card-opt.is-active .calc-card-opt__label { color: var(--ink-900); }

/* Trust band ============================================= */
.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}
.trust-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.trust-band__label {
  color: var(--ink-500);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-400);
  font-size: 1.05rem;
  letter-spacing: -.01em;
  filter: grayscale(1);
  opacity: .85;
}
.trust-logo span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-logo span::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--ink-400);
}

/* Stats =================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__num em { color: var(--primary); font-style: normal; }
.stat-card__label { color: var(--ink-500); font-size: .92rem; }

/* Feature grid ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature--accent .feature__icon { background: var(--accent-50); color: var(--accent); }
.feature--gold .feature__icon { background: var(--gold-soft); color: var(--gold); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: .96rem; color: var(--ink-500); margin-bottom: 0; }

/* Steps =================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.step__num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-500); margin: 0; }

/* Flow Timeline =========================================== */
.flow-timeline {
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  max-width: 1040px;
  position: relative;
  counter-reset: flow;
}
.flow-timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 92%, transparent);
  transform: translateX(-50%);
  z-index: 0;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  z-index: 1;
}
.flow-step + .flow-step { padding-top: 12px; }
.flow-step__content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.flow-step__content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.flow-step--left  .flow-step__content { grid-column: 1; text-align: right; }
.flow-step--right .flow-step__content { grid-column: 3; text-align: left; }
.flow-step--left  .flow-step__accent  { grid-column: 3; justify-self: start; }
.flow-step--right .flow-step__accent  { grid-column: 1; justify-self: end; }

.flow-step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.flow-step__content h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--ink-900);
}
.flow-step__content p {
  color: var(--ink-700);
  margin: 0;
  font-size: .96rem;
  line-height: 1.6;
}
.flow-step__content em { font-style: italic; color: var(--accent); }

.flow-step__icon {
  grid-column: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-700);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px #fff, var(--shadow-sm);
  transition: transform .2s ease;
}
.flow-step:hover .flow-step__icon { transform: scale(1.06); }
.flow-step__icon--red  { background: var(--primary-50); border-color: rgba(220,38,38,.25); color: var(--accent); }
.flow-step__icon--gold { background: var(--gold-soft); border-color: rgba(217,119,6,.3);  color: var(--gold); }
.flow-step__icon--ink  { background: #f1f5f9;          border-color: #cbd5e1;             color: var(--ink-800); }

/* Side accents */
.flow-step__accent { display: flex; align-items: center; max-width: 280px; }

.flow-pill,
.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.flow-pill svg { color: var(--accent); }
.flow-badge--green { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.flow-badge--green svg { color: #10b981; }
.flow-badge--gold  { background: var(--gold-soft); border-color: #fcd34d; color: #92400e; }
.flow-badge--gold svg { color: var(--gold); }

.flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  min-width: 220px;
}
.flow-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink-700);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.flow-card__body { color: var(--ink-800); font-weight: 500; }
.flow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.flow-dot--green {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}

.flow-quote {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--ink-700);
  font-style: italic;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 260px;
}
.flow-quote__avatar {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-700);
  display: grid;
  place-items: center;
}

/* Mobile: stack — line shifts left, content + accent stack on the right */
@media (max-width: 760px) {
  .flow-timeline { margin-top: 32px; }
  .flow-timeline::before { left: 28px; }
  .flow-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 18px 0;
  }
  .flow-step--left  .flow-step__content,
  .flow-step--right .flow-step__content,
  .flow-step--left  .flow-step__accent,
  .flow-step--right .flow-step__accent {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .flow-step__icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px; height: 48px;
    box-shadow: 0 0 0 4px var(--bg), var(--shadow-sm);
  }
  .flow-step__icon svg { width: 22px; height: 22px; }
  .flow-step__accent { margin-top: 10px; max-width: 100%; }
  .flow-card, .flow-quote, .flow-pill, .flow-badge { min-width: 0; white-space: normal; }
}

/* Audience split (Particuliers / Entreprises) ============= */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 32px 28px;
  text-decoration: none;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
  opacity: .9;
}
.audience-card--gold::before { background: var(--gold); }
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.audience-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.audience-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--accent);
  flex-shrink: 0;
}
.audience-card--gold .audience-card__icon {
  background: var(--gold-soft);
  color: var(--gold);
}
.audience-card__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.audience-card--gold .audience-card__eyebrow { color: var(--gold); }
.audience-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--ink-900);
}
.audience-card__lead {
  color: var(--ink-700);
  font-size: .98rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.audience-card__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audience-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--ink-800);
  line-height: 1.5;
}
.audience-card__list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.audience-card--gold .audience-card__list li svg { color: var(--gold); }
.audience-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 4px;
  font-size: .98rem;
  transition: gap .2s ease;
}
.audience-card--gold .audience-card__cta { color: var(--gold); }
.audience-card:hover .audience-card__cta { gap: 12px; }

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .audience-card { padding: 26px 22px 24px; }
  .audience-card h3 { font-size: 1.3rem; }
}

/* Comparison teaser table ================================ */
.compare-tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px;
  gap: 4px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-xs);
}
.compare-tabs {
  display: flex;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.compare-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  font: inherit;
  color: var(--ink-500);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.compare-tab svg { color: currentColor; }
.compare-tab__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.compare-tab__label strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  color: inherit;
}
.compare-tab__label small {
  font-size: .76rem;
  color: var(--ink-500);
  margin-top: 2px;
}
.compare-tab.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.compare-tab.is-active .compare-tab__label small { color: rgba(255,255,255,.75); }
.compare-tab:not(.is-active):hover { background: var(--bg-soft); color: var(--ink-800); }

.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-card.is-hidden { display: none; }
.compare-card__footnote {
  text-align: center;
  color: var(--ink-500);
  margin-top: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.compare-card__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.compare-card__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
/* 6-column variant for commercial (extra "Frais d'émission") */
.compare-card--commercial .compare-card__head,
.compare-card--commercial .compare-card__row {
  grid-template-columns: 1.4fr .9fr .9fr 1fr .9fr 1fr;
}

@media (max-width: 760px) {
  .compare-tabs { width: 100%; flex-direction: column; border-radius: var(--r-md); }
  .compare-tab { justify-content: flex-start; padding: 12px 16px; border-radius: var(--r-sm); }
}
.compare-card__row:last-child { border-bottom: 0; }
.compare-card__row--highlight {
  background: linear-gradient(0deg, rgba(217,119,6,.04), rgba(217,119,6,.04)), #fff;
  position: relative;
}
.compare-card__row--highlight::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}
.compare-card__provider {
  display: flex; align-items: center; gap: 14px;
}
.provider-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-700);
  font-size: 1rem;
}
.provider-name { font-weight: 700; color: var(--ink-900); }
.provider-meta { font-size: .82rem; color: var(--ink-500); }
.cell-num { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); }
.cell-num small { display: block; color: var(--ink-500); font-size: .76rem; font-weight: 500; }
.rating { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.rating__stars { color: var(--gold); font-size: .92rem; letter-spacing: 1px; }

/* Provider full table (compare page) ===================== */
.providers-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
/* Scroll-Hinweis nur auf Mobile sichtbar */
.scroll-hint {
  display: none;
  font-size: .82rem;
  color: var(--ink-500);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: .02em;
}
@media (max-width: 1080px) {
  .scroll-hint { display: block; }
}
.providers-table__head {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  background: var(--ink-900);
  color: #fff;
  padding: 24px;
  gap: 12px;
}
.providers-table__head .col { font-size: .9rem; font-weight: 600; }
.providers-table__head .col--main { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; opacity: .6; }
.provider-col {
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-md);
  position: relative;
}
.provider-col--best { background: rgba(217, 119, 6, .14); }
.provider-col__name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.provider-col__rating { font-size: .8rem; opacity: .85; }
.provider-col__warn {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: #92400e;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: help;
  white-space: nowrap;
}
.providers-table__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  gap: 12px;
}
.providers-table__row:last-child { border-bottom: 0; }
.providers-table__row .label {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-700); font-weight: 600; font-size: .94rem;
}
.providers-table__row .v {
  font-weight: 600; color: var(--ink-900); font-size: .98rem;
}
.providers-table__row .v small { display: block; color: var(--ink-500); font-weight: 500; font-size: .78rem; }
.providers-table__row--cta { background: var(--bg-soft); padding: 22px 24px; }
.providers-table__row--cta .btn { background: #fff; }
.providers-table__row--cta .btn:hover { background: #fff; border-color: var(--primary); color: var(--primary); }

/* =========================================================
   Compare Grid (v2) — vertical provider cards + criteria
   Subgrid keeps row heights aligned across all 5 columns.
   ========================================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 16px;
  /* 1 head + 4 group headers + 8 cells + 1 cta = 14 */
  grid-template-rows: repeat(14, auto);
  align-items: stretch;
}
.compare-grid--with-entry {
  /* +1 row for "Prime d'entrée 1ère année" */
  grid-template-rows: repeat(15, auto);
}
.compare-grid__col {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  align-content: stretch;
}

/* — Criteria column (left) — */
.compare-grid__col--criteria {
  padding: 0;
}
.compare-grid__head--criteria {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-400);
  padding: 28px 4px 16px;
}
.compare-grid__group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 4px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.compare-grid__group--total {
  color: var(--primary);
}
.compare-grid__group--spacer {
  /* Used in provider columns to occupy the same grid row as the criteria group header */
  border-bottom: none;
  padding: 22px 0 10px;
}
.compare-grid__group-icon {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.compare-grid__group--total .compare-grid__group-icon {
  background: rgba(220, 38, 38, .08);
}
.compare-grid__label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 4px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--line-soft);
  min-height: 64px;
}
.compare-grid__label--total {
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 700;
}
.compare-grid__cta-spacer {
  /* Aligns with the CTA row in provider cards */
  padding: 18px 0;
  min-height: 64px;
}

/* — Provider card (column) — */
.compare-grid__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.compare-grid__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* — Card header — */
.compare-grid__head {
  position: relative;
  padding: 28px 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.compare-grid__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.compare-grid__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.compare-grid__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .88rem;
  color: var(--ink-700);
}
.compare-grid__rating .rating__stars { color: var(--gold); font-size: .95rem; }
.compare-grid__rating strong { color: var(--ink-900); font-weight: 700; }
.compare-grid__rating-meta { color: var(--ink-500); font-size: .82rem; }

/* CGA PDF download — appears in the "Conditions générales" cell */
.compare-grid__cga {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-900);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.compare-grid__cga:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.compare-grid__cga-icon { font-size: .95rem; line-height: 1; }
.compare-grid__cga-label { font-family: var(--font-display); letter-spacing: .04em; }
.compare-grid__cga-date {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* Higher specificity (chained class) so it wins over the global .tooltip
   styles defined later in this file. */
.compare-grid__warn.tooltip {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: #92400e;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: help;
  border: 0;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.compare-grid__warn.tooltip::before { display: none; }

/* — Cell — */
.compare-grid__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 64px;
  gap: 4px;
  position: relative;
}
.compare-grid__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
  line-height: 1.2;
}
.compare-grid__value--accent { color: var(--accent); }
.compare-grid__value--warn   { color: var(--gold); font-weight: 800; }
.compare-grid__value--text   { font-size: .92rem; font-weight: 600; }
.compare-grid__value--total {
  font-size: 1.4rem;
  color: var(--primary);
}
.compare-grid__cell small {
  display: block;
  color: var(--ink-500);
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.35;
}
.compare-grid__cell--total {
  background: linear-gradient(0deg, rgba(220, 38, 38, .04), rgba(220, 38, 38, .04));
}

/* — CTA row — */
.compare-grid__cta {
  padding: 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  min-height: 64px;
}

/* =========================================================
   Filter pill bar — replaces .filter-card on /comparatif
   ========================================================= */
.filter-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.filter-pill__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 18px;
  flex: 1 1 0;
  min-width: 0;
}
.filter-pill__field label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
}
.filter-pill__input,
.filter-pill__select {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  font-family: inherit;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.filter-pill__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}
.filter-pill__input:focus-visible,
.filter-pill__select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}
.filter-pill__divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}
.filter-pill__submit {
  border-radius: var(--r-pill) !important;
  padding: 14px 28px !important;
  flex-shrink: 0;
}

/* =========================================================
   Compare grid — responsive
   ========================================================= */
@media (max-width: 1080px) {
  .compare-grid {
    grid-template-columns: 200px repeat(4, minmax(180px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-400) var(--bg-soft);
    padding-bottom: 8px;
  }
  .compare-grid__col--criteria {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 4px 0 8px -6px rgba(15, 23, 42, .15);
  }
  .compare-grid__name { font-size: 1rem; }
  .compare-grid__value { font-size: .98rem; }
  .compare-grid__value--total { font-size: 1.2rem; }
}
@media (max-width: 720px) {
  .compare-grid {
    grid-template-columns: 160px repeat(4, 160px);
    gap: 10px;
  }
  .compare-grid__head { padding: 20px 12px 16px; }
  .compare-grid__name { font-size: .95rem; }
  .compare-grid__rating { font-size: .8rem; }
  .compare-grid__cell { padding: 14px 10px; min-height: 60px; }
  .compare-grid__label { padding: 14px 4px; font-size: .85rem; min-height: 60px; }
  .compare-grid__cta { padding: 12px; }
}

/* — Filter pill responsive — */
@media (max-width: 720px) {
  .filter-pill {
    flex-direction: column;
    border-radius: var(--r-xl);
    padding: 14px;
    gap: 10px;
    align-items: stretch;
  }
  .filter-pill__field { padding: 10px 14px; }
  .filter-pill__divider {
    width: 100%;
    height: 1px;
  }
  .filter-pill__submit {
    width: 100%;
  }
}

/* Facts row — disclaimer / méthodologie résumée sous la table ============ */
.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.fact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}
.fact-card__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.fact-card__title {
  display: block;
  color: var(--ink-900);
  font-size: .94rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.fact-card__body {
  color: var(--ink-500);
  font-size: .86rem;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 1080px) {
  .facts-row { grid-template-columns: 1fr; }
}
.tooltip {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  color: var(--ink-400);
  font-size: .68rem;
  cursor: help;
  vertical-align: middle;
  margin-left: 4px;
}
.tooltip:hover, .tooltip:focus { color: var(--ink-700); border-color: var(--ink-400); outline: 0; }
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink-900);
  color: #fff;
  font-size: .8rem;
  font-weight: 400;
  font-family: var(--font-sans);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  width: max-content;
  max-width: 280px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  z-index: 50;
}
.tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink-900);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility 0s linear .15s;
  pointer-events: none;
}
.tooltip:hover::after,
.tooltip:focus::after,
.tooltip:hover::before,
.tooltip:focus::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .15s ease, transform .15s ease, visibility 0s;
}

/* Rich tooltip — hover/focus popover avec contenu HTML (ex. tableau) ===== */
.tooltip-rich {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  outline: 0;
}
.tooltip-rich:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .25); }

.tooltip-rich__panel {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  padding: 14px 16px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  z-index: 100;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  white-space: normal;
}
.tooltip-rich:hover .tooltip-rich__panel,
.tooltip-rich:focus .tooltip-rich__panel,
.tooltip-rich:focus-within .tooltip-rich__panel {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tooltip-rich__panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink-900);
}
.tooltip-rich__panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.tooltip-rich__panel th {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .6);
  padding: 4px 0;
  text-align: left;
  font-weight: 700;
}
.tooltip-rich__panel td {
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
}
.tooltip-rich__panel td:last-child {
  text-align: right;
  font-weight: 700;
  color: #fff;
}

/* Pricing card =========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card--featured {
  border-color: transparent;
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .12);
  position: relative;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-card .price-card__lead { color: var(--ink-500); font-size: .92rem; margin-bottom: 22px; }
.price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-900);
  font-size: 2.6rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.price small { font-size: .9rem; color: var(--ink-500); font-weight: 500; }
.price-card__list { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; }
.price-card__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .94rem; color: var(--ink-700);
}
.check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 800;
}
.cross {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 800;
}

/* FAQ ===================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__body { padding: 0 24px 22px; color: var(--ink-500); }
.faq__body p:last-child { margin-bottom: 0; }

/* Final CTA =============================================== */
.cta-block {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #991b1b 60%, var(--primary-500) 100%);
  border-radius: var(--r-xl);
  color: #fff;
  padding: 60px;
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 90% 0%, rgba(255,255,255,.18), transparent 50%),
    radial-gradient(50% 60% at 0% 100%, rgba(217,119,6,.24), transparent 50%);
  pointer-events: none;
}
.cta-block h2 { color: #fff; margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,.86); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-block .btn--primary { background: #fff; color: var(--ink-900); }
.cta-block .btn--primary:hover { background: #fff; color: var(--ink-900); }
.cta-block .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* Footer ================================================== */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.72);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 {
  color: #fff;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-grid a { color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a { color: rgba(255,255,255,.55); }
.footer-bottom .legal .footer-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.footer-bottom .legal .footer-link-btn:hover { color: #fff; }

/* Page hero (sub-pages) =================================== */
.page-hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 100%);
  position: relative;
}
.page-hero h1 { max-width: 900px; }
.page-hero__lead { font-size: 1.15rem; color: var(--ink-500); max-width: 640px; }

/* Page hero — Panorama-Variante mit Hintergrundbild + Gradient-Overlay
   Verwendung: <section class="page-hero page-hero--panorama" style="--hero-image: url('/img/hero/garantie-de-loyer.jpg');"> */
.page-hero--panorama {
  padding: 120px 0 100px;
  background: var(--hero-image, none) center/cover no-repeat, var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 720px) {
  .page-hero--panorama { padding: 64px 0 56px; }
  .page-hero--panorama h1 { font-size: 1.85rem; line-height: 1.15; }
  .page-hero--panorama .page-hero__lead { font-size: 1rem; }
}
.page-hero--panorama::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, .35) 0%, rgba(11, 18, 32, .55) 60%, rgba(11, 18, 32, .85) 100%),
    radial-gradient(80% 60% at 20% 30%, rgba(220, 38, 38, .18), transparent 60%);
  z-index: -1;
}
.page-hero--panorama .container { position: relative; z-index: 1; }
.page-hero--panorama h1,
.page-hero--panorama h2 { color: #fff; }
.page-hero--panorama .page-hero__lead { color: rgba(255, 255, 255, .82); }
.page-hero--panorama .crumbs,
.page-hero--panorama .crumbs a { color: rgba(255, 255, 255, .65); }
.page-hero--panorama .crumbs a:hover { color: #fff; }
.page-hero--panorama .pill {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(8px);
}
.page-hero--panorama .product-points strong { color: #fff; }
.page-hero--panorama .product-points span:not(.check) { color: rgba(255, 255, 255, .72); }
.page-hero--panorama .check {
  background: var(--accent);
  color: #fff;
}

/* Optionales Hero-Video (Kling-Cinemagraph statt Standbild) */
.page-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Inline-Bilder im Blog-Artikel (innerhalb .prose) */
.prose figure.prose-figure {
  margin: 40px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.prose figure.prose-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.prose figure.prose-figure figcaption {
  padding: 14px 22px 16px;
  font-size: .85rem;
  color: var(--ink-500);
  text-align: left;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Document-Mockup-Komponente: 100% kontrollierter französischer Text
   Ersetzt unzuverlässige AI-Bilder mit Pseudo-Text auf Dokumenten.
   Variants: .doc-mock--bail | .doc-mock--bank | .doc-mock--letter */
.prose figure.doc-mock-figure {
  margin: 48px 0;
  background: linear-gradient(135deg, #e0e7ec 0%, #d1dde4 50%, #c5d3dc 100%);
  border-radius: var(--r-lg);
  padding: 56px 48px 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.prose figure.doc-mock-figure figcaption {
  padding: 14px 22px 16px;
  font-size: .85rem;
  color: var(--ink-500);
  text-align: center;
  background: rgba(255, 255, 255, .85);
  border-top: 1px solid var(--line);
  margin: 56px -48px 0;
  border-radius: 0;
}
.doc-mock {
  background: #fefefe;
  margin: 0 auto;
  padding: 36px 38px 44px;
  max-width: 460px;
  position: relative;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 11px;
  line-height: 1.55;
  color: #1e293b;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 8px 28px rgba(15,23,42,.18),
    0 24px 60px rgba(15,23,42,.18);
  transform: rotate(-1.2deg);
  border-radius: 2px;
}
.doc-mock + .doc-mock { margin-top: -120px; transform: rotate(1.4deg) translateX(40px); }
.doc-mock__head {
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.doc-mock__org {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0b1220;
  text-transform: uppercase;
}
.doc-mock__org small {
  display: block;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .05em;
  color: #64748b;
  margin-top: 2px;
  text-transform: none;
}
.doc-mock__meta {
  text-align: right;
  font-size: 9px;
  color: #64748b;
  line-height: 1.5;
}
.doc-mock h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #0b1220;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}
.doc-mock__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 10.5px;
  color: #334155;
  margin-bottom: 6px;
}
.doc-mock__row strong { color: #0b1220; font-weight: 600; }
.doc-mock__line {
  border-bottom: 1px dotted #cbd5e1;
  margin: 10px 0;
}
.doc-mock__amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #0b1220;
  text-align: right;
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.doc-mock__amount small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.doc-mock__signature {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d1d5db;
  font-size: 9.5px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.doc-mock__signature span {
  flex: 1;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 14px;
  font-style: italic;
  color: #94a3b8;
}
.doc-mock__stamp {
  position: absolute;
  bottom: 30px; right: 30px;
  width: 78px; height: 78px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  line-height: 1.15;
  transform: rotate(-12deg);
  opacity: .85;
}

/* Variant: Bankauszug */
.doc-mock--bank .doc-mock__org { color: var(--accent); }
.doc-mock--bank h4 { color: var(--accent); }

/* Variant: Brief / Lettre */
.doc-mock--letter h4 { text-align: left; margin-top: 4px; }
.doc-mock--letter .doc-mock__body {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.65;
  margin-top: 8px;
}
.doc-mock--letter .doc-mock__body p { margin: 0 0 8px; }
.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: .85rem; color: var(--ink-500);
  margin-bottom: 20px;
}
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--primary); }

/* Filters bar (compare page) ============================= */
.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr) auto;
  gap: 14px;
  align-items: end;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.filter-card .calc-field { margin-bottom: 0; }
.filter-card .calc-input,
.filter-card .calc-select { padding: 12px 14px; }

/* Side-by-side product layout =========================== */
.product-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: start;
}
.product-points { display: grid; gap: 18px; margin: 26px 0 32px; }
.product-points li {
  display: flex; gap: 14px; align-items: flex-start;
  list-style: none;
}
.product-points .check { width: 24px; height: 24px; font-size: .85rem; }
.product-points strong { color: var(--ink-900); display: block; margin-bottom: 2px; }
.product-points span { color: var(--ink-500); font-size: .94rem; }

.media-card {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-strong) 100%);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.media-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle at center, rgba(220,38,38,.18), transparent 70%);
  right: -80px; bottom: -80px;
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: left;
}
.benefit-tile .num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Pros / Cons cards (page société) ======================== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pros-cons__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.pros-cons__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.pros-cons__card--pros::before {
  background: linear-gradient(90deg, transparent, #10b981 50%, transparent);
}
.pros-cons__card--cons::before {
  background: linear-gradient(90deg, transparent, var(--primary) 50%, transparent);
}

.pros-cons__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pros-cons__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pros-cons__badge--pros { background: #ecfdf5; color: #047857; }
.pros-cons__badge--cons { background: var(--primary-50); color: var(--primary); }
.pros-cons__count {
  font-size: .8rem;
  color: var(--ink-500);
  font-weight: 600;
}

.pros-cons__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.pros-cons__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .98rem;
  color: var(--ink-700);
  line-height: 1.5;
}
.pros-cons__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 800;
  margin-top: 1px;
  flex-shrink: 0;
}
.pros-cons__icon--pos { background: #d1fae5; color: #047857; }
.pros-cons__icon--neg { background: var(--primary-50); color: var(--primary); }

@media (max-width: 1080px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* Blog ==================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card__cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-50), var(--bg-cream-strong));
  position: relative;
  overflow: hidden;
}
.blog-card__cover.gradient-1 { background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 100%); }
.blog-card__cover.gradient-2 { background: linear-gradient(135deg, #d1fae5 0%, #fde68a 100%); }
.blog-card__cover.gradient-3 { background: linear-gradient(135deg, #ede9fe 0%, #fbcfe8 100%); }
.blog-card__cover.gradient-4 { background: linear-gradient(135deg, #fef3c7 0%, #fbcfe8 100%); }
.blog-card__cover.gradient-5 { background: linear-gradient(135deg, #fae8ff 0%, #cffafe 100%); }
.blog-card__cover.gradient-6 { background: linear-gradient(135deg, #ccfbf1 0%, #ddd6fe 100%); }
.blog-card__cover svg {
  position: absolute; right: 14px; bottom: 14px;
  opacity: .35;
  z-index: 2;
}

/* Variante avec photo de fond pour les cards de la grille blog */
.blog-card__cover--photo {
  background: none;
}
.blog-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.blog-card__cover--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(127, 29, 29, .40) 0%,
    rgba(185, 28, 28, .30) 50%,
    rgba(15, 23, 42, .55) 100%);
  z-index: 1;
}
.blog-card__cover--photo svg {
  stroke: var(--accent);
  opacity: .55;
  stroke-width: 1;
}
.blog-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.25;
}
.blog-card h3 a { color: inherit; }
.blog-card__excerpt { color: var(--ink-500); font-size: .94rem; margin-bottom: 18px; flex: 1; }
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--ink-500);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}
.blog-featured__cover {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* Variante avec photo de fond pour le featured block */
.blog-featured__cover--photo { background: none; }
.blog-featured__cover--photo .blog-featured__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.blog-featured__cover--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(127, 29, 29, .40) 0%,
    rgba(185, 28, 28, .30) 50%,
    rgba(15, 23, 42, .55) 100%);
  z-index: 1;
}
.blog-featured__cover--photo > * { position: relative; z-index: 2; }
.blog-featured__cover--photo svg { stroke: var(--accent); opacity: .55; }
.blog-featured__body { padding: 48px 56px 48px 8px; }
.blog-featured h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.blog-featured__meta {
  display: flex; gap: 14px; align-items: center;
  color: var(--ink-500); font-size: .9rem; margin-top: 20px;
}

.cat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.cat-chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}
.cat-chip.is-active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.cat-chip:hover:not(.is-active) { border-color: var(--primary); color: var(--primary); }

.search-bar {
  position: relative;
  max-width: 480px;
}
.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font: inherit;
  color: var(--ink-900);
}
.search-bar input:focus {
  outline: 0;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.search-bar svg {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400);
}

/* Newsletter ============================================== */
.newsletter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 100% 0%, rgba(217,119,6,.22), transparent 50%);
}
.newsletter-card h2 { color: #fff; margin-bottom: 8px; }
.newsletter-card p { color: rgba(255,255,255,.72); margin: 0; }
.newsletter-form {
  display: flex; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  padding: 6px;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  color: #fff;
  font: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { outline: 0; }
.newsletter-form .btn { background: var(--accent); color: #fff; }
.newsletter-form .btn:hover { background: #991b1b; color: #fff; }

/* Article (Blog detail) =================================== */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 60;
  transition: width .15s linear;
}

.article-hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 100%);
}
.article-hero__inner { max-width: 880px; margin: 0 auto; }
.article-hero .crumbs { margin-bottom: 28px; }
.article-hero .blog-card__cat { font-size: .82rem; margin-bottom: 14px; }
.article-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.article-hero__lead {
  font-size: 1.2rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 32px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-500);
}
.article-meta__author {
  display: flex; align-items: center; gap: 12px;
}
.article-meta__author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fecaca, #b91c1c);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
}
.article-meta__author strong { color: var(--ink-900); display: block; line-height: 1.2; }
.article-meta__author span { font-size: .82rem; }
.article-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.article-cover {
  aspect-ratio: 21/9;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 60%, #fef3c7 100%);
  margin: 0 auto 56px;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}
.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,.4), transparent 60%);
}
.article-cover svg {
  position: absolute; right: 60px; bottom: 40px;
  opacity: .25;
  z-index: 2;
}

/* Variante avec photo de fond — gardez le gradient pastel et l'icône, mais
   laissez la photo respirer dessous. */
.article-cover--photo {
  background: none;
}
.article-cover__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.article-cover--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Verlauf rötlich → ink dunkel : burgundy → accent red → deep ink */
  background: linear-gradient(135deg,
    rgba(127, 29, 29, .55) 0%,    /* burgundy / red-900 */
    rgba(185, 28, 28, .45) 45%,   /* primary / red-700 */
    rgba(15, 23, 42, .65) 100%);  /* ink-900 */
  z-index: 1;
}
.article-cover--photo::after {
  /* Glanz oben rechts mit warmem Rot-Touch */
  background: radial-gradient(60% 80% at 80% 20%,
    rgba(254, 215, 170, .25),
    transparent 65%);
  z-index: 1;
}
.article-cover--photo svg {
  stroke: var(--accent);
  opacity: .55;
  stroke-width: 1;
}
.article-cover--photo svg { z-index: 2; }

/* Article body grid */
.article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* TOC sidebar */
.toc {
  position: sticky;
  top: 100px;
  font-size: .92rem;
}
.toc__label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 4px;
}
.toc ol li { padding: 0; }
.toc ol a {
  display: block;
  padding: 8px 16px;
  color: var(--ink-500);
  font-weight: 500;
  margin-left: -2px;
  border-left: 2px solid transparent;
  line-height: 1.35;
}
.toc ol a:hover { color: var(--primary); }
.toc ol a.is-active {
  color: var(--ink-900);
  font-weight: 600;
  border-left-color: var(--primary);
}

/* Share rail */
.share-rail {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.share-rail__label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.share-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-500);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .12s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: var(--primary);
}
.share-btn.copy { font-size: .76rem; font-weight: 600; }

/* Prose */
.prose { color: var(--ink-700); font-size: 1.06rem; line-height: 1.75; }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--primary);
}
.prose h2 {
  font-size: 1.7rem;
  margin: 56px 0 18px;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  scroll-margin-top: 100px;
}
.prose p { margin-bottom: 1.2em; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--primary); text-decoration-thickness: 2.5px; }
.prose ul { list-style: disc;    padding-left: 24px; margin: 0 0 1.4em; }
.prose ol { list-style: decimal; padding-left: 24px; margin: 0 0 1.4em; }
.prose ul li, .prose ol li { margin-bottom: .55em; }
.prose ul li::marker, .prose ol li::marker { color: var(--primary); }
.prose blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--primary);
  background: var(--primary-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.1rem;
  color: var(--ink-800);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font-size: .9rem; color: var(--ink-500); font-style: normal; font-weight: 600; }
.prose figure { margin: 36px 0; }
.prose figcaption { font-size: .84rem; color: var(--ink-500); margin-top: 10px; text-align: center; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .96rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: table;
}
.prose thead { background: var(--bg-soft); }
.prose th { text-align: left; padding: 14px 18px; font-weight: 700; color: var(--ink-900); font-size: .92rem; }
.prose td { padding: 14px 18px; border-top: 1px solid var(--line-soft); color: var(--ink-700); }
.prose tr:hover td { background: var(--bg-soft); }
/* Mobile: Tabellen werden scrollbar damit Spalten lesbar bleiben */
@media (max-width: 720px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: .88rem;
  }
  .prose th, .prose td { padding: 10px 14px; }
}

/* Pull-quote */
.pullquote {
  margin: 56px -40px;
  padding: 0 40px;
  border-left: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  font-style: normal;
  letter-spacing: -.01em;
  text-align: left;
  position: relative;
}
.pullquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Callout boxes */
.callout {
  margin: 36px 0;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  border-left: 3px solid var(--accent);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}
.callout--info { background: var(--primary-50); border-left-color: var(--primary); }
.callout--warn { background: var(--gold-soft); border-left-color: var(--gold); }
.callout__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fff;
  display: grid; place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}
.callout--info .callout__icon { color: var(--primary); }
.callout--warn .callout__icon { color: var(--gold); }
.callout strong { color: var(--ink-900); display: block; margin-bottom: 4px; font-size: 1rem; }
.callout p { margin: 0; color: var(--ink-700); font-size: .98rem; line-height: 1.6; }

/* Inline CTA card inside article */
.article-cta {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--ink-900) 0%, #991b1b 100%);
  color: #fff;
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 100% 0%, rgba(217,119,6,.22), transparent 50%);
}
.article-cta h3 { color: #fff; margin: 0 0 6px; font-size: 1.3rem; }
.article-cta p { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }
.article-cta .btn { position: relative; z-index: 1; }

/* Article tags */
.article-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-tag {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: .82rem;
  color: var(--ink-700);
  font-weight: 500;
}
.article-tag:hover { color: var(--primary); border-color: var(--primary); }

/* Author card */
.author-card {
  margin: 56px 0;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.author-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fecaca 0%, #b91c1c 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}
.author-card h4 { margin: 0 0 4px; font-size: 1.15rem; color: var(--ink-900); }
.author-card .role { font-size: .88rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em;}
.author-card p { margin: 0; color: var(--ink-500); font-size: .95rem; }

/* Article footer nav (prev / next) */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 0;
}
.article-nav a {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-700);
  transition: border-color .15s ease, transform .12s ease;
}
.article-nav a:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--ink-700); }
.article-nav__dir {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.article-nav strong { color: var(--ink-900); display: block; line-height: 1.3; }
.article-nav a:last-child { text-align: right; }

@media (max-width: 1080px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    gap: 36px;
  }
  .toc, .share-rail { display: none; }
  .article-cover { aspect-ratio: 16/9; }
  .pullquote { margin: 40px 0; padding: 0; }
  .article-cta { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .article-cta { padding: 24px; }
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-card__avatar { margin: 0 auto; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
}

/* Misc utils ============================================== */
.flex { display: flex; }
.grid { display: grid; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-48 { margin-top: 48px; }
.mb-12 { margin-bottom: 12px; } .mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }

/* Responsive ============================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .steps, .pricing-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4), .footer-grid > div:nth-child(5) { display: none; }
  .compare-card__head, .compare-card__row { grid-template-columns: 1.4fr 1fr 1fr; }
  .compare-card__head .col:nth-child(n+4),
  .compare-card__row .col:nth-child(n+4) { display: none; }

  /* /comparatif Tabelle: horizontaler Scroll statt Spalten verstecken
     Erste Spalte (Label) bleibt sticky links */
  .providers-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Custom scrollbar (mobile-friendly) */
    scrollbar-width: thin;
    scrollbar-color: var(--ink-400) var(--bg-soft);
  }
  .providers-table__head,
  .providers-table__row {
    grid-template-columns: 180px repeat(4, minmax(150px, 1fr));
    min-width: 800px;
  }
  .providers-table__head .col--main,
  .providers-table__row .label {
    position: sticky;
    left: 0;
    z-index: 2;
  }
  .providers-table__head .col--main {
    background: var(--ink-900);
    margin: -6px 0 -6px -8px;
    padding: 6px 12px 6px 8px;
  }
  .providers-table__row .label {
    background: #fff;
    margin: -8px 0 -8px -16px;
    padding: 8px 14px 8px 16px;
    box-shadow: 4px 0 8px -6px rgba(15, 23, 42, .15);
  }
  .providers-table__row--cta .label {
    background: var(--bg-soft);
  }
  .providers-table__row--cta {
    overflow: visible;
  }
  .product-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__body { padding: 32px; }
  .newsletter-card { grid-template-columns: 1fr; padding: 32px; }
  .benefit-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .container,
  .site-header .container,
  .site-footer .container { padding: 0 24px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .section { padding: 56px 0; }
  .stats-grid, .features-grid, .steps, .pricing-grid, .blog-grid { grid-template-columns: 1fr; }
  .filter-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare-card__head, .compare-card__row { grid-template-columns: 1fr 1fr; padding: 16px; }
  .compare-card__head .col:nth-child(n+3),
  .compare-card__row .col:nth-child(n+3) { display: none; }

  /* Mobile: Tabelle wird noch kompakter, label-col schmaler, provider-cols 130px */
  .providers-table__head,
  .providers-table__row {
    grid-template-columns: 140px repeat(4, 130px);
    min-width: 660px;
    padding: 16px;
  }
  .providers-table__head { padding: 18px 16px; }
  .providers-table__row .label { font-size: .85rem; }
  .providers-table__row .v { font-size: .9rem; }
  .cta-block { padding: 36px 24px; }
  .benefit-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* === Zusätzliche Mobile-Optimierungen ============================ */

/* Doc-Mock-Komponente: kleinere Darstellung auf Mobile */
@media (max-width: 720px) {
  .prose figure.doc-mock-figure {
    padding: 32px 20px 0;
    margin: 32px 0;
  }
  .prose figure.doc-mock-figure figcaption {
    margin: 32px -20px 0;
    padding: 12px 18px 14px;
    font-size: .8rem;
  }
  .doc-mock {
    padding: 24px 22px 32px;
    transform: rotate(-0.6deg);
    font-size: 10px;
    box-shadow: 0 6px 20px rgba(15,23,42,.18);
  }
  .doc-mock + .doc-mock {
    margin-top: -80px;
    transform: rotate(0.8deg) translateX(20px);
  }
  .doc-mock h4 { font-size: 12px; }
  .doc-mock__org { font-size: 11.5px; }
  .doc-mock__amount { font-size: 18px; }
  .doc-mock__stamp {
    width: 56px; height: 56px;
    font-size: 7px;
    bottom: 18px; right: 18px;
  }
}

/* Filter-Form /comparatif Mobile: Button breit unter den Felder */
@media (max-width: 720px) {
  .filter-card {
    gap: 14px !important;
    padding: 18px;
  }
  .filter-card .btn { width: 100%; }
}

/* Footer-Grid: 4 → 2 → 1 Spalten */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Article-Hero (Blog) Mobile: weniger Padding, kleinere H1 */
@media (max-width: 720px) {
  .article-hero { padding: 40px 0 28px; }
  .article-hero h1 { font-size: 1.7rem; line-height: 1.2; }
  .article-hero__lead { font-size: .98rem; }
  .article-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: .8rem;
  }
  .article-meta__sep { display: none; }
  .article-cover {
    aspect-ratio: 4/3;
    border-radius: var(--r-md);
    margin-bottom: 36px;
  }
  .article-cover svg { width: 130px; height: 130px; right: 20px; bottom: 16px; }
}

/* Blog-Index Hero: filter-chips horizontal scrollbar auf Mobile */
@media (max-width: 720px) {
  .cat-chips {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { flex-shrink: 0; }
  .search-bar { width: 100%; }
}

/* Article-Grid (TOC + Inhalt): einspaltig auf Mobile, TOC ausgeblendet */
@media (max-width: 1080px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 720px;
  }
  .toc { display: none; }
}

/* Pricing-Grid (z.B. /particuliers Beispiel-Vergleich): immer 2 cols → 1 col */
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Page-Hero allgemein (subseiten ohne Panorama) Mobile: weniger Padding */
@media (max-width: 720px) {
  .page-hero { padding: 40px 0 28px; }
  .page-hero h1 { font-size: 1.85rem; line-height: 1.15; }
}

/* Container-Padding auf sehr kleinen Screens */
@media (max-width: 480px) {
  .container,
  .site-header .container,
  .site-footer .container { padding: 0 16px; }
}

/* Site-Header Mobile: Logo etwas kleiner, Burger sichtbar */
@media (max-width: 720px) {
  .site-header__row { height: 64px; }
  .brand__img { height: 30px; }
}
