/* ====================================================================
   mon3p.ch — Système de design + styles homepage
   Production version (sans tweaks/variants)
   ==================================================================== */

:root {
  /* Colors — palette crème équilibrée */
  --bg: #F5EFDF;
  --bg-elevated: #FAF5E7;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --muted: #6B6B6B;
  --muted-soft: #9A9A95;
  --line: #E5DEC5;
  --line-soft: #ECE5D2;

  /* Accent — Racing Green */
  --accent: #0F4C3A;
  --accent-hover: #0B3A2C;
  --accent-soft: #E2EAE3;
  --accent-ink: #FAFAF7;

  /* Dark surfaces */
  --dark: #0A0A0A;
  --dark-elevated: #141413;
  --dark-line: #2A2A28;
  --dark-muted: #8A8A85;

  /* Type */
  --serif: "Source Serif 4", "GT Sectra", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Source Serif 4", Georgia, serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Article placeholders — cards "Bientôt" non cliquables */
.article-card.is-coming-soon {
  cursor: default;
  opacity: 0.55;
  position: relative;
  pointer-events: none;
}
.article-card.is-coming-soon::after {
  content: "Bientôt";
  position: absolute;
  top: 12px; right: 12px;
  background: color-mix(in srgb, var(--accent) 92%, transparent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  pointer-events: none;
}
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

/* Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 6.5vw, 96px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
p  { margin: 0; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}

/* Layout helpers ------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

/* Buttons ------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform 0.55s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 1px 2px rgba(10,10,10,0.08);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--accent) 60%, transparent),
              0 1px 0 rgba(255,255,255,0.12) inset;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* Animated underline link */
.link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.link:hover { color: var(--accent); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link .arrow { transition: transform 0.5s var(--ease); display: inline-block; }
.link:hover .arrow { transform: translate(4px, -3px); }
.link-accent { color: var(--accent); }

/* Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Section dividers ---------------------------------------------------- */
.section {
  padding: clamp(72px, 9vw, 140px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 760px;
}
/* Variant for headers that have a "see more" link to the right */
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin: 0 4px 3px 4px;
  align-self: center;
}
.logo .tld { color: var(--muted); font-weight: 300; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  font-weight: 450;
}
.nav a:hover { background: var(--line-soft); color: var(--ink); }

.header-cta { display: flex; gap: 10px; align-items: center; }

/* ===== BURGER + MOBILE DRAWER ===== */
.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 51;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  background: var(--bg);
  z-index: 49;
  padding: 32px var(--gutter) 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav {
  display: grid;
  gap: 4px;
  text-align: center;
}
.mobile-nav a {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease);
}
.mobile-nav a:hover, .mobile-nav a:focus { color: var(--accent); }
.mobile-nav .mobile-nav-secondary {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 24px 0 8px;
  border-bottom: 0;
}
.mobile-nav .mobile-nav-cta {
  font-family: var(--sans);
  font-size: 15px;
  border-bottom: 0;
  padding: 0;
  margin-top: 8px;
  justify-self: center;
}

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .mobile-drawer { display: block; }
  body.drawer-open { overflow: hidden; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}

/* Highlighter effect (3-pass marker sur "jargon") — texture marker réelle */
.hl {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-weight: inherit;
  isolation: isolate;
  white-space: nowrap;
  font-family: var(--hand);
  font-style: normal;
  font-weight: 600;
}
.hl > span.hl-text {
  position: relative;
  z-index: 2;
}
.hl > span.hl-stroke,
.hl::before,
.hl::after {
  content: "";
  position: absolute;
  left: 0;
  background: var(--accent);
  /* Marker texture : bords arrondis aléatoires + flou + masque noise */
  border-radius: 4px 6px 5px 7px / 8px 5px 7px 4px;
  filter: blur(0.4px);
  -webkit-mask-image:
    radial-gradient(ellipse at 10% 50%, rgba(0,0,0,0.95), rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.7) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='40'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -0.4 1.2'/></filter><rect width='200' height='40' filter='url(%23n)'/></svg>");
          mask-image:
    radial-gradient(ellipse at 10% 50%, rgba(0,0,0,0.95), rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.7) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='40'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -0.4 1.2'/></filter><rect width='200' height='40' filter='url(%23n)'/></svg>");
  -webkit-mask-composite: source-over;
          mask-composite: add;
  -webkit-mask-size: 100% 100%, 200px 40px;
          mask-size: 100% 100%, 200px 40px;
  z-index: 1;
  pointer-events: none;
  transform: scaleX(0);
}
/* Stroke 1 — gauche → droite, légère inclinaison */
.hl::before {
  bottom: 0.04em;
  height: 0.46em;
  width: 104%;
  left: -2%;
  transform-origin: left center;
  transform: scaleX(0) rotate(-0.7deg);
  animation: hl-pass-ltr 0.85s 0.35s cubic-bezier(.55,.05,.25,1) forwards;
  opacity: 0.55;
}
/* Stroke 2 — droite → gauche, démarre APRÈS stroke 1 */
.hl > span.hl-stroke {
  bottom: 0.09em;
  height: 0.52em;
  width: 105%;
  left: -2.5%;
  transform-origin: right center;
  transform: scaleX(0) rotate(0.6deg);
  animation: hl-pass-rtl 0.85s 1.30s cubic-bezier(.55,.05,.25,1) forwards;
  opacity: 0.50;
}
/* Stroke 3 — gauche → droite, couvre tout */
.hl::after {
  bottom: 0.06em;
  height: 0.56em;
  width: 103%;
  left: -1.5%;
  transform-origin: left center;
  transform: scaleX(0) rotate(-0.2deg);
  animation: hl-pass-ltr 0.85s 2.25s cubic-bezier(.55,.05,.25,1) forwards;
  opacity: 0.55;
}
@keyframes hl-pass-ltr {
  0%   { transform: scaleX(0) rotate(var(--r, 0deg)); }
  100% { transform: scaleX(1) rotate(var(--r, 0deg)); }
}
@keyframes hl-pass-rtl {
  0%   { transform: scaleX(0) rotate(var(--r, 0deg)); }
  100% { transform: scaleX(1) rotate(var(--r, 0deg)); }
}

/* Italic "accented" word with hand-drawn underline */
.hero h1 .accented {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  display: inline-block;
}
.hero h1 .accented svg.underline {
  position: absolute;
  left: -1%; right: -1%; bottom: -0.18em;
  width: 102%; height: 0.5em;
  pointer-events: none;
  overflow: visible;
}
.hero h1 .accented svg.underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  opacity: 0.6;
  animation: pencil-draw 0.8s 1s linear forwards;
}
@keyframes pencil-draw { to { stroke-dashoffset: 0; } }

.hero-meta { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.hero-counter {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 24px 22px;
  display: grid;
  gap: 8px;
}
.counter-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.counter-pulse {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  position: relative;
}
.counter-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: var(--accent); opacity: 0.5;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}
.counter-value-wrap { position: relative; display: inline-block; }
.counter-value-wrap svg.circle-mark {
  position: absolute;
  inset: -14px -22px -14px -22px;
  width: calc(100% + 44px);
  height: calc(100% + 28px);
  pointer-events: none;
  overflow: visible;
}
.counter-value-wrap svg.circle-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  opacity: 0.6;
  animation: circle-draw 0.7s 1.7s linear forwards;
}
@keyframes circle-draw { to { stroke-dashoffset: 0; } }
.counter-value {
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.counter-value .currency { color: var(--muted); font-size: 0.55em; margin-left: 4px; }
.counter-sub { font-size: 13px; color: var(--muted); }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl::before, .hl::after, .hl > span.hl-stroke,
  .hero h1 .accented svg.underline path,
  .counter-value-wrap svg.circle-mark path { animation: none; transform: scaleX(1); stroke-dashoffset: 0; }
}

