/* Lecteur de showreel (pages showreels/<app>/), chargé seul pour rester léger quand il est intégré.
   Les mouvements (caméra, curseur, transitions) sont calculés par js/showreel.js : pas d'animation CSS ici. */
@font-face { font-family: 'Geist'; src: url(fonts/geist-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #0a0a0a; color: #ededed; font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
.sr { position: relative; box-sizing: border-box; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(10px, 3vw, 28px); outline: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.05), transparent 70%); }
.sr-win { position: relative; background: #0d0d0d; border: 1px solid #262626; border-radius: 14px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03) inset; transform-style: preserve-3d; will-change: transform; }
.sr-bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; background: #111; border-bottom: 1px solid #1f1f1f; }
.sr-dots { display: flex; gap: 6px; } .sr-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; }
.sr-url { flex: 1; display: flex; justify-content: center; font: 11.5px 'Geist Mono', monospace; color: #a1a1a1; background: #0a0a0a; border: 1px solid #1f1f1f; border-radius: 6px; height: 22px; align-items: center; }
.sr-stage { position: relative; aspect-ratio: 16 / 10; cursor: pointer; background: #0a0a0a; overflow: hidden; perspective: 1400px; }
.sr-shot { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; background: #0a0a0a; will-change: transform, opacity, filter; backface-visibility: hidden; }
.sr-cam { position: absolute; inset: 0; will-change: transform; }
.sr-cam img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* écran de téléphone : centré dans un cadre */
.sr-shot.is-mobile { background: radial-gradient(ellipse at 50% 60%, #121a1a, #0a0a0a 65%); }
.sr-shot.is-mobile .sr-cam { inset: 6% 0; margin: 0 auto; height: 88%; border: 1px solid #333; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 5px #151515, 0 30px 60px -20px #000; }
/* écran de tablette en paysage : centré dans un cadre */
.sr-shot.is-tablette { background: radial-gradient(ellipse at 50% 55%, #141818, #0a0a0a 70%); }
.sr-shot.is-tablette .sr-cam { inset: 7% 0; margin: 0 auto; height: 86%; border: 1px solid #333; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 9px #151515, 0 0 0 10px #2a2a2a, 0 40px 80px -25px #000; }
/* curseur simulé et onde de clic */
.sr-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 30px; height: 30px; margin: -3px 0 0 -5px; opacity: 0; pointer-events: none; transform-origin: 5px 3px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.sr-ripple { position: absolute; left: 0; top: 0; z-index: 5; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 24px rgba(255,255,255,.35), inset 0 0 18px rgba(255,255,255,.25); }
.sr-foot { display: flex; align-items: center; gap: 16px; min-height: 22px; }
.sr-cap { flex: 1; font: 13px 'Geist Mono', monospace; color: #c4c4c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-cap::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #F2B33D; vertical-align: 1px; }
.sr-cap.is-typing::after { content: ''; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; background: #ededed; vertical-align: -.2em; }
.sr-cap.is-empty::before { display: none; }
.sr-bars { display: flex; gap: 4px; width: min(40%, 260px); }
.sr-bars button { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.sr-bars button::before, .sr-bars i { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: #262626; }
.sr-bars i { right: auto; width: 0; background: #fff; }
.sr-bars button:focus-visible, .sr:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* cartons d'ouverture et de fin (vidéo) */
.sr-carte { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: #0a0a0a; visibility: hidden; text-align: center;
  background-image: radial-gradient(50% 45% at 50% 40%, rgba(255,255,255,.06), transparent 70%); }
.sr-carte::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, transparent, #F2B33D 50%, transparent); }
.sr-carte-in { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.sr-carte-logo { width: 120px; height: auto; }
.sr-carte-h { font-size: 88px; font-weight: 800; letter-spacing: -.045em; color: #fff; line-height: 1; }
.sr-carte.is-fin .sr-carte-h { font-size: 64px; }
.sr-carte-p { font: 26px 'Geist Mono', monospace; color: #8a8a8a; }
/* cadrage pour l'enregistrement vidéo 1920 x 1080 */
.sr-video .sr { padding: 64px 230px 40px; gap: 22px; }
.sr-video .sr-bar { height: 44px; } .sr-video .sr-url { font-size: 15px; height: 28px; }
.sr-video .sr-cap { font-size: 22px; } .sr-video .sr-cap::before { width: 10px; height: 10px; margin-right: 14px; }
.sr-video .sr-bars { width: 300px; }
.sr-video .sr-cursor { width: 38px; height: 38px; } .sr-video .sr-cursor svg { width: 38px; height: 38px; }
/* bouton « Quitter » de la visite en images */
.sr-quitter { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 50; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid #333; border-radius: 999px; background: rgba(10,10,10,.82); color: #ededed; font: 600 14px/1 system-ui, sans-serif; text-decoration: none; backdrop-filter: blur(8px); }
.sr-quitter:hover, .sr-quitter:focus-visible { border-color: #fff; color: #fff; }
.sr-quitter[hidden] { display: none; }
@media (max-width: 480px) { .sr-quitter span { display: none; } .sr-quitter { padding: 0; width: 44px; justify-content: center; } }
