:root {
  --black: #0a0a0c;
  --black-soft: #101013;
  --black-card: #161619;
  --white: #f4f4f2;
  --white-dim: #a1a1a6;
  --white-faint: #6e6e73;
  --fuchsia: #ec0b8b;
  --fuchsia-soft: #ff3ba7;
  --border: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 24px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  /* clip, pas hidden : hidden crée un conteneur de scroll qui casse position:sticky
     (la salle du hero se barrait au premier scroll au lieu de rester épinglée). */
  overflow-x: clip;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  min-height: 100vh;
}

::selection {
  background: var(--fuchsia);
  color: #fff;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
}

/* Aurora background */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.aurora .a1 {
  background: #ec0b8b;
  width: 620px;
  height: 620px;
  top: -180px;
  left: -140px;
  animation: 26s ease-in-out infinite drift1;
}

.aurora .a2 {
  background: #7a0cff;
  width: 520px;
  height: 520px;
  top: 22%;
  right: -160px;
  opacity: 0.18;
  animation: 30s ease-in-out infinite drift2;
}

.aurora .a3 {
  background: #ff3ba7;
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: 32%;
  opacity: 0.16;
  animation: 34s ease-in-out infinite drift3;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0) scale(1); }
  50% { transform: translate(-100px, 60px) scale(1.1); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0) scale(1); }
  50% { transform: translate(80px, -70px) scale(1.2); }
}

main,
nav,
footer {
  position: relative;
  z-index: 1;
}

/* Site fabric canvas */
.site-fabric {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Scroll spine */
.spine {
  position: fixed;
  top: 14vh;
  bottom: 14vh;
  left: 24px;
  width: 2px;
  z-index: 40;
  pointer-events: none;
}

.spine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.spine-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--fuchsia), var(--fuchsia-soft));
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: 0 0 10px rgba(236, 11, 139, 0.6);
}

.spine-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--fuchsia-soft);
  border-radius: 50%;
  box-shadow: 0 0 14px 3px rgba(255, 59, 167, 0.85);
}

@media (max-width: 900px) {
  .spine {
    display: none;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-70px);
  z-index: 100;
  opacity: 0;
  animation: navDrop 1s var(--ease) 0.15s forwards;
  width: calc(100% - 32px);
  max-width: 840px;
}

@keyframes navDrop {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 14px;
  background: rgba(14, 14, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

nav.scrolled .nav-bar {
  background: rgba(14, 14, 17, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: 14px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  z-index: 2;
  color: var(--white-dim);
  font-size: 14px;
  white-space: nowrap;
  border-radius: 100px;
  padding: 8px 14px;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  pointer-events: none;
  z-index: 1;
  transform: translateX(0);
  width: 0;
  opacity: 0;
  transition: transform 0.38s var(--ease), width 0.38s var(--ease), opacity 0.3s var(--ease);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 9px 16px 9px 18px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--fuchsia);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(236, 11, 139, 0.45);
}

.nav-cta:hover svg {
  transform: translateX(3px);
}

/* Language switcher */
.lang-switch {
  position: relative;
  margin-left: 6px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  color: var(--white-dim);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}

.lang-current:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.lang-current svg {
  width: 14px;
  height: 14px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(14, 14, 17, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--white-dim);
  transition: color 0.2s, background 0.2s;
}

.lang-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.lang-menu a.active {
  color: var(--fuchsia-soft);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  margin-left: 4px;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: rgba(14, 14, 17, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .nav-pill {
    display: none;
  }

  /* Groupe actions cale a droite, burger en dernier (logo … Essayer FR ☰).
     Avant, seul .lang-switch etait pousse a droite et laissait un trou. */
  .nav-cta {
    order: 1;
    margin-left: auto;
  }

  .lang-switch {
    order: 2;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  /* Voile : sans lui le contenu defilait en clair autour de la pilule du nav */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 104px;
    z-index: 99;
    pointer-events: none;
    background: linear-gradient(180deg, var(--black) 32%, rgba(5, 4, 6, 0));
  }
}

/* Les ancres atterrissaient sous le nav fixe */
#features,
#circuit,
#compare,
#pricing,
#demo,
#top {
  scroll-margin-top: 96px;
}

@media (max-width: 420px) {
  .logo-word {
    display: none;
  }

  .nav-cta span {
    display: none;
  }

  .nav-cta {
    padding: 10px;
  }
}

/* Hero intro room */
.room-track {
  position: relative;
  z-index: 6;
  height: 520vh;
  background: #050406;
}

.room-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.room-visuals {
  position: absolute;
  inset: 0;
  background: #050406;
}

.room-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.room-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1200px;
  pointer-events: none;
}

/* Robot flottant — reprend le plan 3D d'origine (6.2 unites a z=-14, camera z=3).
   Tailles en vh : le fov d'origine etant vertical, vh reproduit la projection. */
.room-robot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 37.4vh;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px rgba(236, 11, 139, 0.4));
  animation: room-bob 6.98s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .room-robot { animation: none; }
}