/* ===== TRUST BAND ===== */
.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { color: var(--accent); }
.trust-divider { width: 1px; height: 14px; background: var(--line); }
@media (max-width: 720px) { .trust-divider { display: none; } }

/* ===== SIMULATOR ===== */
.simulator { background: var(--bg); }
.sim-card {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.sim-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-ink) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.sim-card .field label { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }

/* Custom dropdown */
.dd { position: relative; }
.dd-trigger {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--accent-ink) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent);
  border-radius: 12px;
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.dd-trigger:hover { border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.dd[data-open="true"] .dd-trigger {
  background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
  border-color: var(--accent-ink);
}
.dd-chevron { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.dd[data-open="true"] .dd-chevron { transform: rotate(180deg); }
.dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--accent-ink);
  color: var(--accent);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(10,10,10,0.35), 0 4px 12px -4px rgba(10,10,10,0.2);
  z-index: 20;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  max-height: 280px;
  overflow-y: auto;
}
.dd[data-open="true"] .dd-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dd-menu li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.dd-menu li:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.dd-menu li[data-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.sim-card .btn-primary {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
}
.sim-card .btn-primary:hover {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--bg);
}

.sim-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input {
  height: 50px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-ink) 8%, transparent);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--accent-ink);
  appearance: none;
  cursor: text;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus {
  outline: none;
  background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
  border-color: var(--accent-ink);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--accent-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--accent) inset;
  caret-color: var(--accent-ink);
  transition: background-color 9999s ease-in-out 0s;
}

