/* Vitrine IOTANK. Couleurs et polices reprises de apps/web/src/design (tokens.css, fonts.css). */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --ink: #041c3d;
  --ink-muted: #5e7488;
  --night: #041c3d;
  --night-2: #0b2d57;
  --night-line: #1f4775;
  --brand: #fe4101;
  --brand-ink: #c23300;
  --action: #123c7a;
  --app: #f4f7f9;
  --canvas: #e8edf1;
  --border: #e3eaef;
  --water: #0c7898;
  --water-shallow: #3fb6e6;
  --alert: #d92d3a;
  --rest: #2f8f4f;
  --on-night: #ffffff;
  --on-night-muted: #a9bdd3;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --hdr: 60px;
  --gutter: 20px;
  --radius: 18px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 12px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font: 400 1.0625rem/1.55 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 9vw, 5.4rem);
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--brand);
}

h2 {
  font-size: clamp(2rem, 7.4vw, 3.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.t-cond {
  font-family: var(--font-display);
}
.t-body {
  font-family: var(--font-body);
}
.t-mono {
  font-family: var(--font-mono);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 10px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--hdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0);
  background: rgb(4 28 61 / 82%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  font-size: 0.98rem;
}

.top-nav a:not(.btn) {
  text-decoration: none;
  color: var(--on-night-muted);
  padding: 8px 0;
}
.top-nav a:not(.btn):hover {
  color: #fff;
}

.hide-sm {
  display: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 700 1.05rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgb(254 65 1 / 70%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgb(254 65 1 / 85%);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}
.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: inherit;
  font: 600 1rem/1 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--brand);
  cursor: pointer;
}
.link-arrow::after {
  content: "\2193";
  color: var(--brand);
  text-decoration: none;
}
button.link-arrow::after {
  content: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

.eyebrow,
.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7em;
}

.lead {
  font-size: 1.15rem;
  color: #dbe6f2;
  max-width: 34rem;
}
.lead-sm {
  font-size: 1.08rem;
}

/* ---------- Le héros produit ---------- */

.hero {
  padding: calc(var(--hdr) + 4px) 0 36px;
  background:
    radial-gradient(
      40rem 24rem at 80% 10%,
      rgb(254 65 1 / 12%),
      transparent 60%
    ),
    linear-gradient(180deg, #03142d, var(--night));
}
.hero-grid {
  display: grid;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-visual svg {
  width: 100%;
  height: auto;
}
/* Mobile : l'offre et ses boutons d'abord, le capteur juste dessous. */
.hero-visual {
  order: 1;
}
.hero .hero-gain {
  font-weight: 600;
}
.hero-copy {
  padding: 0 var(--gutter);
}
.hero h1 {
  font-size: clamp(1.9rem, 8.4vw, 4.2rem);
}
.hero .lead {
  font-size: 1.05rem;
}
.hero .eyebrow {
  margin-bottom: 0.45em;
}
.kicker-without {
  color: #ff8a93;
}

/* ---------- Le récit ---------- */

.story {
  position: relative;
  background: linear-gradient(
    180deg,
    #03142d 0%,
    var(--night) 40%,
    var(--night) 100%
  );
  --stage-h: min(100vw, 40vh);
  /* Hauteur de la dernière étape : la scène se décolle avec elle. */
  --last-step-h: calc(100vh - var(--hdr) - var(--stage-h) + 36vh);
}
@supports (height: 1svh) {
  .story {
    --stage-h: min(100vw, 40svh);
    --last-step-h: calc(100svh - var(--hdr) - var(--stage-h) + 36svh);
  }
}

/* Mobile : la marge basse de la scène, annulée dans le flux par celle des
   étapes, la décolle au moment où la dernière étape se met à monter. Sans
   elle, la dernière étape glissait sous la scène restée collée. */
.stage {
  position: sticky;
  top: var(--hdr);
  z-index: 2;
  height: var(--stage-h);
  margin-bottom: var(--last-step-h);
  background: linear-gradient(180deg, #03142d, #0a2a52);
  box-shadow: 0 18px 30px -12px rgb(3 20 45 / 90%);
}

.stage svg {
  width: 100%;
  height: 100%;
}

.steps {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--last-step-h));
}

/* Mobile : chaque étape colle sous la scène, la suivante glisse par dessus.
   Aucun texte ne passe sous la scène, et la scène reste entière. */
.step {
  position: sticky;
  top: calc(var(--hdr) + var(--stage-h));
  min-height: calc(100vh - var(--hdr) - var(--stage-h) + 36vh);
  padding: 18px var(--gutter) 24px;
  background: var(--night);
  border-top: 1px solid var(--night-line);
  box-shadow: 0 -18px 30px -18px rgb(0 8 20 / 90%);
}
@supports (height: 1svh) {
  .step {
    min-height: calc(100svh - var(--hdr) - var(--stage-h) + 36svh);
  }
}
.step > * {
  max-width: 36rem;
}
.step-hero {
  border-top: 0;
  box-shadow: none;
  padding-top: 14px;
}
.step-hero .lead {
  font-size: 1.04rem;
  margin-bottom: 0.6em;
}
.step h2 {
  font-size: clamp(1.55rem, 7vw, 3rem);
}
.step p:not(.kicker):not(.eyebrow) {
  color: #dbe6f2;
  font-size: 1.04rem;
}
.step .kicker,
.step .eyebrow {
  margin-bottom: 0.45em;
}

/* Animations continues de la scène, coupées en mouvement réduit */
.wave {
  animation: wave 2.4s linear infinite;
}
@keyframes wave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(60px);
  }
}
.sensor-figure .wave {
  animation-duration: 2.8s;
}
.beam {
  animation: beam 1.6s ease-out infinite;
}
.beam.b2 {
  animation-delay: 0.25s;
}
.beam.b3 {
  animation-delay: 0.5s;
}
@keyframes beam {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.ring {
  animation: ring 1.1s ease-out infinite;
}
.ring.r2 {
  animation-delay: 0.18s;
}
@keyframes ring {
  0%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
.flow {
  animation: flow 0.9s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -36;
  }
}

/* Eaux usées à l'air libre : quelques filets d'odeur et de rares mouches */
.whiff {
  animation: whiff 3.6s ease-in-out infinite;
}
.whiff.w2 {
  animation-delay: -1.2s;
}
.whiff.w3 {
  animation-delay: -2.4s;
}
@keyframes whiff {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(6px);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-6px);
  }
}
.fly {
  animation: fly 1.3s ease-in-out infinite alternate;
}
.fly.f2 {
  animation-duration: 1.05s;
  animation-delay: -0.4s;
}
.fly.f3 {
  animation-duration: 1.5s;
  animation-delay: -0.8s;
}
@keyframes fly {
  to {
    transform: translate(8px, -6px);
  }
}

