/* ==========================================================================
   Voyaj — couche « immersive » de l'accueil (octobre 2026)
   Héros plein écran avec routes animées, section « Essayer la bêta »,
   manifeste qui s'allume au défilement, barre de progression, barre mobile.
   S'appuie sur les jetons et composants de voyaj.css.
   ========================================================================== */

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--mint), #9BF0C7 60%, var(--amber));
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}

.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 17px; }

/* ---------- Héros immersif ---------- */
.hx { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hx-map { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 55% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 55% 45%, #000 40%, transparent 100%); }
.hx-routes { position: absolute; inset: -4%; width: 108%; height: 108%; transition: transform .6s var(--ease); }
.hx-road-base path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 22; stroke-linecap: round; }
.hx-road-glow use { fill: none; stroke: url(#hx-road); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 18; animation: hx-dash 2.8s linear infinite; opacity: .75; }
.hx-cars circle { fill: var(--mint); }
.hx-cars circle.amber { fill: var(--amber); }
.hx-pin { fill: var(--mint); }
.hx-pin.amber { fill: var(--amber); }
.hx-ping { fill: none; stroke: var(--mint); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hx-ping 2.4s var(--ease) infinite; }
.hx-ping.amber { stroke: var(--amber); animation-delay: -1.2s; }
@keyframes hx-dash { to { stroke-dashoffset: -56; } }
@keyframes hx-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }

.hx .hero-in { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.badge-beta b { background: var(--amber); }
.hx-title .hx-w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px);
  animation: hx-word .9s var(--ease) forwards; }
.hx-title .hx-w:nth-child(2) { animation-delay: .08s; }
.hx-title .line2 .hx-w:nth-child(1) { animation-delay: .22s; }
.hx-title .line2 .hx-w:nth-child(2) { animation-delay: .3s; }
@keyframes hx-word { to { opacity: 1; transform: none; filter: none; } }

.hx-platforms { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hx-platforms a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-strong); color: var(--soft); font-size: 12.5px; line-height: 1.15;
  transition: border-color .2s, background .2s, transform .25s var(--ease);
}
.hx-platforms a:hover { border-color: rgba(61, 220, 151, .55); background: rgba(61, 220, 151, .08); transform: translateY(-2px); }
.hx-platforms .ic { color: var(--mint); }
.hx-platforms b { display: block; color: var(--text); font: 650 14.5px/1.2 var(--font-head); }

.hero-visual[data-tilt] { perspective: 1200px; }
.hero-visual[data-tilt] .phone { transition: transform .5s var(--ease); }
.hero-visual .float-c {
  right: -2%; bottom: 4%; top: auto; flex-direction: column; align-items: stretch; gap: 4px; min-width: 210px; text-decoration: none;
  animation: float 9s ease-in-out -4s infinite;
}
.hx-ulule-top { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); font-weight: 700; }
.hx-ulule strong { font: 750 26px/1.1 var(--font-head); color: var(--text); }
.hx-ulule-of { font-size: 13px; color: var(--dim); }
.hx-bar { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.hx-bar i { display: block; height: 100%; width: max(4%, var(--p, 0%)); border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--amber)); transition: width 1s var(--ease); }

.hx-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 26px; height: 42px; margin-left: -13px;
  border-radius: 99px; border: 1.5px solid var(--line-strong); }
.hx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--mint); animation: hx-scroll 1.8s var(--ease) infinite; }
@keyframes hx-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Essayer : les trois bêtas ---------- */
.try { overflow: hidden; }
.try .glow-mint { width: 620px; height: 620px; top: 10%; left: 50%; margin-left: -310px; opacity: .45; }
.try .section-head { position: relative; z-index: 1; }
.try-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-left: auto; margin-right: auto; gap: 22px; margin-top: 56px; align-items: stretch; }
.try-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.try-card:hover { transform: translateY(-6px); border-color: rgba(61, 220, 151, .45); box-shadow: 0 40px 90px -40px rgba(61, 220, 151, .35); }
.try-card-hl { background: linear-gradient(180deg, rgba(61, 220, 151, .1), rgba(255, 255, 255, .02)); }
.try-card p { margin: 0; color: var(--soft); font-size: 15.5px; }
.try-head { display: flex; align-items: center; gap: 14px; }
.try-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: rgba(61, 220, 151, .14); color: var(--mint); }
.try-kicker { font-size: 12px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--dim) !important; font-weight: 700; }
.try-head h3 { margin: 2px 0 0; font-size: 22px; }
.try-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--mint);
  background: rgba(61, 220, 151, .1); border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.try-steps { margin: 0; padding-left: 20px; color: var(--soft); font-size: 14.5px; display: grid; gap: 6px; }
