/* LeUpCam : feuille de style (thème nuit : cyan / bleu nuit). Accueil public, authentification et studio. */
:root {
  --bg: #060b1a; --bg2: #0b1226; --panel: #101a38; --panel2: #16224a; --line: rgba(255,255,255,.09);
  --text: #eaf2ff; --muted: #93a3c8; --cyan: #00e5ff; --blue: #0a84ff; --accent: linear-gradient(135deg, #00e5ff, #0a84ff);
  --bad: #ff5a64; --ok: #2ee6a6; --warn: #ffc857; --radius: 16px; --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Logo officiel : le fichier fourni a un fond noir qui se fond dans le thème (mode « écran »), sans toucher à l'image. */
.lc-logo { display: block; mix-blend-mode: screen; height: auto; }
.lc-logo-sm { width: 150px; }
.lc-logo-top { width: 132px; }
.lc-logo-hero { width: min(420px, 82vw); margin: 0 auto; }

/* ---------- Boutons ---------- */
.lc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); text-decoration: none; color: var(--text); font-weight: 600; }
.lc-btn.primary, .lc-primary { background: var(--accent); color: #031018; border-color: transparent; }
.lc-btn.ghost, .lc-ghost { background: transparent; }
.lc-btn.danger { background: rgba(255,90,100,.15); border-color: rgba(255,90,100,.5); color: #ffb3b8; }
.lc-btn.small { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.lc-btn.block, .lc-block { display: flex; width: 100%; }
.lc-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 12px; color: inherit; padding: 0; position: relative; }
.lc-iconbtn.on { color: var(--cyan); }
.lc-i { display: inline-grid; place-items: center; }
.lc-i svg { width: 22px; height: 22px; }
.lc-muted { color: var(--muted); }
.lc-link { background: none; border: 0; color: var(--cyan); text-decoration: underline; padding: 4px 0; text-align: left; }
.lc-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255,200,87,.18); color: var(--warn); font-size: 13px; font-weight: 700; }

