/* =========================================================================
   IDECLARE · Landing — Design System
   Direction : Suisse moderne, éditorial, géométrique, raffiné.
   Base : moteur Facturia (mêmes effets), recoloré aux teintes IDECLARE.
   Type : Archivo (sans) + IBM Plex Mono (labels) + Fraunces (accents italiques).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@1,9..144,300..700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --red: #cf2b1d;
  --red-dark: #9f2218;
  --red-soft: #f6e0db;
  --ink: #1a1410;
  --ink-2: #2a221c;
  --text: #3a322b;
  --muted: #7c7166;
  --muted-2: #a99e90;
  --paper: #f1ece3;
  --paper-2: #e8e0d2;
  --soft: #efe9de;
  --surface: #fbf8f2;
  --line: #ded5c5;
  --line-strong: #c9bda8;
  --line-ink: rgba(26, 20, 16, .08);
  --green: #168a4a;
  --amber: #b45309;
  --blue: #2563eb;
  --shadow: 0 22px 70px rgba(10, 10, 10, .10);
  --shadow-soft: 0 16px 44px rgba(10, 10, 10, .07);
  --shadow-ring: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(10, 10, 10, .06);
  --shadow-deep: 0 30px 80px -20px rgba(10, 10, 10, .25), 0 12px 30px -10px rgba(10, 10, 10, .12);
  --container: 1240px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--ink); color: var(--paper); }

img { max-width: 100%; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}

.scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: var(--red);
  transition: width .12s linear;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(241, 236, 227, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: background-color;
}

.site-header.is-scrolled {
  background: rgba(241, 236, 227, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10, 10, 10, .02), 0 8px 24px rgba(10, 10, 10, .04);
}

.nav-wrap {
  width: min(var(--container), calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  letter-spacing: -.01em;
}

.brand-logo {
  display: block;
  width: 138px;
  max-width: 100%;
  height: auto;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  transition: color .22s var(--ease-out);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform .28s var(--ease-out);
}

.site-nav a:hover { color: var(--red); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 1.8px;
  background: currentColor;
  border-radius: 4px;
  transition: transform .25s var(--ease-out), opacity .2s ease;
}

.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  min-height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out), color .22s var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:hover::after { transform: translateX(130%); }
.btn:disabled { cursor: progress; opacity: .72; transform: none; }

.btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 18px rgba(10, 10, 10, .15);
}

.btn-primary:hover {
  background: #000;
  box-shadow: 0 14px 30px rgba(10, 10, 10, .22);
  transform: translateY(-2px);
}

.btn-red {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(207, 43, 29, .22);
}

.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 16px 32px rgba(207, 43, 29, .30);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }

.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-ring);
}

.eyebrow .swiss-cross {
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.eyebrow .swiss-cross::before,
.eyebrow .swiss-cross::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.eyebrow .swiss-cross::before {
  top: 50%; left: 22%; right: 22%; height: 22%;
  transform: translateY(-50%);
}

.eyebrow .swiss-cross::after {
  left: 50%; top: 22%; bottom: 22%; width: 22%;
  transform: translateX(-50%);
}

.eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(207, 43, 29, .14);
  animation: pulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--red);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
}

.text-mono { font-family: var(--font-mono); }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 120px;
  background: var(--paper);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    600px circle at var(--mx, 70%) var(--my, 30%),
    rgba(207, 43, 29, .12),
    transparent 55%
  );
  transition: background .25s var(--ease-out);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
  opacity: .7;
}

.hero-blob-1 {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(207, 43, 29, .18), transparent 60%);
  animation: drift 22s var(--ease-in-out) infinite;
}

.hero-blob-2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, .08), transparent 65%);
  animation: drift 28s var(--ease-in-out) -6s infinite reverse;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1.05fr);
  gap: 60px;
  align-items: center;
}

.hero-copy { max-width: 620px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-cell::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--muted);
}

.hero-meta-cell:first-child::before { display: none; }

.hero h1 {
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 0;
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(38px);
  animation: wordIn .9s var(--ease-out) forwards;
  animation-delay: calc(var(--word-index, 0) * 60ms + 100ms);
}

.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: .94em;
  letter-spacing: -.02em;
  position: relative;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6%;
  height: 6%;
  background: rgba(207, 43, 29, .18);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn 1s var(--ease-out) 1.4s forwards;
}

.hero-lead {
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  max-width: 520px;
  letter-spacing: -.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-actions .btn { padding: 0 22px; min-height: 50px; font-size: 15px; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.hero-stat {
  padding: 22px 18px 6px 0;
  border-right: 1px solid var(--line);
}

.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat:not(:first-child) { padding-left: 22px; }

.hero-stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-stat-value sup {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: .04em;
}

.hero-stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- Hero visual / dashboard ---------- */

