/* ============================================================
   APPLAT — page de présentation
   Identité : brand/APPLAT_CHARTE_LANDING.md (§8 à §12)
   ============================================================ */

:root {
  --blue: #2f6bff;
  --blue-700: #1f55db;
  --blue-100: #dce7ff;
  --blue-soft: #eef4ff;
  --navy: #0b1220;
  --navy-2: #131c30;
  --text: #1a2538;
  --muted: #66758c;
  --line: #dde4ed;
  --line-soft: #edf1f6;
  --surface: #ffffff;
  --bg: #f4f7fb;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 16px 40px rgba(20, 34, 58, 0.07);
  --shadow-soft: 0 4px 16px rgba(20, 34, 58, 0.05);

  --container: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.022em;
  line-height: 1.14;
  margin: 0;
  font-weight: 760;
}

h1 {
  font-size: clamp(2.1rem, 1.35rem + 2.4vw, 3.35rem);
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.35rem);
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 60ch;
}

.measure {
  max-width: 62ch;
}

/* ── Utilitaires de marque ──────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
}

.mono {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* .btn { display } écrase sinon l’attribut HTML hidden */
.btn[hidden],
.link-login[hidden],
[hidden] {
  display: none !important;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-700);
}

.btn--secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: #c2cddc;
  background: #fbfcfe;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: #c2cddc;
  background: var(--blue-soft);
}

.btn--onDark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  height: 38px;
  padding: 0 15px;
  font-size: 0.875rem;
}

.btn--lg {
  height: 50px;
  padding: 0 26px;
  font-size: 1rem;
}

/* ── En-tête ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(20, 34, 58, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo img {
  width: 118px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: auto;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--navy);
}

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

.header-actions .link-login {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 6px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  align-items: center;
  justify-content: center;
}

/* ── Rythme des sections ────────────────────────────────── */

.section {
  padding: clamp(64px, 7vw, 108px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

.section--alt {
  background: var(--bg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.muted {
  color: var(--muted);
  font-weight: inherit;
}

.accent {
  color: var(--blue);
  font-weight: inherit;
}

/* ── Deux portes d'entrée (import DXF) ──────────────────── */

.doors__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.doors__cards {
  display: grid;
  gap: 16px;
  align-content: center;
}

.door {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.door.is-on {
  border-color: var(--blue-100);
  background: linear-gradient(165deg, #f7faff 0%, #fff 70%);
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.08);
}

.door__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 0 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-100);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 800;
}

.door h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.door p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.imp {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 100%;
}

.imp__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.imp__modes {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #eef2f7;
  flex: 1;
  min-width: 0;
}

.imp__mode {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.imp__mode.is-on {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(20, 34, 58, 0.1);
}

.imp__file {
  flex: none;
  border: 1px dashed #b8cbff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
}

.imp__file[hidden] {
  display: none !important;
}

.imp__file.is-drop {
  animation: fileDrop 1.1s ease;
}

@keyframes fileDrop {
  0% {
    transform: translateY(-14px);
    opacity: 0;
  }
  40% {
    transform: none;
    opacity: 1;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: none;
  }
}

.imp__stage {
  position: relative;
  flex: 1;
  background-image: radial-gradient(rgba(11, 18, 32, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 10px 12px 36px;
  display: flex;
  min-height: 320px;
}

.imp__stage svg {
  width: 100%;
  height: auto;
  margin: auto;
}

.imp__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.imp-blank__sheet {
  fill: rgba(255, 255, 255, 0.72);
  stroke: #c9d4e3;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.imp-blank__label {
  fill: #9aa7ba;
  font: 600 14px Inter, sans-serif;
}

.imp-zone {
  fill: rgba(47, 107, 255, 0.03);
  stroke: #b8cbff;
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}

.imp-zone.is-landing {
  fill: rgba(47, 107, 255, 0.07);
  stroke: var(--blue);
  stroke-dasharray: none;
}

.imp-zone__txt {
  fill: var(--blue);
  font: 600 13px Inter, sans-serif;
  opacity: 0.85;
}

.imp-drophint path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  animation: impBounce 1.2s ease infinite;
}

@keyframes impBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.imp-dropfile {
  animation: fileDrop 0.7s ease both;
}

.imp-dropfile rect {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.5;
}

.imp-dropfile text {
  fill: var(--navy);
  font: 700 12px Inter, sans-serif;
}

.imp-dropfile__sub {
  fill: var(--blue) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
}

#imp-canvas.is-dead .cad-outline,
#imp-canvas.is-dead .is-dead-stroke {
  fill: none;
  stroke: #94a3b8;
}

#imp-canvas.is-dead .cad-fold {
  stroke: #cbd5e1;
}

#imp-canvas.is-drawing .cad-outline,
#imp-canvas.is-drawing .cad-fold {
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: impTrace 1.6s ease forwards;
}

#imp-canvas.is-drawing .cad-fold {
  animation-delay: calc(0.35s + var(--i, 0) * 0.12s);
  animation-duration: 0.9s;
}

#imp-canvas.is-drawing .cad-outline {
  animation-duration: 1.35s;
}

@keyframes impTrace {
  to {
    stroke-dashoffset: 0;
  }
}

.imp-dims {
  animation: impFade 0.45s ease both;
}

@keyframes impFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cst rect {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.5;
}

.cst path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.cst {
  animation: impPop 0.34s ease both;
}

