/* ==========================================================
   SafeTransfer — Design Tokens
   Palette: "coffre-fort" vert profond + or CFA (distinct des
   couleurs Orange/MTN/Wave/Moov pour rester neutre et crédible)
   Signature: cartes en forme de REÇU (ticket de transaction),
   bords perforés — clin d'œil direct au mobile money.
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --st-bg-deep:   #0A2018;
  --st-bg:        #0F3D2E;
  --st-surface:   #154838;
  --st-surface-2: #1B5443;
  --st-gold:      #E8A33D;
  --st-gold-light:#F5C065;
  --st-sage:      #7FA88F;
  --st-text:      #F6F3E9;
  --st-text-muted:#B9CFC3;
  --st-danger:    #E4614F;
  --st-danger-bg: #3A1E1C;
  --st-success:   #6FBF8B;
  --st-radius:    10px;
  --st-font-display: 'Fraunces', Georgia, serif;
  --st-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --st-font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--st-font-body);
  background: var(--st-bg-deep);
  color: var(--st-text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--st-font-display); font-weight: 600; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--st-text-muted); }
.mono { font-family: var(--st-font-mono); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.eyebrow {
  font-family: var(--st-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-gold);
  margin-bottom: 14px;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--st-gold); color: #1A1204; }
.btn-primary:hover { background: var(--st-gold-light); }
.btn-outline { background: transparent; color: var(--st-text); border-color: rgba(246,243,233,0.3); }
.btn-outline:hover { border-color: var(--st-gold); color: var(--st-gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--st-danger); color: #fff; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,32,24,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(246,243,233,0.08);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--st-font-display); font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.brand .dot { color: var(--st-gold); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--st-text-muted); }
.nav-links a:hover { color: var(--st-text); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 60px;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(232,163,61,0.14), transparent),
    radial-gradient(500px 320px at 8% 105%, rgba(127,168,143,0.12), transparent),
    var(--st-bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: 46px; line-height: 1.08; }
.hero .lead { font-size: 17.5px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.trust-row { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--st-text-muted); }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--st-sage); }

/* ---------- Receipt (signature component) ---------- */
.receipt {
  position: relative;
  background: var(--st-surface);
  border-radius: 4px;
  padding: 30px 26px 34px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 13px;
  background-image: radial-gradient(circle at 10px 7px, var(--st-bg-deep) 7px, transparent 7.5px);
  background-size: 20px 14px;
  background-repeat: repeat-x;
  background-position: -4px 0;
}
.receipt::before { top: -7px; }
.receipt::after { bottom: -7px; transform: rotate(180deg); }
.receipt-title {
  font-family: var(--st-font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 12px; color: var(--st-sage); margin-bottom: 4px;
}
.receipt-sub { font-size: 12px; color: var(--st-text-muted); margin-bottom: 18px; border-bottom: 1px dashed rgba(246,243,233,0.25); padding-bottom: 14px; }
.receipt-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--st-font-mono); font-size: 14px; padding: 9px 0;
  border-bottom: 1px dashed rgba(246,243,233,0.12);
}
.receipt-line:last-of-type { border-bottom: none; }
.receipt-line .op { color: var(--st-text); }
.receipt-line .val { color: var(--st-text-muted); }
.receipt-line.best { color: var(--st-gold); }
.receipt-line.best .op, .receipt-line.best .val { color: var(--st-gold); font-weight: 600; }
.receipt-total {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(246,243,233,0.2);
  display: flex; justify-content: space-between; font-family: var(--st-font-mono); font-size: 13px;
}
.badge-save {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(111,191,139,0.15); color: var(--st-success); font-size: 12px; font-family: var(--st-font-mono);
}

/* ---------- Feature / tool cards ---------- */
.card {
  background: var(--st-surface); border-radius: var(--st-radius); padding: 28px;
  border: 1px solid rgba(246,243,233,0.06);
}
.card h3 { font-size: 19px; }
.card .icon { font-size: 26px; margin-bottom: 14px; }

/* ---------- Pricing (receipt style) ---------- */
.price-amount { font-family: var(--st-font-display); font-size: 38px; color: var(--st-gold); }
.price-amount span { font-size: 14px; color: var(--st-text-muted); font-family: var(--st-font-body); }
.plan-feature { font-size: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(246,243,233,0.12); color: var(--st-text-muted); }
.plan-feature:last-child { border-bottom: none; }
.plan-highlight { border: 1px solid var(--st-gold); }

/* ---------- Forms ---------- */
.form-card { background: var(--st-surface); border-radius: var(--st-radius); padding: 34px; max-width: 420px; margin: 0 auto; }
label { display: block; font-size: 13.5px; color: var(--st-text-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(246,243,233,0.15);
  background: var(--st-bg-deep); color: var(--st-text); font-family: var(--st-font-body); font-size: 14.5px;
  margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--st-gold); outline-offset: 1px; }
