/* ==========================================================
   Haldenshop — feuille de style
   Couleurs et polices réglables dans :root
   ========================================================== */

:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #5C5C5C;
  --line: #E2E2E2;
  --soft: #F4F4F4;
  --accent: #2B4BFF;          /* couleur vive : change-la ici */
  --error: #C4231A;

  --font: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); }
a:hover { color: var(--muted); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Accessibilité ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

::selection { background: var(--accent); color: #FFFFFF; }

section[id] { scroll-margin-top: 96px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__cta {
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- Introduction ---------- */

.intro { padding-top: clamp(40px, 6vw, 76px); }

.intro__title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: .98;
  text-wrap: balance;
}

.intro__lead {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  max-width: 58ch;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 3.2vw, 36px);
}

.intro__more {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.intro__more:hover { color: var(--muted); border-color: var(--muted); }

.intro__title,
.intro__lead,
.intro__actions {
  animation: rise .8s var(--ease) both;
}
.intro__title { animation-delay: .06s; }
.intro__lead { animation-delay: .12s; }
.intro__actions { animation-delay: .18s; }

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.intro__copy { min-width: 0; }

.intro__visual {
  position: relative;
  min-width: 0;
  perspective: 1200px;
  perspective-origin: 55% 45%;
  animation: rise .9s var(--ease) both;
  animation-delay: .2s;
}

.intro__visual::before {
  content: "";
  position: absolute;
  inset: -18px -14px;
  z-index: 0;
  border-radius: 24px;
  background-image: radial-gradient(#D6D6D6 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
}

/* Mockup de site */

.showcase {
  --shift-x: 18px;
  --shift-y: -8px;
  --tilt-x: 6deg;
  --tilt-y: -14deg;
  --tilt-z: -6deg;
  position: relative;
  z-index: 1;
  transform:
    translate(var(--shift-x), var(--shift-y))
    rotateX(calc(var(--tilt-x) + var(--parallax-x, 0deg)))
    rotateY(calc(var(--tilt-y) + var(--parallax-y, 0deg)))
    rotateZ(var(--tilt-z));
  transform-style: preserve-3d;
  transform-origin: 55% 45%;
  transition: transform .35s var(--ease);
  will-change: transform;
}

.showcase__browser {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(10, 10, 10, .12), 0 2px 4px rgba(10, 10, 10, .04);
  animation: float 9s ease-in-out infinite;
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #FCFCFC;
}

.showcase__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D8D8D8;
}
.showcase__dot:first-child { background: var(--ink); }

.showcase__url {
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font: 10px var(--mono);
}

.showcase__page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.showcase__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase__mark {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--ink);
  color: #FFFFFF;
  font: 700 11px var(--font);
}

.showcase__links { display: flex; gap: 6px; }
.showcase__links i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #E6E6E6;
}

.showcase__hero {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.showcase__kicker {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.showcase__headline {
  width: 88%;
  height: 13px;
  border-radius: 3px;
  background: var(--ink);
}
.showcase__headline--short { width: 62%; }

.showcase__text {
  width: 72%;
  height: 5px;
  border-radius: 2px;
  background: #E6E6E6;
}
.showcase__text--short { width: 46%; }

.showcase__cta {
  width: 62px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--accent);
}

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

.showcase__card {
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  background: var(--soft);
}
.showcase__card i {
  display: block;
  width: 72%;
  height: 4px;
  border-radius: 2px;
  background: #DBDBDB;
}
.showcase__card i + i { width: 44%; }
.showcase__card--accent { background: var(--accent); }
.showcase__card--accent i { background: rgba(255, 255, 255, .9); }

.showcase__sticker {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font: 900 18px var(--font);
  transform: translateZ(70px) rotate(8deg);
  box-shadow: 0 12px 24px rgba(10, 10, 10, .18);
}

.showcase__badge {
  position: absolute;
  left: -20px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FFFFFF;
  box-shadow: 0 16px 34px rgba(10, 10, 10, .14);
  transform: translateZ(48px);
  animation: float 9s ease-in-out infinite reverse;
  animation-delay: -2.5s;
}

.showcase__badge-mark {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font: 700 11px var(--font);
}

.showcase__badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  font-weight: 700;
}
.showcase__badge-text small {
  font: 400 9px var(--mono);
  color: var(--muted);
}

/* ---------- Produits ---------- */

.services-section { padding-top: clamp(64px, 9vw, 96px); }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .35s var(--ease);
}
.tile:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-4px);
}
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.tile__demo {
  height: 200px;
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
}