@keyframes impPop {
  from {
    opacity: 0;
    transform: scale(0.55);
    transform-origin: center;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.imp__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  counter-reset: imp;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.imp__steps li {
  counter-increment: imp;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

.imp__steps li::before {
  content: counter(imp);
  flex: none;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.imp__steps li.is-done {
  color: var(--text);
}

.imp__steps li.is-done::before {
  background: var(--blue-soft);
  border-color: var(--blue-100);
  color: var(--blue);
}

.imp__steps li.is-on {
  color: var(--navy);
}

.imp__steps li.is-on::before {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .imp-drophint path,
  #imp-canvas.is-drawing .cad-outline,
  #imp-canvas.is-drawing .cad-fold,
  .cst,
  .imp-dropfile,
  .imp__file.is-drop {
    animation: none !important;
  }

  #imp-canvas.is-drawing .cad-outline,
  #imp-canvas.is-drawing .cad-fold {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

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

  .doors__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .imp__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imp__bar {
    flex-wrap: wrap;
  }
}

.section--dark {
  background: var(--navy);
  color: #aeb9cb;
  border-top: 0;
  position: relative;
  overflow: hidden;
}

#solution.section--dark {
  overflow: visible;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .eyebrow {
  color: #7ba1ff;
}

.section--dark .lede {
  color: #96a3b8;
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1.14;
  color: var(--navy);
}

.section-head h2 + .lede,
.section-head h2 + .contrast__copy {
  margin-top: 16px;
}

.section-head .lede + .lede {
  margin-top: 12px;
}

.section-head .accent {
  color: var(--blue);
  font-weight: inherit;
}

.section--dark .section-head h2 {
  color: #fff;
}

.section--dark .section-head .accent {
  color: #9db4ff;
}

.section--dark .section-head .lede {
  color: #96a3b8;
}

/* Grille blueprint : accent de marque, jamais un papier peint (§12) */
.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 107, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 62%);
  opacity: 0.8;
}

.section--dark .blueprint {
  background-image: linear-gradient(rgba(122, 160, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 160, 255, 0.13) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(100% 80% at 15% 0%, #000 0%, transparent 65%);
  mask-image: radial-gradient(100% 80% at 15% 0%, #000 0%, transparent 65%);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f8faff 0%, #eef3fb 42%, var(--bg) 100%);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(56px, 7vw, 96px);
}

.hero .container {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: center;
}

@media (min-width: 1100px) {
  .hero .container {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.28fr);
    gap: clamp(32px, 3.5vw, 48px);
    align-items: center;
  }
}

.hero__copy {
  max-width: 33rem;
}

.hero__demo {
  min-width: 0;
}

.hero__copy .eyebrow {
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.095em;
}

.hero__logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 0 0 18px;
}

.hero__tagline {
  margin: 0 0 20px;
  max-width: 16ch;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--navy);
}

.hero__lede {
  margin: 0;
  max-width: 33ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  line-height: 1.52;
  font-weight: 500;
  color: var(--text);
}

.hero__promise {
  position: relative;
  margin: 18px 0 0;
  padding: 13px 0 13px 15px;
  max-width: 36ch;
  border-left: 2px solid var(--blue);
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.hero-actions .btn--lg {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-note strong {
  color: var(--navy);
  font-weight: 650;
}

/* ── Fenêtre applicative (aperçu du vrai Produit) ───────── */

.app-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.app-frame__title {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--navy);
}

.app-frame__crumb {
  font-size: 0.8125rem;
  color: var(--muted);
}

.app-frame__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 650;
}

.app-frame__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.app-frame__body {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.app-pane {
  padding: 18px;
}

.app-pane + .app-pane {
  border-left: 1px solid var(--line);
}

.pane-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Champs de dimensions */

.field + .field {
  margin-top: 16px;
}

.field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.field__value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid var(--blue-100);
  border-radius: 7px;
  padding: 2px 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: ew-resize;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(20, 34, 58, 0.28);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(20, 34, 58, 0.28);
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.field__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--muted);
}

/* Zone de dessin */

.canvas {
  position: relative;
  background: #fbfcfe;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.canvas svg {
  width: 100%;
  height: auto;
}

.canvas--flush {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 16px 18px 6px;
}

.canvas__tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Traits de dessin technique */

.dwg-grid {
  stroke: #dbe3ee;
  stroke-width: 0.6;
}

.dwg-part {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: d 0.25s ease;
}

.dwg-hole {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.3;
}

.dwg-hole--new {
  fill: var(--blue-soft);
  stroke: var(--blue);
  stroke-width: 1.5;
}

.dwg-fold {
  stroke: var(--blue);
  stroke-width: 1.1;
  stroke-dasharray: 7 3 1.5 3;
  opacity: 0.75;
}

.dwg-dim {
  stroke: var(--blue);
  stroke-width: 1;
}

.dwg-ext {
  stroke: var(--blue);
  stroke-width: 0.8;
  opacity: 0.45;
}

.dwg-dim-text {
  fill: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
}

.dwg-ghost {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.45;
}

.dwg-added {
  fill: rgba(47, 107, 255, 0.08);
  stroke: var(--blue);
  stroke-width: 1.6;
}

.dwg-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.is-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.is-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}

/* Sortie DXF */

.app-frame__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.dxf-out {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  min-width: 0;
}

.dxf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  font-family: ui-monospace, Consolas, monospace;
}

.dxf-chip svg {
  color: var(--blue);
}

/* ── Section problème ───────────────────────────────────── */

#probleme.section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f8fc 0%, #fff 28%, #fff 100%);
}

#probleme.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(52vh, 28rem);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 107, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}

#probleme .container {
  position: relative;
  z-index: 1;
}

.problem-pitch {
  max-width: min(100%, 72rem);
  margin: 0 auto;
}

.problem-pitch__intro {
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.problem-pitch__cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.problem-pitch__case {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px 20px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #fff;
}

.problem-pitch__case--a {
  background: linear-gradient(165deg, #eef4ff 0%, #f7f9fc 55%, #fff 100%);
  border-color: #d5e2ff;
}

.problem-pitch__case--b {
  background: linear-gradient(165deg, #e8eefc 0%, #f5f7fb 55%, #fff 100%);
  border-color: #c9d7f5;
}

.problem-pitch__case--c {
  background: linear-gradient(165deg, #0b1220 0%, #162036 100%);
  border-color: #1e2b45;
  color: #d7deea;
}

.problem-pitch__tag {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.problem-pitch__case--c .problem-pitch__tag {
  color: #7aa0ff;
}

.problem-pitch__case h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--navy);
}

.problem-pitch__case--c h3 {
  color: #fff;
}

.problem-pitch__case ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.problem-pitch__case li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
}

.problem-pitch__case--c li {
  color: #b8c3d6;
}

.problem-pitch__case li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.problem-pitch__case--c li::before {
  background: #7aa0ff;
}

.problem-pitch__trade {
  margin: 0;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(47, 107, 255, 0.16), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #15233d 100%);
  color: #d7deea;
}

.problem-pitch__trade-kicker {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7aa0ff;
}

.problem-pitch__trade h3 {
  margin: 0 0 clamp(22px, 3vw, 28px);
  max-width: 18ch;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.problem-pitch__axes {
  list-style: none;
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.problem-pitch__axes li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 160, 255, 0.28);
}

.problem-pitch__axes strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.problem-pitch__axes span {
  font-size: 0.85rem;
  color: #96a3b8;
}

.problem-pitch__trade-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.problem-pitch__trade-notes li {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #c5d0e2;
}

.problem-story[hidden] {
  display: none !important;
}

#exemple .problem-story {
  margin-top: clamp(40px, 5vw, 64px);
  margin-bottom: clamp(36px, 4vw, 52px);
}

@media (max-width: 960px) {
  .problem-pitch__cases,
  .problem-pitch__axes {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.split__copy,
.split__visual {
  align-self: start;
}

.split--reverse .split__visual {
  order: -1;
}

#exemple .problem-story > .eyebrow {
  margin-bottom: 18px;
}

#exemple .problem-story__copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.problem-story__body {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.problem-story__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.problem-story__visual {
  min-width: 0;
}

.rw-panels {
  position: relative;
  min-height: 11.5rem;
  overflow: hidden;
}

.rw-panel {
  position: absolute;
  inset: 0;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.35rem);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
  pointer-events: none;
}