.sim-result {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent);
  align-items: center;
}
.sim-result-amount {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}
.sim-result-amount .accented { color: var(--accent-ink); font-style: italic; opacity: 0.95; }
.sim-result-detail { font-size: 14px; color: color-mix(in srgb, var(--accent-ink) 80%, transparent); line-height: 1.6; }
.sim-result-detail strong { color: var(--accent-ink); font-weight: 500; }
.sim-result-detail a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .sim-form { grid-template-columns: 1fr 1fr; }
  .sim-form > .btn-primary { grid-column: 1 / -1; }
  .sim-result { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .sim-form { grid-template-columns: 1fr; gap: 14px; }
  .sim-card { padding: 24px 20px; border-radius: 18px; }
}

/* ===== SILOS ===== */
.silos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
}
@media (max-width: 900px) { .silos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .silos-grid { grid-template-columns: 1fr; } }

.silo-card {
  background: var(--bg);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr auto;
  position: relative;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease), z-index 0s linear 0.6s, border-radius 0.4s var(--ease);
  min-height: 240px;
  z-index: 1;
}
.silo-card::before,
.silo-card::after {
  content: "";
  position: absolute;
  background: var(--line);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.silo-card::before { top: 0; bottom: 0; right: -0.5px; width: 1px; }
.silo-card::after { left: 0; right: 0; bottom: -0.5px; height: 1px; }

.silos-grid .silo-card:nth-child(3n)::before { opacity: 0; }
.silos-grid .silo-card:nth-child(n+4):nth-last-child(-n+3)::after { opacity: 0; }
.silos-grid .silo-card:last-child::after,
.silos-grid .silo-card:last-child::before { opacity: 0; }

.silos-grid .silo-card:first-child { border-top-left-radius: 24px; }
.silos-grid .silo-card:nth-child(3) { border-top-right-radius: 24px; }
.silos-grid .silo-card:nth-last-child(3) { border-bottom-left-radius: 24px; }
.silos-grid .silo-card:last-child { border-bottom-right-radius: 24px; }

@media (max-width: 900px) {
  .silos-grid .silo-card { border-radius: 0; }
  .silos-grid .silo-card::before { opacity: 1; }
  .silos-grid .silo-card::after { opacity: 1; }
  .silos-grid .silo-card:nth-child(2n)::before { opacity: 0; }
  .silos-grid .silo-card:nth-last-child(-n+2)::after { opacity: 0; }
  .silos-grid .silo-card:first-child { border-top-left-radius: 24px; border-top-right-radius: 0; }
  .silos-grid .silo-card:nth-child(2) { border-top-right-radius: 24px; }
  .silos-grid .silo-card:nth-last-child(2) { border-bottom-left-radius: 24px; }
  .silos-grid .silo-card:last-child { border-bottom-right-radius: 24px; }
}
@media (max-width: 600px) {
  .silos-grid .silo-card { border-radius: 0; }
  .silos-grid .silo-card::before { opacity: 0; }
  .silos-grid .silo-card::after { opacity: 1; }
  .silos-grid .silo-card:last-child::after { opacity: 0; }
  .silos-grid .silo-card:first-child { border-top-left-radius: 24px; border-top-right-radius: 24px; }
  .silos-grid .silo-card:last-child { border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
}

.silo-card:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 55%, transparent),
              0 12px 24px -12px rgba(10,10,10,0.18);
  z-index: 2;
  border-radius: 16px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease), z-index 0s linear 0s, border-radius 0.4s var(--ease);
}
.silo-card:hover::before, .silo-card:hover::after { opacity: 0; }
.silo-card:hover h3,
.silo-card:hover p,
.silo-card:hover .silo-cta,
.silo-card:hover .silo-num,
.silo-card:hover .silo-icon { color: var(--accent-ink); }
.silo-card:hover p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.silo-card:hover .silo-icon { transform: scale(1.05); }