textarea { resize: vertical; min-height: 100px; }

.alert { padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: rgba(111,191,139,0.12); color: var(--st-success); border: 1px solid rgba(111,191,139,0.3); }
.alert-error { background: var(--st-danger-bg); color: #F3A99C; border: 1px solid rgba(228,97,79,0.4); }
.alert-info { background: rgba(232,163,61,0.1); color: var(--st-gold-light); border: 1px solid rgba(232,163,61,0.3); }

/* ---------- Risk levels (fraud detector) ---------- */
.risk-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.risk-Faible, .risk-Low { background: rgba(111,191,139,0.15); color: var(--st-success); }
.risk-Moyen, .risk-Medium { background: rgba(232,163,61,0.15); color: var(--st-gold-light); }
.risk-Élevé, .risk-High, .risk-Eleve { background: var(--st-danger-bg); color: #F3A99C; }

/* ---------- App shell (dashboard + admin) ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.app-sidebar { background: var(--st-bg-deep); border-right: 1px solid rgba(246,243,233,0.07); padding: 26px 18px; }
.app-sidebar .brand { margin-bottom: 30px; padding: 0 8px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--st-text-muted); font-size: 14.5px; margin-bottom: 4px; }
.side-link:hover { background: var(--st-surface); color: var(--st-text); }
.side-link.active { background: var(--st-surface-2); color: var(--st-gold); }
.app-main { padding: 34px 40px; background: var(--st-bg-deep); }
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.usage-pill { font-family: var(--st-font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--st-surface); color: var(--st-text-muted); }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 22px; }
}

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(246,243,233,0.08); }
th { color: var(--st-text-muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
tr:hover td { background: rgba(246,243,233,0.02); }
.status-pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-family: var(--st-font-mono); }
.status-pending { background: rgba(232,163,61,0.15); color: var(--st-gold-light); }
.status-approved, .status-active { background: rgba(111,191,139,0.15); color: var(--st-success); }
.status-rejected, .status-expired { background: var(--st-danger-bg); color: #F3A99C; }

/* ---------- Stats bar ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(246,243,233,0.1); border-bottom: 1px solid rgba(246,243,233,0.1); }
.stat-item { padding: 30px 20px; text-align: center; border-right: 1px solid rgba(246,243,233,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--st-font-mono); font-size: 30px; color: var(--st-gold); font-weight: 600; }
.stat-label { font-size: 12.5px; color: var(--st-text-muted); margin-top: 4px; }
@media (max-width: 780px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(246,243,233,0.08); }
}

/* ---------- Before / after comparison ---------- */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .compare-wrap { grid-template-columns: 1fr; } }
.compare-col { border-radius: var(--st-radius); padding: 26px; }
.compare-without { background: rgba(228,97,79,0.06); border: 1px solid rgba(228,97,79,0.25); }
.compare-with { background: rgba(232,163,61,0.07); border: 1px solid rgba(232,163,61,0.3); }
.compare-col h4 { font-size: 15px; margin-bottom: 14px; font-family: var(--st-font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.compare-item { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--st-text-muted); align-items: flex-start; }
.compare-without h4 { color: #F3A99C; }
.compare-with h4 { color: var(--st-gold); }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--st-surface); border-radius: var(--st-radius); padding: 26px; }
.testimonial p.quote { color: var(--st-text); font-size: 15px; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.avatar-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--st-surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--st-font-display); color: var(--st-gold); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(246,243,233,0.1); padding: 6px 0; }
.faq-item summary { cursor: pointer; padding: 16px 4px; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--st-font-mono); font-size: 20px; color: var(--st-gold); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 4px 16px; margin: 0; }

/* ---------- Card interactions ---------- */
.card, .testimonial {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover, .testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(232,163,61,0.3);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}
.icon-wrap {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,163,61,0.1);
  border-radius: 10px;
  margin-bottom: 16px;
}

/* ---------- Hero texture ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246,243,233,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid > div:first-child { animation: fadeInUp .6s ease both; }
.hero-grid > .receipt { animation: fadeInUp .6s ease .1s both; }

/* ---------- Footer ---------- */
.footer { padding: 50px 0 30px; border-top: 1px solid rgba(246,243,233,0.07); font-size: 13.5px; color: var(--st-text-muted); }
.footer a { color: var(--st-text-muted); }
.footer a:hover { color: var(--st-gold); }

/* ---------- Misc ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(246,243,233,0.3); border-top-color: var(--st-gold); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 13px; }