.rw-panel.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
  pointer-events: auto;
}

.rw-panel.is-leave {
  opacity: 0;
  visibility: visible;
  transform: translateY(-1.15rem);
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.22s;
  pointer-events: none;
}

.rw-panel__step {
  margin: 0 0 10px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.rw-panel p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
}

.rw-panel__lead {
  font-size: 1.0625rem !important;
  font-weight: 500;
  color: var(--text) !important;
  max-width: 30ch !important;
  line-height: 1.5 !important;
}

.rw-panel__add {
  margin-top: 16px !important;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8125rem !important;
  font-weight: 700;
  color: var(--blue) !important;
}

.rw-panel__late {
  margin-top: 12px !important;
  font-weight: 500;
  color: var(--text) !important;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rw-panel__late.is-on,
.rw-panel__late.is-static {
  opacity: 1;
  transform: none;
}

.rw-elapsed {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel, #66758c);
}

.rw-elapsed b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.problem-story.is-done .rw-elapsed b,
.problem-story.is-bilan .rw-elapsed b {
  color: var(--blue);
}

.rw-bilan {
  display: none;
  max-width: 40rem;
  margin: 12px auto 0;
  padding: clamp(8px, 2vw, 16px) 0 clamp(12px, 2vw, 24px);
  text-align: center;
}

.problem-story.is-bilan .problem-story__body {
  display: none;
}

.problem-story.is-bilan .rw-timeline {
  display: none;
}

.problem-story.is-bilan .rw-bilan {
  display: block;
  animation: rwBilanIn 0.4s ease both;
}

@keyframes rwBilanIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rw-bilan__time {
  margin: 0 0 18px;
}

.rw-bilan__time strong {
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
}

.rw-bilan h3 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.6vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-transform: none;
  color: var(--navy);
}

.rw-bilan__lead {
  margin: 0 0 22px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.rw-bilan__points {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 34ch;
  text-align: left;
}

.rw-bilan__points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--muted);
}

.rw-bilan__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}

.rw-bilan__cost {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text);
}

.rw-bilan__cost strong {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--navy);
}

.problem-story.is-heavy .rw__win {
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.18);
}

.problem-story.is-bilan .rw__timer b {
  color: var(--blue);
}

.rw-timeline {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.rw-timeline[hidden] {
  display: none !important;
}

.rw-timeline__track {
  position: relative;
  height: 2px;
  margin: 0 0 14px;
  border-radius: 2px;
  background: rgba(15, 28, 51, 0.1);
  overflow: hidden;
}

.rw-timeline__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.28s ease;
}

.rw-timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.rw-timeline__steps li {
  display: grid;
  min-width: 0;
  opacity: 0.38;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.rw-timeline__steps button {
  display: grid;
  gap: 4px;
  justify-items: start;
  width: 100%;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.rw-timeline__steps button:hover {
  opacity: 1;
  background: rgba(47, 107, 255, 0.06);
}

.rw-timeline__steps button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.rw-timeline__steps li.is-done,
.rw-timeline__steps li.is-on {
  opacity: 1;
}

.rw-timeline__steps span {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--steel, #66758c);
}

.rw-timeline__steps button.is-on span,
.rw-timeline__steps li.is-on span {
  color: var(--blue);
}

.rw-timeline__steps button.is-done span,
.rw-timeline__steps li.is-done span {
  color: var(--navy);
}

.rw-timeline__steps em {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.rw-timeline__steps button.is-on em,
.rw-timeline__steps li.is-on em {
  color: var(--navy);
  font-weight: 650;
}

.rw-timeline__meta {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel, #66758c);
}

.rw-timeline__eta {
  color: var(--muted);
  font-weight: 400;
}

.rw-bilan__cta {
  margin: 28px 0 0;
}

.pain-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.pain-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--line-soft);
}

.pain-list li:last-child {
  border-bottom: 0;
}

.pain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 9px;
  height: 9px;
  border: 1.5px solid #c3cddb;
  border-radius: 2px;
  transform: rotate(45deg);
}

.callout {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--text);
}

.callout strong {
  color: var(--navy);
}

/* Reprise manuelle — mini scènes schématiques + compteur */

.rw {
  padding: 2px 0 0;
  --rw-ink: #4a5a70;
  --rw-line: #d7e0ea;
}

.rw__eyebrow {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.rw__win {
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  background: #fff;
  box-shadow: 0 18px 40px -30px rgba(15, 34, 63, 0.35);
  overflow: hidden;
}

.rw__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  height: 38px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafcfe;
}

.rw__lights {
  display: inline-flex;
  gap: 5px;
}

.rw__lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dfe6ee;
}

