/* ==========================================================
   Lumifin Africa — feuille de style principale
   Palette et rythme repris fidèlement de la maquette fournie.
   ========================================================== */
:root {
  --bg: #150f00;
  --panel: #1b1301;
  --panel-2: #241a04;
  --panel-3: #1a1201;
  --border: rgba(217, 201, 163, .2);
  --border-soft: rgba(217, 201, 163, .12);
  --text: #ded0ad;
  --muted: #c9b98f;
  --muted-2: #a89878;
  --muted-3: #8d7f5f;
  --gold: #f4c430;
  --gold-2: #d4af37;
  --violet: #9b8afb;
  --violet-soft: #b9a9ff;
  --green: #7ddba0;
  --white: #fff;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); max-width: 100%; overflow-x: hidden; }
body {
  -webkit-font-smoothing: antialiased;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe08a; }
input, select, button { font: inherit; }
select option { background: var(--panel); color: var(--text); }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

@keyframes lf-pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes lf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 15, 0, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  padding: 14px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--white); font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand .accent { color: var(--gold-2); font-weight: 600; }
.main-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 500; }
.main-nav a { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-switch { display: flex; border: 1px solid rgba(217,201,163,.22); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  border: 0; background: transparent; color: var(--muted-3);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 8px 11px;
  transition: all .18s ease; display: inline-block;
}
.lang-switch a.active { background: rgba(244,196,48,.18); color: var(--gold); }
.btn-cta {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1f1600; font-weight: 700; font-size: 14px; padding: 10px 18px;
  border-radius: 999px; white-space: nowrap; border: 0; display: inline-flex; align-items: center; gap: 8px;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; }
.link-muted { color: var(--muted); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px,6vw,80px) 0 clamp(36px,5vw,64px); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 16% 0%, rgba(212,175,55,.16), transparent 70%),
    radial-gradient(760px 400px at 86% 16%, rgba(155,138,251,.12), transparent 72%);
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: clamp(28px,4vw,52px); align-items: start;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(244,196,48,.35); background: rgba(244,196,48,.08); color: var(--gold);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: lf-pulse 2.4s ease-in-out infinite; }
.hero h1 { font-weight: 700; font-size: clamp(9.5px,1.4vw,16.5px); line-height: 1.04; letter-spacing: -.03em; color: var(--white); margin: 22px 0 0; }
.hero h1 em { display: block; color: var(--gold); font-style: italic; font-weight: 600; }
.hero-dirs { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.hero-dirs span.pill { border: 1px solid rgba(217,201,163,.28); border-radius: 999px; padding: 8px 14px; }
.hero p.lead { font-size: clamp(16px,1.6vw,18.5px); line-height: 1.65; color: var(--muted); max-width: 58ch; margin: 22px 0 0; }
.hero-video { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; margin-bottom: 24px; background: var(--panel); max-height: 320px; object-fit: cover; }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,150px),1fr)); gap: 12px; margin-top: 28px; }
.hero-facts .fact { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--panel); }
.hero-facts .fact .value { font-weight: 800; font-size: clamp(20px,2.4vw,26px); color: var(--gold); letter-spacing: -.02em; line-height: 1; }
.hero-facts .fact .label { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted-2); }

