@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg-0: #06170f;
  --bg-1: #0a2418;
  --bg-2: #0f3324;
  --green: #22c06b;
  --green-2: #2ee08a;
  --green-deep: #128c4a;
  --mint: #a8f0c9;
  --text: #eef7f2;
  --muted: #9fbcad;
  --glass: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .14);
  --card: #ffffff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 75% 10%, #12452f 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 100%, #0d3a27 0%, transparent 60%),
              linear-gradient(160deg, var(--bg-1), var(--bg-0) 70%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- Décor de fond ---------- */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; background: #1fa855; top: -160px; right: -120px; }
.o2 { width: 420px; height: 420px; background: #0e6b45; bottom: -140px; left: -120px; animation-duration: 28s; }
.o3 { width: 300px; height: 300px; background: #2ee08a; top: 45%; left: 40%; opacity: .12; animation-duration: 34s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none;
  padding: 14px 22px; position: relative; isolation: isolate; overflow: hidden; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  transform: translate(var(--mx), var(--my));
}
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 17px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--green-2), var(--green) 50%, var(--green-deep)); color: #fff; box-shadow: 0 10px 30px -10px rgba(34, 192, 107, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(34, 192, 107, .85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: #0b3d27; box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:disabled { opacity: .7; cursor: wait; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(16px, 5vw, 64px);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 23, 15, .72); backdrop-filter: blur(16px) saturate(140%); padding-top: 12px; padding-bottom: 12px; border-color: rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 19px; }
.logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--green-2), var(--green-deep)); box-shadow: 0 8px 24px -8px rgba(34,192,107,.8); }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Héros ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 80px);
  padding: 30px clamp(16px, 5vw, 64px) 60px;
  max-width: 1320px; margin: 0 auto;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(34,192,107,.12); border: 1px solid rgba(46,224,138,.28); color: var(--mint); font-size: 13px; font-weight: 600;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(46,224,138,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(46,224,138,0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.05; font-weight: 800; margin: 22px 0 18px; }
.grad {
  background: linear-gradient(100deg, var(--green-2), #8ff5c1 40%, var(--green) 70%, var(--green-2));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: #cfe3d8; margin: 0; }
.accent-bar { width: 70px; height: 5px; border-radius: 9px; background: var(--green); margin: 28px 0 34px; position: relative; overflow: hidden; }
.accent-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: sweep 2.8s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.trust span { color: var(--green-2); font-weight: 800; margin-right: 4px; }

/* Scène téléphone */
.hero-visual { position: relative; height: 620px; perspective: 1400px; }
.hero-visual > * { --px: 0px; --py: 0px; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 290px; height: 590px; margin: -295px 0 0 -145px;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2c3a33, #0b120e 60%);
  box-shadow: 0 0 0 2px #3c4c44, 0 40px 80px -20px rgba(0,0,0,.7), 0 0 120px -30px rgba(34,192,107,.5), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: translate(var(--px), var(--py)) rotateY(-14deg) rotateX(6deg) rotateZ(4deg);
  transition: transform .6s var(--ease);
  animation: phone-in 1.4s var(--ease) both .2s;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotateY(-30deg) rotateX(10deg) rotateZ(8deg) scale(.9); } }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: #050806; border-radius: 0 0 18px 18px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0d1512; display: flex; flex-direction: column; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px; background: #1f2c27; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--green-2), var(--green-deep)); color: #fff; transition: transform .5s var(--ease); }
.wa-name { font-weight: 700; font-size: 14px; }
.wa-status { font-size: 11px; color: var(--muted); }
.wa-body {
  flex: 1; padding: 14px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.03) 0 2px, transparent 3px) 0 0/24px 24px, #0b141a;
}
.bubble {
  max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; position: relative;
  animation: pop .5s var(--ease) both; transform-origin: bottom right;
}
.bubble.out { align-self: flex-end; background: #005c4b; color: #e9fff6; border-top-right-radius: 3px; }
.bubble.in { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 3px; transform-origin: bottom left; }
.bubble .meta { display: block; text-align: right; font-size: 9.5px; color: rgba(255,255,255,.55); margin-top: 2px; }
.bubble .ticks { transition: color .4s; }
.bubble .ticks.read { color: #53bdeb; }
.bubble.doc { display: flex; align-items: center; gap: 8px; }
.bubble.doc .doc-ic { width: 30px; height: 36px; border-radius: 4px; background: #e55; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0; }
.typing { align-self: flex-start; background: #202c33; border-radius: 10px; padding: 10px 12px; display: flex; gap: 4px; animation: pop .4s var(--ease) both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8aa; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.85); } }
.wa-body.fade-out > * { animation: out .5s var(--ease) forwards; }
@keyframes out { to { opacity: 0; transform: translateY(-14px); } }

/* Cartes flottantes */
.float-card {
  position: absolute; z-index: 4; padding: 12px 14px; border-radius: 16px; min-width: 190px;
  background: #fff; color: #10251b; box-shadow: 0 20px 40px -14px rgba(0,0,0,.55);
  transform: translate(var(--px), var(--py));
  transition: transform .6s var(--ease);
  animation: card-in 1s var(--ease) both;
}
.float-card > * { animation: bob 6s ease-in-out infinite; }
.float-card.glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: #5d7a6b; font-size: 12px; }
.float-card.glass small { color: #c4dccf; }
.float-card code { background: #e7f8ef; color: #128c4a; padding: 1px 5px; border-radius: 5px; font-size: 11px; }
.fc-row { display: flex; align-items: center; gap: 10px; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e7f8ef; font-size: 16px; flex-shrink: 0; }
.fc-icon.dark { background: rgba(255,255,255,.14); }
.fc-bar { height: 4px; border-radius: 4px; background: var(--green); width: 100%; margin-bottom: 10px; }
.mini-progress { height: 6px; background: #e7f0eb; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.mini-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--green-2), var(--green)); border-radius: 6px; animation: fill 6s var(--ease) infinite; }
@keyframes fill { 0% { width: 4%; } 80%, 100% { width: 92%; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); margin-left: auto; box-shadow: 0 0 10px var(--green-2); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes card-in { from { opacity: 0; scale: .7; filter: blur(8px); } }
.c1 { top: 70px; left: -10px; animation-delay: .7s; }
.c1 > * { animation-delay: -1s; }
.c2 { top: 30px; right: -10px; animation-delay: .9s; }
.c2 > * { animation-delay: -3s; }
.c3 { top: 300px; right: -30px; animation-delay: 1.1s; }
.c3 > * { animation-delay: -2s; }
.c4 { top: 270px; left: -40px; animation-delay: 1.3s; }
.c4 > * { animation-delay: -4s; }
.c5 { bottom: 40px; left: 10px; animation-delay: 1.5s; }
.c5 > * { animation-delay: -5s; }
.c6 { bottom: 70px; right: 0; animation-delay: 1.7s; }
.c6 > * { animation-delay: -1.5s; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Chiffres ---------- */
.stats {
  max-width: 1180px; margin: 0 auto 40px; padding: 0 clamp(16px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 800; background: linear-gradient(180deg, #fff, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 110px clamp(16px, 5vw, 64px) 20px; }
.section-head { text-align: center; margin-bottom: 50px; }
.eyebrow { display: inline-block; color: var(--green-2); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 800; }
.section p { line-height: 1.65; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .5s var(--ease), border-color .4s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(46,224,138,.16), transparent 45%);
}
.feature:hover { transform: translateY(-6px); border-color: rgba(46,224,138,.35); }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.f-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: rgba(34,192,107,.14); border: 1px solid rgba(46,224,138,.25); margin-bottom: 18px; transition: transform .5s var(--ease); }
.feature:hover .f-icon { transform: rotate(-8deg) scale(1.1); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Personnalisation */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { margin-bottom: 16px; }
code.inline { background: rgba(46,224,138,.14); color: var(--mint); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.template-card { margin-top: 26px; padding: 20px; border-radius: var(--radius); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); }
.tc-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.template { margin: 0; font-size: 17px; line-height: 1.9; }
.tag { background: rgba(46,224,138,.16); color: var(--mint); border: 1px dashed rgba(46,224,138,.5); padding: 2px 8px; border-radius: 7px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; white-space: nowrap; animation: glow 3s ease-in-out infinite; }
.tag:nth-child(2) { animation-delay: .4s; } .tag:nth-child(3) { animation-delay: .8s; } .tag:nth-child(4) { animation-delay: 1.2s; } .tag:nth-child(5) { animation-delay: 1.6s; }
@keyframes glow { 50% { box-shadow: 0 0 18px rgba(46,224,138,.35); background: rgba(46,224,138,.26); } }
.perso-demo { display: grid; gap: 18px; }
.clients { display: grid; gap: 8px; }
.client-row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: all .5s var(--ease);
}
.client-row .avatar { width: 32px; height: 32px; font-size: 13px; }
.client-row small { color: var(--muted); display: block; font-size: 12px; }
.client-row .chip { font-size: 11px; color: var(--muted); }
.client-row.active { background: rgba(34,192,107,.16); border-color: rgba(46,224,138,.5); transform: translateX(8px); box-shadow: 0 10px 30px -15px rgba(34,192,107,.8); }
.client-row.active .chip { color: var(--green-2); }
.arrow-flow { display: flex; justify-content: center; gap: 6px; }
.arrow-flow span { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); animation: flow 1.4s infinite; opacity: .2; }
.arrow-flow span:nth-child(2) { animation-delay: .2s; } .arrow-flow span:nth-child(3) { animation-delay: .4s; }
@keyframes flow { 40% { opacity: 1; transform: translateY(4px); } }
.result-bubble { justify-self: end; max-width: 440px; background: #005c4b; color: #eafff6; padding: 14px 16px 8px; border-radius: 16px 4px 16px 16px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); font-size: 15px; line-height: 1.55; min-height: 92px; }
.result-bubble .meta { text-align: right; font-size: 11px; color: rgba(255,255,255,.6); }
.result-bubble .ticks { color: #53bdeb; }
#result-text { transition: opacity .35s, filter .35s, transform .35s var(--ease); }
#result-text.swap { opacity: 0; filter: blur(6px); transform: translateY(6px); }
#result-text b { color: #9ff3c9; font-weight: 700; }

/* Anti-blocage */
.rhythm { padding: 22px 24px; border-radius: var(--radius); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; }
.rhythm-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.track { position: relative; height: 54px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.1); }
.msg-dot { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: linear-gradient(135deg, var(--green-2), var(--green-deep)); box-shadow: 0 0 18px rgba(46,224,138,.6); animation: dot-in .5s var(--ease) both; }
.pause-block { position: absolute; top: 50%; height: 26px; margin-top: -13px; border-radius: 13px; background: repeating-linear-gradient(45deg, rgba(255,193,77,.18) 0 8px, rgba(255,193,77,.08) 8px 16px); border: 1px solid rgba(255,193,77,.45); color: #ffd58a; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; white-space: nowrap; animation: dot-in .5s var(--ease) both; }
@keyframes dot-in { from { opacity: 0; transform: scale(.3); } }
.shields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shield { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255,255,255,.1); transition: transform .4s var(--ease), background .4s; }
.shield:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.shield > span { font-size: 22px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,192,107,.14); flex-shrink: 0; }
.shield b { display: block; margin-bottom: 2px; }
.shield p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Étapes */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-line { position: absolute; top: 34px; left: 0; width: 100%; height: 20px; z-index: 0; overflow: visible; }
.steps-line path { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 8 8; opacity: .6; stroke-dashoffset: 0; }
.steps-line path.draw { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800;
  background: radial-gradient(circle at 30% 30%, var(--green-2), var(--green-deep)); box-shadow: 0 0 0 8px rgba(34,192,107,.12), 0 0 40px rgba(34,192,107,.5);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0 auto; max-width: 290px; font-size: 15px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  max-width: 1080px; margin: 120px auto 80px; padding: 70px 24px; border-radius: 28px;
  background: linear-gradient(135deg, #14794a, #0e5435 50%, #0a3a26);
  border: 1px solid rgba(255,255,255,.14);
}
.cta-glow { position: absolute; width: 600px; height: 600px; left: 50%; top: -300px; margin-left: -300px; background: radial-gradient(circle, rgba(46,224,138,.5), transparent 60%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.2); opacity: .7; } }
.cta > *:not(.cta-glow) { position: relative; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.cta p { color: #cfe8db; margin: 0 0 28px; font-size: 17px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px clamp(16px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; }

/* ---------- Connexion ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(3, 12, 8, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .35s ease both;
}
.login-overlay[hidden] { display: none; }
.login-overlay.closing { animation: fade .25s ease reverse both; }
@keyframes fade { from { opacity: 0; } }
.login-card {
  position: relative; width: 100%; max-width: 420px; padding: 36px 30px 30px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, rgba(20, 52, 37, .92), rgba(8, 26, 18, .96));
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.8);
  animation: rise .6s var(--ease) both;
  isolation: isolate;
}
.login-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), rgba(46,224,138,.9), rgba(255,255,255,.1) 25%, rgba(46,224,138,.2) 50%, rgba(255,255,255,.1) 75%, rgba(46,224,138,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; font-size: 14px; transition: background .2s, transform .3s var(--ease); }
.close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.login-logo { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, var(--green-2), var(--green-deep)); box-shadow: 0 14px 34px -10px rgba(34,192,107,.9); animation: float-logo 4s ease-in-out infinite; }
.login-logo svg { width: 32px; height: 32px; }
@keyframes float-logo { 50% { transform: translateY(-6px) rotate(-4deg); } }
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card p { margin: 0 0 22px; font-size: 14px; line-height: 1.55; }
.login-card a { color: var(--green-2); }
.step-pane { display: none; }
.step-pane.active { display: block; animation: slide-in .5s var(--ease) both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
.input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); margin-bottom: 14px; transition: border-color .25s, box-shadow .25s; }
.input-wrap:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(46,224,138,.15); }
.input-wrap svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.input-wrap input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: 500 16px inherit; font-family: inherit; padding: 15px 0; min-width: 0; }
.input-wrap input::placeholder { color: #6f8f80; }
.otp { position: relative; display: flex; justify-content: center; gap: 12px; margin: 6px 0 18px; }
#otp-input {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; border: 0; padding: 0;
  font-size: 16px; color: transparent; background: transparent; caret-color: transparent; cursor: text;
}
.otp-box {
  width: 56px; height: 64px; border-radius: 14px; display: grid; place-items: center; font: 700 28px/1 inherit; font-family: inherit; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); position: relative;
  transition: border-color .2s, box-shadow .2s, transform .25s var(--ease), background .2s;
}
.otp-box.active { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(46,224,138,.15); transform: translateY(-2px); }
.otp-box.active:empty::after { content: ""; width: 2px; height: 26px; background: var(--green-2); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.otp-box.filled { background: rgba(34,192,107,.18); border-color: rgba(46,224,138,.6); animation: pop .3s var(--ease); }
.otp.error .otp-box { border-color: #ff6b6b; animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-error { color: #ff8a8a; font-size: 13px; min-height: 18px; margin: 10px 0 0 !important; }
.resend { margin: 6px 0 0 !important; font-size: 13px; color: var(--muted); }
.resend button { background: none; border: 0; color: var(--green-2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.resend button:disabled { color: var(--muted); cursor: default; }
.dev-note { background: rgba(255,193,77,.12); border: 1px solid rgba(255,193,77,.35); color: #ffd58a; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; margin-bottom: 16px; text-align: left; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rot .7s linear infinite; }
.loading .spinner { display: inline-block; }
.loading span { opacity: .8; }
@keyframes rot { to { transform: rotate(360deg); } }
.btn-google, .login-card a.btn-google { background: #fff; color: #1f1f1f; box-shadow: 0 10px 28px -12px rgba(0,0,0,.6); font-weight: 600; }
.btn-google:hover { background: #f3f6f4; transform: translateY(-1px); }
.btn-whatsapp { background: linear-gradient(135deg, #2bd46f, #25d366 45%, #128c7e); color: #fff; box-shadow: 0 10px 30px -10px rgba(37,211,102,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-whatsapp:hover { box-shadow: 0 16px 40px -10px rgba(37,211,102,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: #1f1f1f; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.input-wrap .prefix { font-weight: 600; color: #cfe3d8; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.14); }
.input-wrap svg[fill="currentColor"] { color: #25d366; }
.form-error.top { margin: -10px 0 12px !important; min-height: 0; }
.wa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(37,211,102,.14); color: #6ff0a2; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.nav-cta { display: flex; gap: 8px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 0 22px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); }
.auth-tabs button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 14px inherit; font-family: inherit; padding: 10px 8px; border-radius: 10px; cursor: pointer; transition: color .3s; }
.auth-tabs button.active { color: #fff; }
.auth-ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: linear-gradient(135deg, var(--green-2), var(--green-deep)); box-shadow: 0 8px 20px -8px rgba(34,192,107,.8); transition: transform .45s var(--ease); }
.auth-tabs[data-mode="signup"] .auth-ink { transform: translateX(100%); }
.signup-steps { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; margin: -6px 0 18px; }
.signup-steps li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cfe3d8; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); animation: pop .5s var(--ease) both; }
.signup-steps li:nth-child(2) { animation-delay: .08s; } .signup-steps li:nth-child(3) { animation-delay: .16s; }
.signup-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(46,224,138,.2); color: var(--green-2); }
.swap-in { animation: slide-in .4s var(--ease) both; }
.form-error .switch-link { background: none; border: 0; color: var(--green-2); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13px; line-height: 1.5; color: #cfe3d8; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; transition: border-color .2s, background .2s; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #22c06b; flex-shrink: 0; cursor: pointer; }
.consent.need { border-color: #ff8a8a; background: rgba(255,107,107,.08); animation: shake .45s; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--glass); border: 1px solid rgba(255,255,255,.1); padding: 4px 20px; transition: background .3s; }
.faq details[open] { background: rgba(255,255,255,.09); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--green-2); font-size: 20px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.faq a, .footer a { color: var(--green-2); }
.check { width: 86px; height: 86px; margin: 4px auto 16px; display: block; }
.check circle { fill: none; stroke: var(--green-2); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .trust { justify-content: center; }
  .hero-visual { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .features, .shields { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-cta .signup-only { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .features, .shields, .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .hero-visual { height: 560px; transform: scale(.88); margin: -30px auto; }
  .c1 { left: -20px; } .c4 { left: -30px; } .c3 { right: -20px; } .c2 { right: -20px; }
  .otp-box { width: 42px; height: 52px; font-size: 21px; }
  .brand { font-size: 16px; gap: 9px; }
  .logo { width: 34px; height: 34px; border-radius: 10px; }
  .nav .btn-sm { padding: 9px 13px; font-size: 13px; }
  .c5, .c6 { display: none; }
  .stat b { font-size: 28px; }
  .login-card { padding: 30px 18px 24px; }
  .section { padding-top: 80px; }
  .cta { margin: 80px 16px 60px; padding: 50px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

.hidden-provider { display: none !important; }

.signup-steps[hidden], .consent[hidden] { display: none !important; }

/* Choix de la méthode : code WhatsApp ou e-mail */
.method-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 14px; }
.method-switch button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--muted); font: 600 13px inherit; font-family: inherit; padding: 9px 8px; border-radius: 12px; cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.method-switch button.active { color: #fff; border-color: var(--green-2); background: rgba(46,224,138,.12); }
.pw-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }
.pw-hint { color: var(--muted); font-size: 12.5px; margin: -6px 0 12px; }
#pane-email[hidden], #pane-phone[hidden] { display: none !important; }
