/* ============================================
   Acumis — Site web (premier jet)
   ============================================ */

/* Reset + Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--obsidian);
  background: var(--os);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --signal: #FF6B35;
  --obsidian: #0D0D0D;
  --encre: #1A1A2E;
  --os: #F5F0E8;
  --blanc: #FFFFFF;
  --muted: #6B6B6B;
  --rule: #E4E1DA;
  --muted-on-dark: rgba(245, 240, 232, 0.65);
  --rule-on-dark: rgba(245, 240, 232, 0.18);

  --container: 1200px;
  --container-narrow: 880px;
  --container-text: 680px;

  --gutter-xs: 8px;
  --gutter-sm: 16px;
  --gutter-md: 24px;
  --gutter-lg: 48px;
  --gutter-xl: 96px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Typography ===== */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}
.eyebrow-light { color: var(--muted-on-dark); }

.display {
  font-weight: 300;
  font-size: clamp(32px, 6.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h1 {
  font-weight: 300;
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.h2 {
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.lede {
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--obsidian);
}
.lede-light { color: var(--muted); }
.body { font-size: 16px; line-height: 1.65; }
.small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
}
.mono-caption {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: var(--container-narrow); }
.container-text { max-width: var(--container-text); }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.bg-os { background: var(--os); }
.bg-blanc { background: var(--blanc); }
.bg-obsidian { background: var(--obsidian); color: var(--os); }
.bg-encre { background: var(--encre); color: var(--os); }
.bg-obsidian .small, .bg-encre .small { color: var(--muted-on-dark); }
.bg-obsidian .eyebrow, .bg-encre .eyebrow { color: var(--muted-on-dark); }

/* Trait Signal accent */
.signal-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--signal);
  margin: 24px 0;
}
.signal-rule.center { margin-left: auto; margin-right: auto; }

/* Rule horizontal */
.hr-rule { border: 0; border-top: 0.5px solid var(--rule); margin: 32px 0; }
.bg-obsidian .hr-rule, .bg-encre .hr-rule { border-top-color: var(--rule-on-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--signal);
  color: var(--obsidian);
}
.btn-primary:hover { background: #FF7E4D; }
.btn-ghost {
  background: transparent;
  color: var(--obsidian);
  border: 0.5px solid var(--obsidian);
}
.bg-obsidian .btn-ghost, .bg-encre .btn-ghost {
  color: var(--os);
  border-color: var(--os);
}
.btn-ghost:hover { background: var(--obsidian); color: var(--os); }
.bg-obsidian .btn-ghost, .bg-encre .btn-ghost, .hero .btn-ghost {
  color: var(--os);
  border-color: var(--os);
}
.bg-obsidian .btn-ghost:hover, .bg-encre .btn-ghost:hover, .hero .btn-ghost:hover {
  background: var(--os); color: var(--obsidian);
}

.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--obsidian);
  border-bottom: 1px solid var(--obsidian);
  padding-bottom: 2px;
  transition: gap 0.15s ease;
}
.link-ghost:hover { gap: 10px; }
.bg-obsidian .link-ghost, .bg-encre .link-ghost {
  color: var(--os); border-bottom-color: var(--os);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.header-logo { width: 172px; }
.header-logo svg { display: block; width: 100%; height: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--obsidian);
  transition: color 0.15s ease;
  position: relative;
}
.nav-link:hover { color: var(--signal); }
.nav-link.active { color: var(--obsidian); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--obsidian);
}
.nav-cta { margin-left: 12px; padding: 10px 18px; font-size: 13px; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--obsidian);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

@media (max-width: 880px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--os);
    border-bottom: 0.5px solid var(--rule);
    padding: 16px 32px 24px;
    align-items: flex-start;
  }
  .header-nav.open .nav-link {
    padding: 14px 0;
    width: 100%;
    border-bottom: 0.5px solid var(--rule);
    font-size: 16px;
  }
  .header-nav.open .nav-link:last-of-type { border-bottom: none; }
  .header-nav.open .nav-cta { margin: 16px 0 0; width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ===== Footer ===== */
.footer {
  background: var(--obsidian);
  color: var(--os);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand .footer-logo { width: 140px; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--muted-on-dark); }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--os);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  padding-top: 24px;
  border-top: 0.5px solid var(--rule-on-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-on-dark);
  text-transform: uppercase;
}

