/* ══════════════════════════════════════════════════════════════
   UpTeam — Design system
   Gris bleuté · verre liquide · alternance clair / obscur · grain
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces sombres : un gris bleuté, pas un bleu nuit.
     --night-rgb sert aux dégradés qui doivent s'éteindre dans le fond. */
  --night:      #272d38;
  --night-deep: #1f242d;
  --night-rgb:  39, 45, 56;
  /* Panneaux en creux posés sur --night : plus sombres, même famille */
  --sink-rgb:   24, 28, 35;
  --day:        #f8f9fa;
  --day-2:      #f1f4f9;

  --ink:        #161d28;

  --blue:       #3b7ddd;
  --blue-light: #6fa7ff;
  --teal:       #2fb8ab;
  --accent:     #3b7ddd;
  --accent2:    #6fa7ff;

  --radius-xl: 44px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --wrap: 1240px;
  --nav-h: 68px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

@property --oa {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

html {
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

html:not(.motion) { scroll-behavior: smooth; }

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--night);
  color: #eef2fa;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
  letter-spacing: -.019em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { display: block; }
::selection { background: rgba(59, 125, 221, .3); }

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(22px, 4.4vw, 56px);
}

.film {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .042;
}

/* ══════════ TYPOGRAPHIE ══════════ */
/* L'approche négative resserre aussi l'espace-mot : on la modère et on rend
   au mot l'air qu'on lui a pris, sinon les mots se collent en grande taille. */
.display {
  font-size: clamp(50px, 7.6vw, 118px);
  font-weight: 680;
  line-height: .94;
  letter-spacing: -.036em;
  word-spacing: .045em;
}

.title {
  font-size: clamp(40px, 5.6vw, 82px);
  font-weight: 660;
  line-height: .99;
  letter-spacing: -.034em;
  word-spacing: .04em;
}

.muted { color: #7b88a2; font-weight: 480; }

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 420;
  line-height: 1.5;
  color: #a4b0c6;
  letter-spacing: -.024em;
}

.body {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: #a4b0c6;
}

/* ══════════ BOUTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding-inline: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -.018em;
  white-space: nowrap;
  transition: transform .5s var(--ease), background .35s ease, box-shadow .5s var(--ease), color .35s ease;
}

.btn-sm { min-height: 42px; padding-inline: 20px; font-size: 13.5px; }

.btn-light {
  background: #f7f9fd;
  color: var(--ink);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .7);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .8); }

.btn-dark {
  background: var(--night);
  color: #fff;
  box-shadow: 0 14px 40px -18px rgba(10, 19, 36, .45);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -18px rgba(10, 19, 36, .55); }

/* Retour tactile : le bouton s'enfonce, plus vite qu'il ne se relève */
.btn:active {
  transform: translateY(0) scale(.978);
  transition-duration: .09s;
}

/* Anneau de focus visible uniquement au clavier, sur toute la page */
:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.nav-burger:focus-visible { outline-offset: 4px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 520;
  color: #c3cee2;
}
.link::after {
  content: "→";
  color: var(--blue-light);
  transition: transform .45s var(--ease);
}
.link:hover::after { transform: translateX(4px); }

.btn:focus-visible { border-radius: 999px; }

/* ══════════ ATOMES RÉPÉTÉS ══════════
   Numéros d'étape, pastilles et liens dans le texte :
   une définition, toutes les pages. */

.p-num {
  font-size: 11px;
  font-weight: 620;
  letter-spacing: .12em;
  color: #8b96a9;
}
.is-dark .p-num,
.method-dark .p-num { color: var(--blue-light); }

.p-tag {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid rgba(111, 167, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  white-space: nowrap;
}

.body a:not(.btn):not(.link),
.inline-more a,
.combo-note a,
.about-block a,
.apps-cta a,
.benefit a,
.legal-body a {
  color: var(--blue);
  border-bottom: 1px solid rgba(59, 125, 221, .3);
}
.is-dark .body a:not(.btn):not(.link),
.is-dark .inline-more a,
.is-dark .combo-note a,
.is-dark .benefit a {
  color: var(--blue-light);
  border-bottom-color: rgba(111, 167, 255, .32);
}
.body a:not(.btn):not(.link):hover,
.inline-more a:hover,
.combo-note a:hover,
.about-block a:hover,
.apps-cta a:hover,
.benefit a:hover,
.legal-body a:hover { border-bottom-color: currentColor; }

/* ══════════ NAVIGATION ══════════ */
.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 800;
  padding-inline: clamp(14px, 3vw, 30px);
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(100%, 1180px);
  min-height: 56px;
  margin-inline: auto;
  padding: 6px 6px 6px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  pointer-events: auto;
  transition: background .5s var(--ease-soft), border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}

.nav.is-stuck .nav-inner {
  background: rgba(var(--sink-rgb), .62);
  border-color: rgba(255, 255, 255, .11);
  box-shadow: 0 20px 60px -28px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.nav.on-light .nav-inner { color: var(--ink); }
.nav.on-light.is-stuck .nav-inner {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(10, 18, 38, .09);
  box-shadow: 0 20px 50px -30px rgba(10, 18, 38, .45), inset 0 1px 0 #fff;
}
.nav.on-light .btn-light { background: var(--night); color: #fff; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 660;
  letter-spacing: -.04em;
}
.brand svg { width: 24px; height: 24px; overflow: visible; }
.brand path { fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; }

.nav-menu { display: flex; gap: 30px; font-size: 13.5px; font-weight: 500; }
.nav-menu a { position: relative; color: currentColor; opacity: .62; transition: opacity .3s ease; }
.nav-menu a:hover, .nav-menu a.is-on { opacity: 1; }
/* Souligné qui se déploie depuis le centre */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .42s var(--ease-soft);
}
.nav-menu a.is-on::after,
.nav-menu a:hover::after { transform: scaleX(1); }

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

/* ── Bouton burger : deux barres qui se croisent ── */
.nav-burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: currentColor;
  cursor: pointer;
  transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
.nav.on-light .nav-burger { border-color: rgba(10, 18, 38, .12); background: rgba(10, 18, 38, .05); }
.nav-burger:hover { background: rgba(255, 255, 255, .12); }

.nav-burger-bars {
  position: relative;
  display: block;
  width: 17px;
  height: 11px;
}
.nav-burger-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .44s var(--ease-soft), opacity .3s ease;
}
.nav-burger-bars i:first-child { top: 0; }
.nav-burger-bars i:last-child  { bottom: 0; }

.nav-open .nav-burger-bars i:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav-open .nav-burger-bars i:last-child  { transform: translateY(-4.75px) rotate(-45deg); }

/* ── Panneau déroulant ── */
.nav-panel {
  position: absolute;
  left: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 30px);
  top: calc(100% + 10px);
  z-index: 810;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background: rgba(var(--sink-rgb), .88);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: #eef2fa;
  /* Replié : retiré du flux clavier via visibility */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(.98);
  transform-origin: 50% 0;
  transition:
    opacity .4s var(--ease-soft),
    transform .5s var(--ease-soft),
    visibility .4s linear;
}
.nav-open .nav-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nav-panel-links { display: grid; }
.nav-panel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 14px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -.03em;
  color: #eef2fa;
  transition: background .28s ease;
}
.nav-panel-links a + a { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.nav-panel-links a:hover { background: rgba(255, 255, 255, .06); }
.nav-panel-links a.is-on { color: var(--blue-light); }
.nav-panel-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  opacity: .4;
  transition: transform .34s var(--ease-soft);
}
.nav-panel-links a:hover svg { transform: translateX(3px); }

/* Chaque lien entre en cascade quand le panneau s'ouvre */
.nav-panel-links a,
.nav-panel-foot { opacity: 0; transform: translateY(10px); transition: opacity .44s var(--ease-soft), transform .44s var(--ease-soft); }
.nav-open .nav-panel-links a,
.nav-open .nav-panel-foot { opacity: 1; transform: none; }
.nav-open .nav-panel-links a:nth-child(1) { transition-delay: .07s; }
.nav-open .nav-panel-links a:nth-child(2) { transition-delay: .12s; }
.nav-open .nav-panel-links a:nth-child(3) { transition-delay: .17s; }
.nav-open .nav-panel-links a:nth-child(4) { transition-delay: .22s; }
.nav-open .nav-panel-foot { transition-delay: .27s; }

.nav-panel-foot {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  text-align: center;
}
.nav-panel-foot .btn { width: 100%; }
.nav-panel-mail { font-size: 13.5px; color: #97a4bb; }
.nav-panel-mail:hover { color: #eef2fa; }

/* Voile de fond : ferme au toucher hors du panneau */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 790;
  border: 0;
  background: rgba(4, 9, 20, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  cursor: default;
  transition: opacity .4s var(--ease-soft), visibility .4s linear;
}
.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* Bascule burger / menu horizontal */
@media (max-width: 940px) {
  .nav-menu { display: none; }
  .nav-burger { display: grid; }
  .nav-inner { gap: 12px; padding-right: 6px; }
  .nav-cta { display: none; }
  /* Fond systématique : le panneau doit toujours se détacher de la page */
  .nav .nav-inner {
    background: rgba(var(--sink-rgb), .62);
    border-color: rgba(255, 255, 255, .11);
    box-shadow: 0 20px 60px -28px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
  }
  .nav.on-light .nav-inner {
    background: rgba(255, 255, 255, .68);
    border-color: rgba(10, 18, 38, .1);
    box-shadow: 0 20px 50px -30px rgba(10, 18, 38, .45), inset 0 1px 0 #fff;
  }
}
@media (min-width: 941px) {
  .nav-panel, .nav-scrim { display: none; }
}

/* ══════════ SECTIONS & ALTERNANCE ══════════ */
.section {
  position: relative;
  padding-block: clamp(110px, 14vw, 190px);
}

.section > .wrap { position: relative; z-index: 2; }

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .5;
  mix-blend-mode: overlay;
}

.is-dark {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(31, 84, 168, .16), transparent 60%),
    var(--night);
  color: #eef2fa;
}

.is-light {
  /* Groupe isolé : sans ça, le grain en multiply se mélange à la section
     sombre recouverte par .rise — au scroll, le compositeur peint du noir. */
  isolation: isolate;
  color-scheme: light;
  background:
    radial-gradient(110% 75% at 50% -5%, rgba(59, 125, 221, .08), transparent 58%),
    var(--day);
  color: var(--ink);
}

/* Fonds clairs : grain plus franc, pour éviter l'aplat imprimé sans matière.
   Sur les fonds sombres, la base gris bleuté suffit à révéler le grain : c'est
   l'overlay qui gagne en effet, pas l'opacité qui change. */
.is-light::before { opacity: .85; mix-blend-mode: multiply; }

.scene::before { display: none; }

.scene-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--grain);
}

.is-dark .scene-stage {
  background: radial-gradient(76% 58% at 50% 34%, rgba(31, 84, 168, .22), transparent 66%), var(--night);
}
.is-dark .scene-stage::after { opacity: .5; mix-blend-mode: overlay; }

