:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e2e4ec;
  --muted: #8b8fa3;
  --accent: #4f8ef7;
  --green: #34c77b;
  --orange: #f0a048;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; background: var(--bg); color: var(--text); line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 18px 0; }
h2 { font-size: 20px; margin: 24px 0 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 13px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { font-weight: 600; font-size: 16px; color: var(--text); }
.topnav a { margin-left: 18px; color: var(--text); }
.topnav .cta, a.cta, button.cta {
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 6px;
  border: none; cursor: pointer; font-size: 14px; display: inline-block;
}
.topnav .cta:hover, a.cta:hover, button.cta:hover { text-decoration: none; opacity: .92; }

.container { max-width: 960px; margin: 0 auto; padding: 24px 28px 60px; }
.footer { text-align: center; color: var(--muted); padding: 24px; font-size: 12px; }

.flash-zone { margin-bottom: 18px; }
.flash-msg {
  background: #26210f; border: 1px solid var(--orange); color: #f5d9a8;
  padding: 10px 14px; border-radius: 6px; margin-bottom: 8px;
}

.formules, .tiers { display: flex; gap: 16px; flex-wrap: wrap; }
.formule-card, .tier-card, .form-card, .signup-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 16px;
}
.formule-card { flex: 1 1 280px; }
.tier-card { flex: 1 1 260px; display: flex; flex-direction: column; }
.tier-head .price { font-size: 20px; font-weight: 600; margin: 4px 0; }
.module-list { list-style: none; margin: 12px 0; flex: 1; }
.module-list li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.tier-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.form-card { max-width: 480px; }
.form-card label, .tier-form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.form-card input, .form-card select, .tier-form input, .tier-form select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 14px;
}

.account-line { margin-bottom: 20px; }
.inline { display: inline; }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; }

.signup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px;
  background: #23273400; border: 1px solid var(--border); color: var(--muted); margin-left: 4px;
}
.badge-ok { background: #10301f; border-color: var(--green); color: #7ee2ac; }
.badge-warn { background: #2e2410; border-color: var(--orange); color: #f5c680; }
.badge-status-delivered { border-color: var(--green); color: #7ee2ac; }
.badge-status-paid, .badge-status-delivering { border-color: var(--accent); color: #a8c8f7; }
.badge-status-failed { border-color: var(--orange); color: #f5c680; }
