/* games/_shared/win11/win11.css — Bureau Windows 11 simulé (thème sombre) */
.w11, .w11 * { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }
/* Le bureau gère lui-même sa taille (fenêtres placées en px d'écran) : pas de zoom grand écran. */
html { zoom: 1 !important; --zoom: 1; }
.w11 {
  --w11-font: "Segoe UI Variable Text", "Segoe UI", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --w11-mono: "Cascadia Mono", "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
  --w11-acc: #4cc2ff;
  --w11-acc-2: #0078d4;
  --w11-text: #ffffff;
  --w11-sub: rgba(255,255,255,.72);
  --w11-dim: rgba(255,255,255,.5);
  --w11-panel: rgba(32, 32, 36, .82);
  --w11-panel-solid: #202024;
  --w11-win: #202020;
  --w11-win-2: #2b2b2b;
  --w11-line: rgba(255,255,255,.08);
  --w11-hover: rgba(255,255,255,.07);
  --w11-press: rgba(255,255,255,.04);
  --w11-radius: 8px;
  --w11-shadow: 0 32px 64px rgba(0,0,0,.55), 0 2px 21px rgba(0,0,0,.4);
  --w11-bright: 1;
  position: fixed; inset: 0; font-family: var(--w11-font); color: var(--w11-text); font-size: 14px;
  user-select: none; -webkit-user-select: none; overflow: hidden;
}
.w11 button { font: inherit; color: inherit; }
.w11 input, .w11 textarea { font: inherit; }
.w11 [hidden] { display: none !important; }
.w11 :focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 4px; }
.w11 .w11-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; }
.w11 .w11-ico svg, .w11 .w11-ico-md svg, .w11 .w11-ico-lg svg { width: 100%; height: 100%; display: block; }
.w11 .w11-ico-md { display: inline-block; width: 28px; height: 28px; flex: 0 0 auto; }
.w11 .w11-ico-lg { display: inline-block; width: 36px; height: 36px; }

