/* ============================================================
   LeadExclu — animations du site public (accueil)
   Tout est désactivé si le visiteur a demandé moins d'animations.
   ============================================================ */

/* Barre de lecture en haut de page */
.sp { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), #2fb383 60%, #f2b33d); pointer-events: none; }

/* Hero : halo vivant derrière le titre */
.aurora { position: absolute; inset: -120px 0 auto; height: 820px; pointer-events: none; overflow: hidden; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 560px; height: 420px; left: 8%; top: 40px; background: radial-gradient(closest-side, rgba(13,107,80,.28), transparent); animation: au1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 520px; height: 380px; right: 6%; top: 120px; background: radial-gradient(closest-side, rgba(47,179,131,.22), transparent); animation: au2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 420px; height: 300px; left: 40%; top: 300px; background: radial-gradient(closest-side, rgba(242,179,61,.16), transparent); animation: au3 26s ease-in-out infinite alternate; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(12,26,36,.09) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000, transparent 75%); }
@keyframes au1 { to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes au2 { to { transform: translate(-140px, 40px) scale(.9); } }
@keyframes au3 { to { transform: translate(-80px, -70px) scale(1.2); } }
.hero3 > .wrap { z-index: 1; }

/* Hero : le titre apparaît mot par mot, « vous. » se souligne */
.hero3 h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.hero3 h1.go .w { opacity: 1; transform: none; filter: none; }
.hero3 h1 em { position: relative; padding: 0 .06em; background-image: linear-gradient(100deg, var(--brand) 10%, #1f9d6f 55%, #2fb383 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero3 h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em; z-index: -1; border-radius: .1em; background: rgba(13,107,80,.14); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.6,0,.2,1) 1.1s; }
.hero3 h1.go em::after { transform: scaleX(1); }
.hero3 h1 { position: relative; z-index: 0; }
.h-in { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.h-in.go { opacity: 1; transform: none; }

/* Scène produit : se redresse au défilement, suit légèrement la souris */
.stage { perspective: 1600px; }
.stage .frame { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transform-origin: 50% 0; transition: transform .25s ease-out; will-change: transform; }
.stage .frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 45%); opacity: var(--go, 0); transition: opacity .3s; z-index: 5; }

/* Bandeau des métiers qui défile */
.mband { margin: 34px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mband-t { display: flex; gap: 10px; width: max-content; animation: defile 38s linear infinite; }
.mband:hover .mband-t { animation-play-state: paused; }
.mband span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: .9rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.mband span .ic { width: 16px; height: 16px; color: var(--brand); }
@keyframes defile { to { transform: translateX(-50%); } }

/* Cartes : halo qui suit le curseur */
.card, .price-card, .pledge, .vs-col { --mx: 50%; --my: 50%; }
.lux { background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(13,107,80,.075), transparent 42%); }
.card.lux, .price-card.lux { border-color: #cfe2d9; }
.price-card { transition: box-shadow .25s, transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s; }
.price-card:hover { transform: translateY(-4px); }
.price-card:hover .mi { transform: rotate(-8deg) scale(1.08); }
.price-card .mi, .pledge .ic { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.pledge:hover .ic { transform: scale(1.18); }

/* Boutons principaux : reflet au survol */
.btn-primary, .btn-dark { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.btn-primary:hover::after, .btn-dark:hover::after { transform: translateX(120%); }
.btn-lg .ic:last-child { transition: transform .25s; }
.btn-lg:hover .ic:last-child { transform: translateX(3px); }

/* Apparitions en cascade et étapes numérotées */
.reveal { transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); transform: translateY(22px); }
.step .step-n { transition: background .4s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.reveal { transition-delay: var(--d, 0s); }
.step.in .step-n { animation: pop .6s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d, 0s) + .25s); background: var(--brand); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: none; } }

/* Prix : le chiffre défile jusqu'à sa valeur */
.price-card b { font-variant-numeric: tabular-nums; }


/* ---------- Titres de section : mot par mot au défilement ---------- */
.split .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1), filter .6s; }
.split.go .w { opacity: 1; transform: none; filter: none; }