/* La pose simple, mise en avant : héros et section capteur */
.ease {
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--brand-ink);
}
.hero .ease {
  color: var(--brand);
}

/* Supports : à qui sert chaque support, dit avant le média */
.kit-dl {
  margin-top: 0.9rem;
}

/* Ce que vous recevez : le kit montré, quelques mots seulement */
.kit-lead {
  margin: 0.3rem 0 1.4rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.kit-show {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.kit-panel {
  margin: 0;
  padding: 1rem 1rem 1.2rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgb(4 28 61 / 8%);
}
.kit-panel-t {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.kit-panel svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.4rem 0 0.6rem;
}
.kit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  font-weight: 600;
  list-style: none;
  counter-reset: kit var(--start, 0);
}
.kit-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  counter-increment: kit;
}
.kit-legend li::before {
  content: counter(kit);
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.8rem;
}
.kit-note {
  margin: 0 0 2.5rem;
  font-weight: 600;
  color: var(--brand-ink);
}
/* Le dévoilement : sans script ou en mouvement réduit, l'état final. */
.kit-art .kit-item,
.kit-art .kit-flap,
.kit-art .kit-lid {
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    opacity 0.5s ease var(--d, 0s);
  transform-box: fill-box;
}
.kit-art .kit-flap {
  transform-origin: 50% 100%;
}
.kit-art .kit-lid {
  opacity: 0;
}
.js .kit-art:not(.is-open) .kit-item {
  transform: translateY(80px);
  opacity: 0;
}
.js .kit-art:not(.is-open) .kit-flap {
  transform: scaleY(0.08);
}
.js .kit-art:not(.is-open) .kit-lid {
  opacity: 1;
}

