/* Page de capture FormaFX : pub Facebook -> WhatsApp. Mobile d'abord, clair/sombre. */
@font-face { font-family: 'LEMON MILK'; src: url('/assets/fonts/LEMONMILK-Regular.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Century Gothic'; src: url('/assets/fonts/Century-Gothic.ttf') format('truetype'); font-display: swap; }

:root {
  --bg-1: #060818; --bg-2: #0d1035; --ink: #eef1ff; --ink-soft: #b7bde6;
  --cyan: #2ee6ff; --violet: #8b5cff; --pink: #ff4fa3; --gold: #ffd76a;
  --wa-1: #2bf58a; --wa-2: #12b26b; --wa-3: #0a7f63; --wa-ink: #ffffff;
  --glass: rgba(18, 22, 66, .75); --glass-line: rgba(140, 160, 255, .28);
  --grid: rgba(46, 230, 255, .32); --star: 210, 225, 255;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg-1: #f6f4ff; --bg-2: #e3e8ff; --ink: #12163d; --ink-soft: #4a4f7c;
    --cyan: #0098c7; --violet: #6a3df0; --pink: #d6287b; --gold: #b07a00;
    --glass: rgba(255, 255, 255, .75); --glass-line: rgba(90, 100, 200, .22);
    --grid: rgba(106, 61, 240, .22); --star: 90, 80, 200;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink);
  font-family: 'Century Gothic', 'Segoe UI', system-ui, sans-serif; line-height: 1.45;
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-2), var(--bg-1) 62%);
  overflow-x: hidden; display: flex; flex-direction: column;
}

/* ---------- Décor science-fiction ---------- */
.starfield, .backdrop { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.starfield { width: 100%; height: 100%; }
.orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.orb-a { width: 62vmax; height: 62vmax; left: -30vmax; top: -24vmax; background: radial-gradient(circle, var(--violet), transparent 68%); }
.orb-b { width: 54vmax; height: 54vmax; right: -28vmax; top: 18vh; background: radial-gradient(circle, var(--cyan), transparent 66%); animation-duration: 21s; opacity: .38; }
.orb-c { width: 46vmax; height: 46vmax; left: 10vw; bottom: -30vmax; background: radial-gradient(circle, var(--pink), transparent 66%); animation-duration: 25s; opacity: .32; }
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -8vh; height: 46vh;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 92%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  animation: floor 3.2s linear infinite;
}
@keyframes floor { to { background-position: 0 46px, 0 0; } }
.scanline { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 48%, rgba(46, 230, 255, .07) 50%, transparent 52% 100%); background-size: 100% 260%; animation: scan 7s linear infinite; }
@keyframes scan { from { background-position: 0 -130%; } to { background-position: 0 130%; } }

/* ---------- Mise en page ---------- */
.capture {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.brand { position: relative; width: 78px; height: 78px; display: grid; place-items: center; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.brand-logo { width: 62px; height: 62px; border-radius: 18px; position: relative; z-index: 1; }
.brand-ring { position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--gold), var(--cyan)); animation: spin 6s linear infinite; mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
@keyframes spin { to { transform: rotate(1turn); } }

.badge {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font: 11px/1.2 'LEMON MILK', 'Century Gothic', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: rise .8s .08s both;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-1); box-shadow: 0 0 10px var(--wa-1); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.title { margin: 2px 0 0; font: 400 clamp(20px, 6.2vw, 38px)/1.14 'LEMON MILK', 'Century Gothic', sans-serif; letter-spacing: .01em; text-transform: uppercase; }
.title-line { display: block; animation: rise .9s .16s cubic-bezier(.2, .8, .2, 1) both; }
.title-glow {
  animation-delay: .28s; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--cyan)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s .28s both, sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: 300% 0; } }
