@font-face {
  font-family: 'Pixel';
  src: url('/fonts/pixel.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('/node_modules/@fontsource-variable/archivo/files/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --electric: #0019ff;
  --electric-deep: #0010a8;
  --quiet: #55585f;
  --hair: rgba(0, 0, 0, 0.16);
  --error: #c20f2b;
  --gutter: clamp(16px, 5vw, 80px);
  --lift: 0 1px 2px rgba(8, 12, 36, 0.12), 0 26px 60px -18px rgba(8, 12, 36, 0.34);

  /* Le fond : du cuir blanc pleine fleur, calculé par le navigateur */
  --cuir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.28' numOctaves='2' seed='23' stitchTiles='stitch'/%3E%3CfeDiffuseLighting surfaceScale='0.18' diffuseConstant='1.135' lighting-color='%23ffffff'%3E%3CfeDistantLight azimuth='235' elevation='62'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='640' height='640' filter='url(%23c)'/%3E%3C/svg%3E");

  /* Le fil : un point sellier, horizontal puis vertical */
  --thread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12'%3E%3Cg stroke-linecap='round'%3E%3Cline x1='4' y1='8.3' x2='16' y2='5.3' stroke='%23060a28' stroke-opacity='.28' stroke-width='3.4'/%3E%3Cline x1='4' y1='7.6' x2='16' y2='4.6' stroke='%230019ff' stroke-width='3'/%3E%3Cline x1='5.2' y1='6.7' x2='15' y2='4.3' stroke='%237f93ff' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E");
  --thread-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20'%3E%3Cg stroke-linecap='round'%3E%3Cline x1='3.9' y1='4' x2='6.9' y2='16' stroke='%23060a28' stroke-opacity='.28' stroke-width='3.4'/%3E%3Cline x1='4.6' y1='4' x2='7.6' y2='16' stroke='%230019ff' stroke-width='3'/%3E%3Cline x1='5.4' y1='5.2' x2='7.8' y2='15' stroke='%237f93ff' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  background: var(--paper) var(--cuir);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-x: clip;
}

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

.kw {
  color: var(--electric);
}

b,
strong {
  font-weight: 700;
}

h2 {
  max-width: 17em;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h3 {
  font-stretch: 78%;
  font-weight: 800;
  letter-spacing: -0.005em;
}

p {
  text-wrap: pretty;
}

ol,
ul {
  list-style: none;
  padding: 0;
}

.lead {
  max-width: 34em;
  margin-top: 1.5rem;
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  line-height: 1.42;
}

.note {
  color: var(--quiet);
  font-size: 1rem;
}

/* Les maquettes sont peintes sur du blanc : la multiplication laisse passer le cuir. */

.model {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.6s ease;
}

.model.ready {
  opacity: 1;
}

/* Bouton : un écusson de cuir bleu, surpiqué de blanc */

.button {
  position: relative;
  display: inline-block;
  padding: 1.15em 2.1em;
  border: 0;
  border-radius: 7px;
  background: var(--electric);
  box-shadow: 0 3px 0 var(--electric-deep), 0 16px 30px -10px rgba(0, 25, 255, 0.55);
  color: var(--paper);
  font: inherit;
  font-size: 1.1875rem;
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.button::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgba(255, 255, 255, 0.82);
  border-radius: 4px;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--electric-deep), 0 22px 36px -10px rgba(0, 25, 255, 0.7);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--electric-deep), 0 8px 18px -8px rgba(0, 25, 255, 0.6);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.button[disabled] {
  background: var(--quiet);
  box-shadow: none;
  cursor: progress;
}

.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.14s ease;
}

.float-cta.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Usine : la scène reste épinglée pendant que le contenu défile */

.factory {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--paper) var(--cuir);
}

#line {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.7s ease;
}

#line.ready {
  opacity: 1;
}

.over {
  position: relative;
  margin-top: -100svh;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding-bottom: clamp(1.25rem, 3vh, 2.25rem);
}

.brand,
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-stretch: 88%;
  font-weight: 700;
  text-decoration: none;
}

.brand,
.hero-link {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 2.2vh, 22px);
}

.brand {
  left: var(--gutter);
}

