/* CRT phosphore vert : gros pixels, crépitement subtil et trame cathodique.
   Le curseur Windows classique et le reste du site ne changent pas. */
body.crt-on #desktop{
  filter:none;
  
}
/* Teinte verte superposée : conserve l'image XP intacte sous le verre. */
body.crt-on #desktop{isolation:isolate}
body.crt-on #desktop::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:16000;
  pointer-events:none;
  background:
    repeating-linear-gradient(0deg,rgba(0,0,0,.19) 0 2px,rgba(0,0,0,.035) 2px 5px,transparent 5px 9px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.14) 0 2px,transparent 2px 10px),
    radial-gradient(ellipse at center,rgba(35,175,68,.25) 0%,transparent 56%,rgba(0,0,0,.16) 100%);
  background-size:100% 9px,10px 100%,100% 100%;\n  box-shadow:inset 0 0 0 100vmax rgba(28,150,58,.16);
  mix-blend-mode:normal;
  opacity:.70;
  animation:crtStatic 160ms steps(3,end) infinite;
}
body.crt-on #desktop::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:15999;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg,transparent 0 6px,rgba(70,235,100,.22) 6px 8px,transparent 8px 12px),
    repeating-linear-gradient(0deg,rgba(70,220,95,.12) 0 1px,transparent 1px 12px);
  background-size:12px 12px;
  mix-blend-mode:screen;
  opacity:.48;
  animation:crtFlicker 115ms steps(2,end) infinite;
}
@keyframes crtStatic{
  0%{background-position:0 0,0 0,0 0;opacity:.66}
  33%{background-position:0 3px,2px 0,0 0;opacity:.73}
  66%{background-position:0 -2px,-2px 0,0 0;opacity:.64}
  100%{background-position:0 1px,0 0,0 0;opacity:.70}
}
@keyframes crtFlicker{
  0%,100%{opacity:.43}
  50%{opacity:.55}
}
@media(prefers-reduced-motion:reduce){
  body.crt-on #desktop::after,
  body.crt-on #desktop::before{animation:none}
}
body.crt-on #desktop .desktop-icon img,
body.crt-on #desktop .start-logo img,
body.crt-on #desktop .title img{image-rendering:pixelated}
body.crt-on #desktop .window{box-shadow:0 0 0 1px rgba(14,37,60,.20),0 10px 23px rgba(0,0,0,.36)}
body.crt-on #nostalgia-toggle{background:linear-gradient(#aadf9d,#539767);color:#102b18;border-color:#326341}
#nostalgia-toggle{white-space:nowrap;flex-shrink:0;min-height:25px}
#nostalgia-toggle:focus-visible{outline:2px solid #f8e6b6;outline-offset:2px}
@media(hover:hover) and (pointer:fine){
  body.crt-on #desktop,
  body.crt-on #desktop *{
    cursor:url("../cursors/classic-arrow.svg") 2 2, default !important;
  }
  body.crt-on #desktop a,
  body.crt-on #desktop button,
  body.crt-on #desktop [role="button"],
  body.crt-on #desktop .desktop-icon,
  body.crt-on #desktop [data-window],
  body.crt-on #desktop select,
  body.crt-on #desktop label,
  body.crt-on #desktop .titlebar{
    cursor:url("../cursors/classic-hand.svg") 8 2, pointer !important;
  }
  body.crt-on #desktop input,
  body.crt-on #desktop textarea{
    cursor:url("../cursors/classic-text.svg") 14 13, text !important;
  }
}
/* Avant la séquence : message bref, puis l'écran s'allume */
#boot-intro .boot-frame{max-width:580px;min-height:270px;position:relative;z-index:1}
#boot-intro .boot-welcome{margin-bottom:24px;animation:bootWelcomeIn .5s ease-out both}
#boot-intro .boot-led{display:inline-block;width:8px;height:8px;border-radius:50%;background:#a9d58a;box-shadow:0 0 12px rgba(169,213,138,.65);vertical-align:middle;margin-right:8px}
#boot-intro .boot-greeting{display:inline-block;margin:0;color:#a0c2e8;font-size:11px;letter-spacing:.18em;text-transform:uppercase}
#boot-intro .boot-welcome h1{font-family:Tahoma,Verdana,sans-serif;font-size:clamp(22px,4.4vw,34px);line-height:1.25;letter-spacing:-.025em;color:#f1f6ff;font-weight:600;margin:16px 0 14px}
#boot-intro .boot-message{color:#b6c8dd;font:14px/1.8 Tahoma,Verdana,sans-serif;max-width:440px}
#boot-intro .boot-message strong{color:#eef4ff;font-weight:700}
#boot-intro .boot-title,#boot-intro .boot-sub,#boot-intro .boot-log,#boot-intro .boot-progress{display:none}
#boot-intro.is-loading .boot-welcome{display:none}
#boot-intro.is-loading .boot-title,#boot-intro.is-loading .boot-sub,#boot-intro.is-loading .boot-log,#boot-intro.is-loading .boot-progress{display:block}
#boot-intro.is-loading .boot-frame{max-width:720px}
#boot-intro .boot-cta{margin-top:20px;flex-wrap:wrap}
#boot-intro .boot-cta button{padding:11px 24px;font-weight:700;font-size:14px;border-color:#6d9fc4;background:#2a5674;color:#fff;transition:background .2s,border-color .2s}
#boot-intro .boot-cta button:hover{background:#376d94;border-color:#b0dbff}
#boot-intro .boot-cta button:focus-visible{outline:2px solid #c8e9ff;outline-offset:3px}
#boot-intro.is-loading .boot-cta{display:none}
@keyframes bootWelcomeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
  #boot-intro{padding:14px}
  #boot-intro .boot-frame{padding:26px 23px;width:100%;min-height:0;border-radius:8px}
  #boot-intro .boot-message{font-size:13px;line-height:1.7}
  #boot-intro .boot-cta{align-items:stretch}
  #boot-intro .boot-cta button{width:100%;padding:14px 20px}
  #boot-intro .boot-cta .hint{display:none}
  #boot-intro .boot-log{height:175px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){#boot-intro .boot-welcome{animation:none}#boot-intro .boot-cta button{transition:none}}