.rw__app {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw__timer {
  flex: none;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(47, 107, 255, 0.1);
}

.rw__timer b {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
}

.rw__stage {
  position: relative;
  height: clamp(260px, 28vw, 320px);
  background-image: linear-gradient(#f2f6fa 1px, transparent 1px),
    linear-gradient(90deg, #f2f6fa 1px, transparent 1px);
  background-size: 16px 16px;
}

.rw__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.rw__scene.is-on {
  opacity: 1;
}

/* Idle : fenêtre figée, sans curiosité — le texte d'intro prend le relais. */
.problem-story.is-idle .rw__scene,
.problem-story.is-idle .rw__scene.is-on {
  opacity: 0.72;
}

.problem-story.is-idle .rw__scene *,
.problem-story.is-idle .rw__phase {
  animation: none !important;
  transition: none !important;
}

.problem-story.is-idle .rw-cursor,
.problem-story.is-idle .rw-hit,
.problem-story.is-idle .rw-cross,
.problem-story.is-idle .rw-caret {
  display: none !important;
}

.problem-story.is-idle .rw-elapsed {
  opacity: 0.7;
}

.rw__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rw__svg text {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  fill: var(--rw-ink);
}

.rw-outline {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
}

.rw-fold {
  stroke: #b9c6d6;
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.rw-frame {
  fill: #fff;
  stroke: var(--rw-line);
  stroke-width: 1;
}

.rw-frame-line {
  stroke: var(--rw-line);
  stroke-width: 1;
}

.rw-tag {
  font-size: 10px !important;
  fill: var(--blue);
}

.rw-note {
  font-size: 10px !important;
  fill: #93a2b5;
}

/* Ligne de commande de la fenêtre CAO */

.rw-strip rect {
  fill: #f7fafc;
}

.rw-strip line {
  stroke: var(--rw-line);
  stroke-width: 1;
}

.rw-cmd {
  font-size: 10px !important;
  fill: var(--rw-ink);
  opacity: 0;
}

.rw-cmd--hl {
  fill: var(--blue);
  font-weight: 700;
}

.rw-cmd--warn {
  fill: #b3452f;
  font-weight: 700;
}

.rw__scene.is-on .rw-cmd {
  animation-name: rwFade, rwOut;
  animation-duration: 0.2s, 0.2s;
  animation-timing-function: ease, ease;
  animation-fill-mode: both, forwards;
  animation-delay: calc(var(--d, 0) * 0.4s), calc(var(--o, 99) * 0.4s);
}

/* Utilitaires d'apparition : --d = délai (×0.4s) */

.rw__scene .rw-in,
.rw__scene .rw-pop {
  opacity: 0;
}

.rw__scene.is-on .rw-in {
  animation: rwFade 0.28s ease both;
  animation-delay: calc(var(--d, 0) * 0.4s);
}

.rw__scene.is-on .rw-pop {
  animation: rwPop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--d, 0) * 0.4s);
  transform-box: fill-box;
  transform-origin: center;
}

.rw__scene .rw-drawn {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}

.rw__scene.is-on .rw-drawn {
  animation: rwDash var(--dur, 0.55s) ease both;
  animation-delay: calc(var(--d, 0) * 0.4s);
}

/* 1 · chercher */

.rw-cursor {
  fill: var(--navy);
  opacity: 0;
}

.rw__scene.is-on[data-scene="0"] .rw-cursor {
  animation: rwFade 0.18s ease 0.12s both,
    rwCursorMove 1.2s cubic-bezier(0.5, 0, 0.3, 1) 0.2s both;
}

@keyframes rwCursorMove {
  0% {
    transform: translate(120px, 16px);
  }
  20% {
    transform: translate(96px, 64px);
  }
  38% {
    transform: translate(128px, 40px);
  }
  60% {
    transform: translate(104px, 112px);
  }
  84%,
  100% {
    transform: translate(112px, 136px);
  }
}

.rw-hit {
  fill: var(--blue-soft, #eef4ff);
  stroke: var(--blue);
  stroke-width: 1;
}

/* 3 · étirer (sélection d'entités puis calcul du décalage) */

.rw-edge {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
}

.rw-dim-line,
.rw-ext {
  stroke: var(--blue);
  stroke-width: 1;
}

.rw-cross {
  fill: rgba(56, 116, 203, 0.07);
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: right bottom;
}

.rw__scene.is-on .rw-cross {
  animation: rwCross 0.55s ease 0.2s both, rwOut 0.25s ease 1.1s forwards;
}

.rw__scene.is-on .rw-cursor--drag {
  animation: rwFade 0.18s ease 0.15s both,
    rwDrag 0.7s ease 0.25s both,
    rwOut 0.25s ease 1.1s forwards;
}

@keyframes rwCross {
  from {
    opacity: 0;
    transform: scale(0.02, 0.02);
  }
  12% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale(1, 1);
  }
}

@keyframes rwDrag {
  from {
    transform: translate(226px, 124px);
  }
  to {
    transform: translate(172px, 36px);
  }
}

.rw-grips {
  opacity: 0;
}

.rw-grips rect {
  fill: var(--blue-soft, #eef4ff);
  stroke: var(--blue);
  stroke-width: 1.2;
}

.rw__scene.is-on .rw-grips {
  animation: rwFade 0.22s ease 0.7s both;
}

.rw__scene.is-on .rw-sel {
  animation: rwSel 0.22s ease 0.7s both;
}

@keyframes rwSel {
  to {
    stroke: var(--blue);
  }
}

.rw-sx {
  transform-origin: 52px 0;
}

.rw__scene.is-on .rw-sx {
  animation: rwStretch 0.95s cubic-bezier(0.4, 0, 0.2, 1) 1.35s both;
}

.rw__scene.is-on .rw-tx {
  animation: rwPush 0.95s cubic-bezier(0.4, 0, 0.2, 1) 1.35s both;
}

.rw-val {
  font-size: 11px !important;
  fill: var(--blue);
  font-weight: 700;
  text-anchor: middle;
}

.rw-val--in {
  opacity: 0;
}

.rw__scene.is-on .rw-val--out {
  animation: rwOut 0.22s ease 1.4s forwards;
}

.rw__scene.is-on .rw-val--in {
  animation: rwFade 0.22s ease 2s forwards;
}

/* 4 · contrôler */

.rw-check circle {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.2;
}

.rw-check path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.rw-check--warn circle {
  stroke: #d8543f;
  fill: #fff5f2;
}

.rw-check--warn path {
  stroke: #d8543f;
}

/* 5 · le renfort devient obligatoire */

.rw-alert rect {
  fill: #fff5f2;
  stroke: #d8543f;
  stroke-width: 1;
}

.rw-alert text {
  font-size: 11px !important;
  font-weight: 700;
  fill: #b3452f;
}

/* 6 · rouvrir un fichier pour les perçages */

.rw-hole circle {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.3;
}

.rw-hole line {
  stroke: var(--blue);
  stroke-width: 0.7;
  stroke-dasharray: 3 2;
}

/* 7 · exporter */

.rw-file rect {
  fill: #fff;
  stroke: var(--rw-line);
  stroke-width: 1;
}

.rw-file text {
  font-size: 10px !important;
}

.rw-file {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.rw__scene.is-on .rw-file {
  animation: rwDrop 0.55s cubic-bezier(0.4, 0.9, 0.3, 1) both;
  animation-delay: calc(0.15s + var(--i) * 0.22s);
}

.rw-folder path {
  fill: #f6f9fc;
  stroke: var(--blue);
  stroke-width: 1.2;
}

/* 8 · renommer (saisie caractère par caractère) */

.rw-old {
  fill: #a9b6c6;
}

.rw-arrow {
  font-size: 11px !important;
  fill: #c3cddb;
  opacity: 0;
}

.rw-typed text {
  fill: var(--navy);
}

.rw-typed {
  clip-path: inset(0 100% 0 0);
}

.rw-caret {
  fill: var(--blue);
  opacity: 0;
}

.rw__scene.is-on .rw-old {
  animation: rwDim 0.2s ease both;
  animation-delay: calc(0.12s + var(--i) * 0.42s);
}

.rw__scene.is-on .rw-arrow {
  animation: rwFade 0.2s ease both;
  animation-delay: calc(0.18s + var(--i) * 0.42s);
}

.rw__scene.is-on .rw-typed {
  animation: rwReveal 0.4s steps(var(--n, 16)) both;
  animation-delay: calc(0.24s + var(--i) * 0.42s);
}

.rw__scene.is-on .rw-caret {
  animation-name: rwFade, rwCaret, rwOut;
  animation-duration: 0.1s, 0.4s, 0.18s;
  animation-timing-function: ease, steps(var(--n, 16)), ease;
  animation-fill-mode: both, both, forwards;
  animation-delay: calc(0.2s + var(--i) * 0.42s),
    calc(0.24s + var(--i) * 0.42s), calc(0.7s + var(--i) * 0.42s);
}

.rw__scene.is-on .rw-cursor--ren {
  animation: rwFade 0.18s ease 0.08s both,
    rwRenMove 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
}

@keyframes rwRenMove {
  0% {
    transform: translate(104px, 40px);
  }
  6%,
  26% {
    transform: translate(112px, 52px);
  }
  32%,
  52% {
    transform: translate(112px, 78px);
  }
  58%,
  78% {
    transform: translate(112px, 104px);
  }
  84%,
  100% {
    transform: translate(112px, 130px);
  }
}

@keyframes rwReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes rwCaret {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--w, 110) * 1px));
  }
}