/* Questions : le détail, accessible et lisible sans script */
.faq {
  padding: 3.5rem 0;
}
.faq details {
  max-width: 46rem;
  border-bottom: 1px solid rgb(4 28 61 / 14%);
}
.faq summary {
  padding: 0.95rem 0;
  font-weight: 600;
  cursor: pointer;
}
.faq details p {
  margin: 0 0 1rem;
}
.kit-title {
  margin: 0 0 1rem;
}

/* ---------- Le capteur ---------- */

.sensor {
  background: var(--app);
  color: var(--ink);
  padding: 72px 0;
}
.sensor h2 {
  color: var(--ink);
}
.sensor .kicker {
  color: var(--brand-ink);
}
.sensor-grid {
  display: grid;
  gap: 28px;
}
.sensor-figure {
  background: var(--night);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 420px;
}
.facts {
  margin: 22px 0;
  border-top: 1px solid #cfdae3;
}
.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #cfdae3;
}
.facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.facts dd {
  margin: 0;
  font-weight: 500;
}
.facts a {
  color: var(--action);
}
.honest {
  background: #fff;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  color: #26405c;
}

/* ---------- Revendeurs ---------- */

.dealers {
  padding: 80px 0;
  background:
    radial-gradient(
      60rem 30rem at 100% 0%,
      rgb(254 65 1 / 14%),
      transparent 60%
    ),
    var(--night);
}
.journey {
  list-style: none;
  margin: 34px 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}
.journey li {
  position: relative;
  padding: 0 0 26px 64px;
}
.journey li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--brand), rgb(254 65 1 / 10%));
}
.journey li:last-child::before {
  display: none;
}
.journey .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  font: 700 1.3rem/1 var(--font-display);
}
.journey h3 {
  margin: 8px 0 6px;
}
.journey p {
  color: #c9d7e6;
  margin: 0;
}
.gains {
  border-top: 1px solid var(--night-line);
  padding-top: 26px;
  display: grid;
  gap: 14px;
  font-size: 1.12rem;
  color: #c9d7e6;
}
.gains p {
  margin: 0;
}
.gains strong {
  color: #fff;
}
.note {
  margin-top: 26px;
  color: var(--on-night-muted);
  font-size: 0.98rem;
}

/* ---------- Supports ---------- */

.kit {
  background: var(--canvas);
  color: var(--ink);
  padding: 80px 0;
}
.kit h2 {
  color: var(--ink);
}
.kit .kicker {
  color: var(--brand-ink);
}
.kit figure {
  margin: 0;
}
.kit figcaption {
  margin-top: 14px;
  color: #26405c;
}
.kit figcaption strong {
  color: var(--ink);
}
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 30px 60px -30px rgb(4 28 61 / 60%);
}
.video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--night);
}

/* ---------- Contact ---------- */