/* ---------- Simulateur ---------- */
.hero-right { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.sim-card {
  border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel-3));
  border-radius: var(--radius-lg); padding: clamp(18px,2.2vw,26px); box-shadow: 0 34px 80px -34px rgba(0,0,0,.95);
}
.sim-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sim-title { font-weight: 700; font-size: 21px; color: var(--white); letter-spacing: -.01em; }
.sim-badge { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.gate { margin-top: 18px; }
.gate-pill {
  display: flex; align-items: center; gap: 9px; border: 1px solid rgba(155,138,251,.42);
  background: rgba(155,138,251,.12); border-radius: 999px; padding: 7px 14px; width: fit-content;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-soft);
}
.gate p.message { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.gate-form { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.gate-form input[type=email] {
  flex: 1 1 180px; width: 100%; min-width: 0; border: 1px solid rgba(217,201,163,.26); background: var(--bg);
  color: var(--white); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px; font-weight: 500; outline: none;
}
.gate-form button {
  flex: 0 0 auto; border: 0; background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1f1600;
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: var(--radius-sm);
}
.gate-error { margin: 10px 0 0; font-size: 12.5px; color: #f0a0a0; display: none; }
.gate-error.show { display: block; }
.gate-perks { margin-top: 20px; display: grid; gap: 9px; }
.gate-perks .perk { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.gate-perks svg { flex: 0 0 auto; margin-top: 3px; }
.gate-legal { margin: 18px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted-3); }

.gate-confirm {
  display: flex; align-items: center; gap: 9px; margin-top: 16px; border: 1px solid rgba(125,219,160,.35);
  background: rgba(125,219,160,.1); border-radius: var(--radius-sm); padding: 11px 14px;
}
.gate-confirm span { font-size: 13px; font-weight: 600; line-height: 1.45; color: #a9d9bd; }

.dir-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; padding: 5px;
  border: 1px solid rgba(217,201,163,.18); border-radius: 16px; background: var(--bg);
}
.dir-toggle button {
  border: 1px solid transparent; background: transparent; color: var(--muted-3);
  border-radius: var(--radius-sm); padding: 11px 10px; font-weight: 700; font-size: 13.5px; transition: all .18s ease;
}
.dir-toggle button.active { border-color: rgba(244,196,48,.7); background: rgba(244,196,48,.14); color: var(--gold); }

.field { margin-top: 18px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.field-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.field select {
  flex: 1 1 140px; min-width: 0; max-width: 100%; border: 1px solid rgba(217,201,163,.26); background: var(--bg);
  color: var(--white); border-radius: var(--radius-sm); padding: 13px 12px; font-size: 14.5px; font-weight: 600; outline: none;
  width: 100%;
}
.amount-box {
  flex: 1 1 170px; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(217,201,163,.26); background: var(--bg); border-radius: var(--radius-sm); padding: 8px 13px;
}
.amount-box input {
  flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; outline: none; color: var(--white);
  font-size: 21px; font-weight: 700; letter-spacing: -.01em;
}
.amount-box .cur { color: var(--gold-2); font-weight: 700; font-size: 13px; }

.result-box {
  margin-top: 20px; border: 1px solid rgba(244,196,48,.42); background: rgba(244,196,48,.09);
  border-radius: 16px; padding: 18px;
}
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-row .label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result-row .value { color: var(--white); font-weight: 800; font-size: clamp(24px,3.2vw,32px); letter-spacing: -.025em; }
.result-sub {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid rgba(244,196,48,.22); font-size: 13.5px;
}
.result-sub .label { color: var(--muted); }
.result-sub .value { color: var(--white); font-weight: 700; white-space: nowrap; }
.payout-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.payout-row .label { color: var(--muted-2); }
.payout-row .value { color: var(--text); font-weight: 600; text-align: right; }
.sim-note { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted-3); }

.lock-pill {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(217,201,163,.3);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.lock-pill:hover { border-color: var(--gold); color: var(--gold); }

.hero-photo {
  position: relative; min-width: 0; max-width: 100%; height: clamp(170px,20vw,240px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee ---------- */
.marquee-wrap { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); overflow: hidden; max-width: 100%; background: var(--panel); }
.marquee-track { display: flex; width: max-content; animation: lf-marquee 38s linear infinite; }
.marquee-track span { padding: 13px 24px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(217,201,163,.5); white-space: nowrap; }

/* ---------- Sections génériques ---------- */
section { padding: clamp(56px,7vw,96px) 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--border-soft); }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
h2 { font-weight: 700; font-size: clamp(28px,4vw,46px); line-height: 1.1; letter-spacing: -.025em; color: var(--white); margin: 14px 0 0; }
.section-sub { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 64ch; margin: 16px 0 0; }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); gap: 16px; margin-top: 32px; }
.step-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: linear-gradient(170deg, var(--panel-2), var(--panel-3)); }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-n { width: 28px; height: 28px; border-radius: 9px; background: rgba(244,196,48,.16); border: 1px solid rgba(244,196,48,.4); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.step-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-3); }
.step-title { margin-top: 16px; color: var(--white); font-weight: 700; font-size: 17.5px; letter-spacing: -.01em; }
.step-desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.bidir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 16px; margin-top: 16px; }
.bidir-card { border-radius: var(--radius-md); padding: 24px; }
.bidir-out { border: 1px solid rgba(244,196,48,.4); background: linear-gradient(160deg, rgba(244,196,48,.1), rgba(244,196,48,.02)); }
.bidir-in { border: 1px solid rgba(155,138,251,.42); background: linear-gradient(160deg, rgba(155,138,251,.12), rgba(155,138,251,.02)); }
.bidir-card .title { color: var(--white); font-weight: 700; font-size: 17px; }
.bidir-card .desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Tarifs ---------- */
.corr-pills { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.corr-pills button {
  cursor: pointer; border: 1px solid rgba(217,201,163,.22); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; transition: all .18s ease;
}
.corr-pills button.active { border-color: rgba(244,196,48,.7); background: rgba(244,196,48,.14); color: var(--gold); }

.corr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 16px; margin-top: 20px; }
.corr-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: linear-gradient(170deg, var(--panel-2), var(--panel-3)); }
.corr-card-head { display: flex; align-items: center; gap: 11px; flex-wrap: nowrap; }
.corr-card-head .flag { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.corr-card-head .title { color: var(--white); font-weight: 700; font-size: 16.5px; min-width: 0; line-height: 1.3; }
.corr-rate { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.corr-rate .value { font-weight: 700; font-size: clamp(30px,4vw,40px); line-height: 1; color: var(--gold); letter-spacing: -.03em; }
.corr-rate .suffix { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.corr-card .note { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.pricing-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,380px),1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.table-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.rate-table { margin-top: 12px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 100%; }
.rate-table .thead { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 10px; padding: 12px 16px; background: var(--panel-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.rate-table .tbody { max-height: 380px; overflow-y: auto; }
.rate-table .row { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.rate-table .row .name { font-size: 13.5px; font-weight: 600; color: var(--white); }
.rate-table .row .method { font-size: 12px; color: var(--muted-3); }
.rate-table .row .rate { font-size: 13.5px; font-weight: 700; color: var(--gold); text-align: right; }
.table-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted-3); }

.entry-card { border: 1px solid rgba(155,138,251,.42); background: linear-gradient(160deg, rgba(155,138,251,.12), rgba(155,138,251,.02)); border-radius: var(--radius-md); padding: 26px; }
.entry-card .big { font-weight: 800; font-size: clamp(34px,5vw,48px); color: var(--violet-soft); letter-spacing: -.03em; line-height: 1; }
.entry-card .title { margin-top: 14px; color: var(--white); font-weight: 700; font-size: 17px; }
.entry-card .desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.entry-points { margin-top: 18px; display: grid; gap: 10px; }
.entry-points .point { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--text); }
.entry-points svg { flex: 0 0 auto; margin-top: 3px; }

/* Pastille "Connectez-vous" remplaçant un pourcentage masqué */
.locked-rate {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(244,196,48,.5);
  background: rgba(244,196,48,.1); color: var(--gold); border-radius: 999px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.locked-rate:hover { background: rgba(244,196,48,.18); }

/* ---------- Confiance ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,190px),1fr)); gap: 16px; margin-top: 30px; }
.stat-card { border: 1px solid var(--border); border-radius: 16px; padding: 22px; background: linear-gradient(170deg, var(--panel-2), var(--panel-3)); }
.stat-card .value { font-weight: 700; font-size: clamp(24px,3vw,30px); line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.stat-card .label { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.badges-row { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge-pill { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ---------- Téléchargement ---------- */
.download-section { text-align: center; border-top: 1px solid var(--border-soft); background: radial-gradient(700px 320px at 50% 0%, rgba(212,175,55,.16), transparent 70%); }
.download-inner { max-width: 760px; margin: 0 auto; }
.download-inner h2 { font-size: clamp(30px,4.4vw,50px); }
.download-inner .sub { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 18px auto 0; max-width: 52ch; }
.store-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.store-btn { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 14px 24px; border-radius: 999px; font-size: 15px; }
.store-btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1f1600; }
.store-btn.secondary { border: 1px solid rgba(217,201,163,.3); color: var(--text); }
.download-legal { font-size: 12px; color: var(--muted-3); margin: 20px 0 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border-soft); background: #120d00; padding: 44px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 32px; }
.footer-grid .brand-line { display: flex; align-items: baseline; gap: 8px; color: var(--white); font-weight: 800; font-size: 18px; }
.footer-grid p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted-3); max-width: 34ch; }
.footer-grid .col-title { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.footer-bottom {
  max-width: var(--max); margin: 32px auto 0; padding: 20px 20px 0; border-top: 1px solid rgba(217,201,163,.1);
  font-size: 12px; color: #6f6448; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .main-nav { display: none; }
  .site-header .container { justify-content: space-between; }
}