@keyframes rwDim {
  to {
    opacity: 0.45;
  }
}

@keyframes rwFade {
  to {
    opacity: 1;
  }
}

@keyframes rwOut {
  to {
    opacity: 0;
  }
}

@keyframes rwDash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rwPop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rwDrop {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  35% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(76px) scale(0.88);
  }
}

@keyframes rwStretch {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(1.55);
  }
}

@keyframes rwPush {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(79px);
  }
}

/* Fil des phases */

.rw__phases {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 14px 0 0;
  padding: 0;
}

.rw__phase {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a3b0c0;
  transition: color 0.4s ease;
}

.rw__phase::after {
  content: "";
  width: 10px;
  height: 1px;
  background: #dde5ee;
}

.rw__phase:last-child::after {
  display: none;
}

.rw__phase.is-done {
  color: var(--rw-ink);
}

.rw__phase.is-on {
  color: var(--blue);
  font-weight: 700;
}

.rw__punch {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .rw__scene *,
  .rw__phase,
  .rw-panel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .rw-panel.is-leave {
    display: none !important;
  }

  .rw-panel:not(.is-on) {
    display: none !important;
  }

  .rw-cursor,
  .rw-cross,
  .rw-caret,
  .rw-val--out {
    display: none !important;
  }
}

/* ── Notre solution (4 principes + schéma Produit) ─────── */

#solution:not(.is-unlocked) {
  min-height: 70vh;
}

#solution .contrast {
  margin-bottom: clamp(48px, 7vw, 80px);
  min-height: 8rem;
}

.contrast__content[hidden] {
  display: none !important;
}

.contrast__content {
  opacity: 0;
  transform: translateY(1.5rem);
}

.contrast.is-ready .contrast__content {
  animation: contrastReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes contrastReveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.contrast__copy {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.contrast__copy p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(215, 224, 239, 0.82);
}

.contrast__ask {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.4;
  color: #fff;
}

.contrast__cta-line {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: #9db4ff;
}

.contrast__stage {
  display: grid;
  gap: 0;
  position: relative;
}

.contrast__shell.appshell {
  position: relative;
  z-index: 1;
  background: var(--white, #fff);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.contrast__stage.is-payoff .contrast__shell {
  visibility: hidden;
  pointer-events: none;
}

.contrast__shell.is-idle::after {
  content: "Placez la fenêtre au centre pour lancer la démo";
  position: absolute;
  inset: auto 16px 16px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--steel, #66758c);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line, #d7e0ef);
  pointer-events: none;
}

.contrast__shell.is-running::after,
.contrast__shell.is-done::after {
  display: none;
}

.contrast__live {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue, #2f6bff);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft, #eaf0ff);
  border: 1px solid #cddcff;
}

.contrast__live b {
  font-size: 0.875rem;
}

.contrast__use {
  position: relative;
}

.contrast__use .useview {
  height: 200px;
}

.contrast__use .usedevs {
  /* hérite du layout appshell */
}

.contrast__note {
  margin: 2px 0 0;
  min-height: 2.4em;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--steel, #66758c);
}

.contrast__shell .param.is-focus input,
.contrast__shell .param input.is-focus,
.contrast__shell .param input.is-typing {
  border-color: var(--blue, #2f6bff);
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.18);
}

.contrast__shell .param.is-focus,
.contrast__shell .param.is-hot {
  background: rgba(47, 107, 255, 0.04);
  border-radius: 8px;
}

.contrast__shell .switch.is-hot,
.contrast__shell .usepanel__gen.is-hot {
  filter: brightness(1.06);
}

.contrast__shell .usepanel__gen.is-clicked {
  transform: scale(0.97);
}

.contrast__shell .usefiles__list li {
  opacity: 0;
  transform: translateY(4px);
}

.contrast__shell .usefiles__list li.is-in {
  animation: contrastFileIn 0.35s ease forwards;
}

@keyframes contrastFileIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.contrast__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transform: translate(24px, 72px);
  transition:
    transform 0.62s cubic-bezier(0.33, 0.1, 0.25, 1),
    opacity 0.25s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.contrast__cursor.is-on {
  opacity: 1;
}

.contrast__cursor.is-click {
  transition:
    transform 0.08s ease,
    opacity 0.2s ease;
}

.contrast__cursor-ico {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  overflow: visible;
}

.contrast__cursor.is-arrow .contrast__cursor-ico--arrow,
.contrast__cursor.is-text .contrast__cursor-ico--text,
.contrast__cursor.is-hand .contrast__cursor-ico--hand {
  display: block;
}

.contrast__cursor.is-text .contrast__cursor-ico--text {
  left: -2px;
  top: -2px;
}

.contrast__cursor.is-hand .contrast__cursor-ico--hand {
  left: -4px;
  top: -2px;
}

.contrast__payoff {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  justify-items: center;
  align-content: center;
  gap: 12px;
  margin: 0;
  padding: 20px 18px;
  overflow: auto;
  text-align: center;
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 138, 61, 0.12), transparent 55%),
    #0b1528;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contrast__payoff.is-on {
  display: grid;
}

.contrast__vs-arena {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 28rem);
  min-height: 3.5rem;
  overflow: visible;
}

.contrast__vs-slow,
.contrast__vs-fast {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  grid-area: 1 / 1;
}

.contrast__vs-slow {
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  color: #ff8a3d;
  text-shadow: 0 0 40px rgba(255, 138, 61, 0.28);
  transform-origin: center;
  z-index: 1;
}

.contrast__vs-fast {
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  color: #fff;
  opacity: 0;
  transform: translateX(3.5rem);
  z-index: 3;
  pointer-events: none;
}

.contrast__vs-crumbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.contrast__vs-crumbs i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 2px;
  background: #ff8a3d;
  opacity: 0;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.contrast__vs-crumbs i:nth-child(1) { --dx: -72px; --dy: -38px; --r: -28deg; width: 14px; height: 8px; }