/* Pré-footer CTA bar */
.cta-strip {
  background: var(--obsidian);
  color: var(--os);
  padding: 88px 0;
  text-align: center;
}
.cta-strip .signal-rule { margin: 28px auto; }
.cta-strip .h2 { color: var(--os); margin-bottom: 8px; }
.cta-strip p { color: var(--muted-on-dark); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Hero (Accueil) ===== */
.hero {
  background: var(--obsidian);
  color: var(--os);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow { color: var(--muted-on-dark); margin-bottom: 32px; }
.hero .display { color: var(--os); margin-bottom: 32px; max-width: 22ch; }
.hero .signal-rule { width: 80px; margin: 0 0 32px; }
.hero .lede { color: var(--muted-on-dark); max-width: 68ch; margin-bottom: 48px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Demo block ===== */
.demo-frame {
  background: #F5F4ED;
  border-radius: 4px;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 800 / 1280 = 62.5% — guaranteed 1280:800 ratio */
  position: relative;
  overflow: hidden;
  border: 0.5px solid var(--rule-on-dark);
}
.demo-placeholder {
  text-align: center;
  color: var(--muted-on-dark);
}
.demo-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--os);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--os);
}
.demo-frame::before {
  content: none;
}
.demo-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.demo-caption {
  margin-top: 16px;
  text-align: center;
}

/* ===== Three column problem grid ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.col-item .col-icon {
  width: 40px; height: 40px;
  margin-bottom: 24px;
  color: var(--obsidian);
}
.col-item h3 { margin-bottom: 12px; }
.col-item p { font-size: 15px; line-height: 1.6; color: var(--obsidian); }

@media (max-width: 880px) {
  .three-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Solution cards ===== */
.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.solution-card {
  display: block;
  padding: 36px 32px;
  background: var(--blanc);
  border: 0.5px solid var(--rule);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.solution-card:hover {
  transform: translateY(-2px);
  border-color: var(--obsidian);
}
.solution-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.solution-card:hover::before { transform: scaleY(1); }
.solution-card .eyebrow { margin-bottom: 24px; }
.solution-card h3 { font-weight: 300; font-size: 22px; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.015em; }
.solution-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }

@media (max-width: 880px) {
  .solution-cards { grid-template-columns: 1fr; }
}

