/* RAPZODY V12 — styles des nouveautés + refonte mobile
   Ordinateur : rien ne change dans la mise en page générale.
   Téléphone (< 900 px) : bandeau du haut sur 2 lignes (date bien visible), navigation en bas à portée de pouce,
   fenêtres en panneau bas avec boutons toujours visibles, boutons plus grands. */

/* =========================
   SÉLECTION : onglets Rappeurs / Rappeuses
========================= */
.rz-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.rz-tab { flex: 1 1 0; min-height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: #121215; color: #c9c9cf; font: 800 13px/1 Inter, sans-serif; letter-spacing: .04em; cursor: pointer; }
.rz-tab.on { background: var(--red, #ff202b); border-color: var(--red, #ff202b); color: #fff; box-shadow: 0 6px 18px rgba(255,32,43,.35); }
.rz-tab i { font-style: normal; font-size: 8px; vertical-align: 2px; margin-left: 4px; }
.model-card { position: relative; }
.model-card .model-mood { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3; text-align: center; font: 800 10px/1.1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
.model-card img { object-position: center top; }

/* =========================
   CRÉATION : profil de rappeur
========================= */
.v12-arch-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .v12-arch-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.crea-tile.v12-arch { text-align: left; align-items: flex-start; }
.v12-arch em { display: block; font-style: normal; font-size: 11px; line-height: 1.35; margin-top: 4px; }
.v12-arch .v12-plus { color: #7fe3a5; }
.v12-arch .v12-minus { color: #ff9aa0; }

/* =========================
   STUDIO : voix & mix
========================= */
.v12-group { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.v12-group legend { font: 800 11px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9a9aa2; margin-bottom: 8px; }
.v12-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v12-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #141417; cursor: pointer; font-weight: 700; font-size: 13px; }
.v12-opt input { accent-color: var(--red, #ff202b); width: 16px; height: 16px; margin: 0; }
.v12-opt:has(input:checked) { border-color: var(--red, #ff202b); background: rgba(255,32,43,.12); }
.v12-opt small { color: #9a9aa2; font-weight: 700; }
.v12-opt i { font-style: normal; font-size: 11px; font-weight: 900; }
.v12-opt i.good { color: #6fe39b; } .v12-opt i.bad { color: #ff7d86; }
.v12-arch-line { margin: 4px 0 0; font-size: 12px; color: #b9b9c0; }
.v12-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #d6d6dc; }

/* =========================
   PROFIL DE RAPPEUR (Mon artiste)
========================= */
.v12-arch-card { margin: 14px 0; }
.v12-arch-name { font-size: 18px; margin: 4px 0; }
.v12-arch-desc { font-size: 13px; color: #c7c7cd; line-height: 1.5; }
.v12-pill { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255,200,87,.15); color: var(--yellow, #ffc857); vertical-align: 3px; }
.v12-arch-list { display: grid; gap: 8px; margin: 12px 0; }
.v12-arch-pick { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #141417; color: #fff; cursor: pointer; font: inherit; }
.v12-arch-pick:hover, .v12-arch-pick:focus-visible { border-color: var(--red, #ff202b); }
.v12-arch-pick small { color: #b9b9c0; } .v12-arch-pick em { font-style: normal; font-size: 12px; color: #7fe3a5; } .v12-arch-pick em.m { color: #ff9aa0; }
.v12-prof-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px auto 0; max-width: 320px; font-size: 13px; text-align: left; }
.v12-prof-rows span { color: #9a9aa2; } .v12-prof-rows b { text-align: right; }
.v12-title { margin: 2px 0 8px; font: 800 12px/1.2 Inter, sans-serif; letter-spacing: .06em; color: var(--yellow, #ffc857); text-transform: uppercase; }
.artist-card-avatar { position: relative; }
.v12-acc { position: absolute; z-index: 4; right: 8%; bottom: 6%; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #0b0b0d; border: 2px solid var(--yellow, #ffc857); font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.6); }

/* =========================
   INVITATIONS (album, médias, COLORS LIVE)
========================= */
.v12-kicker { margin: 0 0 8px; font: 900 11px/1.2 Inter, sans-serif; letter-spacing: .2em; color: var(--red, #ff202b); }
.v12-inv-head { display: flex; gap: 12px; align-items: center; }
.v12-inv-head h2 { margin: 0; font-size: clamp(18px, 4.6vw, 24px); line-height: 1.1; }
.v12-inv-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: 0 0 64px; border: 2px solid var(--red, #ff202b); }
.v12-inv-face.ph { display: grid; place-items: center; background: #1c1c20; font-weight: 900; font-size: 24px; }
.v12-facts { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.v12-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #141417; font-size: 13px; }
.v12-facts li span { color: #9a9aa2; flex: 0 0 auto; } .v12-facts li b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.v12-quote { font-style: italic; color: #e5e5ea; padding: 12px 14px; border-left: 3px solid var(--red, #ff202b); background: rgba(255,255,255,.03); border-radius: 0 10px 10px 0; }
.v12-track-pick { display: grid; gap: 6px; max-height: 42vh; overflow-y: auto; }
.v12-track-pick label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #141417; cursor: pointer; min-height: 48px; }
.v12-track-pick label:has(input:checked) { border-color: var(--red, #ff202b); }
.v12-track-pick span { display: grid; min-width: 0; } .v12-track-pick small { color: #9a9aa2; }
.v12-track-pick input { accent-color: var(--red, #ff202b); }
.v12-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.v12-swatch { display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.v12-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.v12-swatch span { width: 48px; height: 48px; border-radius: 14px; background: var(--c); border: 3px solid transparent; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.v12-swatch input:checked + span { border-color: #fff; transform: scale(1.06); }
.v12-swatch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.v12-swatch small { font-size: 11px; color: #c7c7cd; text-align: center; }
.v12-colors-done { border-top: 4px solid var(--c); padding-top: 6px; }
.v12-score { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 12px; }
.v12-score b { font: 900 46px/1 Inter, sans-serif; color: var(--c); text-shadow: 0 0 18px rgba(0,0,0,.4); }
.v12-score span { margin-left: 8px; font-weight: 800; }

/* Discographie : sur les projets d'autres artistes */
.v12-guest-list { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 900px) { .v12-guest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v12-guest-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: #111114; color: #fff; font: inherit; cursor: pointer; min-width: 0; }
.v12-guest-card.pending { opacity: .75; cursor: default; }
.v12-cover { position: relative; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2a0609, #0b0b0d); display: grid; place-items: end center; }
.v12-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.35) contrast(1.1); }
.v12-cover span { position: relative; z-index: 1; width: 100%; padding: 3px 4px; background: rgba(0,0,0,.65); font: 900 8px/1.1 Inter, sans-serif; letter-spacing: .06em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v12-guest-body { display: grid; gap: 3px; min-width: 0; }
.v12-guest-body small { color: #9a9aa2; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v12-guest-body b { font-size: 14px; overflow-wrap: anywhere; } .v12-guest-body b em { font-style: normal; color: var(--yellow, #ffc857); font-weight: 700; }
.v12-guest-body > span { font-size: 12px; color: #c7c7cd; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* =========================
   COLORS LIVE : scène
========================= */
#rzCine.v12-colors { background: #000; }
.v12c-room { --c: #e3262f; position: absolute; inset: 0; overflow: hidden; background: var(--c); }
.v12c-wall { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 42%, color-mix(in srgb, var(--c) 80%, white) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 60%, black) 100%); }
.v12c-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(color-mix(in srgb, var(--c) 70%, black), color-mix(in srgb, var(--c) 35%, black)); }
.v12c-light { position: absolute; left: 50%; top: -10%; width: 90vmin; height: 120%; transform: translateX(-50%); background: radial-gradient(40% 40% at 50% 46%, rgba(255,255,255,.28), transparent 70%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .8s .2s; }
.v12c-ring { display: none; position: absolute; left: 50%; top: 40%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; border: 6px solid rgba(255,255,255,.75); box-shadow: 0 0 40px rgba(255,255,255,.5), inset 0 0 40px rgba(255,255,255,.35); }
.d-anneau .v12c-ring { display: block; }
.d-horizon .v12c-floor { height: 40%; background: linear-gradient(color-mix(in srgb, var(--c) 45%, white), color-mix(in srgb, var(--c) 60%, black)); }
.d-cyclo .v12c-floor { height: 30%; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.d-duo .v12c-wall { background: linear-gradient(90deg, var(--c) 0 58%, color-mix(in srgb, var(--c) 55%, black) 58% 100%); }
.d-mur .v12c-floor { background: color-mix(in srgb, var(--c) 50%, black); }
.v12c-artist { position: absolute; left: 50%; bottom: 14%; height: min(64vh, 120vw); aspect-ratio: 300 / 352; transform: translate(-50%, 8%); opacity: 0; transition: opacity .7s .2s, transform 1s .2s cubic-bezier(.2,.85,.25,1); }
.v12c-artist .rzav { height: 100%; -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
.v12c-mic { position: absolute; left: calc(50% - min(64vh, 120vw) * .2); bottom: 0; height: 40%; opacity: 0; transition: opacity .5s .6s; }
.v12c-card { position: absolute; left: 22px; bottom: calc(26% + 18px); display: grid; gap: 2px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); opacity: 0; transform: translateY(8px); transition: opacity .6s 1.1s, transform .6s 1.1s; }
.v12c-card b { font: 900 clamp(22px, 6vw, 40px)/1 Inter, sans-serif; letter-spacing: .02em; }
.v12c-card span { font: 600 clamp(14px, 3.6vw, 20px)/1.2 Inter, sans-serif; opacity: .9; }
.v12c-mark { position: absolute; right: 18px; top: calc(16px + env(safe-area-inset-top, 0px)); font: 900 12px/1 Inter, sans-serif; letter-spacing: .2em; color: rgba(255,255,255,.85); }
.v12c-mark i { font-style: normal; padding: 3px 6px; margin-left: 4px; background: rgba(255,255,255,.9); color: var(--c); }
.v12-colors.go .v12c-artist { opacity: 1; transform: translate(-50%, 0); }
.v12-colors.go .v12c-light, .v12-colors.go .v12c-mic, .v12-colors.go .v12c-card { opacity: 1; transform: none; }
.v12-colors.go .v12c-light { animation: v12Breath 2.6s 1s ease-in-out infinite; }
@keyframes v12Breath { 50% { opacity: .55; } }
.v12-colors.out { opacity: 0; transition: opacity .3s; }
.v12-colors.reduced * { transition: none !important; animation: none !important; }

/* =========================
   SUCCÈS : bannière, compteur, page
========================= */
#v12Banner { position: fixed; z-index: 380; right: 20px; bottom: 20px; transform: translateY(160%); width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #141012; border: 1px solid rgba(255,200,87,.55); box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 24px rgba(255,200,87,.18); transition: transform .4s cubic-bezier(.2,.9,.3,1.2); }
#v12Banner.on { transform: translateY(0); }
/* bannière cachée = vraiment invisible (elle ne reste plus à moitié affichée) */
#v12Banner:not(.on) { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s; }
#v12Banner.on { opacity: 1; visibility: visible; }
.v12b-main { display: grid; min-width: 0; flex: 1; } .v12b-main b { font-size: 14px; } .v12b-main small { color: #c7c7cd; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v12b-pts { font: 900 13px/1 Inter, sans-serif; color: var(--yellow, #ffc857); white-space: nowrap; }
#v12Banner button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--yellow, #ffc857); color: #111; font: 800 12px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; }
#v12Banner .v12b-x { background: transparent; color: #9a9aa2; font-size: 20px; padding: 0 6px; }
@media (prefers-reduced-motion: reduce) { #v12Banner { transition: none; } }

.v12-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,200,87,.45); background: rgba(255,200,87,.08); color: var(--yellow, #ffc857); font: 800 12px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.v12-chip b { color: #fff; }
.v12-chip.fresh { border-color: var(--yellow, #ffc857); box-shadow: 0 0 14px rgba(255,200,87,.35); }
.v12-chip i { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--red, #ff202b); border: 2px solid #050505; }

.v12-tabs { display: flex; gap: 8px; margin: 14px 0; }
.v12-tabs button { flex: 1 1 0; min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #111114; color: #d6d6dc; font: 800 14px/1 Inter, sans-serif; cursor: pointer; }
.v12-tabs button small { display: block; margin-top: 4px; font-size: 11px; color: #9a9aa2; }
.v12-tabs button.on { border-color: var(--red, #ff202b); background: rgba(255,32,43,.12); color: #fff; }
.v12-total { margin: 6px 0 0; }
.v12-next { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 14px; }
.v12-next-card { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #111114; border: 1px solid rgba(255,200,87,.25); }
.v12-next-card small { color: #9a9aa2; font-size: 12px; } .v12-next-card em { font-style: normal; font-size: 11px; color: var(--yellow, #ffc857); font-weight: 800; }
.v12-mini { display: block; height: 5px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.v12-mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--red, #ff202b), var(--yellow, #ffc857)); }
.v12-recent { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.v12-recent span { padding: 7px 10px; border-radius: 999px; background: rgba(255,200,87,.1); font-size: 12px; font-weight: 700; } .v12-recent b { color: var(--yellow, #ffc857); }
.v12-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.v12-filters button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: #111114; color: #c7c7cd; font: 700 12px/1 Inter, sans-serif; cursor: pointer; }
.v12-filters button.on { background: #fff; color: #111; }
.v12-ach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 900px) { .v12-ach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v12-ach { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #0f0f12; border: 1px solid rgba(255,255,255,.06); min-width: 0; }
.v12-ach.ok { background: linear-gradient(90deg, rgba(255,200,87,.1), #111114 60%); border-color: rgba(255,200,87,.3); }
.v12-ach-ico { font-size: 20px; flex: 0 0 28px; text-align: center; opacity: .5; } .v12-ach.ok .v12-ach-ico { opacity: 1; }
.v12-ach-body { display: grid; gap: 2px; min-width: 0; flex: 1; } .v12-ach-body small { color: #9a9aa2; font-size: 12px; } .v12-ach-body em { font-style: normal; font-size: 11px; color: var(--yellow, #ffc857); }
.v12-ach-pts { display: grid; text-align: right; font: 900 16px/1 Inter, sans-serif; color: var(--yellow, #ffc857); flex: 0 0 auto; }
.v12-ach-pts small { font-size: 9px; font-weight: 800; color: #9a9aa2; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.v12-ach.r-r .v12-ach-pts small { color: #9ff0ff; }

.v12-shop { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
@media (min-width: 900px) { .v12-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v12-item { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 14px; background: #111114; border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.v12-item.rare { border-color: rgba(159,240,255,.45); background: linear-gradient(160deg, rgba(159,240,255,.08), #111114 55%); }
.v12-item.owned { border-color: rgba(255,200,87,.35); }
.v12-item-ico { font-size: 26px; } .v12-item b { font-size: 14px; overflow-wrap: anywhere; } .v12-item small { color: #9a9aa2; font-size: 12px; line-height: 1.35; }
.v12-item-price { font: 800 12px/1.2 Inter, sans-serif; color: var(--yellow, #ffc857); margin: 2px 0 6px; } .v12-item-price em { font-style: normal; color: #9ff0ff; }
.v12-item button { width: 100%; min-height: 40px; font-size: 12px; }

/* Cosmétiques équipés : cadres, effets, décors */
.v12-frame_neon .rzav-round, .v12-frame_neon .avatar-card { box-shadow: 0 0 0 3px #ff202b, 0 0 18px rgba(255,32,43,.8) !important; }
.v12-frame_chrome .rzav-round, .v12-frame_chrome .avatar-card { box-shadow: 0 0 0 3px #d9dde3, 0 0 0 5px #6b6f76 !important; }
.v12-frame_gold .rzav-round, .v12-frame_gold .avatar-card { box-shadow: 0 0 0 3px #f3c64f, 0 0 22px rgba(243,198,79,.6) !important; }
.v12-frame_plat .rzav-round, .v12-frame_plat .avatar-card { box-shadow: 0 0 0 3px #eef2f7, 0 0 22px rgba(200,220,255,.6) !important; }
.v12-frame_fire .rzav-round, .v12-frame_fire .avatar-card { box-shadow: 0 0 0 3px #ff6a1b, 0 0 24px rgba(255,90,20,.75) !important; animation: v12Fire 1.6s ease-in-out infinite; }
.v12-frame_diamond .rzav-round, .v12-frame_diamond .avatar-card { box-shadow: 0 0 0 3px #bff6ff, 0 0 0 6px rgba(201,167,255,.6), 0 0 30px rgba(159,240,255,.7) !important; }
@keyframes v12Fire { 50% { filter: brightness(1.25); } }
.v12-fx_aura .avatar-card, .v12-fx_aura .rzav-round { animation: v12Aura 2.4s ease-in-out infinite; }
@keyframes v12Aura { 50% { box-shadow: 0 0 34px rgba(255,32,43,.85); } }
.v12-fx_halo .avatar-card::after, .v12-fx_halo.artist-card .avatar-card::after { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(closest-side, rgba(255,200,87,.45), transparent); pointer-events: none; }
.v12-fx_spark .avatar-card::before { content: "✦  ✧   ✦"; position: absolute; z-index: 5; top: 8px; left: 10px; color: #fff3c4; font-size: 14px; letter-spacing: 6px; text-shadow: 0 0 8px #ffc857; animation: v12Twinkle 2s ease-in-out infinite; pointer-events: none; }
@keyframes v12Twinkle { 50% { opacity: .3; } }
.artist-card.v12-deco_studio { background: linear-gradient(rgba(10,8,10,.82), rgba(10,8,10,.92)), repeating-linear-gradient(90deg, #1b1414 0 18px, #120d0e 18px 36px); }
.artist-card.v12-deco_stage { background: radial-gradient(60% 50% at 50% 0%, rgba(255,60,70,.35), transparent 70%), radial-gradient(40% 40% at 15% 10%, rgba(255,200,87,.2), transparent 70%), #0b0809; }
.artist-card.v12-deco_neon { background: linear-gradient(180deg, rgba(40,10,60,.85), rgba(8,6,12,.95)), repeating-linear-gradient(0deg, rgba(255,32,43,.12) 0 2px, transparent 2px 22px); }
@media (prefers-reduced-motion: reduce) { .v12-frame_fire .rzav-round, .v12-frame_fire .avatar-card, .v12-fx_aura .avatar-card, .v12-fx_aura .rzav-round, .v12-fx_spark .avatar-card::before { animation: none; } }

/* =========================
   RECENTRAGE DES PORTRAITS (nouveaux fichiers assets/portraits/)
========================= */
.avatar-card .rzav, .model-card .rzav { width: 100%; }
.model-card { display: block; }
.avatar-card { display: flex; align-items: flex-start; justify-content: center; }
.rzb-hero-img { object-position: 50% 18%; }

/* =========================
   TÉLÉPHONE (< 900 px)
========================= */
@media (max-width: 899px) {
    /* --- Bandeau du haut : 2 lignes, la date en évidence --- */
    .topbar { height: auto !important; min-height: 0; flex-wrap: wrap; align-items: center; row-gap: 8px; column-gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px !important; }
    .topbar::after { content: ""; flex-basis: 100%; order: 3; height: 0; }
    .player-stats { display: contents; }
    .brand { order: 0; flex: 1 1 auto; font-size: 18px; }
    .player-stats .mode-badge { display: none; }
    .player-stats .mode-badge.date-badge { display: inline-flex; order: 1; align-items: center; min-height: 30px; margin: 0; font-size: 12px; letter-spacing: .06em; padding: 4px 10px; transform: none; border-radius: 999px; background: rgba(255,200,87,.1); }
    .v12-chip { order: 2; }
    .player-stats > div, .player-stats > .topbar-artist { order: 4; flex: 1 1 auto; min-width: 0; }
    .player-stats > .topbar-artist { flex: 0 0 auto; }
    .player-stats > .topbar-artist > div { display: none; }
    .player-stats > div small { font-size: 9px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .player-stats > .listeners-stat small { font-size: 0; }
    .player-stats > .listeners-stat small::after { content: "AUD./MOIS"; font-size: 9px; }
    .player-stats > div b { font-size: 12px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* --- Navigation en bas, à portée de pouce (mêmes boutons que la barre latérale) --- */
    .sidebar, body.nav-open .sidebar, body.nav-compact .sidebar {
        position: fixed !important; top: auto !important; left: 0; right: 0; bottom: 0; z-index: 70;
        width: 100% !important; height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
        flex-direction: row; align-items: stretch !important; justify-content: flex-start; gap: 2px;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth;
        border-right: 0; border-top: 1px solid rgba(255,32,43,.35); background: rgba(8,8,10,.97); backdrop-filter: blur(8px);
    }
    .sidebar::-webkit-scrollbar { display: none; }
    .sidebar .nav-toggle { display: none; }
    .sidebar .nav-btn, body.nav-open .sidebar .nav-btn, body.nav-compact .sidebar .nav-btn {
        flex: 0 0 68px; width: 68px !important; height: 56px !important; margin: 0 !important; padding: 4px 2px !important;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; font-size: 10px;
    }
    .sidebar .nav-btn .nav-label, body.nav-compact .sidebar .nav-label { position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: hidden; max-width: 64px; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1.1; }
    .sidebar .nav-btn span { width: auto; font-size: 18px; display: grid; place-items: center; }
    .sidebar .nav-btn svg { width: 22px; height: 22px; }
    .layout { display: block; }
    #content { padding: 14px 14px calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
    .studio-bar { left: 0 !important; bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; padding-bottom: 10px !important; }
    #content form#studioForm { padding-bottom: 64px; }
    /* actualités du mois (streams, argent, fans…) : en haut, juste sous l'en-tête */
    #toast { top: calc(108px + env(safe-area-inset-top, 0px)) !important; bottom: auto !important; transform: translateY(-12px); z-index: 360; max-height: 40vh; overflow-y: auto; box-shadow: 0 14px 30px rgba(0,0,0,.6); }
    #toast.show { transform: translateY(0); }

    /* --- V14 : fenêtres au milieu de l'écran (plus en panneau bas), défilement interne, boutons toujours visibles --- */
    .modal { align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .modal-box { width: 100%; max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border-radius: 18px; padding: 18px 16px 16px; animation: rzModalIn .22s ease-out; }
    .modal-box .studio-actions { position: sticky; bottom: -16px; z-index: 2; margin: 12px -16px -16px; padding: 12px 16px 14px; background: linear-gradient(rgba(17,17,20,0), #111114 30%); border-radius: 0 0 18px 18px; }
    .modal-box .studio-actions > button { flex: 0 0 auto; min-height: 46px; height: auto; } /* V14.1 : boutons empilés en colonne : la base de 140 px devenait leur hauteur */
    .close-modal { width: 44px; height: 44px; top: 6px; right: 6px; }

    /* --- Boutons et cibles tactiles --- */
    .primary-btn, .secondary-btn { min-height: 44px; }
    .chip-group label, .chip, .studio-chip { min-height: 38px; }
    .page-title h1 { overflow-wrap: anywhere; }
    .page-title p { overflow-wrap: anywhere; }

    /* --- Studio : compteurs de compétences sans débordement --- */
    .studio-console { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .studio-console .skill-meter { min-width: 0; }
    .studio-console .skill-meter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
    .studio-console .quick-cash { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    /* --- Cartes et grilles qui débordaient --- */
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card, .stat-card { min-width: 0; }
    .v12-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #v12Banner { right: auto; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); }
    #v12Banner.on { transform: translate(-50%, 0); }

    /* tutoriel : la bulle reste au-dessus de la barre du bas */
    .tuto-bubble:not(.top) { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    #tuto.intro .tuto-bubble, #tuto.finale .tuto-bubble { bottom: auto; }
}

/* --- Fiche de création : le portrait entier (cheveux → menton) reste visible pour les 16 modèles --- */
.crea-card-img { aspect-ratio: 300 / 330; }
.crea-card-img > .rzav { top: 0 !important; }
.crea-card-img img { object-position: center top !important; }
@media (min-width: 980px) { .crea-card-img { aspect-ratio: 300 / 320; } }

/* --- Bilan : les disques reprennent les plaques de la Discographie (mêmes images, même logique certArt) --- */
.rzb-disc.rzb-disc-photo { background: none; border-radius: 10px; overflow: visible; box-shadow: none; width: clamp(84px, 13vw, 128px); aspect-ratio: 1; animation: none !important; filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)) drop-shadow(0 0 16px var(--glow)); }
.rzb-disc.rzb-disc-photo > svg { display: block; width: 100%; height: 100%; }
.rzb-cert.off .rzb-disc.rzb-disc-photo { filter: grayscale(.85) brightness(.55); box-shadow: none; }
@media (max-width: 640px) {
    .page-bilan .rzb-certs, .rzb-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0; padding: 6px 0 2px; scroll-snap-type: none; }
    .rzb-cert { flex: none; min-width: 0; padding: 26px 6px 12px; border-radius: 16px; }
    .rzb-cert.is-top { order: 0; padding-top: 26px; transform: none; }
    .rzb-cert.is-top::before { top: 8px; font-size: 8px; letter-spacing: .06em; }
    .rzb-disc.rzb-disc-photo { width: min(78px, 100%); }
    .rzb-cert b { margin-top: 8px; font-size: 30px; }
    .rzb-cert small { font-size: 10px; letter-spacing: .08em; }
    .page-bilan .rzb-sec-head h2 { white-space: normal; overflow-wrap: anywhere; }
    .page-bilan .rzb-chip { white-space: normal; text-align: left; line-height: 1.25; }
}

/* --- COLORS LIVE : la case radio garde sa taille, le nom du morceau prend la place --- */
.v12-track-pick input[type="radio"] { flex: 0 0 auto; width: 18px !important; height: 18px !important; min-width: 0; margin: 0; padding: 0; }
.v12-track-pick span { flex: 1 1 auto; min-width: 0; text-align: left; }
.v12-track-pick b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v12-opt input[type="radio"], .v12-opt input[type="checkbox"] { flex: 0 0 auto; width: 18px !important; height: 18px !important; margin: 0; padding: 0; }

/* =========================
   V13.5.2 — MENUS FIXES : l'en-tête et la navigation restent en place, le contenu défile dessous
========================= */
html, body { overscroll-behavior-y: none; }
html { overflow-x: hidden; }
.topbar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 80; }
.layout { padding-top: var(--rz-top, 70px); }
.rz-bilan-app .layout { padding-top: var(--rz-top, 70px); }
@media (min-width: 900px) {
    .sidebar { position: fixed !important; top: var(--rz-top, 70px) !important; left: 0; bottom: 0; height: auto !important; z-index: 60; overflow-y: auto; overscroll-behavior: contain; }
    .layout { padding-left: var(--nav-w); transition: padding-left .22s var(--ease, ease); }
    .studio-recap, .ig-side, .crea-sticky, .studio-side, .prep-side { top: calc(var(--rz-top, 70px) + 20px) !important; }
}
@media (max-width: 899px) {
    /* pas de flou sous les barres fixes : sur iPhone il fait clignoter / sauter les menus au défilement */
    .topbar, .sidebar, body.nav-open .sidebar, body.nav-compact .sidebar, .studio-bar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .topbar { background: #060607 !important; }
    .sidebar, body.nav-open .sidebar, body.nav-compact .sidebar { background: #08080a !important; transform: translateZ(0); overscroll-behavior-x: contain; }
    #toast { top: calc(var(--rz-top, 100px) + 8px) !important; }
}

/* ===== V14 « The Rise » : succès par rareté, compteur, boutique de bonus permanents (rise.js) ===== */
.rz-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; }
.rz-score div { display: grid; gap: 2px; padding: 12px 10px; border-radius: 14px; background: #111114; border: 1px solid rgba(255,200,87,.22); text-align: center; min-width: 0; }
.rz-score b { font: 900 clamp(18px, 5vw, 26px)/1 Inter, sans-serif; color: #fff; }
.rz-score span { font-size: 11px; font-weight: 700; color: #9a9aa2; text-transform: uppercase; letter-spacing: .06em; }
.v12-ach.r-c .v12-ach-pts small { color: #c7c7cd; }
.v12-ach.r-r .v12-ach-pts small { color: #7fb8ff; }
.v12-ach.r-e .v12-ach-pts small { color: #c58bff; }
.v12-ach.r-l .v12-ach-pts small, .v12-ach.r-x .v12-ach-pts small { color: var(--yellow, #ffc857); }
.v12-ach.ok.r-e { border-color: rgba(197,139,255,.45); }
.v12-ach.ok.r-l, .v12-ach.ok.r-x { border-color: rgba(255,200,87,.6); box-shadow: 0 0 18px rgba(255,200,87,.12); }
.v12-ach.r-x { background: linear-gradient(120deg, rgba(255,32,43,.12), #0f0f12 55%); }
.rz-blocked { color: #9a9aa2 !important; }
.rz-check { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 11px; color: #9a9aa2; }
.rz-check i { font-style: normal; } .rz-check i.ok { color: var(--yellow, #ffc857); }
.rz-shop { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)) !important; }
.rz-bonus.owned { background: linear-gradient(160deg, rgba(255,200,87,.1), #111114 60%); }
.rz-bonus .v12-item-price em { color: #c7c7cd; font-weight: 600; }
#v12Banner.rz-e { border-color: rgba(197,139,255,.6); }
#v12Banner.rz-l, #v12Banner.rz-x { border-color: var(--yellow, #ffc857); box-shadow: 0 10px 40px rgba(255,200,87,.25); }

/* ===== V14 : parrainage « Invite tes potes » (parrainage.js) ===== */
.rzr-code { display: grid; gap: 4px; justify-items: center; margin: 6px 0 12px; padding: 16px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,32,43,.16), #111114 70%); border: 1px dashed rgba(255,255,255,.22); }
.rzr-code span { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #9a9aa2; }
.rzr-code b { font: 900 clamp(24px, 7vw, 32px)/1.1 Inter, sans-serif; letter-spacing: .04em; color: #fff; user-select: all; }
.rzr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rzr-actions button { min-height: 46px; }
.rzr-count { margin: 0 0 8px; font-size: 13px; color: #c7c7cd; } .rzr-count b { color: var(--yellow, #ffc857); font-size: 15px; }
.rzr-tiers { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.rzr-tiers li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #0f0f12; border: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.rzr-tiers li b { flex: 0 0 64px; } .rzr-tiers li span { flex: 1; color: #c7c7cd; } .rzr-tiers li i { font-style: normal; color: var(--yellow, #ffc857); font-weight: 900; }
.rzr-tiers li.ok { border-color: rgba(255,200,87,.35); background: linear-gradient(90deg, rgba(255,200,87,.1), #111114 60%); }
.rzr-rule { font-size: 12px; }
.rzr-amb { display: inline-block; margin: 0 0 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,200,87,.14); color: var(--yellow, #ffc857); font-size: 12px; font-weight: 800; }

/* ===== V14 : événement UniRap (unirap.js) ===== */
.unirap-card { text-align: center; }
.unirap-kicker { margin: 0 0 10px; font: 800 11px/1.3 Inter, sans-serif; letter-spacing: .16em; color: #c7c7cd; }
.unirap-rarity { display: inline-block; margin-right: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(178,140,255,.18); color: #b28cff; letter-spacing: .1em; }
.unirap-logo { display: inline-block; margin: 4px 0 12px; padding: 10px 18px; border-radius: 14px; background: #fff; color: #050505; font: 900 26px/1 Inter, sans-serif; letter-spacing: -.02em; box-shadow: 0 0 40px rgba(178,140,255,.35); }
.unirap-logo b { color: var(--red, #ff202b); }
.unirap-text { color: #d6d6dc; }
.unirap-card .cev-list { text-align: left; }

/* ===== V14 : navigation verticale, monter en prestige (ascension.js) ===== */
.asc-edge { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: #0f0f12; }
.asc-edge > span { grid-row: span 2; font-size: 24px; }
.asc-edge b { font: 900 15px/1.1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.asc-edge small { color: #9a9aa2; font-size: 12px; }
.asc-top { border-color: rgba(255,200,87,.45); background: linear-gradient(180deg, rgba(255,200,87,.14), #0f0f12); }
.asc-top b { color: var(--yellow, #ffc857); }
.asc-bottom { margin-top: 0; }
.gig-current .gig-card { border-color: var(--yellow, #ffc857); box-shadow: 0 0 0 1px rgba(255,200,87,.4), 0 10px 30px rgba(255,200,87,.12); }
.gig-current .gig-card::before { content: "📍 Tu es ici"; display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255,200,87,.16); color: var(--yellow, #ffc857); font: 800 11px/1.3 Inter, sans-serif; letter-spacing: .04em; }
.gig-title small { white-space: normal; }
/* Studio : échelle de prestige (le plus prestigieux en haut) */
.opt-grid.opt-ladder { grid-template-columns: minmax(0, 1fr) !important; position: relative; padding-left: 20px; max-width: 560px; }
.opt-grid.opt-ladder::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--yellow, #ffc857), var(--red, #ff202b) 55%, #2a2a2f); }
.opt-ladder > .opt-card { position: relative; }
.opt-ladder > .opt-card::before { content: ""; position: absolute; left: -19px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #1d1d21; border: 2px solid #34343a; }
.opt-ladder > .opt-card:has(input:checked)::before { background: var(--red, #ff202b); border-color: #ff8a90; box-shadow: 0 0 10px rgba(255,32,43,.7); }
.opt-group:has(.opt-ladder) > legend::after { content: " · ↑ plus prestigieux en haut"; font-weight: 600; color: #9a9aa2; font-size: .85em; text-transform: none; letter-spacing: 0; }

/* V14 : apparition douce des fenêtres centrées */
@keyframes rzModalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-box { animation: none !important; } }

/* V15.20 — succès à paliers (bronze, argent, or), comptés sur toutes les carrières (rise.js) */
.rz-reward { margin: 0 0 14px; font-size: 13px; }
.rz-tiers { display: flex; gap: 2px; flex: 0 0 auto; font-style: normal; }
.rz-tiers i { font-style: normal; font-size: 16px; line-height: 1; filter: grayscale(1); opacity: .28; }
.rz-tiers i.on { filter: none; opacity: 1; }
.v12-ach.rz-t1 { border-color: rgba(205,127,50,.45); background: linear-gradient(90deg, rgba(205,127,50,.1), #111114 60%); }
.v12-ach.rz-t2 { border-color: rgba(200,210,225,.5); background: linear-gradient(90deg, rgba(200,210,225,.1), #111114 60%); }
.v12-ach.rz-t3 { border-color: rgba(255,200,87,.6); background: linear-gradient(90deg, rgba(255,200,87,.14), #111114 60%); box-shadow: 0 0 18px rgba(255,200,87,.1); }
.v12-ach-body em { font-style: normal; font-size: 11px; color: #9a9aa2; }