.contrast__vs-crumbs i:nth-child(2) { --dx: -28px; --dy: -58px; --r: 18deg; width: 9px; height: 11px; }
.contrast__vs-crumbs i:nth-child(3) { --dx: 36px; --dy: -52px; --r: 42deg; width: 12px; height: 7px; }
.contrast__vs-crumbs i:nth-child(4) { --dx: 78px; --dy: -24px; --r: -12deg; width: 8px; height: 13px; }
.contrast__vs-crumbs i:nth-child(5) { --dx: -84px; --dy: 18px; --r: 55deg; width: 11px; height: 9px; }
.contrast__vs-crumbs i:nth-child(6) { --dx: -18px; --dy: 48px; --r: -36deg; width: 15px; height: 6px; }
.contrast__vs-crumbs i:nth-child(7) { --dx: 42px; --dy: 44px; --r: 22deg; width: 9px; height: 10px; }
.contrast__vs-crumbs i:nth-child(8) { --dx: 88px; --dy: 22px; --r: -48deg; width: 13px; height: 7px; }
.contrast__vs-crumbs i:nth-child(9) { --dx: -52px; --dy: -8px; --r: 8deg; width: 7px; height: 14px; }
.contrast__vs-crumbs i:nth-child(10) { --dx: 12px; --dy: -36px; --r: -20deg; width: 10px; height: 8px; }

.contrast__vs-tag {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 650;
  color: #9db4ff;
  opacity: 0;
  transform: translateY(8px);
}

.contrast__gain {
  width: min(100%, 36rem);
  margin-top: 2px;
  opacity: 0;
  transform: translateY(10px);
}

.contrast__gain-lead {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: rgba(215, 224, 239, 0.82);
}

.contrast__gain-lead strong {
  color: #fff;
  font-weight: 650;
}

.contrast__gain-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contrast__gain-stats li {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contrast__gain-stats b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.88);
}

.contrast__gain-stats span {
  font-size: 0.75rem;
  color: rgba(215, 224, 239, 0.62);
}

.contrast__gain-stats li.is-save {
  background: rgba(157, 180, 255, 0.12);
  border-color: rgba(157, 180, 255, 0.28);
}

.contrast__gain-stats li.is-save b {
  color: #9db4ff;
}

.contrast__expand {
  width: min(100%, 38rem);
  margin-top: 2px;
  opacity: 0;
  transform: translateY(10px);
}

.contrast__expand p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(215, 224, 239, 0.82);
}

.contrast__expand p + p {
  margin-top: 8px;
}

.contrast__expand strong {
  color: #fff;
  font-weight: 650;
}

.contrast__expand-punch {
  font-size: clamp(1rem, 2.2vw, 1.2rem) !important;
  font-weight: 650;
  color: #fff !important;
}

/* Phase 1 — 30 min orange centré */
.contrast__payoff.is-old .contrast__vs-fast {
  opacity: 0;
}

/* Phase 2 — 15 s depuis la droite + miettes */
.contrast__payoff.is-hit .contrast__vs-fast {
  animation: cx-vs-from-right 0.58s cubic-bezier(0.18, 0.9, 0.28, 1) forwards;
}

.contrast__payoff.is-shatter .contrast__vs-slow {
  opacity: 0;
  transition: opacity 0.05s linear;
}

.contrast__payoff.is-shatter .contrast__vs-crumbs i {
  animation: cx-vs-crumb 0.72s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.02s);
}