.hero-visual {
  position: relative;
  perspective: 1600px;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card {
  position: relative;
  width: min(720px, 100%);
  border-radius: 18px;
  overflow: visible;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--ty, 0) * -.5deg))
    rotateY(calc(var(--tx, 0) * .5deg))
    translateZ(0);
  transition: transform .45s var(--ease-out);
}

.dashboard-card-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: -22px;
  background: linear-gradient(135deg, rgba(207, 43, 29, .14), transparent 40%, rgba(10, 10, 10, .06) 80%);
  filter: blur(40px);
  z-index: -1;
  border-radius: 30px;
  opacity: .8;
}

.dashboard-card-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, .22),
    transparent 60%
  );
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}

.dashboard-card:hover .dashboard-card-glare { opacity: 1; }

.float-badge {
  position: absolute;
  z-index: 4;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -12px rgba(10, 10, 10, .18), 0 0 0 1px rgba(255, 255, 255, .8) inset;
  padding: 14px 18px;
  display: grid;
  gap: 4px;
  pointer-events: none;
}

.float-badge .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.float-badge .label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.float-badge .label.warn::before { background: var(--amber); }
.float-badge .label.red::before { background: var(--red); }

.float-badge .value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.float-badge .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.float-badge.b1 {
  top: -6%;
  right: -8%;
  animation: floatY 6s var(--ease-in-out) -.4s infinite;
}

.float-badge.b2 {
  bottom: -2%;
  left: -10%;
  animation: floatY 7s var(--ease-in-out) -.2s infinite reverse;
}

.float-badge.b3 {
  top: 36%;
  right: -18%;
  animation: floatY 6.5s var(--ease-in-out) -.8s infinite;
}

.float-badge.b3 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
}

.float-badge .qr-svg {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 0 1px var(--line) inset, 0 4px 12px rgba(10, 10, 10, .08);
}

.float-badge .qr-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.float-badge .qr-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.float-badge .qr-text .value {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: -.005em;
}

/* ---------- Trust marquee band ---------- */

.trust-band {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}

.trust-strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.trust-strip-inner span::before {
  content: "✦";
  color: var(--red);
  font-size: 10px;
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 0;
  position: relative;
}

.section.alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.section-head h2,
.split-copy h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
}

.section-head h2 .serif,
.split-copy h2 .serif,
.cta-panel h2 .serif {
  color: var(--red);
  font-size: .94em;
}

.section-head p,
.split-copy p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 460px;
}

/* ---------- Feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid.feature-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature-card,
.value-card,
.story-card,
.faq-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-ring);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}

.feature-card { display: grid; gap: 14px; }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(207, 43, 29, .25);
}

.feature-card:hover .feature-icon {
  transform: rotate(-4deg) scale(1.06);
  background: var(--red);
  color: var(--paper);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 6px;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}

.feature-card h3,
.value-card h3,
.story-card h3,
.faq-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.18;
  margin: 0;
}

.feature-card p,
.value-card p,
.story-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Workflow / Timeline ---------- */

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.workflow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  width: var(--workflow-progress, 0%);
  background: var(--red);
  transform: translateY(-.5px);
  transition: width 1.4s var(--ease-out);
  z-index: 1;
}

.workflow-step {
  position: relative;
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 14px;
  transition: background .3s var(--ease-out);
}

.workflow-step:last-child { border-right: 0; }

.workflow-step:hover { background: var(--paper); }

.workflow-step .num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.workflow-step .num strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.workflow-step:hover .num strong {
  background: var(--red);
}

.workflow-step h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin: 0;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workflow-step .icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

/* ---------- Workflow: pinned section, one card at a time ---------- */

.workflow-pin-section {
  padding-top: 0;
  padding-bottom: 0;
}

.workflow-pin-wrap {
  position: relative;
}

.workflow-pin-section.is-pinned .workflow-pin-wrap {
  height: 360vh;
}