@keyframes room-bob {
  0%, 100% { transform: translate(-50%, calc(-50% - 0.96vh)); }
  50%      { transform: translate(-50%, calc(-50% + 0.96vh)); }
}

/* Panneaux de verre — un par etape, profondeur simulee via la taille (--ph) */
.room-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--pw) * 1vh);
  height: calc(var(--ph) * 1vh);
  font-size: calc(var(--ph) * 1vh);
  padding: 0.09em 0.11em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: 0.135em;
  background: rgba(11, 10, 15, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, -50%) translateX(calc(var(--px) * 1vh)) rotateY(var(--pr));
  will-change: opacity;
}

.room-panel-label {
  color: var(--fuchsia-soft, #ff3ba7);
  font-size: 0.047em;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 0.03em;
}

.room-panel h3 {
  color: #fff;
  font-size: 0.096em;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.035em;
}

.room-panel p {
  color: #e7c9da;
  font-size: 0.051em;
  line-height: 1.33;
  margin: 0;
}

.room-intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050406;
}

.room-intro-logo {
  width: clamp(104px, 12vw, 148px);
  height: auto;
  margin-bottom: 24px;
}

.room-intro-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
}

.room-intro-word {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.room-intro-slogan {
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--white-dim);
  letter-spacing: -0.01em;
  max-width: 520px;
}

.room-intro-hint {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white-faint);
}

.room-intro-hint svg {
  width: 20px;
  height: 20px;
  color: var(--fuchsia-soft);
  animation: 1.8s ease-in-out infinite introBob;
}

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

/* Jusqu'a 1024 px (mobile + iPad) : la scene 3D est remplacee par des cartes
   empilees, comme le faisait .room-mobile dans l'original. Au-dela de cette
   largeur seulement, le cadrage en vh de la scene tient dans l'ecran. */
@media (max-width: 1024px) {
  /* Meme sequence epinglee que sur desktop (la salle avance, les panneaux
     apparaissent l'un apres l'autre). Seule la geometrie change : en portrait,
     un dimensionnement en vh sortait les panneaux de l'ecran. */
  .room-track {
    height: 380vh;
  }

  .room-robot {
    height: auto;
    width: min(58vw, 300px);
  }

  /* Panneau centre et ancre en bas : un seul est visible a la fois,
     donc aucun risque de chevauchement. */
  .room-panel {
    left: 50%;
    top: auto;
    bottom: 13vh;
    width: min(84vw, 440px);
    height: auto;
    font-size: 16px;
    padding: 22px 24px;
    text-align: left;
    border-radius: var(--radius);
    transform: translateX(-50%);
    background: rgba(11, 10, 15, 0.72);
  }

  .room-panel-label {
    font-size: 12px;
    letter-spacing: 0.18em;
    margin-bottom: 9px;
  }

  .room-panel h3 {
    font-size: clamp(21px, 5vw, 27px);
    margin-bottom: 9px;
  }

  .room-panel p {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* Main header content */
main > header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  margin-bottom: 34px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 980px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--fuchsia-soft);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 59, 167, 0.8);
}

h1 {
  font-size: clamp(40px, 8.5vw, 100px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: 12px;
}

.rotator {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  height: 1.05em;
  overflow: hidden;
  transition: width 0.5s var(--ease);
}

.rotator-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease);
}