.silo-card .silo-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.silo-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.silo-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.silo-card .silo-cta {
  font-size: 13px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color 0.3s var(--ease), gap 0.4s var(--ease);
}
.silo-card:hover .silo-cta { gap: 12px; }
.silo-card .silo-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}

/* ===== TOOLS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px color-mix(in srgb, var(--accent) 50%, transparent);
}
.tool-card:hover h3,
.tool-card:hover p,
.tool-card:hover .tool-tag,
.tool-card:hover .tool-icon { color: var(--accent-ink); }
.tool-card:hover p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.tool-card .tool-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: color 0.4s var(--ease);
}
.tool-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tool-card p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.tool-card .tool-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 16px;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.team-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.team-card .team-spec { font-size: 12px; color: var(--muted); line-height: 1.4; }
.team-card .team-link { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 500; }
.team-card .team-link:hover { text-decoration: underline; }

/* ===== ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card { display: grid; gap: 18px; text-decoration: none; color: inherit; }
.article-image {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line-soft);
  position: relative;
  transition: transform 0.6s var(--ease);
}
.article-card:hover .article-image { transform: scale(1.01); }
.article-image svg { width: 100%; height: 100%; display: block; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-soft); }
.article-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 400;
  transition: color 0.4s var(--ease);
}
.article-card:hover h3 { color: var(--accent); }
.article-byline { font-size: 13px; color: var(--muted); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq-answer {
  padding: 0 0 28px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--dark);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.final-cta h2 {
  color: var(--bg);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.final-cta h2 .accented { color: var(--accent); font-style: italic; }
.final-cta .lead { color: var(--dark-muted); }
.final-cta-form {
  display: grid;
  gap: 12px;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  padding: 28px;
}
.final-cta-form label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  font-weight: 500;
}
.final-cta-form input,
.final-cta-form textarea {
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bg);
  resize: none;
  transition: border-color 0.3s var(--ease);
}
.final-cta-form input:focus,
.final-cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.final-cta-form textarea { min-height: 100px; }
.final-cta-form .btn-primary { margin-top: 4px; }
@media (max-width: 900px) {
  .final-cta-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-size: 12px;
  color: var(--muted);
}
.footer-disclaimer p { color: var(--muted); max-width: 600px; line-height: 1.55; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-disclaimer { flex-direction: column; }
}

/* ===== UTILITIES ===== */
.cluster { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack-sm { display: grid; gap: 8px; }
.stack-md { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 32px; }

/* ====================================================================
   MOBILE — TOUT CENTRÉ (≤ 720px)
   ==================================================================== */
@media (max-width: 720px) {
  /* Hero */
  .hero-inner { text-align: center; }
  .hero .stack-lg, .hero-meta { justify-items: center; align-items: center; text-align: center; }
  .hero h1 { text-align: center; }
  .hero h1 .accented { display: inline-block; }
  .hero-actions { justify-content: center; }
  .hero-counter { text-align: center; max-width: 420px; margin-left: auto; margin-right: auto; width: 100%; }
  .counter-label { justify-content: center; }
  .counter-value { display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; }

  /* Eyebrows : centrer le décor + le texte */
  .eyebrow { justify-content: center; }
  .section-head .eyebrow { justify-self: center; }

  /* Section heads centrés */
  .section-head {
    text-align: center;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  .section-head .lead { margin-left: auto; margin-right: auto; }
  .section-head-row { align-items: center; text-align: center; }

  /* Silos */
  .silo-card { text-align: center; justify-items: center; grid-template-rows: auto auto auto auto; }
  .silo-card .silo-icon { margin: 0 auto; }
  .silo-card .silo-cta { justify-content: center; }
  .silo-card .silo-num {
    position: static;
    margin: 0 0 4px 0;
    align-self: center;
  }

  /* Tools */
  .tool-card { text-align: center; justify-items: center; padding-top: 32px; }
  .tool-card .tool-icon { margin: 0 auto; }
  .tool-card .tool-tag {
    position: static;
    margin: 0 0 4px 0;
  }

  /* Team */
  .team-card { text-align: center; justify-items: center; }

  /* Articles */
  .article-card { text-align: center; }
  .article-meta { justify-content: center; }

  /* Simulator — texte centré, formulaire reste lisible (labels gauche dans les champs) */
  .simulator .section-head { text-align: center; }
  .sim-result-amount { text-align: center; }
  .sim-result-detail { text-align: center; }

  /* Final CTA — centré */
  .final-cta-inner { text-align: center; }
  .final-cta .stack-lg { justify-items: center; align-items: center; }
  .final-cta .cluster { justify-content: center; }
  .final-cta-form { text-align: left; }

  /* FAQ — questions restent alignées gauche pour lisibilité, mais section-head centré */

  /* Footer — centré aussi sur très petit, garde 2 cols sinon */
  .footer-disclaimer { text-align: center; }
}

/* Footer 1 col sur très petit */
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { justify-self: center; }
  .footer-col ul { justify-items: center; }
}

/* ====================================================================
   BREADCRUMB (utilisé sur hubs silo + articles)
   ==================================================================== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 0;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep {
  color: var(--muted-soft);
  user-select: none;
}
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 450;
}

/* ====================================================================
   HERO SILO (version réduite ~70vh, hub de silo)
   ==================================================================== */
.hero-silo {
  position: relative;
  padding: 80px 0 64px;
  background: var(--bg);
  overflow: hidden;
}
.hero-silo::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: -250px; right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.7;
  animation: drift 28s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.04); }
}
.hero-silo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  max-width: 920px;
}
.hero-silo h1 {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.0;
}
.hero-silo h1 .accented {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* Author card inline (signature persona dans le hero silo) */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  width: fit-content;
}
.author-card:hover { border-color: var(--ink); }
.author-card-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  flex-shrink: 0;
}
.author-card-meta {
  display: grid;
  gap: 1px;
}
.author-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.author-card-spec {
  font-size: 12px;
  color: var(--muted);
}