/* ===== Stats strip ===== */
.stats-strip { background: var(--encre); color: var(--os); padding: 96px 0; }
.stats-strip .eyebrow { display: block; text-align: center; margin-bottom: 56px; color: var(--muted-on-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}
.stat-cell {
  text-align: center;
  padding: 0 24px;
  border-right: 0.5px solid var(--rule-on-dark);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  line-height: 1.5;
}

.stats-quote {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 0.5px solid var(--rule-on-dark);
  text-align: center;
}
.stats-quote q {
  display: block;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  font-style: italic;
  color: var(--os);
  margin-bottom: 20px;
}
.stats-quote q::before, .stats-quote q::after { content: ''; }
.stats-quote .signature {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

@media (max-width: 880px) {
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-cell { border-right: none; border-bottom: 0.5px solid var(--rule-on-dark); padding-bottom: 32px; }
  .stat-cell:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ===== Solution detail (page Solutions) ===== */
.solution-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.solution-detail.reverse .solution-detail-content { order: 2; }
.solution-detail.reverse .solution-detail-mock { order: 1; }
.solution-detail-content .eyebrow { margin-bottom: 16px; }
.solution-detail-content .h2 { margin-bottom: 16px; }
.solution-detail-content .lede-light { margin-bottom: 32px; }
.solution-detail-content .body { margin-bottom: 32px; }
.solution-detail-content h3.h3 { margin-top: 32px; margin-bottom: 16px; }
.solution-detail-content ul, .solution-detail-content ol {
  margin: 0 0 32px 0;
  padding-left: 0;
  list-style: none;
}
.solution-detail-content ul li,
.solution-detail-content ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.solution-detail-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.solution-detail-content ol { counter-reset: step; }
.solution-detail-content ol li {
  counter-increment: step;
}
.solution-detail-content ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  top: 4px;
}

.price-card {
  background: var(--encre);
  color: var(--os);
  padding: 28px 32px;
  margin: 32px 0 24px;
}
.price-card .eyebrow {
  color: var(--muted-on-dark);
  margin-bottom: 12px;
}
.price-card p { font-size: 15px; line-height: 1.55; color: var(--os); }
.price-card p strong { font-weight: 500; }

.solution-mock {
  background: var(--obsidian);
  color: var(--os);
  border-radius: 4px;
  padding: 24px;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 100px;
  border: 0.5px solid var(--rule-on-dark);
  display: flex;
  flex-direction: column;
}
.mock-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  align-items: center;
}
.mock-chrome span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule-on-dark);
}
.mock-chrome-meta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--muted-on-dark);
}
.mock-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--rule-on-dark);
}
.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted-on-dark);
}
.mock-status-dot {
  width: 6px; height: 6px;
  background: #65D67E;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(101, 214, 126, 0.5);
}
.mock-status-dot.pulse {
  background: var(--signal);
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.5);
  animation: mock-pulse 1.4s ease-in-out infinite;
}
@keyframes mock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mock-line {
  height: 8px;
  background: var(--rule-on-dark);
  border-radius: 2px;
  margin-bottom: 12px;
}
.mock-line.short { width: 40%; }
.mock-line.med { width: 70%; }
.mock-line.signal { background: var(--signal); width: 30%; height: 2px; margin: 16px 0; }
.mock-block {
  border: 0.5px solid var(--rule-on-dark);
  padding: 16px;
  margin-top: 16px;
}
.mock-block .mono { color: var(--muted-on-dark); margin-bottom: 8px; }
.mock-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mock-block-head .mono { margin-bottom: 0; }
.mock-pill {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
  border: 0.5px solid var(--rule-on-dark);
  padding: 2px 6px;
  border-radius: 2px;
}
.mock-highlight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.mock-highlight-row .mock-line.signal {
  margin: 0;
  flex: 1;
}
.mock-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--signal);
  background: rgba(255, 107, 53, 0.10);
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
}
.mock-cite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.mock-cite-tag {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
  background: rgba(245, 240, 232, 0.05);
  border: 0.5px solid var(--rule-on-dark);
  padding: 2px 6px;
  border-radius: 2px;
}
.mock-para-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mock-para-row .mock-line { margin-bottom: 0; flex: 1; }
.mock-para-num {
  font-size: 9px;
  color: var(--muted-on-dark);
  width: 14px;
  flex-shrink: 0;
}
.mock-cursor {
  width: 1px;
  height: 12px;
  background: var(--signal);
  flex-shrink: 0;
  animation: mock-blink 1s steps(2) infinite;
}
@keyframes mock-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.mock-footer-row {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--rule-on-dark);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}
.mock-caption {
  margin-top: auto;
  padding-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-align: center;
}

@media (max-width: 880px) {
  .solution-detail { grid-template-columns: 1fr; gap: 48px; }
  .solution-detail.reverse .solution-detail-content { order: 1; }
  .solution-detail.reverse .solution-detail-mock { order: 2; }
  .solution-mock { position: static; aspect-ratio: 16/12; }
}