.rotator-track > span {
  display: block;
  height: 1.05em;
  line-height: 1.05em;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--fuchsia), var(--fuchsia-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  max-width: 640px;
  margin: 26px auto 40px;
  font-size: clamp(17px, 2.4vw, 23px);
  color: var(--white-dim);
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 980px;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--fuchsia);
  color: #fff;
  box-shadow: 0 2px 12px rgba(236, 11, 139, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(236, 11, 139, 0.32);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--white-faint);
}

/* Marquee */
.marquee-wrap {
  width: 100%;
  max-width: 760px;
  margin: 66px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
}

.marquee-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-faint);
  margin-bottom: 18px;
}

.marquee {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: 24s linear infinite scroll;
}

.marquee span {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: var(--white-dim);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  main > header {
    padding: 118px 0 60px;
  }

  .eyebrow {
    margin-bottom: 24px;
    padding: 6px 13px;
    font-size: 12px;
  }

  .sub {
    margin: 22px auto 32px;
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
  }

  .marquee-wrap {
    margin-top: 48px;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section headers */
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fuchsia);
  margin-bottom: 18px;
}

.section-label.center {
  text-align: center;
}

h2 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.section-sub {
  max-width: 600px;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--white-dim);
  line-height: 1.5;
}

.section-sub.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Stats */
.stats {
  background: rgba(16, 16, 19, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 7vw, 80px) 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--white);
}

.stat .lbl {
  margin-top: 8px;
  font-size: 14px;
  color: var(--white-dim);
}

@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }
}

/* Capabilities carousel */
.cap-carousel {
  margin-top: 56px;
}

.cap-viewport {
  display: flex;
  gap: 20px;
  padding: 8px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cap-viewport::-webkit-scrollbar {
  display: none;
}

.glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), inset 0 -1px rgba(0, 0, 0, 0.25), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 42%);
}

.glass::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

.cap-card {
  flex: 0 0 calc(33.333% - 13.333px);
  scroll-snap-align: start;
  padding: 36px 32px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.cap-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.cap-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

.cap-card h3 {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cap-card p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.55;
}

.cap-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
}

.cap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.cap-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.cap-arrow svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
}

.cap-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cap-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
  cursor: pointer;
}

.cap-dot.on {
  width: 24px;
  border-radius: 4px;
  background: var(--fuchsia);
}

@media (max-width: 1000px) {
  .cap-card {
    flex-basis: calc(50% - 10px);
  }
}

@media (max-width: 680px) {
  .cap-card {
    flex-basis: 82%;
    padding: 30px 26px;
  }

  .cap-controls {
    gap: 16px;
    margin-top: 26px;
  }
}

/* Circuit */
.circuit-sec {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.circuit-stage {
  display: flex;
  justify-content: center;
  margin-top: 46px;
  max-width: 100%;
  overflow: hidden;
}

.circuit-svg {
  width: 100%;
  max-width: 640px;
  height: auto;
}

@media (max-width: 680px) {
  .circuit-svg {
    max-width: 100%;
  }
}

/* Video section */
.video-sec {
  border-bottom: 1px solid var(--border);
}

.video-frame {
  max-width: 960px;
  margin: 52px auto 0;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .video-frame {
    border-radius: 16px;
    margin-top: 38px;
  }
}

/* Devices */
.devices-sec {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.devices-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 820px;
  margin: 64px auto 0;
}

.macbook {
  width: min(720px, 100%);
  position: relative;
}

.mb-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border: 12px solid #17171b;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.mb-base {
  position: relative;
  height: 16px;
  margin: 0 -26px;
  background: linear-gradient(#202024, #0e0e11);
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.08), 0 20px 30px rgba(0, 0, 0, 0.4);
}

.mb-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 8px;
  background: #0a0a0c;
  border-radius: 0 0 9px 9px;
}

.mb-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.iphone {
  position: absolute;
  bottom: -14px;
  right: 2%;
  z-index: 3;
  width: min(178px, 25%);
  aspect-ratio: 9 / 19.3;
  background: #000;
  border: 9px solid #17171b;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.ip-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 58px;
  height: 17px;
  background: #000;
  border-radius: 12px;
}