.workflow-pin-viewport {
  width: 100%;
  padding: 96px 0;
}

.workflow-pin-section.is-pinned .workflow-pin-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.workflow-pin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 96px;
  align-items: start;
  width: 100%;
}

.workflow-sticky-aside {
  align-self: start;
  display: grid;
  gap: 22px;
}

.workflow-sticky-aside .section-label { margin-bottom: 4px; }

.workflow-sticky-aside h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.028em;
  margin: 0;
  color: var(--ink);
}

.workflow-sticky-aside h2 .serif {
  color: var(--red);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.022em;
}

.workflow-sticky-aside > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 38ch;
}

.workflow-counter {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 0;
  margin-top: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.workflow-counter-current {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color .35s var(--ease-out);
}

.workflow-counter-sep {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--line);
  line-height: 1;
}

.workflow-counter-total {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
}

.workflow-counter-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: end;
  padding-bottom: 10px;
  padding-left: 8px;
  justify-self: start;
  transition: color .35s var(--ease-out);
}

.workflow-progress {
  margin-top: 4px;
}

.workflow-progress-track {
  position: relative;
  display: block;
  width: 100%;
  max-width: 220px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.workflow-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--red);
  transition: width .25s var(--ease-out);
  will-change: width;
}

.workflow-pin-stage {
  position: relative;
  width: 100%;
}

.workflow-pin-section.is-pinned .workflow-pin-stage {
  min-height: 420px;
}

.workflow.workflow-pin-pages {
  position: relative;
  display: block;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.workflow.workflow-pin-pages::before { display: none; }

.workflow.workflow-pin-pages .workflow-step {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "num   icon"
    "title icon"
    "desc  icon";
  gap: 18px 36px;
  align-content: center;
  padding: 56px 64px;
  border: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 50px -32px rgba(11, 11, 13, .18);
  min-height: 360px;
  align-items: center;
}

.workflow-pin-section:not(.is-pinned) .workflow.workflow-pin-pages .workflow-step + .workflow-step {
  margin-top: 18px;
}

.workflow-pin-section.is-pinned .workflow.workflow-pin-pages .workflow-step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(28px) scale(.985);
  pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
  will-change: opacity, transform;
}

.workflow-pin-section.is-pinned .workflow.workflow-pin-pages .workflow-step.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.workflow.workflow-pin-pages .workflow-step .num { grid-area: num; }

.workflow.workflow-pin-pages .workflow-step h3 {
  grid-area: title;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -.022em;
  line-height: 1.06;
  margin: 0;
  max-width: 18ch;
}

.workflow.workflow-pin-pages .workflow-step p {
  grid-area: desc;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 52ch;
  color: var(--muted);
}

.workflow.workflow-pin-pages .workflow-step .icon-tile {
  grid-area: icon;
  align-self: start;
  justify-self: end;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 24px;
  background: var(--paper);
}

@media (max-width: 1080px) {
  .workflow-pin-section { padding: 60px 0; }
  .workflow-pin-section.is-pinned .workflow-pin-wrap { height: auto; }
  .workflow-pin-section.is-pinned .workflow-pin-viewport {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
    padding: 0;
  }
  .workflow-pin-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .workflow-sticky-aside { gap: 16px; }
  .workflow-counter,
  .workflow-progress { display: none; }
  .workflow-pin-section.is-pinned .workflow-pin-stage { min-height: 0; }
  .workflow-pin-section.is-pinned .workflow.workflow-pin-pages .workflow-step {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    min-height: 0;
    padding: 28px 24px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "icon"
      "title"
      "desc";
  }
  .workflow-pin-section.is-pinned .workflow.workflow-pin-pages .workflow-step + .workflow-step {
    margin-top: 16px;
  }
  .workflow.workflow-pin-pages .workflow-step .icon-tile {
    justify-self: start;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
  }
}

/* ---------- Split (showcase) ---------- */

.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.split-copy h2 .serif {
  color: var(--red);
}

.split-copy .check-rail {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.split-copy .check-rail li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.split-copy .check-rail li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------- Comparison "Avant / Avec" ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}

.compare-card {
  position: relative;
  border-radius: 16px;
  padding: 36px 32px;
  display: grid;
  gap: 16px;
  overflow: hidden;
  transition: transform .4s var(--ease-out);
}

.compare-card:hover { transform: translateY(-4px); }