/* ===== Anchors ===== */
.anchor-row {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.anchor-row a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.anchor-row a:hover { color: var(--obsidian); border-bottom-color: var(--obsidian); }

/* ===== Comparison table ===== */
.compare-wrap { margin-top: 48px; overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border: 0.5px solid var(--rule);
}
.compare th, .compare td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--rule);
  font-size: 14px;
  vertical-align: top;
}
.compare thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--os);
}
.compare tbody th {
  font-weight: 500;
  color: var(--obsidian);
  background: var(--os);
  font-size: 13px;
  width: 32%;
}
.compare-note {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Preuves (Page) ===== */
.case-study {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.case-narrative h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 32px;
  margin-bottom: 12px;
}
.case-narrative h4:first-child { margin-top: 0; }
.case-narrative p { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.case-facts {
  border-left: 0.5px solid var(--rule);
  padding-left: 32px;
}
.case-fact {
  margin-bottom: 32px;
}
.case-fact .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.case-fact .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--obsidian);
}
.case-quote {
  background: var(--encre);
  color: var(--os);
  padding: 48px;
  margin-top: 48px;
}
.case-quote q {
  display: block;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 24px;
}
.case-quote .signature {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

@media (max-width: 880px) {
  .case-study { grid-template-columns: 1fr; gap: 40px; }
  .case-facts { border-left: none; border-top: 0.5px solid var(--rule); padding-left: 0; padding-top: 32px; }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.metric-cell {
  padding: 48px 24px;
  text-align: left;
  border-right: 0.5px solid var(--rule);
}
.metric-cell:last-child { border-right: none; }
.metric-num {
  font-weight: 300;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2) { border-right: none; }
  .metric-cell { border-bottom: 0.5px solid var(--rule); }
  .metric-cell:nth-last-child(-n+2) { border-bottom: none; }
}

.testimonial-band {
  background: var(--encre);
  color: var(--os);
  padding: 96px 0;
  text-align: center;
}
.testimonial-band q {
  display: block;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
  font-style: italic;
  max-width: 780px;
  margin: 32px auto;
  color: var(--os);
}
.testimonial-band .signature {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.criteria-box {
  background: var(--blanc);
  border: 0.5px solid var(--rule);
  padding: 56px;
  max-width: 880px;
  margin: 0 auto;
}
.criteria-box h3.h3 { margin-top: 32px; margin-bottom: 16px; font-size: 16px; font-weight: 500; }
.criteria-box ul { list-style: none; padding: 0; }
.criteria-box ul li {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--rule);
  font-size: 15px;
  line-height: 1.55;
  position: relative;
  padding-left: 24px;
}
.criteria-box ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.criteria-box ul li:last-child { border-bottom: none; }
.criteria-box .body { margin-bottom: 24px; }

@media (max-width: 720px) {
  .criteria-box { padding: 32px; }
}

/* ===== À propos ===== */
.mission-statement {
  text-align: center;
  padding: 140px 0;
  max-width: 1000px;
  margin: 0 auto;
}
.mission-statement .display {
  margin: 32px auto;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 300;
  line-height: 1.1;
}

.story {
  max-width: 720px;
  margin: 0 auto;
}
.story p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.founder { }
.founder-photo {
  aspect-ratio: 1 / 1;
  background: var(--obsidian);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo .placeholder-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.founder-photo::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 32px;
  height: 1.5px;
  background: var(--signal);
}
.founder h3 {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 4px;
}
.founder .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.founder ul { list-style: none; padding: 0; margin-bottom: 20px; }
.founder ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--obsidian);
}
.founder ul li::before {
  content: '—';
  position: absolute; left: 0; color: var(--muted);
}
.founder .linkedin-link {
  font-size: 13px;
  border-bottom: 1px solid var(--obsidian);
  padding-bottom: 2px;
}

@media (max-width: 880px) {
  .founders { grid-template-columns: 1fr; gap: 56px; }
}

.convictions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 56px;
  border-top: 0.5px solid var(--rule);
  border-left: 0.5px solid var(--rule);
}
.conviction {
  padding: 48px;
  border-right: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.conviction .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 24px;
}
.conviction h3 {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.conviction p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Trust grid (Pourquoi Acumis) — same scaffolding as convictions, dark variant */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--rule-on-dark);
  border-left: 0.5px solid var(--rule-on-dark);
}
.trust-cell {
  padding: 48px;
  border-right: 0.5px solid var(--rule-on-dark);
  border-bottom: 0.5px solid var(--rule-on-dark);
  display: flex;
  flex-direction: column;
}
.trust-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 24px;
}
.trust-cell h3 {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  color: var(--os);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.trust-cell p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-on-dark);
  margin: 0 0 20px 0;
}
.trust-cell p em {
  font-style: italic;
  color: var(--os);
}
.trust-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}
.trust-tag {
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--muted-on-dark);
  background: rgba(245, 240, 232, 0.04);
  border: 0.5px solid var(--rule-on-dark);
  padding: 4px 10px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .convictions-grid { grid-template-columns: 1fr; }
  .conviction { padding: 32px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-cell { padding: 32px; }
}

/* ===== Contact page ===== */
.contact-intro {
  padding: 96px 0 56px;
}
.contact-intro .h1 { margin: 16px 0 24px; max-width: 18ch; }
.contact-intro .lede { max-width: 56ch; color: var(--muted); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 32px;
}
.step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 300;
  color: var(--obsidian);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.step h3 {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 720px) {
  .steps-row { grid-template-columns: 1fr; gap: 40px; }
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px;
  background: var(--blanc);
  border: 0.5px solid var(--rule);
}
.form-card .h2 { margin-bottom: 32px; }
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 0;
  border: none;
  border-bottom: 0.5px solid var(--obsidian);
  background: transparent;
  color: var(--obsidian);
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--signal);
  border-bottom-width: 1.5px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}