.hero-link {
  right: var(--gutter);
  padding-bottom: 8px;
  background: var(--thread) repeat-x left bottom / 15px 9px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-stretch: 88%;
  font-weight: 700;
  text-decoration: none;
}

.brand:focus-visible,
.hero-link:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.brand i,
.brand-text i {
  width: 14px;
  height: 14px;
  background: var(--electric);
}

#hook3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.voxels .hook,
.voxels .hook .kw {
  color: transparent;
}

.hook {
  position: relative;
  padding: clamp(3.25rem, 7vh, 4.25rem) 16px 0;
  font-family: 'Pixel', 'Courier New', monospace;
  font-size: 32px; /* multiples de 8 px : chaque pixel de la police reste net */
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  -webkit-font-smoothing: none;
}

@media (min-width: 720px) {
  .hook {
    font-size: 40px;
  }
}

@media (min-width: 1100px) {
  .hook {
    font-size: 56px;
  }
}

@media (min-width: 1360px) {
  .hook {
    font-size: 64px;
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .hook {
    font-size: 48px;
  }
}

@media (min-width: 1720px) {
  .hook {
    font-size: 72px;
  }
}

.nb {
  white-space: nowrap;
}

.w {
  display: inline-block;
}

.w > span {
  display: inline-block;
}

.hero-space {
  flex: 1;
  min-height: 300px;
}

.hero-cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 36rem) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
  padding-inline: var(--gutter);
}

.hero-line {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.32;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.micro {
  color: var(--quiet);
  font-size: 0.9375rem;
}

/* Le problème : un rabat de cuir qui vient recouvrir l'usine */

.problem {
  position: relative;
  padding: clamp(3.75rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  border-radius: 26px;
  background: var(--paper) var(--cuir);
  box-shadow: 0 -22px 50px -22px rgba(8, 12, 36, 0.36), 0 22px 50px -22px rgba(8, 12, 36, 0.36);
}

.problem::before,
.problem::after {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  height: 12px;
  background: var(--thread) repeat-x left center / 15px 9px;
  pointer-events: none;
}

.problem::before {
  top: 16px;
}

.problem::after {
  bottom: 16px;
}

.assurances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.5rem);
  max-width: 1280px;
  margin: 0 auto clamp(4.5rem, 9vw, 8rem);
}

.assurances b {
  display: block;
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  font-stretch: 78%;
  font-weight: 800;
  line-height: 1.12;
}

.assurances span {
  display: block;
  max-width: 19em;
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  line-height: 1.38;
}

.problem > h2,
.problem-grid {
  max-width: 1280px;
  margin-inline: auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
}

.problem-model {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 8svh;
  height: 84svh;
  background: var(--paper) var(--cuir);
}

.problem-copy {
  grid-column: 1;
  grid-row: 1;
}

.pain {
  padding-block: 20svh;
  font-size: clamp(2.25rem, 4.3vw, 4.25rem);
  font-stretch: 78%;
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.008em;
}

/* Visite de l'usine : une étiquette cousue par poste */

.stop {
  display: flex;
  align-items: center;
  min-height: 104svh;
  padding-inline: var(--gutter);
}

.tag {
  position: relative;
  width: min(100%, 29rem);
  padding: 1.75rem 1.9rem 1.85rem;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--lift);
}

.tag::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px dashed var(--electric);
  border-radius: 5px;
  pointer-events: none;
}

.tag-step {
  margin-bottom: 0.45rem;
  color: var(--quiet);
  font-size: 1rem;
  font-weight: 600;
}

.tag h3 {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-stretch: 72%;
  line-height: 1;
}

.agent-name {
  margin-top: 0.3rem;
  margin-bottom: 0.65rem;
  font-size: 1.3125rem;
  font-weight: 700;
}

.tag dl {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
}

.tag dt {
  font-size: 1rem;
  font-weight: 700;
}

.tag dd {
  margin: 0;
}

.tag-intro {
  width: min(100%, 36rem);
  padding: 2rem 2.1rem 2.15rem;
}

.tag-intro h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
}

.tag-intro p {
  margin-top: 1rem;
}

.tag-intro .small {
  color: var(--quiet);
  font-size: 1rem;
}

.tag-intro .button {
  margin-top: 1.4rem;
}

/* Sections */

.band {
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter) 0;
}