/* ====================================================================
   CONTACT PAGE
   ==================================================================== */
.contact-hero {
  position: relative;
  min-height: 40vh;
  padding: 80px 0 56px;
  overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  top: -300px; right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.7;
  animation: drift 24s ease-in-out infinite;
  pointer-events: none;
}
.contact-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 880px;
}
.contact-hero h1 {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.0;
}
.contact-hero h1 .accented {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.contact-main {
  padding: 64px 0 96px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Form card (left column) */
.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 3.5vw, 44px);
  display: grid;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field { display: grid; gap: 8px; }
.form-field > label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-field textarea {
  height: auto;
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Chips (radios + checkboxes) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
  background: var(--bg);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .check {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--muted-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:has(input:checked) .check {
  background: var(--accent);
  border-color: var(--accent);
}
.chip:has(input:checked) .check::after {
  content: "";
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(-45deg) translate(0px, -1px);
}
.chip[data-kind="radio"] .check { border-radius: 50%; }
.chip[data-kind="radio"]:has(input:checked) .check {
  background: var(--accent);
}
.chip[data-kind="radio"]:has(input:checked) .check::after {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent-ink);
  border-radius: 999px;
  border: 0;
  transform: none;
}

.form-legal {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
}
.form-legal svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-submit .btn-primary { padding: 0 32px; height: 56px; font-size: 16px; }
.response-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.response-time .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
}
.response-time .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: var(--accent); opacity: 0.5;
  animation: cpulse 1.8s ease-out infinite;
}
@keyframes cpulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

.form-success {
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  font-size: 14px;
}

