/* La Disquette — bureau rétro inspiré des ordinateurs Windows des années 2000.
   Interface originale : aucun élément graphique propriétaire n'est repris. */
:root {
  --font: Tahoma, Verdana, "Segoe UI", "DejaVu Sans", sans-serif;
  --mono: "Lucida Console", Consolas, "DejaVu Sans Mono", monospace;
  --task-h: 40px;
  --frame: #0b3fd1;
  --frame-in: #7f9ee6;
  --title-a: #0a5bf5; --title-b: #0043d1; --title-c: #0a3fc0;
  --face: #ece9d8; --face-2: #f5f3ea; --line: #a5a29a; --line-2: #c9c5b4;
  --text: #1b1b1b; --muted: #5d5b55; --link: #0b49d6;
  --field: #7f9db9; --sel: #316ac5;
  --ok: #2c8a1d; --warn: #b77400; --err: #c42b1c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font: 12px/1.45 var(--font); color: var(--text); background: #2a5fd0; }
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.ic { width: 16px; height: 16px; flex: none; }
.hidden, [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------------ bureau */
#desktop { position: fixed; inset: 0 0 var(--task-h) 0; overflow: hidden; user-select: none;
  background: #3a80e8 url(/static/img/wall-colline.svg) center / cover no-repeat; }
.icons { position: absolute; inset: 10px auto 10px 10px; display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 92px); grid-auto-columns: 86px; gap: 4px 8px; z-index: 1; }
.dicon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: 1px dotted transparent;
  border-radius: 3px; cursor: default; color: #fff; text-align: center; outline: none; background: none; }
.dicon svg { width: 44px; height: 44px; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.35)); }
.dicon span { font-size: 11.5px; line-height: 1.2; text-shadow: 1px 1px 2px #000, 0 0 3px rgba(0,0,0,.6); padding: 1px 3px; border-radius: 2px;
  max-width: 82px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dicon.sel span, .dicon:focus span { background: var(--sel); text-shadow: none; }
.dicon.sel svg, .dicon:focus svg { filter: drop-shadow(1px 2px 2px rgba(0,0,0,.35)) brightness(.8) sepia(.3) hue-rotate(180deg) saturate(2); }
.dicon:focus-visible { border-color: #fff; }
.dicon img { width: 48px; height: 48px; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.4)); }
.dicon.dgame { cursor: pointer; }
.dicon.dgame:hover img { filter: drop-shadow(1px 2px 2px rgba(0,0,0,.4)) brightness(1.1); }
.dicon.dgame span { font-weight: bold; }
.desk-logo { position: absolute; right: 18px; bottom: 14px; width: 260px; height: auto; z-index: 1; pointer-events: none;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,.35)); }
@media (max-width: 760px) { .desk-logo { width: 140px; } }

/* ------------------------------------------------------------------ fenêtres */
#windows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.win { position: absolute; display: flex; flex-direction: column; min-width: 260px; min-height: 140px; max-width: 100%; max-height: 100%; pointer-events: auto;
  background: var(--frame); border: 1px solid #001ea0; border-radius: 8px 8px 0 0; padding: 0 3px 3px;
  box-shadow: 2px 3px 14px rgba(0,0,0,.45); animation: win-open .18s ease-out; }