/* ---------- Pages publiques ---------- */
.lc-site { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 50% -10%, #12306b 0%, var(--bg) 60%); }
.lc-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap; max-width: 1100px; width: 100%; margin: 0 auto; }
.lc-brand { display: block; }
.lc-top-actions { margin-left: auto; }
.lc-langs { display: flex; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.lc-langs a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.lc-langs a[aria-current] { color: var(--cyan); font-weight: 700; }
.lc-site main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; }
.lc-hero { text-align: center; padding: 28px 0 8px; }
.lc-hero h1 { font-size: clamp(26px, 5vw, 42px); margin-top: 8px; }
.lc-lead { color: #cfe0ff; max-width: 680px; margin: 8px auto 16px; font-size: 18px; }
.lc-res { list-style: none; display: flex; justify-content: center; gap: 10px; padding: 0; margin: 0 0 8px; flex-wrap: wrap; }
.lc-res li { padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(0,229,255,.5); color: var(--cyan); font-weight: 700; }
.lc-note { color: var(--muted); font-size: 13px; max-width: 640px; margin: 6px auto; }
.lc-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.lc-section { margin: 36px 0 0; }
.lc-section h2 { font-size: 24px; }
.lc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.lc-card h3 { font-size: 18px; margin: 10px 0 4px; }
.lc-card p { margin: 0; color: var(--muted); font-size: 15px; }
.lc-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #031018; }
.lc-pro { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.04); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; opacity: .8; }
.lc-pro h3 { margin: 0 0 4px; }
.lc-pro p { margin: 0; color: var(--muted); }
.lc-lock { width: 44px; height: 44px; border-radius: 50%; background: #1b2447; display: grid; place-items: center; flex: none; }
.lc-lock::after { content: ""; width: 18px; height: 18px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 11h12v9H6zM8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 11h12v9H6zM8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.lc-pro-big { flex-direction: column; text-align: center; }
.lc-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lc-plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lc-plan-hi { border-color: rgba(0,229,255,.6); box-shadow: 0 0 0 1px rgba(0,229,255,.2), 0 10px 40px rgba(10,132,255,.2); }
.lc-price { font-size: 28px; font-weight: 800; margin: 4px 0 10px; }
.lc-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.lc-plan ul { padding-left: 18px; margin: 0 0 8px; color: #cfe0ff; }
.lc-install p { color: var(--muted); max-width: 720px; }
.lc-foot { border-top: 1px solid var(--line); padding: 18px 16px 28px; text-align: center; color: var(--muted); font-size: 14px; }
.lc-foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.lc-foot a { color: #cfe0ff; }
.lc-narrow { max-width: 520px !important; }
.lc-legal { max-width: 760px !important; }
.lc-legal p { color: #cfe0ff; }
.lc-auth { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.lc-auth label, .lc-form label { display: block; margin: 12px 0 4px; font-size: 14px; color: #cfe0ff; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { width: 100%; max-width: 100%; background: #0a1230; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; min-height: 44px; }
.lc-auth .lc-btn, .lc-auth button.lc-btn { margin-top: 16px; }
.lc-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lc-row2 > div { min-width: 0; }
.lc-auth, .lc-auth form { max-width: 100%; }
.lc-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.lc-check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; margin-top: 12px !important; }
.lc-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--cyan); }
.lc-alert { background: rgba(255,90,100,.14); border: 1px solid rgba(255,90,100,.45); color: #ffc2c6; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }

/* ====================================================================
   STUDIO
   ==================================================================== */
body.lc-studio { height: 100dvh; overflow: hidden; background: var(--bg); overscroll-behavior: none; }
.lc-app { height: 100dvh; display: flex; flex-direction: column; max-width: 980px; margin: 0 auto; position: relative; background: linear-gradient(180deg, #050816 0%, #070d22 100%); }
.lc-boot { margin: auto; text-align: center; color: var(--muted); }
.lc-view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.lc-view-camera, .lc-view-editor { overflow: hidden; display: flex; flex-direction: column; }
.lc-nav { flex: none; display: flex; justify-content: space-around; align-items: flex-end; min-height: var(--nav-h); padding: 4px 6px calc(4px + var(--safe-b)); background: rgba(8,12,28,.96); border-top: 1px solid var(--line); }
body[data-screen=editor] .lc-nav, body[data-rec] .lc-nav { display: none; }
.lc-nav-item, .lc-nav-cam { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; min-height: 48px; font-size: 12px; color: var(--muted); padding: 4px 6px; }
.lc-nav-item.on, .lc-nav-cam.on { color: var(--cyan); }
.lc-nav-cam { color: #fff; }
.lc-nav-cam .lc-i { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--accent); color: #031018; box-shadow: 0 6px 22px rgba(10,132,255,.5); border: 4px solid #070d22; }
.lc-nav-cam span:last-child { margin-top: -2px; }
.lc-toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 12px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; padding: 0 12px; }
.lc-toast { background: #1b2a57; color: #fff; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.5); max-width: 520px; font-size: 14px; animation: lc-in .2s ease-out; }
.lc-toast.ok { border-color: rgba(46,230,166,.6); } .lc-toast.bad { border-color: rgba(255,90,100,.7); } .lc-toast.warn { border-color: rgba(255,200,87,.7); }
.lc-toast.out { opacity: 0; transition: opacity .2s; }
@keyframes lc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fenêtres modales */
.lc-modal-back { position: fixed; inset: 0; background: rgba(2,5,15,.72); display: grid; place-items: center; z-index: 150; padding: 14px; animation: lc-fade .2s; }
.lc-modal-back.out { opacity: 0; transition: opacity .2s; }
@keyframes lc-fade { from { opacity: 0; } to { opacity: 1; } }
.lc-modal { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; width: min(520px, 100%); max-height: 90dvh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lc-modal h2 { font-size: 20px; }
.lc-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }

/* Panneaux, listes, pages */
.lc-page { padding: 6px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.lc-page-head { padding: 12px 16px; }
.lc-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.lc-panel h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.lc-panel p { margin: 6px 0; }
.lc-links { display: flex; gap: 16px; flex-wrap: wrap; }
.lc-version { text-align: center; font-size: 12px; }
.lc-banner { display: flex; gap: 8px; align-items: center; margin: 12px 16px; padding: 10px 12px; background: rgba(255,200,87,.1); border: 1px solid rgba(255,200,87,.4); border-radius: 12px; color: #ffe2a0; font-size: 14px; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.lc-chips button, .lc-chip-link { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #0d1738; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lc-chips button.on, .lc-chip-link.on { background: rgba(0,229,255,.16); border-color: var(--cyan); color: var(--cyan); }
.lc-chip { background: #151f45; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.lc-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lc-seg button { background: #0d1738; border: 0; padding: 8px 12px; min-height: 40px; }
.lc-seg button.on { background: rgba(0,229,255,.2); color: var(--cyan); }
.lc-set { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.lc-set.lc-check { grid-template-columns: 24px 1fr; }
.lc-set output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.lc-set input[type=range] { width: 100%; accent-color: var(--cyan); min-height: 32px; }
.lc-set input[type=color] { width: 56px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.lc-set select { grid-column: span 2; }
.lc-extlist { list-style: none; padding: 0; margin: 8px 0; }
.lc-extlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lc-extlist li span:nth-child(2) { flex: 1; }
.lc-extlist li small { color: var(--muted); }
.lc-extlist li.on .lc-i { color: var(--ok); } .lc-extlist li.off .lc-i { color: var(--warn); }
.lc-faq { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.lc-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.lc-faq p { color: #cfe0ff; }
.lc-tabs { display: flex; gap: 4px; background: #0a1230; border-radius: 999px; padding: 4px; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); }
.lc-tabs button { background: none; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 999px; min-height: 40px; white-space: nowrap; }
.lc-tabs button.on { background: var(--accent); color: #031018; font-weight: 700; }
.lc-tabs.small button { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.lc-result { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lc-result-media { max-width: 100%; max-height: 52dvh; border-radius: 12px; background: #000; }
.lc-progress { height: 10px; background: #0a1230; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.lc-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.lc-listrow { display: block; width: 100%; text-align: left; background: #0d1738; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 4px 0; min-height: 44px; }

/* Accueil du studio */
.lc-home-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 0; }
.lc-page-title { font-size: 18px; }
.lc-badge-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; }
.lc-home-brand { text-align: center; padding: 4px 16px 12px; }
.lc-tagline { margin: 4px 0 0; font-size: 18px; color: #dbe7ff; }
.lc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 18px; }
.lc-card-btn { text-align: left; background: linear-gradient(180deg, #0f1a3c, #0b1330); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 108px; }
.lc-card-btn b { font-size: 16px; }
.lc-card-btn small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.lc-card-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #14214b; margin-bottom: 4px; }
.lc-card-btn.main { grid-row: span 2; background: linear-gradient(160deg, #1646c9, #0e2a7a); border: 2px solid #3aa0ff; align-items: center; text-align: center; justify-content: center; }
.lc-card-btn.main .lc-card-ico { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #3a7bff, #7a4dff); }
.lc-card-btn.main .lc-i svg { width: 34px; height: 34px; }
.lc-card-btn.main b { font-size: 20px; } .lc-card-btn.main small { color: #cfe0ff; font-size: 14px; }
.lc-card-btn.pro { background: #14192b; opacity: .85; cursor: not-allowed; }
.lc-card-btn.pro b { color: #8e99b8; font-size: 18px; } .lc-card-btn.pro .lc-card-ico { background: #232b44; color: #8e99b8; }
.lc-card-btn.pro small.soon { display: flex; align-items: center; gap: 4px; color: #8e99b8; font-size: 14px; }
.lc-card-btn.pro ul { margin: 4px 0 0; padding-left: 16px; color: #66708f; font-size: 13px; }
.lc-card-btn.edit .lc-card-ico { color: #2ee6a6; } .lc-card-btn.prompter .lc-card-ico { color: #8b7bff; } .lc-card-btn.gallery .lc-card-ico { color: #ff7a4d; }
.lc-card-btn.music .lc-card-ico { color: #ff4d9a; } .lc-card-btn.text .lc-card-ico { color: #3aa0ff; } .lc-card-btn.fx .lc-card-ico { color: #ffc857; }
.lc-card-btn.export .lc-card-ico { color: #3aa0ff; } .lc-card-btn.help .lc-card-ico { color: #93a3c8; }
@media (min-width: 720px) { .lc-cards { grid-template-columns: repeat(3, 1fr); } .lc-card-btn.main { grid-row: auto; } }

/* Galerie, projets */
.lc-gal-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 8px; flex-wrap: wrap; }
.lc-gal-info { padding: 4px 16px; font-size: 13px; }
.lc-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 8px 16px 16px; }
.lc-gal-item { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: #0d1738; overflow: hidden; padding: 0; display: grid; place-items: center; }
.lc-gal-item img { width: 100%; height: 100%; object-fit: cover; }
.lc-gal-dur { position: absolute; right: 6px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); padding: 1px 6px; border-radius: 6px; }
.lc-gal-empty, .lc-pj-empty { grid-column: 1 / -1; text-align: center; padding: 24px; }
.lc-pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 4px 16px 16px; }
.lc-pj { position: relative; }
.lc-pj-open { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; width: 100%; }
.lc-pj-thumb { position: relative; aspect-ratio: 16/9; background: #0a1230; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.lc-pj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-pj-dur { position: absolute; right: 6px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); padding: 1px 6px; border-radius: 6px; }
.lc-pj-del { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; background: rgba(0,0,0,.55); }
.lc-pj-new { display: grid; place-items: center; gap: 6px; aspect-ratio: 16/11; background: transparent; border: 2px dashed rgba(0,229,255,.5); border-radius: 14px; color: var(--cyan); }
.lc-pj-new span:last-child { font-weight: 700; }
.lc-notifs { display: flex; flex-direction: column; gap: 8px; }
.lc-notif { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.lc-notif.unread { border-color: var(--cyan); }
.lc-notif p { margin: 4px 0; color: #cfe0ff; }
.lc-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 50dvh; overflow: auto; }
.lc-pick { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #0d1738; display: grid; place-items: center; }
.lc-pick img { width: 100%; height: 100%; object-fit: cover; }
.lc-pick.on { border-color: var(--cyan); }
.lc-pick span { position: absolute; right: 4px; bottom: 2px; font-size: 11px; background: rgba(0,0,0,.6); padding: 0 5px; border-radius: 6px; }

/* ====================================================================
   CAMÉRA ULTRA
   ==================================================================== */
.lc-cam-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; flex: none; }
.lc-cam-top .lc-i svg, .lc-side .lc-i svg { width: 20px; height: 20px; }
.lc-cam-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.lc-cam-frame { position: relative; background: #000; overflow: hidden; }
.lc-cam-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.lc-cam-video.mirror { transform: scaleX(-1); }
.lc-resbar { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 6; background: rgba(20,24,34,.72); backdrop-filter: blur(6px); border-radius: 16px; padding: 8px; text-align: center; transition: opacity .2s, transform .2s; }
.lc-res-title { font-size: 13px; color: #dbe7ff; margin-bottom: 6px; }
.lc-res-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lc-res { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 12px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; min-height: 44px; }
.lc-res b { font-size: 15px; } .lc-res small { font-size: 11px; color: var(--muted); }
.lc-res.on { background: #1f7bff; border-color: #6fb0ff; } .lc-res.on small { color: #e4f0ff; }
.lc-res.off { opacity: .4; }
.lc-res-photo { font-size: 14px; color: #fff; padding: 4px; }
.lc-hud { position: absolute; left: 8px; bottom: 6px; font-size: 11px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 8px; z-index: 4; pointer-events: none; }
.lc-side { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 2px; background: rgba(20,24,34,.6); border-radius: 16px; padding: 6px 2px; transition: opacity .2s; }
.lc-sidebtn { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 0; width: 56px; min-height: 52px; padding: 4px 2px; font-size: 11px; color: #fff; }
.lc-sidebtn.on { color: var(--cyan); }
.lc-zoombar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; display: flex; gap: 2px; align-items: center; background: rgba(20,24,34,.62); border-radius: 999px; padding: 4px 8px; max-width: calc(100% - 16px); }
.lc-zoombar button { background: none; border: 0; min-width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 14px; }
.lc-zoombar button.on { background: rgba(255,255,255,.2); font-weight: 700; }
.lc-zoombar input { width: 90px; accent-color: var(--cyan); }
.lc-expo { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(20,24,34,.6); border-radius: 16px; padding: 8px 4px; }
.lc-expo input { writing-mode: vertical-lr; direction: rtl; height: 110px; width: 32px; accent-color: var(--cyan); }
.lc-gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 3; background-image: linear-gradient(to right, transparent 33.2%, rgba(255,255,255,.45) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.45) 66.6%, transparent 66.9%), linear-gradient(to bottom, transparent 33.2%, rgba(255,255,255,.45) 33.3%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.45) 66.6%, transparent 66.9%); }
.lc-focusring { position: absolute; width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 2px solid var(--warn); border-radius: 12px; z-index: 7; pointer-events: none; }
.lc-focusring.go { animation: lc-focus .6s ease-out; }
@keyframes lc-focus { from { transform: scale(1.5); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.lc-bigcount { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 800; z-index: 8; pointer-events: none; text-shadow: 0 4px 24px rgba(0,0,0,.7); }
.lc-bigcount.pop { animation: lc-pop .25s ease-out; }
@keyframes lc-pop { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lc-rec-badge { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 9; background: rgba(0,0,0,.6); padding: 4px 12px; border-radius: 999px; font-size: 14px; color: #ff6b73; font-variant-numeric: tabular-nums; }
.lc-rec-badge.paused { color: var(--warn); }
.lc-cam-frame.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: lc-flash .18s ease-out forwards; z-index: 9; }
@keyframes lc-flash { from { opacity: .9; } to { opacity: 0; } }
.lc-cam-msg { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(5,8,22,.92); }
.lc-cam-err { text-align: center; max-width: 380px; }
.lc-cam-err .lc-i svg { width: 40px; height: 40px; color: var(--warn); }
.lc-cam-err-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lc-view-camera .lc-tabs { margin: 8px auto; flex: none; transition: opacity .2s; }
.lc-cam-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 18px 30px; flex: none; }
.lc-lastthumb { width: 54px; height: 54px; border-radius: 10px; border: 2px solid rgba(255,255,255,.7); background: #0d1738; overflow: hidden; padding: 0; display: grid; place-items: center; justify-self: start; }
.lc-lastthumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-shutter-wrap { display: flex; align-items: center; gap: 10px; }
.lc-shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 4px; display: grid; place-items: center; transition: transform .15s; }
.lc-shutter.small { width: 64px; height: 64px; }
.lc-shutter-in { width: 100%; height: 100%; border-radius: 50%; background: #ff2d3b; transition: border-radius .2s, transform .2s; display: block; }
.lc-shutter.photo .lc-shutter-in { background: #fff; }
.lc-shutter.on .lc-shutter-in { border-radius: 14px; transform: scale(.55); }
.lc-shutter.busy { opacity: .6; }
.lc-importbtn { justify-self: end; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: #dbe7ff; min-width: 64px; min-height: 48px; }
.lc-cam-top, .lc-side, .lc-resbar, .lc-view-camera .lc-tabs, .lc-importbtn, .lc-lastthumb, .lc-zoombar, .lc-expo { transition: opacity .2s, transform .2s; }
.lc-view-camera.recording .lc-resbar, .lc-view-camera.recording .lc-side, .lc-view-camera.recording .lc-tabs, .lc-view-camera.recording .lc-importbtn, .lc-view-camera.recording .lc-lastthumb, .lc-view-camera.recording .lc-cam-top, .lc-view-camera.recording .lc-expo { opacity: 0; pointer-events: none; }
.lc-view-camera.recording .lc-zoombar { opacity: .9; }
.lc-view-camera[data-mode=prompter] .lc-importbtn:not([hidden]) { display: none; }

/* Téléprompteur (surcouche sur l'aperçu uniquement) */
.lc-pr { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; pointer-events: none; }
.lc-pr-view { position: relative; overflow: hidden; background: rgba(0,0,0,var(--pr-op, .55)); color: #fff; pointer-events: auto; touch-action: none; margin: 0; flex: 0 0 38%; }
.lc-pr[data-pos=top] .lc-pr-view { margin-top: 56px; }
.lc-pr[data-pos=mid] .lc-pr-view { margin-top: auto; margin-bottom: auto; }
.lc-pr[data-pos=bottom] .lc-pr-view { margin-top: auto; margin-bottom: 70px; }
.lc-pr-text { padding: 40% 6% 40%; font-size: var(--pr-size, 44px); line-height: 1.35; font-weight: 700; text-align: center; white-space: pre-wrap; will-change: transform; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.lc-pr-text.placeholder { opacity: .6; font-weight: 500; }
.lc-pr-view::before { content: ""; position: absolute; left: 0; right: 0; top: 38%; height: 24%; border-top: 1px solid rgba(0,229,255,.55); border-bottom: 1px solid rgba(0,229,255,.55); pointer-events: none; z-index: 2; }
.lc-pr-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; font-weight: 800; pointer-events: none; text-shadow: 0 4px 24px rgba(0,0,0,.8); }
.lc-pr-count.pop { animation: lc-pop .25s ease-out; }
.lc-pr-bar { position: absolute; left: 8px; right: 8px; bottom: 4px; display: flex; justify-content: center; gap: 4px; pointer-events: auto; background: rgba(15,20,40,.7); border-radius: 999px; padding: 2px 6px; width: fit-content; margin: 0 auto; }
.lc-pr-panel { position: absolute; left: 8px; right: 8px; bottom: 54px; max-height: 60%; overflow: auto; background: rgba(12,18,40,.95); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; pointer-events: auto; }
.lc-pr-set { display: grid; grid-template-columns: 90px 1fr 54px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.lc-pr-editor textarea { min-height: 160px; }
.lc-pr-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.lc-pr-pick { flex: 1; text-align: left; background: none; border: 0; padding: 10px 4px; display: flex; flex-direction: column; min-height: 48px; }
.lc-pr-list { max-height: 50dvh; overflow: auto; }

/* Retouche photo */
.lc-retouch { position: fixed; inset: 0; z-index: 140; background: #040713; display: flex; flex-direction: column; }
.lc-retouch-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.lc-retouch-stage { flex: 1; min-height: 120px; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.lc-retouch-canvas { max-width: 100%; max-height: 100%; background: #111; border-radius: 6px; }
.lc-retouch-panel { max-height: 42dvh; overflow: auto; padding: 8px 14px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: #0a1028; }
.lc-retouch-panel h4 { margin: 10px 0 2px; font-size: 14px; color: var(--muted); }

/* ====================================================================
   ÉDITEUR
   ==================================================================== */
.lc-ed { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(120px, 1fr) auto auto auto auto; background: #0f0f10; color: #fff; }
.lc-ed > * { min-width: 0; }
.lc-ed-top { display: flex; align-items: center; gap: 6px; padding: 4px 8px; min-height: 52px; }
.lc-ed-name { flex: 1; min-width: 0; background: none; border: 0; text-align: left; display: flex; flex-direction: column; padding: 2px 4px; }
.lc-ed-name-t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lc-ed-saved { color: var(--muted); font-size: 11px; }
.lc-export-btn { min-height: 36px; padding: 4px 16px; background: var(--cyan); color: #00141a; }
.lc-ed-preview { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.lc-ed-stage { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lc-ed-canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #000; display: block; }
.lc-ed.has-sel .lc-ed-canvas { outline: 2px solid #1fb6d6; }
.lc-ed-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 16px; background: rgba(0,0,0,.6); }
.lc-ed-empty .lc-i svg { width: 40px; height: 40px; color: var(--muted); }
.lc-ed-empty p { margin: 0; color: #dbe7ff; }
.lc-ed-preview.fs { position: fixed; inset: 0; z-index: 120; }
.lc-fs-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px calc(8px + var(--safe-b)); background: linear-gradient(transparent, rgba(0,0,0,.75)); z-index: 5; }
.lc-fs-bar input { flex: 1; accent-color: var(--cyan); }
.lc-fs-time { font-size: 13px; font-variant-numeric: tabular-nums; }
.lc-selbox { position: absolute; border: 2px solid #19c3e6; pointer-events: auto; touch-action: none; cursor: move; z-index: 4; }
.lc-selbox .h { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #19c3e6; touch-action: none; }
.lc-selbox .h-sc { right: -12px; bottom: -12px; cursor: nwse-resize; }
.lc-selbox .h-rot { left: 50%; top: -34px; margin-left: -11px; cursor: grab; }
.lc-selbox .h-rot::after { content: ""; position: absolute; left: 50%; top: 22px; width: 2px; height: 10px; background: #19c3e6; transform: translateX(-50%); }

/* Barre de commandes permanente : Agrandir | Lecture / Pause | Image clé, Annuler, Rétablir (hauteur minimale, icônes 20-24 px, zones tactiles 44 px) */
.lc-ed-ctl { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 6px; background: #111113; }
.lc-ctl-left, .lc-ctl-right { flex: 1; display: flex; align-items: center; }
.lc-ctl-right { justify-content: flex-end; }
.lc-ctl-center { display: flex; align-items: center; justify-content: center; }
.lc-ed-ctl .lc-iconbtn { width: 44px; height: 44px; }
.lc-ed-ctl .lc-i svg { width: 22px; height: 22px; }
.lc-ed-ctl .lc-c-play .lc-i svg { width: 24px; height: 24px; }
.lc-c-kf.on { color: #00e5ff; } .lc-c-kf.on svg path { fill: #00e5ff; }

/* Timeline : curseur central fixe, défilement horizontal */
.lc-tl-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; height: 28px; font-size: 12px; color: var(--muted); background: #111113; }
.lc-tl-time b { color: #fff; }
.lc-tl-zoom { display: flex; }
.lc-tl-zoom .lc-iconbtn.small { width: 32px; height: 28px; } .lc-tl-zoom .lc-i svg { width: 18px; height: 18px; }
.lc-tl { position: relative; height: clamp(150px, 26dvh, 240px); background: #151517; overflow: hidden; border-top: 1px solid #222; }
.lc-tl-scroll { position: absolute; inset: 0; overflow-x: auto; overflow-y: auto; scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.lc-tl-scroll::-webkit-scrollbar { display: none; }
.lc-tl-inner { position: relative; min-height: 100%; padding-bottom: 14px; }
.lc-ruler { position: relative; height: 24px; border-bottom: 1px solid #222; }
.lc-ruler .tick { position: absolute; top: 4px; font-size: 11px; color: #9aa3b8; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-ruler .dot { position: absolute; top: 11px; width: 3px; height: 3px; border-radius: 50%; background: #666; margin-left: -1px; }
.lc-tl-body { position: relative; padding-top: 8px; }
.lc-row { position: relative; margin-bottom: 6px; }
.lc-row-add { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #262629; border: 0; border-radius: 8px; color: #b6bdd0; white-space: nowrap; font-size: 13px; }
.lc-addclip { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 8px; border: 0; background: #fff; color: #111; display: grid; place-items: center; z-index: 3; }
.lc-clip { position: absolute; top: 0; height: 100%; border-radius: 7px; background: #26335f; border: 2px solid transparent; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.lc-clip.sel { border-color: #fff; touch-action: none; z-index: 2; cursor: grab; }
.lc-clip.dragging { opacity: .85; z-index: 5; }
.lc-clip .thumbs { display: flex; height: 100%; overflow: hidden; border-radius: 5px; pointer-events: none; }
.lc-clip .thumbs img { height: 100%; object-fit: cover; flex: none; -webkit-user-drag: none; }
.lc-clip .thumbs .lc-i { margin: auto; }
.lc-clip.t-audio { background: #0f5e63; } .lc-clip.t-text { background: #5b3aa8; } .lc-clip.t-sub { background: #7a3f78; } .lc-clip.t-image { background: #3a4f8f; }
.lc-clip.muted { opacity: .65; }
.lc-clip .lab { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.lc-clip .wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lc-clip.sel .lab { left: 56px; }
.lc-clip .dur { position: absolute; left: 8px; top: 3px; background: rgba(0,0,0,.65); font-size: 11px; padding: 0 6px; border-radius: 4px; pointer-events: none; }
.lc-clip .spd { position: absolute; right: 6px; bottom: 2px; background: rgba(0,0,0,.65); font-size: 10px; padding: 0 5px; border-radius: 4px; pointer-events: none; }
.lc-clip .trans { position: absolute; left: -12px; top: 50%; margin-top: -11px; width: 22px; height: 22px; background: #fff; color: #111; border-radius: 50%; display: grid; place-items: center; z-index: 3; pointer-events: none; }
.lc-clip .trans .lc-i svg { width: 14px; height: 14px; }
.lc-clip .kf { position: absolute; bottom: 2px; width: 9px; height: 9px; background: #ffd400; transform: translateX(-50%) rotate(45deg); border: 1px solid #000; pointer-events: none; }
.lc-clip .grip { position: absolute; top: -2px; bottom: -2px; width: 16px; background: #fff; border-radius: 6px; z-index: 4; touch-action: none; cursor: ew-resize; }
.lc-clip .grip::after { content: ""; position: absolute; left: 50%; top: 30%; bottom: 30%; width: 2px; margin-left: -1px; background: #777; }
.lc-clip .grip-l { left: -10px; } .lc-clip .grip-r { right: -10px; }
.lc-playhead { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; z-index: 6; pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.7); }
.lc-tl-heads { position: absolute; left: 0; top: 32px; z-index: 7; pointer-events: none; display: flex; flex-direction: column; }
.lc-head { margin-bottom: 6px; display: flex; align-items: center; gap: 4px; padding-left: 4px; }
.lc-head-v1 { background: linear-gradient(90deg, rgba(21,21,23,.96) 80%, transparent); }
.lc-headbtn { pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 58px; height: 100%; background: #26262a; border: 0; border-radius: 10px; color: #dfe6f8; font-size: 9.5px; line-height: 1.1; padding: 2px; }
.lc-headbtn .lc-i svg { width: 16px; height: 16px; }
.lc-headico { width: 32px; height: 32px; border-radius: 8px; background: #26262a; display: grid; place-items: center; color: #b6bdd0; margin-left: 4px; }
.lc-headico .lc-i svg { width: 16px; height: 16px; }

/* Menu inférieur et panneaux d'outils */
.lc-ed-menu { background: #0c0c0e; border-top: 1px solid #222; padding-bottom: var(--safe-b); min-height: 74px; }
.lc-menu-row { display: flex; align-items: stretch; height: 74px; }
.lc-menu-back { flex: none; width: 52px; background: #26262a; border: 0; border-radius: 10px; margin: 8px 6px; color: #fff; display: grid; place-items: center; }
.lc-menu-scroll { flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; }
.lc-menu-scroll::-webkit-scrollbar { display: none; }
.lc-menu-item { flex: none; min-width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; background: none; border: 0; color: #e8edf9; font-size: 12px; text-align: center; }
.lc-menu-item .lc-i svg { width: 24px; height: 24px; }
.lc-menu-item.off { opacity: .45; } .lc-menu-item.on { color: var(--cyan); }
.lc-ed.sheet-open .lc-ed-menu { max-height: 46dvh; overflow-y: auto; }
.lc-sheet-head { display: flex; align-items: center; gap: 8px; padding: 0 8px; position: sticky; top: 0; background: #0c0c0e; z-index: 2; min-height: 54px; }
.lc-sheet-head .lc-menu-back { margin: 6px 0; }
.lc-sheet-head b { flex: 1; font-size: 15px; }
.lc-sheet-body { padding: 4px 14px 14px; }
.lc-sheet-body h4 { margin: 12px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lc-sfx button { min-width: 100px; }
.lc-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; align-items: center; }
.lc-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); padding: 0; }
.lc-swatches button.on { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan); }
.lc-swatches input[type=color] { width: 40px; height: 34px; padding: 0; border: 0; background: none; }
.lc-fontchips button { font-size: 16px; }
.lc-kfrow { display: flex; align-items: center; gap: 6px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.lc-meter { height: 10px; background: #0a1230; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.lc-meter i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .05s linear; }
.lc-vo-clock { font-size: 36px; text-align: center; font-variant-numeric: tabular-nums; margin: 8px 0; }
.lc-sheet-body .lc-shutter { margin: 8px auto; display: grid; }

/* Petits écrans et paysage */
@media (max-height: 560px) {
  .lc-tl { height: 128px; }
  .lc-ed-top { min-height: 44px; }
  .lc-card-btn { min-height: 90px; }
}
@media (min-width: 820px) {
  .lc-view-camera .lc-cam-stage { border-radius: 16px; margin: 0 16px; }
}
