/* Hero du site V3 en code (20/10/2026) : texte validé sur la planche « Hero Wailo V3 » (fond lumière douce,
   un message en haut, les preuves en bas) + animation du kit (hero.js). Remplace les règles .hero de site.css. */
.hero.hx { position: relative; min-height: 100svh; overflow: hidden; font-family: var(--ff-title);
  background: radial-gradient(48% 62% at 74% 46%, #E1EAF8 0%, rgba(225,234,248,0) 100%), linear-gradient(180deg, #F6F8FC 0%, #F1F5FB 100%); }
.hx .hero__vis { position: absolute; z-index: 1; top: var(--nav-h); bottom: 132px; left: 50%; right: 24px; }
.hx .hero__inner { position: relative; z-index: 2; min-height: calc(100svh - 132px); display: flex; align-items: center; padding: var(--nav-h) 0 0 64px; }
.hx .hero__text { width: min(46vw, 720px); padding: 0; }
.hx h1 { margin: 0 0 clamp(16px, 3vh, 36px); font-weight: 800; font-size: clamp(36px, 3.75vw, 66px); line-height: 1.08; letter-spacing: -.028em; color: var(--navy); }
.hx h1 span { display: block; text-wrap: balance; } .hx h1 .l2 { color: var(--blue); }
/* Rythme vertical régulier qui suit la hauteur d'écran (avant : 26 / 18 / 64 px fixes, irrégulier sur grand écran, retour Vincent 23/10) */
/* Vincent 23/10 : sous le titre (la solution), le constat « 7 semaines » (= 300 h ÷ 40 h) en accroche lisible, puis le texte */
.hx .hero__pain { margin: 0 0 clamp(12px, 2.4vh, 28px); font-weight: 600; font-size: clamp(18px, 1.45vw, 24px); line-height: 1.4; color: var(--navy); max-width: 30em; text-wrap: balance; }
.hx .hero__pain b { font-weight: 700; color: var(--blue); white-space: nowrap; } .hx .hero__pain .nw { white-space: nowrap; }
.hx .lead { margin: 0 0 clamp(24px, 4.4vh, 52px); font-family: var(--ff-text); font-size: clamp(16px, 1.4vw, 21px); line-height: 1.6; color: var(--text); max-width: 30em; }
.hx .hero__act { display: inline-flex; flex-direction: column; align-items: center; }
.hx .btn { height: 56px; padding: 0 36px; }
.hx .hero__stores { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--ff-text); font-size: 14px; color: #7C8698; }
.hx .hero__badges { display: flex; gap: 12px; } .hx .hero__badges img { height: 40px; display: block; }
/* La bande des preuves : chiffres fins à gauche, partenaires à droite */
.hx .hero__proof { position: absolute; z-index: 3; left: 64px; right: 64px; bottom: 0; height: 132px; border-top: 1px solid rgba(44,62,80,.09); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hx .hero__stats { display: flex; gap: clamp(32px, 4.5vw, 72px); }
.hx .hero__stats b { display: block; font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.hx .hero__stats small { display: block; margin-top: 8px; font-family: var(--ff-text); font-size: 13px; line-height: 1.4; color: var(--text); }
.hx .hero__trust { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hx .hero__trust p { margin: 0; font-family: var(--ff-text); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #8A94A6; }
.hx .hero__logos { display: flex; align-items: center; gap: 28px; }
.hx .hero__logos img { height: 46px; width: auto; filter: brightness(0) invert(27%) sepia(14%) saturate(900%) hue-rotate(176deg); opacity: .7; }

/* Écrans d'ordinateur peu hauts (portables 13-14", fenêtre réduite) : depuis l'ajout de la ligne « 7 semaines » (23/10),
   le bloc de texte ne tenait plus au-dessus de la bande des chiffres. On resserre pour que tout reste dans le 1er écran. */
@media (min-width: 900px) and (max-height: 790px) {
  .hx h1 { font-size: clamp(32px, 3.1vw, 54px); margin-bottom: 16px; }
  .hx .hero__pain { font-size: clamp(16px, 1.25vw, 21px); margin-bottom: 8px; }
  .hx .lead { font-size: clamp(15px, 1.12vw, 18px); line-height: 1.55; margin-bottom: clamp(18px, 3vh, 32px); }
  .hx .btn { height: 50px; }
  .hx .hero__stores { margin-top: 12px; gap: 8px; }
}
@media (min-width: 900px) and (max-height: 680px) {
  .hx .hero__inner { padding-top: calc(var(--nav-h) + 8px); }
  .hx h1 { font-size: clamp(28px, 2.6vw, 44px); margin-bottom: 10px; }
  .hx .lead { margin-bottom: 16px; }
  .hx .hero__stores > span { display: none; }
  .hx .hero__badges img { height: 34px; }
}

@media (max-width: 899px) {
  .hero.hx { display: flex; flex-direction: column; min-height: 0; }
  .hx .hero__inner { order: 1; min-height: 0; padding: calc(var(--nav-h) + 32px) 16px 0; justify-content: center; text-align: center; }
  .hx .hero__text { width: 100%; }
  .hx h1 { font-size: clamp(30px, 8.6vw, 40px); margin-bottom: 16px; }
  .hx .lead { margin: 0 auto 28px; font-size: 16.5px; }
  .hx .hero__act { display: flex; } .hx .btn { width: 100%; }
  .hx .hero__vis { order: 2; position: relative; inset: auto; width: 100%; height: min(112vw, 560px); margin-top: 12px; }
  .hx .hero__proof { order: 3; position: relative; inset: auto; height: auto; margin: 0 16px; padding: 22px 0 32px; flex-direction: column; gap: 22px; }
  .hx .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; text-align: center; }
  .hx .hero__stats b { font-size: 26px; white-space: nowrap; } .hx .hero__stats small { font-size: 11.5px; } .hx .hero__stats br { display: none; }
  .hx .hero__logos img { height: 38px; }
  /* téléphone (21/10) : l'animation monte dans le 1er écran, entre le titre et le texte (avant : sous la ligne de flottaison).
     display: contents « ouvre » les blocs de texte pour pouvoir intercaler l'animation */
  .hx .hero__inner, .hx .hero__text { display: contents; }
  .hx h1 { order: 1; padding: calc(var(--nav-h) + 24px) 16px 0; margin: 0 0 4px; text-align: center; }
  .hx .hero__vis { order: 2; height: min(88vw, 470px); margin-top: 0; }
  .hx .hero__pain { order: 3; padding: 0 16px; margin: 8px 0 10px; text-align: center; font-size: 18px; }
  .hx .lead { order: 3; padding: 0 16px; text-align: center; }
  .hx .hero__act { order: 4; padding: 0 16px; flex-direction: column; align-items: stretch; text-align: center; }
  .hx .hero__proof { order: 5; }
}

/* ---------- Animation (coordonnées 1000 x 1080, comme la vidéo v8) ---------- */
.hx-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 1080px; transform-origin: 0 0; font-family: var(--ff-text); }
.hx-zoom, .hx-breathe, .hx-others { position: absolute; inset: 0; transform-origin: 0 0; }
.hx-breathe { transform-origin: 480px 480px; }
.hx-dev { position: absolute; }
.hx-dev.iph { left: calc(118px - 210px * .42); top: 150px; z-index: 6; }
.hx-dev.and { left: calc(118px - 207px * .42); top: 565px; }
/* De face, l'épaisseur et le dos ne se voient pas : on ne les dessine pas (plus léger).
   Surtout, les appareils restent en 2D : un appareil en 3D est « photographié » une fois à sa petite taille puis agrandi,
   d'où le flou de l'iPhone (retour Vincent 20/10), surtout pendant le zoom. En 2D, le texte est redessiné net à chaque taille. */
.hx-stage .wk-edge, .hx-stage .wk-back { display: none; }
.hx-stage .wk-slot { perspective: none; }
.hx-stage .wk-dev { transform: scale(var(--s)); transform-style: flat; transition: none; }
.hx-stage .wk-btn { transform: none !important; }
.hx-l { position: absolute; inset: 0; }
.hx-l.l-wai, .hx-l.l-scan, .hx-l.l-fiche { opacity: 0; }
.hx-l.l-call { z-index: 60; transform: translateY(100%); visibility: hidden; }

/* App Contacts du système (dessin neutre) */
.hx-sys { position: absolute; inset: 0; background: #fff; color: #111; }
.hx-sys-t { position: absolute; left: 20px; top: 71px; font-size: 30px; line-height: 34px; font-weight: 700; }
.hx-sys-s { position: absolute; left: 16px; right: 16px; top: 117px; height: 40px; border-radius: 12px; background: #F1F2F4; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: rgba(0,0,0,.4); font-size: 15px; }
.hx-sys-l { position: absolute; left: 0; right: 0; top: 171px; }
.hx-sys-g { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 2px 20px 0; background: #F7F8FA; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: rgba(0,0,0,.55); }
.hx-sys-g em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.hx-sys-r { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; }
.hx-sys-r div { min-width: 0; } .hx-sys-r b { display: block; font-size: 17px; line-height: 21px; font-weight: 700; white-space: nowrap; }
.hx-sys-r small { display: block; margin-top: 1px; font-size: 13px; line-height: 16px; color: rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-adr { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 15px; font-weight: 700; }
.hx-adr i { width: 44px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #111 70%, rgba(0,0,0,.25) 70%); }
.hx-glow { position: absolute; left: 10px; right: 10px; height: 56px; border-radius: 14px; background: rgba(74,144,226,.16); opacity: 0; z-index: 30; }
.hx-av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: #E8F2FC; color: #4C89E3; font-weight: 700; overflow: hidden; }
.hx-av.logo { background: none; border-radius: 30%; } .hx-av.logo svg { width: 100%; height: 100%; }

/* Scanner : flash et toucher */
.hx-flash { position: absolute; inset: 0; z-index: 50; background: #fff; opacity: 0; pointer-events: none; }
.hx-touch { position: absolute; z-index: 55; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.32); border: 2px solid rgba(255,255,255,.75); opacity: 0; }
.hx-stage .sc-card { transition: none; }

/* Le serveur Wailo */
.hx-card { position: absolute; width: 340px; border-radius: 28px; background: #fff; border: 1px solid rgba(44,62,80,.08); box-shadow: 0 30px 70px rgba(44,62,80,.14), 0 6px 18px rgba(44,62,80,.06); }
.hx-card .pill { position: absolute; left: 50%; top: -32px; height: 64px; transform: translateX(-50%); display: flex; align-items: center; padding: 0 26px; border-radius: 999px; background: #fff; box-shadow: 0 10px 26px rgba(44,62,80,.14); }
.hx-card .pill img { height: 40px; display: block; }
.hx-card .vr { position: absolute; left: 16px; right: 16px; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 14px; opacity: 0; }
.hx-card .vr div { min-width: 0; } .hx-card .vr b { display: block; font-size: 17px; line-height: 21px; color: var(--navy); white-space: nowrap; }
.hx-card .vr small { display: block; font-size: 13px; line-height: 17px; color: rgba(44,62,80,.6); white-space: nowrap; }
.hx-card .foot { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--ff-title); font-weight: 600; font-size: 16px; color: rgba(44,62,80,.55); opacity: 0; }

/* Fiches qui s'envolent */
.hx-chip { position: absolute; z-index: 8; display: none; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(44,62,80,.18); white-space: nowrap; }
.hx-chip b { font-size: 17px; color: var(--navy); }
.hx-burst { position: absolute; z-index: 7; display: none; border-radius: 999px; border-style: solid; }

/* Liaisons et prises */
.hx-links, .hx-plugs { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hx-plugs { z-index: 9; }
.hx-ln { fill: none; stroke: #4A90E2; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 1; }
.hx-pulse { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .18 1; opacity: 0; }
.hx-halo { fill: none; stroke: rgba(74,144,226,.35); stroke-width: 16; stroke-linecap: round; stroke-dasharray: .18 1; opacity: 0; }
.hx-plugs path { fill: #fff; stroke: #4A90E2; stroke-width: 3; } /* points pleins (21/10) */

/* Mail */
.hx-mail { position: absolute; left: 750px; top: 200px; width: 185px; height: 160px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(44,62,80,.08); box-shadow: 0 24px 60px rgba(44,62,80,.14); opacity: 0; }
.hx-mail .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(0,0,0,.06); background: #F6F7F9; }
.hx-mail .bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; } .hx-mail .bar i:nth-child(2) { background: #FEBC2E; } .hx-mail .bar i:nth-child(3) { background: #28C840; }
.hx-mail .bar b { margin-left: 8px; font-size: 12px; color: #333; }
.hx-mail .new { height: 0; overflow: hidden; opacity: 0; }
.hx-mail .in, .hx-mail .old { display: flex; gap: 8px; padding: 10px 10px; }
.hx-mail .in > div, .hx-mail .old > div { min-width: 0; flex: 1; }
.hx-mail .in p { margin: 0; display: flex; justify-content: space-between; gap: 3px; } .hx-mail .in p b { font-size: 12.5px; letter-spacing: -.1px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hx-mail time { flex: none; font-size: 10.5px; color: rgba(0,0,0,.4); }
.hx-mail span { display: block; margin-top: 2px; font-size: 11.5px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-mail .old { border-top: 1px solid rgba(0,0,0,.05); } .hx-mail .old i { width: 36px; height: 36px; border-radius: 50%; background: #F1F2F4; flex: none; }
.hx-mail .old b { display: block; font-size: 13px; font-weight: 600; color: rgba(0,0,0,.6); } .hx-mail .old span { color: rgba(0,0,0,.4); }

/* Ordinateur (tableau de bord Wailo, vu de loin) */
.hx-lap { position: absolute; left: 750px; top: 520px; width: 186px; opacity: 0; }
.hx-lap .scr { height: 116px; padding: 5px; border-radius: 9px 9px 2px 2px; background: #1C222C; box-shadow: 0 20px 44px rgba(44,62,80,.2); }
.hx-lap .pan { display: flex; height: 100%; border-radius: 4px; overflow: hidden; background: #F4F7FC; }
.hx-lap .side { width: 22px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 5px; }
.hx-lap .side img { width: 11px; height: 11px; border-radius: 3px; } .hx-lap .side i { width: 10px; height: 3px; border-radius: 2px; background: #D9E1EC; } .hx-lap .side i.on { background: #5A7BA5; }
.hx-lap .main { flex: 1; min-width: 0; padding: 5px 6px; background: #fff; margin: 4px; border-radius: 4px; }
.hx-lap .main p { margin: 0 0 3px; display: flex; justify-content: space-between; font-size: 6px; } .hx-lap .main p b { font-family: var(--ff-title); color: var(--navy); } .hx-lap .main p span { color: #5F6E87; }
.hx-lap .r { height: 15px; overflow: hidden; border-top: 1px solid #EEF1F5; }
.hx-lap .r > div { display: flex; align-items: center; gap: 4px; height: 15px; }
.hx-lap .r.cl { height: 0; opacity: 0; background: rgba(74,144,226,.1); }
.hx-lap .r span b { display: block; font-size: 5.5px; line-height: 6.5px; color: var(--navy); } .hx-lap .r span small { display: block; font-size: 4.5px; line-height: 5.5px; color: rgba(44,62,80,.6); white-space: nowrap; }
.hx-lap .r .hx-av { font-size: 3.5px !important; }
.hx-lap .base { height: 7px; margin: 0 -10px; border-radius: 1px 1px 8px 8px; background: linear-gradient(180deg, #D5DBE4, #AEB7C4); box-shadow: 0 6px 12px rgba(44,62,80,.12); }

/* Salesforce */
.hx-sf { position: absolute; left: 360px; top: 772px; width: 240px; height: 158px; padding: 12px 16px; border-radius: 20px; background: #fff; border: 1px solid rgba(44,62,80,.08); box-shadow: 0 24px 60px rgba(44,62,80,.14); opacity: 0; }
.hx-sf p { margin: 0; }
.hx-sf .h { display: flex; align-items: center; justify-content: space-between; } .hx-sf .h b { font-size: 15px; color: #111; }
.hx-sf .h em { font-style: normal; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #E8F2FC; color: #3F6090; opacity: 0; }
.hx-sf .f { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.hx-sf .f span { font-size: 11.5px; color: rgba(0,0,0,.45); } .hx-sf .f b { font-size: 13px; color: #111; opacity: 0; }
.hx-sf .ft { position: absolute; left: 16px; right: 16px; bottom: 9px; display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(0,0,0,.45); }
.hx-sf .ft b { font-family: var(--ff-title); font-weight: 600; color: var(--slate); }
.hx-sf .h b, .hx-sf .f b { font-weight: 700; }
/* Review 22/10 : pendant le zoom arrière (images ~380-440), le téléphone Android et la carte Salesforce, encore agrandis, débordaient du cadre
   par-dessus le paragraphe (téléphone, tablette) ou les chiffres (PC bas) : le cadre coupe ce qui dépasse en bas (les côtés et le haut restent libres pour les ombres) */
.hx .hero__vis { clip-path: inset(-60px -100vw 0 -100vw); }