/* Exemples de résultats */

.demo-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  column-gap: clamp(1.5rem, 4vw, 4rem);
}

.demo-head .lead {
  margin-top: 0;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.demo-tabs button {
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.demo-tabs button:hover {
  border-color: var(--electric);
  color: var(--electric);
}

.demo-tabs [aria-selected='true'],
.demo-tabs [aria-selected='true']:hover {
  border-color: var(--electric);
  background: var(--electric);
  color: var(--paper);
}

.demo-tabs button:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.demo-case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

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

.ask-label {
  color: var(--quiet);
  font-size: 1rem;
  font-weight: 600;
}

.ask-text {
  margin: 0.45rem 0 2.25rem;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-stretch: 76%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.006em;
}

.files {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.55rem;
}

.files li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.6rem;
}

.files li::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 13px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: linear-gradient(var(--electric), var(--electric)) center 4px / 7px 1.5px no-repeat,
    linear-gradient(var(--electric), var(--electric)) center 8px / 7px 1.5px no-repeat;
}

.sheet {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--lift);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
}

.sheet-head h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  font-stretch: 74%;
  line-height: 1.04;
}

.sheet-head p {
  margin-top: 0.2rem;
  color: var(--quiet);
  font-size: 1rem;
}

.pending {
  flex: none;
  padding: 0.35rem 0.7rem;
  border: 1.5px dashed var(--electric);
  border-radius: 5px;
  color: var(--electric);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.sheet th,
.sheet td {
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: baseline;
}

.sheet th:last-child,
.sheet td:last-child {
  padding-right: 0;
}

.sheet thead th {
  color: var(--quiet);
  font-size: 1rem;
  font-weight: 600;
}

.sheet .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sheet td.num {
  white-space: nowrap;
}

.sheet tfoot th,
.sheet tfoot td {
  border-bottom: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.rows > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1.0625rem;
}

.rows dt {
  font-weight: 600;
}

.rows dd {
  margin: 0;
}

.rows .missing dd {
  color: var(--electric);
  font-weight: 700;
}

.grades {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 0 0.85rem;
}

.grade {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 0.75rem;
}

.grade sup {
  font-size: 0.68em;
  line-height: 0;
}

.grade i {
  display: block;
  width: var(--share);
  height: 14px;
  border-radius: 2px;
  background: var(--electric);
}

.grade b {
  text-align: right;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.sheet-note {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

.sheet-note b {
  color: var(--electric);
}

.sheet-source {
  margin-top: 0.5rem;
  color: var(--quiet);
  font-size: 1rem;
}

.demo-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 2rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.demo-end p {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-stretch: 76%;
  font-weight: 750;
  line-height: 1.1;
}

/* Calculateur */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.sliders {
  display: grid;
  gap: 1.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.slider {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: 0.45rem;
}

.slider label {
  font-weight: 600;
}

.slider output {
  color: var(--electric);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-stretch: 74%;
  font-weight: 800;
  line-height: 1;
}

.slider input {
  grid-column: 1 / -1;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: grab;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--electric) var(--fill, 0%), var(--hair) var(--fill, 0%));
}

/* Le curseur : un rivet */
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12.5px;
  border: 8px solid var(--electric);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(8, 12, 36, 0.35);
}

input[type='range']::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: var(--hair);
}

input[type='range']::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--electric);
}

input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 8px solid var(--electric);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(8, 12, 36, 0.35);
}

input[type='range']:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.calc-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.calc-model {
  flex: 1;
  min-height: 420px;
}

.caption {
  color: var(--quiet);
  font-size: 1rem;
  text-align: center;
}

.calc-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 1.25rem clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-top: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--thread) repeat-x left top / 15px 9px;
}

.figure strong {
  display: block;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1;
}

