/* CashGui — page d'accueil v8 (refonte inspirée de Wise).
   Chargé après site.css, uniquement sur index.html. En-tête, pied de page,
   thème, bandeau défilant et prix dynamiques restent ceux de site.css / site.js. */

:root {
  --h-bg: #FFFFFF; --h-soft: #F2F6FA; --h-tint: #E0F6F9; --h-line: #E6EEF6;
  --h-ink: #060D18; --h-ink-line: #17263B; --h-pill-text: #004E59;
  --h-shadow: 0 40px 80px -40px rgba(6,13,24,.35), 0 2px 6px rgba(6,13,24,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --h-bg: #060D18; --h-soft: #0B1524; --h-tint: #0F2B47; --h-line: #17263B;
    --h-ink: #0B1524; --h-ink-line: #22344D; --h-pill-text: #7FF0FF;
    --h-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px #17263B;
  }
}
:root[data-theme="dark"] {
  --h-bg: #060D18; --h-soft: #0B1524; --h-tint: #0F2B47; --h-line: #17263B;
  --h-ink: #0B1524; --h-ink-line: #22344D; --h-pill-text: #7FF0FF;
  --h-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px #17263B;
}

body.home { background: var(--h-bg); font-size: 17px; }
.home .site-header { background: var(--header-bg); }
.h-wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.h-sec { padding-top: clamp(80px, 10vw, 140px); }
.h-sec-first { padding-top: clamp(72px, 9vw, 128px); }