.contact {
  padding: 80px 0 90px;
  background: linear-gradient(180deg, var(--night-2), var(--night));
}
.contact-grid {
  display: grid;
  gap: 28px;
}
.notice {
  background: rgb(254 65 1 / 12%);
  border: 1px solid rgb(254 65 1 / 45%);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  color: #ffe2d6;
}
.form {
  display: grid;
  gap: 16px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 20px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field-row {
  display: grid;
  gap: 16px;
}
.field label {
  font-weight: 600;
  font-size: 0.98rem;
}
.opt {
  font-weight: 400;
  color: var(--on-night-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #36598a;
  background: #0a2546;
  color: #fff;
  font: 400 1rem/1.4 var(--font-body);
  padding: 12px 14px;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}
.field [aria-invalid="true"] {
  border-color: #ff5964;
}
.form-error {
  color: #ffb3b9;
  margin: 0;
}
.recap {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.recap h3 {
  font-size: 1.5rem;
}
.recap pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--app);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font: 400 0.92rem/1.5 var(--font-mono);
  max-height: 18rem;
  overflow: auto;
}
.recap .btn-ghost {
  color: var(--ink);
}
.recap .link-arrow {
  color: var(--ink);
}
.copy-status {
  margin: 10px 0 0;
  min-height: 1.4em;
  color: var(--rest);
  font-weight: 600;
}

/* ---------- Pied ---------- */

.foot {
  border-top: 1px solid var(--night-line);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0));
  color: var(--on-night-muted);
}
.foot-grid {
  display: grid;
  gap: 14px;
}
.foot .brand {
  color: #fff;
}
.foot p {
  margin: 0;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot nav a {
  padding: 6px 0;
}

/* ---------- Page d'erreur ---------- */

.lost {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--hdr) + 40px) var(--gutter) 60px;
}
.lost svg {
  width: 96px;
  margin: 0 auto 24px;
}

/* ---------- Grand écran ---------- */

/* Petits écrans (320 px, barre de défilement comprise) : logo compact,
   « Connexion » entier, appel à l'''action sur deux lignes, cibles de 40 px. */
@media (max-width: 360px) {
  .top {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    flex: none;
    gap: 6px;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .top-nav {
    gap: 10px;
    min-width: 0;
  }
  .top-nav .login {
    flex: none;
    font-size: 0.92rem;
    white-space: nowrap;
  }
  .top-nav .btn-sm {
    flex: none;
    max-width: 6.5rem;
    min-height: 40px;
    padding: 4px 12px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .hide-sm {
    display: inline;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .journey {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .journey li {
    padding: 64px 0 0;
  }
  .journey li::before {
    left: 52px;
    right: -20px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), rgb(254 65 1 / 10%));
  }
  .gains {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 960px) {
  .stage {
    margin-bottom: 0;
  }
  .steps {
    margin-top: 0;
  }
  .hero {
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: calc(var(--hdr) + 32px) 0 56px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 48px;
    max-width: 1520px;
    padding: 0 clamp(32px, 5vw, 80px);
  }
  .hero-copy {
    order: -1;
    padding: 0;
  }
  .hero .lead {
    font-size: 1.2rem;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  }
  .story {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .stage {
    grid-column: 2;
    grid-row: 1;
    height: calc(100svh - var(--hdr));
    box-shadow: none;
    background: transparent;
  }
  .steps {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 30svh clamp(32px, 5vw, 80px);
  }
  .js .step {
    opacity: 0.32;
    transition: opacity 0.35s ease;
  }
  .js .step.is-active {
    opacity: 1;
  }
  .step-hero .lead {
    font-size: 1.15rem;
  }
  .step {
    position: relative;
    top: auto;
    background: none;
    border-top: 0;
    box-shadow: none;
    min-height: 92svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }
  .step-hero {
    min-height: calc(100svh - var(--hdr));
  }
  .sensor-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
  }
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
  .contact-grid .recap {
    grid-column: 2;
  }
  .foot-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .beam,
  .ring {
    opacity: 1;
  }
  .whiff {
    opacity: 0.6;
  }
}

/* La vidéo du héros : un bouton discret, une modale en 16:9 partout */
.hero .btn-ghost {
  color: #fff;
}
.btn-play::before {
  content: "";
  margin-right: 10px;
  border-left: 11px solid var(--brand);
  border-block: 7px solid transparent;
}
.video-dialog {
  width: min(1100px, 92vw, calc((100svh - 110px) * 16 / 9));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-dialog::backdrop {
  background: rgb(2 10 24 / 86%);
}
.video-dialog-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.video-close {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
}