.is-light .scene-stage {
  background: radial-gradient(74% 56% at 50% 34%, rgba(59, 125, 221, .08), transparent 62%), var(--day);
}
.is-light .scene-stage::after { opacity: .85; mix-blend-mode: multiply; }
.is-light .muted { color: #7e8ba3; }
.is-light .lead, .is-light .body { color: #5a677e; }
.is-light .link { color: #3e4b62; }

.rise {
  margin-top: calc(var(--radius-xl) * -1);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ══════════ HERO ══════════ */
/* Assez de course pour : révéler le mockup, faire venir les chips, absorber */
.hero { height: 420svh; }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Sur un gris bleuté, le halo doit rester sourd : on l'assombrit
     vers les bords plutôt que de l'éclaircir au centre. */
  background:
    radial-gradient(78% 56% at 50% 80%, rgba(43, 104, 200, .2), transparent 66%),
    radial-gradient(110% 74% at 50% 0%, rgba(28, 74, 152, .16), transparent 58%),
    radial-gradient(130% 100% at 50% 50%, transparent 42%, rgba(18, 22, 29, .55) 100%),
    var(--night);
}

/* Trois cercles concentriques en parallaxe. .rings n'est qu'un point d'ancrage :
   les variantes (orbit, closing, footer) s'appuient sur ce modèle 0×0. */
.rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

/* Dans un hero, les cercles forment un halo bas, autour du mockup, et le haut
   du cadre est masqué : sans cela leurs arcs traversent le grand titre et
   produisent un faux effet de surligneur. Il faut une boîte réelle à masquer. */
.hero-bg .rings {
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 34%, #000 58%);
          mask-image: linear-gradient(180deg, transparent 0, transparent 34%, #000 58%);
}
.hero-bg .ring { top: 76%; }

/* Heros courts (mentions légales, formulaire) : à taille normale, les cercles
   remontent forcément dans le titre. On les réduit et on les repousse. */
.form-page .ring { top: 112%; }
/* Le hero des mentions légales est le plus court du site : il faut descendre
   davantage pour sortir le deuxième cercle de la zone du titre. */
.legal-hero .ring { top: 124%; }
.legal-hero .ring.r1,
.form-page .ring.r1 { width: min(700px, 80vw); height: min(700px, 80vw); }
.legal-hero .ring.r2,
.form-page .ring.r2 { width: min(480px, 54vw); height: min(480px, 54vw); }
.legal-hero .ring.r3,
.form-page .ring.r3 { width: min(300px, 34vw); height: min(300px, 34vw); }

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  /* Trait volontairement très faible : un arc trop net derrière un grand
     titre se lit comme un surlignage. */
  border: 1px solid rgba(255, 255, 255, .06);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  box-shadow:
    0 30px 90px -46px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}
.ring.r1 { width: min(1180px, 108vw); height: min(1180px, 108vw); opacity: .55; }
.ring.r2 { width: min(830px, 78vw); height: min(830px, 78vw); border-color: rgba(255, 255, 255, .07); opacity: .7; }
.ring.r3 {
  width: min(520px, 52vw);
  height: min(520px, 52vw);
  border-color: rgba(140, 185, 255, .1);
  background: radial-gradient(circle at 50% 42%, rgba(59, 125, 221, .06), rgba(var(--night-rgb), 0) 68%);
  opacity: .85;
}

/* Grain du hero : deux passes, comme sur la section de clôture.
   Une seule passe restait trop lisse sur les grands aplats. */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-bg::before { opacity: .5; }
.hero-bg::after  { opacity: .4; }

.hero .display {
  text-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.hero-head {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  /* Centré dans l'espace laissé libre au-dessus du mockup. Une marge fixe
     entassait le titre en haut et creusait un vide sous le CTA. */
  margin-block: auto;
  padding: var(--nav-h) clamp(22px, 4vw, 40px) 0;
  text-align: center;
}

.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line i { display: block; font-style: normal; }

.hero .lead { max-width: 620px; margin: clamp(28px, 4vh, 44px) auto 0; }

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 4vh, 42px);
}

.hero-product {
  /* --win-ratio doit suivre l'aspect-ratio de .window, sinon la crête dérive */
  --win-w: min(1080px, 88vw);
  --win-ratio: .6;
  --peek: 22svh;

  position: relative;
  z-index: 2;
  width: var(--win-w);
  /* Seule la crête de la fenêtre dépasse, et elle vaut toujours --peek.
     La marge négative sort le reste du calcul du flux : l'espace restant
     revient au bloc de titre, qui s'y centre. Le scroll remonte ensuite
     la fenêtre au centre (liftY dans app.js). */
  margin-bottom: calc(var(--peek) - var(--win-w) * var(--win-ratio));
  transform-origin: 50% 50%;
  overflow: visible;
  will-change: transform;
}

.hero-hint {
  position: absolute;
  bottom: 22px;
  right: clamp(20px, 4vw, 40px);
  z-index: 4;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5a6884;
}

/* ══════════ FENÊTRE OS — assistant ══════════ */
.window {
  position: relative;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  /* Écran posé dans la nuit : halo froid, contact net, portée profonde */
  box-shadow:
    0 0 0 1px rgba(9, 20, 42, .5),
    0 2px 3px rgba(0, 0, 0, .3),
    0 24px 50px -24px rgba(0, 0, 0, .6),
    0 90px 170px -60px rgba(0, 0, 0, .92),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  color: var(--ink);
}

.window-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fafbfc;
}

.win-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .88);
}

.win-dots { display: flex; gap: 6px; }
.win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9dde6;
}
.win-dots i:nth-child(1) { background: #ff5f57; }
.win-dots i:nth-child(2) { background: #febc2e; }
.win-dots i:nth-child(3) { background: #28c840; }

.win-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(10, 24, 55, .04);
}
.win-nav span {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 520;
  color: #6a7690;
}
.win-nav span.on {
  background: #fff;
  color: #121c33;
  font-weight: 620;
  box-shadow: 0 4px 12px rgba(16, 34, 70, .08);
}

.win-me {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1b3159;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.assist {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 20px 18px;
}

.assist-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.assist-head b { display: block; font-size: 14px; font-weight: 640; letter-spacing: -.03em; color: #101c33; }
.assist-head small { display: block; margin-top: 2px; font-size: 10.5px; color: #8b96a9; }
.assist-head > div { flex: 1; }

.assist-orb,
.msg-orb {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from var(--oa), #3b7ddd, #6fa7ff, #2fb8ab, #3b7ddd);
  box-shadow: 0 0 16px rgba(59, 125, 221, .28);
  animation: orb-spin 10s linear infinite, orb-breathe 5.5s ease-in-out infinite;
}
.assist-orb::after,
.msg-orb::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 56%);
}
.assist-orb-sm { width: 18px; height: 18px; }

.assist-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(47, 184, 171, .1);
  color: #1f8a6d;
  font-size: 10px;
  font-weight: 620;
}
.assist-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb8ab;
  box-shadow: 0 0 8px #2fb8ab;
  animation: live-pulse 2.2s ease-in-out infinite;
}

.assist-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.msg { display: flex; }
.msg-user { justify-content: flex-end; }
/* Échange plus ancien : présent mais en retrait */
.msg-past { opacity: .5; }
.msg-user p,
.msg-bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.msg-user p {
  background: var(--night);
  color: #eef3fb;
  border-bottom-right-radius: 5px;
}
.msg-ai { align-items: flex-start; gap: 8px; }
.msg-bubble {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 8px 22px -14px rgba(16, 34, 70, .4);
  color: #24324c;
  border-bottom-left-radius: 5px;
}
.msg-bubble b { font-weight: 640; color: #1a4f9c; }

/* Étapes de raisonnement : l'assistant montre ce qu'il consulte */
.msg-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.ms-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(59, 125, 221, .07);
  font-size: 9.5px;
  font-weight: 620;
  letter-spacing: -.005em;
  color: #4a5a76;
  opacity: .3;
  animation: step-on 5.4s ease-in-out infinite;
}
.ms-step:nth-child(2) { animation-delay: .5s; }
.ms-step:nth-child(3) { animation-delay: 1s; }
.ms-step i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes step-on {
  0%, 6%   { opacity: .28; transform: translateY(2px); }
  16%, 82% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: .28; transform: translateY(2px); }
}

.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-actions span {
  padding: 5px 9px;
  border-radius: 99px;
  background: #eef2f8;
  font-size: 10px;
  font-weight: 620;
  color: #3c4a63;
}
.msg-actions span.is-on { background: var(--night); color: #fff; }

.assist-typing {
  display: inline-flex;
  gap: 4px;
  padding: 2px 0 6px;
}
.assist-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b96a9;
  animation: typing 1.2s ease-in-out infinite;
}
.assist-typing i:nth-child(2) { animation-delay: .15s; }
.assist-typing i:nth-child(3) { animation-delay: .3s; }
.msg-next { color: #5a677e; }

.assist-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
}
.ad-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 99px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  color: #5a677e;
}
.ad-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5cddb;
}
.ad-chip.is-on { color: #1b3159; box-shadow: 0 4px 12px rgba(16, 34, 70, .06); }
.ad-chip .i-blue { background: #3b7ddd; }
.ad-chip .i-teal { background: #2fb8ab; }
.ad-chip .i-amber { background: #d4873f; }

.assist-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  color: #8b96a9;
  box-shadow: 0 6px 18px -12px rgba(16, 34, 70, .35);
}
.assist-input em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #b0b8c7;
}

/* Chips d'outils — ancre = centre de .hero-product */
.tool-cloud {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.tool-chip {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 22px 12px 13px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 21px;
  color: #1f2530;
  box-shadow:
    0 26px 56px -24px rgba(0, 0, 0, .58),
    0 4px 12px -6px rgba(0, 0, 0, .3),
    inset 0 1px 0 #fff;
  white-space: nowrap;
  will-change: transform, opacity;
}

.tc-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .16), 0 6px 14px -6px rgba(0, 0, 0, .4);
}
.tc-logo svg { width: 22px; height: 22px; }

.tc-txt { display: grid; gap: 1px; text-align: left; }
.tc-txt b {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.022em;
  color: #1f2530;
}
.tc-txt em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -.008em;
  color: #8792a6;
}

@keyframes typing {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ══════════ MANIFESTE ══════════ */
.statement { height: 215svh; }

.statement-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding-inline: clamp(22px, 4.4vw, 56px);
}

.statement-text {
  max-width: 980px;
  font-size: clamp(26px, 3.7vw, 54px);
  font-weight: 580;
  line-height: 1.16;
  letter-spacing: -.03em;
  word-spacing: .03em;
  color: rgba(10, 18, 38, .14);
}

/* Pas de transition CSS sur .w : GSAP scrolle la couleur. Les deux à la fois
   décalent chaque frame, surtout au scroll inverse. */

/* ══════════ SCÈNES ÉPINGLÉES ══════════ */
.scene { padding: 0; }
.system { height: 460svh; }
.equation-scene { height: 300svh; }

.scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.scene-title {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  padding-inline: clamp(22px, 4.4vw, 56px);
  text-align: center;
}

.scene-figure {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  top: clamp(98px, 13.5vh, 132px);
  /* Laisse la place au bloc de légende, remonté ci-dessous */
  bottom: clamp(196px, 26vh, 268px);
}

/* Légende remontée : posée trop bas, elle sortait du champ de lecture */
.scene-caption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(56px, 9vh, 104px);
  height: clamp(124px, 15.5vh, 146px);
  padding-inline: clamp(22px, 4.4vw, 56px);
}

.scene-head { margin-bottom: clamp(48px, 6vw, 80px); }
.scene-head .body { max-width: 42ch; margin-top: 22px; }

/* ══════════ ORBITE + ORB ══════════ */
.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Anneaux du hero, redimensionnés pour la scène : centrés sur l'orb */
.rings-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 0;
}
.rings-orbit .ring.r1 { width: min(880px, 84vw); height: min(880px, 84vw); opacity: .4; }
.rings-orbit .ring.r2 { width: min(620px, 62vw); height: min(620px, 62vw); opacity: .55; }
.rings-orbit .ring.r3 { width: min(380px, 40vw); height: min(380px, 40vw); opacity: .75; }

.orbit-core,
.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
}

.orbit-core {
  display: grid;
  place-items: center;
  gap: 12px;
  width: clamp(132px, 17vh, 176px);
  will-change: transform;
}
.orbit-core b { font-size: 13px; font-weight: 620; letter-spacing: -.02em; }

/* ── Orb assistant ──
   Une matière vivante plutôt qu'une icône : trois nappes de couleur
   tournent à des vitesses différentes sous une coque qui se déforme
   lentement. Aucune boucle n'a la même durée, donc le motif ne se répète
   jamais à l'œil. */
.orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(112px, 15vh, 148px);
  height: clamp(112px, 15vh, 148px);
  --orb-core: 64%;
}

/* Halo : la lueur que l'orb projette autour de lui */
.orb-halo {
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 125, 221, .3), rgba(47, 184, 171, .1) 42%, transparent 68%);
  animation: orb-halo 9.5s var(--ease-soft) infinite;
}

/* Deux masses organiques qui débordent doucement de la sphère */
.orb-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(9px);
  opacity: .55;
}
.orb-blob.b1 {
  inset: 6%;
  background: radial-gradient(circle at 38% 34%, rgba(111, 167, 255, .85), transparent 62%);
  animation: orb-blob-a 17s ease-in-out infinite alternate;
}
.orb-blob.b2 {
  inset: 12%;
  background: radial-gradient(circle at 64% 70%, rgba(47, 184, 171, .8), transparent 60%);
  animation: orb-blob-b 21s ease-in-out infinite alternate;
}

/* Sphère : matière sombre et profonde, pour que les courants se lisent */
.orb-core {
  position: relative;
  width: var(--orb-core);
  height: var(--orb-core);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 30%, #2f6dc4 0%, #1d4d95 30%, #123262 58%, #0a1c3c 80%, #050f28 100%);
  box-shadow:
    0 0 50px -6px rgba(59, 125, 221, .45),
    0 20px 42px -20px rgba(0, 0, 0, .9);
  animation:
    orb-breathe 8.5s var(--ease-soft) infinite,
    orb-morph 16s ease-in-out infinite alternate;
}

/* Trois courants internes, vitesses et sens différents */
.orb-flow {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
/* Nappe qui tourne : la « circulation » de l'assistant */
.orb-flow.f1 {
  inset: -20%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(120, 205, 255, .85) 52deg,
    rgba(59, 125, 221, .3) 104deg,
    transparent 168deg,
    rgba(47, 200, 184, .7) 244deg,
    rgba(47, 184, 171, .2) 292deg,
    transparent 344deg);
  filter: blur(7px);
  animation: orb-turn 12s linear infinite;
}
/* Deux masses qui se croisent : le motif ne se répète jamais */
.orb-flow.f2 {
  inset: -6%;
  background: radial-gradient(circle at 68% 74%, rgba(47, 214, 194, .85), rgba(47, 184, 171, .2) 38%, transparent 60%);
  filter: blur(6px);
  animation: orb-drift-a 15s ease-in-out infinite alternate;
}
.orb-flow.f3 {
  inset: -4%;
  background: radial-gradient(circle at 28% 66%, rgba(150, 200, 255, .8), rgba(111, 167, 255, .18) 36%, transparent 58%);
  filter: blur(6px);
  animation: orb-drift-b 10.5s ease-in-out infinite alternate;
}

/* Reflet spéculaire : petit et net, il pose le volume sans tout éclaircir */
.orb-gloss {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 33% 23%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .12) 15%, rgba(255, 255, 255, 0) 27%),
    radial-gradient(140% 90% at 50% 118%, rgba(140, 200, 255, .3), transparent 52%);
}

/* Liseré : lumière en haut, ombre portée interne en bas */
.orb-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -14px 26px -12px rgba(4, 12, 30, .9),
    inset 0 0 0 1px rgba(190, 219, 255, .2);
}

/* Ondes : l'assistant écoute et répond */
.orb-wave {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(140, 190, 255, .3);
  opacity: 0;
  animation: orb-wave 6.2s var(--ease-soft) infinite;
}
.orb-wave:nth-of-type(2) { animation-delay: 2.05s; }
.orb-wave:nth-of-type(3) { animation-delay: 4.1s; }