.ip-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.app {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0, rgba(236, 11, 139, 0.1), transparent 55%), #0b0b0e;
  color: var(--white);
  font-size: 12px;
}

.app-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: block;
}

.app-mobile {
  display: flex;
  flex-direction: column;
  padding: 34px 14px 14px;
}

.appm-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.appm-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px;
  background: linear-gradient(150deg, rgba(236, 11, 139, 0.14), var(--black-card));
  border: 1px solid rgba(236, 11, 139, 0.4);
  border-radius: 13px;
}

.appm-note b {
  display: block;
  font-size: 12px;
}

.appm-note span {
  font-size: 10.5px;
  color: var(--white-dim);
}

.appm-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.appm-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  font-size: 11px;
  color: var(--white-dim);
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.appm-row .dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--fuchsia-soft);
  border-radius: 50%;
}

.appm-input {
  margin-top: 12px;
  padding: 10px 13px;
  font-size: 11px;
  color: var(--white-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.chk {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  color: var(--white-faint);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.chk.on {
  color: var(--fuchsia-soft);
  background: rgba(236, 11, 139, 0.22);
}

@media (max-width: 560px) {
  .devices-stage {
    flex-direction: column;
    align-items: center;
  }

  .iphone {
    position: relative;
    bottom: auto;
    right: auto;
    width: 62%;
    margin-top: 22px;
    border-radius: 30px;
  }
}

/* Statement */
.statement {
  text-align: center;
}

.statement .big {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(30px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.statement .big .accent {
  background: linear-gradient(120deg, var(--fuchsia), var(--fuchsia-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Compare */
.compare {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
}

.comp {
  padding: 32px 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
}

.comp.them {
  background: rgba(255, 255, 255, 0.02);
}

.comp.us {
  background: linear-gradient(160deg, rgba(236, 11, 139, 0.1), var(--black-card));
  border-color: rgba(236, 11, 139, 0.35);
}

.comp h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.comp ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.comp li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--white-dim);
}

.comp li b {
  color: var(--white);
  font-weight: 500;
}

.mark-c {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  font-size: 12px;
  border-radius: 50%;
}

.mark-c.no {
  color: var(--white-faint);
  background: rgba(255, 255, 255, 0.06);
}

.mark-c.yes {
  color: var(--fuchsia-soft);
  background: rgba(236, 11, 139, 0.18);
}

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

/* Steps split */
.split-track {
  position: relative;
  height: 320vh;
  /* annule le padding generique de section : il rognait la course du sticky,
     qui decrochait vers 90 % et faisait passer le titre sous le nav */
  padding: 0;
}

.split-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 54px;
  padding: 0 24px;
  overflow: hidden;
}

.split-heading {
  text-align: center;
}

.split-heading .section-sub {
  margin: 0 auto;
}

.split-row {
  display: flex;
  gap: 22px;
  perspective: 1600px;
}

.split-card {
  width: clamp(240px, 26vw, 320px);
  height: clamp(320px, 42vh, 400px);
}

.split-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.split-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
}

.split-front {
  justify-content: center;
  align-items: center;
  background: var(--black-card);
  border: 1px solid var(--border);
}

.split-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 11vw, 128px);
  height: clamp(90px, 11vw, 128px);
  background: linear-gradient(150deg, rgba(236, 11, 139, 0.16), rgba(236, 11, 139, 0.04));
  border: 1px solid rgba(236, 11, 139, 0.35);
  border-radius: 28px;
  box-shadow: 0 0 40px rgba(236, 11, 139, 0.18);
}

.split-icon svg {
  width: 46%;
  height: 46%;
  color: var(--fuchsia-soft);
}

.split-back {
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 30px;
  background: linear-gradient(165deg, rgba(236, 11, 139, 0.14), var(--black-card));
  border: 1px solid rgba(236, 11, 139, 0.4);
  transform: rotateY(180deg);
}

.split-step {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fuchsia);
}

.split-back h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.split-back p {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .split-track {
    height: auto;
    padding: clamp(72px, 10vw, 140px) 0;
  }

  .split-sticky {
    position: relative;
    height: auto;
    gap: 40px;
    padding: 0 18px;
  }

  .split-row {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 420px;
  }

  /* En colonne, chaque carte se retourne quand elle entre dans l'ecran.
     L'original gardait les 3 cartes en ligne a 28vw, illisible sur telephone. */
  .split-inner {
    transition: transform 0.9s var(--ease);
  }

  .split-card.is-flipped .split-inner {
    transform: rotateY(180deg);
  }

  .split-card {
    width: 100%;
    height: auto;
    /* 3/4 laissait un grand vide au-dessus des 3 lignes de texte */
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }

  .split-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .split-back {
    padding: 22px 20px;
  }

  .split-back h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .split-back p {
    font-size: 14px;
  }

  .split-step {
    font-size: 11px;
    margin-bottom: 8px;
  }
}

/* Pricing */
#pricing {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 38px 32px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.plan:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.plan.pop {
  position: relative;
  background: linear-gradient(170deg, rgba(236, 11, 139, 0.1), var(--black-card));
  border-color: rgba(236, 11, 139, 0.5);
}