.compare-card.before {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.compare-card.after {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.compare-card.after::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(207, 43, 29, .25), transparent 50%);
  pointer-events: none;
}

.compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
}

.compare-card.before .compare-tag {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.compare-card.after .compare-tag {
  background: rgba(207, 43, 29, .18);
  color: #f2887b;
  border: 1px solid rgba(207, 43, 29, .35);
}

.compare-card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  position: relative;
}

.compare-card.after h3 { color: var(--paper); }

.compare-card ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
}

.compare-card ul li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
}

.compare-card.before ul li::before {
  content: "✕";
  color: #c44;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(196, 68, 68, .12);
  font-size: 12px;
}

.compare-card.after ul li::before {
  content: "✓";
  color: #74e0a3;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(116, 224, 163, .14);
  font-size: 12px;
}

.compare-card.after ul li { color: rgba(255, 255, 255, .85); }

/* ---------- PDF preview (existing classes preserved) ---------- */

.invoice-preview-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: 22px;
  transform: perspective(1600px) rotateY(-3deg) rotateX(2deg);
  transition: transform .6s var(--ease-out);
}

.invoice-preview-card:hover {
  transform: perspective(1600px) rotateY(0) rotateX(0);
}

.qr-preview-card { background: var(--paper-2); }

.invoice-page-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
  max-height: min(76vh, 760px);
  min-height: 480px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  overscroll-behavior: contain;
}

.invoice-page-figure {
  margin: 0;
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
}

.invoice-page-figure span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.invoice-page-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(10, 10, 10, .14);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.invoice-page-figure:hover img {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(10, 10, 10, .18);
}

/* ---------- PDF preview — pin-and-scroll 3D animation ---------- */

.pdf-scroll-section {
  padding-top: 0;
  padding-bottom: 0;
}

.pdf-pin-wrap {
  position: relative;
}

.pdf-scroll-section.is-pinned .pdf-pin-wrap {
  height: 220vh;
}

.pdf-pin-viewport {
  width: 100%;
}

.pdf-scroll-section.is-pinned .pdf-pin-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pdf-scroll-grid {
  align-items: center;
  position: relative;
}

.pdf-scroll-section.is-pinned .pdf-scroll-copy {
  align-self: center;
}

.pdf-scroll-progress {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-scroll-progress .pdf-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  transition: color .3s var(--ease-out);
}

.pdf-scroll-progress .pdf-step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.pdf-scroll-progress .pdf-step.is-active {
  color: var(--ink);
}

.pdf-scroll-progress .pdf-step.is-active::before {
  background: var(--red);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(207, 43, 29, .12);
}

.pdf-scroll-section.is-pinned .pdf-scroll-stage {
  align-self: center;
  justify-self: center;
  aspect-ratio: 210 / 297;
  height: min(84vh, 880px);
  width: auto;
  max-width: 100%;
  perspective: 1800px;
  transform: none;
  padding: 18px;
  overflow: hidden;
}

.pdf-scroll-section.is-pinned .pdf-scroll-stage:hover {
  transform: none;
}

.pdf-scroll-pages {
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  transform-style: preserve-3d;
}

.pdf-scroll-section.is-pinned .pdf-scroll-pages {
  height: 100%;
}

.pdf-scroll-pages .pdf-page {
  margin: 0;
  display: grid;
  gap: 8px;
  width: 100%;
}

.pdf-scroll-pages .pdf-page span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.pdf-scroll-pages .pdf-page img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(10, 10, 10, .16);
}

.pdf-scroll-pages .pdf-page + .pdf-page { margin-top: 18px; }

.pdf-scroll-section.is-pinned .pdf-scroll-pages .pdf-page {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  margin: 0;
  width: auto;
  transform-origin: center top;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform .12s linear, opacity .12s linear;
}

.pdf-scroll-section.is-pinned .pdf-scroll-pages .pdf-page[data-pdf-page="1"] {
  z-index: 2;
}

.pdf-scroll-section.is-pinned .pdf-scroll-pages .pdf-page[data-pdf-page="2"] {
  z-index: 1;
  transform: translate3d(0, 14%, -180px) rotateX(18deg);
  opacity: 0;
}