/* Satellites discrets */
.orb-sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: #b9d5ff;
  box-shadow: 0 0 10px rgba(169, 203, 255, .95);
  animation: orb-sat-1 14s linear infinite;
}
.orb-sat.s2 {
  width: 4px;
  height: 4px;
  margin: -2px;
  background: #7fe3d8;
  box-shadow: 0 0 10px rgba(111, 216, 205, .95);
  animation: orb-sat-2 21s linear infinite reverse;
}

/* Déformation lente et asymétrique : l'effet « organique » */
@keyframes orb-morph {
  0%   { border-radius: 50%; }
  25%  { border-radius: 59% 41% 45% 55% / 43% 57% 43% 57%; }
  50%  { border-radius: 41% 59% 58% 42% / 60% 40% 55% 45%; }
  75%  { border-radius: 55% 45% 38% 62% / 47% 61% 39% 53%; }
  100% { border-radius: 45% 55% 56% 44% / 57% 43% 58% 42%; }
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  35%      { transform: scale(1.035) translateY(-1.5px); }
  70%      { transform: scale(1.015) translateY(1px); }
}
@keyframes orb-halo {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.1); opacity: 1; }
}
@keyframes orb-turn { to { transform: rotate(360deg); } }
@keyframes orb-drift-a {
  0%   { transform: translate(0, 0) scale(1); opacity: .8; }
  100% { transform: translate(-9%, -7%) scale(1.16); opacity: 1; }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0, 0) scale(1.1); opacity: .9; }
  100% { transform: translate(8%, -6%) scale(.94); opacity: .7; }
}
@keyframes orb-blob-a {
  0%   { transform: translate(-4%, 3%) scale(1); opacity: .45; }
  100% { transform: translate(5%, -4%) scale(1.14); opacity: .7; }
}
@keyframes orb-blob-b {
  0%   { transform: translate(4%, -3%) scale(1.08); opacity: .6; }
  100% { transform: translate(-5%, 5%) scale(.92); opacity: .4; }
}
@keyframes orb-wave {
  0%   { inset: 20%; opacity: 0; }
  16%  { opacity: .5; }
  100% { inset: -24%; opacity: 0; }
}
@keyframes orb-sat-1 {
  from { transform: rotate(0deg) translateX(66px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(66px) rotate(-360deg); }
}
@keyframes orb-sat-2 {
  from { transform: rotate(0deg) translate(76px, 6px) rotate(0deg); }
  to   { transform: rotate(360deg) translate(76px, 6px) rotate(-360deg); }
}

.orbit-node {
  display: grid;
  place-items: center;
  gap: 10px;
  width: clamp(118px, 15vh, 154px);
  aspect-ratio: 1;
  padding: 16px 12px 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(111, 167, 255, .1), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .025));
  box-shadow:
    0 2px 2px rgba(0, 0, 0, .25),
    0 26px 64px -34px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  will-change: transform, opacity;
}
/* Grain discret : les cartes cessent d'être des aplats translucides */
.orbit-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--grain);
  opacity: .2;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.orbit-node b { font-size: 12px; font-weight: 580; color: #cdd7e8; }

.n-mock { display: grid; place-items: center; }
.n-mock-agents {
  display: flex;
  align-items: center;
}
.n-mock-agents i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border: 2px solid rgba(8, 16, 34, .7);
  border-radius: 50%;
  background: #2a4a86;
  color: #fff;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
}
.n-mock-agents i:first-child { margin-left: 0; background: #3b7ddd; }
.n-mock-agents em {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 50%;
}

.n-mock-apps {
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 5px;
}
.n-mock-apps i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(111, 167, 255, .22);
  border: 1px solid rgba(111, 167, 255, .28);
}
.n-mock-apps i:nth-child(2) { background: rgba(47, 184, 171, .22); border-color: rgba(47, 184, 171, .28); }
.n-mock-apps i:nth-child(3) { height: 10px; }

.n-mock-flows {
  display: flex;
  align-items: center;
  gap: 6px;
}
.n-mock-flows i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(111, 167, 255, .08);
}
.n-mock-flows i:nth-child(2) { background: var(--teal); }

.n-mock-tools {
  display: flex;
  gap: 5px;
}
.n-mock-tools i {
  width: 12px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}

.caption {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.caption > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #5c6a85; }
.caption h3 { margin-top: 13px; font-size: clamp(25px, 2.9vw, 38px); font-weight: 630; letter-spacing: -.03em; }
.caption p { margin-top: 11px; font-size: 15.5px; line-height: 1.55; color: #93a0b7; }

/* ══════════ APPS BENTO ══════════ */
.apps-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px -36px rgba(16, 34, 70, .35), 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 80px -40px rgba(16, 34, 70, .45);
}

.tint-stock {
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(47, 184, 171, .14), transparent 55%),
    linear-gradient(160deg, #fff, #f4f8fb);
}
.tint-blue {
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(59, 125, 221, .12), transparent 55%),
    #fff;
}
.tint-teal {
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(47, 184, 171, .12), transparent 55%),
    #fff;
}
.tint-route {
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(212, 135, 63, .12), transparent 55%),
    #fff;
}