.win.inactive { background: var(--frame-in); border-color: #5b78c7; box-shadow: 1px 2px 8px rgba(0,0,0,.3); }
.win.closing { animation: win-close .14s ease-in forwards; }
.win.minimizing { transition: transform .2s ease-in, opacity .2s ease-in; opacity: 0; }
.win.max { inset: 0 0 0 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
@keyframes win-open { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes win-close { to { opacity: 0; transform: scale(.94); } }
.titlebar { display: flex; align-items: center; gap: 6px; height: 29px; padding: 0 3px 0 6px; color: #fff; cursor: default;
  background: linear-gradient(180deg, #3d8bff 0, var(--title-a) 9%, var(--title-b) 55%, var(--title-c) 92%, #002a9c 100%);
  border-radius: 7px 7px 0 0; margin: 0 -3px; touch-action: none; }
.win.inactive .titlebar { background: linear-gradient(180deg, #a7bdf0 0, #8aa6e8 30%, #7b98e2 100%); color: #dfe8ff; }
.titlebar .t-ico { width: 16px; height: 16px; }
.titlebar .t-txt { flex: 1; font-weight: bold; font-size: 13px; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 1px 1px 1px #0f1f63; }
.tbtn { width: 22px; height: 22px; border: 1px solid #fff; border-radius: 3px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, #5d9bff, #2462e8 60%, #1a54d6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.tbtn:hover { filter: brightness(1.15); } .tbtn:active { filter: brightness(.9); }
.tbtn svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.4; fill: none; }
.tbtn.close { background: linear-gradient(180deg, #f39b7f, #e2532c 55%, #c43b16); }
.win.inactive .tbtn { opacity: .75; }
.wbody { flex: 1; min-height: 0; background: var(--face); display: flex; flex-direction: column; position: relative; }
.wtools { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-bottom: 1px solid #fff; box-shadow: 0 1px 0 var(--line-2);
  background: linear-gradient(180deg, #faf9f4, #ebe8d8); }
.wtools .addr { flex: 1; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--field); padding: 1px 4px; min-width: 0;
  color: var(--muted); white-space: nowrap; overflow: hidden; }
.wcontent { flex: 1; min-width: 0; overflow: auto; padding: 14px 16px; user-select: text; container-type: inline-size; }
.wcontent.flush { padding: 0; }
.wstatus { height: 22px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-top: 1px solid var(--line-2); color: var(--muted);
  background: linear-gradient(180deg, #f3f1e8, #e4e1d1); font-size: 11px; white-space: nowrap; overflow: hidden; }
.resizer { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, #9f9b8c 50%, #9f9b8c 58%, transparent 58%, transparent 70%, #9f9b8c 70%, #9f9b8c 78%, transparent 78%); }
.win.max .resizer { display: none; }
.busy { position: absolute; inset: 0; background: rgba(236,233,216,.6); display: grid; place-items: center; z-index: 5; cursor: progress; }
.hourglass { width: 26px; height: 34px; border: 3px solid #4a4a4a; border-left: 0; border-right: 0; position: relative; animation: hg 1.2s steps(8) infinite; }
.hourglass::before, .hourglass::after { content: ""; position: absolute; left: 3px; right: 3px; height: 13px; background: #e8c45a; }
.hourglass::before { top: 1px; clip-path: polygon(0 0, 100% 0, 50% 100%); } .hourglass::after { bottom: 1px; clip-path: polygon(50% 30%, 100% 100%, 0 100%); }
@keyframes hg { to { transform: rotate(180deg); } }

/* ------------------------------------------------------------------ barre des tâches */
#taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--task-h); display: flex; align-items: center; z-index: 50; user-select: none;
  background: linear-gradient(180deg, #3f8cf3 0, #2463e0 8%, #1f57d6 40%, #1a4fcd 88%, #1440aa 100%); border-top: 1px solid #0b2f9a; }
#startbtn { height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 22px 0 10px; margin-right: 8px; border: 0; cursor: pointer;
  color: #fff; font-style: italic; font-weight: bold; font-size: 19px; letter-spacing: .3px; text-shadow: 1px 1px 2px #164a10;
  background: linear-gradient(180deg, #5fc152 0, #3a9e2f 12%, #2f8f25 55%, #267b1c 100%); border-radius: 0 14px 14px 0;
  box-shadow: inset -2px 0 3px rgba(0,0,0,.25), 2px 0 4px rgba(0,0,0,.25); }
#startbtn:hover { filter: brightness(1.08); } #startbtn.on { filter: brightness(.88); }
#startbtn svg { width: 26px; height: 26px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.4)); }
#tasks { flex: 1; display: flex; gap: 3px; overflow: hidden; height: 100%; align-items: center; padding-right: 6px; }
.task { height: 30px; min-width: 0; flex: 0 1 180px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 3px; cursor: pointer;
  color: #fff; border: 1px solid #1b3fa8; background: linear-gradient(180deg, #4f97ff, #3c81f0 50%, #2f6fe0); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task:hover { filter: brightness(1.1); }
.task.active { background: linear-gradient(180deg, #1c48b8, #1f4fc4 50%, #2556cc); box-shadow: inset 1px 1px 3px rgba(0,0,0,.45); }
#tray { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #fff; border-left: 1px solid #0d36a0;
  background: linear-gradient(180deg, #19a0f2, #1386e6 50%, #0f72d6); box-shadow: inset 1px 0 0 #43b5ff; }
#tray button { background: none; border: 0; padding: 2px; cursor: pointer; display: grid; place-items: center; }
#tray svg { width: 18px; height: 18px; }
#clock { font-size: 12px; min-width: 40px; text-align: center; }
#tray-user { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }

/* ------------------------------------------------------------------ menu Démarrer */
#startmenu { position: fixed; left: 0; bottom: var(--task-h); width: 420px; max-width: 100vw; max-height: calc(100dvh - var(--task-h)); z-index: 60; display: flex; flex-direction: column;
  border: 1px solid #0b3a9e; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 3px -2px 12px rgba(0,0,0,.45);
  transform-origin: bottom left; animation: menu-in .14s ease-out; background: #fff; }
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sm-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff; font-weight: bold; font-size: 14px;
  background: linear-gradient(180deg, #2c7cf2, #1559d8 60%, #0f4ac2); text-shadow: 1px 1px 2px #0b2d7a; }
.sm-head .avatar { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 4px; background: #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.4); display: grid; place-items: center; }
.sm-head .avatar svg { width: 40px; height: 40px; }
.sm-cols { display: flex; min-height: 0; overflow-y: auto; border-top: 2px solid #f08d2d; }
.sm-head, .sm-foot { flex-shrink: 0; }
.sm-left { flex: 1.1; padding: 6px 0; background: #fff; }
.sm-right { flex: 1; padding: 6px 0; background: #d3e5fa; border-left: 1px solid #95bdee; }
.sm-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: #111; }
.sm-item svg { width: 30px; height: 30px; }
.sm-right .sm-item svg { width: 24px; height: 24px; }
.sm-item b { display: block; font-size: 12px; } .sm-item small { color: #666; font-size: 11px; }
.sm-right .sm-item { color: #0c2a6b; font-weight: bold; }
.sm-item:hover, .sm-item:focus { background: var(--sel); color: #fff; outline: none; }
.sm-item:hover small, .sm-item:focus small { color: #dbe6ff; }
.sm-sep { height: 1px; margin: 5px 10px; background: linear-gradient(90deg, transparent, #b8c9e6, transparent); }
.sm-label { padding: 4px 12px 2px; font-size: 10.5px; font-weight: bold; color: #6b7fa8; text-transform: uppercase; letter-spacing: .5px; }
.sm-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 8px; background: linear-gradient(180deg, #2c7cf2, #1559d8); }
.sm-foot button { display: flex; align-items: center; gap: 6px; color: #fff; background: none; border: 0; padding: 4px 8px; cursor: pointer; border-radius: 3px; }
.sm-foot button:hover { background: rgba(255,255,255,.18); }
.sm-foot svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ menus contextuels, bulles, boîtes */
.ctxmenu { position: fixed; z-index: 80; min-width: 190px; padding: 2px; background: #fff; border: 1px solid #8c8c8c; box-shadow: 2px 2px 5px rgba(0,0,0,.35);
  animation: menu-in .1s ease-out; }
.ctxmenu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 4px 18px 4px 8px; text-align: left; cursor: default; }
.ctxmenu button:hover:not(:disabled) { background: var(--sel); color: #fff; }
.ctxmenu button:disabled { color: #9a9a9a; }
.ctxmenu b { font-weight: bold; }
.ctxmenu hr { border: 0; border-top: 1px solid #c9c9c9; margin: 2px 0; }
.balloon { position: fixed; right: 12px; bottom: calc(var(--task-h) + 10px); z-index: 90; width: 300px; max-width: calc(100vw - 24px);
  background: #ffffe1; border: 1px solid #555; border-radius: 8px; padding: 10px 12px 10px 12px; box-shadow: 2px 3px 8px rgba(0,0,0,.35);
  animation: menu-in .2s ease-out; cursor: pointer; }
.balloon::after { content: ""; position: absolute; right: 40px; bottom: -10px; border: 10px solid transparent; border-top-color: #ffffe1; border-bottom: 0; }
.balloon h4 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.balloon h4 svg { width: 16px; height: 16px; }
.balloon p { margin: 0; }
.balloon.error h4 { color: var(--err); } .balloon.success h4 { color: var(--ok); }
.balloon.notice { width: 340px; cursor: default; }
.balloon.notice h4 { padding-right: 18px; } .balloon.notice p { line-height: 1.45; overflow-wrap: anywhere; }
.balloon.warning h4 { color: #a35a00; }
.balloon-x { position: absolute; top: 5px; right: 6px; width: 17px; height: 17px; padding: 0; border: 1px solid transparent; border-radius: 3px;
  background: none; color: #555; font: bold 13px/14px var(--font); cursor: pointer; }
.balloon-x:hover { border-color: #b9b39a; background: #fff8c8; color: #000; }
.modal-veil { position: fixed; inset: 0 0 var(--task-h) 0; z-index: 70; background: rgba(0,0,0,.08); display: grid; place-items: center; }
.msgbox .wcontent { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 6px; }
.msgbox .wcontent > svg { width: 36px; height: 36px; flex: none; }
.msgbox .actions { display: flex; justify-content: center; gap: 8px; padding: 10px 12px 14px; }
/* avis sur la qualité du service (fin de partie) */
.msgbox.feedback .wcontent { display: block; padding: 14px 18px 2px; }
.fb p { margin: 0 0 10px; }
.fb-faces { display: flex; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.fb-face { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; padding: 8px 4px 6px; font: inherit; color: inherit;
  background: transparent; border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
.fb-face svg.face { width: 48px; height: 48px; transition: transform .12s, filter .12s, opacity .12s; }
.fb-face:hover svg.face, .fb-face:focus-visible svg.face { transform: scale(1.12); }
.fb-face[aria-checked="true"] { border-color: #316ac5; background: #dce8fb; }
.fb-faces:has([aria-checked="true"]) .fb-face[aria-checked="false"] svg.face { filter: grayscale(.85); opacity: .55; }
.fb label { display: block; }
.fb textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; resize: vertical; }
.fb-err { color: #b00020; min-height: 1.2em; margin-top: 4px; }
.fb-kpi { display: flex; gap: 14px; align-items: center; margin: 4px 0; font-size: 18px; font-weight: bold; }
.fb-kpi svg.ic { width: 26px; height: 26px; vertical-align: middle; }
svg.ic.face-s { width: 20px; height: 20px; vertical-align: middle; }

/* ------------------------------------------------------------------ contrôles « années 2000 » dans les fenêtres */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 75px; min-height: 28px; padding: 4px 12px; line-height: 1.35; vertical-align: middle; text-align: center; border: 1px solid #003c74;
  border-radius: 3px; cursor: pointer; color: #111 !important; text-decoration: none !important;
  background: linear-gradient(180deg, #ffffff 0, #f3f2ec 45%, #e6e3d6 85%, #d6d0bb 100%); box-shadow: inset -1px -1px 0 #c3bea8; }
.btn:hover:not(:disabled), .btn.primary:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #f8b33a; }
.btn:has(input:focus-visible) { outline: 1px dotted #000; outline-offset: -4px; }
.sr-only:focus-visible + .btn { outline: 1px dotted #000; outline-offset: -4px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn:active { background: linear-gradient(180deg, #e3e0d2, #f2f1ea); }
.btn:disabled { color: #a3a094 !important; border-color: #b9b6a6; cursor: default; box-shadow: none; }
.btn.primary { font-weight: bold; box-shadow: inset 0 0 0 2px #7aa7f5; }
.btn.big { font-size: 15px; padding: 8px 22px; }
.btn.play { font-size: 16px; padding: 9px 26px; color: #fff !important; border-color: #1d6513; text-shadow: 1px 1px 1px #1d5011; font-weight: bold;
  background: linear-gradient(180deg, #7ad66a 0, #3fae2f 45%, #2f9022 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.25); }
.btn.play:disabled { filter: grayscale(1); opacity: .55; box-shadow: none; cursor: default; }
.btn.play:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 2px #f8b33a; }
.btn.danger { color: #7a1408 !important; }
.btn.danger:disabled { color: #c4aaa5 !important; }
.btn svg.ic { width: 14px; height: 14px; }
.btn.small { min-width: 26px; min-height: 24px; padding: 3px 8px; font-size: 11px; }
form.inline { display: inline; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; padding: 3px 5px; background: #fff; border: 1px solid var(--field); border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 1px solid #f0a530; outline-offset: 0; }
input[type=file] { max-width: 100%; }
label { display: block; margin: 8px 0 3px; color: #222; }
fieldset, .card { border: 1px solid #d0d0bf; border-radius: 4px; padding: 10px 12px; background: var(--face-2); margin: 0 0 12px; }
legend { color: #0046d5; padding: 0 4px; }
h1 { font-size: 18px; margin: 0 0 10px; color: #0b2f8a; } h2 { font-size: 14px; margin: 16px 0 8px; color: #0b2f8a; } h3 { font-size: 13px; margin: 12px 0 6px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 11px; } .mono { font-family: var(--mono); font-size: 11px; }
.grid { display: grid; gap: 12px; } .grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; } .row > * { flex: 1; min-width: 150px; }
.row > a, .row > .btn, .row > .spacer { min-width: 0; } .row > a, .row > .btn { flex: none; }
.spacer { flex: 1; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions > form { margin: 0; flex: 0 1 auto; min-width: 0; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 12px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.page-heading h1 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #e3e1d6; vertical-align: top; }
th { background: linear-gradient(180deg, #fbfbf8, #ebe9de); border-bottom: 1px solid #c9c6b6; border-right: 1px solid #ddd9c9; font-weight: normal; white-space: nowrap; }
tr:hover td { background: #f1f6ff; }
.table-wrap { overflow-x: auto; border: 1px solid #a7a495; background: #fff; }
.table-wrap.card { padding: 0; }
.badge { display: inline-block; padding: 0 6px; border-radius: 9px; font-size: 10.5px; background: #e4e2d8; color: #444; border: 1px solid #cfccbd; white-space: nowrap; }
.b-ready, .b-running, .b-active, .b-done, .b-ok { background: #e3f6dd; color: #1f6f12; border-color: #a7d79a; }
.b-failed, .b-rejected, .b-error { background: #fde4e0; color: #9d1d0e; border-color: #f0a99d; }
.b-installing, .b-testing, .b-analyzing, .b-importing, .b-queued, .b-starting, .b-planned, .b-stopping, .b-warning { background: #fff2cf; color: #7b5300; border-color: #ebcd85; }
.flash { padding: 7px 10px 7px 34px; margin-bottom: 10px; border: 1px solid; position: relative; background: #fff; }
.flash::before { position: absolute; left: 9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-weight: bold; font-size: 11px; display: grid; place-items: center; }
.flash.info { border-color: #7ea6e0; background: #eef4ff; } .flash.info::before { content: "i"; background: #2a6ad6; }
.flash.success { border-color: #93cf86; background: #effbec; } .flash.success::before { content: "✓"; background: #2c8a1d; }
.flash.error { border-color: #e59a8f; background: #fff0ee; } .flash.error::before { content: "!"; background: #c42b1c; }
.kpi { font-size: 22px; font-weight: bold; color: #0b2f8a; } .kpi small { font-size: 11px; color: var(--muted); font-weight: normal; }
.bar, .xp-progress { height: 14px; border: 1px solid #686868; background: #fff; border-radius: 3px; padding: 1px; overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; background: repeating-linear-gradient(90deg, #2bc32b 0 8px, transparent 8px 10px); }
.xp-progress.marquee > i { display: block; height: 100%; width: 34px; background: repeating-linear-gradient(90deg, #3c9c2a 0 8px, transparent 8px 10px);
  animation: marquee 1.6s linear infinite; }
@keyframes marquee { from { transform: translateX(-40px); } to { transform: translateX(520px); } }
pre.log { background: #fff; border: 1px solid #a7a495; padding: 8px; max-height: 360px; overflow: auto; font: 11px/1.4 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 0; }
.cover { width: 100%; aspect-ratio: 4/3; object-fit: fill; background: #000; border: 1px solid #a7a495; }
.countdown { font-family: var(--mono); color: #b33a00; font-weight: bold; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid #919b9c; margin: -4px -4px 12px; padding: 0 4px; }
.tabs a { padding: 4px 10px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #fff, #ecebe5);
  color: #111; text-decoration: none; margin-bottom: -1px; }
.tabs a:hover { box-shadow: inset 0 2px 0 #f8b33a; }
.tabs a.on { background: var(--face-2); border-top: 2px solid #f8b33a; font-weight: bold; padding-bottom: 5px; }
/* Volet des tâches, comme dans l'Explorateur XP. */
.admin-shell { display: grid; grid-template-columns: 162px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-nav { padding: 10px; background: linear-gradient(180deg, #7ba2e7, #637ed4); border: 1px solid #5c7ec4; border-radius: 3px; }
.nav-group { margin-bottom: 12px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group h2 { margin: 0; padding: 6px 9px; font-size: 11px; color: #214486; background: linear-gradient(90deg, #fff, #cbdaf6); border-radius: 3px 3px 0 0; }
.nav-group > div { padding: 4px; background: #d6dff7; border: 1px solid #fff; border-top: 0; }
.admin-nav a { display: flex; align-items: center; gap: 6px; padding: 6px 4px; color: #1d4384; border: 1px solid transparent; border-radius: 2px; font-size: 11px; }
.admin-nav a:hover { background: #edf3ff; text-decoration: none; border-color: #8faee5; }
.admin-nav a.on { background: #fff; border-color: #8faee5; color: #123b7d; font-weight: bold; box-shadow: inset 3px 0 #efa62b; }
.admin-nav a:focus-visible { outline: 1px dotted #123b7d; outline-offset: -3px; }
.admin-content { min-width: 0; }
.admin-content .mono { overflow-wrap: anywhere; }
@container (max-width: 720px) {
  .admin-shell { grid-template-columns: 1fr; gap: 12px; }
  .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px; }
  .nav-group { margin: 0; }
  .nav-group > div { display: flex; flex-wrap: wrap; gap: 2px; }
}
@container (max-width: 430px) {
  .admin-nav { grid-template-columns: 1fr; }
  .row > * { min-width: min(150px, 100%); }
  .form-actions .btn { flex: 1 1 auto; }
}
.lock { color: var(--muted); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.img-tile { background: #fff; border: 1px solid #b5b2a3; padding: 6px; display: flex; flex-direction: column; gap: 5px; position: relative; cursor: grab; }
.img-tile.main { border: 2px solid #f0a530; padding: 5px; }
.img-tile.drag { opacity: .4; } .img-tile.over { outline: 2px dashed var(--sel); }
.img-tile img { width: 100%; aspect-ratio: 4/3; object-fit: fill; background: #111; }
.img-tile .tag { position: absolute; top: 9px; left: 9px; background: #f0a530; color: #3a2400; font-size: 10px; font-weight: bold; padding: 1px 5px; border-radius: 2px; }
.img-tile .acts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.img-tile .acts .btn { grid-column: span 2; min-width: 0; padding: 2px 4px; }
.img-tile .acts .btn[data-a="replace"], .img-tile .acts .btn[data-a="del"] { grid-column: span 3; }
.dropzone { border: 2px dashed #8aa6d8; background: #f4f8ff; padding: 14px; text-align: center; color: #3a5a99; margin-bottom: 10px; }
.dropzone.over { background: #e1ecff; border-color: var(--sel); }

/* ------------------------------------------------------------------ fenêtre « jeu de la semaine » */
.wotw { display: grid; grid-template-columns: minmax(240px, 1.1fr) 1fr; gap: 16px; }
@media (max-width: 760px) { .wotw { grid-template-columns: 1fr; } }
.wotw .shot { background: #000; border: 2px solid #fff; box-shadow: 0 0 0 1px #9d9a8a, 2px 3px 6px rgba(0,0,0,.25); }
.wotw .shot img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: fill; }
.thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid transparent; background: #000; cursor: pointer; flex: none; }
.thumbs button.on { border-color: #f0a530; }
.thumbs img { display: block; width: 72px; height: 54px; object-fit: fill; }
.gtitle { font-size: 22px; color: #0b2f8a; margin: 0 0 2px; font-family: "Trebuchet MS", var(--font); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 10px 0; padding: 8px 10px; background: #fff; border: 1px solid #d0d0bf; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: bold; }
.howto { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }
.howto div { background: #fff; border: 1px solid #d0d0bf; padding: 8px; display: flex; gap: 8px; align-items: flex-start; }
.howto svg { width: 32px; height: 32px; flex: none; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 10px; }
.lib-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #c9c6b6; padding: 10px; }
.lib-card > img, .lib-card > svg { width: 64px; height: 64px; flex: none; }
.lib-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lib-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-info .badge { align-self: flex-start; white-space: normal; }
.lib-acts { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.lib-acts form .btn { width: 100%; }
.btn.play.small-play { font-size: 13px; padding: 5px 12px; }
.archive-card { display: flex; gap: 10px; background: #fff; border: 1px solid #c9c6b6; padding: 8px; }
.archive-card img { width: 120px; height: 90px; object-fit: fill; background: #000; filter: grayscale(.7); flex: none; }
.vote-card { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #c9c6b6; padding: 8px; cursor: pointer; }
.vote-card:has(input:checked) { border-color: #1f57d6; box-shadow: 0 0 0 2px #9db4e6; background: #f2f6ff; }
.vote-card:has(input:disabled) { cursor: default; }
.vote-card input { margin-top: 36px; flex: none; }
.vote-card img { width: 120px; height: 90px; object-fit: fill; background: #000; flex: none; }
.vote-card .vote-ph { width: 90px; height: 90px; flex: none; }
.vote-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vote-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vote-bar { display: inline-block; height: 10px; background: linear-gradient(#5fbf4f, #2f9e2c); vertical-align: middle; min-width: 2px; }
.msgbox.launch .wcontent > div { max-height: 55vh; overflow: auto; }

/* ------------------------------------------------------------------ fenêtre de jeu */
.gamewin .wbody { background: #000; }
.pinballwin .wbody { background: #050505; }
.pinballwin .wcontent { background: #050505; color: #fff; }
.pinball-frame { display: block; width: 100%; height: 100%; border: 0; background: #050505; }
.gbar { display: flex; align-items: center; gap: 4px; padding: 3px 6px; flex-wrap: nowrap; overflow: hidden; background: linear-gradient(180deg, #faf9f4, #ebe8d8); border-bottom: 1px solid #a7a495; }
.gbar .btn { min-width: 0; padding: 2px 8px; white-space: nowrap; flex: none; }
.gbar .small { white-space: nowrap; }
.gbar .isel { width: auto; max-width: 170px; min-height: 0; padding: 1px 2px; font-size: 11px; }
.gbar label { display: flex; align-items: center; gap: 3px; margin: 0; white-space: nowrap; }
.gbar .stats { font: 11px var(--mono); color: #444; padding: 0 6px; white-space: nowrap; }
.gbar .badge { flex: none; }
td.row-actions { white-space: nowrap; }
td.row-actions > * { display: inline-block; vertical-align: middle; margin: 0 4px 0 0; }
.gstage { position: relative; flex: 1; min-height: 0; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; outline: none; }
.gstage canvas { max-width: 100%; max-height: 100%; cursor: none; background: #000; display: block; }
.gstage.pixel canvas { image-rendering: pixelated; }
.gstage canvas.gcursor { position: absolute; left: 0; top: 0; max-width: none; max-height: none; background: none; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.ipanel { position: absolute; inset: 6% 8%; z-index: 9; overflow: auto; margin: 0; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.ipanel select { width: 100%; margin-bottom: 6px; }
.picker { height: 210px; overflow: auto; background: #fff; border: 1px solid #7f9db9; font-size: 11px; }
.picker ul { list-style: none; margin: 0; padding: 0; }
.picker li { padding: 2px 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker li small { color: #777; }
.picker li:hover, .picker li.on { background: #316ac5; color: #fff; }
.picker li:hover small, .picker li.on small { color: #dfe8ff; }
.pick-path { position: sticky; top: 0; display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 3px 6px; background: #ece9d8; border-bottom: 1px solid #c9c6b6; }
.pick-path .btn { min-width: 0; padding: 1px 6px; }
.istate { padding: 3px 8px; background: #ece9d8; border-top: 1px solid #a7a495; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.6em; }
.gstage:fullscreen { width: 100vw; height: 100vh; }
.gstage:fullscreen canvas:not(.gcursor) { width: 100%; height: 100%; object-fit: contain; }
.gnotice { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; max-width: 90%; background: #ffffe1; color: #222;
  border: 1px solid #555; border-radius: 6px; padding: 8px 12px; box-shadow: 2px 3px 8px rgba(0,0,0,.4); }
.gidle { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); }
.gidle > div { background: #ffffe1; color: #222; border: 1px solid #555; border-radius: 6px; padding: 14px 18px; max-width: 380px; text-align: center; box-shadow: 2px 3px 10px rgba(0,0,0,.5); }
.gidle b { font-size: 14px; }
.gidle .count { font: bold 22px var(--mono); margin: 6px 0 10px; }

/* ---- animation de démarrage (lecteur CD-ROM) */
.boot { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; padding: 16px; background: radial-gradient(ellipse at 50% 35%, #1b4cc4 0, #0b2a7a 55%, #061542 100%); transition: opacity .35s ease; }
.boot.done { opacity: 0; pointer-events: none; }
.boot-logo { width: min(240px, 56%); height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.boot .brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: bold; font-family: "Trebuchet MS", var(--font); text-shadow: 1px 2px 3px #000; }
.boot .brand svg { width: 44px; height: 44px; }
.boot .brand small { display: block; font-size: 11px; font-weight: normal; color: #a8c4ff; letter-spacing: 2px; text-transform: uppercase; }
.drive { position: relative; width: min(330px, 80%); height: 74px; margin-top: 40px; border-radius: 6px; background: linear-gradient(180deg, #f2efe2, #d6d1bd 60%, #bfb9a1);
  box-shadow: 0 4px 12px rgba(0,0,0,.6), inset 0 1px 0 #fff; }
.drive::before { content: ""; position: absolute; left: 6%; right: 6%; top: 14px; height: 12px; border-radius: 2px; background: #6d6857; box-shadow: inset 0 2px 3px #000; }
.drive .led { position: absolute; right: 10%; bottom: 14px; width: 9px; height: 5px; border-radius: 2px; background: #3a3a2e; }
.drive.active .led { background: #ffb21a; box-shadow: 0 0 6px #ffb21a; animation: led .35s steps(2) infinite; }
@keyframes led { 50% { background: #5b3c00; box-shadow: none; } }
.drive .eject { position: absolute; right: 24%; bottom: 11px; width: 26px; height: 9px; border-radius: 2px; background: linear-gradient(180deg, #e9e5d5, #b8b29a); border: 1px solid #8f8a74; }
.drive .label { position: absolute; left: 8%; bottom: 10px; font: bold 10px var(--font); color: #6d6857; letter-spacing: 1px; }
.tray { position: absolute; left: 50%; top: 16px; width: 64%; height: 8px; transform: translateX(-50%); background: #2a2822; border-radius: 1px;
  transition: height .45s ease, top .45s ease; z-index: 1; overflow: visible; }
/* tiroir ouvert : fine plaque beige (même plastique que le lecteur) sortie de la fente */
.drive.open .tray { width: 70%; height: 12px; top: 13px; border-radius: 2px;
  background: linear-gradient(180deg, #f6f3e8, #d4cfb9 70%, #b9b39b); box-shadow: 0 3px 5px rgba(0,0,0,.45), inset 0 1px 0 #fff; }
.disc { position: absolute; left: 50%; top: -112px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 9%, #c9cfdc 9.5% 15%, transparent 15.5%),
              conic-gradient(from 20deg, #e9ecf7, #c5d3f7, #f6d8f0, #d6f5ea, #f3f0c8, #c5d3f7, #e9ecf7);
  box-shadow: 0 0 0 1px #8f9ab8, inset 0 0 0 1px rgba(255,255,255,.6); transition: top .5s ease, opacity .3s; z-index: 2; }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(130deg, rgba(255,255,255,.55), transparent 40%, transparent 60%, rgba(255,255,255,.35)); }
.drive.load .disc { opacity: 1; top: -102px; }            /* posé sur le tiroir */
.drive.in .disc { top: -40px; opacity: 0; transition: top .45s ease-in, opacity .45s ease-in; }   /* rentre dans la fente */
.spinner-disc { width: 92px; height: 92px; border-radius: 50%; margin-top: -4px;
  background: radial-gradient(circle, #0b2a7a 0 9%, #c9cfdc 9.5% 15%, transparent 15.5%),
              conic-gradient(from 0deg, #e9ecf7, #c5d3f7, #f6d8f0, #d6f5ea, #f3f0c8, #c5d3f7, #e9ecf7);
  box-shadow: 0 0 18px rgba(130,170,255,.55); animation: spin 1.2s linear infinite; opacity: 0; transition: opacity .3s; }
.spinner-disc.on { opacity: 1; }
.spinner-disc.fast { animation-duration: .35s; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; margin: 0; padding: 0; width: min(380px, 92%); font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: #8fa6dc; transition: color .2s; }
.steps li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid #4766b0; }
.steps li.cur { color: #fff; font-weight: bold; }
.steps li.cur::before { border-color: #fff; border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.ok { color: #cfe0ff; } .steps li.ok::before { content: "✓"; border: 0; background: #3fae2f; color: #fff; font-size: 10px; display: grid; place-items: center; }
.steps li.ko { color: #ffb4a6; } .steps li.ko::before { content: "!"; border: 0; background: #d23a12; color: #fff; font-size: 10px; display: grid; place-items: center; }
.steps li small { font-weight: normal; color: #a8c4ff; margin-left: 4px; }
.boot .xp-progress { width: min(260px, 70%); border-color: #9fb5e8; background: #071a52; }
.boot .xp-progress > i { background: repeating-linear-gradient(90deg, #5ee04a 0 8px, transparent 8px 10px); }
.boot .bfoot { display: flex; gap: 12px; align-items: center; font-size: 11px; color: #a8c4ff; }
.boot .bfoot label { margin: 0; display: flex; align-items: center; gap: 4px; color: #a8c4ff; cursor: pointer; }
.boot .err { background: #fff; color: #222; border-radius: 4px; padding: 12px 14px; max-width: 420px; display: flex; gap: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.boot .err svg { width: 32px; height: 32px; flex: none; }

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 760px) {
  .win { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
  .win .resizer { display: none; }
  .icons { grid-template-rows: repeat(auto-fill, 84px); grid-auto-columns: 76px; }
  .task { flex-basis: 44px; } .task span { display: none; }
  #startbtn { font-size: 16px; padding-right: 14px; }
  #tray-user { display: none; }
  #startmenu { width: 100vw; }
}
.busy-soft { opacity: .6; pointer-events: none; transition: opacity .15s; }


/* fiche jeu : étape suivante, zone dangereuse */
.next-step { border-left: 4px solid #f8b33a; background: #fffbea; }
.danger-zone { border-color: #e0a99f; background: #fff6f4; }
.danger-zone form + p { margin-top: 14px; }