.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(1) { --i: 0; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(2) { --i: 1; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(3) { --i: 2; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(4) { --i: 3; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(5) { --i: 4; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(6) { --i: 5; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(7) { --i: 6; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(8) { --i: 7; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(9) { --i: 8; }
.contrast__payoff.is-shatter .contrast__vs-crumbs i:nth-child(10) { --i: 9; }

.contrast__payoff.is-shatter .contrast__vs-fast,
.contrast__payoff.is-tag .contrast__vs-fast,
.contrast__payoff.is-gain .contrast__vs-fast,
.contrast__payoff.is-expand .contrast__vs-fast,
.contrast__payoff.is-final .contrast__vs-fast {
  opacity: 1;
  transform: none;
  animation: none;
}

.contrast__payoff.is-tag .contrast__vs-tag,
.contrast__payoff.is-gain .contrast__vs-tag,
.contrast__payoff.is-expand .contrast__vs-tag,
.contrast__payoff.is-final .contrast__vs-tag {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.contrast__payoff.is-gain .contrast__gain,
.contrast__payoff.is-expand .contrast__gain,
.contrast__payoff.is-final .contrast__gain {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contrast__payoff.is-expand .contrast__expand,
.contrast__payoff.is-final .contrast__expand {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@keyframes cx-vs-from-right {
  0% {
    opacity: 0;
    transform: translateX(5.5rem) scale(0.88);
  }
  62% {
    opacity: 1;
    transform: translateX(-0.2rem) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes cx-vs-crumb {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(0.35);
  }
}

@media (max-width: 640px) {
  .contrast__gain-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contrast__payoff.is-hit .contrast__vs-fast,
  .contrast__payoff.is-shatter .contrast__vs-crumbs i {
    animation: none;
  }

  .contrast__payoff.is-final .contrast__vs-fast,
  .contrast__payoff.is-final .contrast__vs-tag,
  .contrast__payoff.is-final .contrast__gain,
  .contrast__payoff.is-final .contrast__expand {
    opacity: 1;
    transform: none;
  }

  .contrast__payoff.is-final .contrast__vs-slow {
    opacity: 0;
  }
}

.solution {
  display: grid;
  grid-template-columns: minmax(16rem, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.prodmap {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.prodmap__orbit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 14px 12px;
  width: min(100%, 22rem);
}

.prodmap__sat {
  padding: 8px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d7e0ef;
  text-align: center;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.55);
}

.prodmap__sat:nth-child(1) { grid-column: 2; grid-row: 1; }
.prodmap__sat:nth-child(2) { grid-column: 1; grid-row: 2; justify-self: end; }
.prodmap__sat:nth-child(3) { grid-column: 3; grid-row: 2; justify-self: start; }
.prodmap__sat:nth-child(4) { grid-column: 2; grid-row: 3; }

.prodmap__core {
  grid-column: 2;
  grid-row: 2;
  width: 7rem;
  height: 7rem;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.18);
  border: 1px solid rgba(123, 161, 255, 0.55);
  box-shadow: 0 0 0 10px rgba(47, 107, 255, 0.06);
}

.prodmap__core strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.prodmap__core span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bbcff;
}

.prodmap__out {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bbcff;
}

.prodmap__out span {
  color: rgba(123, 161, 255, 0.85);
}

.solprinciples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(22px, 2.8vw, 30px);
}

.solprinciples li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.solprinciples__n {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7ba1ff;
  padding-top: 5px;
}

.solprinciples h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-transform: none;
}

.solprinciples p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #96a3b8;
}

.solution__synth {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #c5d0e0;
}

.solution__synth strong {
  color: #fff;
  font-weight: 700;
}

/* ── Onglets accessibilité ──────────────────────────────── */

.tabs {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.tab-list {
  display: grid;
  gap: 10px;
}

.tab {
  position: relative;
  text-align: left;
  padding: 18px 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.18s ease;
}

.tab h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.tab p {
  font-size: 0.875rem;
  color: var(--muted);
}

.tab:hover {
  border-color: #c8d3e2;
}

.tab[aria-selected="true"] {
  border-color: var(--blue-100);
  background: var(--blue-soft);
}

.tab[aria-selected="true"]::before {
  background: var(--blue);
}

.tab__step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-family: ui-monospace, Consolas, monospace;
}

.tab-panel[hidden] {
  display: none;
}

/* ── Progression simple → complexe ──────────────────────── */

.range-track {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.range-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.range-step {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  line-height: 1.35;
  transition: all 0.18s ease;
}

.range-step small {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9aa7ba;
  margin-bottom: 4px;
}

.range-step.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--navy);
}

.range-step.is-active small {
  color: var(--blue);
}

.range-step.is-done {
  border-color: var(--blue-100);
  color: var(--text);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.stage__canvas {
  padding: 20px;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
}

.stage__canvas svg,
.prod-card__thumb svg {
  width: 100%;
  height: auto;
}

.stage__side {
  padding: 22px;
}

.stage__side h3 {
  margin-bottom: 8px;
}

.stage__side p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.out-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.out-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
  font-size: 0.8125rem;
  color: var(--text);
  animation: rowIn 0.28s ease both;
}

.out-list--files li {
  font-family: ui-monospace, Consolas, monospace;
}

.out-list li span {
  margin-left: auto;
  font-family: Inter, sans-serif;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--muted);
}

.out-list li.is-new {
  border-color: var(--blue-100);
  background: var(--blue-soft);
  color: var(--blue);
}

.out-list li.is-new span {
  color: var(--blue);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Temps gagné / Exemple ──────────────────────────────── */

.exemple-manual {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.exemple-manual__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 0 12px;
}

.exemple-manual__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.exemple-manual__time {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.exemple-manual__time b {
  font-size: clamp(1.85rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
}

.exemple-manual__time i {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
}

.exemple-manual__copy {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.exemple-manual__steps {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  border-top: 1px solid var(--line-soft);
}

.exemple-manual__steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.exemple-manual__steps li:not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--blue);
  font-weight: 700;
}

.exemple-manual__steps span {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.exemple-applat {
  margin: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  max-width: 46rem;
}

.exemple-applat .eyebrow {
  margin-bottom: 14px;
}

.exemple-applat h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.exemple-applat > p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.exemple-applat > p strong {
  color: var(--navy);
  font-weight: 650;
}

.exemple-applat__punch {
  margin: 18px 0 10px !important;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--navy) !important;
}

.exemple-applat__note {
  margin: 0 !important;
  font-size: 0.92rem !important;
  font-style: italic;
  color: var(--muted);
}

.exemple-change h3 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.compare__card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare__card--applat {
  border-color: var(--blue-100);
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
}

.compare__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare__card--applat .compare__label {
  color: var(--blue);
}

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

.compare__time b {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 780;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.compare__time i {
  font-style: normal;
  font-size: 1rem;
  font-weight: 650;
  color: var(--muted);
}

.compare__card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 10px;
}

.bar {
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: 18px;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #b9c4d4;
}

.compare__card--applat .bar i {
  background: var(--blue);
}

.gains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.exemple-change .gains {
  margin-top: 0;
}

.gains li {
  padding: 20px 22px 20px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.gains li strong {
  display: block;
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 4px;
}

/* ── Règle de fabrication ───────────────────────────────── */

.rule-chain {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.rule-chain__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--muted);
  transition: all 0.2s ease;
}

.rule-chain__item b {
  color: var(--navy);
  font-weight: 650;
}

.rule-chain__item .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #c3cddb;
  background: #fff;
  transition: all 0.2s ease;
}

.rule-chain__item.is-on {
  border-color: var(--blue-100);
  background: var(--blue-soft);
  color: var(--text);
}

.rule-chain__item.is-on .dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16);
}

.rule-chain__item .state {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 650;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--muted);
}

.rule-chain__item.is-on .state {
  color: var(--blue-700);
}

/* ── Bibliothèque de Produits ───────────────────────────── */

.library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.prod-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.prod-card:hover {
  border-color: #c2cddc;
  transform: translateY(-2px);
}

.prod-card--more {
  border-style: dashed;
  background: #f7f9fc;
}

.prod-card--more:hover {
  border-color: var(--blue-100);
  transform: none;
}

.prod-card__more {
  height: 100%;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 22px 18px;
}

.prod-card__dots {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.prod-card__more p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 16ch;
}

.prod-card__more strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.prod-card__thumb {
  background: #f7f9fc;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px;
}

.prod-card__body {
  padding: 13px 14px 15px;
}

.prod-card__body h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.prod-card__body p {
  font-size: 0.8125rem;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 650;
  background: #eaf8f0;
  color: #168a4a;
  margin-bottom: 8px;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tag--draft {
  background: var(--blue-soft);
  color: var(--blue-700);
}

/* ── Positionnement ─────────────────────────────────────── */

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

.position__col {
  padding: clamp(24px, 3vw, 38px);
}

.position__col + .position__col {
  border-left: 1px solid var(--line);
  background: #fbfcfe;
}

.position__col h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.position__col p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.position__col ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.position__col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text);
}

.position__col li svg {
  flex: none;
  margin-top: 3px;
  color: var(--blue);
}

.position__col li.neutral svg {
  color: #a9b5c6;
}

/* ── Applications ───────────────────────────────────────── */

.apps {
  --apps-gap: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.apps__item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 22px 28px 22px 0;
  border-bottom: 1px solid var(--line);
}

.apps__item:nth-child(odd) {
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.apps__item:nth-child(even) {
  padding-left: 36px;
}

.apps__idx {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  line-height: 1.6;
  padding-top: 2px;
}

.apps__body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}

.apps__body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}

.apps__closing {
  margin: clamp(28px, 4vw, 40px) auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
}

.apps__closing em {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}

/* ── Pensé pour le paramétrique ─────────────────────────── */

.scope__head {
  max-width: 40rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.scope__head .eyebrow {
  margin-bottom: 14px;
}

.scope__head h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1.14;
  color: var(--navy);
  margin: 0;
}

.scope__head .lede {
  margin-top: 16px;
}

.scope__layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(28px, 3.5vw, 36px);
  border-top: 1px solid var(--line);
}

.scope__lead {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28ch;
}

.scope__traits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.scope__traits li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--navy);
  line-height: 1.3;
}

