/* ============================================================
   TontinePro — Landing (design bespoke premium)
   Direction : fintech chaleureuse, dark + orange, signature = anneau
   de membres qui tourne autour du pot (concept tontine + logo).
   Fonts : Space Grotesk (display) + DM Sans (body).
   ============================================================ */

:root {
    --bg: #0a0a0b;
    --bg-2: #101013;
    --card: #141418;
    --card-2: #1a1a20;
    --border: #26262e;
    --border-soft: #1d1d24;
    --text: #f2f2f5;
    --muted: #9a9aa6;
    --faint: #6b6b78;
    --primary: #f59532;
    --primary-2: #ffab53;
    --primary-rgb: 245, 149, 50;
    --emerald: #34d399;
    --blue: #5b9dff;
    --radius: 16px;
    --radius-lg: 22px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--primary); }

/* Atmosphère : mesh gradient + grain léger en fond */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(60% 50% at 78% 8%, rgba(245,149,50,0.14), transparent 60%),
        radial-gradient(50% 45% at 12% 18%, rgba(91,157,255,0.08), transparent 60%),
        radial-gradient(50% 50% at 50% 100%, rgba(52,211,153,0.06), transparent 60%);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: rgba(10,10,11,0.82); backdrop-filter: blur(14px); border-bottom-color: var(--border-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 15px 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--primary); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a.navlink:hover { color: var(--text); }