.app-card-feature {
  grid-column: 1 / -1;
  display: flex;
  min-height: 420px;
}
.app-card-feature .ac-text {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}
.app-card-feature h3 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -.04em;
}
.app-card-feature p { font-size: 16px; line-height: 1.55; color: #5a677e; max-width: 34ch; }
.app-card-feature .ac-visual { flex: 1; position: relative; min-height: 280px; }

.app-card-half { display: flex; flex-direction: column; min-height: 360px; }
.app-card-half .ac-visual { flex: 1; padding: 22px 22px 0; }
.app-card-half .ac-text { padding: 22px 24px 24px; }

.ac-row { display: flex; align-items: flex-start; gap: 14px; }
.ac-row h3 { font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.ac-row p { margin-top: 4px; font-size: 14px; color: #5a677e; }

.app-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .12), 0 8px 18px rgba(0, 0, 0, .1);
}
.app-card-feature .app-icon { width: 54px; height: 54px; border-radius: 14px; font-size: 22px; }
.g-green  { background: linear-gradient(135deg, #2fb8ab, #1d8a80); }
.g-blue   { background: linear-gradient(135deg, #3b7ddd, #2458a8); }
.g-violet { background: linear-gradient(135deg, #7b74d8, #4f48a8); }
.g-teal   { background: linear-gradient(135deg, #2fb8ab, #187a90); }
.g-orange { background: linear-gradient(135deg, #e09a4a, #c06a1e); }
.g-amber  { background: linear-gradient(135deg, #d4873f, #b06820); }
.g-navy   { background: linear-gradient(135deg, #3c5a92, #1a2c50); }
.g-slate  { background: linear-gradient(135deg, #7d8ba3, #4a5670); }

/* ── Bandeau des apps : logo + nom, défilement continu ── */
.apps-belt {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(46px, 6vw, 76px);
  padding-block: 6px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.belt { overflow: hidden; }
.belt-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: belt 48s linear infinite;
}
.belt-reverse .belt-track { animation-direction: reverse; animation-duration: 58s; }
.belt:hover .belt-track { animation-play-state: paused; }

@keyframes belt {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.app-tile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 12px;
  border: 1px solid rgba(10, 24, 55, .06);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 36px -26px rgba(16, 34, 70, .5), inset 0 1px 0 #fff;
  white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.app-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -26px rgba(16, 34, 70, .55); }
.app-tile b { font-size: 14px; font-weight: 620; letter-spacing: -.026em; color: #1f2530; }

.at-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .16), 0 6px 14px -8px rgba(0, 0, 0, .45);
}

/* ── Invitation à créer ses apps ── */
.apps-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(44px, 5.5vw, 70px);
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid rgba(10, 24, 55, .07);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 120% at 88% 0%, rgba(59, 125, 221, .1), transparent 60%),
    linear-gradient(160deg, #fff, #f2f5fa);
  box-shadow: 0 34px 80px -50px rgba(16, 34, 70, .45), inset 0 1px 0 #fff;
}
.apps-cta h3 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 640;
  letter-spacing: -.042em;
  line-height: 1.08;
}
.apps-cta p { margin-top: 12px; max-width: 52ch; font-size: 15.5px; line-height: 1.55; color: #5a677e; }
.apps-cta .btn { flex: 0 0 auto; }

.app-ui {
  position: relative;
  background: linear-gradient(180deg, #fff, #fcfdff);
  border: 1px solid rgba(16, 34, 70, .07);
  border-radius: 13px;
  /* Ombre en trois plans : contact, portée courte, portée longue */
  box-shadow:
    0 1px 1px rgba(16, 34, 70, .05),
    0 8px 18px -10px rgba(16, 34, 70, .22),
    0 30px 60px -26px rgba(16, 34, 70, .38),
    inset 0 1px 0 #fff;
  overflow: hidden;
  color: #1d2433;
  font-size: 12.5px;
}
/* Texture : grain très léger, sinon l'aplat blanc paraît plat */
.app-ui::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background-image: var(--grain);
  opacity: .12;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.app-card-feature .ac-visual .app-ui {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 90%;
  animation: mock-float 4s ease-in-out infinite;
}
.app-card-half .app-ui { position: relative; min-height: 220px; animation: mock-float 4.2s ease-in-out infinite; }

@keyframes mock-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Balayage lumineux : l'écran travaille */
.aui-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(59, 125, 221, 0), rgba(59, 125, 221, .07) 60%, rgba(59, 125, 221, 0));
  animation: aui-scan 6.5s var(--ease-soft) infinite;
}
@keyframes aui-scan {
  0%, 12%   { transform: translateY(-40%); opacity: 0; }
  30%       { opacity: 1; }
  76%       { opacity: 1; }
  100%      { transform: translateY(280%); opacity: 0; }
}

.aui-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(47, 184, 171, .12);
  font-size: 9.5px;
  font-weight: 700;
  color: #1b7a62;
}
.aui-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2fb8ab;
  animation: live-pulse 2s ease-in-out infinite;
}

/* Ligne suivie de près par l'agent */
.aui-row.is-hot,
.aui-person.is-hot { position: relative; }
.aui-row.is-hot::before,
.aui-person.is-hot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(59, 125, 221, .07);
  animation: hot-glow 5.4s ease-in-out infinite;
}
.aui-row.is-hot > *,
.aui-person.is-hot > * { position: relative; }
@keyframes hot-glow {
  0%, 20%, 100% { opacity: 0; }
  40%, 76%      { opacity: 1; }
}

/* Le statut bascule quand l'agent a passé la commande */
.aui-swap { position: relative; display: grid; }
.aui-swap b {
  grid-area: 1 / 1;
  animation: swap-a 5.4s ease-in-out infinite;
}
.aui-swap b:last-child { animation-name: swap-b; }
@keyframes swap-a {
  0%, 42%   { opacity: 1; transform: translateY(0); }
  50%, 92%  { opacity: 0; transform: translateY(-6px); }
  100%      { opacity: 1; transform: translateY(0); }
}
@keyframes swap-b {
  0%, 42%   { opacity: 0; transform: translateY(6px); }
  50%, 92%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(6px); }
}

/* Une affaire qui avance dans le pipeline */
.aui-mover {
  position: absolute;
  left: 12px;
  bottom: 22px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(59, 125, 221, .3);
  font-size: 12px;
  font-weight: 700;
  color: #2458a8;
  box-shadow: 0 10px 22px -12px rgba(16, 34, 70, .5);
  animation: aui-mover 7s var(--ease-soft) infinite;
}
@keyframes aui-mover {
  0%, 8%    { transform: translate(0, 0); opacity: 0; }
  18%       { transform: translate(0, 0); opacity: 1; }
  42%       { transform: translate(88%, -14px); opacity: 1; }
  66%       { transform: translate(176%, -28px); opacity: 1; }
  80%, 100% { transform: translate(176%, -28px); opacity: 0; }
}

.aui-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.aui-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(16, 34, 70, .07);
  /* Barre de titre translucide, comme une fenêtre système */
  background: linear-gradient(180deg, rgba(252, 253, 255, .96), rgba(246, 248, 252, .92));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .9);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #6e7688;
}
.aui-dots {
  width: 38px;
  height: 10px;
  border-radius: 99px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle at 19px 5px, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle at 33px 5px, #28c840 4px, transparent 4.5px);
}

.aui-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, .06);
}
.aui-kpis > div { background: #fff; padding: 12px 10px; text-align: center; }
.aui-kpis strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.aui-kpis em { font-style: normal; font-size: 10.5px; color: #868d9c; }

.aui-table { padding: 6px 0 10px; }
.aui-row {
  display: grid;
  grid-template-columns: .7fr 1.6fr .45fr .7fr;
  gap: 8px;
  padding: 8px 14px;
  align-items: center;
}
.aui-row + .aui-row { border-top: 1px solid rgba(0, 0, 0, .04); }
.aui-head { font-size: 10px; font-weight: 650; color: #868d9c; text-transform: uppercase; letter-spacing: .04em; }

.aui-badge {
  display: inline-flex;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
}
.aui-badge.ok { background: rgba(47, 184, 171, .14); color: #1b7a62; }
.aui-badge.warn { background: rgba(212, 135, 63, .16); color: #9a5b00; }

.aui-people { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.aui-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f6f7fa;
}
.aui-person > div { flex: 1; min-width: 0; }
.aui-person strong { display: block; font-size: 13px; }
.aui-person em { font-style: normal; font-size: 11px; color: #868d9c; }

.aui-av {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #3b7ddd;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}

.aui-av.g-teal   { background: linear-gradient(135deg, #2fb8ab, #187a90); }
.aui-av.g-amber  { background: linear-gradient(135deg, #d4873f, #b06820); }
.aui-av.g-violet { background: linear-gradient(135deg, #7b74d8, #4f48a8); }
.aui-av.g-navy   { background: linear-gradient(135deg, #3c5a92, #1a2c50); }

.aui-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.aui-dot.on {
  background: #2fb8ab;
  box-shadow: 0 0 0 0 rgba(47, 184, 171, .5);
  animation: dot-ping 3.4s ease-out infinite;
}
.aui-dot.on.d2 { animation-delay: 1.1s; }
.aui-dot.off { background: #d2d5de; }

@keyframes dot-ping {
  0%       { box-shadow: 0 0 0 0 rgba(47, 184, 171, .5); }
  55%, 100% { box-shadow: 0 0 0 7px rgba(47, 184, 171, 0); }
}

.aui-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  min-height: 180px;
}
.aui-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 10px;
  background: #f6f7fa;
}
.aui-col em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #868d9c;
}
.aui-chip {
  padding: 10px 8px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.aui-chip.accent { background: rgba(59, 125, 221, .1); color: #2458a8; }

.aui-map {
  position: relative;
  height: 118px;
  margin: 12px 12px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 125, 221, .08), rgba(47, 184, 171, .1)), #eef3fa;
  overflow: hidden;
}
.aui-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b7ddd;
  box-shadow: 0 0 0 4px rgba(59, 125, 221, .18);
  animation: pin-pulse 3.2s ease-in-out infinite;
}
.aui-pin.p1 { top: 28%; left: 22%; }
.aui-pin.p2 { top: 42%; left: 54%; background: #2fb8ab; box-shadow: 0 0 0 4px rgba(47, 184, 171, .22); animation-delay: .4s; }
.aui-pin.p3 { top: 62%; left: 72%; background: #d4873f; box-shadow: 0 0 0 4px rgba(212, 135, 63, .22); animation-delay: .8s; }
.aui-stops { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #42485a; }
.aui-stops strong { color: #1d2433; margin-right: 6px; }

@keyframes pin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ══════════ BÉNÉFICES ══════════ */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-grid-6 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018));
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px);
  transition: transform .6s var(--ease), border-color .4s ease, box-shadow .6s var(--ease);
}
/* La carte se soulève et son ombre s'étire d'autant */
.card:hover { box-shadow: 0 56px 110px -58px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .14); }
.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .2); }

.benefit h3 { margin-top: 22px; font-size: 20px; font-weight: 630; letter-spacing: -.03em; }
.benefit p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #93a0b7; }

.viz {
  position: relative;
  height: 178px;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 14px;
  /* Verre posé sur fond nuit : lueur haute, creux bas, liseré lumineux */
  background:
    radial-gradient(130% 100% at 50% -10%, rgba(59, 125, 221, .12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)),
    rgba(var(--sink-rgb), .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -24px 40px -26px rgba(0, 0, 0, .9),
    0 20px 38px -26px rgba(0, 0, 0, .9);
  overflow: hidden;
}
/* Texture : grain fin, pour éviter l'aplat numérique */
.viz::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background-image: var(--grain);
  opacity: .26;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.viz-merge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 14px; gap: 4px; }
.viz-merge .merge-lines { grid-row: 1 / -1; }
.viz-merge .src {
  grid-column: 1;
  min-width: 72px;
  padding: 5px 9px;
  margin-block: 2px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  font-size: 10px;
  font-weight: 560;
  color: #c5d0e2;
}
.viz-merge .merge-lines { position: relative; grid-column: 2; height: 100%; }
.viz-merge .merge-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  border-right: 1px solid rgba(111, 167, 255, .35);
  border-bottom: 1px solid rgba(111, 167, 255, .35);
  border-bottom-right-radius: 14px;
}
.viz-merge .merge-lines i:nth-child(1) { top: 22%; height: 28%; }
.viz-merge .merge-lines i:nth-child(2) { top: 50%; height: 1px; border-bottom-right-radius: 0; }
.viz-merge .merge-lines i:nth-child(3) { bottom: 22%; height: 28%; transform: scaleY(-1); }
/* Paquets de données qui remontent vers la donnée unique */
.viz-merge .merge-lines em {
  position: absolute;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
  animation: merge-run 3.2s var(--ease-soft) infinite;
}
.viz-merge .merge-lines em:nth-of-type(1) { top: 22%; }
.viz-merge .merge-lines em:nth-of-type(2) { top: 50%; animation-delay: .5s; }
.viz-merge .merge-lines em:nth-of-type(3) { bottom: 22%; animation-delay: 1s; }

@keyframes merge-run {
  0%        { transform: translateX(0); opacity: 0; }
  15%       { opacity: 1; }
  70%       { opacity: 1; }
  100%      { transform: translateX(100%); opacity: 0; }
}

.viz-merge .merge-core {
  grid-column: 3;
  /* Centré face aux trois sources, sans dicter la hauteur de la 1re rangée */
  grid-row: 1 / -1;
  align-self: center;
  display: grid;
  place-items: center;
  width: 78px;
  height: 72px;
  padding: 8px;
  border: 1px solid rgba(129, 181, 255, .3);
  border-radius: 14px;
  background: rgba(31, 82, 163, .3);
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
  color: #d5e4fb;
}

/* ── File d'agents : un vrai panneau, en-tête + lignes qui avancent ── */
.viz-auto { display: grid; grid-template-rows: auto 1fr; }

.auto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .07);
}
.auto-name { font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; color: #cdd8ea; }
.auto-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 184, 171, .14);
  font-size: 9.5px;
  font-weight: 600;
  color: #7fe3d8;
}
.auto-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: auto-beat 2.4s var(--ease-soft) infinite;
}

.auto-list { display: grid; align-content: center; gap: 2px; padding: 6px; }

.auto-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10.8px;
  transition: background .3s ease;
}
.auto-row b { font-weight: 520; letter-spacing: -.01em; color: #8b96a9; }
.auto-row em { font-size: 9.5px; font-style: normal; color: #6d7c94; }

.auto-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.4px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}

/* Terminé : coche pleine */
.auto-row.is-done { background: rgba(255, 255, 255, .022); }
.auto-row.is-done b { color: #c9d4e6; }
.auto-row.is-done .auto-dot {
  border-color: var(--teal);
  background: var(--teal);
}
.auto-row.is-done .auto-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 2.5px;
  border-left: 1.6px solid #161b22;
  border-bottom: 1.6px solid #161b22;
  transform: rotate(-45deg) translate(.5px, -.5px);
}

/* En cours : anneau qui tourne + barre de progression */
.auto-row.is-run { background: rgba(59, 125, 221, .1); }
.auto-row.is-run b { color: #dce8fb; }
.auto-row.is-run .auto-dot {
  border-color: var(--blue-light);
  border-top-color: transparent;
  animation: run-spin 1.5s linear infinite;
}
.auto-bar {
  position: relative;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.auto-bar s {
  position: absolute;
  inset: 0;
  right: auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  animation: auto-fill 3.6s var(--ease-soft) infinite;
}

/* En attente : c'est vous qui tranchez */
.auto-row.is-wait .auto-dot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .3);
  animation: pending-blink 3.6s ease-in-out infinite;
}
.auto-row.is-wait em {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #a8b4c8;
}

@keyframes auto-beat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}
@keyframes auto-fill {
  0%   { width: 8%; }
  70%  { width: 74%; }
  100% { width: 82%; }
}

.viz-vault { display: grid; place-items: center; }

/* Ce qui tente de sortir rebondit sur le périmètre */
.vault-field { position: absolute; inset: 0; }
.vault-field i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: rgba(111, 167, 255, .8);
  animation: vault-bounce 4.4s var(--ease-soft) infinite;
}
.vault-field i:nth-child(2) { animation-delay: 1.4s; --vx: -1; }
.vault-field i:nth-child(3) { animation-delay: 2.8s; --vy: -1; }

@keyframes vault-bounce {
  0%       { transform: translate(0, 0); opacity: 0; }
  20%      { opacity: 1; }
  55%      { transform: translate(calc(var(--vx, 1) * 62px), calc(var(--vy, 1) * 34px)); opacity: 1; }
  75%      { transform: translate(calc(var(--vx, 1) * 46px), calc(var(--vy, 1) * 26px)); opacity: .6; }
  100%     { transform: translate(0, 0); opacity: 0; }
}

.vault {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 120px;
  padding: 16px 12px;
  border: 1px solid rgba(111, 167, 255, .22);
  border-radius: 16px;
  background: rgba(31, 82, 163, .18);
  color: #c9d8f0;
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .7);
}
.vault svg { width: 26px; height: 26px; }
.vault em { font-style: normal; font-size: 10px; font-weight: 620; letter-spacing: .02em; }

.viz-shared { display: grid; place-items: center; }
.viz-shared .share-core,
.viz-shared .share-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 650;
}
.share-core {
  width: 42px;
  height: 42px;
  background: rgba(59, 125, 221, .35);
  border: 1px solid rgba(111, 167, 255, .4);
  color: #e8f0ff;
}
.share-node {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #b7c3d8;
}
.share-node.n1 { transform: translate(-52px, -28px); animation: share-lift 4.6s ease-in-out infinite; }
.share-node.n2 { transform: translate(52px, -28px); animation: share-lift 4.6s ease-in-out infinite .5s; }
.share-node.n3 { transform: translate(-52px, 32px); animation: share-lift 4.6s ease-in-out infinite 1s; }
.share-node.n4 { transform: translate(52px, 32px); animation: share-lift 4.6s ease-in-out infinite 1.5s; }

.share-pulse {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(111, 167, 255, .45);
  animation: share-pulse 3.6s var(--ease-soft) infinite;
}

@keyframes share-lift {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 167, 255, 0); border-color: rgba(255, 255, 255, .12); }
  45%      { box-shadow: 0 0 0 4px rgba(111, 167, 255, .1); border-color: rgba(111, 167, 255, .34); }
}
@keyframes share-pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(3.1); opacity: 0; }
}

.viz-interop { display: flex; align-items: center; justify-content: center; padding: 20px; }
.viz-interop .io {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  font-size: 10px;
  color: #a3b0c6;
}
.viz-interop .io-os {
  border-color: rgba(111, 167, 255, .35);
  background: rgba(31, 82, 163, .28);
  color: #d5e4fb;
}
.io-line {
  position: relative;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}
.io-line i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
  animation: travel 2.4s var(--ease-soft) infinite;
}
.io-line.rev i {
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation-name: travel-back;
  animation-delay: 1.2s;
}

.viz-support { display: grid; place-items: center; }
.cal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 168px;
}
.cal b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  font-size: 8.5px;
  font-weight: 620;
  color: #8b96a9;
}
.cal b.on {
  background: rgba(59, 125, 221, .35);
  color: #e8f0ff;
  box-shadow: 0 0 0 3px rgba(59, 125, 221, .12);
}
.cal em {
  flex-basis: 100%;
  margin-top: 6px;
  font-style: normal;
  font-size: 10px;
  text-align: center;
  color: #93a0b7;
}

@keyframes travel {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(24px); opacity: 0; }
}
@keyframes travel-back {
  0% { transform: translateX(24px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}
@keyframes run-spin { to { transform: rotate(360deg); } }

@keyframes pending-blink {
  0%, 60%, 100% { border-color: rgba(255, 255, 255, .2); }
  80%           { border-color: rgba(111, 167, 255, .7); }
}

/* ══════════ OS + BOX ══════════ */
.socle-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 90px); }
.socle-copy .title + .body { margin-top: 28px; max-width: 480px; }

