/* Page d'accueil publique (public/templates/public/landing.html).
   Feuille autonome, chargée par la seule landing en plus de build.css (Tailwind) : le design de la
   landing est distinct de celui de l'application. Les aperçus de l'interface (tableau de bord,
   graphiques) sont dessinés en HTML/CSS et reprennent les couleurs réelles de l'application. */

/* Bricolage Grotesque (titres), hébergée localement comme Inter : aucune ressource Google avant
   consentement. Fichiers « opsz » : axes taille optique et graisse. Licence : static/fonts/LICENSE-BricolageGrotesque.txt */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============================================================
   Jetons
   ============================================================ */
:root {
  --bg: #fbfaf7;            /* blanc cassé chaud */
  --surface: #ffffff;
  --ink: #15171c;
  --text: #3a3f4a;
  --muted: #6b707b;
  --line: #e8e5dd;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --r-lg: 28px;
  --shadow-card: 0 1px 2px rgba(21,23,28,.05), 0 12px 32px -12px rgba(21,23,28,.18);
  --shadow-app: 0 2px 4px rgba(21,23,28,.04), 0 40px 80px -30px rgba(21,23,28,.35);

  /* Thème Cobalt */
  --brand: #2451e6;         /* motifs des panneaux teintés */
  --mark: #2451e6;          /* mots mis en valeur, libellés, icônes */
  --brand-tint: #edf1fe;    /* panneaux derrière les aperçus */
  --brand-dark: #0c1540;    /* bloc final, carte démo */
  --accent: #4ade80;        /* touche de couleur sur fond sombre */
  --btn: #0c1540;           /* bouton principal et symbole du logo : bleu nuit */
  --btn-hover: #18235c;

  /* Couleurs de données : celles de l'application */
  --paid: #0f8a6a; --credited: #6d5bd0; --up: #0f8a6a;

  --h1-size: clamp(40px, 6.2vw, 78px);
  --h2-size: clamp(30px, 3.8vw, 48px);
  --h3-size: 22px;
}

/* Le header collant ne masque pas le titre de la section visée par une ancre */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
.lp h1, .lp h2, .lp h3 { color: var(--ink); font-family: var(--font-display); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.04; }
.lp a { text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
em.hl { font-style: normal; color: var(--mark); }

/* ---- Boutons (préfixe lbtn : style.css définit déjà .btn pour l'application) ---- */
.lbtn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; white-space: nowrap;
  font: 600 16px/1 var(--font-body); padding: 15px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: background .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.lbtn:hover { transform: translateY(-1px); }
.lbtn svg { width: 17px; height: 17px; }
.lbtn-primary { background: var(--btn); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px var(--btn); }
.lbtn-primary:hover { background: var(--btn-hover); }
.lbtn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(21,23,28,.05); }
.lbtn-play { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--mark); display: grid; place-items: center; }
.lbtn-play svg { width: 10px; height: 10px; }

/* ============================================================
   Header
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-body); color: var(--ink); letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--btn); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-right .lbtn { padding: 11px 16px; font-size: 15px; }
.nav-login { font-size: 15px; font-weight: 500; color: var(--ink); padding: 10px 14px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { text-align: center; padding: 80px 0 0; overflow: hidden; }
.hero h1 { font-size: var(--h1-size); max-width: 11.5em; margin: 0 auto; }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; margin: 24px auto 0; line-height: 1.55; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.reassure { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: var(--muted); }
.reassure span { display: inline-flex; align-items: center; gap: 7px; }
.reassure svg { width: 16px; height: 16px; color: var(--mark); }

/* Scène : fond teinté derrière l'aperçu de l'app */
.stage { position: relative; margin-top: 64px; }
.stage::before { content: ""; position: absolute; left: 24px; right: 24px; top: 60px; bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 18%, transparent) 1px, transparent 0) 0 0/22px 22px,
    linear-gradient(180deg, var(--brand-tint), color-mix(in srgb, var(--brand-tint) 40%, var(--bg)));
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.stage-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Aperçus de l'application (couleurs de l'application réelle)
   ============================================================ */
