/* Mboka Pratique — shared styles
   Mobile-first, big tap targets (Android-majority audience), RDC palette.  */

:root {
  --rdc-blue: #007fff;
  --rdc-blue-dark: #005ec4;
  --rdc-yellow: #ffd400;
  --rdc-red: #d8232a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --line: #e2e8f0;
  --ok: #10b981;
  --warn: #f59e0b;
  --shadow: 0 6px 18px rgba(15, 23, 42, .08);
  --radius: 14px;
  --tap: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

a { color: var(--rdc-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.mboka-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.mboka-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.mboka-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.01em;
}

.mboka-header .brand {
  font-weight: 800;
  color: var(--rdc-blue);
}

.mboka-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--ok);
  font-weight: 600;
}

.mboka-status.offline {
  background: #fff7ed;
  color: var(--warn);
}

.mboka-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Hero — full width, modern Kinshasa photo behind a soft scrim */
.mboka-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  background-position: center;
  background-size: cover;
  min-height: 220px;
  box-shadow: var(--shadow);
}

.mboka-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(15,23,42,.55) 100%);
}

.mboka-hero-text {
  position: relative;
  z-index: 1;
  padding: 24px 20px 22px;
  color: #fff;
}

.mboka-hero-text h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -.01em;
}

.mboka-hero-text p {
  margin: 0;
  opacity: .92;
  font-size: 15px;
}

/* Tile launcher (home) */
.mboka-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mboka-tile {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform .12s ease;
}

.mboka-tile:hover { transform: translateY(-2px); text-decoration: none; }

.mboka-tile .icon {
  font-size: 28px;
  line-height: 1;
}

.mboka-tile h3 {
  margin: 8px 0 2px;
  font-size: 17px;
}

.mboka-tile p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* Cards / panels */
.mboka-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.mboka-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: var(--tap);
  color: var(--ink);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--rdc-blue);
  box-shadow: 0 0 0 3px rgba(0, 127, 255, .18);
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.row > div { flex: 1; }

button.primary, button.secondary {
  width: 100%;
  min-height: var(--tap);
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .01em;
}

button.primary {
  background: var(--rdc-blue);
  color: #fff;
}

button.primary:hover { background: var(--rdc-blue-dark); }
button.primary:disabled { background: #94a3b8; cursor: not-allowed; }

button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.result {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-left: 4px solid var(--rdc-blue);
  border-radius: 10px;
  white-space: pre-wrap;
  font-size: 16px;
}

.result.empty {
  color: var(--ink-2);
  font-style: italic;
  background: transparent;
  border-left-color: var(--line);
}

.result.error {
  background: #fef2f2;
  border-left-color: var(--rdc-red);
  color: #991b1b;
}

.meta {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 8px;
}

/* Convertisseur specifics */
.rate-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.rate-card .rate {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--line);
}

.rate .label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.rate .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* Démarches accordion */
.demarches-search {
  margin-bottom: 14px;
}

.demarche {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.demarche summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.demarche summary::-webkit-details-marker { display: none; }
.demarche summary::after {
  content: "+";
  color: var(--rdc-blue);
  font-size: 20px;
}

.demarche[open] summary::after { content: "−"; }

.demarche-body {
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.demarche-body h4 {
  font-size: 13px;
  color: var(--ink-2);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.demarche-body ul, .demarche-body ol {
  padding-left: 22px;
  margin: 6px 0;
}

.demarche-body li { margin-bottom: 4px; }

.demarche-pill {
  display: inline-block;
  font-size: 11px;
  background: #eef2ff;
  color: #3730a3;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

/* Phrases utiles list (translator) */
.phrase-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.phrase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.phrase:last-child { border-bottom: none; }
.phrase .fr { color: var(--ink); }
.phrase .ln { color: var(--rdc-blue-dark); font-weight: 600; }

.phrase-cat {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}

/* Footer */
.mboka-footer {
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  padding: 22px 4px 28px;
}

.mboka-footer a { color: var(--ink-2); }

/* Loading */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid #cbd5e1;
  border-top-color: var(--rdc-blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 720px) {
  .mboka-tiles { grid-template-columns: repeat(2, 1fr); }
  .mboka-hero { min-height: 280px; }
  .mboka-hero-text h2 { font-size: 32px; }
}