/* Feedback CTA mini-form (success / error) */
.cta-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: cta-feedback-fade 0.4s ease-out;
}
.cta-feedback.is-success {
  background: color-mix(in srgb, #FAFAF7 92%, var(--accent));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.cta-feedback.is-error {
  background: color-mix(in srgb, #FAFAF7 92%, #b04545);
  color: #b04545;
  border: 1px solid color-mix(in srgb, #b04545 24%, transparent);
}
.cta-feedback strong { font-weight: 500; }
@keyframes cta-feedback-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact aside (right column, sticky) */
.contact-side {
  display: grid;
  gap: 32px;
  position: sticky;
  top: 96px;
}
@media (max-width: 1000px) {
  .contact-side { position: static; }
}

.team-mini {
  display: grid;
  gap: 12px;
}
.team-mini-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.team-mini-row:hover { background: var(--bg-elevated); }
.team-mini-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  flex-shrink: 0;
}
.team-mini-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.team-mini-spec {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Why card (dark, on contact aside) */
.why-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}
.why-card h3 {
  color: var(--bg);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}
.why-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.why-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--dark-muted);
  line-height: 1.5;
}
.why-list li svg { color: var(--accent); margin-top: 3px; }
.why-list li strong { color: var(--bg); font-weight: 500; }

/* Stat card */
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  display: grid;
  gap: 8px;
}
.stat-card .stat-num {
  font-family: var(--serif);
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-num .accented { color: var(--accent); font-style: italic; }
.stat-card .stat-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.stat-card .stat-detail strong { color: var(--ink); font-weight: 500; }

/* Alternatives (3 cards under form) */
.alts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) { .alts { grid-template-columns: 1fr; } }
.alt-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.5s var(--ease);
  background: var(--bg-elevated);
}
.alt-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.alt-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alt-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.alt-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.alt-card .arrow {
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.alt-card:hover .arrow { color: var(--accent); transform: translate(3px, -2px); }

/* FAQ mini section */
.faq-mini-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.faq-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-top: 32px;
}
@media (max-width: 720px) { .faq-mini-grid { grid-template-columns: 1fr; } }
.faq-mini-item {
  border-bottom: 1px solid var(--line);
}
.faq-mini-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-mini-item summary::-webkit-details-marker { display: none; }
.faq-mini-item summary:hover { color: var(--accent); }
.faq-mini-chevron {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.5s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-mini-item[open] .faq-mini-chevron {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq-mini-answer {
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
}

/* ====================================================================
   ARTICLE (single article page)
   ==================================================================== */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
.article-body h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 56px;
  margin-bottom: 20px;
}
.article-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.article-body p strong { color: var(--ink); font-weight: 500; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body ul, .article-body ol {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--ink-soft);
}
.article-body li { margin-bottom: 8px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.article-body th {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}
.article-body td { color: var(--ink-soft); }
.article-body tr:hover td { background: var(--bg-elevated); }

.article-lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta-bar .author-card-photo { width: 32px; height: 32px; font-size: 13px; }
.article-meta-bar strong { color: var(--ink); font-weight: 500; }

/* Inline CTA block (mid-article) */
.inline-cta {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.inline-cta-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.inline-cta-text strong { color: var(--accent); font-weight: 500; }

/* Author bottom box (after article) */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 48px 0;
}
.author-box-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  flex-shrink: 0;
}
.author-box-text { flex: 1; }
.author-box h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.author-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Related articles inside article */
.related-articles-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

/* ====================================================================
   PERSONA / PROFILE PAGE
   ==================================================================== */
.persona-hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.persona-hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: -250px; right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.7;
  animation: drift 28s ease-in-out infinite;
}
.persona-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .persona-hero-grid { grid-template-columns: 1fr; }
}
.persona-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}
.persona-photo-large {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 96px;
  letter-spacing: -0.04em;
  justify-self: end;
}
@media (max-width: 900px) {
  .persona-photo-large { justify-self: center; }
}
.persona-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.persona-meta-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.persona-meta-list li svg {
  color: var(--accent);
  margin-top: 4px;
}
.persona-meta-list strong { color: var(--ink); font-weight: 500; }

.silo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.silo-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.silo-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