/* Sans JS : les démos tournent. Avec JS : elles se lancent dès qu’on les voit */
.js .tile:not(.is-inview) .tile__demo *,
.js .tile:not(.is-inview) .tile__demo *::before,
.js .tile:not(.is-inview) .tile__demo *::after {
  animation: none !important;
}
.js .tile:not(.is-inview) .build { transform: scaleX(0); }
.js .tile:not(.is-inview) .msg,
.js .tile:not(.is-inview) .lfill,
.js .tile:not(.is-inview) .variant,
.js .tile:not(.is-inview) .pen {
  opacity: 0;
}
.js .tile:not(.is-inview) .tabs__ind { transform: translateX(0); }
.js .tile:not(.is-inview) .frame { width: 100%; }
.js .tile:not(.is-inview) .frame__words { transform: translateY(0); }

.tile__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tile__text { display: flex; flex-direction: column; gap: 6px; }
.tile__num { font: 12px var(--mono); color: var(--muted); }
.tile__title { font-size: 28px; font-weight: 900; letter-spacing: -0.035em; }
.tile__desc { font-size: 15px; color: var(--muted); }

.tile__arrow {
  font-size: 26px;
  transition: transform .35s var(--ease);
}
.tile:hover .tile__arrow { transform: translateX(8px); }

/* Démo : site web */

.demo-site { padding: 18px; display: flex; }

