/* ============================================================
   STARNÉT AFRIC — Thème starnetafric.com
   barre noire, fond gris clair, cartes blanches, accents bleu/indigo
   ============================================================ */
:root {
  --bg: #f9fafb; --surface: #fff; --ink: #111827; --muted: #6b7280;
  --line: #e5e7eb; --accent: #111827; --accent2: #374151; --indigo: #4f46e5;
  --amber: #6b7280; --amber2: #4b5563; --ok: #16a34a; --bad: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; padding-bottom: 64px; }

.nav { position: sticky; top: 0; z-index: 90; background: #000; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 12px 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: 1.2px; color: #fff; }
.brand-name small { display: block; color: #9ca3af; font-size: 10.5px; letter-spacing: .4px; font-weight: 500; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: #d1d5db; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-links a.active { background: var(--accent); color: #fff; }
.nav-cta { background: var(--accent); color: #fff; border: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 14px; }
.nav-burger { display: none; background: transparent; border: 1px solid #4b5563; color: #fff; border-radius: 9px; width: 40px; height: 36px; font-size: 18px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #000; padding: 10px 14px; z-index: 95; border-bottom: 1px solid #1f2937; }
}

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: #fff; border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  display: flex; justify-content: space-around;
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; color: #6b7280; text-decoration: none; font-size: 11px; font-weight: 600; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--accent); }
@media (min-width: 880px) { .bottom-nav { display: none; } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
section { padding: 44px 0; }
.commande-grid { grid-template-columns: minmax(0,1.2fr) minmax(280px,0.8fr); }
@media (max-width: 920px) { .commande-grid { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: box-shadow .15s, transform .12s; }
.btn:hover { background: var(--accent2); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.btn.ghost { background: #fff; border: 1.5px solid #d1d5db; color: #374151; }
.btn.ghost:hover { background: #f3f4f6; box-shadow: none; }
.btn.danger { background: var(--bad); }
.btn.success { background: var(--ok); }
.btn.small { padding: 7px 14px; font-size: 13px; }

.hero { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 40px 0 36px; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.hero h1 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 850; line-height: 1.18; color: var(--ink); margin: 0 0 12px; }
.hero h1 .grad { background: linear-gradient(90deg, #2563eb, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16px; color: #4b5563; max-width: 760px; margin: 0 0 22px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 30px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; color: var(--indigo); }
.stat span { color: var(--muted); font-size: 13px; }

.page { background: var(--bg); min-height: 70vh; }
.page .container { padding: 34px 0 20px; }
.page-title { font-size: 26px; font-weight: 850; margin: 0 0 4px; color: var(--ink); }
.page-sub { color: #4b5563; margin: 0 0 20px; font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.package-card:hover, .card.package-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.1); }
.card h3 { margin: 0 0 6px; font-weight: 800; font-size: 17px; }
.card > p { color: #4b5563; font-size: 14px; margin: 0 0 18px; flex: 1; }

.pkg-go { font-weight: 800; color: var(--indigo); font-size: 15px; margin: 0 0 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-row .old { color: #9ca3af; text-decoration: line-through; font-size: 14px; }
.price-row b { font-size: 22px; color: var(--indigo); font-weight: 900; }
.price-row .unit { color: var(--muted); font-size: 13px; }
.promo-tag { background: linear-gradient(135deg, var(--amber), var(--amber2)); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; }
.pkg-badge { position: absolute; top: -9px; right: 12px; background: linear-gradient(135deg, #6b7280, #4b5563); color: #fff; padding: 3px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.tag { display: inline-block; background: #e5e7eb; color: #374151; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.step .num { font-size: 20px; color: var(--accent); font-weight: 850; }
.step h4 { color: var(--ink); margin: 6px 0 4px; font-size: 15px; }
.step p { color: #6b7280; font-size: 13.5px; margin: 0; }
.pay-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pay-strip .pay-badge { width: 60px; height: 60px; border-radius: 12px; font-size: 8.5px; }

.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 650; font-size: 13.5px; margin: 0 0 5px; color: #374151; }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: 1.5px solid #d1d5db; border-radius: 12px; font-size: 15px; background: #fff; transition: border .15s; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.input { min-height: 110px; resize: vertical; }

.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 11px 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pay-opt:hover { border-color: #9ca3af; }
.pay-opt.selected { border-color: #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.12); }
.pay-opt .pay-info { flex: 1; }
.pay-opt .pay-info h4 { margin: 0; font-size: 15px; }
.pay-opt .pay-info p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pay-opt .radio { width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 50%; flex: none; }
.pay-opt.selected .radio { border-color: var(--accent); background: radial-gradient(circle at 50%, var(--accent) 58%, transparent); }

.pm-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(17,24,39,.55); z-index: 1000; padding: 18px; }
.pm-modal.open { display: flex; }
.pm-panel { width: min(92vw, 430px); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 20px 18px; max-height: 85vh; overflow-y: auto; }
.pm-panel h3 { margin: 0; font-size: 18px; font-weight: 800; }
.pm-close { background: none; border: none; color: #6b7280; font-size: 20px; cursor: pointer; line-height: 1; padding: 2px 6px; }
.pm-close:hover { color: #111827; }
.pm-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.pm-opt { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border: 1.5px solid #e5e7eb; border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pm-opt:hover { border-color: #111827; }
.pm-opt.selected { border-color: #111827; background: #f3f4f6; box-shadow: 0 0 0 3px rgba(17,24,39,.1); }
.pm-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; color: #111827; }
.pay-badge { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; font-size: 8px; letter-spacing: -.3px; color: #fff; line-height: 1.05; flex: none; }
.pay-badge img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; padding: 3px; box-sizing: border-box; }
.pay-strip .pay-badge img { width: 40px; height: 40px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
table.data th { text-align: left; padding: 12px; background: #f3f4f6; color: #374151; font-size: 12.5px; font-weight: 700; }
table.data td { padding: 11px 12px; border-top: 1px solid #f3f4f6; }
table.data tr:hover td { background: #f9fafb; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: #d1fae5; color: #047857; }
.badge.warn { background: #fef3c7; color: #b45309; }
.badge.bad { background: #fee2e2; color: #b91c1c; }
.badge.info { background: #dbeafe; color: #1d4ed8; }
.badge.dim { background: #f3f4f6; color: #6b7280; }

.alert { border: 1px solid; border-radius: 12px; padding: 12px 15px; margin: 0 0 14px; font-size: 14px; background: #fff; }
.alert.error { border-color: #d1d5db; color: #111827; background: #f9fafb; }
.alert.success { border-color: #d1d5db; color: #111827; background: #f3f4f6; }
.alert.info { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.toast-wrap { position: fixed; bottom: 70px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #111827; color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.3); max-width: 340px; font-size: 14px; animation: toast-in .25s; }
.toast.success { background: #065f46; }
.toast.error { background: #7f1d1d; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }

.usage-bar { background: #e5e7eb; border-radius: 999px; height: 10px; overflow: hidden; }
.usage-bar > div { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #6b7280, #4b5563); }
.metric-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.metric-card b { display: block; font-size: 20px; color: var(--indigo); }
.metric-card span { color: var(--muted); font-size: 12.5px; }

footer.strip { background: #000; color: #9ca3af; border-top: 1px solid #1f2937; padding: 38px 0 22px; }
footer .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; letter-spacing: .8px; }
footer a { color: #9ca3af; text-decoration: none; }
.footer-bottom { text-align: center; color: #6b7280; font-size: 13px; padding: 16px 0 0; border-top: 1px solid #1f2937; }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mono { font-family: Consolas, "Courier New", monospace; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tab-btn { background: #fff; color: #374151; border: 1.5px solid #d1d5db; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 650; }
.tab-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.banner-card {
  background: linear-gradient(135deg, #374151, #000);
  color: #fff; border-radius: 24px; padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.banner-card .bc-label { color: #cbd5e1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 6px; }
.banner-card h1, .banner-card .bc-title { font-size: 26px; font-weight: 900; margin: 0 0 4px; color: #fff; line-height: 1.2; }
.banner-card .bc-desc { color: #9ca3af; font-size: 14px; margin: 0; }
.banner-card .bc-icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 34px; color: #d1d5db; flex: none;
}
.brand-logo { background: transparent; border: none; width: 40px; height: 40px; }
.brand-logo svg { width: 40px; height: 40px; }

.metric-card .mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.metric-card .mc-top span { color: #4b5563; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-card .mc-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.metric-card small { color: #9ca3af; font-size: 12px; }
.usage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.uh-title { margin: 0; font-size: 17px; }
.pct-pill { background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

@media (max-width: 720px) {
  body { padding-bottom: 58px; }
  section { padding: 30px 0; }
}

/* ============================================================
   PWA install banner — compact top-only bar (like starnetafric.com)
   ============================================================ */
.pwa-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #0b0b0b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  max-height: 56px;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
  border-bottom: 1px solid #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.pwa-banner.hidden { display: none !important; }

.pwa-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
}
.pwa-logo svg {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  max-height: 36px;
  display: block;
}

.pwa-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}
.pwa-text b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-text small {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pwa-install {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.pwa-install:hover { background: #e5e7eb; }
.pwa-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  font-family: inherit;
}
.pwa-close:hover { color: #fff; }

/* Push page content down when banner is visible */
body:has(.pwa-banner:not(.hidden)) .nav {
  top: 52px;
}
body:has(.pwa-banner:not(.hidden)) {
  padding-top: 52px;
}