.ticks { display: grid; gap: 12px; margin-top: 30px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: #45526a; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* Répartition local / cloud */
.split { margin-top: 30px; }
.split-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(10, 24, 55, .06);
  box-shadow: inset 0 1px 2px rgba(10, 24, 55, .08);
}
.split-bar i { display: block; height: 100%; }
.sb-local {
  flex: 0 0 80%;
  background: linear-gradient(90deg, #2fb8ab, #3b7ddd);
  border-radius: 99px;
}
.sb-cloud {
  flex: 1;
  background: repeating-linear-gradient(115deg, rgba(59, 125, 221, .5) 0 4px, rgba(59, 125, 221, .16) 4px 8px);
  animation: cloud-call 4.4s ease-in-out infinite;
}
@keyframes cloud-call {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

.split-legend { display: grid; gap: 8px; margin-top: 14px; }
.split-legend span { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #5a677e; }
.split-legend b { font-weight: 620; color: var(--ink); }
.split-legend i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot-local { background: linear-gradient(135deg, #2fb8ab, #3b7ddd); }
.dot-cloud { background: rgba(59, 125, 221, .3); border: 1px dashed rgba(59, 125, 221, .7); }

.stack { display: grid; justify-items: center; gap: 0; }

/* Enveloppe : aucun transform GSAP ici — un translate/opacity sur un
   ancêtre du volume 3D rouvre le flash noir au scroll. */
.stack-rise { display: grid; justify-items: center; }

/* Modèles cloud, sollicités seulement quand c'est utile */
.stack-cloud {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 14px;
  border: 1px dashed rgba(59, 125, 221, .34);
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 22px 50px -40px rgba(16, 34, 70, .5);
}
.sc-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(59, 125, 221, .1);
  color: #2458a8;
}
.sc-ico svg { width: 19px; height: 19px; }
.sc-txt b { display: block; font-size: 13.5px; font-weight: 640; letter-spacing: -.028em; }
.sc-txt small { font-size: 10.5px; color: #8792a6; }

.stack-os {
  display: grid;
  place-items: center;
  gap: 8px;
  width: min(400px, 100%);
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: linear-gradient(160deg, #fff, rgba(255, 255, 255, .78));
  box-shadow: 0 40px 90px -50px rgba(16, 34, 70, .45), inset 0 1px 0 #fff;
  text-align: center;
}
.stack-os span { font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
.stack-os b { font-size: 11px; font-weight: 500; color: #7d8aa2; }

.stack-link {
  position: relative;
  width: 2px;
  height: 62px;
  background: linear-gradient(rgba(59, 125, 221, .2), rgba(59, 125, 221, .7));
  transform-origin: top;
}
.stack-link i {
  position: absolute;
  left: -2px;
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(59, 125, 221, .6);
  animation: drop 2.4s var(--ease-soft) infinite;
}
.stack-link em {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #6d7b93;
}
.stack-link.is-dashed {
  background: repeating-linear-gradient(rgba(59, 125, 221, .55) 0 5px, transparent 5px 11px);
}
.stack-link.is-dashed i {
  height: 14px;
  background: #8bb4f0;
  animation: rise 3.6s var(--ease-soft) infinite;
}

@keyframes drop {
  0% { top: 0; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: calc(100% - 22px); opacity: 0; }
}
@keyframes rise {
  0%, 30%  { top: calc(100% - 14px); opacity: 0; }
  45%      { opacity: 1; }
  70%      { opacity: 1; }
  100%     { top: 0; opacity: 0; }
}

/* ── Box UpTeam : volume complet, 6 faces ──
   W 218 · H 96 · D 138 — faces centrées puis poussées à mi-dimension.
   +0.6px sur le Z ferme les coutures (z-fighting) entre faces. */
.box3d {
  --bw: 218px;
  --bh: 96px;
  --bd: 138px;
  display: grid;
  justify-items: center;
}

.box3d-scene {
  position: relative;
  width: 300px;
  height: 236px;
  perspective: 1000px;
  perspective-origin: 50% 42%;
  /* Clear GPU clair : html est color-scheme dark ; un calque 3D
     transparent s'efface alors en noir à chaque frame de scroll. */
  color-scheme: light;
  background-color: var(--day);
}

.box3d-unit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bw);
  height: var(--bh);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg);
  animation: box-float 6.5s ease-in-out infinite;
}

.box3d-face {
  position: absolute;
  left: 50%;
  top: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.box3d-front,
.box3d-back  { width: var(--bw); height: var(--bh); }
.box3d-left,
.box3d-right { width: var(--bd); height: var(--bh); }
.box3d-top,
.box3d-bottom { width: var(--bw); height: var(--bd); }

.box3d-front  { transform: translate(-50%, -50%) translateZ(calc(var(--bd) / 2 + .6px)); }
.box3d-back   { transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--bd) / 2 + .6px)); }
.box3d-right  { transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--bw) / 2 + .6px)); }
.box3d-left   { transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--bw) / 2 + .6px)); }
.box3d-top    { transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--bh) / 2 + .6px)); }
.box3d-bottom { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--bh) / 2 + .6px)); }