@media (max-width: 1080px) {
  .pdf-scroll-section { padding: 60px 0; }
  .pdf-scroll-section.is-pinned .pdf-pin-wrap { height: auto; }
  .pdf-scroll-section.is-pinned .pdf-pin-viewport {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  .pdf-scroll-section.is-pinned .pdf-scroll-stage {
    height: auto;
    padding: 14px;
  }
  .pdf-scroll-section.is-pinned .pdf-scroll-pages { height: auto; }
  .pdf-scroll-section.is-pinned .pdf-scroll-pages .pdf-page {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none !important;
    opacity: 1 !important;
  }
  .pdf-scroll-section.is-pinned .pdf-scroll-pages .pdf-page + .pdf-page { margin-top: 18px; }
}

/* ---------- Dark band (automation) ---------- */

.dark-band {
  position: relative;
  padding: 120px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 24%, rgba(207, 43, 29, .26), transparent 32%),
    radial-gradient(circle at 86% 80%, rgba(37, 99, 235, .14), transparent 30%);
  filter: blur(16px);
  z-index: 0;
}

.dark-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 96px 96px;
  z-index: 0;
  pointer-events: none;
}

.dark-band > .container { position: relative; z-index: 1; }

.dark-band .section-label { color: #f2887b; }
.dark-band .section-label::before { background: #f2887b; }

.dark-band .section-head h2 { color: var(--paper); }
.dark-band .section-head h2 .serif { color: #f2887b; }
.dark-band .section-head p { color: rgba(255, 255, 255, .68); }

.dark-band .feature-card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  backdrop-filter: blur(10px);
  color: var(--paper);
}

.dark-band .feature-card h3 { color: var(--paper); }
.dark-band .feature-card p { color: rgba(255, 255, 255, .65); }
.dark-band .feature-num { color: rgba(255, 255, 255, .4); }
.dark-band .feature-icon {
  background: rgba(207, 43, 29, .18);
  color: #f2887b;
}

.dark-band .feature-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-4px);
}

.dark-band .feature-card:hover .feature-icon {
  background: var(--red);
  color: var(--paper);
}

/* ---------- Testimonial ---------- */

.testimonial-band {
  padding: 120px 0;
  background: var(--paper);
}

.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 60px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -54px;
  left: 24px;
  font-size: 260px;
  line-height: 1;
  color: rgba(207, 43, 29, .08);
  font-family: var(--font-serif);
  pointer-events: none;
  font-style: italic;
}

.testimonial-card blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--ink);
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.testimonial-meta .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #f06a59);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
}

.testimonial-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- 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: 26px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  transition: color .25s var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .35s var(--ease-out), opacity .3s var(--ease-out);
}

.faq-icon::before { width: 12px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 12px; }

.faq-item[open] .faq-icon {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-body {
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 760px;
}

.faq-item[open] .faq-body {
  animation: faqOpen .45s var(--ease-out);
}

/* ---------- CTA panel ---------- */

.cta-panel {
  position: relative;
  border-radius: 18px;
  padding: clamp(40px, 6vw, 72px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-deep);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  isolation: isolate;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(207, 43, 29, .35), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(207, 43, 29, .14), transparent 50%);
  z-index: 0;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(135deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(135deg, transparent, #000 40%);
}

.cta-panel > * { position: relative; z-index: 1; }

.cta-panel h2 { color: var(--paper); }
.cta-panel h2 .serif { color: #f2887b; }
.cta-panel p { color: rgba(255, 255, 255, .7); margin-top: 12px; }

.cta-panel .section-actions { gap: 12px; display: flex; flex-wrap: wrap; }

.cta-panel .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cta-panel .btn-primary:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

.cta-panel .btn-secondary {
  border-color: rgba(255, 255, 255, .25);
  color: var(--paper);
}

.cta-panel .btn-secondary:hover { border-color: var(--paper); }

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (sub-pages preserved) ---------- */

.page-hero {
  padding: 84px 0 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 22%, rgba(207, 43, 29, .08), transparent 30%);
  pointer-events: none;
}

.page-hero > * { position: relative; }

.page-hero-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 54px;
  align-items: center;
}

.page-hero-single { max-width: 860px; }
.page-hero-single.title-only { max-width: 780px; }

.page-hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 600;
}

