/* Compte : bouton de navigation, fenêtre de connexion, page « Mon compte ». */

.nav__acct { position: relative; width: 42px; height: 42px; display: grid; place-items: center; transition: color 0.2s; }
.nav__acct svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav__acct:hover { color: var(--red); }
.nav__avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--ink); font-stretch: 75%; font-weight: 800; font-size: 15px; line-height: 1; }
.nav__avatar--lg { width: 58px; height: 58px; font-size: 26px; flex: none; }

/* Fenêtre de connexion */
.authbox { width: min(480px, calc(100vw - 24px)); padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.authbox[open] { animation: sheet-in 0.45s var(--ease); }
.authbox .close { top: 14px; right: 14px; }
.authbox__form { display: grid; gap: 14px; }
.authbox__brand { font-stretch: 125%; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: var(--bone-2); }
.authbox h2 { font-stretch: 62%; font-weight: 800; font-size: clamp(40px, 6vw, 56px); line-height: 0.95; }
.authbox__text { color: var(--bone-2); }
.authbox__field { display: grid; gap: 6px; }
.authbox__field span { font-size: 13px; font-weight: 600; color: var(--bone-2); }
.authbox__field input { height: 48px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--bone); font: inherit; box-shadow: inset 0 0 0 1px rgba(236, 232, 225, 0.22); outline: 0; }
.authbox__field input:focus { box-shadow: inset 0 0 0 1.5px var(--red); }
.authbox__err { padding: 10px 12px; border-radius: 9px; background: rgba(255, 58, 36, 0.12); color: #ff8a7a; font-size: 14px; }
.authbox__note { font-size: 13px; color: var(--bone-2); }
.authbox__mock { padding: 9px 12px; border-radius: 9px; background: rgba(255, 58, 36, 0.1); color: #ff8a7a; font-size: 13px; line-height: 1.35; }

/* Panier : état du paiement */
.cart__status { padding: 10px 12px; border-radius: 9px; background: rgba(79, 227, 154, 0.1); color: #7ff0b6; font-size: 14px; line-height: 1.35; }
.cart__status.is-error { background: rgba(255, 58, 36, 0.12); color: #ff8a7a; }

/* Message bref */
.site-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -16px #000; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease); }
.site-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Page « Mon compte » */
.account { display: grid; gap: 14px; padding: clamp(28px, 4vw, 56px) var(--gut) clamp(64px, 8vw, 120px); }
.account__card { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.account__card h2 { font-stretch: 62%; font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1; overflow-wrap: anywhere; }
.account__card--guest { display: grid; justify-items: start; gap: 14px; max-width: 620px; }
.account__card--guest p { color: var(--bone-2); }
.account__id { display: flex; align-items: center; gap: 18px; }
.account__id > div { flex: 1; min-width: 0; }
.account__id p { color: var(--bone-2); margin-top: 4px; }
.account__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.account__stats .account__card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.account__label { font-size: 13px; font-weight: 600; color: var(--bone-2); }
.account__big { font-stretch: 62%; font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; }
.account__big small { font-size: 0.5em; color: var(--bone-2); }
.account__hint { font-size: 14px; color: var(--bone-2); margin-top: auto; }
.account__stats .btn { margin-top: auto; }
.account__more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.account__more h3 { font-stretch: 75%; font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.account__list { display: grid; gap: 8px; }
.account__list li { position: relative; padding-left: 26px; color: var(--bone-2); }
.account__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 2px; background: var(--bone-2); opacity: 0.6; }
.account__list li.is-on { color: var(--bone); }
.account__list li.is-on::before { width: 8px; height: 13px; top: 0.12em; left: 3px; background: none; border: solid var(--red); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); opacity: 1; }
.account__delete { font-size: 14px; color: var(--bone-2); }
.account__delete a { color: var(--bone); text-decoration: underline; text-underline-offset: 2px; }
.account__loading { height: 220px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* Boutique : options de Studio à venir */

@media (max-width: 1100px) {
  .account__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .account__stats { grid-template-columns: 1fr; }
  .account__id { flex-wrap: wrap; }
}

/* Page introuvable */
.notfound { min-height: calc(100svh - 200px); display: flex; flex-direction: column; justify-content: center; border-bottom: 0; }
.notfound__code { font-stretch: 62%; font-weight: 800; font-size: clamp(120px, 22vw, 320px); line-height: 0.8; color: var(--red); margin-bottom: 12px; }
.notfound__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }

/* ---------- Clip partagé (/c/<id>) ---------- */
.clip { padding: calc(var(--nav) + clamp(20px, 3vw, 44px)) var(--gut) clamp(40px, 5vw, 80px); display: grid; gap: clamp(18px, 2vw, 28px); max-width: 1280px; margin: 0 auto; }
.clip__stage { position: relative; display: grid; place-items: center; min-height: min(56vw, 70svh); border-radius: var(--r-lg); background: var(--ink-2); overflow: hidden; }
.clip__stage:has(.clip__video:not([hidden])) { min-height: 0; background: #000; }
.clip__video { display: block; width: 100%; max-height: 72svh; background: #000; }
.clip__video.is-vertical { width: auto; height: 72svh; max-width: 100%; }
.clip__state { color: var(--bone-2); }
.clip__game { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 6px; }
.clip__title { font-size: clamp(30px, 4.4vw, 64px); line-height: 1; margin-bottom: 10px; overflow-wrap: anywhere; }
.clip__meta { color: var(--bone-2); font-size: 15px; }
.clip__gone { min-height: calc(100svh - 420px); display: flex; flex-direction: column; justify-content: center; }
.clip__gone h1 { font-size: clamp(36px, 6vw, 92px); margin-bottom: 14px; }
.clip__made { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.clip__made h2 { font-size: clamp(22px, 2.2vw, 32px); margin-bottom: 6px; }
.clip__made p { color: var(--bone-2); max-width: 52ch; }
.clip__report { font-size: 14px; }
