* { box-sizing: border-box; }
:root {
  --bg: #05070c; --grad: #10192b; --panel: #0B0E15; --surface: #151A24; --inset: #10141d;
  --border: #222A38; --soft: #1e2634; --track: #20293a;
  --text: #EEF2F8; --text2: #C7D0DE; --muted: #8A94A6; --faint: #5C6577;
  --btn: #1B2230; --acc: #F5B43D; --acc2: #e0912a; --on-acc: #1a1206;
  --vert: #2FD37A; --bleu: #4C9AFF; --violet: #A46BF5; --rouge: #F45B5B;
}
html, body { margin: 0; padding: 0; }
body { font-family: 'Manrope', system-ui, sans-serif; background: radial-gradient(120% 90% at 50% 0%, var(--grad) 0%, var(--bg) 60%) fixed; color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
a { color: var(--acc); text-decoration: none; }
.app { max-width: 460px; margin: 0 auto; min-height: 100dvh; background: var(--panel); box-shadow: 0 0 80px rgba(0,0,0,.6); position: relative; padding-bottom: 84px; }
.app.large { max-width: 980px; }
.page { padding: 18px 16px 24px; animation: scin .28s ease; }
.app.fixe .page { animation: none; }
@keyframes scin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* en-tête marque blanche */
.entete { display: flex; align-items: center; gap: 12px; padding: 16px 16px 4px; }
.logo-ag { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--on-acc); background: linear-gradient(135deg, var(--acc), var(--acc2)); overflow: hidden; flex: none; }
.logo-ag img { width: 100%; height: 100%; object-fit: cover; }
.entete .nom { font-weight: 800; font-size: 17px; line-height: 1.1; }
.entete .sous { color: var(--muted); font-size: 12px; margin-top: 2px; }
.entete .droite { margin-left: auto; }
.pastille { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; background: var(--btn); color: var(--muted); }
.pastille.or { background: rgba(245,180,61,.14); color: var(--acc); }
.pastille.vert { background: rgba(47,211,122,.13); color: var(--vert); }
.pastille.rouge { background: rgba(244,91,91,.13); color: var(--rouge); }
.pastille.bleu { background: rgba(76,154,255,.13); color: var(--bleu); }