.page-hero p {
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.page-hero .demo-hero-title {
  font-size: clamp(48px, 5vw, 72px);
  line-height: .98;
  white-space: nowrap;
}

.page-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* timeline (a-propos) */

.timeline { display: grid; gap: 16px; }

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child { padding-bottom: 0; border-bottom: 0; }

.timeline-item strong {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.timeline-item h3 { font-size: 19px; margin: 0 0 6px; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14.5px; }

/* pricing (tarifs) */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-grid.single-plan {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.price-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.price-card.featured {
  border-color: rgba(207, 43, 29, .35);
  box-shadow: 0 24px 60px rgba(207, 43, 29, .12);
}

.price-label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-card h2 { margin: 14px 0 0; font-size: 28px; letter-spacing: -.02em; }

.price {
  margin: 22px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price strong {
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}

.price span { color: var(--muted); font-size: 14px; }

.price-card p { color: var(--muted); line-height: 1.55; font-size: 14.5px; }

.price-card .trial-note { font-size: 17px; color: var(--ink-2); }

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--ink-2);
  line-height: 1.45;
  font-size: 14.5px;
}

.check-list.two-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 24px;
}

.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-ring);
  padding: 28px;
}

.contact-card h3 { font-size: 21px; letter-spacing: -.018em; margin: 0 0 10px; }
.contact-card p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 14.5px; }
.contact-card a { color: var(--red); font-weight: 600; }

.contact-form { display: grid; gap: 14px; }

.contact-feedback {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.contact-feedback[data-state="error"] { color: var(--red); }
.contact-feedback[data-state="success"] { color: var(--green); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: grid; gap: 7px; }

.field label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out);
}

.field textarea { min-height: 130px; padding: 14px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, .06);
}

/* value-grid (a-propos) */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 22px;
}

/* capability cards (tarifs) */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-ring);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 43, 29, .25);
  box-shadow: var(--shadow-soft);
}

.capability-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(207, 43, 29, .14);
  border-radius: 50%;
}

.capability-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.capability-card h3 {
  position: relative;
  margin: 22px 0 10px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.018em;
  z-index: 1;
}

.capability-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
  z-index: 1;
}

/* demo page */

.demo-single { display: grid; justify-items: center; }

.demo-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.demo-form,
.demo-result {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.demo-form { position: sticky; top: 100px; padding: 24px; }

.demo-form-wide {
  position: static;
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 36px);
}

.demo-form h2,
.demo-result h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.02em; }

.demo-form-wide h2 { font-size: clamp(28px, 3vw, 38px); }

.demo-form .field { margin-bottom: 14px; }
.demo-actions { display: grid; gap: 10px; margin-top: 18px; }

.demo-status { min-height: 22px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.demo-result { padding: 24px; }

/* modal (demo) */

body.modal-open { overflow: hidden; }
.landing-modal[hidden] { display: none; }

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 32px;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.pdf-modal-panel {
  position: relative;
  width: min(900px, 100%);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pdf-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(10, 10, 10, .72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 110;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out), border-color .2s var(--ease-out);
}

.pdf-modal-close:hover,
.pdf-modal-close:focus-visible {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.06);
  outline: none;
}

.demo-pdf-pages { display: grid; gap: 22px; justify-items: center; }
.demo-pdf-page { display: grid; gap: 0; justify-items: center; width: 100%; }

.demo-pdf-page-label { display: none; }

.demo-pdf-page canvas {
  max-width: 100%;
  height: auto !important;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.demo-pdf-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

.demo-pdf-loading[hidden] { display: none; }

/* ---------- Legacy compatibility for sub-pages ---------- */

/* Older footer markup */
.footer-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner strong { color: var(--ink); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 14px;
  transition: color .2s var(--ease-out);
}

.footer-links a:hover { color: var(--red); }

/* Older workflow-list (vertical stacked) for contact / split copy */
.workflow-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.workflow-list .workflow-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.workflow-list .workflow-step:last-child { border-bottom: 0; }

.workflow-list .workflow-step > span {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}

.workflow-list .workflow-step h3 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -.018em;
}

.workflow-list .workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14.5px;
}

