:root { --bleu: #0b5cad; --orange: #ff7900; --fond: #f3f5f8; --texte: #1c2733; --gris: #6b7785; --bord: #dfe4ea; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte); background: var(--fond); }
h1 { font-size: 1.35rem; margin: 0 0 .25rem; } h2 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
a { color: var(--bleu); }
.public { display: flex; justify-content: center; padding: 1rem; }
.carte { background: #fff; border-radius: 14px; padding: 1.25rem; width: 100%; max-width: 420px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.carte h1 { color: var(--bleu); } .lieu { color: var(--gris); margin: 0; }
.forfait { display: flex; align-items: center; gap: .75rem; padding: .8rem; border: 2px solid var(--bord); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; }
.forfait:has(input:checked) { border-color: var(--orange); background: #fff6ee; }
.forfait .nom { flex: 1; font-weight: 600; } .forfait .prix { font-weight: 700; color: var(--orange); }
.champ { width: 100%; padding: .7rem; border: 1px solid var(--bord); border-radius: 8px; font: inherit; background: #fff; }
.bouton { display: block; width: 100%; margin-top: 1rem; padding: .85rem; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.bouton.clair { background: #fff; color: var(--bleu); border: 2px solid var(--bleu); }
.bouton.petit { display: inline-block; width: auto; margin: 0; padding: .3rem .7rem; font-size: .85rem; background: var(--bleu); }
.aide, small { display: block; color: var(--gris); font-size: .85rem; margin-top: .4rem; }
.ussd, .code { font: 700 1.5rem ui-monospace, Menlo, Consolas, monospace; text-align: center; background: var(--fond); border-radius: 10px; padding: .8rem; margin: .5rem 0; word-break: break-all; }
.code { font-size: 2rem; letter-spacing: .15em; color: var(--bleu); }
.attente { display: flex; align-items: center; gap: .6rem; color: var(--gris); }
.rond { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--bord); border-top-color: var(--orange); animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.erreur, .succes { padding: .6rem .8rem; border-radius: 8px; background: #fde8e8; color: #9b1c1c; }
.succes { background: #e3f6e8; color: #17603a; }
.barre { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 1rem; background: var(--bleu); color: #fff; }
.barre nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; flex: 1; } .barre a { color: #fff; text-decoration: none; }
.lien { background: none; border: 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
.contenu { padding: 1rem; max-width: 1100px; margin: auto; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1rem 0; }
.chiffre { background: #fff; border-radius: 10px; padding: .9rem; border: 1px solid var(--bord); }
.chiffre b { display: block; font-size: 1.4rem; color: var(--bleu); } .chiffre span { color: var(--gris); font-size: .85rem; }
.defile { overflow-x: auto; background: #fff; border-radius: 10px; border: 1px solid var(--bord); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; } th, td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--bord); white-space: nowrap; }
th { background: #f8fafc; color: var(--gris); font-weight: 600; }
.pastille { padding: .15rem .55rem; border-radius: 99px; font-size: .8rem; background: #e8ecf1; }
.pastille.livre, .pastille.rapproche { background: #d9f2e1; color: #17603a; } .pastille.paye { background: #fff0d6; color: #8a5300; }
.pastille.echec, .pastille.ignore { background: #fde8e8; color: #9b1c1c; } .pastille.orphelin { background: #ffe9d6; color: #9a4a00; }
.formulaire { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 1rem; max-width: 560px; margin: 1rem 0; }
.formulaire label, .carte label { display: block; margin-bottom: .8rem; font-weight: 600; font-size: .9rem; }
.formulaire label.case { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; } .formulaire .bouton { width: auto; padding: .6rem 1.4rem; }
.enligne { display: inline; } .vide { color: var(--gris); } code { background: #eef1f5; padding: .1rem .35rem; border-radius: 4px; word-break: break-all; white-space: normal; }
details { margin: 1rem 0; } summary { cursor: pointer; font-weight: 600; color: var(--bleu); }
