:root { --bg: #000; --fg: #f2f2f2; --muted: #9aa0a8; --line: #2a2e35; --surface: #121417; --surface2: #1a1d22; --accent: #2b7de9; --err: #ff6b6b; --ok: #5cc97a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; user-select: none; }
button { font: inherit; color: inherit; }
input, select { font: inherit; }

/* ---------- intro (même fond que le PC : Terre ; voile 55 % au chargement, 34 % à la connexion) */
#intro { position: fixed; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.5s; }
#intro.show { opacity: 1; }
#intro .stage { position: absolute; inset: 0; transition: opacity 2.5s; }
#intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s; }
#intro video.on { opacity: 1; }
#intro .veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); transition: background 1.2s; }
#intro .brand { display: none; }
#screen { position: fixed; inset: 0; z-index: 1; }
.calm *, .calm *::before { transition: none !important; animation-duration: .01s !important; }
.big-text body { font-size: 16px; }
.big-text .login h1 { font-size: 38px; }

/* ---------- journal de chargement (comme le PC) */
.boot { position: absolute; left: 5%; right: 5%; bottom: 76px; font: 13px/1.31 Consolas, "Cascadia Mono", "Courier New", monospace; color: #e6e9ee; }
.boot .lines { white-space: pre; overflow: hidden; }
.boot .t { color: #6f7783; margin-right: 8px; }
.boot .k { color: #8a93a0; display: inline-block; width: 40px; }
.boot .ok { color: #4f8be0; } .boot .dim { color: #8a8f96; }
.boot .bar { display: flex; justify-content: space-between; margin-top: 22px; color: #c5cad1; font-family: "Segoe UI", system-ui, sans-serif; }
.boot .track { height: 3px; background: #ffffff18; margin-top: 8px; }
.boot .fill { height: 3px; width: 0; background: #2B5797; transition: width .25s; }
.big-text .boot { font-size: 15px; }

/* ---------- connexion (comme le PC : avatar, nom, mot de passe, comptes en bas à gauche) */
.login { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.login > * { pointer-events: auto; }
.avatar { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; font: 200 84px "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: #fff; background: #2b5797; }
.login h1 { font: 300 32px "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; margin: 22px 0 30px; letter-spacing: .2px; }
.field { width: 320px; padding: 6px 12px; border-radius: 4px; border: 1px solid #ffffff55; background: #00000059; color: var(--fg); outline: none; }
.field:focus { border-color: #fff; }
.pwd { position: relative; width: 320px; display: flex; align-items: center; border: 1px solid #ffffff66; border-radius: 4px; background: #00000059; }
.pwd input { flex: 1; min-width: 0; padding: 6px 12px; border: 0; background: none; color: var(--fg); outline: none; font-size: 15px; }
.pwd:focus-within { border-color: #fff; }
.pwd .go { width: 36px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.pwd .go:hover { background: #ffffff1c; }
.pwd.fake { color: #e6e8eb; padding-left: 12px; cursor: pointer; text-align: left; font-size: 14px; }
.pwd.fake span { flex: 1; }
.pwd.fake:hover { background: #ffffff14; }
.who { color: #c9ced5; margin: -18px 0 4px; display: flex; gap: 10px; align-items: baseline; }
.hint { color: #b9bec6; font-size: 12px; max-width: 360px; text-align: center; margin: 6px 0 0; }
.msg { min-height: 20px; color: #ffd0d0; text-shadow: 0 1px 6px #000; max-width: 420px; text-align: center; }
.msg.ok { color: #d5f5de; }
.link { background: none; border: 0; color: #c9ced5; cursor: pointer; text-shadow: 0 1px 6px #000; }
.link:hover { color: #fff; text-decoration: underline; }
.link.small { font-size: 11.5px; margin-top: 18px; }
.who .link.small { margin: 0; }
.users { position: absolute; left: 26px; bottom: 26px; display: flex; flex-direction: column; gap: 4px; width: 280px; }
.user { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 4px; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.user:hover { background: #ffffff14; }
.user.sel { background: #ffffff1f; }
.user .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 300; font-size: 17px; color: #fff; }
.corner { position: absolute; bottom: 30px; right: 54px; display: flex; gap: 58px; align-items: center; font-size: 13px; }
.corner .access { background: none; border: 0; cursor: pointer; color: #e8eaed; display: flex; gap: 8px; align-items: center; }
.corner .access .ic { font-size: 17px; }
.corner .quit { color: #8f959d; text-decoration: none; font-size: 12px; }
.corner .quit:hover { color: #fff; }
.access-menu { top: auto; bottom: 66px; right: 120px; white-space: pre; }
/* ---------- bureau */
.desk { position: absolute; inset: 0; background: radial-gradient(1200px 700px at 70% 20%, #1b2a44 0%, #0b0f17 55%, #05070a 100%); }
.desk.video { background: transparent; }
.home { position: absolute; inset: 40px 40px 90px 40px; overflow: auto; }
.home h2 { font-weight: 300; font-size: 28px; margin: 0 0 18px; }
.group { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; margin: 18px 0 10px; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { width: 150px; height: 150px; border: 0; border-radius: 4px; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: transform .12s, filter .12s; }
.tile:hover { filter: brightness(1.12); }
.tile:active { transform: scale(.97); }
.tile img { width: 64px; height: 64px; border-radius: 12px; }
.tile .name { position: absolute; left: 10px; bottom: 8px; font-size: 13px; color: #fff; }
.tile .soon { position: absolute; top: 8px; right: 8px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: #0006; border-radius: 10px; padding: 1px 8px; }
.dock { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 8px 10px; border-radius: 14px; background: #15181dcc; backdrop-filter: blur(16px); border: 1px solid #ffffff14; z-index: 9000; }
.dock button { width: 48px; height: 48px; border: 0; border-radius: 10px; cursor: pointer; background: #ffffff10; position: relative; padding: 6px; }
.dock button img { width: 36px; height: 36px; border-radius: 8px; }
.dock button.open::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; }
.dock button:hover { background: #ffffff24; }
.dock .sep { width: 1px; background: #ffffff22; margin: 4px 2px; }
.topright { position: absolute; top: 12px; right: 18px; display: flex; align-items: center; gap: 14px; z-index: 9000; }
.chip { padding: 4px 10px; border-radius: 14px; background: #ffffff14; font-size: 12px; }
.chip.demo { background: #e3a21a; color: #000; font-weight: 600; }
.me { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 18px; }
.me:hover { background: #ffffff14; }
.me .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; }
.menu { position: absolute; top: 46px; right: 18px; min-width: 240px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; z-index: 9500; box-shadow: 0 10px 40px #000a; }
.menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.menu button:hover { background: #ffffff14; }
.menu .info { padding: 8px 12px; color: var(--muted); font-size: 12px; }

/* ---------- fenêtres internes */
.win { position: absolute; display: flex; flex-direction: column; background: var(--surface); border: 1px solid #ffffff1c; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 60px #000c; min-width: 360px; min-height: 240px; }
.win.max { inset: 0 0 76px 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
.win.min { display: none; }
.win .title { height: 36px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; background: #0e1013; cursor: default; }
.win .title img { width: 18px; height: 18px; border-radius: 4px; }
.win .title span { flex: 1; font-size: 13px; color: #d9dce0; }
.win .title button { width: 46px; height: 36px; border: 0; background: none; cursor: pointer; color: #cfd3d8; font-size: 14px; }
.win .title button:hover { background: #ffffff18; }
.win .title button.close:hover { background: #c42b1c; color: #fff; }
.win iframe { flex: 1; border: 0; width: 100%; background: #0b0c0e; }
.win .grip { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.shield { position: absolute; inset: 36px 0 0 0; display: none; }
body.dragging .win .shield { display: block; }

/* ---------- fin de démo */
.overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: #000c; }
.panel { width: min(520px, 92vw); background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 30px; text-align: center; }
.panel h2 { font-weight: 300; margin: 0 0 10px; }
.panel p { color: #c3c7cd; }
.btn { padding: 10px 22px; border-radius: 8px; border: 1px solid var(--fg); background: var(--fg); color: #000; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--fg); border-color: #ffffff55; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #ffffff30; border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