/* ---------- Fond d'écran ---------- */
.w11-desktop {
  position: absolute; inset: 0 0 48px 0; overflow: hidden;
  filter: brightness(var(--w11-bright));
}
.w11[data-wallpaper="bloom"] .w11-desktop {
  background:
    radial-gradient(60% 70% at 50% 62%, rgba(0, 120, 255, .55) 0%, rgba(0, 60, 180, .25) 35%, transparent 65%),
    radial-gradient(40% 50% at 35% 55%, rgba(80, 200, 255, .55) 0%, transparent 60%),
    radial-gradient(45% 55% at 66% 58%, rgba(30, 100, 255, .6) 0%, transparent 60%),
    radial-gradient(25% 30% at 50% 70%, rgba(190, 235, 255, .7) 0%, transparent 70%),
    conic-gradient(from 210deg at 50% 65%, #04122e, #0b2a6b, #0a1d4a, #03102a, #0b2a6b, #04122e);
}
.w11[data-wallpaper="glow"] .w11-desktop {
  background: radial-gradient(80% 60% at 20% 80%, #3b1d6e 0%, transparent 60%), radial-gradient(70% 60% at 85% 20%, #0e5a6b 0%, transparent 60%), linear-gradient(160deg, #0b0f1d, #10142a);
}
.w11[data-wallpaper="dark"] .w11-desktop { background: radial-gradient(70% 60% at 50% 40%, #1d2733, #0a0d12); }
.w11-desktop::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 30%, transparent 50%, rgba(0,0,0,.35)); }
.w11.w11-night .w11-desktop { filter: brightness(var(--w11-bright)) sepia(.35) saturate(1.2); }
.w11.w11-alert .w11-desktop::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(255, 30, 60, .45); animation: w11-alarm 1.6s ease-in-out infinite; }
@keyframes w11-alarm { 50% { opacity: .35; } }

/* ---------- Icônes du bureau ---------- */
.w11-icons {
  position: absolute; top: 6px; left: 4px; bottom: 6px; z-index: 1;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 98px); grid-auto-columns: 86px; gap: 2px;
}
.w11-icon {
  width: 82px; height: 94px; padding: 6px 4px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.w11-icon:hover { background: rgba(255,255,255,.1); }
.w11-icon.sel { background: rgba(120,180,255,.28); border-color: rgba(160,200,255,.5); }
.w11-icon-img { width: 46px; height: 46px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); position: relative; }
.w11-icon-img svg { width: 100%; height: 100%; }
.w11-icon-label { font-size: 12px; line-height: 1.25; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8); max-height: 2.6em; overflow: hidden; word-break: break-word; }
.w11-icon.sel .w11-icon-label { max-height: none; }
.w11.w11-big-icons .w11-icons { grid-template-rows: repeat(auto-fill, 120px); grid-auto-columns: 104px; }
.w11.w11-big-icons .w11-icon { width: 100px; height: 116px; }
.w11.w11-big-icons .w11-icon-img { width: 62px; height: 62px; }
.w11-icons.w11-refresh { animation: w11-refresh .35s; }
@keyframes w11-refresh { 30% { opacity: .2; } }
.w11-icon .w11-shortcut { position: absolute; left: -2px; bottom: -2px; width: 16px; height: 16px; background: #fff; border-radius: 3px; display: grid; place-items: center; color: #0a6cff; font-size: 11px; font-weight: 700; }

/* ---------- Widgets (HUD de mission) ---------- */
.w11-widgets { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; gap: 10px; width: 290px; }

/* ---------- Fenêtres ---------- */
.w11-stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.w11-win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  background: var(--w11-win); border: 1px solid rgba(255,255,255,.12); border-radius: var(--w11-radius);
  box-shadow: var(--w11-shadow); overflow: hidden; min-width: 280px;
  transition: box-shadow .2s, opacity .15s;
}
.w11-win.inactive { box-shadow: 0 16px 32px rgba(0,0,0,.4); }
.w11-win.inactive .w11-win-bar { color: var(--w11-dim); }
.w11-win.w11-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; border: 0; }
.w11-win.w11-snapped { border-radius: 0; }
.w11-win.w11-min { display: none; }
.w11-win.w11-dragging { opacity: .96; }
.w11-win.w11-opening { animation: w11-open .2s cubic-bezier(.2,.9,.3,1.2); }
.w11-win.w11-closing { animation: w11-close .16s ease-in forwards; }
@keyframes w11-open { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@keyframes w11-close { to { opacity: 0; transform: scale(.95); } }
.w11-win-bar { height: 34px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding-left: 12px; background: var(--w11-win); cursor: default; touch-action: none; }
.w11-win-ico { width: 16px; height: 16px; display: inline-grid; }
.w11-win-ico svg { width: 100%; height: 100%; }
.w11-win-title { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w11-win-ctrls { display: flex; align-self: stretch; }
.w11-wbtn { width: 46px; border: 0; background: none; display: grid; place-items: center; cursor: default; }
.w11-wbtn svg { width: 10px; height: 10px; }
.w11-wbtn:hover { background: var(--w11-hover); }
.w11-wclose:hover { background: #c42b1c; color: #fff; }
.w11-win-body { flex: 1; min-height: 0; overflow: auto; background: var(--w11-win-2); position: relative; user-select: text; -webkit-user-select: text; }
.w11-win.dark .w11-win-body { background: #0c0c0c; }
.w11-rz { position: absolute; z-index: 2; }
.w11-rz-n, .w11-rz-s { left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.w11-rz-n { top: -3px; } .w11-rz-s { bottom: -3px; }
.w11-rz-e, .w11-rz-w { top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.w11-rz-e { right: -3px; } .w11-rz-w { left: -3px; }
.w11-rz-ne, .w11-rz-nw, .w11-rz-se, .w11-rz-sw { width: 12px; height: 12px; }
.w11-rz-ne { top: -3px; right: -3px; cursor: nesw-resize; } .w11-rz-sw { bottom: -3px; left: -3px; cursor: nesw-resize; }
.w11-rz-nw { top: -3px; left: -3px; cursor: nwse-resize; } .w11-rz-se { bottom: -3px; right: -3px; cursor: nwse-resize; }
.w11-win.w11-max .w11-rz { display: none; }
.w11-snap { position: absolute; z-index: 2; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); opacity: 0; transform: scale(.96); transition: all .18s; pointer-events: none; }
.w11-snap.show { opacity: 1; transform: none; }

/* ---------- Barre des tâches ---------- */
.w11-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 50;
  background: rgba(28, 28, 32, .78); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
}
.w11-tb-center { display: flex; align-items: center; gap: 4px; height: 100%; }
.w11-tb-apps { display: flex; gap: 4px; }
.w11-tb-btn { position: relative; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 6px; display: grid; place-items: center; cursor: default; padding: 8px; transition: background .12s; }
.w11-tb-btn svg { width: 24px; height: 24px; transition: transform .15s; }
.w11-tb-btn:hover { background: var(--w11-hover); }
.w11-tb-btn:active svg { transform: scale(.86); }
.w11-tb-btn.active, .w11-start-btn.active { background: rgba(255,255,255,.1); }
.w11-tb-ind { position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.55); transform: translateX(-50%); opacity: 0; transition: all .2s; }
.w11-tb-app.running .w11-tb-ind { opacity: 1; }
.w11-tb-app.active .w11-tb-ind { width: 16px; background: var(--w11-acc); }
.w11-tb-search { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; border-radius: 17px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.07); color: var(--w11-sub); cursor: text; min-width: 180px; margin: 0 6px; }
.w11-tb-search:hover { background: rgba(255,255,255,.1); }
.w11-tray { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding-right: 0; }
.w11-tray-extra { display: flex; gap: 2px; }
.w11-tray-btn { height: 40px; border: 0; background: transparent; border-radius: 6px; display: flex; align-items: center; gap: 6px; padding: 0 8px; cursor: default; position: relative; }
.w11-tray-btn:hover { background: var(--w11-hover); }
.w11-tray-btn.offline .w11-ico:first-child { color: #ff99a4; }
.w11-tray-small { width: 32px; padding: 0; justify-content: center; }
.w11-tray-small svg { width: 18px; height: 18px; }
.w11-clock { padding-right: 14px; }
.w11-clock-text { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 1.3; }
.w11-badge { position: absolute; top: 5px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--w11-acc); box-shadow: 0 0 0 2px rgba(28,28,32,.9); }
.w11-showdesk { width: 8px; height: 100%; border: 0; border-left: 1px solid rgba(255,255,255,.12); background: transparent; margin-left: 6px; cursor: default; }
.w11-showdesk:hover { background: rgba(255,255,255,.06); }

/* ---------- Panneaux (Démarrer, QS, NC) ---------- */
.w11-panel {
  position: absolute; z-index: 60; background: var(--w11-panel); border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  backdrop-filter: blur(40px) saturate(170%); -webkit-backdrop-filter: blur(40px) saturate(170%); box-shadow: var(--w11-shadow);
  opacity: 0; transform: translateY(18px); transition: opacity .18s ease-out, transform .22s cubic-bezier(.1,.9,.2,1);
}
.w11-panel.open { opacity: 1; transform: none; }
.w11-start { bottom: 60px; left: 50%; margin-left: -320px; width: 640px; max-width: calc(100vw - 16px); height: min(680px, calc(100vh - 80px)); display: flex; flex-direction: column; }
.w11-start-body { flex: 1; padding: 22px 28px; overflow: auto; }
.w11-start-search { width: 100%; height: 36px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); border-bottom: 2px solid var(--w11-acc); background: rgba(0,0,0,.35); color: #fff; padding: 0 16px; outline: none; }
.w11-start-label { font-weight: 600; margin: 22px 8px 12px; }
.w11-start-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.w11-start-app { border: 0; background: none; border-radius: 6px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; cursor: default; text-align: center; }
.w11-start-app:hover { background: var(--w11-hover); }
.w11-start-rec { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.w11-rec { border: 0; background: none; border-radius: 6px; padding: 8px 10px; display: flex; gap: 12px; align-items: center; text-align: left; cursor: default; }
.w11-rec:hover { background: var(--w11-hover); }
.w11-rec-text { display: flex; flex-direction: column; min-width: 0; }
.w11-rec-text b { font-weight: 400; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w11-rec-text small { color: var(--w11-dim); font-size: 12px; }
.w11-start-foot { height: 64px; flex: 0 0 auto; border-top: 1px solid var(--w11-line); background: rgba(0,0,0,.2); display: flex; align-items: center; justify-content: space-between; padding: 0 44px; border-radius: 0 0 10px 10px; }
.w11-start-user { display: flex; align-items: center; gap: 10px; }
.w11-avatar { width: 32px; height: 32px; display: inline-block; }
.w11-power { width: 40px; height: 40px; border-radius: 6px; border: 0; background: none; display: grid; place-items: center; padding: 10px; cursor: default; }
.w11-power:hover { background: var(--w11-hover); }
.w11-empty { color: var(--w11-dim); padding: 16px; grid-column: 1 / -1; text-align: center; }

.w11-qs { bottom: 60px; right: 12px; width: 360px; max-width: calc(100vw - 24px); padding: 18px; display: grid; gap: 14px; }
.w11-qs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w11-qs-tile { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); border-radius: 6px; height: 72px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 12px; cursor: default; text-align: left; }
.w11-qs-tile:hover { background: rgba(255,255,255,.1); }
.w11-qs-tile.on { background: var(--w11-acc); color: #000; border-color: transparent; }
.w11-qs-tile b { font-weight: 500; font-size: 12px; }
.w11-qs-tile small { font-size: 11px; opacity: .75; min-height: 13px; }
.w11-qs-slider { display: flex; align-items: center; gap: 12px; }
.w11-qs-slider input { flex: 1; accent-color: var(--w11-acc); }
.w11-qs-foot { display: flex; gap: 8px; align-items: center; color: var(--w11-sub); font-size: 12px; border-top: 1px solid var(--w11-line); padding-top: 12px; }

.w11-nc { bottom: 60px; right: 12px; width: 360px; max-width: calc(100vw - 24px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; gap: 10px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.w11-nc-card { background: var(--w11-panel); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); padding: 14px; box-shadow: var(--w11-shadow); }
.w11-nc-card:first-child { flex: 1; min-height: 120px; overflow: auto; }
.w11-nc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.w11-link { border: 0; background: none; color: var(--w11-acc); cursor: pointer; font-size: 12px; }
.w11-nc-list { display: grid; gap: 8px; }
.w11-nc-item { display: flex; gap: 10px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.w11-nc-item p { margin: 2px 0; font-size: 12px; color: var(--w11-sub); }
.w11-nc-item small { font-size: 11px; color: var(--w11-dim); }
.w11-nc-item.danger { border-left: 3px solid #ff4d6d; }
.w11-cal-head { font-weight: 600; margin-bottom: 10px; text-transform: capitalize; }
.w11-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; }
.w11-cal-grid span { padding: 6px 0; border-radius: 50%; }
.w11-cal-grid .dow { color: var(--w11-dim); }
.w11-cal-grid .today { background: var(--w11-acc); color: #000; font-weight: 600; }

/* ---------- Menus contextuels ---------- */
.w11-ctx { position: fixed; z-index: 80; min-width: 230px; padding: 4px; background: rgba(40,40,44,.92); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: w11-pop .12s ease-out; }
@keyframes w11-pop { from { opacity: 0; transform: translateY(-4px); } }
.w11-ctx-item { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 4px; text-align: left; cursor: default; font-size: 13px; }
.w11-ctx-item:hover:not(:disabled), .w11-ctx-item:focus-visible { background: var(--w11-hover); outline: none; }
.w11-ctx-item:disabled { opacity: .4; }
.w11-ctx-item small { margin-left: auto; color: var(--w11-dim); }
.w11-ctx-sep { height: 1px; background: var(--w11-line); margin: 4px 6px; }

/* ---------- Toasts ---------- */
.w11-toasts { position: absolute; right: 12px; bottom: 12px; z-index: 70; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 24px); pointer-events: none; }
.w11-toast { pointer-events: auto; background: rgba(36,36,40,.94); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 12px 14px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); animation: w11-toast-in .32s cubic-bezier(.1,.9,.2,1); }
.w11-toast.out { animation: w11-toast-out .25s ease-in forwards; }
.w11-toast.clickable { cursor: pointer; }
.w11-toast.danger { border-left: 3px solid #ff4d6d; }
.w11-toast.success { border-left: 3px solid #3ce38a; }
.w11-toast.warn { border-left: 3px solid #ffc24b; }
@keyframes w11-toast-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes w11-toast-out { to { opacity: 0; transform: translateX(40px); } }
.w11-toast-app { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--w11-sub); margin-bottom: 8px; }
.w11-toast-app .w11-ico { width: 16px; height: 16px; }
.w11-toast-x { margin-left: auto; width: 24px; height: 24px; border: 0; background: none; border-radius: 4px; display: grid; place-items: center; cursor: default; }
.w11-toast-x svg { width: 9px; height: 9px; }
.w11-toast-x:hover { background: var(--w11-hover); }
.w11-toast b { display: block; font-size: 14px; font-weight: 600; }
.w11-toast p { margin: 4px 0 0; font-size: 13px; color: var(--w11-sub); line-height: 1.4; }

/* ---------- Écran de verrouillage ---------- */
.w11-lock {
  position: absolute; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12vh 20px 8vh;
  background: radial-gradient(60% 70% at 50% 62%, rgba(0, 120, 255, .55), transparent 65%), radial-gradient(40% 50% at 35% 55%, rgba(80, 200, 255, .45), transparent 60%), conic-gradient(from 210deg at 50% 65%, #04122e, #0b2a6b, #0a1d4a, #03102a, #0b2a6b, #04122e);
  cursor: pointer; transition: opacity .5s, backdrop-filter .5s;
}
.w11-lock-clock { text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.4); transition: transform .5s, opacity .4s; }
.w11-lock-time { font-size: clamp(64px, 12vw, 120px); font-weight: 600; line-height: 1; letter-spacing: -2px; }
.w11-lock-date { font-size: 22px; text-transform: capitalize; margin-top: 8px; }
.w11-login { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(20px); transition: all .45s; }
.w11-login-avatar { width: 120px; height: 120px; }
.w11-login-name { font-size: 24px; font-weight: 600; }
.w11-login-sub { color: var(--w11-sub); }
.w11-lock-hint { font-size: 13px; color: var(--w11-sub); animation: w11-hint 2s ease-in-out infinite; }
@keyframes w11-hint { 50% { opacity: .45; } }
.w11-lock:hover .w11-login, .w11-lock:focus .w11-login { opacity: .85; transform: none; }
.w11-lock.w11-unlocking { backdrop-filter: blur(20px); }
.w11-lock.w11-unlocking .w11-lock-clock { transform: translateY(-40px); opacity: 0; }
.w11-lock.w11-unlocking .w11-login { opacity: 1; transform: none; }
.w11-lock.w11-unlocking .w11-lock-hint { opacity: 0; }

/* ---------- Modales & BSOD ---------- */
.w11-modal { position: absolute; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: w11-fade .25s; }
@keyframes w11-fade { from { opacity: 0; } }
.w11-modal-card { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #1f1f23; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: var(--w11-shadow); padding: 28px; user-select: text; }
.w11-bsod { position: absolute; inset: 0; z-index: 300; background: #0067b8; color: #fff; padding: 12vh 10vw; font-family: var(--w11-font); }
.w11-bsod-face { font-size: 120px; line-height: 1; margin-bottom: 30px; }
.w11-bsod p { font-size: 22px; max-width: 900px; line-height: 1.4; }
.w11-bsod small { display: block; margin-top: 40px; opacity: .85; font-size: 13px; }

/* ---------- Composants communs aux applis ---------- */
.w11-app-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--w11-win); border-bottom: 1px solid var(--w11-line); }
.w11-app-btn { border: 0; background: none; height: 32px; min-width: 32px; padding: 0 10px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; cursor: default; color: var(--w11-text); font-size: 13px; }
.w11-app-btn:hover:not(:disabled) { background: var(--w11-hover); }
.w11-app-btn:disabled { opacity: .35; }
.w11-app-btn svg { width: 16px; height: 16px; }
.w11-btn { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.08); color: #fff; height: 32px; padding: 0 14px; border-radius: 4px; cursor: default; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.w11-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.w11-btn.primary { background: var(--w11-acc); color: #000; border-color: transparent; font-weight: 600; }
.w11-btn.primary:hover:not(:disabled) { background: #6dd0ff; }
.w11-btn.danger { background: #c42b1c; border-color: transparent; }
.w11-btn:disabled { opacity: .45; }
.w11-switch { appearance: none; -webkit-appearance: none; width: 40px; height: 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,.6); position: relative; cursor: pointer; background: transparent; flex: 0 0 auto; }
.w11-switch::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.8); top: 3px; left: 4px; transition: left .15s; }
.w11-switch:checked { background: var(--w11-acc); border-color: var(--w11-acc); }
.w11-switch:checked::after { left: 23px; background: #000; }
.w11-card { background: rgba(255,255,255,.05); border: 1px solid var(--w11-line); border-radius: 6px; padding: 14px 16px; }
.w11-term { font-family: var(--w11-mono); font-size: 13px; line-height: 1.45; color: #ccc; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; min-height: 100%; cursor: text; }
.w11-term .ps-in { color: #fff; }
.w11-term .ps-err { color: #ff6f6f; }
.w11-term .ps-ok { color: #5df59a; }
.w11-term .ps-warn { color: #f9d45c; }
.w11-term .ps-dim { color: #8a8a8a; }
.w11-term-line { display: flex; gap: 0; }
.w11-term-input { flex: 1; background: transparent; border: 0; outline: none; color: #fff; font: inherit; padding: 0; caret-color: #fff; min-width: 40px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .w11-tb-search { min-width: 0; width: 40px; padding: 0; justify-content: center; border-radius: 6px; background: none; border: 0; }
  .w11-tb-search-label { display: none; }
  .w11-tb-center { justify-content: flex-start; padding-left: 6px; overflow-x: auto; max-width: calc(100vw - 150px); }
  .w11-taskbar { justify-content: flex-start; }
  .w11-tray .w11-clock-text span:last-child { display: none; }
  .w11-start { left: 8px; margin-left: 0; width: calc(100vw - 16px); }
  .w11-start-grid { grid-template-columns: repeat(4, 1fr); }
  .w11-start-rec { grid-template-columns: 1fr; }
  .w11-widgets { position: absolute; left: auto; right: 8px; top: 8px; width: min(250px, 58vw); }
  .w11-icons { grid-template-rows: repeat(auto-fill, 92px); grid-auto-columns: 76px; }
  .w11-icon { width: 74px; height: 88px; }
  .w11-win { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .w11 *, .w11 *::before, .w11 *::after { animation: none !important; transition: none !important; }
}

/* ---------- Bloc-notes ---------- */
.np-menu { display: flex; gap: 2px; padding: 4px 6px; background: var(--w11-win); font-size: 13px; border-bottom: 1px solid var(--w11-line); }
.np-menu span { padding: 4px 10px; border-radius: 4px; }
.np-menu span:hover { background: var(--w11-hover); }
.w11-win-body.np-body { display: flex; flex-direction: column; overflow: hidden; background: #272727; }
.np-text { flex: 1; resize: none; border: 0; outline: none; background: #272727; color: #f0f0f0; font-family: var(--w11-mono); font-size: 13.5px; line-height: 1.5; padding: 12px 16px; }
.np-status { font-size: 12px; color: var(--w11-dim); padding: 4px 12px; border-top: 1px solid var(--w11-line); background: var(--w11-win); }

/* ---------- Tableaux ---------- */
.w11-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.w11-table th { position: sticky; top: 0; background: #262629; text-align: left; font-weight: 400; color: var(--w11-sub); padding: 8px 10px; border-bottom: 1px solid var(--w11-line); white-space: nowrap; z-index: 1; }
.w11-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.03); white-space: nowrap; }
.w11-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.w11-table tbody tr:hover { background: var(--w11-hover); }
.w11-table tbody tr.sel { background: rgba(76,194,255,.18); }
.w11-table tbody tr.hot td { background: rgba(255, 140, 0, .14); }
.w11-table tbody tr.dead { opacity: .4; text-decoration: line-through; }

/* ---------- Explorateur ---------- */
.w11-win-body.ex-body { display: flex; flex-direction: column; overflow: hidden; background: #191919; }
.ex-cmdbar { display: flex; gap: 4px; padding: 6px 10px; background: var(--w11-win); border-bottom: 1px solid var(--w11-line); flex-wrap: wrap; }
.ex-toolbar { gap: 4px; }
.ex-addr { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--w11-line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-search { width: 200px; height: 32px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--w11-line); color: #fff; padding: 0 10px; outline: none; }
.ex-main { flex: 1; min-height: 0; display: flex; }
.ex-side { width: 190px; flex: 0 0 auto; padding: 8px 6px; border-right: 1px solid var(--w11-line); overflow: auto; background: #1c1c1c; }
.ex-place { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 4px; font-size: 13px; text-align: left; cursor: default; position: relative; }
.ex-place.indent { padding-left: 24px; }
.ex-place:hover { background: var(--w11-hover); }
.ex-place.on { background: rgba(255,255,255,.08); }
.ex-place.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--w11-acc); }
.ex-pane { flex: 1; min-width: 0; overflow: auto; }
.ex-row { display: grid; grid-template-columns: minmax(200px, 2.4fr) 1.3fr 1.2fr .8fr; gap: 10px; align-items: center; padding: 0 14px; height: 34px; font-size: 13px; cursor: default; border-radius: 4px; margin: 0 6px; }
.ex-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--w11-sub); }
.ex-row > span:first-child { color: #fff; }
.ex-row .num { text-align: right; }
.ex-row:not(.ex-head):hover { background: var(--w11-hover); }
.ex-row.sel { background: rgba(76,194,255,.18) !important; }
.ex-head { position: sticky; top: 0; background: #191919; height: 32px; color: var(--w11-sub); font-size: 12px; border-bottom: 1px solid var(--w11-line); border-radius: 0; margin: 0; padding: 0 20px; z-index: 1; }
.ex-name { display: flex; align-items: center; gap: 10px; }
.ex-ico { width: 20px; height: 20px; }
.ex-tag { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--w11-sub); }
.ex-tag.bad { background: rgba(255,77,109,.2); color: #ff9aaa; }
.ex-tag.ok { background: rgba(60,227,138,.18); color: #7af0b0; }
.ex-row.locked > span:first-child { color: #ff9aaa; }
.ex-empty { padding: 40px; text-align: center; color: var(--w11-dim); }
.ex-status { font-size: 12px; color: var(--w11-dim); padding: 5px 14px; border-top: 1px solid var(--w11-line); background: var(--w11-win); }
.ex-props-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 16px; }
.ex-props dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.ex-props dt { color: var(--w11-sub); }
.ex-props dd { margin: 0; word-break: break-word; }
.ex-props-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.ex-props-modal .w11-modal-card { width: min(460px, 100%); }
@media (max-width: 760px) {
  .ex-side { display: none; }
  .ex-row { grid-template-columns: minmax(150px, 1fr) .8fr; }
  .ex-row > span:nth-child(2), .ex-row > span:nth-child(3) { display: none; }
  .ex-search { width: 110px; }
}

.w11 .w11-term-input:focus-visible { outline: none; }