/* -------- Typographie */
.h-title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; margin: 0; }
.h-title.big { font-size: clamp(40px, 5.2vw, 76px); line-height: .98; letter-spacing: -0.045em; }
.h-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.h-lead { margin-top: 24px; font-size: 19px; color: var(--text-2); max-width: 540px; }
.h-mark { background: #00E5FF; color: #060D18; padding: 0 .12em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* -------- Boutons */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 17px/1 var(--ui); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.h-btn:hover { transform: translateY(-2px); }
.h-btn:active { transform: scale(.97); }
.h-btn svg { width: 18px; height: 18px; }
.h-btn.lg { min-height: 60px; padding: 0 30px; }
.h-btn.cyan { background: #00E5FF; color: #060D18; }
.h-btn.cyan:hover { background: #7FF0FF; color: #060D18; }
.h-btn.ink { background: var(--text); color: var(--h-bg); }
.h-btn.ink:hover { background: var(--text-2); color: var(--h-bg); }
.h-btn.ghost { border-color: var(--border); color: var(--text); background: transparent; font-weight: 600; }
.h-btn.ghost:hover { background: var(--h-soft); color: var(--text); }
.h-btn.line-dark { border-color: #2A3C55; color: #fff; font-weight: 600; }
.h-btn.line-dark:hover { background: rgba(255,255,255,.06); color: #fff; }

/* -------- Hero */
.h-hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 72px); padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.h-hero-copy { flex: 1 1 520px; min-width: 0; }
.h-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--h-tint); color: var(--h-pill-text); font-size: 14px; font-weight: 600; }
.h-dot { width: 10px; height: 10px; border-radius: 50%; background: #00B8CC; animation: hPulse 2.2s ease-out infinite; }
.h-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.045em; color: var(--text); }
.h-hero .h-lead { margin-top: 32px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 520px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.h-checks { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--text-2); }
.h-checks li { display: flex; align-items: center; gap: 8px; }
.h-checks svg { width: 18px; height: 18px; color: var(--positive); }
.h-in { animation: hRise .9s cubic-bezier(.2,.75,.2,1) both; }
.h-in.d1 { animation-delay: .08s; } .h-in.d2 { animation-delay: .18s; } .h-in.d3 { animation-delay: .3s; } .h-in.d4 { animation-delay: .42s; }

/* -------- Simulateur d'objectif */
.h-calc-wrap { flex: 1 1 420px; min-width: 0; max-width: 520px; margin-inline: auto; position: relative; }
.h-float-chip { position: absolute; top: -22px; right: -10px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 18px 40px -18px rgba(6,13,24,.45); font-size: 13px; animation: hPop .7s cubic-bezier(.2,.8,.2,1) .6s both; }
.h-float-chip .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--positive-bg); color: var(--positive); display: flex; align-items: center; justify-content: center; }
.h-float-chip .ico svg { width: 16px; height: 16px; }
.h-float-chip small { display: block; color: var(--text-3); font-size: 12px; }
.h-float-chip b { font-family: var(--mono); }
.h-calc { background: var(--surface); border: 1px solid var(--h-line); border-radius: 32px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--h-shadow); }
.h-calc-title { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.h-calc-sub { margin: 4px 0 20px; font-size: 15px; color: var(--text-2); }
.h-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.h-preset { min-height: 40px; padding: 0 15px; border-radius: 999px; font: 600 14px var(--ui); cursor: pointer; background: transparent; color: var(--text); border: 1.5px solid var(--border); transition: background .2s, color .2s, border-color .2s; }
.h-preset:hover { border-color: var(--text); }
.h-preset[aria-pressed="true"] { background: var(--text); color: var(--h-bg); border-color: var(--text); }
.h-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.h-field { display: flex; align-items: center; gap: 12px; border: 2px solid var(--text); border-radius: 18px; padding: 6px 8px 6px 20px; transition: box-shadow .2s; }
.h-field:focus-within { box-shadow: 0 0 0 4px rgba(0,229,255,.35); }
.h-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 700 34px/1.2 var(--display); letter-spacing: -0.02em; color: var(--text); padding: 8px 0; }
.h-cur { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--h-soft); font-weight: 700; font-size: 15px; }
.h-cur i { width: 22px; height: 22px; border-radius: 50%; background: #060D18; color: #00E5FF; font: 800 11px/22px var(--ui); text-align: center; font-style: normal; }
.h-row { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.h-row output { font: 700 18px var(--display); }
.h-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer; --p: 14%;
  background: linear-gradient(90deg, #00E5FF 0, #00E5FF var(--p), var(--h-line) var(--p), var(--h-line) 100%); }
.h-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #060D18; border: 5px solid #00E5FF; }
.h-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #060D18; border: 5px solid #00E5FF; }
.h-range:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.h-result { margin-top: 24px; border-radius: 22px; background: #060D18; color: #fff; padding: 22px 24px; border: 1px solid #17263B; }
.h-result p { margin: 0; font-size: 14px; color: #A9B8CA; }
.h-result .big { margin: 2px 0 14px; font: 700 44px/1.1 var(--display); letter-spacing: -0.03em; color: #00E5FF; transition: transform .25s ease; }
.h-result .big.bump { transform: scale(1.04); }
.h-result .split { display: flex; gap: 12px; border-top: 1px solid #17263B; padding-top: 14px; font-size: 14px; }
.h-result .split div { flex: 1; }
.h-result .split span { display: block; color: #8A9CB2; }
.h-result .split b { font: 500 16px var(--mono); }
.h-calc .h-btn { width: 100%; margin-top: 14px; }
.h-calc-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* -------- Bande cyan avec téléphones */
.h-band-outer { padding-inline: clamp(12px, 2vw, 24px); }
.h-band { max-width: 1392px; margin: 0 auto; border-radius: clamp(28px, 4vw, 48px); background: #00E5FF; color: #060D18; overflow: hidden; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) 0; }
.h-band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: 1180px; margin: 0 auto 48px; }
.h-band-head .h-title { max-width: 680px; color: #060D18; }
.h-band-head p { max-width: 340px; color: #06303A; }
.h-phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); height: clamp(360px, 44vw, 600px); max-width: 1180px; margin: 0 auto; }
.h-phone { border-radius: 44px; border: 10px solid #060D18; overflow: hidden; background: #060D18; box-shadow: 0 50px 100px -30px rgba(6,13,24,.6); }
.h-phone img { width: 100%; height: auto; }
.h-phone.main { width: clamp(210px, 23vw, 320px); margin-bottom: -10%; position: relative; z-index: 1; animation: hFloat 7s ease-in-out infinite; }
.h-phone.side { width: clamp(170px, 19vw, 270px); margin-bottom: -18%; border-width: 9px; border-radius: 38px; animation: hFloat 8s ease-in-out -3s infinite; }

.home .ticker { margin-top: 24px; }

/* -------- Cartes produit */
.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 48px; }
.h-card { display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--h-soft); transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease, opacity .8s; }
.h-card:hover { color: var(--text); transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(6,13,24,.35); }
.h-card.tint { background: var(--h-tint); }
.h-card.ink { background: #060D18; color: #fff; border: 1px solid var(--h-ink-line); }
.h-card.ink:hover { color: #fff; }
.h-card.ink .h-kicker { color: #00E5FF; }
.h-card.ink p { color: #A9B8CA; }
.h-card-body { padding: 32px 32px 0; }
.h-card h3 { margin: 8px 0 10px; font: 700 30px/1.1 var(--display); letter-spacing: -0.03em; }
.h-card p { color: var(--text-2); }
.h-card .h-kicker { margin: 0; }
.h-card-shot { margin-top: auto; padding: 28px 40px 0; height: 300px; overflow: hidden; display: flex; justify-content: center; }
.h-card-shot img { width: 230px; height: auto; border-radius: 30px 30px 0 0; border: 8px solid #060D18; border-bottom: 0; transition: transform .6s cubic-bezier(.2,.75,.2,1); }
.h-card.ink .h-card-shot img { border-color: #17263B; }
.h-card:hover .h-card-shot img { transform: translateY(-8px) scale(1.03); }

.h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 20px; border: 1px solid var(--h-line); border-radius: 32px; overflow: hidden; }
.h-stats > div { padding: 28px 32px; border-right: 1px solid var(--h-line); margin-right: -1px; }
.h-stats b { display: block; font: 700 48px/1 var(--display); letter-spacing: -0.04em; }
.h-stats span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* -------- Outils */
.h-tools-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.h-tools-head p { max-width: 380px; color: var(--text-2); }
.home .grid-3.h-tools { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .home .grid-3.h-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .home .grid-3.h-tools { grid-template-columns: 1fr; } }
.home .h-tools .card { background: var(--h-soft); border: 0; border-radius: 28px; padding: 28px; box-shadow: none; }
.home .h-tools .card h3 { margin-top: 18px; font: 700 21px/1.2 var(--display); letter-spacing: -0.02em; }
.home .h-tools .card p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.home .h-tools .tile { width: 52px; height: 52px; border-radius: 16px; background: var(--h-tint); color: var(--accent); }

/* -------- Apprendre */
.h-split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.h-split > * { flex: 1 1 440px; min-width: 0; }
.h-guide { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 16px 20px 16px 16px; border-radius: 22px; background: var(--h-soft); max-width: 540px; }
.h-guide img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.h-guide p { font-size: 15px; color: var(--text-2); }
.h-guide b { color: var(--text); }
.h-split .h-btn { margin-top: 32px; }
.h-path { border-radius: 36px; background: #060D18; color: #fff; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--h-ink-line); }
.h-path > p { margin-bottom: 18px; font-size: 14px; color: #8A9CB2; }
.h-path ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.h-path li { padding: 18px 20px; border-radius: 20px; background: #0B1524; border: 1px solid #17263B; }
.h-path li > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.h-path .st-done { color: #2EE6A8; } .h-path .st-now { color: #00E5FF; } .h-path .st-next { color: #8A9CB2; }
.h-bar { height: 8px; border-radius: 99px; background: #17263B; margin-top: 12px; overflow: hidden; }
.h-bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.6s cubic-bezier(.2,.75,.2,1) .2s; }
.h-path.in .h-bar i, .h-path:not(.reveal) .h-bar i { width: var(--w); }
.h-path > .h-points { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 16px; border-radius: 999px; background: #00E5FF; color: #060D18; font-weight: 700; font-size: 15px; }
.h-points svg { width: 18px; height: 18px; }

/* -------- Bourse */
.h-dark { max-width: 1392px; margin: 0 auto; border-radius: clamp(28px, 4vw, 48px); background: #060D18; color: #fff; overflow: hidden; border: 1px solid var(--h-ink-line);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 80px) 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.h-dark-copy { flex: 1 1 440px; min-width: 0; padding-bottom: clamp(40px, 6vw, 88px); }
.h-dark .h-kicker { color: #00E5FF; }
.h-dark .h-lead { color: #A9B8CA; }
.h-dark .h-lead a { color: #00E5FF; }
.h-legal { margin-top: 32px; max-width: 540px; font-size: 12.5px; line-height: 1.5; color: #8A9CB2; }
.h-dark-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; position: relative; }
.h-dark-visual::before { content: ""; position: absolute; inset: 10% 0 0; background: radial-gradient(closest-side, rgba(0,229,255,.28), rgba(0,229,255,0)); pointer-events: none; }
.h-dark-visual .h-phone { width: clamp(240px, 24vw, 330px); border-color: #17263B; border-bottom: 0; border-radius: 46px 46px 0 0; position: relative; box-shadow: none; }
.h-dark-visual .h-phone img { margin-bottom: -22%; }

/* -------- Confiance */
.h-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.h-trust > div { padding: 32px; border-radius: 28px; border: 1px solid var(--h-line); }
.h-trust .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--h-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.h-trust .ico svg { width: 26px; height: 26px; }
.h-trust h3 { margin: 20px 0 8px; font: 700 22px var(--display); letter-spacing: -0.02em; }
.h-trust p { color: var(--text-2); font-size: 16px; }

/* -------- Offres */
.h-center { text-align: center; }
.h-center .h-lead { margin-inline: auto; }
.h-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 48px; align-items: stretch; }
.h-plan { display: flex; flex-direction: column; padding: 36px; border-radius: 32px; background: var(--h-soft); position: relative; transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease, opacity .8s; }
.h-plan:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(6,13,24,.35); }
.h-plan .name { font-weight: 700; font-size: 15px; color: var(--accent); }
.h-plan .price { margin: 10px 0 4px; font: 700 56px/1 var(--display); letter-spacing: -0.04em; }
.h-plan .price b { font: inherit; }
.h-plan .per { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.h-plan .desc { color: var(--text-2); margin-bottom: 28px; }
.h-plan em[data-promo]:not([hidden]) { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 999px; background: var(--positive-bg); color: var(--positive); font-style: normal; font-size: 13px; font-weight: 700; }
.h-plan .h-btn { margin-top: auto; width: 100%; }
.h-plan .h-btn.ghost { background: var(--surface); }
.h-units { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.h-units li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--h-line); }
.h-units li em { grid-column: 1 / -1; justify-self: start; margin: 4px 0 0 !important; }
.home [hidden] { display: none !important; }
.h-units span { color: var(--text); font-weight: 600; }
.h-units small { display: block; color: var(--text-2); font-weight: 400; font-size: 14px; }
.h-units b { font: 700 22px var(--display); white-space: nowrap; }
.h-plan.ink { background: #060D18; color: #fff; border: 1px solid var(--h-ink-line); }
.h-plan.ink .name { color: #00E5FF; }
.h-plan.ink .per { color: #A9B8CA; }
.h-plan.ink .desc { color: #C9D5E3; }
.h-tag { position: absolute; top: 28px; right: 28px; padding: 6px 12px; border-radius: 999px; background: #00E5FF; color: #060D18; font-size: 13px; font-weight: 700; }
.h-pay { margin-top: 24px; text-align: center; color: var(--text-2); font-size: 15px; }

/* -------- FAQ */
.h-faq-wrap { max-width: 920px; }
.home .faq.h-faq { max-width: none; margin: 32px 0 0; border-top: 1px solid var(--h-line); }
.home .h-faq details { border: 0; border-bottom: 1px solid var(--h-line); border-radius: 0; background: none; padding: 0; margin: 0; }
.home .h-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; font: 600 22px/1.3 var(--display); letter-spacing: -0.02em; color: var(--text); }
.home .h-faq summary::-webkit-details-marker { display: none; }
.home .h-faq summary::after { content: "+"; border: 0; margin: 0; transform: none; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--h-soft); display: flex; align-items: center; justify-content: center; font: 400 24px/1 var(--ui); transition: transform .25s ease; }
.home .h-faq details[open] summary::after { transform: rotate(45deg); }
.home .h-faq details p { margin: 0 0 26px; color: var(--text-2); max-width: 720px; padding: 0; }

/* -------- Appel final */
.h-cta-outer { padding: clamp(80px, 10vw, 140px) clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px); }
.h-cta { max-width: 1392px; margin: 0 auto; border-radius: clamp(28px, 4vw, 48px); background: #00E5FF; color: #060D18; padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 80px); }
.h-cta h2 { margin: 0; font: 700 clamp(48px, 6.6vw, 104px)/.94 var(--display); letter-spacing: -0.05em; color: #060D18; }
.h-cta p { margin: 24px 0 32px; font-size: 19px; color: #06303A; max-width: 460px; }
.h-cta .store { background: #060D18; color: #fff; border-color: #060D18; }
.h-cta .store small { color: #A9B8CA; }
.h-cta .store:hover { background: #13243A; color: #fff; }

/* -------- Animations */
@keyframes hRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hPop { 0% { opacity: 0; transform: scale(.8) translateY(10px); } 70% { transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes hPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,.55); } 50% { box-shadow: 0 0 0 10px rgba(0,229,255,0); } }

@media (max-width: 720px) {
  .h-phone.side { display: none; }
  .h-float-chip { display: none; }
  .h-field input { font-size: 28px; }
  .h-result .big { font-size: 36px; }
  .h-card-shot { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-in, .h-float-chip, .h-phone, .h-dot { animation: none !important; }
  .h-btn, .h-card, .h-plan, .h-bar i, .h-card-shot img, .h-result .big { transition: none !important; }
  .h-bar i { width: var(--w); }
}

/* =====================================================================
   v8.1 — niveau Wise : hero plein cyan, titres révélés mot par mot,
   simulateur qui monte au défilement, histoire « collante » en vidéo.
   ===================================================================== */

/* Titres découpés : chaque mot sort d'un masque. */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 60ms + var(--d0, 0ms)); }
[data-split].go .w > span { transform: none; }

/* Hero */
.h-hero2 { position: relative; }
.h-hero-bg { background: var(--h-bg); color: var(--text); padding: clamp(48px, 8vw, 112px) 0 clamp(200px, 22vw, 300px); border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px); overflow: hidden; position: relative; }
.h-hero-bg::before, .h-hero-bg::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.h-hero-bg::before { width: 60vw; height: 60vw; left: -18vw; top: -30vw; background: radial-gradient(closest-side, rgba(0,229,255,.22), rgba(0,229,255,0)); animation: hDrift 14s ease-in-out infinite alternate; }
.h-hero-bg::after { width: 50vw; height: 50vw; right: -14vw; bottom: -26vw; background: radial-gradient(closest-side, rgba(0,229,255,.16), rgba(0,229,255,0)); animation: hDrift 18s ease-in-out -6s infinite alternate-reverse; }
.h-hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.h-hero2 .h-pill { background: var(--h-tint); color: var(--h-pill-text); }
.h-hero2 .h-h1 { color: var(--text); font-size: clamp(42px, 8.4vw, 128px); line-height: .95; letter-spacing: -0.05em; max-width: 13ch; }
.h-hero2 .h-mark { background: #00E5FF; color: #060D18; padding: 0 .14em .02em; border-radius: .14em; white-space: nowrap; display: inline-block; }
.h-hero2 .h-lead { color: var(--text-2); margin: 28px auto 0; max-width: 560px; }
.h-hero2 .h-actions { justify-content: center; }
.h-btn.outline { border-color: var(--border); color: var(--text); background: transparent; font-weight: 600; }
.h-btn.outline:hover { background: var(--h-soft); color: var(--text); }

/* Simulateur posé à cheval sur le hero, qui monte au défilement */
.h-calc-stage { position: relative; z-index: 2; margin-top: clamp(-260px, -20vw, -170px); display: flex; justify-content: center; }
.h-calc-stage .h-calc-wrap { flex: 0 1 560px; max-width: 560px; will-change: transform; animation: hRiseBig 1.1s cubic-bezier(.16,1,.3,1) .35s both; }
.h-calc-stage .h-calc { box-shadow: 0 60px 120px -50px rgba(6,13,24,.55), 0 2px 6px rgba(6,13,24,.06); }
.h-orbit { position: absolute; inset: 0; pointer-events: none; max-width: 1180px; margin: 0 auto; }
.h-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 50px -22px rgba(6,13,24,.5); font-size: 13px; will-change: transform; }
.h-chip small { display: block; color: var(--text-3); font-size: 12px; }
.h-chip b { font: 500 15px var(--mono); }
.h-chip .ico { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.h-chip .ico svg { width: 18px; height: 18px; }
.h-chip .ico.up { background: var(--positive-bg); color: var(--positive); }
.h-chip .ico.down { background: #FDE8E6; color: #B42318; }
.h-chip .ico.star { background: #060D18; color: #00E5FF; }
.h-chip { top: calc(var(--top) + var(--py, 0px)); }
.h-chip.c1 { left: 2%; --top: 140px; }
.h-chip.c2 { right: 2%; --top: 70px; }
.h-chip.c3 { right: 7%; --top: 430px; }
.h-calc-stage .h-calc { will-change: transform; }
.h-chip > * { position: relative; }
.h-chip { opacity: 0; animation: hPop .8s cubic-bezier(.2,.8,.2,1) both, hFloatChip 6s ease-in-out infinite; }
.h-chip.c1 { animation-delay: .9s, 1.7s; }
.h-chip.c2 { animation-delay: 1.15s, 2.4s; }
.h-chip.c3 { animation-delay: 1.4s, 3.1s; }
.h-chip { animation-fill-mode: both, none; }
@keyframes hFloatChip { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes hRiseBig { from { opacity: 0; transform: translateY(120px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,4vw) scale(1.15); } }
@keyframes hPulseInk { 0%,100% { box-shadow: 0 0 0 0 rgba(6,13,24,.45); } 50% { box-shadow: 0 0 0 9px rgba(6,13,24,0); } }
@media (max-width: 1100px) { .h-orbit { display: none; } }

/* Histoire collante : le téléphone reste, la vidéo change avec le texte */
.h-story-outer { padding: clamp(80px, 10vw, 140px) clamp(12px, 2vw, 24px) 0; }
.h-story { max-width: 1392px; margin: 0 auto; border-radius: clamp(28px, 4vw, 48px); background: #03070F; color: #fff; padding: clamp(56px, 7vw, 104px) 0 clamp(24px, 4vw, 48px); border: 1px solid var(--h-ink-line); }
.h-story .h-title { color: #fff; max-width: 820px; }
.h-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 24px; }
.h-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
.h-step.is-active { opacity: 1; }
.h-step .h-kicker { color: #00E5FF; }
.h-step h3 { margin: 0; font: 700 clamp(32px, 3.6vw, 52px)/1.02 var(--display); letter-spacing: -0.04em; color: #fff; }
.h-step p:not(.h-kicker) { margin-top: 20px; font-size: 19px; color: #A9B8CA; max-width: 480px; }
.h-step-video { display: none; }
.h-stage { position: relative; }
.h-stage-sticky { position: sticky; top: calc(50vh - min(42vh, 380px)); height: min(84vh, 760px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.h-stage-screen { position: relative; height: 100%; aspect-ratio: 416 / 800; -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 50%, #000 70%, transparent 100%); }
.h-stage-screen::before { content: ""; position: absolute; inset: 12% 0; background: radial-gradient(closest-side, rgba(0,229,255,.22), rgba(0,229,255,0)); }
.h-stage-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.h-stage-screen video.is-active { opacity: 1; transform: none; }
.h-stage-dots { display: flex; gap: 8px; }
.h-stage-dots i { width: 8px; height: 8px; border-radius: 99px; background: #22344D; transition: width .4s ease, background .4s ease; }
.h-stage-dots i.is-active { width: 28px; background: #00E5FF; }
@media (max-width: 860px) {
  .h-story-grid { grid-template-columns: 1fr; }
  .h-stage { display: none; }
  .h-step { min-height: 0; opacity: 1; padding: 40px 0 8px; }
  .h-step-video { display: block; width: min(320px, 80vw); height: auto; aspect-ratio: 416 / 800; margin: 28px auto 0; -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 50%, #000 70%, transparent 100%); }
}

/* Bourse : boucle vidéo au lieu de la capture fixe */
.h-loop { width: clamp(260px, 26vw, 360px); aspect-ratio: 416 / 800; position: relative; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.h-loop video { width: 100%; height: 100%; object-fit: cover; }
.h-dark { background: #03070F; }

/* Cartes inclinables (souris) */
.h-card[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.h-card[data-tilt]:hover { --ty: -8px; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); }
.h-card[data-tilt].reveal:not(.in) { transform: translateY(32px); }

/* Bouton : reflet qui traverse au survol */
.h-btn { position: relative; overflow: hidden; isolation: isolate; }
.h-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.h-btn:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  [data-split] .w > span { transform: none !important; transition: none !important; }
  .h-chip { opacity: 1; animation: none !important; }
  .h-calc-stage .h-calc-wrap, .h-hero-bg::before, .h-hero-bg::after { animation: none !important; }
  .h-stage-screen video, .h-step { transition: none !important; }
}

/* v8.2 — retour du hero de production ; simulateur dans sa propre section. */
.home .hero { margin-bottom: 0; }
.h-sim { padding-top: clamp(72px, 9vw, 120px); }
.h-sim-grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.h-sim-copy { flex: 1 1 420px; min-width: 0; }
.h-sim .h-calc-stage { flex: 1 1 460px; min-width: 0; margin-top: 0; position: relative; }
.h-sim .h-calc-stage .h-calc-wrap { animation: none; flex: 1 1 auto; margin: 0 auto; }
.h-sim .h-orbit { inset: -40px -60px; }
.h-sim .h-chip.c1 { left: -40px; --top: 40px; }
.h-sim .h-chip.c2 { right: -40px; left: auto; --top: 240px; }
.h-sim .h-chip.c3 { right: auto; left: -30px; --top: 520px; }
.h-sim .h-orbit { display: none; }
.h-sim .h-calc-stage .h-calc { transform: none !important; }

/* v8.3 — captures des cartes plus grandes et lisibles */
.h-card-shot { height: clamp(380px, 34vw, 480px); padding: 32px 28px 0; }
.h-card-shot img { width: min(100%, 330px); border: 7px solid #060D18; border-bottom: 0; border-radius: 38px 38px 0 0; box-shadow: 0 30px 60px -30px rgba(6,13,24,.45); image-rendering: auto; }
@media (max-width: 720px) { .h-card-shot { height: 420px; } }
/* Correctif : dans un conteneur flex, l'image était étirée à la hauteur de la zone (écrasée). */
.h-card-shot { align-items: flex-start; }
.h-card-shot img { flex: none; align-self: flex-start; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }

/* =====================================================================
   v8.4 — Appel final : deux téléphones, anneau qui tourne, bulles.
   ===================================================================== */
.h-cta-outer { padding-top: clamp(64px, 7vw, 104px); }
.h-cta2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px; padding-block: clamp(56px, 6vw, 88px) 0; min-height: 620px; isolation: isolate; }
.h-cta-copy { position: relative; z-index: 2; padding-bottom: clamp(56px, 6vw, 88px); }
.h-cta2 h2 { font-size: clamp(48px, 6.2vw, 96px); }
.h-cta2 p:not(.h-cta-pill) { margin: 22px 0 30px; }
.h-cta-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px !important; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(6,13,24,.08); font-size: 14px; font-weight: 600; color: #060D18 !important; }
.h-cta-pill .h-dot { background: #060D18; animation-name: hPulseInk; }
.h-cta-checks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; color: #06303A; }
.h-cta-checks li { display: flex; align-items: center; gap: 7px; }
.h-cta-checks svg { width: 17px; height: 17px; color: #060D18; }
.h-cta .store { transition: transform .2s ease, background .2s; }
.h-cta .store:hover { transform: translateY(-3px); }

/* Fond vivant */
.h-cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.h-cta-bg i { position: absolute; border-radius: 50%; }
.h-cta-bg .b1 { width: 620px; height: 620px; right: -120px; top: -180px; background: radial-gradient(closest-side, rgba(255,255,255,.7), rgba(255,255,255,0)); animation: hDrift 12s ease-in-out infinite alternate; }
.h-cta-bg .b2 { width: 520px; height: 520px; left: 30%; bottom: -320px; background: radial-gradient(closest-side, rgba(0,112,127,.35), rgba(0,112,127,0)); animation: hDrift 16s ease-in-out -5s infinite alternate-reverse; }
.h-cta-bg .grid { inset: 0; border-radius: 0; background-image: radial-gradient(rgba(6,13,24,.13) 1.2px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 80% at 80% 60%, #000, transparent); mask-image: radial-gradient(60% 80% at 80% 60%, #000, transparent); }

/* Téléphones */
.h-cta-visual { position: relative; align-self: stretch; min-height: 520px; }
.h-ring { position: absolute; width: 460px; height: 460px; left: 50%; top: 52%; margin: -230px 0 0 -230px; border-radius: 50%; border: 2px dashed rgba(6,13,24,.22); animation: hSpin 40s linear infinite; }
.h-ring::before, .h-ring::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #060D18; top: -8px; left: 50%; margin-left: -7px; }
.h-ring::after { top: auto; bottom: -8px; background: #fff; box-shadow: 0 0 0 4px rgba(6,13,24,.15); }
.h-cta-phone { position: absolute; bottom: 0; width: 250px; border: 8px solid #060D18; border-bottom: 0; border-radius: 40px 40px 0 0; overflow: hidden; background: #060D18; box-shadow: 0 40px 80px -30px rgba(6,13,24,.55); }
.h-cta-phone img { width: 100%; height: auto; display: block; }
.h-cta-phone.front { left: 50%; margin-left: -60px; height: 470px; z-index: 2; transform: rotate(6deg) translateY(var(--cy, 0px)); transform-origin: bottom center; }
.h-cta-phone.back { left: 50%; margin-left: -230px; height: 400px; width: 220px; opacity: .95; transform: rotate(-8deg) translateY(var(--cy, 0px)); transform-origin: bottom center; }
.h-cta-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 15px 11px 11px; border-radius: 18px; background: #fff; color: #060D18; box-shadow: 0 24px 50px -22px rgba(6,13,24,.5); font-size: 13px; animation: hFloatChip 6s ease-in-out infinite; }
.h-cta-chip small { display: block; color: #5D6E82; font-size: 12px; }
.h-cta-chip b { font: 600 15px var(--mono); }
.h-cta-chip .ico { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.h-cta-chip .ico svg { width: 17px; height: 17px; }
.h-cta-chip .ico.up { background: #DDF3EA; color: #0A7554; }
.h-cta-chip .ico.ok { background: #E0F6F9; color: #00707F; }
.h-cta-chip .ico.star { background: #060D18; color: #00E5FF; }
.h-cta-chip.k1 { left: 2%; top: 22%; animation-delay: -1s; }
.h-cta-chip.k2 { right: 0; top: 44%; animation-delay: -3s; }
.h-cta-chip.k3 { left: 8%; top: 66%; animation-delay: -4.5s; }

/* Entrée quand la section arrive à l'écran */
.h-cta2 .h-cta-phone, .h-cta2 .h-cta-chip, .h-cta2 .h-ring { opacity: 0; }
.h-cta2.in .h-ring { opacity: 1; transition: opacity 1s ease .2s; }
.h-cta2.in .h-cta-phone { opacity: 1; }
.h-cta2.in .h-cta-phone.back { animation: hPhoneUpL 1.1s cubic-bezier(.16,1,.3,1) .15s both; }
.h-cta2.in .h-cta-phone.front { animation: hPhoneUpR 1.1s cubic-bezier(.16,1,.3,1) .3s both; }
.h-cta2.in .h-cta-chip { opacity: 1; animation: hPop .7s cubic-bezier(.2,.8,.2,1) both, hFloatChip 6s ease-in-out infinite; }
.h-cta2.in .h-cta-chip.k1 { animation-delay: .7s, 1.4s; }
.h-cta2.in .h-cta-chip.k2 { animation-delay: .9s, 2.2s; }
.h-cta2.in .h-cta-chip.k3 { animation-delay: 1.1s, 3s; }
@keyframes hPhoneUpL { from { transform: rotate(-14deg) translateY(160px); } to { transform: rotate(-8deg) translateY(var(--cy, 0px)); } }
@keyframes hPhoneUpR { from { transform: rotate(14deg) translateY(200px); } to { transform: rotate(6deg) translateY(var(--cy, 0px)); } }
@keyframes hSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .h-cta2 { grid-template-columns: 1fr; min-height: 0; }
  .h-cta-copy { padding-bottom: 0; }
  .h-cta-visual { min-height: 400px; }
  .h-ring { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .h-cta-phone.front { width: 200px; height: 360px; margin-left: -50px; }
  .h-cta-phone.back { width: 175px; height: 300px; margin-left: -175px; }
  .h-cta-chip.k2 { display: none; }
  .h-cta-chip.k1 { left: 0; top: 10%; }
  .h-cta-chip.k3 { left: auto; right: 0; top: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .h-cta2 .h-cta-phone, .h-cta2 .h-cta-chip, .h-cta2 .h-ring { opacity: 1 !important; animation: none !important; }
  .h-cta-bg i { animation: none !important; }
}
.h-cta .h-cta-pill { font-size: 14px; }

/* =====================================================================
   v8.5 — vraies captures nettes à la place des vidéos floues.
   ===================================================================== */
.h-phone3 { position: relative; aspect-ratio: 1206 / 2560; border: 10px solid #1A2638; border-radius: 52px; background: #F2F6FA; overflow: hidden; box-shadow: 0 0 0 2px #2A3C55, 0 60px 120px -40px rgba(0,229,255,.25), 0 40px 80px -30px rgba(0,0,0,.8); }
.h-phone3::after { content: ""; position: absolute; inset: 0; border-radius: 42px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.h-phone3 > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; }
.h-stage-screen { -webkit-mask-image: none; mask-image: none; height: auto; aspect-ratio: auto; width: min(100%, 360px); }
.h-stage-screen::before { inset: 10% -20%; }
.h-stage-sticky { height: auto; min-height: min(84vh, 760px); }
.h-stage-screen .h-phone3 > img { opacity: 0; transform: translateX(40px) scale(.98); transition: opacity .55s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.h-stage-screen .h-phone3 > img.is-active { opacity: 1; transform: none; }
.h-stage-screen .h-phone3 { animation: hFloat 7s ease-in-out infinite; }
.h-step-shot { width: min(300px, 78vw); margin: 28px auto 0; display: none; }
.h-step-shot > img { position: static; }
@media (max-width: 860px) { .h-step-shot { display: block; } }
.h-bourse-phone { width: clamp(260px, 25vw, 340px); border-color: #1A2638; border-bottom: 0; border-radius: 52px 52px 0 0; aspect-ratio: 1206 / 2200; }
.h-bourse-phone > img { position: static; }
.h-dark-visual { align-self: flex-end; }

/* v8.6 — nouvelles captures : assistant, bourse (duo), paramètres */
.h-bourse-duo { position: relative; width: clamp(340px, 34vw, 470px); height: clamp(460px, 40vw, 560px); }
.h-bourse-duo .h-bourse-phone { position: absolute; bottom: 0; width: 62%; aspect-ratio: 1206 / 2350; border-radius: 48px 48px 0 0; border-bottom: 0; }
.h-bourse-duo .back { left: 0; height: 84%; aspect-ratio: auto; transform: rotate(-6deg); transform-origin: bottom left; opacity: .92; }
.h-bourse-duo .front { right: 0; height: 100%; aspect-ratio: auto; z-index: 1; }
.h-bourse-duo.in .back { animation: hPhoneUpL 1.1s cubic-bezier(.16,1,.3,1) both; }
.h-bourse-duo.in .front { animation: hRise 1s cubic-bezier(.16,1,.3,1) .15s both; }

.h-trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 40px; }
.h-trust-grid .h-trust { margin-top: 0; grid-template-columns: 1fr; gap: 14px; }
.h-trust-grid .h-trust > div { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: start; padding: 24px 28px; }
.h-trust-grid .h-trust .ico { grid-row: span 2; }
.h-trust-grid .h-trust h3 { margin: 4px 0 4px; }
.h-trust-visual { position: relative; }
.h-trust-visual .h-phone3 { width: 100%; max-width: 320px; margin: 0 auto; border-color: #E6EEF6; box-shadow: 0 0 0 1px #D5E0EC, 0 50px 100px -40px rgba(6,13,24,.35); animation: hFloat 8s ease-in-out infinite; }
.h-trust-visual .h-lock { position: absolute; left: -24px; bottom: 22%; }
@media (max-width: 860px) {
  .h-trust-grid { grid-template-columns: 1fr; }
  .h-trust-visual .h-phone3 { max-width: 280px; }
  .h-trust-visual .h-lock { left: 4px; }
  .h-bourse-duo { width: min(100%, 360px); height: 440px; margin: 0 auto; }
}
/* Le téléphone collant tient toujours dans la hauteur de l'écran. */
.h-stage-screen { width: min(100%, 340px, 36vh); }
.h-stage-sticky { top: 12vh; min-height: 0; padding: 0; }