.btn-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover { background: #000; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 80px 0 44px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand-col { max-width: 380px; }

.footer-brand-col img {
  width: 152px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand-col p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.footer-coords {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: grid;
  gap: 6px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: var(--ink-2);
  font-size: 15px;
  transition: color .2s var(--ease-out);
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
}

/* ---------- Custom cursor (subtle, desktop only) ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 95;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out), width .25s var(--ease-out), height .25s var(--ease-out);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--paper);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--paper);
  transition: opacity .25s var(--ease-out), width .35s var(--ease-out), height .35s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
}

body.cursor-on .cursor-dot,
body.cursor-on .cursor-ring { opacity: 1; }

body.cursor-hot .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, .06);
  border-color: var(--paper);
}

@media (hover: none), (pointer: coarse), (max-width: 860px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- Magnetic CTA hover halo ---------- */

.btn-red, .btn-primary {
  position: relative;
}

.btn-red::before, .btn-primary::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .35), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  pointer-events: none;
}

.btn-red:hover::before, .btn-primary:hover::before { opacity: .8; }

/* ---------- Spotlight hover on cards ---------- */

.feature-card,
.value-card,
.compare-card,
.capability-card {
  --hx: 50%;
  --hy: 50%;
}

.feature-card::after,
.compare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--hx) var(--hy), rgba(207, 43, 29, .07), transparent 65%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.feature-card > *,
.compare-card > *,
.capability-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover::after,
.compare-card:hover::after { opacity: 1; }

.dark-band .feature-card::after {
  background: radial-gradient(280px circle at var(--hx) var(--hy), rgba(242, 136, 123, .12), transparent 65%);
}

/* ---------- Workflow SVG line ---------- */

.workflow {
  position: relative;
  overflow: hidden;
}

.workflow-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  pointer-events: none;
  z-index: 0;
}

.workflow-line svg {
  width: 100%;
  height: 1px;
  display: block;
  overflow: visible;
}

.workflow-line .line-track {
  stroke: var(--line);
  stroke-width: 1;
}

.workflow-line .line-fill {
  stroke: var(--red);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.workflow.is-revealed .workflow-line .line-fill {
  stroke-dashoffset: 0;
}

.workflow-step .num strong {
  position: relative;
  z-index: 2;
  background: var(--ink);
}

/* ---------- Hero stats: swap value with subtle anim ---------- */

.hero-stat-value span {
  display: inline-block;
  transition: transform .5s var(--ease-out);
}

/* ---------- Reveals & motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-fade.is-visible { opacity: 1; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(207, 43, 29, .14); }
  50% { box-shadow: 0 0 0 6px rgba(207, 43, 29, .04); }
}

@keyframes underlineIn {
  to { transform: scaleX(1); }
}

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .reveal, .reveal-fade { opacity: 1; transform: none; }
  .hero h1 .word { opacity: 1; transform: none; animation: none; }
  .invoice-preview-card { transform: none; }
  .trust-strip-inner { animation: none; }
  .float-badge { animation: none; }
  .dashboard-card { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split,
  .demo-layout,
  .compare {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 48px; padding-bottom: 96px; }
  .hero-visual { min-height: 480px; margin-top: 24px; }

  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(odd) { border-right: 1px solid var(--line); }
  .workflow-step:last-child { border-bottom: 0; }

  .compare { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
  .footer-col-extra { grid-column: 1 / -1; }

  .demo-form-wide { width: min(760px, 100%); }
  .demo-form { position: static; }
  .cta-panel { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav-wrap {
    height: 68px;
    width: min(100% - 28px, var(--container));
  }

  .site-nav,
  .nav-actions {
    position: fixed;
    left: 14px;
    right: 14px;
    display: none;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .site-nav {
    top: 78px;
    border-radius: 12px 12px 0 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav a { padding: 12px; border-radius: 6px; }
  .site-nav a:hover { background: var(--soft); }
  .site-nav a::after { display: none; }

  .nav-actions {
    top: 286px;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 0 18px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-open .site-nav, .menu-open .nav-actions { display: flex; }
  .menu-button { display: inline-flex; }

  .feature-grid,
  .pricing-grid,
  .contact-grid,
  .value-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid.feature-grid-four { grid-template-columns: 1fr; }
  .check-list.two-columns { grid-template-columns: 1fr; }

  .section { padding: 80px 0; }
  .testimonial-band { padding: 80px 0; }
  .dark-band { padding: 80px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .float-badge.b3 { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }

  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 56px; line-height: .96; letter-spacing: -.04em; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(1) { border-right: 1px solid var(--line); }
  .hero-stat:nth-child(3) { grid-column: 1 / -1; border-right: 0; padding-left: 0; }

  .hero-meta { grid-template-columns: auto auto; gap: 8px 14px; }
  .hero-meta-cell:nth-child(2)::before { display: none; }

  .float-badge.b1, .float-badge.b2 { display: none; }

  .section-head h2,
  .split-copy h2,
  .cta-panel h2 { font-size: 36px; letter-spacing: -.03em; }

  .testimonial-card { padding: 32px 24px; }
  .testimonial-card::before { font-size: 180px; top: -40px; left: 12px; }

  .form-grid { grid-template-columns: 1fr; }

  .invoice-page-stack { max-height: 560px; min-height: 430px; padding: 10px; }
  .invoice-preview-card { transform: none; padding: 16px; }

  .demo-form-wide { padding: 22px; }
  .demo-actions { grid-template-columns: 1fr; display: grid; }
  .landing-modal { padding: 14px; padding-top: 64px; }
  .pdf-modal-close { top: 14px; right: 14px; width: 40px; height: 40px; }

  .compare-card { padding: 28px 22px; }
}

/* ---------- Scroll-to-top button ---------- */

.scroll-top-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 10, .92);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.92);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), background-color .25s var(--ease-out), border-color .25s var(--ease-out);
  box-shadow: 0 14px 34px rgba(10, 10, 10, .24), 0 2px 6px rgba(10, 10, 10, .12);
  z-index: 60;
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: var(--red);
  border-color: var(--red);
  outline: none;
  transform: translateY(0) scale(1.04);
}

