/* Aucune police externe : avant paiement, le client n'a pas internet */
:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #5c6477;
  --line: #e3ded2;
  --brand: #0f2a4a;
  --accent: #f2a007;
  --accent-ink: #3a2600;
  --ok: #1f8a4c;
  --err: #c0392b;
  --radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }

.hero {
  background: var(--brand);
  color: #fff;
  padding: 28px 20px 64px;
  position: relative;
  overflow: hidden;
}
.hero::after { /* ondes wifi décoratives */
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(242,160,7,.18), 0 0 0 50px rgba(242,160,7,.10), 0 0 0 80px rgba(242,160,7,.05);
}
.hero .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; position: relative; z-index: 1; }
.hero .brand svg { flex: none; }
.hero p { margin: 10px 0 0; color: #c9d3e3; font-size: 15px; position: relative; z-index: 1; max-width: 30ch; }

main { max-width: 480px; margin: -40px auto 0; padding: 0 16px 40px; position: relative; z-index: 2; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 24px rgba(15,42,74,.08); }
.card + .card { margin-top: 14px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eceae3; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; padding: 11px 8px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

h2 { font-size: 15px; margin: 0 0 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan {
  border: 2px solid var(--line); border-radius: 14px; padding: 14px 12px; text-align: left;
  background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, transform .1s;
}
.plan:active { transform: scale(.98); }
.plan .dur { font-weight: 700; font-size: 17px; }
.plan .price { margin-top: 6px; font-size: 22px; font-weight: 800; color: var(--brand); }
.plan .price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.plan .extra { font-size: 12px; color: var(--muted); margin-top: 4px; }
.plan[aria-pressed="true"] { border-color: var(--accent); background: #fff8e8; }
.plan:disabled { cursor: default; opacity: 1; transform: none; } /* mode espèces : simple liste de tarifs */

label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 8px; }
.field { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.field:focus-within { border-color: var(--brand); }
.field span { padding: 0 12px; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line); }
.field input { flex: 1; border: 0; outline: 0; padding: 14px 12px; font: inherit; font-size: 18px; min-width: 0; background: transparent; }
.code-input { letter-spacing: .3em; text-transform: uppercase; font-weight: 700; text-align: center; }

.ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ops span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #eef1f6; color: var(--brand); }

.btn {
  display: block; width: 100%; margin-top: 20px; border: 0; border-radius: 12px; padding: 16px;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: var(--brand); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--line); }

.msg { margin-top: 12px; font-size: 14px; padding: 10px 12px; border-radius: 10px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fbeceb; color: var(--err); }
.msg.info { background: #eef1f6; color: var(--brand); }

.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
.footer a { color: var(--brand); font-weight: 600; }

/* Page de retour */
.center { text-align: center; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid #e7e3d8; border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 10px auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 14px; color: #fff; font-size: 32px; font-weight: 800; }
.status-icon.ok { background: var(--ok); }
.status-icon.err { background: var(--err); }
.ticket {
  margin: 18px 0 6px; border: 2px dashed var(--accent); border-radius: 14px; padding: 16px; background: #fff8e8;
}
.ticket .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ticket .code { font-size: 36px; font-weight: 800; letter-spacing: .18em; color: var(--brand); margin-top: 4px; font-variant-numeric: tabular-nums; }
.big-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0; line-height: 1.5; }
.hidden { display: none !important; }

@media (max-width: 360px) { .plans { grid-template-columns: 1fr; } }