.try-steps a { color: var(--text); }
.try-steps b { color: var(--text); }
.try-actions { margin-top: auto; }
.try-actions .btn { width: 100%; }
.try-qr { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-strong); }
.try-qr img { width: 84px; height: 84px; padding: 6px; border-radius: 10px; background: #fff; flex: none; }
.try-qr figcaption { font-size: 13px; color: var(--dim); line-height: 1.4; }
.try-more summary { cursor: pointer; font-size: 13.5px; color: var(--dim); }
.try-more p { margin-top: 8px !important; font-size: 13.5px !important; }
.try-yours { position: absolute; top: -12px; left: 24px; display: none; padding: 5px 12px; border-radius: 99px;
  background: var(--mint); color: var(--ink); font: 700 12px/1 var(--font-head); letter-spacing: .02em; box-shadow: 0 10px 24px -10px rgba(61, 220, 151, .8); }
.try-card.is-yours { border-color: rgba(61, 220, 151, .7); }
.try-card.is-yours .try-yours { display: inline-block; }

.try-form { display: grid; gap: 10px; margin-top: auto; }
.try-form input[type="text"], .try-form input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: rgba(11, 12, 30, .6); color: var(--text); font: 400 16px var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.try-form input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.try-form .check { color: var(--dim); font-size: 13px; }
.try-form .check input { accent-color: var(--mint); }
.try-form .btn { width: 100%; }
.try-msg { min-height: 1.2em; font-size: 14px; }
.try-msg.ok { color: var(--mint); font-weight: 600; }
.try-msg.err { color: var(--danger); }
.try-foot { position: relative; z-index: 1; text-align: center; margin-top: 30px; color: var(--dim); }
.try-foot a { color: var(--mint); }

/* ---------- Manifeste ---------- */
.manifesto { background: radial-gradient(80% 60% at 50% 0%, rgba(140, 134, 184, .12), transparent 70%); }
.manifesto-text { margin: 0 auto; max-width: 1020px; text-align: center; font: 700 clamp(28px, 4.2vw, 54px)/1.18 var(--font-head); letter-spacing: -.01em; color: var(--text); }
.manifesto-text .mw { color: rgba(242, 240, 250, .16); transition: color .35s ease; }
.manifesto-text .mw.lit { color: var(--text); }
.manifesto-text .mw.lit.hl-word { color: var(--mint); }
.mf-stats { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mf-stats li { padding: 24px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.mf-stats strong { display: block; font: 750 clamp(34px, 3.6vw, 48px)/1 var(--font-head);
  background: linear-gradient(90deg, var(--mint), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-stats span { display: block; margin-top: 10px; color: var(--soft); font-size: 15px; line-height: 1.45; }

/* ---------- Appel final ---------- */
.cta-mini { justify-content: center; margin-top: 26px; }

/* ---------- Barre d'action mobile ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    padding: 8px; border-radius: 22px; background: rgba(17, 19, 49, .9); border: 1px solid var(--line-strong);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding: 10px 14px; font-size: 15px; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- Adaptations écran ---------- */
@media (max-width: 1100px) {
  .try-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hx { min-height: auto; }
  .hero-visual .float-c { right: 0; bottom: -2%; }
  .hx-scroll { display: none; }
}
@media (max-width: 720px) {
  .try-grid { grid-template-columns: minmax(0, 1fr); }
  .try-qr { display: none; }
  .try-card { padding: 22px; }
  .hx-platforms a { flex: 1 1 auto; }
  .mf-stats li { padding: 18px; }
  .hero-visual .float-c { min-width: 0; }
}
@media (max-width: 420px) {
  .mf-stats { grid-template-columns: minmax(0, 1fr); }
  .try-status { display: none; }
}
@media (hover: none) { .try-card:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hx-title .hx-w { animation: none; opacity: 1; transform: none; filter: none; }
  .hx-road-glow use, .hx-ping, .hx-scroll span { animation: none; }
  .manifesto-text .mw { color: var(--text); }
  .scroll-progress { display: none; }
}

/* ---------- Accueil épuré : promesses, étapes, confiance ---------- */
.hx-promises { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--soft); font-size: 15px; }
.hx-promises li { display: inline-flex; align-items: center; gap: 8px; }
.hx-promises .ic { color: var(--mint); }
.how { counter-reset: none; margin-top: 48px !important; }
.how .card { position: relative; }
.how h3, .trust-row h3 { margin: 0 0 8px; font-size: 21px; }
.how-n { position: absolute; top: 18px; right: 22px; font: 750 54px/1 var(--font-head); color: rgba(20, 21, 46, .07); }
.trust-row { margin-top: 48px !important; }
.price-line { margin: 36px auto 0; max-width: 760px; text-align: center; color: var(--soft); font-size: 17px; }
.price-line strong { color: var(--mint); }
.cta-socials { justify-content: center; margin-top: 26px; }
@media (max-width: 980px) { .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .trust-row { grid-template-columns: minmax(0, 1fr); } }
/* Le dégradé du titre doit être porté par chaque mot animé (sinon texte invisible). */
.hx-title .line2 { background: none; color: inherit; }
.hx-title .line2 .hx-w { background: linear-gradient(90deg, var(--mint) 0%, #9BF0C7 55%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