.lead b { color: var(--cyan); font-weight: 700; }
.shield { margin: 6px 0 -4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wa-1); text-shadow: 0 0 10px rgba(43, 245, 138, .45); animation: rise .9s .44s both; }
.shield svg { width: 16px; height: 16px; flex: none; }
@media (prefers-color-scheme: light) { .shield { color: var(--wa-3); text-shadow: none; } }
.lead { margin: 0; max-width: 30em; font-size: clamp(14.5px, 4vw, 17px); color: var(--ink-soft); animation: rise .9s .38s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Le bouton WhatsApp ---------- */
.cta-zone { position: relative; width: 100%; margin: 8px 0 2px; display: grid; justify-items: center; gap: 10px; animation: rise .9s .48s both; }
.cta-halo { position: absolute; left: 50%; top: 38px; width: min(calc(100% - 28px), 430px); height: 76px; transform: translate(-50%, -50%); border-radius: 26px; border: 2px solid var(--wa-1); opacity: 0; animation: halo 2.4s ease-out infinite; pointer-events: none; }
.cta-halo-late { animation-delay: 1.2s; }
@keyframes halo { 0% { opacity: .7; transform: translate(-50%, -50%) scale(.96); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04, 1.5); } }
.cta {
  position: relative; overflow: hidden; width: min(calc(100% - 24px), 440px); min-height: 76px; padding: 12px 20px 12px 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; color: var(--wa-ink);
  border-radius: 24px 8px 24px 8px; isolation: isolate;
  background: linear-gradient(160deg, var(--wa-1), var(--wa-2) 52%, var(--wa-3));
  box-shadow: 0 14px 38px rgba(18, 178, 107, .45), 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 0 26px rgba(43, 245, 138, .35);
  animation: wiggle 3s cubic-bezier(.25, .8, .25, 1) 1.6s infinite; transition: filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:hover { filter: brightness(1.06) saturate(1.1); }
.cta:active { transform: scale(.97); }
.cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@keyframes wiggle { 0%, 70%, 100% { transform: none; } 76% { transform: translateY(-5px) scale(1.04) rotate(-1deg); } 84% { transform: translateY(0) scale(1.02) rotate(1deg); } 92% { transform: scale(1); } }
.cta-icon { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.cta-text { display: grid; text-align: left; gap: 3px; }
.cta-label { font: 400 clamp(15px, 4.6vw, 19px)/1.15 'LEMON MILK', 'Century Gothic', sans-serif; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.cta-hint { font-size: 12.5px; opacity: .92; }
.cta-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 46%, transparent 62%); transform: translateX(-120%); animation: shine 3s ease-in-out .9s infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.lines { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.line-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glass-line); transition: background .25s ease, box-shadow .25s ease; }
.line-dot.on { background: var(--wa-1); box-shadow: 0 0 10px var(--wa-1); }
.lines-label { margin-left: 4px; }

/* ---------- Faits et applications ---------- */
.facts { list-style: none; margin: 4px auto 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 360px; animation: rise .9s .58s both; }
.facts li, .apps-list li, .promises {
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.facts li { border-radius: 14px; padding: 8px 6px; display: grid; gap: 1px; }
.facts strong { font: 400 clamp(13px, 3.9vw, 16px)/1.1 'LEMON MILK', 'Century Gothic', sans-serif; color: var(--cyan); }
.facts span { font-size: 11px; color: var(--ink-soft); }

.apps { width: 100vw; max-width: 100vw; align-self: center; flex: none; animation: rise .9s .68s both; }
.apps-title { margin: 6px 0 8px; font: 11px/1 'LEMON MILK', 'Century Gothic', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.apps-track { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; padding: 6px 0; cursor: grab; user-select: none; -webkit-user-select: none; }
.apps-track.dragging { cursor: grabbing; }
.apps-track img { pointer-events: none; -webkit-user-drag: none; }
.apps-track::-webkit-scrollbar { display: none; }
.apps-track:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 12px; }
.apps-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; width: max-content; padding: 0 12px; }
.apps-list li { flex: none; width: 168px; border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 9px; text-align: left; align-items: center; }
.apps-list img { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.apps-list .star { border-color: var(--wa-1); box-shadow: 0 0 18px rgba(43, 245, 138, .28), inset 0 0 0 1px rgba(43, 245, 138, .35); }
.apps-list b { font: 400 12px/1.2 'LEMON MILK', 'Century Gothic', sans-serif; }
.apps-list span { font-size: 11.5px; line-height: 1.3; color: var(--ink-soft); }

.promises { list-style: none; margin: 4px 0 0; padding: 12px 14px; border-radius: 18px; width: 100%; display: grid; gap: 8px; text-align: left; font-size: 13.5px; animation: rise .9s .78s both; }
.promises li { position: relative; padding-left: 22px; }
.promises li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 8px var(--cyan); }

.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); font-size: 11.5px; color: var(--ink-soft); }
.foot a { color: inherit; }

/* Bouton commun « Cookies et confidentialité » : à droite sur cette page (demande de Jerry). */
html body .fx-consent-manage { inset-inline-start: auto; inset-inline-end: 12px; }

/* NotificationFX : en haut sur mobile pour ne jamais couvrir le bouton. */
@media (max-width: 720px) {
  html body .notificationfx { top: calc(10px + env(safe-area-inset-top)); bottom: auto; left: 8px; max-width: calc(100vw - 16px); transform-origin: top left; }
}
@media (max-width: 360px) {
  .facts span { font-size: 10.5px; }
}
@media (min-width: 720px) {
  .capture { padding-top: 48px; gap: 18px; }
  .apps-list li { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .apps-track { overflow-x: auto; }
}