.app { position: relative; z-index: 2; background: #fff; color: #0f172a; border-radius: 16px; overflow: hidden; text-align: left;
  font: 13px/1.45 "Inter", sans-serif; border: 1px solid rgba(21,23,28,.08); box-shadow: var(--shadow-app); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f6f7f9; border-bottom: 1px solid #e5e7eb; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7dd; }
.app-bar .url { margin: 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 7px; padding: 3px 14px; color: #6b7280; font-size: 12px; min-width: 240px; text-align: center; }
.app-body { display: grid; grid-template-columns: 210px 1fr; min-height: 470px; }
.app-side { background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 16px 10px; font-size: 12.5px; }
.app-side .h { margin: 14px 8px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 600; }
.app-side .h:first-child { margin-top: 0; }
.app-side .it { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 7px; color: #334155; transition: background .3s, color .3s; }
.app-side .it.on { background: #e0f2fe; color: #0369a1; font-weight: 600; }
.app-side small { color: #64748b; font-size: 11.5px; }
.app-side .it.on small { color: #0369a1; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; }
.app-title { font-size: 12px; color: #64748b; }
.app-value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.chip-up { color: #0f8a6a; font-weight: 600; font-size: 13px; }
.seg { display: flex; background: #f1f5f9; border-radius: 8px; padding: 3px; font-size: 11.5px; color: #64748b; }
.seg span { padding: 4px 9px; border-radius: 6px; }
.seg span.on { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.kpi { border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 11px; }
.kpi span { display: block; font-size: 10.5px; color: #64748b; }
.kpi b { font-size: 16px; }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: #64748b; margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ============================================================
   Aperçu animé du hero : 3 scènes (Synthèse, Revenus, Position), pilotées par static/js/landing.js
   Sans JavaScript ou avec « réduire les animations », la scène 1 reste affichée, figée.
   ============================================================ */
/* Les scènes se superposent dans la même cellule : la hauteur est celle de la plus haute, sans saut.
   Bas dégagé : la barre d'onglets chevauche l'aperçu. */
.scenes { display: grid; padding: 20px 24px 64px; min-width: 0; }
.scene { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .45s ease .1s, visibility 0s; }
.scene .legend-end { margin-left: auto; }
.scene .legend b { color: #0f172a; }
.up-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 600; margin-bottom: 8px; }

@keyframes demo-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes demo-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes demo-pop-badge { from { opacity: 0; transform: translate(-100%, -50%) scale(.6); } to { opacity: 1; transform: translate(-100%, -50%); } }
@keyframes demo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes demo-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes demo-widen { from { transform: scaleX(0); } to { transform: none; } }
@keyframes demo-slide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.scene.play .reveal { animation: demo-reveal 1.6s cubic-bezier(.3,.7,.3,1) both .15s; }

/* Scène 1 : courbe de valeur, puis clic sur « Performance » et bascule du graphique (comme dans l'app) */
.charts { display: grid; }
.chart-mode { grid-area: 1 / 1; min-width: 0; }
.mode-perf { opacity: 0; }
.scene.play .mode-value { animation: demo-fade-out .35s ease both 3.9s; }
.scene.play .mode-perf { animation: demo-fade-in .35s ease both 4s; }
.scene.play .mode-perf .chart { animation: demo-reveal 1.5s cubic-bezier(.3,.7,.3,1) both 4.1s; }
.perf-chart { position: relative; }
/* Ancré en coordonnées du graphique (viewBox 612 x 190) : à gauche du trait x = 600, à mi-chemin entre y = 43 et y = 99 */
.gap-badge { position: absolute; left: calc(100% * 590 / 612); top: calc(100% * 71 / 190); transform: translate(-100%, -50%);
  white-space: nowrap; background: #0f8a6a; color: #fff; font: 700 13px/1 "Inter", sans-serif; padding: 6px 10px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(15,138,106,.7); opacity: 0; transform-origin: right center; }
.gap-line { opacity: 0; }
.scene.play .gap-badge { animation: demo-pop-badge .45s cubic-bezier(.3,1.5,.5,1) both 5.7s; }
.scene.play .gap-line { animation: demo-fade-in .3s both 5.6s; }
/* Sélecteur Valeur / Performance */
.mode-switch .m-value { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mode-switch .m-perf { position: relative; }
.scene.play .mode-switch .m-value { animation: demo-seg-off .2s both 3.8s; }
.scene.play .mode-switch .m-perf { animation: demo-seg-on .2s both 3.8s, demo-press .25s ease 3.72s; }
@keyframes demo-seg-off { to { background: transparent; color: #64748b; font-weight: 400; box-shadow: none; } }
@keyframes demo-seg-on { to { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); } }
/* Le pointeur arrive sur le bouton, clique (3,8 s), puis disparaît ; le bouton s'enfonce et une onde part du clic */
.cursor { position: absolute; left: 55%; top: 60%; width: 16px; height: 20px; opacity: 0; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); transform-origin: 0 0; }
.cursor svg { display: block; width: 100%; height: 100%; }
.m-perf::after { content: ""; position: absolute; inset: -3px; border-radius: 8px; border: 2px solid #0a7eea; opacity: 0; pointer-events: none; }
.scene.play .cursor { animation: demo-cursor 2s cubic-bezier(.4,0,.2,1) both 2.6s; }
.scene.play .m-perf::after { animation: demo-ripple .6s ease-out both 3.8s; }
@keyframes demo-cursor {
  0% { opacity: 0; transform: translate(-110px, 70px); }
  12% { opacity: 1; }
  55% { transform: translate(0, 0) scale(1); }
  60% { transform: translate(0, 0) scale(.82); }
  68% { transform: translate(0, 0) scale(1); }
  85% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(10px, 14px); }
}
@keyframes demo-press { 50% { transform: scale(.92); } }
@keyframes demo-ripple { from { opacity: .7; transform: scale(.85); } to { opacity: 0; transform: scale(1.35); } }

/* Scène 2 : barres mois par mois, puis la participation aux bénéfices en violet */
.rev-grid { display: grid; grid-template-columns: 1fr 210px; gap: 22px; margin-top: 18px; align-items: start; }
.rev-grid > * { min-width: 0; }
.scene .bars { height: 170px; }
.scene.play .bar .p { animation: demo-grow .5s cubic-bezier(.3,.7,.3,1) both calc(.1s + var(--i) * .07s); transform-origin: bottom; }
.scene.play .bar .c { animation: demo-grow .5s cubic-bezier(.3,.7,.3,1) both 1.2s; transform-origin: bottom; }
.upcoming, .waterfall-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.upcoming .up-row small { color: #64748b; }
.scene.play .up-row { animation: demo-slide .4s ease both; }
.scene.play .up-row:nth-child(2) { animation-delay: 1.5s; }
.scene.play .up-row:nth-child(3) { animation-delay: 1.65s; }
.scene.play .up-row:nth-child(4) { animation-delay: 1.8s; }

/* Scène 3 : cours, ligne du PRU, repères, puis décomposition de la plus-value */
.pos-title { display: flex; align-items: center; gap: 8px; }
.logo-dot.sm { width: 20px; height: 20px; border-radius: 6px; font-size: 8.5px; }
.pos-grid { display: grid; grid-template-columns: 1fr 220px; gap: 22px; margin-top: 18px; align-items: start; }
.pos-grid > * { min-width: 0; }
.pin { transform-box: fill-box; transform-origin: center; }
.scene.play .pru-line { animation: demo-fade-in .4s both 1.5s; }
.scene.play .pin { animation: demo-pop .35s cubic-bezier(.3,1.5,.5,1) both calc(1.8s + var(--k) * .25s); }
.scene .wf div { width: var(--w); transform-origin: left; }
.scene.play .wf div { animation: demo-widen .6s cubic-bezier(.3,.7,.3,1) both 2.9s; }
.scene.play .wf:nth-of-type(3) div { animation-delay: 3.1s; }
.scene.play .wf:nth-of-type(4) div { animation-delay: 3.3s; }
.wf.total { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.wf.total em { color: #0f172a; font-weight: 600; }
.wf.total b { color: #0f8a6a; }
.scene.play .wf.total { animation: demo-fade-in .4s both 3.7s; }

/* Barre d'onglets, à cheval sur le bas de l'aperçu : légende, progression et navigation */
#demo { padding-bottom: 64px; }
.demo-tabs { position: relative; z-index: 3; display: flex; gap: 8px; align-items: stretch; max-width: 780px; margin: -34px auto 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(21,23,28,.35); }
.tabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tab { position: relative; overflow: hidden; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 10px 14px 12px; cursor: pointer; font: inherit; color: var(--muted); transition: background .2s; }
.tab:hover { background: #f8fafc; }
.tab b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.tab span { display: block; font-size: 12.5px; line-height: 1.35; }
.tab.on { background: var(--brand-tint); }
.tab.on b { color: var(--mark); }
.tab:focus-visible, .demo-toggle:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.bar-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--mark); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.tab:not(.on) .bar-progress { transform: scaleX(0); }
.demo-toggle { flex: none; width: 44px; border-radius: 12px; border: 1px solid transparent; background: #f6f7f9; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
.demo-toggle:hover { background: #eef0f4; }
.demo-toggle svg { width: 16px; height: 16px; }
.demo-toggle .i-play, #demo.paused .demo-toggle .i-pause { display: none; }
#demo.paused .demo-toggle .i-play { display: block; }
/* Pause demandée avec le bouton : on fige aussi les animations en cours dans la scène */
#demo.frozen .scene, #demo.frozen .scene * { animation-play-state: paused !important; }

@media (max-width: 960px) {
  .rev-grid, .pos-grid { grid-template-columns: 1fr; }
  .upcoming, .waterfall-card { display: none; }
}
@media (max-width: 560px) {
  .scenes { padding: 16px 16px 44px; }
  .app-head .seg, .scene .legend-end { display: none; }
  .app-value { font-size: 26px; }
  #demo { padding-bottom: 44px; }
  .demo-tabs { gap: 4px; margin-top: -24px; padding: 4px; border-radius: 14px; }
  .tabs { gap: 6px; }
  .tab { padding: 9px 8px 11px; text-align: center; }
  .tab span { display: none; }
  .tab b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene.on { transition: none; transform: none; }
  .cursor { display: none; }
  .scene.play, .scene.play * { animation: none !important; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 120px 0; }
.section.flush { padding-top: 0; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mark); letter-spacing: .02em; margin-bottom: 18px; }
.label::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.head { max-width: 760px; margin-bottom: 64px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: var(--h2-size); }
.head p { font-size: 19px; color: var(--muted); margin-top: 18px; }
.head p a { color: var(--mark); font-weight: 500; }

/* Bandeau des comptes suivis */
.accounts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 2; }
.accounts .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.accounts .lbl { font-size: 14px; color: var(--muted); }
.acc-list { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.acc { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 16px; }
.acc .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-tint); color: var(--mark); display: grid; place-items: center; }
.acc .dot svg { width: 16px; height: 16px; }
.acc.soon { color: var(--muted); font-weight: 500; }
.acc.soon .dot { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.badge-soon { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

/* Constat : colonnes numérotées */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pain { padding: 36px 36px 0 0; }
.pain + .pain { padding-left: 36px; border-left: 1px solid var(--line); }
.pain .n { font: 700 44px/1 var(--font-display); color: var(--mark); margin-bottom: 22px; display: block; letter-spacing: -.035em; }
.pain h3 { font-size: var(--h3-size); margin-bottom: 10px; }
.pain p { color: var(--muted); }

/* Fonctionnalités */
.features { display: grid; gap: 140px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature.rev .f-text { order: 2; }
.feature > * { min-width: 0; }
.f-text h3 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 18px; }
.f-text > p { font-size: 18px; color: var(--muted); }
.f-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.f-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; color: var(--text); }
.f-points svg { width: 22px; height: 22px; color: var(--mark); margin-top: 1px; }
.f-stage { position: relative; border-radius: var(--r-lg); padding: 44px; background: var(--brand-tint); overflow: hidden; }
.f-stage::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 14%, transparent) 1px, transparent 0) 0 0/20px 20px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); }
.card { position: relative; background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--shadow-card);
  font: 13px/1.45 "Inter", sans-serif; color: #0f172a; border: 1px solid rgba(21,23,28,.06); }
.card + .card { margin-top: 14px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.card-title b { font-size: 14px; }
.card small { color: #64748b; font-size: 12px; }

.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 4px 0 14px; }
.row { display: grid; grid-template-columns: 10px 1fr auto 52px; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #f1f5f9; }
.row:last-child { border-bottom: 0; }
.row i { width: 10px; height: 10px; border-radius: 3px; }
.row small { text-align: right; }
.big-fig { display: flex; gap: 28px; margin-bottom: 14px; flex-wrap: wrap; }
.big-fig span { display: block; font-size: 11.5px; color: #64748b; }
.big-fig b { font-size: 22px; letter-spacing: -.02em; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 6px; align-items: end; height: 150px; border-bottom: 1px solid #e2e8f0; }
.bar { display: flex; flex-direction: column-reverse; height: 100%; }
.bar span { display: block; }
.bar .p { background: var(--paid); height: calc(var(--p) / 460 * 100%); border-radius: 3px 3px 0 0; }
.bar .c { background: var(--credited); height: calc(var(--c) / 460 * 100%); border-radius: 3px 3px 0 0; }
.bar .p:has(+ .c) { border-radius: 0; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 6px; font-size: 10.5px; color: #94a3b8; text-align: center; margin-top: 5px; overflow: hidden; }
.up-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.up-row small { display: block; font-size: 11.5px; }
.logo-dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; }
.markers { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.mk { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; border: 1px solid #e2e8f0; color: #334155; background: #f8fafc; }
.mk.buy { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.mk.div { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.wf { display: grid; grid-template-columns: 110px 1fr 58px; gap: 8px; align-items: center; font-size: 12px; margin-top: 5px; }
.wf em { font-style: normal; color: #64748b; }
.wf div { height: 9px; border-radius: 3px; }
.wf b { text-align: right; font-weight: 600; }
.drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 18px; text-align: center; color: #64748b; font-size: 12.5px; background: #f8fafc; }
.drop b { color: #0a7eea; }
.file { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.file .ext { width: 36px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.file small { display: block; font-size: 11.5px; }
.ok { color: #0f8a6a; font-weight: 600; font-size: 12px; white-space: nowrap; }
.ok.pending { color: #64748b; }
.progress { height: 5px; border-radius: 99px; background: #e2e8f0; margin-top: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: #0f8a6a; }

/* Bientôt */
.soon-panel { margin-top: 120px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px 44px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.soon-panel h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 10px; }
.soon-panel p { color: var(--muted); }
.soon-list { display: grid; gap: 10px; }
.soon-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; }
.soon-item .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--mark); display: grid; place-items: center; flex: none; }
.soon-item .dot svg { width: 18px; height: 18px; }
.soon-item b { color: var(--ink); display: block; }
.soon-item small { color: var(--muted); font-size: 13px; }
.soon-item .badge-soon { margin-left: auto; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 33%; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step { position: relative; padding-right: 40px; }
.step .n { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center;
  font: 600 16px var(--font-body); color: var(--mark); margin-bottom: 24px; position: relative; box-shadow: 0 1px 2px rgba(21,23,28,.05); }
.step h3 { font-size: var(--h3-size); margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Confiance */
.trust { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.t { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.t:nth-child(1), .t:nth-child(2) { grid-column: span 3; }
.t:nth-child(3) { grid-column: span 2; }
.t.demo { grid-column: span 4; background: var(--brand-dark); border-color: var(--brand-dark); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.t .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--mark); display: grid; place-items: center; margin-bottom: 20px; }
.t .ico svg { width: 20px; height: 20px; }
.t h3 { font-size: var(--h3-size); margin-bottom: 8px; }
.t p { color: var(--muted); font-size: 16px; }
.lp .t.demo h3 { color: #fff; }
.t.demo p { color: rgba(255,255,255,.7); }
.t.demo .lbtn { background: #fff; color: var(--ink); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.faq-grid .head { margin-bottom: 0; position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: block; list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315171c' stroke-width='2'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); }

/* Appel final */
.final { margin: 0 24px 24px; border-radius: 32px; background: var(--brand-dark); color: #fff; text-align: center; padding: 110px 24px; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0/24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); }
.final > * { position: relative; }
.lp .final h2 { color: #fff; font-size: var(--h2-size); max-width: 13em; margin: 0 auto; }
.final h2 em.hl { color: var(--accent); }
.final p { color: rgba(255,255,255,.7); font-size: 19px; margin-top: 18px; }
.final .lbtn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.final .lbtn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; }
.final .reassure { color: rgba(255,255,255,.65); }
.final .reassure svg { color: var(--accent); }

/* Pied de page */
.site-footer { padding: 64px 0 32px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h2 { font: 600 13px/1.4 var(--font-body); color: var(--ink); margin: 0 0 14px; letter-spacing: 0; }
.foot a { display: block; padding: 4px 0; }
.foot a.logo { display: inline-flex; padding: 0; }
.foot a:hover { color: var(--ink); }
.foot p { margin-top: 14px; max-width: 26em; }
/* Liens légaux et avertissement communs (templates/footer_legal.html, stylés pour un fond sombre) */
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal nav, .legal nav a, .legal p { color: var(--muted); }
.legal nav a:hover { color: var(--ink); }
.copy { text-align: center; font-size: 13px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .feature, .faq-grid, .soon-panel { grid-template-columns: 1fr; gap: 40px; }
  .feature.rev .f-text { order: 0; }
  .pains, .steps { grid-template-columns: 1fr; }
  .pain, .pain + .pain { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { gap: 36px; } .steps::before { display: none; }
  .trust { grid-template-columns: 1fr; }
  .t:nth-child(n), .t.demo { grid-column: auto; }
  .t.demo { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .faq-grid .head { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .stage-inner { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 48px; }
  .lede { font-size: 18px; }
  .ctas .lbtn { width: 100%; }
  .nav-login { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .f-stage { padding: 16px; border-radius: 20px; }
  .months { font-size: 9px; gap: 2px; } .bars { gap: 3px; }
  .stage::before { left: 0; right: 0; }
  .final { margin: 0 8px 8px; padding: 80px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lbtn, .lbtn:hover { transition: none; transform: none; }
}