/* ---------- Comparatif : « ailleurs » se barre, nos points s'allument ---------- */
.vs-col.them div { text-decoration: none; position: relative; width: max-content; max-width: 100%; }
.vs-col.them div::after { content: ""; position: absolute; left: 34px; right: 0; top: 52%; height: 2px; border-radius: 2px; background: #c6ccc9; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.6,0,.2,1); }
.vs.in .vs-col.them div::after { transform: scaleX(1); }
.vs-col.us div { opacity: .25; transform: translateX(-6px); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); }
.vs.in .vs-col.us div { opacity: 1; transform: none; }
.vs.in .vs-col.us .ic { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: inherit; }
.vs-col.us { position: relative; overflow: hidden; }
.vs-col.us::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 75%, rgba(47,179,131,.35) 88%, transparent 100%); animation: tourne 7s linear infinite; pointer-events: none; }
.vs-col.us::after { content: ""; position: absolute; inset: 1.5px; border-radius: 19px; background: var(--ink); pointer-events: none; }
.vs-col.us > * { position: relative; z-index: 1; }
@keyframes tourne { to { transform: rotate(1turn); } }

/* ---------- Étapes : un fil relie les numéros et se remplit ---------- */
.steps { position: relative; }
@media (min-width: 1001px) {
  .steps::before, .steps::after { content: ""; position: absolute; left: 40px; right: 40px; top: 41px; height: 2px; border-radius: 2px; background: var(--line); z-index: 0; }
  .steps::after { background: linear-gradient(90deg, var(--brand), #2fb383, #f2b33d); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.6,0,.2,1) .3s; }
  .steps.go::after { transform: scaleX(1); }
  .steps > .step { z-index: 1; }
}

/* ---------- Section garantie (fond sombre) : lumière qui suit la souris ---------- */
.bg-ink { position: relative; overflow: hidden; }
.bg-ink::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 20%), rgba(47,179,131,.16), transparent 60%); transition: background .2s; }
.bg-ink > .wrap { position: relative; }
#rules > * { transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s; }
#rules > *:hover { transform: translateY(-4px); }