.form-field textarea { min-height: 80px; resize: vertical; }
.form-card .btn-primary { width: 100%; justify-content: center; padding: 16px; margin-top: 16px; }
.form-note {
  margin-top: 24px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

.alt-cal {
  text-align: center;
  margin-top: 80px;
  padding-top: 64px;
  border-top: 0.5px solid var(--rule);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.alt-cal .eyebrow { display: block; margin-bottom: 16px; }
.alt-cal h3.h3 {
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.alt-cal p { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.calendar-stub {
  border: 0.5px dashed var(--rule);
  padding: 48px;
  background: var(--blanc);
  text-align: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.privacy-box {
  max-width: 560px;
  margin: 64px auto 0;
  background: var(--blanc);
  border: 0.5px solid var(--rule);
  padding: 32px;
  text-align: left;
}
.privacy-box .eyebrow { margin-bottom: 16px; }
.privacy-box p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .form-card { padding: 32px 24px; }
}

/* ===== Page transition ===== */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Section heading layout */
.section-heading {
  text-align: center;
  margin-bottom: 16px;
}
.section-heading .eyebrow { margin-bottom: 24px; }
.section-heading.left { text-align: left; }
.section-heading .h2 { max-width: 22ch; }
.section-heading.center .h2 { margin: 0 auto; }

/* ============================================================
   Animations — opt-in via html.js (no flash without JS,
   fully neutralised by prefers-reduced-motion)
   ============================================================ */

/* --- Reveal animations: layered ON TOP of a fully-visible default.
       If JS fails or never adds the trigger classes, content stays visible.
       --- */
@keyframes acumis-rise       { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes acumis-rise-large { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes acumis-rule-draw  { from { opacity: 0; max-width: 0; }                to { opacity: 1; max-width: 80px; } }

/* Hero cascade — homepage only */
html.js .hero.is-loaded > .container > .eyebrow      { animation: acumis-rise      700ms cubic-bezier(.2, .8, .2, 1) 0ms   both; }
html.js .hero.is-loaded > .container > .display      { animation: acumis-rise      700ms cubic-bezier(.2, .8, .2, 1) 100ms both; }
html.js .hero.is-loaded > .container > .signal-rule  { animation: acumis-rule-draw 700ms cubic-bezier(.2, .8, .2, 1) 250ms both; }
html.js .hero.is-loaded > .container > .lede         { animation: acumis-rise      700ms cubic-bezier(.2, .8, .2, 1) 380ms both; }
html.js .hero.is-loaded > .container > .hero-ctas    { animation: acumis-rise      700ms cubic-bezier(.2, .8, .2, 1) 500ms both; }

/* Intro cascade — non-hero pages */
html.js .intro-cascade.is-loaded > .container .eyebrow                          { animation: acumis-rise 700ms cubic-bezier(.2, .8, .2, 1) 0ms   both; }
html.js .intro-cascade.is-loaded > .container :is(h1, h2, .display, .h1, .h2)   { animation: acumis-rise 700ms cubic-bezier(.2, .8, .2, 1) 100ms both; }
html.js .intro-cascade.is-loaded > .container .signal-rule                      { animation: acumis-rise 700ms cubic-bezier(.2, .8, .2, 1) 250ms both; }
html.js .intro-cascade.is-loaded > .container :is(.lede)                        { animation: acumis-rise 700ms cubic-bezier(.2, .8, .2, 1) 380ms both; }

/* Section fade-up on scroll — only when the section gets .is-visible from JS */
html.js main > section:not(.hero):not(.intro-cascade).is-visible > .container {
  animation: acumis-rise-large 650ms cubic-bezier(.2, .8, .2, 1) both;
}

/* Stagger grids — only fire when the parent gets .is-visible */
html.js :is(.solution-cards, .three-col, .trust-grid, .convictions-grid, .steps-row, .stats-grid, .footer-grid).is-visible > * {
  animation: acumis-rise 550ms cubic-bezier(.2, .8, .2, 1) var(--stagger, 0ms) both;
}

/* --- Hover micro-interactions (smoother curves, deeper lift, shadow) --- */
.solution-card { transition: transform 350ms cubic-bezier(.2, .8, .2, 1), border-color 250ms ease, box-shadow 350ms cubic-bezier(.2, .8, .2, 1); }
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(13, 13, 13, .07); }
.solution-card::before { transition: transform 400ms cubic-bezier(.2, .8, .2, 1); }

.btn { transition: transform 220ms cubic-bezier(.2, .8, .2, 1), background-color 200ms ease, color 200ms ease, box-shadow 220ms ease; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(255, 107, 53, .22); }

.trust-cell, .conviction, .col-item, .step { transition: transform 350ms cubic-bezier(.2, .8, .2, 1); }
.trust-cell:hover, .conviction:hover, .col-item:hover, .step:hover { transform: translateY(-2px); }

.link-ghost { position: relative; transition: color 200ms ease; }
.link-ghost::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(0);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}
.link-ghost:hover::after { transform-origin: left; transform: scaleX(1); }

/* --- Focus-visible for keyboard users (a11y prerequisite even without full pass) --- */
:focus-visible {
  outline: 2px solid var(--signal, #FF6B35);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-offset: 4px; }

/* --- Hard kill-switch for users who ask for less motion ---
   Bypassed when html.motion-force is set (preview override via ?motion=force) --- */
@media (prefers-reduced-motion: reduce) {
  html.js:not(.motion-force) .hero.is-loaded > .container > *,
  html.js:not(.motion-force) .intro-cascade.is-loaded > .container :is(.eyebrow, h1, h2, .display, .h1, .h2, .signal-rule, .lede),
  html.js:not(.motion-force) main > section.is-visible > .container,
  html.js:not(.motion-force) :is(.solution-cards, .three-col, .trust-grid, .convictions-grid, .steps-row, .stats-grid, .footer-grid).is-visible > * {
    animation: none !important;
  }
  html:not(.motion-force) .solution-card,
  html:not(.motion-force) .btn,
  html:not(.motion-force) .trust-cell,
  html:not(.motion-force) .conviction,
  html:not(.motion-force) .col-item,
  html:not(.motion-force) .step,
  html:not(.motion-force) .link-ghost::after {
    transition: none !important;
  }
}

/* --- Formspree success / error states (post-AJAX submit) --- */
.form-success {
  background: var(--blanc);
  border: 0.5px solid var(--rule);
  border-left: 3px solid var(--signal);
  padding: 56px 48px;
  max-width: 720px;
  margin: 0 auto;
}
/* Signal #FF6B35 sur fond clair = 2.5:1 (fail WCAG AA) — on garde l'obsidian
   pour le label "Reçu", l'orange reste sur le filet 3px à gauche et l'icône. */
.form-success .eyebrow { color: var(--obsidian); }
.form-success p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--encre);
  max-width: 56ch;
}
.form-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #8B2A14;
  background: rgba(255, 107, 53, 0.08);
  border-left: 2px solid var(--signal);
}
@media (max-width: 720px) {
  .form-success { padding: 36px 24px; }
}

/* --- Sticky mobile CTA — injected by site.js on conversion pages.
       Hidden on desktop. Appears after user scrolls past ~70vh. --- */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  padding: 16px 20px;
  background: var(--signal);
  color: var(--obsidian);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(13, 13, 13, 0.22);
  transform: translateY(96px);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(.2, .8, .2, 1),
    opacity 240ms ease,
    background-color 200ms ease;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta:hover { background: #FF7E4D; }
.sticky-cta:focus-visible {
  outline: 2px solid var(--obsidian);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .sticky-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) .sticky-cta {
    transition: opacity 200ms ease !important;
    transform: none !important;
  }
}

/* --- Skip-link for keyboard / screen-reader users.
       Hidden visually until focused, then jumps into view. --- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--obsidian);
  color: var(--os);
  padding: 12px 18px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* --- Self-hosted fonts (Inter + JetBrains Mono, variable, SIL Open Font License).
       Replaces Google Fonts so visitor IPs are not logged by a 3rd party
       (Loi 25 / RGPD). 4 files, ~176 KB total, font-display:swap. --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Mobile narrow (≤ 480px) — iPhone SE, compact Android.
   Tightens padding, stacks hero CTAs, shrinks chrome.
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  section.tight { padding: 44px 0; }

  /* Header */
  .header-inner { padding: 14px 20px; }
  .header-logo { width: 132px; }
  .header-nav.open { padding: 16px 20px 24px; }

  /* Hero — let the H1 breathe, stack CTAs full-width */
  .hero { padding-top: 24px; }
  .hero .display { letter-spacing: -0.025em; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }
  .hero-ctas .btn { justify-content: center; padding: 16px 20px; }

  /* Demo iframe — keep aspect, no horizontal overflow */
  .demo-frame { margin-top: 32px; }

  /* Generic CTA strip */
  .cta-strip { padding: 56px 0; }

  /* Cards / cells — tighter padding */
  .solution-card { padding: 28px 22px; }
  .trust-cell { padding: 28px 22px; }
  .conviction { padding: 24px 0; }
  .col-item { padding: 16px 0; }
  .step { padding: 16px 0; }

  /* Form */
  .form-card { padding: 32px 24px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; }  /* prevent iOS Safari zoom on focus */

  /* Privacy box */
  .privacy-box { padding: 32px 24px; margin-top: 32px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 32px; margin-bottom: 40px; }
  .footer-bottom { font-size: 11px; letter-spacing: 0.06em; }

  /* Sticky CTA — slightly tighter */
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; padding: 14px 18px; }

  /* Skip-link visible position */
  .skip-link:focus { left: 12px; top: 12px; }
}

/* ============================================================
   Premium polish (taste-skill audit pass)
   - Tactile :active states on buttons (rule 5)
   - Premium easing on key transitions (cubic-bezier(.16,1,.3,1))
   - Skeletal shimmer for form-submit pending state
   ============================================================ */

/* Tactile feedback — physical-push micro-interaction on press */
.btn:active,
.solution-card:active,
.sticky-cta:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 90ms;
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .solution-card:active, .sticky-cta:active { transform: none !important; }
}

