/* « Voir en action » : scènes animées (assets/showcase.js) */
.show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .show { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .show { grid-template-columns: 1fr; } }
.show .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.show .card .txt { padding: 6px 20px 20px; }
.show .card h3 { margin-top: 4px; }
.stage {
  position: relative; height: 270px; overflow: hidden; margin: 10px; border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 0%, #1d2442, #10131f 70%);
  font-size: 13px; color: var(--text); line-height: 1.35;
}
.stage * { transition-timing-function: cubic-bezier(.2, .7, .3, 1); }
.sc-ok {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px); white-space: nowrap;
  background: rgba(127, 224, 200, .14); color: var(--mint); border: 1px solid rgba(127, 224, 200, .35);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 12px; opacity: 0; transition: opacity .4s, transform .4s;
}
.sc-note { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--muted); font-size: 12px; transition: opacity .4s; }

/* 1. déguisement */
.sc-home { position: absolute; inset: 22px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; align-content: center; }
.sc-app { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sc-ic { width: 48px; height: 48px; border-radius: 14px; opacity: .5; position: relative; }
.sc-ic.ours { opacity: 1; box-shadow: 0 0 0 2px rgba(157, 184, 255, .5), 0 8px 24px rgba(157, 184, 255, .3); }
.sc-ic.ours img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; opacity: 0; }
.sc-ic.ours img.on { opacity: 1; }
.sc-ic.swap { animation: swap .36s; }
@keyframes swap { 50% { transform: scale(.7) rotate(-8deg); opacity: .3; } }
.sc-lab { font-size: 10px; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc-lab.ours { color: var(--text); font-weight: 600; }

/* 2. partage de secours */
.sc-secret {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; white-space: nowrap;
  background: var(--layer2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-weight: 600;
  transition: opacity .5s, transform .5s, box-shadow .5s;
}
.sc-secret small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; letter-spacing: .1em; }
.sc-part {
  position: absolute; left: 50%; top: 42%; width: 78px; margin-left: -39px; margin-top: -52px; text-align: center;
  background: var(--layer2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; font-size: 10px;
  opacity: 0; transform: scale(.4); transition: transform .7s, opacity .5s;
}
.sc-qr svg { width: 58px; height: 58px; display: block; margin: 0 auto 6px; border-radius: 4px; }
.sc-part em { display: none; color: #ff8a80; font-style: normal; font-weight: 700; }
.stage.s1 .sc-secret { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.stage.s1 .sc-part { opacity: 1; }
.stage.s1 .p1 { transform: translateX(-92px) rotate(-6deg); }
.stage.s1 .p2 { transform: translateY(-6px); }
.stage.s1 .p3 { transform: translateX(92px) rotate(6deg); }
.stage.s2 .p3 { opacity: .25; transform: translate(92px, 40px) rotate(14deg) scale(.85); }
.stage.s2 .p3 em { display: block; }
.stage.s3 .p1 { transform: translateX(-24px) rotate(-3deg) scale(.9); }
.stage.s3 .p2 { transform: translateX(24px) rotate(3deg) scale(.9); }
.stage.s4 .p1, .stage.s4 .p2 { opacity: 0; transform: scale(.5); }
.stage.s4 .sc-secret { opacity: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(127, 224, 200, .45); }
.stage.s4 .sc-ok { opacity: 1; transform: translate(-50%, 0); }

/* 3. photo nettoyée */
.sc-photo { position: absolute; left: 18px; top: 26px; width: 112px; height: 150px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #7aa7ff, #c4b1ff 60%, #ffc970); transition: box-shadow .5s; }
.sc-photo .sun { position: absolute; left: 66px; top: 26px; width: 26px; height: 26px; border-radius: 50%; background: #fff6d6; box-shadow: 0 0 20px #fff6d6; }
.sc-photo .hill { position: absolute; left: -20px; right: -20px; bottom: -40px; height: 90px; border-radius: 50%; background: #2d6b63; }
.sc-tag {
  position: absolute; left: 140px; font-size: 11px; background: rgba(255, 201, 112, .14); color: var(--amber);
  border: 1px solid rgba(255, 201, 112, .35); border-radius: 8px; padding: 5px 8px; white-space: nowrap;
  transition: transform .6s, opacity .6s;
}
.sc-tag.gone { opacity: 0; transform: translateX(60px) rotate(8deg); text-decoration: line-through; }
.sc-share { position: absolute; left: 18px; top: 190px; width: 112px; text-align: center; background: var(--peri); color: #0b1533; font-weight: 700; border-radius: 10px; padding: 7px 0; transition: transform .15s; }
.stage.press .sc-share { transform: scale(.92); }
.stage.done .sc-ok { opacity: 1; transform: translate(-50%, 0); }
.stage.done .sc-photo { box-shadow: 0 0 0 2px rgba(127, 224, 200, .55); }
.stage[data-scene="photo"] .sc-ok { left: auto; right: 14px; transform: translateY(12px); }
.stage[data-scene="photo"].done .sc-ok { transform: none; }

/* 4. recherche dans les scans */
.sc-search { margin: 18px 18px 12px; background: var(--layer2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; color: var(--muted); }
.sc-search span { color: var(--text); }
.sc-search .caret { display: inline-block; width: 1px; height: 14px; background: var(--peri); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sc-doc { margin: 0 18px 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); transition: opacity .5s, background .5s, transform .5s, box-shadow .5s; }
.sc-doc b { font-size: 9px; background: #4a2f3a; color: #ff9ec7; padding: 3px 5px; border-radius: 5px; }
.sc-snip { width: 100%; font-size: 11px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .5s; }
.sc-snip mark { background: rgba(255, 201, 112, .3); color: var(--amber); border-radius: 3px; padding: 0 2px; }
.stage[data-scene="search"] .sc-note { opacity: 0; bottom: 10px; }
.stage.filtered .sc-doc:not(.hit) { opacity: .22; }
.stage.filtered .sc-doc.hit { background: rgba(157, 184, 255, .12); box-shadow: inset 0 0 0 1px rgba(157, 184, 255, .4); transform: scale(1.02); }
.stage.filtered .sc-snip { max-height: 30px; }
.stage.filtered .sc-note { opacity: 1; color: var(--peri); }

/* 5. bilan des mots de passe */
.sc-score { display: flex; align-items: center; gap: 14px; margin: 22px 20px 16px; font-weight: 600; font-size: 15px; }
.sc-score .ring {
  --p: 48; --col: #ffc970; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--col) calc(var(--p) * 1%), #252b44 0); position: relative;
}
.sc-score .ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #141828; }
.sc-score .ring b { position: relative; font-size: 20px; color: var(--col); transition: color .4s; }
.sc-pw { display: flex; justify-content: space-between; align-items: center; margin: 0 20px 8px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); transition: background .5s; }
.sc-pw em { font-style: normal; font-size: 11px; font-weight: 600; color: #ff8a80; background: rgba(255, 138, 128, .12); padding: 3px 8px; border-radius: 999px; transition: color .4s, background .4s; }
.sc-pw.fixed { background: rgba(127, 224, 200, .06); }
.sc-pw.fixed em { color: var(--mint); background: rgba(127, 224, 200, .14); }

/* 6. phrase crypto */
.sc-words { position: relative; margin: 20px 16px 0; padding: 12px; border-radius: 12px; background: var(--layer2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11.5px; }
.sc-word { white-space: nowrap; }
.sc-word i { color: var(--muted); font-style: normal; }
.sc-finger { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 70%); opacity: 0; transform: scale(1.4); transition: opacity .3s, transform .3s; }
.stage.touch .sc-finger { opacity: 1; transform: scale(1); }
.stage.touch .sc-note { opacity: 0; }
.stage.touch.done .sc-ok { opacity: 1; transform: translate(-50%, 0); }

/* 7. face contre table */
.sc-flip { position: absolute; left: 50%; top: 30px; margin-left: -48px; perspective: 600px; }
.sc-mini { width: 96px; height: 170px; position: relative; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.4, .1, .2, 1); }
.sc-mini .face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 3px solid #2a3150; }
.sc-mini .front { background: linear-gradient(180deg, #0e1020, #141a33); display: grid; place-items: center; }
.sc-mini .front img { width: 54px; transition: filter .4s; }
.sc-mini .back { background: linear-gradient(160deg, #2a3150, #12162a); transform: rotateY(180deg); }
.stage.down .sc-mini { transform: translateY(46px) rotateX(78deg) rotateY(180deg); }
.sc-table { position: absolute; left: 30px; right: 30px; bottom: 54px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, transparent, #3a3048, transparent); }
.sc-lockmsg { position: absolute; left: 50%; top: 42px; transform: translate(-50%, 10px); color: var(--mint); font-weight: 700; opacity: 0; transition: opacity .4s, transform .4s; white-space: nowrap; }
.stage.locked .sc-lockmsg { opacity: 1; transform: translate(-50%, 0); }
.stage.locked .sc-mini .front img { filter: grayscale(1) brightness(.4); }

/* 8. fiche papier + rappel */
.sc-banner { position: absolute; left: 14px; right: 14px; top: 14px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 201, 112, .16); color: var(--amber); font-size: 12px; transform: translateY(-70px); transition: transform .6s; }
.stage.banner .sc-banner { transform: none; }
.sc-card { position: absolute; left: 22px; right: 22px; top: 66px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #20294a, #161b31); border: 1px solid var(--line); }
.sc-card-h { font-weight: 700; margin-bottom: 8px; }
.sc-field { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .05); transition: color .4s; }
.sc-field small { display: block; color: var(--muted); font-size: 10px; }
.stage.warn .sc-field.exp { color: var(--amber); }

/* 9. mémo vocal */
.sc-time { text-align: center; font-size: 30px; font-weight: 700; margin-top: 26px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.sc-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 54px; margin: 6px 0 10px; }
.sc-wave i { width: 4px; height: 6px; border-radius: 3px; background: var(--peri); opacity: .5; }
.stage.rec .sc-wave i { animation: wave .9s ease-in-out infinite alternate; opacity: 1; }
@keyframes wave { 0% { height: 6px; } 100% { height: 46px; } }
.sc-mic { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--peri); transition: background .3s, opacity .3s; }
.stage.rec .sc-mic { background: #ff6b6b; animation: pulse 1.2s ease-in-out infinite; }
.stage.rec .sc-time { color: var(--text); }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 107, 107, .15); } }
.sc-file { position: absolute; left: 20px; right: 20px; bottom: 54px; padding: 9px 12px; border-radius: 10px; background: var(--layer2); font-size: 12px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.sc-file b { color: var(--peri); margin-right: 6px; }
.sc-file small { float: right; color: var(--muted); }
.stage.done .sc-file { opacity: 1; transform: none; }
.stage[data-scene="voice"].done .sc-mic { opacity: .2; }
.stage[data-scene="voice"] .sc-note { opacity: 0; bottom: auto; top: 8px; }
.stage[data-scene="voice"].rec .sc-note { opacity: 1; color: #ff8a80; }
.stage[data-scene="voice"].done .sc-ok { opacity: 1; transform: translate(-50%, 0); }

/* images fixes si les animations sont désactivées */
.stage.still, .stage.still * { animation: none !important; transition: none !important; }

.also { font-size: 20px; margin: 40px 0 16px; }

/* ---------- « Choisis ton jeu » (assets/games.js) */
.picker { max-width: 760px; margin: 0 auto; padding: 0; overflow: hidden; }
.stage[data-picker] { height: 300px; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
@media (max-width: 620px) { .stage[data-picker] { height: auto; grid-template-columns: minmax(0, 1fr); padding: 14px 0; } .stage[data-picker] .pk-preview { height: 240px; } .pk-list { padding-right: 18px; } }
.pk-list { padding: 18px 0 18px 18px; }
.pk-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px 6px; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; color: var(--muted); transition: background .35s, color .35s; }
.pk-row img { width: 30px; height: 30px; border-radius: 9px; opacity: .6; transition: opacity .35s; }
.pk-row span { flex: 1; font-size: 14px; }
.pk-row i { font-style: normal; color: var(--mint); opacity: 0; transition: opacity .35s; }
.pk-row.on { background: rgba(157, 184, 255, .12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(157, 184, 255, .3); }
.pk-row.on img, .pk-row.on i { opacity: 1; }
.pk-preview { position: relative; height: 100%; display: grid; place-items: center; }
.gm-svg { width: 220px; height: 220px; overflow: visible; }
.gm-board { fill: #161b36; stroke: rgba(157, 184, 255, .35); stroke-width: .8; }
.gm-node, .gm-node circle, .gm-node rect { transition: opacity .35s, transform .35s, filter .3s, fill .25s; transform-box: fill-box; transform-origin: center; }
.gm-tile { fill: #2a3150; }
.gm-node.hit .gm-tile { fill: #b79cff; filter: drop-shadow(0 0 2.5px #b79cff); }
.gm-node.hit circle { filter: drop-shadow(0 0 2.5px #fff); }
.pk-preview[data-kind="bubble"] .gm-node.done circle { transform: scale(1.7); opacity: 0; }
.pk-preview[data-kind="snake"] .gm-node.hit { opacity: 0; transform: scale(.2); }
.pk-preview[data-kind="marble"] .gm-node.done circle, .pk-preview[data-kind="dot"] .gm-node.done circle { transform: scale(1.25); }
.pk-preview[data-kind="dot"] .gm-node.hit .ring { stroke-width: 2; }
.pk-preview[data-kind="tile"] .gm-node:not(.hit) { transition: opacity .6s, transform .6s; }
.pk-preview[data-kind="tile"] .gm-node.done ~ .gm-node:not(.hit) { opacity: .15; }
.gm-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; transition: opacity .6s; }
.gm-line.fade { opacity: .25; }
.gm-finger { fill: rgba(255, 255, 255, .22); stroke: rgba(255, 255, 255, .6); stroke-width: .8; opacity: 0; transition: opacity .25s; }
.gm-finger.on { opacity: 1; }
.gm-toast {
  position: absolute; left: 50%; top: 12px; transform: translate(-50%, -10px); white-space: nowrap;
  background: rgba(16, 40, 40, .92); color: var(--mint); border: 1px solid rgba(127, 224, 200, .35);
  border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 12px; opacity: 0; transition: opacity .4s, transform .4s;
}
.gm-toast.on { opacity: 1; transform: translate(-50%, 0); }