h1 { font-size: 22px; margin: 6px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 22px 0 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
p.sous { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; }

.carte { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.carte.clic { cursor: pointer; transition: transform .12s ease, border-color .12s; }
.carte.clic:active { transform: scale(.99); }
.carte.hero { padding: 20px; border-width: 1.5px; }
.ligne { display: flex; align-items: center; gap: 10px; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gris { color: var(--muted); font-size: 13px; }
.petit { font-size: 12px; }
.fort { font-weight: 800; }
.profil-nom { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.cote-grande { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cote-moy { font-size: 22px; font-weight: 800; }

/* jauge */
.jauge { position: relative; width: 84px; height: 84px; flex: none; }
.jauge svg { transform: rotate(-90deg); }
.jauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 19px; line-height: 1; }
.jauge .val small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; margin-top: 3px; }

.ecussons { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.ecusson { width: 26px; height: 26px; border-radius: 8px; background: var(--inset); border: 1px solid var(--soft); display: grid; place-items: center; overflow: hidden; }
.ecusson img { width: 20px; height: 20px; object-fit: contain; }
/* carte de match façon ticket 1xBet */
.cm { background: var(--inset); border: 1px solid var(--soft); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.cm-face { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0; }
.cm-eq { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; line-height: 1.2; min-width: 0; text-align: center; }
.cm-eq span:not(.cm-logo) { overflow-wrap: break-word; min-width: 0; max-width: 100%; }
.cm-logo { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.cm-logo img { width: 34px; height: 34px; object-fit: contain; }
.cm-vs { font-weight: 900; font-size: 18px; color: var(--muted); letter-spacing: .04em; }
.cm-pari { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; color: var(--text2); font-size: 13.5px; }
.cm-pari b { color: var(--text); }
.cm-pari .cm-cote { font-size: 17px; color: var(--acc); white-space: nowrap; }
.cm-pari.verrouille { color: var(--muted); border-style: dashed; }
.cm-pari.verrouille .cm-cote { color: var(--faint); filter: blur(2px); }
.post.mienne { border-color: rgba(245,180,61,.45); }
.equipe { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.equipe img { width: 22px; height: 22px; object-fit: contain; }

.partenaires { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.partenaire { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-width: 0; }
.pm-ligne { padding: 10px 0; border-top: 1px solid var(--border); }
.carte .fort + .pm-ligne { border-top: 0; }
.barre { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; flex: 1; }
.barre > i { display: block; height: 100%; border-radius: 99px; }

.btn { border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 800; cursor: pointer; width: 100%; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--on-acc); }
.btn.second { background: var(--btn); color: var(--text); border: 1px solid var(--border); }
.btn.petit { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 11px; }
.btn.vert { background: rgba(47,211,122,.16); color: var(--vert); }
.btn.rouge { background: rgba(244,91,91,.14); color: var(--rouge); }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 8px; }

label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; }
input, select, textarea { width: 100%; background: var(--inset); color: var(--text); border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); }
.champ-tel { display: flex; align-items: center; background: var(--inset); border: 1px solid var(--border); border-radius: 13px; }
.champ-tel span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 700; }
.champ-tel input { border: 0; background: transparent; }

.onglets { display: flex; background: var(--inset); border: 1px solid var(--border); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.onglets button { flex: 1; border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: 10px; border-radius: 10px; cursor: pointer; }
.onglets button.on { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--on-acc); }

.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; display: flex; background: rgba(11,14,21,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
.nav a { flex: 1; text-align: center; color: var(--faint); font-size: 11px; font-weight: 700; padding: 4px 0; }
.nav a.on { color: var(--acc); }
.nav svg { display: block; margin: 0 auto 3px; }

.verrou { text-align: center; padding: 14px; background: var(--inset); border: 1px dashed var(--border); border-radius: 14px; margin-top: 12px; }
.code-bloc { background: var(--inset); border: 1px solid rgba(245,180,61,.35); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.code-bloc .code { font-size: 22px; font-weight: 800; letter-spacing: .12em; color: var(--acc); }
.res { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.res.gagne { background: rgba(47,211,122,.14); color: var(--vert); }
.res.perdu { background: rgba(244,91,91,.14); color: var(--rouge); }
.res.en_attente { background: rgba(245,180,61,.13); color: var(--acc); }
.res.annule { background: var(--btn); color: var(--muted); }

.choix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.choix button { border: 1px solid var(--soft); background: var(--inset); color: var(--text2); border-radius: 10px; padding: 7px 9px; font-size: 12.5px; cursor: pointer; text-align: left; }
.choix button b { color: var(--acc); margin-left: 4px; }
.choix button.on { border-color: rgba(245,180,61,.7); background: rgba(245,180,61,.14); color: var(--acc); }

.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tuiles.quatre { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tuiles.quatre { grid-template-columns: repeat(4, 1fr); } }
.tuile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.tuile .v { font-size: 20px; font-weight: 800; }
.tuile .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { padding: 9px 6px; border-bottom: 1px solid var(--soft); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.table-defile { overflow-x: auto; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #EEF2F8; color: #111826; padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; z-index: 50; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: scin .2s ease; }
.avert { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: rgba(76,154,255,.08); border: 1px solid rgba(76,154,255,.22); border-radius: 14px; font-size: 12.5px; color: var(--text2); margin-top: 14px; }
.vide { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }
.sep { height: 1px; background: var(--soft); margin: 12px 0; }
.etapes { margin: 8px 0 0; padding-left: 18px; color: var(--text2); font-size: 13.5px; line-height: 1.6; }
.sticky-bas { position: sticky; bottom: 84px; background: linear-gradient(transparent, var(--panel) 30%); padding-top: 18px; }
.lien-pro { display: block; text-align: center; color: var(--faint); font-size: 12px; margin-top: 26px; }
.grille2 { display: grid; gap: 12px; }
@media (min-width: 800px) { .grille2 { grid-template-columns: 1fr 1fr; } }

/* badge Premium, carte de membre, carte de félicitations (03/12) */
.badge-premium { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #2a1a02; background: linear-gradient(135deg, #FFE08A, #F5B43D 55%, #D98B1C); box-shadow: 0 2px 10px rgba(245,180,61,.35), inset 0 1px 0 rgba(255,255,255,.5); white-space: nowrap; }
.badge-premium svg { width: 13px; height: 13px; }
.carte-membre { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; margin-bottom: 12px; color: #2a1a02; background: linear-gradient(135deg, #FFE7A3 0%, #F5B43D 45%, #C97F17 100%); box-shadow: 0 10px 30px rgba(245,180,61,.25); }
.carte-membre::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); transform: translateX(-100%); animation: reflet 3.5s ease-in-out infinite; pointer-events: none; }
.carte-membre .badge-premium { background: #1a1206; color: #FFD36B; box-shadow: none; }
.cm-couronne { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(26,18,6,.12); }
.cm-couronne svg { width: 22px; height: 22px; color: #1a1206; }
.cm-nom { font-weight: 800; font-size: 22px; margin-top: 14px; }
.cm-tel { font-size: 13px; opacity: .75; }
.cm-barre { height: 6px; border-radius: 99px; background: rgba(26,18,6,.18); margin-top: 8px; overflow: hidden; }
.cm-barre i { display: block; height: 100%; border-radius: 99px; background: #1a1206; }
@keyframes reflet { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.modale-fond { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5,7,12,.72); backdrop-filter: blur(4px); animation: fondu .2s ease; }
.modale-fond.sort { opacity: 0; transition: opacity .18s; }
.modale { position: relative; width: 100%; max-width: 360px; text-align: center; background: var(--surface); border: 1px solid rgba(245,180,61,.45); border-radius: 24px; padding: 28px 20px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .35s cubic-bezier(.2,1.3,.4,1); overflow: hidden; }
.medaille { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FFE08A, #F5B43D 55%, #D98B1C); box-shadow: 0 0 0 8px rgba(245,180,61,.12), 0 8px 24px rgba(245,180,61,.4); animation: pop .5s .1s both cubic-bezier(.2,1.4,.4,1); }
.medaille svg { width: 38px; height: 38px; color: #1a1206; }
.modale-info { margin: 16px 0; padding: 14px; border-radius: 16px; background: rgba(245,180,61,.08); border: 1px solid rgba(245,180,61,.25); }
.modale .btn { display: block; }
.eclats { position: absolute; inset: 0; pointer-events: none; }
.eclats i { position: absolute; top: 58px; left: 50%; width: 7px; height: 12px; border-radius: 2px; opacity: 0; background: var(--acc); animation: eclat 1.1s .15s ease-out forwards; }
.eclats i:nth-child(3n) { background: var(--vert); } .eclats i:nth-child(4n) { background: #FFE08A; } .eclats i:nth-child(5n) { background: var(--bleu); }
.eclats i:nth-child(1) { --dx: -120px; --dy: -30px; --r: 200deg; }
.eclats i:nth-child(2) { --dx: 110px; --dy: -40px; --r: -160deg; }
.eclats i:nth-child(3) { --dx: -90px; --dy: 60px; --r: 120deg; }
.eclats i:nth-child(4) { --dx: 95px; --dy: 70px; --r: -220deg; }
.eclats i:nth-child(5) { --dx: -150px; --dy: 20px; --r: 260deg; }
.eclats i:nth-child(6) { --dx: 140px; --dy: 10px; --r: -100deg; }
.eclats i:nth-child(7) { --dx: -60px; --dy: -70px; --r: 300deg; }
.eclats i:nth-child(8) { --dx: 70px; --dy: -75px; --r: -280deg; }
.eclats i:nth-child(9) { --dx: -130px; --dy: 90px; --r: 90deg; }
.eclats i:nth-child(10) { --dx: 125px; --dy: 95px; --r: -60deg; }
.eclats i:nth-child(11) { --dx: -30px; --dy: 110px; --r: 180deg; }
.eclats i:nth-child(12) { --dx: 40px; --dy: 120px; --r: -200deg; }
@keyframes eclat { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(var(--r)); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .carte-membre::after, .eclats { display: none; } .modale, .medaille { animation: none; } }

/* étape 1 (03/12) : case à cocher, texte des conditions */
.case { text-transform: none; letter-spacing: normal; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text); cursor: pointer; }
.case input { width: 20px !important; height: 20px; flex: none; margin-top: 1px; accent-color: var(--acc); }
.texte-legal h3 { font-size: 15px; margin: 16px 0 4px; }
.texte-legal h3:first-child { margin-top: 0; }
.texte-legal p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.texte-legal b { color: var(--text); }