/* ---------- Preuve de consentement : les lignes s'écrivent, le tampon tombe ---------- */
.proof > div > span { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.proof.go > div > span { opacity: 1; transform: none; }
.proof .badge { transform: scale(1.8) rotate(-12deg); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.proof.go .badge { transform: none; opacity: 1; transition-delay: 1.5s; }

/* ---------- Avis : deux rangées qui défilent en sens inverse ---------- */
.rv { display: grid; gap: 16px; margin: 8px 0 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-t { display: flex; gap: 16px; width: max-content; animation: defile 60s linear infinite; }
.rv-r.rev .rv-t { animation-direction: reverse; animation-duration: 70s; }
.rv-r:hover .rv-t { animation-play-state: paused; }
.rv-c { width: 340px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; transition: transform .3s, box-shadow .3s; }
.rv-c:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.rv-st { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; }
.rv-c blockquote { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; flex: 1; }
.rv-c figcaption { display: flex; gap: 10px; align-items: center; }
.rv-c figcaption b { display: block; font-size: .88rem; }
.rv-c figcaption small { color: var(--muted); font-size: .8rem; }
#ap-s .badge { margin-right: 6px; }

/* ---------- Appel final : bordure lumineuse qui tourne ---------- */
.final { isolation: isolate; }
.final::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), transparent 0 62%, #2fb383 78%, #f2b33d 86%, transparent 94%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 5s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ang { to { --ang: 360deg; } }
.final .dots { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.final .dots i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #7ad3ad; opacity: 0; animation: monte linear infinite; }
@keyframes monte { 10% { opacity: .7; } 100% { transform: translateY(-420px); opacity: 0; } }

/* ---------- FAQ : la réponse se déplie en douceur ---------- */
details.faq[open] > p { animation: deplie .35s cubic-bezier(.2,.7,.2,1); }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Boutons aimantés ---------- */
.mag { transition: transform .2s cubic-bezier(.2,.7,.2,1); }


/* ============================================================
   Peps : couleurs, repères, simplicité
   ============================================================ */
section { padding: 120px 0; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.topnote { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.tn-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fb383; box-shadow: 0 0 0 0 rgba(47,179,131,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(47,179,131,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,131,0); } }

/* Repères de section en pastille */
.eyebrow { background: var(--brand-50); border: 1px solid #d3e8de; padding: 6px 13px 6px 11px; border-radius: 99px; }
.bg-ink .eyebrow { background: rgba(122,211,173,.1); border-color: rgba(122,211,173,.25); }
.hero3 .eyebrow { box-shadow: 0 6px 20px -8px rgba(13,107,80,.35); }


/* Une couleur par métier */
.price-card .mi, .mband span .ic { --h: 158; }
.price-card .mi { background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 62% 32%); transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; }
.price-card:hover .mi { box-shadow: 0 8px 18px -8px hsl(var(--h) 60% 40% / .6); }
.mband span .ic { color: hsl(var(--h) 62% 36%); }
.price-card b { background: linear-gradient(180deg, var(--ink), #2a3d4a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Onglets de la plateforme : défilement automatique avec barre de progression */
.feat-tabs button { position: relative; overflow: hidden; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.feat-tabs button:hover { transform: translateY(-1px); }
.feat-tabs button .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #2fb383; transform: scaleX(0); transform-origin: 0 50%; }
.feat-tabs button.on .prog.run { animation: prog var(--dur, 7s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
.feat-panel.on { animation: panneau .5s cubic-bezier(.2,.7,.2,1); }
@keyframes panneau { from { opacity: 0; transform: translateY(12px); } }

/* FAQ : les premières questions, le reste sur demande */
.faq-more { display: flex; justify-content: center; margin-top: 26px; }
details.faq.cache { display: none; }
details.faq summary { transition: color .2s, padding-left .25s; }
details.faq summary:hover { color: var(--brand); padding-left: 6px; }

/* Simulateur : le résultat change de couleur selon le signe */
#s-gain { transition: color .3s; font-variant-numeric: tabular-nums; }
#s-gain.neg { color: #ff9a7a; }
#s-gain.pos { color: #5fe0a8; }
/* Panneau sombre du simulateur : textes secondaires plus lisibles */
.sim .out small.muted, .sim .out p.muted { color: #b9c6ce; }
.sim .out .kv span { color: #d3dde3; }
.sim .out .kv b { color: #fff; font-weight: 600; }

/* Navigation par points (ordinateur) */
.dotnav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.dotnav.vis { opacity: 1; pointer-events: auto; }
.dotnav a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: #cfd6d2; transition: transform .25s, background .25s; }
.dotnav a:hover, .dotnav a.on { background: var(--brand); transform: scale(1.35); }
.dotnav a span { position: absolute; right: 20px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: .8rem; font-weight: 600; color: #fff; background: var(--ink); padding: 4px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.dotnav a:hover span { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1240px) { .dotnav { display: none; } }

/* Barre d'action fixe (mobile) */
.mcta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(12,26,36,.92); backdrop-filter: blur(12px); box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.mcta.vis { transform: none; }
.mcta .btn { flex: 1; height: 46px; }
.mcta .btn-ghost { flex: 0 0 auto; background: rgba(255,255,255,.1); color: #fff; border-color: transparent; box-shadow: none; }
@media (max-width: 760px) { .mcta { display: flex; } body.home-pad { padding-bottom: 76px; } .cs-fab { transition: transform .4s cubic-bezier(.2,.7,.2,1); } body.mcta-on .cs-fab { transform: translateY(-70px); } }

@media (max-width: 860px) { .aurora { height: 600px; } .aurora i { filter: blur(50px); } .rv-c { width: 285px; } }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .mband-t { animation: none; }
  .hero3 h1 .w, .h-in { opacity: 1; transform: none; filter: none; transition: none; }
  .hero3 h1 em::after { transform: none; transition: none; }
  .stage .frame { transform: none; }
  .sp { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .split .w, .vs-col.us div, .proof > div > span, .proof .badge { opacity: 1; transform: none; filter: none; transition: none; }
  .vs-col.them div::after, .steps::after { transform: none; transition: none; }
  .rv-t, .vs-col.us::before, .final::after, .final .dots i { animation: none; }
  .rv { -webkit-mask-image: none; mask-image: none; }
  .rv-t { flex-wrap: wrap; width: auto; justify-content: center; }
  .rv-c[aria-hidden] { display: none; }
  .tn-dot, .feat-tabs button.on .prog.run, .feat-panel.on { animation: none; }
}