.scroll-top-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(207, 43, 29, .25), 0 14px 34px rgba(10, 10, 10, .24);
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

@media (max-width: 640px) {
  .scroll-top-button {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-button {
    transition: opacity .2s linear;
    transform: none;
  }
  .scroll-top-button.is-visible { transform: none; }
}

/* =========================================================================
   IDECLARE — Spécificités produit (marque, parcours 3 étapes, aperçus app)
   Ajouts par-dessus le moteur Facturia, sans modifier les effets de base.
   ========================================================================= */

/* Skip link (accessibilité) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Marque : icône + mot (IDECLARE n'a pas de logo large) */
.brand { gap: 11px; }
.brand-mark-img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}

/* Bouton pleine largeur (tarifs / actions empilées) */
.btn.wide { width: 100%; }

/* Badge hero "Suisse romande" (remplace le QR Facturia) : croix suisse */
.float-badge .swiss-mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--red);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(207, 43, 29, .28);
}
.float-badge .swiss-mark::before,
.float-badge .swiss-mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
}
.float-badge .swiss-mark::before { top: 50%; left: 26%; right: 26%; height: 16%; transform: translateY(-50%); }
.float-badge .swiss-mark::after  { left: 50%; top: 26%; bottom: 26%; width: 16%; transform: translateX(-50%); }

/* Parcours épinglé : IDECLARE a 3 étapes -> hauteur de scroll ajustée */
.workflow-pin-section.is-pinned .workflow-pin-wrap { height: 300vh; }

/* Aperçu "document final" : captures app en paysage -> cadre paysage (et non A4 portrait) */
.pdf-scroll-section.is-pinned .pdf-scroll-stage {
  aspect-ratio: 1400 / 1024;
  height: auto;
  width: min(660px, 100%);
}
@media (max-width: 1080px) {
  .pdf-scroll-section.is-pinned .pdf-scroll-stage { width: 100%; aspect-ratio: auto; }
}

/* Démo : sections "split" alternées (image à gauche une fois sur deux) */
.split.reverse .split-copy { order: 2; }
@media (max-width: 1080px) {
  .split.reverse .split-copy { order: 0; }
}

/* Carte aperçu app inclinée (démo / showcase) */
.app-shot-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: perspective(1600px) rotateY(-3deg) rotateX(2deg);
  transition: transform .6s var(--ease-out);
}
.app-shot-card:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.app-shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(26, 20, 16, .14);
}
@media (max-width: 640px) {
  .app-shot-card { transform: none; padding: 12px; }
}

/* Footer : marque icône + mot pour IDECLARE */
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-mark img { width: 40px; height: 40px; border-radius: 9px; margin: 0; }
.footer-brand-mark span {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--ink);
}
.footer-col .footer-static { color: var(--ink-2); font-size: 15px; }

/* Contraste accru du texte rouge fin sur fond clair (WCAG AA) */
.section-label { color: var(--red-dark); }
.section-label::before { background: var(--red-dark); }
.contact-card a { color: var(--red-dark); }