/* Premium ease on the existing button + nav-link + link-ghost transitions
   (overrides the legacy `ease` durations from earlier in the cascade) */
.btn          { transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
.nav-link     { transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
.link-ghost   { transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
.footer-col a { transition-timing-function: cubic-bezier(.16, 1, .3, 1); }

/* Skeletal shimmer for pending form-submit (taste-skill rule 5) */
.btn.is-sending {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  cursor: progress;
}
.btn.is-sending::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%);
  animation: skeleton-shimmer 1.4s linear infinite;
  pointer-events: none;
}
@keyframes skeleton-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-sending::after { animation: none !important; }
}

/* ============================================================
   Mobile demo — replace the 1280×800 iframe with a static card
   when the viewport is too narrow for the animation to read.
   ============================================================ */
.demo-static { display: none; }

@media (max-width: 720px) {
  .demo-frame { display: none; }
  .demo-static {
    display: block;
    margin-top: 36px;
    background: var(--blanc);
    border: 0.5px solid var(--rule);
    border-left: 3px solid var(--signal);
    padding: 28px 22px;
    box-shadow: 0 16px 40px -28px rgba(13,13,13,0.10);
  }
  .demo-static-card { display: flex; flex-direction: column; gap: 28px; }
  .demo-static-step { position: relative; padding-top: 4px; }
  .demo-static-step + .demo-static-step {
    border-top: 0.5px solid var(--rule);
    padding-top: 24px;
  }
  .demo-static-step .step-num {
    color: var(--signal);
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-right: 12px;
  }
  .demo-static-step .step-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .demo-static-step p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--obsidian);
  }
  .demo-static-step p em {
    font-style: italic;
    color: var(--muted-strong, #3D3D3D);
  }
  .demo-static-step ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
  }
  .demo-static-step li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--rule);
    font-size: 13px;
    line-height: 1.45;
    color: var(--obsidian);
  }
  .demo-static-step li:last-child { border-bottom: none; }
  .demo-static-step li.more {
    color: var(--muted);
    font-style: italic;
  }
  .src-tag {
    display: inline-block;
    flex-shrink: 0;
    min-width: 38px;
    padding: 2px 6px;
    background: rgba(255, 107, 53, 0.08);
    color: var(--signal);
    font-size: 10px;
    letter-spacing: 0.10em;
    text-align: center;
    border-radius: 1px;
  }
  .cite-static {
    display: inline-block;
    background: rgba(255, 107, 53, 0.08);
    color: var(--signal);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    margin: 0 1px;
    vertical-align: 1px;
    border-radius: 1px;
    white-space: nowrap;
  }
}