/* Façade — même gris bleuté que le reste du site, plus le bleu marine d'avant */
.box3d-front {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px 0 18px;
  background: linear-gradient(158deg, #3d4656 0%, #272d38 52%, #1a1f27 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .45);
}
.box3d-front svg { width: 22px; height: 22px; flex: 0 0 auto; overflow: visible; }
.box3d-front path { fill: none; stroke: #8db4ee; stroke-width: 5.5; stroke-linecap: round; }
.box3d-meta { flex: 1; min-width: 0; }
.box3d-meta b { display: block; font-size: 12px; font-weight: 650; letter-spacing: -.02em; color: #e8eef8; }
.box3d-meta small { font-size: 9px; color: #8b9bb5; }

.box3d-leds { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.box3d-leds i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px var(--teal);
  animation: led-blink 2.6s ease-in-out infinite;
}
.box3d-leds i.alt { background: var(--blue-light); box-shadow: 0 0 9px var(--blue-light); animation-delay: .6s; }
.box3d-leds i.dim { background: #4d5d78; box-shadow: none; animation: none; }

/* Grille d'aération de façade */
.box3d-grille {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  height: 60%;
  flex: 0 0 auto;
  margin-left: 4px;
}
.box3d-grille i {
  border-radius: 2px;
  background: rgba(var(--sink-rgb), .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Flancs */
.box3d-left {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #323844, #1a1f27);
}
.box3d-right {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #353b48, #1d222b);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08);
}
.p-grid { display: flex; align-items: center; gap: 7px; }
.p-grid i {
  border-radius: 2px;
  background: #151a21;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.p-grid .p-rj  { width: 15px; height: 12px; }
.p-grid .p-usb { width: 12px; height: 6px; }
.p-grid .p-pwr {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #1b2028 55%, #333b48 56%);
}

/* Dos */
.box3d-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(158deg, #2c333f, #1a1f27);
}
.box3d-back b {
  width: 26px;
  height: 40%;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 6px);
}

/* Capot supérieur : aération */
.box3d-top {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: 18px 20px;
  background: linear-gradient(148deg, #5a6578 0%, #353c4a 46%, #232833 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.box3d-top em {
  height: 100%;
  border-radius: 2px;
  background: rgba(var(--sink-rgb), .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Dessous + pieds */
.box3d-bottom {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(180deg, #171c23, #12161c);
}
.box3d-bottom i {
  width: 34%;
  height: 8px;
  border-radius: 3px;
  background: #1e232c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Ombre au sol */
.box3d-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 220px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  /* Pas de filter:blur : dans un parent en perspective, ça aplatit le 3D. */
  background: radial-gradient(ellipse, rgba(16, 24, 38, .32), transparent 70%);
  animation: box-shadow-pulse 6.5s ease-in-out infinite;
}

.box3d-ports {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.box3d-ports span {
  padding: 4px 8px;
  border: 1px solid rgba(10, 24, 55, .08);
  border-radius: 99px;
  background: #fff;
  font-size: 10px;
  font-weight: 620;
  color: #5a677e;
  box-shadow: 0 6px 16px -10px rgba(16, 34, 70, .4);
}

@keyframes box-float {
  0%, 100% { transform: translate(-50%, -50%) rotateX(-18deg) rotateY(-28deg) translateY(0); }
  50%      { transform: translate(-50%, -50%) rotateX(-21deg) rotateY(-23deg) translateY(-6px); }
}
@keyframes box-shadow-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .85; }
  50%      { transform: translateX(-50%) scale(.93); opacity: .6; }
}
@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.stack-caption { margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #6d7b93; }

/* ══════════ 1 + 1 = 3 ══════════ */
.eq-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding-inline: clamp(22px, 4.4vw, 56px);
  text-align: center;
}

.eq-act {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding-inline: inherit;
}

/* ── Acte 1 · deux sources → une troisième ── */
.eq-title {
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.034em;
  word-spacing: .04em;
}
.eq-title .l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.eq-title .l i { display: block; font-style: normal; }

.eq-fuse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.12fr) 52px minmax(0, 1fr);
  align-items: center;
  width: min(920px, 94vw);
  margin-inline: auto;
  margin-top: clamp(28px, 4.4vh, 52px);
}

.eq-src {
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: 0 24px 56px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: left;
}
.eq-src.is-born {
  padding: 20px 20px 16px;
  border-color: rgba(111, 167, 255, .3);
  background: linear-gradient(165deg, rgba(59, 125, 221, .2), rgba(255, 255, 255, .04));
  box-shadow:
    0 0 0 1px rgba(111, 167, 255, .1),
    0 28px 64px -32px rgba(59, 125, 221, .5),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.eq-src-kicker {
  display: block;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7f8da6;
}
.eq-src b {
  display: block;
  margin-top: 7px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 640;
  letter-spacing: -.03em;
  color: #e9f0fb;
}
.eq-src small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8b98af;
}

.eq-rows {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}
.eq-rows li {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.eq-rows li::after {
  content: "";
  display: block;
  width: var(--w, 70%);
  height: 100%;
  border-radius: inherit;
  background: rgba(207, 220, 242, .32);
}
.eq-src:not(.is-born) .eq-rows li:nth-child(1) { --w: 78%; }
.eq-src:not(.is-born) .eq-rows li:nth-child(2) { --w: 52%; }
.eq-src:not(.is-born) .eq-rows li:nth-child(3) { --w: 64%; }
.eq-src[data-eq="src-b"] .eq-rows li:nth-child(1) { --w: 61%; }
.eq-src[data-eq="src-b"] .eq-rows li:nth-child(2) { --w: 84%; }
.eq-src[data-eq="src-b"] .eq-rows li:nth-child(3) { --w: 47%; }

.eq-src.is-born .eq-rows li::after {
  background: linear-gradient(90deg, #6fa7ff, #2fb8ab);
}
.eq-src.is-born .eq-rows li:nth-child(1) { --w: 72%; }
.eq-src.is-born .eq-rows li:nth-child(2) { --w: 48%; }
.eq-src.is-born .eq-rows li:nth-child(3) { --w: 86%; }
.eq-src.is-born .eq-rows li:nth-child(4) { --w: 38%; }

.eq-rows.is-live li.is-new {
  animation: eq-newrow 2.8s var(--ease-soft) infinite;
}

.eq-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ec0ee;
}
.eq-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: led-blink 2.2s ease-in-out infinite;
}

.eq-flow {
  position: relative;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(111, 167, 255, .12), rgba(111, 167, 255, .55), rgba(111, 167, 255, .12));
  overflow: hidden;
}
.eq-flow i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #8db4ee;
  box-shadow: 0 0 10px rgba(111, 167, 255, .75);
  animation: eq-travel 1.8s var(--ease-soft) infinite;
}
.eq-flow i:nth-child(2) { animation-delay: .9s; }
.eq-flow.is-in i { animation-name: eq-travel-rev; }

@keyframes eq-travel {
  0%   { left: 0; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}
@keyframes eq-travel-rev {
  0%   { left: calc(100% - 7px); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 0; opacity: 0; }
}
@keyframes eq-newrow {
  0%, 18%  { opacity: 0; transform: translateY(5px); }
  36%, 72% { opacity: 1; transform: none; }
  100%     { opacity: .35; transform: none; }
}

/* ── Acte 2 · la somme ── */
.eq-final { pointer-events: none; }

.eq-sum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
  font-size: clamp(76px, 13vw, 184px);
  font-weight: 680;
  line-height: .9;
  letter-spacing: -.045em;
  color: #f3f6fc;
  text-shadow: 0 28px 70px rgba(0, 0, 0, .45);
}
.eq-sum em { font-style: normal; font-size: .5em; font-weight: 420; color: #5f6f8c; }
.eq-hot {
  background: linear-gradient(120deg, #6fa7ff 0%, #a9cbff 26%, #2fb8ab 58%, #6fa7ff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: eq-shimmer 5.5s ease-in-out infinite;
}
@keyframes eq-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.eq-lead {
  max-width: 44ch;
  margin-inline: auto;
  margin-top: clamp(22px, 3.2vh, 36px);
  font-size: clamp(17px, 1.85vw, 23px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.03em;
  color: #d5deee;
}

/* ══════════ CLIENTS ══════════ */
.cps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.cps article {
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}
.cps span {
  font-size: 11px;
  font-weight: 620;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6fa7ff;
}
.cps h3 { margin-top: 14px; font-size: 20px; font-weight: 630; letter-spacing: -.03em; }
.cps p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #8b98af; }
.cps .is-solution {
  border-color: rgba(111, 167, 255, .26);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(59, 125, 221, .16), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}
.cps .is-solution p { color: #b3c2da; }

.profiles-intro {
  /* La respiration au-dessus vient du margin-bottom de .cps */
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7f8ca4;
}

.profiles { display: grid; }
.profiles li {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.profiles li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.profiles h3 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 620; letter-spacing: -.03em; }
.profiles p { margin-top: 8px; font-size: 15px; color: #8b98af; }

/* ══════════ CABINET ══════════ */
.cabinet-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(44px, 8vw, 120px); }
.cabinet-intro { position: sticky; top: 140px; align-self: start; }
.cabinet-intro > p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; letter-spacing: -.026em; color: #3e4b62; }
.cabinet-cta { justify-content: flex-start; margin-top: 32px; }

.team { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.faces { display: flex; padding-left: 12px; }
.faces i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  border: 3px solid var(--day);
  border-radius: 50%;
  background: #dbe4f2;
  color: #2c3d5e;
  font-style: normal;
  font-size: 13px;
  font-weight: 660;
}
.faces i:nth-child(2) { background: #d3eae6; color: #1d5b53; }
.faces i:nth-child(3) { background: #e0dcf3; color: #3d3470; }
.team p { font-size: 13px; color: #6a7689; }
.team b { color: var(--ink); font-weight: 620; }

.method li {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: start;
  gap: 20px;
  padding: clamp(26px, 2.6vw, 36px) 0;
  border-top: 1px solid rgba(10, 24, 55, .1);
}
.method li:last-child { border-bottom: 1px solid rgba(10, 24, 55, .1); }
.method h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.032em; }
.method p { margin-top: 10px; font-size: 15px; color: #63708a; }

/* Durée de chaque étape : l'engagement de délai, lisible d'un coup d'œil */
.m-time {
  align-self: center;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #35486d;
  background: rgba(36, 88, 168, .07);
  border: 1px solid rgba(36, 88, 168, .16);
  border-radius: 999px;
}
.m-time.is-loop {
  color: #1b6a58;
  background: rgba(31, 138, 109, .09);
  border-color: rgba(31, 138, 109, .2);
}

.method-total {
  margin-top: clamp(22px, 2.4vw, 30px);
  font-size: 15px;
  color: #63708a;
}
.method-total b { color: var(--ink); font-weight: 640; }

/* ══════════ SORTIE DE PAGE ══════════ */
/* Sortie de page + pied de page : une seule surface sombre, un seul grain,
   un seul champ d'anneaux. Deux fonds distincts cassaient net sous le CTA. */
.outro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Teinte de la clôture conservée à l'identique sur les deux tiers hauts ;
     seul le bas du pied de page s'enfonce, sans créer de raccord visible. */
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(31, 84, 168, .16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night) 62%, var(--night-deep) 100%);
}
/* Grain en deux passes, comme sur l'ancienne section de clôture */
.outro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .5;
  mix-blend-mode: overlay;
}
.outro.rise {
  margin-top: calc(var(--radius-xl) * -1);
  padding-top: var(--radius-xl);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.closing {
  position: relative;
  z-index: 2;
  padding-block: clamp(130px, 18vw, 240px);
}
/* Filet de séparation : il marque le passage au pied de page sans rompre le fond */
.closing + .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 4vw, 40px);
  right: clamp(22px, 4vw, 40px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07) 22%, rgba(255, 255, 255, .07) 78%, transparent);
}

.outro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.outro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .4;
  mix-blend-mode: overlay;
}
/* Un seul champ d'anneaux pour toute la sortie de page, centré sur le message.
   32 % tombe juste derrière le titre, avec ou sans bloc de clôture. */
.rings-closing {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 0;
  height: 0;
}
.rings-closing .ring {
  animation: ring-swell 22s var(--ease-soft) infinite alternate;
}
.rings-closing .ring.r1 { width: min(1080px, 104vw); height: min(1080px, 104vw); opacity: .34; }
.rings-closing .ring.r2 { width: min(760px, 76vw);  height: min(760px, 76vw);  opacity: .46; animation-delay: -7s; }
.rings-closing .ring.r3 { width: min(470px, 48vw);  height: min(470px, 48vw);  opacity: .6;  animation-delay: -14s; }

@keyframes ring-swell {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.055); }
}

.closing-inner { position: relative; z-index: 2; text-align: center; }
.closing-inner .display { text-shadow: 0 22px 60px rgba(0, 0, 0, .35); }
.closing-inner .lead { max-width: 560px; margin: 34px auto 0; }
.closing-inner .hero-cta { margin-top: 42px; }

/* ══════════ FOOTER ══════════ */
/* Le fond appartient à .outro : le pied de page ne porte que son rythme */
.footer { position: relative; z-index: 2; padding: 84px 0 30px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) 2fr;
  gap: clamp(44px, 7vw, 110px);
  padding-bottom: 56px;
}
.footer-brand p { max-width: 320px; margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: #56637c; }
.footer-brand .link { margin-top: 18px; font-size: 13px; color: #8b97ac; }

.footer-mesh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 30px; }
.footer-mesh nav { display: grid; align-content: start; gap: 11px; }
.footer-mesh h2 {
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #4d5a72;
}
.footer-mesh a { font-size: 13.5px; color: #8b97ac; transition: color .25s ease; }
.footer-mesh a:hover { color: #fff; }

.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11px;
  color: #47546c;
}
.footer-legal a { transition: color .25s ease; }
.footer-legal a:hover { color: #8b97ac; }
.footer-legal span:last-child { text-align: right; }

/* ══════════ HÉRO DE PAGE INTÉRIEURE ══════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  /* Respiration franche : le titre doit flotter dans le cadre, pas le remplir */
  padding: calc(var(--nav-h) + clamp(98px, 13.5vw, 190px)) 0 clamp(110px, 14.5vw, 196px);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
/* Hero de page : le titre descend plus bas, les cercles reculent d'autant */
.page-hero .ring { top: 94%; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .display { font-size: clamp(44px, 6.4vw, 96px); }
.page-hero .lead { max-width: 60ch; margin-top: clamp(26px, 2.4vw, 34px); }
.page-hero .hero-cta { justify-content: flex-start; margin-top: clamp(38px, 3.4vw, 50px); }

.page-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(52px, 7vw, 88px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .08);
}
.page-hero-facts li {
  display: grid;
  gap: 7px;
  padding: 22px 24px 24px;
  background: rgba(6, 13, 27, .82);
  backdrop-filter: blur(8px);
}
.page-hero-facts b { font-size: 15px; font-weight: 620; letter-spacing: -.03em; }
.page-hero-facts span { font-size: 13px; color: #7b88a2; }

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(62px, 8vw, 108px)) 0 clamp(64px, 8vw, 104px);
}
.legal-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.legal-hero .title { font-size: clamp(36px, 4.6vw, 64px); }
.legal-hero .body { margin-top: 16px; color: #7b88a2; }

/* Page à propos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.about-block h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 630; letter-spacing: -.04em; }
.about-block p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #5a677e; }

/* ══════════ BOUTONS SECONDAIRES ══════════ */
.btn-ghost {
  border: 1px solid rgba(10, 24, 55, .16);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(10, 24, 55, .34); background: rgba(10, 24, 55, .04); transform: translateY(-2px); }
.is-dark .btn-ghost { border-color: rgba(255, 255, 255, .2); color: #eef2fa; }
.is-dark .btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.btn-quiet { min-height: 46px; padding-inline: 22px; font-size: 13.5px; }

.inline-more { margin-top: 26px; font-size: 15px; }

.is-dark .ticks li { color: #97a3ba; }
.is-dark .ticks li::before { background: rgba(111, 167, 255, .16); }

.benefit-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ══════════ SCÈNE ÉPINGLÉE GÉNÉRIQUE ══════════
   État de base : pile statique, lisible sans JS et sur petit écran.
   Le JS ajoute .is-pinned quand la largeur le permet. */
.pin-scene:not(.is-pinned) { padding-block: clamp(90px, 12vw, 150px); }
.pin-scene:not(.is-pinned) .scene-stage {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
}
.pin-scene:not(.is-pinned) .scene-title {
  position: relative;
  inset: auto;
  margin-bottom: clamp(40px, 6vw, 70px);
  padding-inline: clamp(22px, 4.4vw, 56px);
}
.pin-scene:not(.is-pinned) .pin-figure {
  position: relative;
  inset: auto;
  display: block;
  padding-inline: clamp(22px, 4.4vw, 56px);
}
.pin-scene:not(.is-pinned) .pin-rail { display: none; }
.pin-scene:not(.is-pinned) .pin-cards { display: grid; gap: 22px; height: auto; }
.pin-scene:not(.is-pinned) .pin-card,
.pin-scene:not(.is-pinned) .why-step { position: relative; inset: auto; opacity: 1; }
.pin-scene:not(.is-pinned) .pin-card { max-height: none; }
.pin-scene:not(.is-pinned) .why-step { grid-template-columns: 1fr; gap: 26px; }

.is-pinned .pin-figure {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  top: clamp(96px, 13vh, 128px);
  bottom: clamp(56px, 8vh, 88px);
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
}
.is-pinned .pin-figure-wide { grid-template-columns: 96px 1fr; }

.pin-rail { display: grid; gap: 2px; align-content: center; }
.pin-rail li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: .04em;
  color: #97a3ba;
  opacity: .34;
  transition: opacity .45s var(--ease), color .45s var(--ease);
}
.pin-rail li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%) scaleX(.5);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.is-light .pin-rail li { color: #6b7890; }
.pin-rail li.is-on { opacity: 1; color: var(--blue-light); }
.is-light .pin-rail li.is-on { color: var(--blue); }
.pin-rail li.is-on::before { transform: translateY(-50%) scaleX(2.6); }
.pin-rail li.is-done { opacity: .62; }

.pin-cards { position: relative; height: 100%; }
.pin-card,
.why-step { align-content: center; }
.is-pinned .pin-card,
.is-pinned .why-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Les étapes sont empilées : seule l'étape vive reçoit les clics */
  pointer-events: none;
}
.is-pinned .pin-card.is-live,
.is-pinned .why-step.is-live { pointer-events: auto; }

/* ══════════ CARTE D'OFFRE EN SCÈNE ══════════ */
.pin-card {
  display: grid;
  gap: 20px;
  /* inset + height auto + margin auto : centrage sans transform, GSAP garde la main */
  height: max-content;
  max-height: 100%;
  max-width: 760px;
  margin: auto;
  padding: clamp(28px, 3.4vw, 46px);
  border: 1px solid rgba(10, 24, 55, .09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 40px 90px -50px rgba(10, 24, 55, .34);
  backdrop-filter: blur(20px);
}
.is-dark .pin-card {
  border-color: rgba(255, 255, 255, .11);
  background: rgba(var(--sink-rgb), .74);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .8);
}

.pc-head { display: flex; align-items: center; gap: 16px; }
.pc-head .app-icon { flex: 0 0 auto; font-size: 12px; font-weight: 640; letter-spacing: .04em; color: #fff; }
.pc-head h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 640; letter-spacing: -.03em; }
.pc-head p { margin-top: 2px; font-size: 14.5px; color: #6b7890; }
.is-dark .pc-head p { color: #8b98af; }

.pc-price { display: flex; align-items: baseline; gap: 8px; }
.pc-price em { font-size: 12.5px; font-style: normal; letter-spacing: .04em; color: #8b96a9; }
.pc-price b { font-size: clamp(30px, 3.6vw, 46px); font-weight: 660; letter-spacing: -.032em; }
.pc-price i { font-size: 15px; font-style: normal; color: #8b96a9; }

.pc-pitch { max-width: 54ch; font-size: 16px; line-height: 1.6; color: #5a677e; }
.is-dark .pc-pitch { color: #9aa7be; }

.pc-list { display: grid; gap: 10px; }
.pc-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.5; color: #45526a; }
.is-dark .pc-list li { color: #97a3ba; }
.pc-list li::before {
  content: "";
  position: absolute;
  top: .52em;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(59, 125, 221, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7ddd' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.pc-addon {
  padding: 11px 16px;
  border: 1px dashed rgba(59, 125, 221, .3);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--blue);
}
.is-dark .pc-addon { border-color: rgba(111, 167, 255, .28); color: var(--blue-light); }

.pc-best { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14.5px; color: #45526a; }
.is-dark .pc-best { color: #97a3ba; }
.pc-best span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 24, 55, .06);
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7890;
}
.is-dark .pc-best span { background: rgba(255, 255, 255, .08); color: #97a3ba; }

/* Écrans courts : la carte d'offre est haute (prix, liste, encart, CTA).
   On resserre par paliers plutôt que de laisser le contenu déborder du cadre. */
@media (max-height: 900px) and (min-width: 641px) {
  .is-pinned .pin-card { gap: 14px; padding: clamp(24px, 2.6vw, 30px); }
  .is-pinned .pc-price b { font-size: clamp(28px, 2.8vw, 36px); }
  .is-pinned .pc-list { gap: 7px; }
  .is-pinned .pc-addon { padding: 8px 14px; }
  .is-pinned .pc-hint { display: none; }
}
@media (max-height: 780px) and (min-width: 641px) {
  .is-pinned .pin-card { gap: 11px; padding: 22px 24px; }
  .is-pinned .pc-head h3 { font-size: clamp(22px, 2.4vw, 28px); }
  .is-pinned .pc-pitch { font-size: 14.5px; }
  .is-pinned .pc-best { display: none; }
}

/* ══════════ PIED DE CARTE D'OFFRE ══════════ */
.pc-foot {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid rgba(10, 24, 55, .08);
}
.pc-foot .btn { flex: 0 0 auto; }
.pc-hint { flex: 1 1 220px; font-size: 12.5px; line-height: 1.45; color: #6b7890; }
.is-dark .pc-foot { border-top-color: rgba(255, 255, 255, .1); }
.is-dark .pc-hint { color: #8b98af; }

/* ══════════ FAQ ══════════ */
.faq-list { display: grid; gap: 2px; border-top: 1px solid rgba(10, 24, 55, .1); }
.faq-list details { border-bottom: 1px solid rgba(10, 24, 55, .1); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 580;
  letter-spacing: -.03em;
  cursor: pointer;
  list-style: none;
  transition: color .3s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7890' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.faq-list summary:hover { color: var(--blue); }
.faq-list details[open] summary::after { transform: rotate(45deg); }

/* L'ouverture est instantanée par nature : on adoucit au moins l'apparition */
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.faq-list details[open] p { animation: faq-reveal .42s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .faq-list details[open] p { animation: none; }
}
/* Réponses développées : on borne la mesure, sinon les lignes deviennent
   illisibles sur un écran large. */
.faq-list details p {
  max-width: 76ch;
  padding: 0 60px 28px 4px;
  font-size: 15.5px;
  line-height: 1.68;
  color: #5a677e;
}

/* ══════════ MANIFESTE · CONSTATS ══════════ */
.why-step { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px, 5vw, 76px); align-items: center; }

.why-meta { display: flex; align-items: center; gap: 16px; }
.why-num {
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 250;
  letter-spacing: -.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111, 167, 255, .42);
}
.why-copy h3 { margin-top: 24px; font-size: clamp(30px, 4.4vw, 62px); font-weight: 650; letter-spacing: -.034em; word-spacing: .03em; line-height: 1.06; }
.why-lead { margin-top: 22px; max-width: 32ch; font-size: clamp(18px, 2vw, 27px); font-weight: 440; line-height: 1.38; letter-spacing: -.03em; color: #c3cfe4; }
.why-text { margin-top: 20px; max-width: 46ch; font-size: 16px; line-height: 1.72; color: #8b98af; }

.why-viz {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  height: clamp(240px, 46vh, 440px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  /* Panneau creusé : lumière rasante en haut, ombre au fond, vignette aux bords */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(59, 125, 221, .12), transparent 62%),
    radial-gradient(100% 70% at 50% 118%, rgba(0, 0, 0, .3), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018) 46%, rgba(0, 0, 0, .08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    inset 0 26px 54px -34px rgba(0, 0, 0, .5),
    0 30px 64px -44px rgba(0, 0, 0, .8);
  overflow: hidden;
}
/* Grain, même recette que les mockups de l'accueil */
.why-viz::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background-image: var(--grain);
  opacity: .24;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.why-viz > * { position: relative; z-index: 2; }

.wv-label {
  font-size: 11.5px;
  letter-spacing: .03em;
  text-align: center;
  color: #8593ad;
}

/* 01 · donnée figée — une fiche qui n'a pas bougé depuis un an */
.wv-sheet {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 300px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -28px rgba(0, 0, 0, .8);
}
.wv-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wv-sheet-head b { font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: #b7c3d8; }
.wv-sheet-head em {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .06em;
  color: #8593ad;
}

.wv-rows { display: grid; gap: 11px; }
.wv-rows i { height: 11px; border-radius: 5px; background: rgba(255, 255, 255, .11); }
.wv-rows i:nth-child(1) { width: 100%; }
.wv-rows i:nth-child(2) { width: 74%; }
.wv-rows i:nth-child(3) { width: 88%; }
.wv-rows i:nth-child(4) { width: 56%; }

.wv-stale {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: #e0a25a;
}
.wv-lock {
  padding: 6px 14px;
  border: 1px solid rgba(224, 154, 74, .34);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e0a25a;
}

/* 02 · boucle */
.wv-loop { position: relative; width: 152px; height: 152px; }
.wv-loop i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(111, 167, 255, .2);
  border-top-color: rgba(111, 167, 255, .62);
  border-radius: 50%;
  animation: wv-spin 3.4s linear infinite;
}
.wv-loop i:nth-child(2) { inset: 22px; animation-duration: 2.4s; animation-direction: reverse; }
.wv-loop i:nth-child(3) { inset: 44px; animation-duration: 1.7s; }
@keyframes wv-spin { to { transform: rotate(360deg); } }

/* 03 · dispersion */
.wv-scatter { position: relative; width: 268px; height: 152px; }
.wv-scatter i {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  animation: wv-drift 5s var(--ease-soft) infinite;
}
.wv-scatter i:nth-child(1) { top: 4%;  left: 2%;  animation-delay: 0s; }
.wv-scatter i:nth-child(2) { top: 46%; left: 20%; animation-delay: .5s; }
.wv-scatter i:nth-child(3) { top: 8%;  left: 42%; animation-delay: 1s; }
.wv-scatter i:nth-child(4) { top: 62%; left: 54%; animation-delay: 1.5s; }
.wv-scatter i:nth-child(5) { top: 26%; left: 74%; animation-delay: 2s; }
.wv-scatter i:nth-child(6) { top: 70%; left: 84%; animation-delay: 2.5s; }
@keyframes wv-drift {
  0%, 100% { transform: translate(0, 0); opacity: .5; }
  50%      { transform: translate(5px, -6px); opacity: 1; }
}

/* 04 · portes */
.wv-doors { display: flex; align-items: flex-end; gap: 12px; height: 132px; }
.wv-doors i {
  width: 32px;
  height: 86px;
  border: 1px solid rgba(224, 154, 74, .26);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(224, 154, 74, .16), transparent);
  transform-origin: left bottom;
  animation: wv-door 4.2s var(--ease-soft) infinite;
}
.wv-doors i:nth-child(2) { animation-delay: .4s; }
.wv-doors i:nth-child(3) { animation-delay: .8s; }
.wv-doors i:nth-child(4) { animation-delay: 1.2s; }
.wv-doors i:nth-child(5) { animation-delay: 1.6s; }
@keyframes wv-door {
  0%, 60%, 100% { transform: perspective(220px) rotateY(0deg); }
  30%           { transform: perspective(220px) rotateY(-52deg); }
}

/* 05 · 22 outils */
.wv-stack { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; width: 100%; max-width: 264px; }
.wv-stack i {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  animation: wv-blink 6s var(--ease-soft) infinite;
}
.wv-stack i:nth-child(3n)   { animation-delay: .6s; }
.wv-stack i:nth-child(4n)   { animation-delay: 1.4s; }
.wv-stack i:nth-child(5n)   { animation-delay: 2.2s; }
.wv-stack i:nth-child(7n)   { animation-delay: 3s; }
@keyframes wv-blink {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; border-color: rgba(111, 167, 255, .3); }
}

/* 06 · local / cloud — la répartition, chiffrée et légendée */
.wv-sov { display: grid; gap: 16px; width: 100%; max-width: 316px; }
.wv-split { display: flex; height: 42px; gap: 5px; }
.wv-split i {
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-style: normal;
}
.wv-split i b { font-size: 13px; font-weight: 660; letter-spacing: -.02em; }
.wv-local {
  flex: 0 0 79%;
  background: linear-gradient(100deg, var(--blue), var(--blue-light));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 0 30px -8px rgba(111, 167, 255, .65);
  color: #fff;
}
.wv-cloud {
  flex: 1;
  border: 1px dashed rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .06);
  color: #97a3ba;
  animation: wv-pulse 2.8s var(--ease-soft) infinite;
}
.wv-split .wv-cloud b { font-size: 11.5px; }

.wv-sov-legend { display: flex; justify-content: space-between; gap: 14px; }
.wv-sov-legend em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-style: normal;
  color: #8593ad;
}
.wv-sov-legend em::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.wv-sov-legend .d-local::before { background: var(--blue-light); box-shadow: 0 0 8px rgba(111, 167, 255, .7); }
.wv-sov-legend .d-cloud::before { background: rgba(255, 255, 255, .26); }
@keyframes wv-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* 07 · équipe — un vrai panneau de roster, pas trois pastilles empilées */
.wv-crew {
  display: grid;
  gap: 2px;
  width: 100%;
  max-width: 312px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 22px 44px -30px rgba(0, 0, 0, .85);
}

.wv-crew-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.wv-crew-head b {
  font-size: 11px;
  font-weight: 620;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b7c3d8;
}
.wv-crew-head em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: .04em;
  color: #4fc4a8;
}
.wv-crew-head em::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb8ab;
  box-shadow: 0 0 8px rgba(47, 184, 171, .9);
  animation: wv-live 2.4s var(--ease-soft) infinite;
}
@keyframes wv-live { 0%, 100% { opacity: 1; } 50% { opacity: .32; } }

.wv-row {
  display: grid;
  grid-template-columns: 30px 1fr 8px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0);
  transition: background .5s var(--ease);
  animation: wv-row-in 8s var(--ease-soft) infinite;
}
.wv-row:nth-of-type(2) { animation-delay: 1s; }
.wv-row:nth-of-type(3) { animation-delay: 2s; }
.wv-row:nth-of-type(4) { animation-delay: 3s; }
@keyframes wv-row-in {
  0%, 44%, 100% { background: rgba(255, 255, 255, 0); }
  12%, 32%      { background: rgba(255, 255, 255, .07); }
}

.wv-row b {
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -.012em;
  color: #c3cee0;
}
/* Pastille de présence, au bout de chaque ligne */
.wv-row em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(47, 184, 171, .85);
  box-shadow: 0 0 7px rgba(47, 184, 171, .55);
}
.wv-row:last-of-type em { background: rgba(255, 255, 255, .26); box-shadow: none; }

.wv-av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 640;
  color: #fff;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .22), 0 4px 10px -4px rgba(0, 0, 0, .6);
}
.wv-av.a1 { background: linear-gradient(135deg, #4d8ee6, #2458a8); }
.wv-av.a2 { background: linear-gradient(135deg, #2fb8ab, #187a90); }
.wv-av.a3 { background: linear-gradient(135deg, #8a83e2, #4f48a8); }
.wv-av.a4 { background: rgba(255, 255, 255, .1); color: #97a3ba; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* ══════════ COMBINAISON ══════════ */
.combo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.combo-grid li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 22px 26px;
  border: 1px solid rgba(10, 24, 55, .09);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.combo-grid li:hover { transform: translateY(-5px); border-color: rgba(59, 125, 221, .28); }
.combo-grid b { font-size: 19px; font-weight: 630; letter-spacing: -.035em; }
.combo-grid em { font-size: 13.5px; font-style: normal; color: #6b7890; }

.combo-note { margin-top: 38px; max-width: 62ch; font-size: 15px; line-height: 1.65; color: #5a677e; }
.is-dark .combo-note { color: #8b98af; }

/* ══════════ PRINCIPES ══════════ */
.principes-list { display: grid; gap: 1px; border-top: 1px solid rgba(255, 255, 255, .09); }
.principes-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.principes-list h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 620; letter-spacing: -.03em; }
.principes-list p { margin-top: 12px; max-width: 62ch; font-size: 15.5px; line-height: 1.65; color: #8b98af; }

/* ══════════ CYBERSÉCURITÉ ══════════ */
.secu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.secu-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid rgba(10, 24, 55, .09);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.secu-card:hover { transform: translateY(-5px); border-color: rgba(59, 125, 221, .26); }
.secu-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(59, 125, 221, .1);
  color: var(--blue);
}
.secu-ico svg { width: 21px; height: 21px; }
.secu-card h3 { font-size: 20px; font-weight: 630; letter-spacing: -.035em; }
.secu-card p { font-size: 14.5px; line-height: 1.6; color: #5a677e; }

/* ══════════ MÉTHODE SUR FOND SOMBRE ══════════ */
/* Variante sur fond sombre : filets, durées et total doivent tous basculer,
   sinon le filet haut et le total disparaissent dans le fond. */
.method-dark li { border-top-color: rgba(255, 255, 255, .1); }
.method-dark li:last-child { border-bottom-color: rgba(255, 255, 255, .1); }
.method-dark p { color: #8b98af; }
.method-dark .m-time {
  color: var(--blue-light);
  background: rgba(111, 167, 255, .1);
  border-color: rgba(111, 167, 255, .26);
}
.method-dark .m-time.is-loop {
  color: #6fd8b8;
  background: rgba(31, 138, 109, .14);
  border-color: rgba(31, 138, 109, .34);
}
.method-dark + .method-total { color: #8b98af; }
.method-dark + .method-total b { color: #eef2fa; }
.is-dark .cabinet-intro > p { color: #c3cfe4; }

/* ══════════ MENTIONS LÉGALES ══════════ */
.legal { padding-block: clamp(80px, 10vw, 130px); }
.legal-shell { display: grid; grid-template-columns: 240px 1fr; gap: clamp(36px, 6vw, 90px); }

.legal-toc { position: sticky; top: 120px; align-self: start; display: grid; gap: 10px; }
.legal-toc h2 {
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8b96a9;
}
.legal-toc a { font-size: 14px; color: #5a677e; transition: color .25s ease; }
.legal-toc a:hover { color: var(--blue); }

.legal-body { display: grid; gap: clamp(40px, 5vw, 62px); max-width: 74ch; }
.legal-body h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 640; letter-spacing: -.04em; }
.legal-body h3 { margin-top: 26px; font-size: 17px; font-weight: 620; letter-spacing: -.025em; }
.legal-body p { margin-top: 14px; font-size: 15.5px; line-height: 1.72; color: #5a677e; }

.legal-list { margin-top: 22px; display: grid; gap: 1px; border-top: 1px solid rgba(10, 24, 55, .09); }
.legal-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(10, 24, 55, .09);
  font-size: 14.5px;
  color: var(--ink);
}
.legal-list span { font-size: 12.5px; letter-spacing: .04em; color: #8b96a9; }
.legal-back { margin-top: 20px; }

/* ══════════ PAGES FORMULAIRE ══════════ */
.form-page {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 100px)) 0 clamp(80px, 10vw, 130px);
}
.form-page .hero-bg { position: absolute; inset: 0; z-index: 0; }


.form-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) 1.22fr;
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.form-aside { position: sticky; top: calc(var(--nav-h) + 34px); }
.form-aside .title { font-size: clamp(32px, 3.4vw, 48px); }
.form-aside .body { margin-top: 20px; max-width: 44ch; color: #9aa7be; }
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 11.5px;
  font-weight: 540;
  letter-spacing: .04em;
  color: #b3c2da;
}
.form-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px 2px rgba(111, 167, 255, .6);
  animation: dot-ping 2.6s var(--ease-soft) infinite;
}
.form-alt { margin-top: 16px; font-size: 13.5px; color: #7b88a2; }
.form-alt:first-of-type { margin-top: 30px; }
.form-alt a,
.qnav-note a {
  color: #c3cfe4;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.form-alt a:hover,
.qnav-note a:hover { border-bottom-color: #fff; }

.form-panel {
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  background: rgba(var(--sink-rgb), .74);
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, .9);
  backdrop-filter: blur(22px);
}

.form-done { display: grid; justify-items: start; gap: 16px; padding-block: clamp(20px, 4vw, 50px); }
.fd-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47, 184, 171, .14);
  color: var(--teal);
}
.fd-mark svg { width: 26px; height: 26px; }
.form-done h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 640; letter-spacing: -.04em; }
.form-done p { max-width: 46ch; font-size: 15.5px; line-height: 1.6; color: #9aa7be; }
.form-done .hero-cta { justify-content: flex-start; margin-top: 12px; }

/* Barre d'étapes */
.qform-context { margin-bottom: 22px; font-size: 13px; color: #8b98af; }
.qform-context b { color: #eef2fa; }
.qform-context a { color: var(--blue-light); border-bottom: 1px solid rgba(111, 167, 255, .3); }

.qform-top { margin-bottom: clamp(28px, 3.4vw, 42px); }
.qsteps { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.qsteps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #6b7890;
  transition: color .35s ease;
}
.qsteps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.qsteps li.is-on { color: #eef2fa; }
.qsteps li.is-on span { border-color: var(--blue-light); background: rgba(111, 167, 255, .16); color: var(--blue-light); }
.qsteps li.is-done span {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}
.qsteps li b { font-weight: 540; }

.qbar { margin-top: 18px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.qbar i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width .55s var(--ease);
}

/* Étapes */
.qstep { display: grid; gap: clamp(26px, 3vw, 38px); }
.qstep[hidden] { display: none; }
.qstep-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 640; letter-spacing: -.04em; }
.qstep-head p:last-child { margin-top: 8px; font-size: 14.5px; color: #8b98af; }
.qstep-kicker { margin-bottom: 10px; font-size: 11px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }

.qblock { border: none; }
.qblock legend { margin-bottom: 6px; font-size: 17px; font-weight: 580; letter-spacing: -.025em; color: #eef2fa; }
.qhelp { margin-bottom: 16px; font-size: 13.5px; line-height: 1.55; color: #7b88a2; }
.qhelp a { color: var(--blue-light); border-bottom: 1px solid rgba(111, 167, 255, .3); }
.qblock + .qblock { margin-top: 4px; }
.qblock.has-error legend { color: #ff9f9f; }

.qopts { display: grid; gap: 9px; margin-top: 14px; }
.qopts-multi { grid-template-columns: repeat(2, 1fr); }

.qopt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.qopt:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .055); }
.qopt input { position: absolute; opacity: 0; width: 0; height: 0; }
.qmark {
  flex: 0 0 auto;
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  transition: border-color .3s ease, background .3s ease;
}
.qopts-multi .qmark { border-radius: 6px; }
.qmark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.qopts-multi .qmark::after {
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.qtext { font-size: 14.5px; line-height: 1.4; color: #c3cfe4; }

.qopt:has(input:checked) {
  border-color: rgba(111, 167, 255, .5);
  background: rgba(59, 125, 221, .12);
}
.qopt:has(input:checked) .qmark { border-color: var(--blue-light); background: var(--blue); }
.qopt:has(input:checked) .qmark::after { opacity: 1; transform: scale(1); }
.qopt:has(input:checked) .qtext { color: #fff; }
.qopt:has(input:focus-visible) { outline: 2px solid rgba(111, 167, 255, .55); outline-offset: 2px; }
.qopt.is-locked { opacity: .42; cursor: not-allowed; }

/* Champs texte */
.qfields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qfield { display: grid; gap: 8px; }
.qfield-wide { grid-column: 1 / -1; }
.qfield label { font-size: 13px; font-weight: 540; letter-spacing: .01em; color: #b3c2da; }
.qfield label i { font-style: normal; color: var(--blue-light); }
.qfield label em { font-style: normal; color: #6b7890; }
.qfield input,
.qfield textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: #eef2fa;
  font: inherit;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: border-color .3s ease, background .3s ease;
}
.qfield textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.qfield input::placeholder,
.qfield textarea::placeholder { color: #5a677e; }
.qfield input:focus,
.qfield textarea:focus {
  outline: none;
  border-color: rgba(111, 167, 255, .55);
  background: rgba(255, 255, 255, .06);
}
.qfield.has-error input,
.qfield.has-error textarea { border-color: rgba(255, 120, 120, .5); }
.qfield-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin-top: 9px; font-size: 12.5px; color: #ff9f9f; }
.qblock .form-error::before,
.qfield .form-error::before { content: "↳ "; opacity: .6; }
.form-error-global {
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 120, 120, .3);
  border-radius: 12px;
  background: rgba(255, 120, 120, .08);
}

/* Navigation du formulaire */
.qnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: clamp(30px, 3.4vw, 42px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.qnav-note { flex: 1 1 100%; font-size: 12px; color: #6b7890; }
.qnav [hidden] { display: none; }
.qnav-single { justify-content: flex-start; }

/* Repli sans JS : toutes les étapes visibles, un seul envoi */
.qform:not(.is-wizard) .qform-top,
.qform:not(.is-wizard) [data-wizard-prev],
.qform:not(.is-wizard) [data-wizard-next] { display: none; }
.qform:not(.is-wizard) .qstep + .qstep {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(30px, 3.4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.qstep .qblock legend { display: block; }

/* ══════════ ÉTATS D'ANIMATION ══════════ */
html.motion [data-anim] { opacity: 0; }
html.motion [data-hero] { opacity: 0; }

html:not(.motion) .hero,
html:not(.motion) .scene { height: auto; }
html:not(.motion) .statement-inner,
html:not(.motion) .eq-stage { position: relative; inset: auto; }
html:not(.motion) .eq-act { position: relative; inset: auto; }
html:not(.motion) .eq-build { margin-bottom: 70px; }
html:not(.motion) .eq-fuse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: auto;
}
html:not(.motion) .eq-flow { display: none; }
html:not(.motion) .eq-src { opacity: 1; transform: none; }
@media (max-width: 640px) {
  html:not(.motion) .eq-fuse { grid-template-columns: 1fr; }
}
html:not(.motion) .hero-stage,
html:not(.motion) .scene-stage {
  position: relative;
  height: auto;
  min-height: 0;
  padding-block: 120px;
  border-radius: 0;
}
html:not(.motion) .hero-product { margin-top: 70px; margin-bottom: 0; }
html:not(.motion) .statement-text { color: var(--ink); }
html:not(.motion) .scene-title,
html:not(.motion) .scene-figure,
html:not(.motion) .scene-caption {
  position: relative;
  inset: auto;
  height: auto;
  padding-inline: clamp(22px, 4.4vw, 56px);
}
html:not(.motion) .scene-figure { margin-block: 70px; }
html:not(.motion) .caption { position: relative; inset: auto; opacity: 1; }
html:not(.motion) .scene-caption { display: grid; gap: 40px; text-align: center; }
html:not(.motion) .orbit { position: relative; inset: auto; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 18px; }
html:not(.motion) .orbit-core,
html:not(.motion) .orbit-node { position: relative; top: auto; left: auto; transform: none; }
html:not(.motion) .orbit-core { grid-column: 1 / -1; justify-self: center; }
html:not(.motion) .tool-cloud { display: none; }
html:not(.motion) .eq-sum,
html:not(.motion) .eq-lead { opacity: 1; visibility: visible; transform: none; }
html:not(.motion) .rings { display: none; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1080px) {
  .benefit-grid,
  .benefit-grid-6,
  .cps { grid-template-columns: 1fr; }
  .socle-grid,
  .cabinet-grid,
  .about-grid,
  .apps-bento { grid-template-columns: 1fr; }
  .app-card-feature { flex-direction: column; min-height: 0; }
  .app-card-feature .ac-text { flex: none; }
  .app-card-feature .ac-visual { min-height: 320px; }
  .app-card-feature .ac-visual .app-ui { position: relative; top: auto; left: auto; width: calc(100% - 32px); margin: 0 16px 20px; }
  .cabinet-intro { position: static; }
  .stack { margin-top: 20px; }
  .apps-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .window { aspect-ratio: 16 / 12.2; }
  .hero-product { --win-ratio: .7625; }
  .msg-live { display: none; }
  .assist-dock { display: none; }
}

@media (max-width: 820px) {
  .hero { height: 280svh; }
  .hero-product { --win-w: 92vw; }
  .win-nav span:nth-child(n+5) { display: none; }
  .system { height: 400svh; }
  .equation-scene { height: 260svh; }
  .profiles li { grid-template-columns: 44px 1fr; }
  .p-tag { grid-column: 2; justify-self: start; }

  .method li { grid-template-columns: 44px 1fr; }
  .m-time { grid-column: 2; justify-self: start; margin-top: 14px; }

  .tool-chip { gap: 10px; padding: 9px 16px 9px 10px; border-radius: 17px; }
  .tc-logo { width: 34px; height: 34px; border-radius: 10px; }
  .tc-logo svg { width: 18px; height: 18px; }
  .tc-txt b { font-size: 13px; }
  .tc-txt em { display: none; }

  .eq-fuse {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }
  .eq-flow { display: none; }
  .eq-src[data-eq="src-a"] { order: 1; }
  .eq-src[data-eq="src-b"] { order: 2; }
  .eq-src.is-born {
    order: 3;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(360px, 100%);
  }
}

@media (max-width: 640px) {
  :root { --radius-xl: 32px; }

  .hero-stage { min-height: 0; }
  .hero .display { font-size: clamp(38px, 11.4vw, 54px); }
  .hero .lead { margin-top: 16px; font-size: 15.5px; }
  .hero-cta { flex-direction: column; gap: 12px; margin-top: 22px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .link { font-size: 14px; }
  .hero-hint { display: none; }
  /* Écran étroit : le CTA empilé mange la hauteur, on montre moins de crête */
  .hero-product { --win-w: 92vw; --win-ratio: .84375; --peek: 16svh; }
  .window { border-radius: 14px; aspect-ratio: 16 / 13.5; }
  .win-bar { height: 44px; }
  .win-nav span:nth-child(n+4) { display: none; }
  .assist { padding: 12px 12px 14px; }
  .msg-user p, .msg-bubble { max-width: 92%; font-size: 12px; }
  .msg-next { display: none; }
  .assist-dock { display: none; }

  .statement { height: 195svh; }
  .statement-text { font-size: 26px; letter-spacing: -.04em; }

  .scene-stage { min-height: 620px; }
  .scene-figure { top: 76px; bottom: 222px; }
  .scene-caption { bottom: 46px; height: 164px; }
  .orbit-node { width: 88px; border-radius: 14px; gap: 6px; padding: 10px 8px; }
  .orbit-node b { font-size: 9.5px; }
  .orbit-core { width: 96px; gap: 6px; }
  .orbit-core b { font-size: 10px; }
  .orb-wrap { width: 64px; height: 64px; }
  .caption h3 { font-size: 24px; }
  .caption p { font-size: 13.5px; }

  .eq-sum { font-size: 62px; gap: 8px; }
  .eq-lead { font-size: 16px; }
  .eq-title { font-size: 30px; }
  .eq-fuse { grid-template-columns: 1fr; }
  .eq-src.is-born { width: 100%; }

  .app-tile { padding: 9px 16px 9px 9px; }
  .at-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
  .app-tile b { font-size: 13px; }
  .apps-cta { border-radius: 18px; }
  .apps-cta .btn { width: 100%; }

  .box3d { --bw: 178px; --bh: 82px; --bd: 112px; }
  .box3d-scene { width: 250px; height: 204px; }
  .box3d-shadow { width: 180px; }

  .viz { height: 136px; }
  .benefit h3 { margin-top: 18px; font-size: 20px; }

  .footer-legal { grid-template-columns: 1fr; gap: 10px; }
  .footer-legal span:last-child { text-align: left; }
  .cabinet-cta { width: 100%; }
}

/* Portables 13" à 16" : le titre se resserre pour laisser respirer le mockup */
@media (max-height: 1100px) and (min-width: 821px) {
  .hero-stage { min-height: 0; }
  .hero .display { font-size: clamp(40px, 4.8vw, 72px); }
  .hero .lead { margin-top: 20px; }
  .hero-cta { margin-top: 26px; }
  .hero-product { --win-w: min(880px, 72vw); }
  .msg-live { display: none; }
  .scene-stage { min-height: 600px; }
  .scene .title { font-size: clamp(36px, 4.4vw, 58px); }
  .caption h3 { font-size: clamp(23px, 2.4vw, 30px); }
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero .display { font-size: clamp(36px, 4.2vw, 58px); }
  /* Écran très bas : on montre un peu moins de crête pour garder de l'air */
  .hero-product { --win-w: min(760px, 66vw); --peek: 19svh; }
}

/* ══════════ RESPONSIVE · PAGES INTÉRIEURES ══════════ */
@media (max-width: 1180px) {
  .combo-grid { grid-template-columns: repeat(3, 1fr); }
  .legal-list li { grid-template-columns: 180px 1fr; }
}

@media (max-width: 1080px) {
  .benefit-grid-3,
  .secu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 46px; }
  .footer-mesh { grid-template-columns: repeat(2, 1fr); }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 10px 20px; }
}

@media (max-width: 980px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .form-aside .ticks { display: none; }
  /* Scène épinglée à l'étroit : le rail et le visuel cèdent la place au texte */
  .is-pinned .pin-figure { grid-template-columns: 1fr; gap: 0; }
  .is-pinned .pin-rail { display: none; }
  .is-pinned .why-step { grid-template-columns: 1fr; }
  .is-pinned .why-viz { display: none; }
}

@media (max-width: 820px) {
  .page-hero-facts { grid-template-columns: repeat(2, 1fr); }
  .combo-grid { grid-template-columns: repeat(2, 1fr); }
  .principes-list li { grid-template-columns: 1fr; gap: 10px; }
  .qsteps li b { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: calc(var(--nav-h) + 54px); }
  .page-hero .hero-cta { flex-direction: column; }
  .page-hero .hero-cta .btn { width: 100%; }
  .page-hero-facts { grid-template-columns: 1fr; }

  .why-step { gap: 18px; }
  .why-num { font-size: 40px; }
  .why-viz { height: 190px; padding: 20px; gap: 16px; }

  .combo-grid,
  .secu-grid,
  .benefit-grid-3,
  .qfields,
  .qopts-multi { grid-template-columns: 1fr; }

  .faq-list details p { padding-right: 10px; }
  .legal-list li { grid-template-columns: 1fr; gap: 4px; }
  .form-panel { padding: 22px 18px 26px; border-radius: var(--radius-md); }
  .qnav .btn { flex: 1 1 auto; }
  .footer-mesh { grid-template-columns: 1fr; gap: 26px; }
}

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