/* Fenêtre « Compte » de l'accueil : inscription, connexion, espace compte */
html.acct-lock, html.acct-lock body { overflow: hidden; }
.acct[hidden] { display: none; }
.acct { position: fixed; inset: 0; z-index: 94; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(0,0,0,.78); animation: fadeIn .2s ease-out; }
.acct-box { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 28px); overflow: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #1b1b21, #121216); border: 1px solid #2b2b33; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.75); animation: hmIn .4s cubic-bezier(.2,.9,.25,1.1); }
.acct-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; padding: 0; border-radius: 50%; color: #a1a1ad; display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.acct-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.acct-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.acct-body h2 { margin: 0; font-size: 21px; letter-spacing: -.2px; }
.acct-body p { margin: 0; color: #b9b9c4; font-size: 13.5px; line-height: 1.5; }

.acct-hero { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.acct-hero img { height: 46px; flex: 0 0 auto; filter: drop-shadow(0 6px 18px rgba(229,5,57,.55)); }
.acct-hero h2 { margin-bottom: 3px; }
.acct-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #0f0f13; border: 1px solid #24242b; }
.acct-tabs button { flex: 1; height: 38px; border-radius: 10px; font-weight: 800; font-size: 13px; color: #a1a1ad; transition: background .15s, color .15s; }
.acct-tabs button.active { background: linear-gradient(180deg, #ff2f55, #c40030); color: #fff; box-shadow: 0 6px 16px rgba(229,5,57,.35); }
.acct-google { height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 14px; transition: filter .15s, transform .12s; }
.acct-google:hover { filter: brightness(.94); } .acct-google:active { transform: scale(.985); }
.acct-google:disabled { opacity: .45; cursor: not-allowed; }
.acct-note { font-size: 12px !important; color: #8a8a96 !important; text-align: center; }
.acct-or { display: flex; align-items: center; gap: 10px; color: #74747f; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: #2b2b33; }
.acct-form { display: flex; flex-direction: column; gap: 12px; }
.acct-field { display: flex; flex-direction: column; gap: 6px; }
.acct-field > span { font-size: 12px; font-weight: 700; color: #d7d7de; }
.acct-field small { font-size: 11.5px; color: #8a8a96; }
.acct-field small.good { color: #4dff8e; } .acct-field small.bad { color: #ff7b8a; }
.acct input[type="text"], .acct input[type="email"], .acct input[type="password"] { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; background: #0d0d10; border: 1px solid #2f2f38; color: #fff; font: 500 16px/1 inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.acct input:focus { border-color: #e50539; box-shadow: 0 0 0 3px rgba(229,5,57,.18); }
.acct-pass { position: relative; }
.acct-pass input { padding-right: 76px !important; }
.acct-eye { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border-radius: 9px; color: #a1a1ad; font-size: 12px; font-weight: 700; }
.acct-eye:hover { background: rgba(255,255,255,.08); color: #fff; }
.acct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #b9b9c4; line-height: 1.45; cursor: pointer; }
.acct-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #e50539; flex: 0 0 auto; }
.acct-check a, .acct-link { color: #ff4d6d; text-decoration: underline; text-underline-offset: 2px; }
.acct-link { align-self: center; font-size: 13px; font-weight: 600; padding: 4px 8px; }
.acct-error { padding: 10px 12px; border-radius: 12px; background: rgba(229,5,57,.12); border: 1px solid rgba(229,5,57,.5); color: #ff9aaa !important; font-size: 13px !important; font-weight: 600; }
.acct-error[hidden] { display: none; }
.acct-captcha { display: flex; justify-content: center; min-height: 65px; }
.acct-btn { height: 46px; padding: 0 18px; border-radius: 12px; background: #26262e; border: 1px solid #3a3a46; color: #e9e9ee; font-weight: 800; font-size: 14px; transition: transform .12s, filter .15s, border-color .15s; white-space: nowrap; }
.acct-btn:hover { border-color: #5a5a68; } .acct-btn:active { transform: scale(.985); }
.acct-btn:disabled { opacity: .5; cursor: default; }
.acct-btn.busy { position: relative; color: transparent !important; }
.acct-btn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: acctSpin .7s linear infinite; }
.acct-btn.primary { background: linear-gradient(180deg, #ff2f55, #c40030); border-color: #ff5c7a; color: #fff; box-shadow: 0 10px 26px rgba(229,5,57,.38); }
.acct-btn.gold { background: linear-gradient(180deg, #ffe58a, #e0a100); border-color: #fff0a8; color: #2a1a00; box-shadow: 0 10px 26px rgba(255,212,94,.3); }
.acct-btn.ghost { background: none; border-color: #2f2f38; color: #a1a1ad; }
.acct-btn.danger { background: #2a0b12; border-color: #7a1626; color: #ff7b8a; }
.acct-btn.danger:hover { border-color: #e5193a; color: #fff; }
@keyframes acctSpin { to { transform: rotate(360deg); } }
.acct-guest { border: 1px solid #24242b; border-radius: 14px; background: #15151a; }
.acct-guest summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.acct-guest summary::-webkit-details-marker { display: none; }
.acct-guest summary b { font-size: 13px; } .acct-guest summary span { font-size: 12px; color: #8a8a96; }
.acct-guest[open] { padding-bottom: 14px; }
.acct-guest .acct-row, .acct-guest .acct-avatars { margin: 0 14px; }
.acct-guest .acct-avatars { margin-top: 10px; }
.acct-row { display: flex; gap: 8px; } .acct-row input { flex: 1; min-width: 0; }
.acct-avatars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.acct-avatars button { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid transparent; padding: 0; opacity: .65; transition: opacity .15s, border-color .15s, transform .15s; }
.acct-avatars button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-avatars button:hover { opacity: 1; transform: scale(1.06); }
.acct-avatars button.active { opacity: 1; border-color: #e50539; box-shadow: 0 0 0 3px rgba(229,5,57,.22); }

.acct-center { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: center; padding-top: 8px; }
.acct-mail { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(229,5,57,.14); color: #ff4d6d; }
.acct-spin { width: 34px; height: 34px; margin: 20px auto 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #e50539; animation: acctSpin .8s linear infinite; }

.acct-head { display: flex; align-items: center; gap: 14px; padding-right: 34px; }
.acct-avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid #e50539; box-shadow: 0 8px 20px rgba(0,0,0,.5); flex: 0 0 auto; }
.acct-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.acct-chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); font-weight: 800; font-size: 11px; letter-spacing: .3px; }
.acct-pane { display: flex; flex-direction: column; gap: 14px; }
.acct-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acct-stat { padding: 10px 12px; border-radius: 12px; background: #15151a; border: 1px solid #24242b; }
.acct-stat small { display: block; font-size: 11px; color: #8a8a96; margin-bottom: 3px; }
.acct-stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.acct-vip { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: radial-gradient(120% 100% at 0% 0%, #24201a, #15151a 70%); border: 1px solid #2f2a20; }
.acct-shield { flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.acct-vipmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.acct-vipmain small { font-size: 11px; color: #8a8a96; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.acct-vipmain > b { font-size: 22px; line-height: 1; }
.acct-vipmain span { font-size: 12px; color: #b9b9c4; }
.acct-bar { height: 8px; border-radius: 4px; background: #24242b; overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: 4px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.acct-ladder { border: 1px solid #24242b; border-radius: 14px; overflow: hidden; font-size: 12px; }
.acct-lrow { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 1fr .7fr; gap: 6px; padding: 8px 12px; align-items: center; color: #8a8a96; font-variant-numeric: tabular-nums; }
.acct-lrow + .acct-lrow { border-top: 1px solid #1f1f25; }
.acct-lrow.head { background: #15151a; font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; }
.acct-lrow span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #d7d7de; }
.acct-lrow i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.acct-lrow span:not(:first-child) { text-align: right; }
.acct-lrow.done { color: #b9b9c4; } .acct-lrow.done span:first-child::after { content: "✓"; color: #4dff8e; margin-left: auto; }
.acct-lrow.cur { background: rgba(255,212,94,.08); color: #fff; }
.acct-ident { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #15151a; border: 1px solid #24242b; }
.acct-ident b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acct-ident small { flex: 0 0 auto; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; } .acct-actions .acct-btn { flex: 1 1 auto; }
.acct-danger { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid #5a1220; background: rgba(229,5,57,.05); }
.acct-danger > b { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #ff7b8a; }
.acct-danger #acDelConfirm { display: flex; flex-direction: column; gap: 10px; } .acct-danger #acDelConfirm[hidden] { display: none; }
.acct-flash { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 97; max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 12px; background: #17171c; border: 1px solid #3a3a46; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.6); animation: fadeIn .2s ease-out; text-align: center; }

/* barre du haut : bouton Connexion pour les invités, liseré vert sur l'avatar quand un compte est connecté */
.nav-btn.signin { color: #fff; background: rgba(255,255,255,.06); border: 1px solid #3c3c48; padding: 0 16px; }
.nav-btn.signin:hover { border-color: var(--red); }
.nav-btn.signin[hidden] { display: none; }
@media (max-width: 760px) { .nav-btn.signin { padding: 0 11px; font-size: 12.5px; } .acct { padding: 0; align-items: flex-end; } .acct-box { width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); } .acct-body { padding: 20px 16px 18px; } }
@media (orientation: landscape) and (max-height: 520px) { .acct { padding: 6px; align-items: center; } .acct-box { width: min(560px, 100%); max-height: calc(100dvh - 12px); border-radius: 18px; } .acct-body { padding: 14px 16px; gap: 10px; } .acct-hero img { height: 34px; } .nav-btn.signin { padding: 0 12px; font-size: 12.5px; } }
/* très petits écrans : le bouton Connexion se réduit à une icône */
@media (max-width: 372px) { .nav-btn.signin { width: 38px; padding: 0; font-size: 0; justify-content: center; } .nav-btn.signin::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.400 3.600-7 8-7s8 2.600 8 7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.400 3.600-7 8-7s8 2.600 8 7z'/%3E%3C/svg%3E") center / contain no-repeat; } }
@media (prefers-reduced-motion: reduce) { .acct, .acct-box { animation: none; } }

/* en-tête mis en avant : invitation d'un parrain ou récompense de niveau en attente */
.acct-hero.hot { padding: 12px 40px 12px 12px; border-radius: 16px; background: linear-gradient(120deg, #2e2410, rgba(27,27,31,.6) 75%); border: 1px solid rgba(255,212,94,.5); }
.acct-hero.hot h2 { color: #ffe9a8; }
