/* DataCard — page Compte */
.acct { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 60px color-mix(in srgb, var(--b1) 28%, transparent); margin-bottom: 18px; }
.acct-banner { position: relative; height: 150px; overflow: hidden; background: linear-gradient(120deg, var(--b1), var(--b2)); }
.ab-rays { position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: .38; animation: spin 40s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0 4deg, transparent 4deg 14deg); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%); mask-image: radial-gradient(circle, #000 0, transparent 60%); }
.ab-glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 120%, rgba(255, 255, 255, .5), transparent 55%), linear-gradient(180deg, transparent 40%, rgba(8, 10, 30, .65)); }
.ab-star { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkleStar 3s ease-in-out infinite; }
.acct-body { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; padding: 0 26px 20px; margin-top: -58px; }
.acct-avatar { position: relative; width: 132px; height: 132px; flex: none; }
.aa-ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(#ff3fd0, #ffd84a, #3ddc97, #4fd1ff, #7a6bff, #ff3fd0); animation: spin 6s linear infinite; }
.aa-img { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 35% 25%, #4a4fb0, #14173f); border: 4px solid #0b0e24; }
.aa-img img { width: 62%; }
.aa-img .art-mini { width: 100%; height: 100%; border-radius: 0; display: grid; place-items: center; }
.aa-img .art-mini img { width: 64%; height: auto; }
.aa-rank { position: absolute; right: -14px; bottom: -8px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .55)); }
.acct-id { flex: 1; min-width: 240px; display: grid; gap: 8px; padding-bottom: 4px; }
.acct-id small { letter-spacing: .3em; font-weight: 800; font-size: .7rem; color: rgba(255, 255, 255, .7); }
.acct-id h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; overflow-wrap: anywhere; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: #dbe2ff; }
.ch .ic { width: 1em; height: 1em; }
.ch.rank { background: linear-gradient(90deg, #ffe48a, #ffb12b); color: #3a2400; border-color: transparent; }
.ch.on { background: rgba(61, 220, 151, .2); color: #7ff0c0; border-color: rgba(61, 220, 151, .5); }
.acct-xp { display: grid; gap: 5px; max-width: 460px; } .acct-xp span { font-size: .82rem; color: var(--mut); } .acct-xp b { color: #fff; }
.acct-xp .bar { height: 10px; }
.acct-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0 26px 20px; }
.ak { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); text-align: center; }
.ak span { color: var(--b1); } .ak span .ic { width: 1.3em; height: 1.3em; }
.ak b { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; } .ak small { color: var(--mut); font-size: .72rem; }
.acct-show { padding: 4px 26px 26px; }
.acct-show h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.show-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 14px; }
.show-row .card { flex: none; --w: 150px; }

.acct-cloud { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 28px; margin-bottom: 8px; }
.acct-cloud h3 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-bottom: 12px; }
.cl-perks { list-style: none; padding: 0; display: grid; gap: 8px; }
.cl-perks li { display: flex; align-items: center; gap: 10px; color: #d4dbf7; font-weight: 600; font-size: .92rem; }
.cl-perks .ic { width: 1.2em; height: 1.2em; color: var(--cyan); flex: none; }
.cl-body { display: grid; gap: 14px; align-content: start; }
.cl-state { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: grid; gap: 6px; }
.cl-state > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--gold); }
.cl-state.on > span { color: var(--good); }
.cl-state .ic { width: 1.1em; height: 1.1em; }
.cl-state p { line-height: 1.45; font-size: .92rem; color: #d4dbf7; }
.cl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-btns .btn:disabled { opacity: .5; }

/* Fenêtres d'édition et de connexion */
.am-box { position: relative; z-index: 2; width: min(540px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; gap: 16px; padding: 24px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(28, 34, 82, .96), rgba(12, 16, 40, .98)); border: 1px solid rgba(111, 141, 255, .55); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); animation: pop .4s cubic-bezier(.2, 1.4, .3, 1); }
.am-box h2 { font-size: 1.6rem; font-weight: 800; }
.am-f { display: grid; gap: 8px; } .am-f > span { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.am-f input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--txt); font: inherit; font-weight: 600; }
.am-f input:focus { outline: 2px solid var(--acc); border-color: transparent; }
.am-ban { display: flex; gap: 10px; flex-wrap: wrap; }
.am-ban button { width: 44px; height: 44px; border-radius: 14px; border: 3px solid transparent; transition: .15s; }
.am-ban button.on { border-color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .5); transform: scale(1.08); }
.am-av { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 230px; overflow-y: auto; padding: 4px; }
.am-av button { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: var(--panel); border: 2px solid transparent; font-size: .68rem; font-weight: 700; min-width: 0; }
.am-av button.on { border-color: var(--acc); background: rgba(111, 141, 255, .2); }
.am-av img, .am-av .art-mini { width: 44px; height: 44px; border-radius: 12px; }
.am-av small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.am-tabs button { padding: 9px; border-radius: 10px; font-weight: 700; color: var(--mut); } .am-tabs button.on { background: linear-gradient(135deg, #6f8dff, #b06bff); color: #fff; }
.am-err { color: #ff9aa8; font-weight: 700; font-size: .9rem; }
.am-note { font-size: .82rem; line-height: 1.4; }

@media (max-width: 860px) {
  .acct-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-cloud { grid-template-columns: minmax(0, 1fr); }
  .acct-body { padding: 0 16px 16px; } .acct-kpis { padding: 0 16px 16px; } .acct-show { padding: 4px 16px 20px; }
  .acct-banner { height: 120px; } .acct-avatar { width: 108px; height: 108px; } .acct-body { margin-top: -48px; }
}

/* ───── Photo de profil ───── */
.aa-photo, .bd-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.aa-img img.aa-photo { width: 100%; }
.am-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ph-prev { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #4a4fb0, #14173f); border: 3px solid rgba(255, 255, 255, .5); }
.ph-prev img { width: 62%; } .ph-prev img.aa-photo { width: 100%; } .ph-prev .art-mini { width: 100%; height: 100%; border-radius: 0; display: grid; place-items: center; } .ph-prev .art-mini img { width: 64%; }
.ph-act { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-act label.btn { cursor: pointer; }
.am-chk { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.4; color: #cfd6ff; cursor: pointer; }
.am-chk input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #8a7bff; }
.am-chk b { color: #fff; }

/* ───── Classement ───── */
.bd-head { margin-bottom: 18px; }
.bd-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 20px; }
.bd-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; color: var(--mut); transition: .15s; }
.bd-tabs button:hover { color: #fff; background: var(--panel2); }
.bd-tabs button.on { color: #fff; background: linear-gradient(135deg, #6f8dff, #b06bff); border-color: transparent; box-shadow: 0 6px 22px rgba(122, 107, 255, .5); }
.bd-tabs .ic { width: 1.1em; height: 1.1em; }
.bd-me { max-width: 520px; margin: 0 auto 22px; display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; background: linear-gradient(135deg, rgba(255, 200, 61, .16), rgba(255, 95, 210, .12)); border-color: rgba(255, 200, 61, .5); }
.bd-me span { letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; font-weight: 800; color: var(--gold); }
.bd-me b { font-size: 2.4rem; font-weight: 900; line-height: 1; } .bd-me small { color: #cfd6ff; font-weight: 600; }
.bd-cta { max-width: 620px; margin: 0 auto 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bd-cta > .ic { width: 2em; height: 2em; color: var(--cyan); flex: none; } .bd-cta > div { flex: 1; min-width: 200px; } .bd-cta p { font-size: .88rem; margin-top: 2px; }
.bd-empty { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 28px 20px; }
.bd-empty .ic { width: 2.6em; height: 2.6em; color: var(--cyan); }
.bd-skel { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; } .bd-skel i { height: 62px; border-radius: 18px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); background-size: 220% 100%; animation: sweep 1.4s linear infinite; }

.bd-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 720px; margin: 0 auto 24px; }
.pd { --b1: #6f8dff; --b2: #b06bff; position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 8px 16px; text-align: center; border-radius: 22px; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b1) 32%, transparent), rgba(255, 255, 255, .04)); border: 1px solid color-mix(in srgb, var(--b1) 60%, transparent); }
.pd.p1 { padding-top: 34px; padding-bottom: 24px; box-shadow: 0 0 46px rgba(255, 200, 61, .35); border-color: rgba(255, 200, 61, .8); } .pd.p2 { padding-bottom: 20px; } .pd.p3 { padding-bottom: 14px; }
.pd.me { outline: 2px solid #fff; outline-offset: 3px; }
.pd-crown { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); color: var(--gold); filter: drop-shadow(0 0 12px rgba(255, 200, 61, .9)); animation: chestFloat 2.6s ease-in-out infinite; }
.pd-crown .ic { width: 2.4em; height: 2.4em; }
.pd-av { position: relative; width: 78px; height: 78px; } .pd.p1 .pd-av { width: 104px; height: 104px; }
.pd-ring { position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(#cfd6e6, #fff, #8a93a8, #cfd6e6); } .pd.p1 .pd-ring { background: conic-gradient(#ffe48a, #fff6c8, #ff9f1c, #ffe48a); animation: spin 6s linear infinite; } .pd.p3 .pd-ring { background: conic-gradient(#e0a070, #ffd9b8, #a05a2a, #e0a070); }
.pd-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #4a4fb0, #14173f); border: 3px solid #0b0e24; }
.pd-img img { width: 62%; } .pd-img img.bd-photo { width: 100%; } .pd-img .art-mini { width: 100%; height: 100%; border-radius: 0; display: grid; place-items: center; } .pd-img .art-mini img { width: 64%; }
.pd-n { position: absolute; right: -6px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #1a1200; background: linear-gradient(135deg, #e9edf7, #9aa3b8); border: 2px solid #0b0e24; }
.pd.p1 .pd-n { background: linear-gradient(135deg, #ffe48a, #ff9f1c); } .pd.p3 .pd-n { background: linear-gradient(135deg, #ffd0a8, #c07038); }
.pd h3 { font-size: 1rem; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-rk { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--mut); font-weight: 700; max-width: 100%; }
.pd strong { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; } .pd strong small, .bd-row strong small { font-size: .7rem; color: var(--mut); margin-left: 4px; font-weight: 700; }
.bd-list { display: grid; gap: 8px; max-width: 720px; margin: 0 auto; }
.bd-row { --b1: #6f8dff; --b2: #b06bff; display: grid; grid-template-columns: 38px 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.bd-row.me { border-color: #fff; background: linear-gradient(90deg, rgba(111, 141, 255, .22), rgba(176, 107, 255, .14)); box-shadow: 0 0 24px rgba(122, 107, 255, .4); }
.bd-pos { text-align: center; font-weight: 900; font-size: 1.1rem; color: var(--mut); font-variant-numeric: tabular-nums; }
.bd-av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--b1), var(--b2)); border: 2px solid rgba(255, 255, 255, .35); }
.bd-av img { width: 62%; } .bd-av img.bd-photo { width: 100%; } .bd-av .art-mini { width: 100%; height: 100%; border-radius: 0; display: grid; place-items: center; } .bd-av .art-mini img { width: 64%; }
.bd-id { min-width: 0; } .bd-id h4 { font-size: .98rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-id h4 em { font-style: normal; margin-left: 8px; font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #fff; color: #1b1f4a; vertical-align: middle; }
.bd-id small { display: flex; align-items: center; gap: 5px; color: var(--mut); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row strong { font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-gap { text-align: center; color: var(--mut); letter-spacing: .4em; padding: 8px 0; }
@media (max-width: 560px) { .bd-podium { gap: 8px; } .pd { padding: 14px 4px 12px; } .pd.p1 { padding-top: 30px; } .pd-av { width: 58px; height: 58px; } .pd.p1 .pd-av { width: 78px; height: 78px; } .pd h3 { font-size: .82rem; } .pd strong { font-size: 1.05rem; } .pd-rk { display: none; } .bd-row { grid-template-columns: 30px 40px minmax(0, 1fr) auto; gap: 9px; } .bd-av { width: 40px; height: 40px; } }

/* ───── Performances ───── */
.acct-perf { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 24px; align-items: center; margin-top: 18px; }
.acct-perf h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: 6px; } .acct-perf p { font-size: .88rem; line-height: 1.45; }
.perf-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.perf-opts button { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--panel); border: 2px solid transparent; }
.perf-opts button b { font-size: .9rem; } .perf-opts button small { color: var(--mut); font-size: .68rem; }
.perf-opts button.on { border-color: var(--acc); background: rgba(111, 141, 255, .2); }
@media (max-width: 860px) { .acct-perf { grid-template-columns: minmax(0, 1fr); } }
