/* RAPZODY V15.21 — SESSION STUDIO DE FEAT (session-feat.js) */
#sfStage {
    position: fixed; inset: 0; z-index: 9000; overflow-y: auto; overscroll-behavior: contain;
    display: grid; grid-template-rows: minmax(220px, 38vh) auto; color: #fff;
    background: radial-gradient(70% 60% at 50% 20%, #2a0b14 0%, #0a0609 60%, #050405 100%);
    opacity: 0; transition: opacity .3s ease; font-family: Inter, system-ui, sans-serif;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
#sfStage.on { opacity: 1; }

/* ---------- La pièce ---------- */
.sf-room { position: absolute; inset: 0 0 auto 0; height: minmax(220px, 38vh); height: 38vh; min-height: 220px; overflow: hidden; pointer-events: none; }
.sf-neon { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: min(70%, 420px); height: 6px; border-radius: 6px;
    background: #ff202b; box-shadow: 0 0 18px #ff202b, 0 0 60px rgba(255,32,43,.6); animation: sf-neon 4s ease-in-out infinite; }
@keyframes sf-neon { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .4; } 50% { opacity: 1; } 72% { opacity: .85; } }
.sf-window { position: absolute; left: 50%; top: 34px; transform: translateX(-50%); width: min(46%, 300px); height: 46%;
    border: 2px solid rgba(255,255,255,.12); border-radius: 10px; background: linear-gradient(180deg, rgba(120,170,255,.08), rgba(255,32,43,.06)); }
.sf-mic { position: absolute; left: 50%; bottom: 10px; width: 14px; height: 30px; margin-left: -7px; border-radius: 8px 8px 4px 4px; background: #c9c9cf; box-shadow: 0 0 12px rgba(255,255,255,.3); }
.sf-mic::after { content: ""; position: absolute; left: 6px; top: 30px; width: 2px; height: 26px; background: #777; }
.sf-console { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(92%, 640px); height: 34px; display: flex; gap: 5px; align-items: flex-end; justify-content: center;
    padding: 6px 14px; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #1b1b20, #0e0e11); border: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
.sf-console i { width: 8px; height: 30%; border-radius: 2px; background: linear-gradient(180deg, #ff202b, #ffc857 60%, #42e695); animation: sf-vu var(--d) ease-in-out infinite alternate; }
@keyframes sf-vu { from { height: 18%; } to { height: 92%; } }
.sf-smoke { position: absolute; inset: 0; }
.sf-smoke i { position: absolute; bottom: 20%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(220,230,220,.16), transparent 70%); filter: blur(6px); animation: sf-smoke 7s ease-in infinite; }
.sf-smoke i:nth-child(1) { left: 20%; } .sf-smoke i:nth-child(2) { left: 48%; animation-delay: 2.3s; } .sf-smoke i:nth-child(3) { left: 70%; animation-delay: 4.6s; }
@keyframes sf-smoke { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-160px) scale(1.6); opacity: 0; } }
.sf-props { position: absolute; right: 8%; bottom: 40px; font-size: 26px; filter: drop-shadow(0 0 8px rgba(255,200,87,.5)); animation: sf-pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes sf-pop { from { transform: scale(.2); opacity: 0; } }

/* ---------- Les deux artistes ---------- */
.sf-cast { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px; padding: 40px 16px 0; max-width: 720px; width: 100%; margin: 0 auto; }
.sf-cast figure { margin: 0; display: grid; justify-items: center; gap: 4px; }
.sf-cast img { max-height: 26vh; min-height: 140px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.7)); animation: sf-bob 3.2s ease-in-out infinite; }
.sf-them img { animation-delay: -1.6s; }
.sf-cast figcaption { font: 700 12px/1.2 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); text-align: center; }
.sf-initials { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: #1d1d22; font: 900 34px/1 Inter, sans-serif; color: #ffc857; }
@keyframes sf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.sf-bubble { position: absolute; right: 16px; top: 4px; max-width: min(62%, 360px); margin: 0; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
    background: #fff; color: #111; font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: sf-pop .35s ease-out; }
.sf-soft .sf-bubble { animation: none; }

/* ---------- Le menu ---------- */
.sf-panel { position: relative; z-index: 2; width: 100%; max-width: 720px; margin: 10px auto 0; padding: 16px 16px 20px; border-radius: 22px 22px 0 0;
    background: rgba(14,14,17,.96); border: 1px solid rgba(255,255,255,.08); border-bottom: 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5); }
.sf-head { display: grid; gap: 10px; margin-bottom: 12px; }
.sf-kicker { margin: 0; font: 800 11px/1.3 Inter, sans-serif; letter-spacing: .18em; color: #ff4650; }
.sf-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.sf-steps li { flex: 1; padding-top: 6px; border-top: 3px solid rgba(255,255,255,.12); font-size: 11px; color: rgba(255,255,255,.45); text-align: center; }
.sf-steps li.done { border-color: rgba(255,32,43,.6); color: rgba(255,255,255,.7); }
.sf-steps li.on { border-color: #ff202b; color: #fff; font-weight: 700; }
.sf-chem { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.7); }
.sf-chem-bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.sf-chem-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ff202b, #ffc857, #42e695); transition: width .4s ease; }
.sf-chem b { font: 900 16px/1 Inter, sans-serif; color: #ffc857; min-width: 28px; text-align: right; }
.sf-body h2 { margin: 0 0 10px; font: 700 clamp(22px, 5vw, 28px)/1.1 Oswald, Inter, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.sf-label { margin: 12px 0 6px; font: 700 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: #18181c; color: #e5e5ea; font: 600 14px/1 Inter, sans-serif; cursor: pointer; }
.sf-chip.on { background: #ff202b; border-color: #ff202b; color: #fff; box-shadow: 0 6px 18px rgba(255,32,43,.35); }
.sf-chip:focus-visible, .sf-order:focus-visible, .sf-dice:focus-visible { outline: 2px solid #ffc857; outline-offset: 2px; }
.sf-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sf-order { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: #141418; color: #fff; cursor: pointer; }
.sf-order.on { border-color: #ff202b; background: linear-gradient(160deg, rgba(255,32,43,.2), #141418 70%); box-shadow: 0 0 0 1px #ff202b inset; }
.sf-order-ico { font-size: 26px; line-height: 1; }
.sf-order b { font-size: 15px; }
.sf-order small { color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.35; }
.sf-order em { font-style: normal; font-size: 12px; font-weight: 700; color: #ffc857; }
.sf-title-row { display: flex; gap: 8px; }
.sf-title-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: #0d0d10; color: #fff; font: 600 16px/1 Inter, sans-serif; }
.sf-dice { flex: none; width: 46px; min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: #18181c; font-size: 20px; cursor: pointer; }
.sf-hint { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }
.sf-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sf-foot .primary-btn, .sf-foot .secondary-btn { flex: 1 1 0; min-width: 0; margin: 0; }
.sf-cost { flex-basis: 100%; font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- Enregistrement ---------- */
.sf-rec { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 10px 0 6px; }
.sf-rec .sf-kicker { animation: sf-blink 1s steps(2) infinite; }
@keyframes sf-blink { 50% { opacity: .35; } }
.sf-wave { display: flex; gap: 3px; align-items: center; height: 70px; }
.sf-wave i { width: 5px; height: 20%; border-radius: 3px; background: linear-gradient(180deg, #ffc857, #ff202b); animation: sf-vu var(--d) ease-in-out infinite alternate; }
.sf-take { margin: 0; font: 700 18px/1.3 Oswald, Inter, sans-serif; letter-spacing: .04em; }
.sf-recording .sf-cast img { animation-duration: .8s; }

/* ---------- Résultat ---------- */
.sf-res h2 { margin: 6px 0 4px; font: 700 clamp(22px, 5vw, 30px)/1.1 Oswald, Inter, sans-serif; overflow-wrap: anywhere; }
.sf-verdict { margin: 0 0 12px; color: rgba(255,255,255,.75); }
.sf-verdict b { color: #ffc857; }
.sf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sf-stats div { display: grid; gap: 2px; padding: 10px 6px; border-radius: 12px; background: #141418; border: 1px solid rgba(255,255,255,.08); text-align: center; }
.sf-stats b { font: 900 22px/1 Inter, sans-serif; }
.sf-stats span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sf-notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: rgba(255,255,255,.8); }

/* Boutons d'accès (rencontre, invitation, contacts) */
.sf-go { border-color: rgba(255,32,43,.6) !important; }

@media (max-width: 520px) {
    .sf-orders { grid-template-columns: 1fr 1fr; }
    .sf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-bubble { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .sf-neon, .sf-console i, .sf-smoke i, .sf-cast img, .sf-wave i, .sf-rec .sf-kicker, .sf-bubble, .sf-props { animation: none !important; }
}