.browser {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.browser__bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.browser__bar span { width: 7px; height: 7px; border-radius: 50%; background: #BDBDBD; }
.browser__bar span:first-child { background: var(--ink); }

.browser__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.browser__cols {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.build {
  border-radius: 4px;
  transform-origin: left center;
  animation: build 6s cubic-bezier(.6, 0, .2, 1) infinite;
}
.build--title { height: 10px; width: 40%; background: var(--ink); border-radius: 3px; }
.build--banner { height: 46px; background: var(--accent); }
.build--col { background: var(--line); }

/* Démo : bot Discord */

.demo-bot {
  display: flex;
  flex-direction: column;
  background: #2B2D31;
  color: #DBDEE1;
  font-size: 12px;
}

.chan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #1F2023;
  font-weight: 700;
  color: #F2F3F5;
}
.chan__hash { color: #80848E; font-size: 16px; font-weight: 400; line-height: 1; }

.chat {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px 4px;
}

.msg {
  display: flex;
  gap: 8px;
  animation: chat 7s var(--ease) infinite;
}

.msg__avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
}

.msg__body {
  min-width: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg__name { font-weight: 700; color: #F2F3F5; }
.msg__time { color: #949BA4; font-size: 10px; }

.cmd {
  font: 11px var(--mono);
  background: #3F4378;
  color: #DDE1FF;
  padding: 1px 5px;
  border-radius: 3px;
}

.badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: 1px;
}

.embed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
  background: #232428;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.embed strong { color: #F2F3F5; }
.embed span { color: #B5BAC1; }

/* Démo : réponse /help */

.msg__body--line {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.embed--help {
  gap: 2px;
  padding: 4px 8px;
}

.embed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.2;
}

.embed .embed__count {
  padding: 0 4px;
  border-radius: 3px;
  background: #3F4378;
  color: #DDE1FF;
  font: 9px var(--mono);
}

.embed__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.embed .embed__cat {
  color: #949BA4;
  font-size: 9px;
  white-space: nowrap;
}

.embed__cmds {
  display: flex;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.embed .embed__cmd {
  padding: 0 3px;
  border-radius: 2px;
  background: #3F4378;
  color: #DDE1FF;
  font: 9px/1.25 var(--mono);
  white-space: nowrap;
}

.typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px 6px;
  color: #949BA4;
  font-size: 10px;
}
.typing b { color: #DBDEE1; }
.typing__dots { display: flex; gap: 2px; }
.typing__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #B5BAC1;
  animation: dot 1s ease-in-out infinite;
}

/* Démo : logo */

.demo-logo { padding: 14px; display: flex; gap: 10px; }

.artboard {
  position: relative;
  flex-grow: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF radial-gradient(#DADADA 1px, transparent 1px) 0 0 / 12px 12px;
}

.artboard__name {
  position: absolute;
  left: 8px;
  top: 6px;
  font: 10px var(--mono);
  color: var(--muted);
}

.lfill { fill: var(--accent); animation: lfill 6s ease-in-out infinite; }
.pen { animation: pen 6s cubic-bezier(.6, 0, .3, 1) infinite; }

.variants {
  width: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.variant {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  animation: vpop 6s cubic-bezier(.3, 1.4, .5, 1) infinite;
}
.variant--dark { background: var(--ink); }
.variant--accent { background: var(--accent); }
.variant--light { background: #FFFFFF; border: 1px solid var(--line); }

/* Démo : graphisme */

.demo-gfx { padding: 14px; display: flex; flex-direction: column; gap: 12px; }

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  background: #E6E6E6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.tabs > span:not(.tabs__ind) { position: relative; padding: 5px 0; }

.tabs__ind {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  background: #FFFFFF;
  border: 1px solid var(--ink);
  border-radius: 999px;
  animation: tab 7.5s cubic-bezier(.7, 0, .3, 1) infinite;
}

.stage { flex-grow: 1; display: flex; align-items: center; justify-content: center; }

.frame {
  position: relative;
  width: 100%;
  height: 132px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--accent);
  animation: frame 7.5s cubic-bezier(.7, 0, .3, 1) infinite;
}

.photo {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 50px;
  height: 50px;
  background: var(--ink);
  border: 3px solid #FFFFFF;
  transform: rotate(-6deg);
  animation: tilt 3.75s ease-in-out infinite;
}

.frame__title {
  position: absolute;
  left: 12px;
  bottom: 10px;
  height: 24px;
  overflow: hidden;
}

.frame__words {
  display: flex;
  flex-direction: column;
  animation: swap3 7.5s cubic-bezier(.7, 0, .3, 1) infinite;
}
.frame__words span {
  height: 24px;
  line-height: 24px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

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

.section { padding-top: 128px; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section__title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section__meta { font: 13px var(--mono); color: var(--muted); }

/* ---------- Comment ça marche ---------- */

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

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 36px 28px 36px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * .12s);
}

.step:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.step:nth-child(even) { padding-left: 40px; }

.js .step:not(.is-inview) {
  opacity: 0;
  transform: translateY(28px);
}

.step__num {
  position: relative;
  flex-shrink: 0;
  font: 14px var(--mono);
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-top: 6px;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  transition-delay: calc(var(--i, 0) * .12s + .05s);
}
.js .step:not(.is-inview) .step__num {
  opacity: 0;
  transform: translateY(10px);
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.step__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.step__text {
  margin: 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * .12s + .1s);
}
.js .step:not(.is-inview) .step__text {
  opacity: 0;
  transform: translateY(8px);
}

.step__body::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 72px;
  height: 2px;
  margin-top: 6px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * .12s + .2s);
}
.js .step.is-inview .step__body::after {
  transform: scaleX(1);
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font: 400 22px/1 var(--mono);
  color: var(--muted);
  transition: transform .3s var(--ease), color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--accent); }

.faq__item p {
  margin: 0;
  padding: 0 0 24px;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.faq__more { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.faq__more a { color: var(--ink); font-weight: 700; }

/* ---------- Devis ---------- */

.quote {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding: clamp(8px, 2vw, 16px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.quote__intro {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote__title {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.quote__lead {
  margin: 0;
  max-width: 420px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.quote__contacts {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 14px var(--mono);
}

.form {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.choices { display: flex; flex-wrap: wrap; gap: 8px; }

.choice { position: relative; }
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.choice span:hover { background: var(--soft); }
.choice input:checked + span { background: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

.form__hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

.lbl { font-size: 15px; font-weight: 700; }

.input {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: 16px var(--font);
}
textarea.input { resize: vertical; }
input.input { min-height: 52px; padding-block: 0; }
.input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--error); }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font: 700 18px var(--font);
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.btn--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
  text-decoration: none;
}

.form__status { margin: 0; min-height: 1.5em; font-size: 15px; }
.form__status.is-error { color: var(--error); }

.form__note { margin: -6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Pied de page ---------- */

.footer {
  padding-top: 96px;
  padding-bottom: 32px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font: 13px var(--mono);
  color: var(--muted);
}

.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a,
.footer__top { text-decoration: none; }
.footer__nav a:hover,
.footer__top:hover { color: var(--ink); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Apparition au défilement ---------- */

.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(48px); }

@supports (animation-timeline: view()) {
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .reveal {
    transition: none;
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* Entrée d’abord, puis boucle — visibles dès que la carte apparaît */
@keyframes build {
  0% { transform: scaleX(0); }
  14%, 62% { transform: scaleX(1); }
  74%, 80% { transform: scaleX(0); }
  94%, 100% { transform: scaleX(1); }
}
@keyframes chat {
  0% { opacity: 0; transform: translateY(10px); }
  12%, 60% { opacity: 1; transform: translateY(0); }
  70%, 82% { opacity: 0; transform: translateY(8px); }
  92%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes lfill {
  0%, 8% { opacity: 0; }
  22%, 55% { opacity: 1; }
  65%, 80% { opacity: 0; }
  92%, 100% { opacity: 1; }
}
@keyframes pen {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate(0, 0); }
  68% { transform: translate(-2px, 56px); }
  86% { transform: translate(-46px, 40px); }
  100% { transform: translate(0, 0); }
}
@keyframes vpop {
  0% { opacity: 0; transform: scale(.7); }
  14%, 60% { opacity: 1; transform: scale(1); }
  70%, 82% { opacity: 0; transform: scale(.7); }
  92%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes tab { 0%, 28% { transform: translateX(0); } 33%, 61% { transform: translateX(100%); } 66%, 94% { transform: translateX(200%); } 100% { transform: translateX(0); } }
@keyframes frame { 0%, 28% { width: 100%; } 33%, 61% { width: 64%; } 66%, 94% { width: 42%; } 100% { width: 100%; } }
@keyframes swap3 { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-24px); } 66%, 94% { transform: translateY(-48px); } 100% { transform: translateY(0); } }
@keyframes tilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .js .step:not(.is-inview),
  .js .step:not(.is-inview) .step__num,
  .js .step:not(.is-inview) .step__text {
    opacity: 1;
    transform: none;
  }
  .step__body::after { transform: scaleX(1); }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 1420px) {
  .showcase {
    --shift-x: 4px;
    --shift-y: -4px;
    --tilt-x: 4deg;
    --tilt-y: -10deg;
    --tilt-z: -4deg;
  }
}

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .intro__visual { max-width: 520px; }
  .showcase {
    --shift-x: 0px;
    --shift-y: 0px;
    --tilt-x: 3deg;
    --tilt-y: -6deg;
    --tilt-z: -3deg;
  }
}

@media (max-width: 720px) {
  .section { padding-top: 88px; }
  .footer { padding-top: 72px; }
  .showcase {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --tilt-z: 0deg;
  }
  .showcase__sticker,
  .showcase__badge { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(odd),
  .step:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header__inner { padding-block: 12px; }
  .brand__name { font-size: 18px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav a[href="#process"] { display: none; }
  .nav__cta { padding: 0 14px; }
  section[id] { scroll-margin-top: 76px; }
  .intro { padding-top: 32px; }
  .intro__title { max-width: 13ch; }
  .quote { gap: 32px; }
  .tile__title { font-size: 26px; }
  .footer__row { font-size: 12px; }
}