.scope__traits li:first-child {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.scope__copy {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.scope__copy > p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38rem;
}

.scope__copy strong {
  color: var(--text);
  font-weight: 650;
}

.scope__closing {
  margin-top: 10px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem) !important;
  font-weight: 550;
  line-height: 1.5 !important;
  letter-spacing: -0.015em;
  color: var(--text) !important;
  max-width: 28rem;
}

.scope__closing em {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 860px) {
  .scope__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .scope__lead {
    max-width: none;
  }
}

/* ── Tarifs ─────────────────────────────────────────────── */

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

.price-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-card--pro {
  border-color: var(--blue);
  box-shadow: 0 18px 44px rgba(47, 107, 255, 0.13);
  position: relative;
}

.price-card__flag {
  position: absolute;
  top: -11px;
  right: 24px;
  height: 22px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 1.125rem;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 16px 0 2px;
}

.price-card__amount b {
  font-size: 2.4rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}

.price-card__amount span {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 550;
}

.price-card__alt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  margin: 22px 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.price-card li svg {
  flex: none;
  margin-top: 3px;
  color: var(--blue);
}

.price-card .btn {
  width: 100%;
}

.price-note {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* ── CTA final ──────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #9fadc2;
  padding: clamp(56px, 6vw, 90px) 0;
  text-align: center;
}

.cta .container {
  position: relative;
}

.cta h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.cta p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta__meta {
  margin-top: 18px;
  font-size: 0.875rem;
  color: #7c8ba3;
}

/* ── Pied de page ───────────────────────────────────────── */

.site-footer {
  background: var(--navy-2);
  color: #8493aa;
  padding: 50px 0 34px;
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand img {
  width: 120px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 34ch;
  color: #7b8aa1;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 650;
}

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

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #6d7c93;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: #6d7c93;
}

.footer-legal a:hover {
  color: #fff;
}

/* Bannière d’accès public (auth.js) */
.dev-banner {
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  position: relative;
  z-index: 60;
}

.dev-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.dev-banner p {
  margin: 0;
  line-height: 1.45;
}

.dev-banner__link {
  flex: none;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dev-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Apparition au défilement (§20 : discret) ───────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Adaptatif ──────────────────────────────────────────── */

@media (max-width: 1020px) {
  .hero .container,
  .split,
  .stage,
  .position {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split__visual {
    order: 0;
  }

  .stage__canvas {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .position__col + .position__col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .solution {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .prodmap {
    order: -1;
  }

  .prodmap__orbit {
    width: min(100%, 20rem);
  }

  .problem-story__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .problem-story__visual {
    order: -1;
  }

  .rw-timeline__steps em {
    display: none;
  }

  .rw-timeline__steps {
    gap: 2px;
  }

  /* Le problème : pitch d’abord ; sticky seulement une fois la démo lancée */
  #probleme.section {
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 0;
  }

  #exemple.section.is-demo-live {
    min-height: 170vh;
  }

  #probleme .problem-pitch {
    margin-bottom: 0;
  }

  #exemple.is-demo-live .problem-story {
    position: sticky;
    top: var(--header-h);
    z-index: 3;
    box-sizing: border-box;
    height: calc(100dvh - var(--header-h) - 10px);
    max-height: calc(100dvh - var(--header-h) - 10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding: 10px 0 6px;
    background: var(--surface, #fff);
  }

  #exemple .problem-story > .eyebrow {
    margin: 0 0 2px;
    font-size: 0.6875rem;
  }

  #exemple .problem-story__body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    align-content: start;
  }

  #exemple .problem-story__visual {
    order: -1;
    min-height: 0;
  }

  #exemple .problem-story__copy {
    gap: 8px;
    min-height: 0;
    overflow: hidden;
  }

  #exemple .problem-story__copy h2 {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  #exemple .rw__win {
    border-radius: 10px;
    box-shadow: 0 10px 24px -20px rgba(15, 34, 63, 0.35);
  }

  #exemple .rw__bar {
    height: 30px;
    padding: 0 10px;
    gap: 8px;
  }

  #exemple .rw__app {
    font-size: 0.6875rem;
  }

  #exemple .rw__timer {
    font-size: 0.75rem;
    padding: 2px 7px;
  }

  #exemple .rw__timer b {
    font-size: 0.8125rem;
  }

  #exemple .rw__stage {
    height: clamp(120px, 22dvh, 156px);
  }

  #exemple .rw-panels {
    min-height: 4.75rem;
    max-height: 6.75rem;
    flex: 1 1 auto;
  }

  #exemple .rw-panel__lead,
  #exemple .rw-panel p {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  #exemple .rw-panel__step {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  #exemple .rw-panel__add {
    margin-top: 4px;
    font-size: 0.75rem;
  }

  #exemple .rw-elapsed {
    margin: 0;
    font-size: 0.8125rem;
  }

  #exemple .rw-timeline {
    flex: none;
    margin-top: auto;
    padding-top: 8px;
  }

  #exemple .rw-timeline__track {
    margin-bottom: 8px;
  }

  #exemple .rw-timeline__meta {
    margin-top: 6px;
    font-size: 0.6875rem;
  }

  #exemple .rw-timeline__eta {
    display: none;
  }

  #exemple .problem-story.is-bilan {
    overflow: auto;
    justify-content: center;
  }

  #exemple .problem-story.is-bilan > .eyebrow,
  #exemple .problem-story.is-bilan .problem-story__body,
  #exemple .problem-story.is-bilan .rw-timeline {
    display: none;
  }

  #exemple .problem-story.is-bilan .rw-bilan {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 4px 8px;
    align-content: center;
  }

  #exemple .rw-bilan h3 {
    font-size: 1.05rem;
    margin: 8px 0;
  }

  #exemple .rw-bilan__lead,
  #exemple .rw-bilan__cost,
  #exemple .rw-bilan__points {
    font-size: 0.875rem;
  }

  #exemple .rw-bilan__time {
    margin-bottom: 12px;
  }

  #exemple .rw-bilan__time strong {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  #exemple .rw-bilan__cta {
    margin-top: 10px;
  }

  #exemple .rw-bilan__points {
    margin: 10px auto;
  }

  .contrast__use {
    grid-template-columns: minmax(0, 1fr);
  }

  .rw-panels {
    min-height: 10rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav,
  .header-actions .link-login {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header .container {
    gap: 16px;
  }

  .app-frame__body,
  .controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    gap: 10px;
  }

  .app-pane + .app-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .range-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare,
  .pricing,
  .apps {
    grid-template-columns: minmax(0, 1fr);
  }

  .apps__item,
  .apps__item:nth-child(odd),
  .apps__item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .range-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 54px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
