* { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; line-height: 1.4;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 48px; }
.haut { max-width: 640px; margin: 0 auto; padding: 12px 16px 0; display: flex; justify-content: space-between;
  align-items: center; }
.haut a { color: #000; font-weight: bold; text-decoration: none; padding: 8px 0; }
a { color: #000; }
h1 { font-size: 1.6rem; margin: 12px 0; }
h2 { font-size: 1.25rem; margin: 28px 0 8px; border-bottom: 2px solid #000; padding-bottom: 4px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 8px 0; }
.petit { font-size: .85rem; color: #444; }
.avis { border: 2px solid #000; padding: 8px 12px; margin: 12px 0; }
.erreur { border: 2px solid #c00000; color: #c00000; padding: 8px 12px; margin: 12px 0; }

.bleu { color: #0a4fd0; }
.rouge { color: #c00000; }
.noir { color: #000; }
.vert { color: #0a7a2f; }
.gain { font-weight: bold; white-space: nowrap; }

.etat { margin: 4px 0; font-size: .9rem; }
.voyant { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px;
  vertical-align: -1px; background: #9a9a9a; }
.voyant.vert { background: #1a9c3c; }
.voyant.gris { background: #9a9a9a; }
.voyant.rouge { background: #d11; }

.podium { list-style: none; margin: 0; padding: 0; }
.podium li { border-bottom: 1px solid #ccc; }
.podium a, .ligne { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none;
  color: #000; justify-content: space-between; }
.rang { font-size: 1.4rem; font-weight: bold; min-width: 1.4rem; }
.texte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.liste { border-bottom: 1px solid #ccc; }
.ligne { border-top: 1px solid #ccc; }

.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; margin-top: 12px; }
.tuile { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none;
  color: #000; min-width: 0; }
.pastille { position: relative; width: 72px; height: 72px; border-radius: 50%; background: #222; color: #fff;
  font-size: 2rem; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.marque { position: absolute; top: -2px; right: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #000; border: 2px solid #000; font-size: .85rem; line-height: 20px; text-align: center; }
.nom { margin-top: 6px; font-size: .85rem; overflow-wrap: anywhere; }
.tuile .gain { font-size: .85rem; }

.bouton, button { display: block; width: 100%; padding: 14px 16px; margin: 12px 0; font-size: 1rem;
  font-weight: bold; text-align: center; text-decoration: none; color: #fff; background: #222; border: 0;
  border-radius: 10px; cursor: pointer; font-family: inherit; }
label { display: block; margin-top: 14px; font-weight: bold; }
input[type=text], input[type=password], input[type=number], textarea { width: 100%; padding: 12px; font-size: 1rem;
  border: 2px solid #000; border-radius: 8px; background: #fff; color: #000; font-family: inherit; }
textarea { min-height: 320px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

dl { margin: 0; }
dt { font-size: .85rem; color: #444; margin-top: 8px; }
dd { margin: 0; font-size: 1.05rem; }
.trade { border: 1px solid #000; border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
blockquote { margin: 8px 0 0; padding: 6px 10px; border-left: 4px solid #999; background: #f4f4f4;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.pages { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; }
.qr { width: 240px; height: 240px; display: block; margin: 12px auto; }
.cle { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; overflow-wrap: anywhere;
  background: #f4f4f4; padding: 8px; }
.bas { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