.figure-money strong {
  font-size: clamp(4.5rem, 14vw, 14rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.calc-end {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.calc-end .note {
  max-width: 44em;
}

/* Écusson cousu : la preuve et la demande de démo */

.patch {
  position: relative;
  padding: clamp(2.5rem, 5.5vw, 5rem);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--lift);
}

.patch::before {
  content: '';
  position: absolute;
  inset: 12px;
  background:
    var(--thread) repeat-x left top / 15px 9px,
    var(--thread) repeat-x left bottom / 15px 9px,
    var(--thread-v) repeat-y left top / 9px 15px,
    var(--thread-v) repeat-y right top / 9px 15px;
  pointer-events: none;
}

.case .patch {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.case h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
}

.stats {
  display: grid;
  gap: 1.1rem;
}

.stats > div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  gap: 1rem;
}

.stats dd {
  margin: 0;
  min-width: 1.4em;
  color: var(--electric);
  font-size: clamp(3.25rem, 5.6vw, 5.25rem);
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.stats dt {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.rule {
  grid-column: 1 / -1;
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  font-stretch: 80%;
  font-weight: 750;
  line-height: 1.16;
}

/* Méthode */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step-model {
  aspect-ratio: 5 / 4;
}

.steps h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.625rem, 2.3vw, 2.125rem);
  line-height: 1.08;
}

.steps p {
  max-width: 28em;
  margin-top: 0.65rem;
}

/* Chaîne des huit agents */

.chain {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.chain h2 {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

.chain-model {
  width: 100%;
  height: clamp(280px, 30vw, 500px);
  margin-top: clamp(0.5rem, 1.5vw, 1.5rem);
}

.chain-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1rem, 2vw, 2rem);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  counter-reset: station;
}

.chain-list li {
  counter-increment: station;
}

.chain-list button,
.levels button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chain-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 0.8rem 0 1.4rem;
  border-top: 2px solid var(--hair);
  transition: border-color 0.2s ease;
}

.chain-list b {
  display: block;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-stretch: 76%;
  font-weight: 800;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.chain-list b::before {
  content: counter(station) '. ';
}

.chain-list span {
  display: block;
  margin-top: 0.3rem;
}

.chain-list .on {
  border-top-color: var(--electric);
}

.chain-list .on b {
  color: var(--electric);
}

.chain-list button:focus-visible,
.levels button:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

/* Niveaux d'accès */

.gates {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.levels {
  display: grid;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.levels button {
  padding: 1rem 0 1.1rem 1.1rem;
  border-left: 3px solid var(--hair);
  transition: border-color 0.2s ease;
}

.levels b {
  display: block;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  font-stretch: 76%;
  font-weight: 800;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.levels span {
  display: block;
  margin-top: 0.25rem;
}

.levels [aria-pressed='true'] {
  border-left-color: var(--electric);
}

.levels [aria-pressed='true'] b {
  color: var(--electric);
}

.gates-model {
  height: clamp(300px, 34vw, 520px);
}

/* Offre */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.offer-model {
  height: clamp(380px, 44vw, 640px);
}

.offer-list {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.offer-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.1rem;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  line-height: 1.32;
}

.offer-list li::before {
  content: '';
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: 20px;
  height: 12px;
  background: var(--thread) no-repeat left center;
}

.offer-copy .button {
  margin-top: 1.75rem;
}

.promise {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  font-stretch: 80%;
  font-weight: 750;
  line-height: 1.16;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.answers details {
  border-top: 1px solid var(--hair);
}

.answers details:last-child {
  border-bottom: 1px solid var(--hair);
}

.answers summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-stretch: 85%;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.answers summary::-webkit-details-marker {
  display: none;
}

.answers summary::after {
  content: '+';
  position: absolute;
  top: 0.8rem;
  right: 0.25rem;
  color: var(--electric);
  font-size: 1.75rem;
  font-weight: 800;
}

.answers details[open] summary::after {
  content: '−';
}

.answers summary:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.answers details p {
  max-width: 36em;
  padding-bottom: 1.4rem;
}

/* Demande de démo */

.request-band {
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  scroll-margin-top: 1rem;
}

.request {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.request h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
}

.next-steps {
  counter-reset: next;
  margin-top: 1.75rem;
}

.next-steps li {
  counter-increment: next;
  position: relative;
  padding: 0.35rem 0 0.35rem 2.1rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.3;
}

.next-steps li::before {
  content: counter(next);
  position: absolute;
  top: 0.15rem;
  left: 0;
  color: var(--electric);
  font-size: 1.5em;
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.2;
}

.arm-model {
  height: clamp(260px, 26vw, 400px);
  margin-top: 0.5rem;
}

#request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem clamp(1rem, 2vw, 1.75rem);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.wide {
  grid-column: 1 / -1;
}

.field > label,
legend {
  font-size: 1rem;
  font-weight: 600;
}

input:not([type='range']):not([type='radio']) {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input:not([type='range']):not([type='radio']):focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 0;
  border-color: var(--electric);
}

[aria-invalid='true'] {
  border-color: var(--error) !important;
}

.field-error:empty {
  display: none;
}

.field-error {
  color: var(--error);
  font-size: 1rem;
  font-weight: 600;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip input:checked + span {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--paper);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.status:empty {
  display: none;
}

.status {
  grid-column: 1 / -1;
  font-weight: 600;
}

.status.error {
  color: var(--error);
}

.status.done {
  color: var(--electric);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-stretch: 74%;
  font-weight: 800;
  line-height: 1.04;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: 1440px;
  margin-inline: auto;
  padding: 1.75rem var(--gutter) 2rem;
  background: var(--thread) repeat-x left top / 15px 9px;
  background-origin: content-box;
  background-position: left 0 top -1.25rem;
  font-size: 1rem;
}

/* Mouvement */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal 0.44s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--n, 0) * 65ms + 120ms);
  }

  .js .demo:not(.seen) .reveal {
    animation-play-state: paused;
  }
}

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

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

  *,
  *::before {
    transition: none !important;
  }
}

