/* CashGui — site vitrine. Tokens repris de l'app (CgColors / CgRadius). */
/* Polices hébergées sur le site (SIL Open Font License) : pas d'appel à Google. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
:root {
  --abyss: #F2F6FA;
  --surface: #FFFFFF;
  --deep: #E6EEF6;
  --border: #D5E0EC;
  --border-strong: #B9C8D8;
  --text: #060D18;
  --text-2: #4A5A70;
  --text-3: #5D6E82;
  --cyan: #00E5FF;
  --accent: #00707F;
  --accent-hover: #005A66;
  --positive: #0A7554;
  --positive-bg: #DDF3EA;
  --tint: #E0F6F9;

  --night: #060D18;
  --night-card: #0B1524;
  --night-border: #17263B;
  --night-tile: #0F2B47;
  --night-text-2: #8A9CB2;
  --night-text-3: #7286A0;

  --r-control: 8px;
  --r-card: 12px;
  --r-large: 16px;
  --display: 'Space Grotesk', Inter, system-ui, sans-serif;
  --ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 16px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --abyss: #060D18; --surface: #0B1524; --deep: #0F2B47; --border: #17263B;
    --border-strong: #2A3C55; --text: #FFFFFF; --text-2: #8A9CB2; --text-3: #7286A0;
    --accent: #00E5FF; --accent-hover: #7FF0FF; --positive: #2EE6A8; --positive-bg: #0B2A2E;
    --tint: #0F2B47; --night: #03080F; --night-card: #0B1524;
  }
}
:root[data-theme="dark"] {
  --abyss: #060D18; --surface: #0B1524; --deep: #0F2B47; --border: #17263B;
  --border-strong: #2A3C55; --text: #FFFFFF; --text-2: #8A9CB2; --text-3: #7286A0;
  --accent: #00E5FF; --accent-hover: #7FF0FF; --positive: #2EE6A8; --positive-bg: #0B2A2E;
  --tint: #0F2B47; --night: #03080F; --night-card: #0B1524;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--abyss); color: var(--text);
  font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; color: inherit; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #060D18; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(6, 13, 24, .86);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06); color: #fff;
}
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; }
.wordmark { font-family: var(--display); font-size: 19px; letter-spacing: -1.1px; line-height: 1; }
.wordmark b { font-weight: 600; } .wordmark span { font-weight: 300; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #C9D5E3; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; border-radius: 8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 880px) {
  .menu-btn { display: block; margin-left: 4px; order: 3; }
  .site-header .header-cta { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: #060D18; border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--ui);
  background: var(--cyan); color: #060D18; border: 0; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: #060D18; background: #7FF0FF; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px;
  border-radius: 12px; background: #fff; color: #060D18; border: 1px solid transparent;
  min-width: 190px;
}
.store:hover { color: #060D18; background: #E6FCFF; }
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store small { display: block; font-size: 11px; font-weight: 500; color: #4A5A70; line-height: 1.2; }
.store strong { display: block; font: 600 17px/1.2 var(--display); letter-spacing: -.3px; }
.store.dark { background: transparent; color: #fff; border-color: #2A3C55; }
.store.dark small { color: #8A9CB2; }
.store.dark:hover { background: rgba(255,255,255,.05); color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero { background: #060D18; color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.bar { width: 48px; height: 4px; border-radius: 2px; background: var(--cyan); }
.eyebrow { margin-top: 22px; font: 600 12px/1.4 var(--ui); letter-spacing: 1.4px; text-transform: uppercase; color: #8A9CB2; }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -2.2px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: #A9B8CA; max-width: 540px; }
.hero .stores { margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13px; color: #7286A0; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--cyan); }
.hero-copy { padding-bottom: 88px; }
.hero-visual { position: relative; height: 640px; align-self: end; }
.hero-visual .phone { position: absolute; }
.hero-visual .p1 { --s: .82; left: 0; bottom: -120px; z-index: 2; }
.hero-visual .p2 { --s: .72; right: -64px; bottom: -150px; z-index: 1; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-visual { height: 470px; }
  .hero-visual .p1 { --s: .62; left: calc(50% - 250px); bottom: -110px; }
  .hero-visual .p2 { --s: .55; right: auto; left: calc(50% - 10px); bottom: -80px; }
}
@media (max-width: 480px) {
  .hero-visual { height: 380px; }
  .hero-visual .p1 { --s: .5; left: calc(50% - 180px); bottom: -80px; }
  .hero-visual .p2 { --s: .44; left: calc(50% + 4px); bottom: -110px; }
}

/* ----------------------------------------------------------------- phone */
.phone {
  --s: .78; width: calc(390px * var(--s)); height: calc(844px * var(--s));
  border-radius: calc(48px * var(--s)); overflow: hidden; flex-shrink: 0;
  border: 1px solid #1B2C44; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  background: #0B1524;
}
.phone .screen { width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: top left; }
.phone.light-edge { border-color: var(--border); box-shadow: 0 30px 70px rgba(6,13,24,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone.light-edge { border-color: #1B2C44; box-shadow: 0 30px 80px rgba(0,0,0,.5); } }
:root[data-theme="dark"] .phone.light-edge { border-color: #1B2C44; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ------------------------------------------------------------------ facts */
.facts { background: var(--surface); border-bottom: 1px solid var(--border); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.facts li b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
@media (max-width: 880px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .facts ul { grid-template-columns: 1fr; } }
.tile {
  width: 40px; height: 40px; border-radius: var(--r-control); background: var(--deep);
  display: grid; place-items: center; color: var(--accent); flex-shrink: 0;
}
.tile svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------- sections */
section { scroll-margin-top: 72px; }
.section { padding: 104px 0; }
.section + .section { padding-top: 0; }
.kicker { font: 600 12px/1.4 var(--ui); letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.h2 { margin-top: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -1.4px; }
.sub { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 620px; }
.head-center { text-align: center; } .head-center .sub { margin-left: auto; margin-right: auto; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-visual { order: -1; }
.feature-visual {
  position: relative; display: flex; justify-content: center; padding: 48px 0;
  background: var(--deep); border-radius: 24px; overflow: hidden;
}
.feature-visual .phone { --s: .74; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; color: var(--text-2); }
.checks li b { color: var(--text); font-weight: 600; }
.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
@media (max-width: 880px) {
  .section { padding: 72px 0; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-visual { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .feature-visual { padding: 36px 0; }
  .feature-visual .phone { --s: .66; }
}

/* ------------------------------------------------------------------ tools */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; }
.card h3 { margin-top: 16px; font-size: 18px; letter-spacing: -.4px; }
.card p { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- bourse */
.bourse { background: #060D18; color: #fff; padding: 104px 0; overflow: hidden; }
.bourse .feature-visual { background: #0B1524; border: 1px solid #17263B; }
.bourse .kicker { color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.soon { font: 700 10px/1 var(--ui); letter-spacing: .8px; padding: 5px 9px; border-radius: 999px; background: var(--cyan); color: #060D18; }
.bourse .sub { color: #A9B8CA; }
.bourse .checks li { color: #A9B8CA; } .bourse .checks li b { color: #fff; } .bourse .checks svg { color: var(--cyan); }
.legal-note { margin-top: 28px; padding: 14px 16px; border: 1px solid #17263B; border-radius: var(--r-card); font-size: 13px; line-height: 1.55; color: #8A9CB2; }
@media (max-width: 880px) { .bourse { padding: 72px 0; } }

/* ----------------------------------------------------------------- offres */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 900px; margin-left: auto; margin-right: auto; }
.plan { padding: 28px; }
.plan .badge { display: inline-block; font: 600 11px/1 var(--ui); letter-spacing: .8px; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--deep); color: var(--accent); }
.plan.premium { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { margin-top: 16px; font-size: 26px; letter-spacing: -.8px; }
.plan > p { margin-top: 6px; }
.plan .checks { margin-top: 20px; }
.plan .checks li { font-size: 15px; }
.pay { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--text-2); text-align: center; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: step; }
.step { position: relative; }
.step .num { font: 500 13px/1 var(--mono); color: var(--accent); }
.step h3 { margin-top: 14px; font-size: 20px; letter-spacing: -.5px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 40px auto 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 22px 4px; font: 600 17px/1.4 var(--display); letter-spacing: -.3px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 4px 22px; color: var(--text-2); max-width: 700px; }

/* -------------------------------------------------------------------- cta */
.cta { background: #060D18; color: #fff; padding: 96px 0; text-align: center; }
.cta .bar { margin: 0 auto; }
.cta h2 { margin-top: 24px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -1.8px; line-height: 1.08; }
.cta p { margin: 18px auto 0; color: #A9B8CA; font-size: 18px; max-width: 560px; }
.cta .stores { justify-content: center; margin-top: 34px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #060D18; color: #8A9CB2; border-top: 1px solid #17263B; padding: 48px 0 32px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 600 12px/1.4 var(--ui); letter-spacing: 1.2px; text-transform: uppercase; color: #7286A0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #C9D5E3; } .foot a:hover { color: var(--cyan); }
.foot p { margin-top: 14px; max-width: 360px; line-height: 1.6; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid #17263B; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #7286A0; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ legal */
.legal-hero { background: #060D18; color: #fff; padding: 64px 0 48px; }
.legal-hero h1 { margin-top: 20px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -1.4px; line-height: 1.1; }
.legal-hero p { margin-top: 12px; color: #8A9CB2; }
.legal { padding: 56px 0 96px; }
.legal article { max-width: 760px; }
.legal h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -.5px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); }
.toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-size: 13px; padding: 6px 12px; border: 1px solid #2A3C55; border-radius: 999px; color: #C9D5E3; }
.toc a:hover { border-color: var(--cyan); color: #fff; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 560px) { .toc { display: none; } }

/* ------------------------------------------------ offres (prix Directus) */
.plans.plans-3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 960px) { .plans.plans-3 { grid-template-columns: 1fr; max-width: 560px; } }
.card .plan-price { margin-top: 10px; color: var(--text); font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.6px; display: flex; flex-direction: column; gap: 2px; }
.card .plan-price small { font: 500 13px/1.4 var(--ui); color: var(--text-2); letter-spacing: 0; }
.plan em, .unit-list em { font-style: normal; font: 600 12px/1.4 var(--ui); color: var(--positive); letter-spacing: 0; }
.unit-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.unit-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--border); }
.unit-list li span { font-weight: 600; font-size: 15px; }
.unit-list small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); }
.unit-list b { font: 600 17px/1.2 var(--display); white-space: nowrap; }
.unit-list em { grid-column: 1 / -1; }
[data-prix].loading { color: var(--text-3); }