.lang { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang a { padding: 5px 10px; font-size: 12px; font-weight: 700; color: var(--faint); transition: all .2s; }
.lang a.on { background: var(--primary); color: #1a1206; }
.nav-cta { background: var(--primary); color: #1a1206; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: all .2s; }
.nav-cta:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,149,50,0.3); }
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; padding: 14px 26px; border-radius: 12px; cursor: pointer; transition: all .22s ease; border: 1.5px solid transparent; }
.btn-primary { background: var(--primary); color: #1a1206; box-shadow: 0 10px 30px rgba(245,149,50,0.25); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245,149,50,0.36); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary-2); background: rgba(245,149,50,0.1); border: 1px solid rgba(245,149,50,0.25); padding: 7px 14px; border-radius: 30px; margin-bottom: 22px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2.2s infinite; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 700; }
.hero h1 .accent { background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 540px; margin: 24px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; color: var(--faint); font-size: 13.5px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* ---------- Hero visual : anneau de membres autour du pot ---------- */
.ring-stage { position: relative; width: min(440px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.ring-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(245,149,50,0.18), transparent 65%); filter: blur(8px); }
.ring { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(245,149,50,0.28); animation: spin 44s linear infinite; }
.ring.inner { inset: 22%; border-style: solid; border-color: rgba(255,255,255,0.06); animation-duration: 30s; animation-direction: reverse; }
.member { position: absolute; transform-origin: center; }
.member .ava { padding: 9px 14px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-family: 'Space Grotesk'; color: #1a1206; font-size: 14px; white-space: nowrap; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 8px 22px rgba(0,0,0,0.4); }
.pot { position: absolute; inset: 33%; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffd9a8, var(--primary) 45%, #c9701b 100%); display: grid; place-items: center; box-shadow: 0 0 50px rgba(245,149,50,0.45), inset 0 -8px 20px rgba(0,0,0,0.3); animation: bob 4.5s ease-in-out infinite; }
.pot span { font-family: 'Space Grotesk'; font-weight: 700; color: #4a2a08; font-size: clamp(15px, 3.4vw, 22px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes bob { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ---------- Trust band ---------- */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.012); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.trust-item { text-align: center; }
.trust-num { font-family: 'Space Grotesk'; font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: var(--text); }
.trust-num.accent { color: var(--primary); }
.trust-label { color: var(--faint); font-size: 13.5px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Feature showcase — rangées alternées */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 90px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feat-text { order: 2; }
.feat-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(245,149,50,0.12); border: 1px solid rgba(245,149,50,0.22); margin-bottom: 18px; }
.feat-text h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 12px; }
.feat-text p { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.feat-list { list-style: none; display: grid; gap: 10px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; }
.feat-list li::before { content: "✓"; color: var(--emerald); font-weight: 800; flex-shrink: 0; }
.feat-visual { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,0.4); }

/* mini mockups dans les visuals */
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: var(--card-2); border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 10px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-name { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mock-pill { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #1a1206; }
.mock-amt { font-family: 'Space Grotesk'; font-weight: 700; }
.tag-paid { font-size: 11px; font-weight: 700; color: var(--emerald); background: rgba(52,211,153,0.12); padding: 3px 9px; border-radius: 20px; }
.tag-due { font-size: 11px; font-weight: 700; color: #f87171; background: rgba(248,113,113,0.12); padding: 3px 9px; border-radius: 20px; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--card-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px; }
.kpi .n { font-family: 'Space Grotesk'; font-size: 28px; font-weight: 700; }
.kpi .l { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.bar { height: 8px; border-radius: 6px; background: var(--card-2); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 6px; }

/* ---------- Pricing (3 cartes premium) ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 26px; text-align: center; transition: transform .3s, border-color .3s, box-shadow .3s; }
.price-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.price-card.featured { border: 2px solid var(--primary); background: linear-gradient(180deg, rgba(245,149,50,0.08), var(--card)); box-shadow: 0 0 50px rgba(245,149,50,0.18); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #1a1206; font-size: 11px; font-weight: 700; padding: 5px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.price-ico { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); }
.price-card.featured .price-ico { background: rgba(245,149,50,0.12); color: var(--primary); }
.price-ico svg { width: 24px; height: 24px; }
.price-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price-card.featured .price-name { color: var(--primary); }
.price-amt { font-family: 'Space Grotesk'; font-size: 40px; font-weight: 700; line-height: 1.05; color: var(--text); }
.price-fcfa { font-size: 14px; color: var(--primary-2); font-weight: 600; margin-top: 4px; }
.price-per { font-size: 13px; color: var(--faint); margin: 6px 0 8px; }
.price-save { display: inline-block; background: rgba(52,211,153,0.14); color: var(--emerald); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px; }
.price-feats { list-style: none; text-align: left; display: grid; gap: 11px; padding: 20px 0; margin: 0; border-top: 1px solid var(--border-soft); }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.price-feats li::before { content: "✓"; color: var(--emerald); font-weight: 800; flex-shrink: 0; }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 32px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 26px; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #1a1206; font-family: 'Space Grotesk'; font-weight: 700; font-size: 18px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(245,149,50,0.3); }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 16px auto 30px; max-width: 540px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--faint); font-size: 14px; }
.footer-inner a { color: var(--muted); transition: color .2s; }
.footer-inner a:hover { color: var(--primary); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Barre de progression scroll ---------- */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 0 12px rgba(245,149,50,0.6); transition: width .1s linear; }

/* ---------- Scroll reveal (amples + directionnels) ---------- */
.reveal { opacity: 0; transform: translateY(46px) scale(.97); transition: opacity .8s cubic-bezier(.16,.84,.28,1), transform .8s cubic-bezier(.16,.84,.28,1); will-change: opacity, transform; }
.reveal-l { transform: translateX(-56px); }
.reveal-r { transform: translateX(56px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
/* Hovers plus vivants */
.feat-visual { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.feat-visual:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 40px 90px rgba(0,0,0,0.5); }
.mock-row { transition: transform .2s, border-color .2s; }
.feat-visual:hover .mock-row { border-color: rgba(245,149,50,0.25); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; transition: none; } .ring, .ring.inner, .pot, .badge .dot, .scroll-prog { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-cta, .hero-meta { justify-content: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .ring-stage { order: -1; }
    .feature-row, .feature-row.flip .feat-text { grid-template-columns: 1fr; order: 0; }
    .feature-row { gap: 28px; margin-bottom: 56px; }
    .nav-links { display: none; }
    .burger { display: inline-flex; }
    .nav-links.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
    .nav-links.open .lang { width: max-content; }
}
@media (max-width: 640px) {
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .pricing, .steps { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .hero { padding: 120px 0 70px; }
}

/* Modale d'achat */
.buy-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; }
.buy-modal[hidden] { display:none; }
.buy-modal__overlay { position:absolute; inset:0; background:rgba(0,0,0,.7); backdrop-filter:blur(4px); }
.buy-modal__panel { position:relative; background:#13151c; border:1px solid #2a2f3a; border-radius:16px; padding:28px; width:min(420px,92vw); box-shadow:0 24px 60px rgba(0,0,0,.5); }
.buy-modal__x { position:absolute; top:12px; right:14px; background:none; border:none; color:#9aa3b2; font-size:26px; cursor:pointer; }
.buy-modal__plan { color:#f59532; font-weight:700; margin:.2rem 0 1rem; }
.buy-modal__field { display:block; color:#c9cfda; font-size:14px; margin-bottom:14px; }
.buy-modal__field input { width:100%; margin-top:6px; padding:12px; border-radius:10px; border:1px solid #2a2f3a; background:#0d0f14; color:#fff; }
.buy-modal__err { background:#3a1b1b; color:#ffb4b4; padding:10px; border-radius:8px; margin-bottom:12px; font-size:14px; }
.buy-modal__note { color:#8a93a2; font-size:12.5px; margin-top:12px; text-align:center; }