/* Petits écrans */

@media (max-width: 1040px) {
  .assurances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .problem-grid,
  .calc,
  .gates,
  .offer,
  .faq,
  .request,
  .demo-head,
  .demo-case,
  .case .patch {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    text-align: center;
  }

  .problem-model {
    grid-column: 1;
    grid-row: 1;
    top: 0;
    z-index: 1;
    height: 40svh;
  }

  .problem-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .pain {
    padding-block: 14svh;
  }

  .stop {
    align-items: flex-end;
    min-height: 106svh;
    padding-bottom: calc(5svh + 64px);
  }

  .tag {
    width: 100%;
  }

  .tag h3 {
    font-size: 2rem;
  }

  .tag dl {
    gap: 0.45rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }

  .tag-intro h2 {
    font-size: 2rem;
  }

  .demo-head .lead {
    margin-top: 1.25rem;
  }

  .sheet {
    margin-top: 1.75rem;
  }

  .demo-end {
    justify-content: flex-start;
  }

  .calc-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .calc-model {
    flex: none;
    height: 72vw;
    min-height: 0;
  }

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

  .figure-money {
    grid-column: 1 / -1;
  }

  .figure-money strong {
    font-size: 21vw;
  }

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

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

  .answers,
  #request-form {
    margin-top: 2.5rem;
  }

  .offer-model {
    order: 2;
    height: 92vw;
  }

  .gates-model {
    height: 70vw;
    margin-top: 1rem;
  }

  .arm-model {
    height: 60vw;
  }
}

@media (max-width: 520px) {
  #request-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-link {
    display: none;
  }

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

  .hero-action,
  .hero-action .button,
  .request .button,
  .calc-end .button,
  .demo-end .button {
    width: 100%;
  }

  .hero-action .button,
  .request .button,
  .calc-end .button,
  .demo-end .button,
  .float-cta {
    text-align: center;
  }

  .float-cta {
    right: 16px;
    bottom: 12px;
    left: 16px;
  }

  .patch {
    padding: 2.5rem 2rem;
  }

  .sheet {
    padding: 1.25rem 1.1rem;
  }

  .sheet-head {
    flex-wrap: wrap;
  }

  .tag {
    padding: 1.3rem 1.3rem 1.35rem;
    font-size: 1rem;
  }

  .tag-step {
    margin-bottom: 0.2rem;
  }

  .agent-name {
    margin-bottom: 0.35rem;
    font-size: 1.1875rem;
  }

  .tag-intro {
    padding: 1.5rem 1.4rem 1.6rem;
  }

  .sheet table {
    font-size: 0.875rem;
  }

  .sheet th,
  .sheet td {
    padding-right: 0.25rem;
  }

  .sheet thead th {
    font-size: 0.875rem;
  }

  .sheet tfoot th,
  .sheet tfoot td {
    font-size: 1.0625rem;
  }
}