.plan.pop .tag {
  position: absolute;
  top: -12px;
  left: 30px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--fuchsia);
  border-radius: 980px;
}

.plan .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white-dim);
}

.plan-tagline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--white-faint);
}

.plan .amt {
  margin: 14px 0 4px;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.plan .amt span {
  font-size: 16px;
  font-weight: 400;
  color: var(--white-faint);
  /* le -0.04em du montant collait le suffixe au prix */
  margin-left: 6px;
  letter-spacing: 0;
}

.plan ul {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  margin: 24px 0 30px;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--white-dim);
}

.plan li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--fuchsia-soft);
}

.plan .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) and (min-width: 761px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .plan {
    padding: 30px 24px;
  }

  .plan .amt {
    font-size: 40px;
  }
}

@media (max-width: 860px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Final CTA */
.final {
  text-align: center;
}

.final-inner {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 40px;
  background: radial-gradient(circle at 50% -10%, rgba(236, 11, 139, 0.14), transparent 55%), var(--black-card);
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
}

.final h2 {
  margin-bottom: 22px;
}

.final .section-sub {
  margin: 0 auto 36px;
}

@media (max-width: 640px) {
  .final-inner {
    border-radius: 26px;
    padding: 56px 24px;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

footer .logo {
  font-size: 16px;
}

footer p {
  font-size: 13px;
  color: var(--white-faint);
}

footer .flinks {
  display: flex;
  gap: 26px;
}

footer .flinks a {
  font-size: 13px;
  color: var(--white-dim);
  transition: color 0.25s;
}

footer .flinks a:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  footer .wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  footer .flinks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}

/* Try page */
.try-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.try-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 0;
}

.try-top-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* Retour + selecteur de langue groupes a droite : avant, le selecteur etait
   en position absolue et se superposait au lien Retour. */
.try-top-in .try-back {
  margin-left: auto;
}

.try-back {
  font-size: 14px;
  color: var(--white-dim);
  transition: color 0.25s var(--ease);
}

.try-back:hover {
  color: var(--white);
}

.try-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 60px;
}

.try-card {
  width: 100%;
  max-width: 480px;
  padding: 46px 40px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.try-h1 {
  text-align: center;
  margin: 10px 0 14px;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.try-sub {
  text-align: center;
  margin-bottom: 34px;
  font-size: 16px;
  color: var(--white-dim);
  line-height: 1.55;
}

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

.try-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.try-field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-dim);
}

.try-field input {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.try-field input::placeholder {
  color: var(--white-faint);
}

.try-field input:focus {
  border-color: var(--fuchsia);
  background: rgba(236, 11, 139, 0.06);
}

.try-btn {
  margin-top: 8px;
}

.try-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.try-note {
  text-align: center;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--white-faint);
}

.try-sent {
  text-align: center;
  font-size: 14px;
  color: var(--fuchsia-soft);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .try-top {
    padding: 18px 0;
  }

  .try-card {
    padding: 38px 24px;
    border-radius: 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .aurora span,
  .marquee,
  .room-intro-hint svg {
    animation: none !important;
  }
}

/* Helpers */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  .wrap {
    padding: 0 18px;
  }

  .nav-cta {
    padding: 10px;
  }
}