/* ============================================================
   Mobile demo animations — fire when card scrolls into view
   (only ≤ 720px since the iframe handles desktop)
   ============================================================ */
@media (max-width: 720px) {
  /* Steps cascade up */
  html.js .demo-static .demo-static-step {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 620ms cubic-bezier(.16, 1, .3, 1),
      transform 620ms cubic-bezier(.16, 1, .3, 1);
  }
  html.js .demo-static.is-revealed .demo-static-step:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
  html.js .demo-static.is-revealed .demo-static-step:nth-child(2) { opacity: 1; transform: none; transition-delay: 180ms; }
  html.js .demo-static.is-revealed .demo-static-step:nth-child(3) { opacity: 1; transform: none; transition-delay: 360ms; }

  /* Source rows in step 02 stagger from the left, with the bar implied by the tag */
  html.js .demo-static .demo-static-step li {
    opacity: 0;
    transform: translateX(-8px);
    transition:
      opacity 380ms cubic-bezier(.16, 1, .3, 1),
      transform 380ms cubic-bezier(.16, 1, .3, 1);
  }
  html.js .demo-static.is-revealed .demo-static-step li { opacity: 1; transform: none; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(1) { transition-delay: 380ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(2) { transition-delay: 480ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(3) { transition-delay: 580ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(4) { transition-delay: 680ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(5) { transition-delay: 780ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(6) { transition-delay: 880ms; }

  /* Source tag pulse — when its row arrives, briefly brighten the tag */
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(1) .src-tag { animation: src-tag-pulse 520ms cubic-bezier(.16,1,.3,1) 380ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(2) .src-tag { animation: src-tag-pulse 520ms cubic-bezier(.16,1,.3,1) 480ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(3) .src-tag { animation: src-tag-pulse 520ms cubic-bezier(.16,1,.3,1) 580ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(4) .src-tag { animation: src-tag-pulse 520ms cubic-bezier(.16,1,.3,1) 680ms; }
  html.js .demo-static.is-revealed .demo-static-step li:nth-child(5) .src-tag { animation: src-tag-pulse 520ms cubic-bezier(.16,1,.3,1) 780ms; }
  @keyframes src-tag-pulse {
    0%   { background: rgba(255, 107, 53, 0.08); transform: scale(1); }
    40%  { background: rgba(255, 107, 53, 0.32); transform: scale(1.06); }
    100% { background: rgba(255, 107, 53, 0.08); transform: scale(1); }
  }

  /* Citation pills pop one by one with spring */
  html.js .demo-static .cite-static {
    opacity: 0;
    transform: scale(0.6);
  }
  html.js .demo-static.is-revealed .cite-static:nth-of-type(1) { animation: cite-pop-mobile 460ms cubic-bezier(.34, 1.56, .64, 1) 1100ms forwards; }
  html.js .demo-static.is-revealed .cite-static:nth-of-type(2) { animation: cite-pop-mobile 460ms cubic-bezier(.34, 1.56, .64, 1) 1300ms forwards; }
  html.js .demo-static.is-revealed .cite-static:nth-of-type(3) { animation: cite-pop-mobile 460ms cubic-bezier(.34, 1.56, .64, 1) 1500ms forwards; }
  @keyframes cite-pop-mobile {
    0%   { transform: scale(0.6); opacity: 0; box-shadow: 0 0 0 0 transparent; }
    60%  { transform: scale(1.08); opacity: 1; box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.16); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 transparent; }
  }

  /* No reduce-motion override — the mobile demo always plays, same
     reasoning as the desktop iframe (marketing animation, not core UI). */
}

/* ============================================================
   FAQ accordion (section #faq on /a-propos)
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 0.5px solid var(--rule);
  max-width: 880px;
}
.faq-item {
  border-bottom: 0.5px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--obsidian);
  letter-spacing: -0.01em;
  transition: color 200ms cubic-bezier(.16, 1, .3, 1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal); }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 280ms cubic-bezier(.16, 1, .3, 1);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.faq-body {
  padding: 0 0 24px;
  max-width: 720px;
}
.faq-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-strong, #3D3D3D);
  margin-bottom: 12px;
}
.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong {
  font-weight: 500;
  color: var(--obsidian);
}
@media (max-width: 720px) {
  .faq-item summary { font-size: 16px; padding: 18px 0; gap: 18px; }
  .faq-body p { font-size: 14.5px; }
}
