/* ===== Variables ===== */
:root {
  --ink: #0f2a2b;
  --bg: #eef3f1;
  --card: #fff;
  --line: #c9d6d2;
  --accent: #f2a900;
  --err: #b3261e;
}
 
/* ===== Base ===== */
* { box-sizing: border-box; }
 
body {
  margin: 0;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Bricolage Grotesque", system-ui, sans-serif;
}
 
main { width: 100%; max-width: 420px; }
 
h1 { margin: 0 0 4px; font-size: 28px; }
 
.sub { margin: 0 0 20px; color: #4a6361; }
 
section {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
 
.hide { display: none; }
 
/* ===== Formulaire ===== */
label { display: block; margin: 16px 0 6px; font-weight: 700; }
 
input[type="tel"] {
  width: 100%;
  padding: 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
}
 
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
 
/* Boutons-radio stylisés (opérateur, montant) */
.opt input { position: absolute; opacity: 0; }
 
.opt span {
  display: block;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
 
.opt input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
 
/* Option d'opérateur indisponible pour le numéro saisi */
.opt input:disabled + span {
  opacity: .4;
  background: var(--bg);
  cursor: not-allowed;
}
 
.hint { margin: 8px 0 0; min-height: 1.5em; font-size: 14px; color: #4a6361; }
 
/* ===== Boutons ===== */
button,
a.btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font: 700 17px "Bricolage Grotesque", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
 
button:disabled { opacity: .6; }
 
/* Focus visible au clavier */
.opt input:focus-visible + span,
button:focus-visible,
a.btn:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
 
/* ===== Messages ===== */
.msg { margin-top: 14px; font-weight: 700; }
.err { color: var(--err); }
 
/* ===== Attente du paiement ===== */
.wait { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
 
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s infinite alternate;
}
 
@keyframes pulse { to { opacity: .25; } }
 
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}
 
/* ===== Ticket ===== */
.stub {
  position: relative;
  padding: 28px 20px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
}
 
/* Encoches latérales du ticket */
.stub::before,
.stub::after {
  content: "";
  position: absolute;
  top: 62%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
}
 
.stub::before { left: -12px; }
.stub::after { right: -12px; }
 
.code {
  margin: 10px 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  word-break: break-all;
  color: var(--accent);
}
 