/* Texte lu par Google et les lecteurs d'écran, invisible à l'écran */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Polices (fichiers locaux) ---------- */
@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/fonts/PixelifySans-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Versions fixes, au cas où le navigateur ne gère pas la police variable */
@font-face { font-family: "Pixelify Sans Static"; src: url("assets/fonts/static/PixelifySans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans Static"; src: url("assets/fonts/static/PixelifySans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pixelify Sans Static"; src: url("assets/fonts/static/PixelifySans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pixelify Sans Static"; src: url("assets/fonts/static/PixelifySans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jockey One"; src: url("assets/fonts/JockeyOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --taskbar-h: 46px;
  --grey: #bfbfbf;       /* barre des tâches du Figma */
  --hi: #fff;
  --lo: #808080;
  --dark: #000;
  --sel: #0a246a;
  /* Polices lisibles de Windows XP (Tahoma) ; Pixelify Sans était illisible en petit (G ≈ 6, e, 9) */
  --pixel: Tahoma, Verdana, "Segoe UI", Geneva, Arial, sans-serif;
  --ui: Tahoma, Verdana, "Segoe UI", Geneva, Arial, sans-serif;
  --ratio: calc(1986 / 1117); /* format du frame Figma */
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: manipulation; /* double tap sans zoom, pincer reste possible */ }
body { font: 13px/1.3 var(--ui); background: #2f6fd8; color: #000; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Écran de démarrage (chargement noir, puis « bienvenue » bleu) ---------- */
.boot { position: fixed; inset: 0; z-index: 20000; /* au-dessus de la barre des tâches (10000) */ background: #000; color: #fff; cursor: pointer; transition: opacity .4s;
  animation: boot-out .4s 4s forwards; } /* filet de sécurité : disparaît même si script.js ne tourne pas */
@keyframes boot-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.boot-logo { width: 92px; height: 128px; filter: invert(1); }
.boot-logo img { position: absolute; width: 402.76%; height: 203.62%; left: -100.69%; top: -50.39%; max-width: none; }
.boot-name { margin: 0; text-align: center; font: 700 40px/1 "Pixelify Sans", var(--ui); letter-spacing: .02em; }
.boot-name span { display: block; margin-top: 10px; font: 13px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #9fb4d8; }
/* barre XP : trois blocs bleus qui défilent dans un cadre arrondi */
.boot-bar { position: relative; width: 156px; height: 22px; margin-top: 34px; padding: 3px; overflow: hidden; border: 2px solid #b2b2b2; border-radius: 5px; }
.boot-bar i { position: absolute; top: 3px; left: 0; width: 9px; height: 12px; border-radius: 2px;
  background: linear-gradient(#2838c7, #3c66ee 35%, #a0c3ff 50%, #3c66ee 65%, #2838c7);
  animation: boot-slide 1.6s linear infinite; }
.boot-bar i:nth-child(2) { animation-delay: .1s; }
.boot-bar i:nth-child(3) { animation-delay: .2s; }
@keyframes boot-slide { from { transform: translateX(-36px); } to { transform: translateX(160px); } }
/* écran d'accueil : bandes bleu foncé, dégradé central, filets clairs */
.boot-welcome { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s;
  background:
    linear-gradient(#00309c 0 12%, transparent 12% 88%, #00309c 88%),
    radial-gradient(ellipse 70% 60% at 30% 40%, #7aa1e6, #5a7edc 55%, #4a6ccc); }
.boot-welcome::before, .boot-welcome::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; }
.boot-welcome::before { top: 12%; background: linear-gradient(90deg, transparent, #fff 40%, transparent); }
.boot-welcome::after { bottom: 12%; background: linear-gradient(90deg, transparent, #f99736 50%, transparent); }
.boot-welcome p { margin: 0; font: italic 700 clamp(40px, 8vw, 72px)/1 Tahoma, var(--ui); text-shadow: 2px 2px 3px rgba(0, 0, 40, .45); }
.boot.is-welcome .boot-welcome { opacity: 1; }
.boot.is-welcome .boot-skip { color: #c8d6f5; }
.boot-skip { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; text-align: center; font-size: 12px; color: #6b6b6b; }
@media (prefers-reduced-motion: reduce) {
  .boot-bar i { animation: none; left: 30%; }
  .boot-bar i:nth-child(2) { left: calc(30% + 11px); }
  .boot-bar i:nth-child(3) { left: calc(30% + 22px); }
}

/* ---------- Bureau ---------- */
.desktop { position: fixed; inset: 0; overflow: hidden; overflow: clip; } /* clip : le focus ne peut pas faire défiler le bureau */

/* Scène qui couvre l'écran en gardant le format du Figma (comme background-size: cover) */
.scene {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100vw, 100vh * var(--ratio));
  height: max(100vh, 100vw / var(--ratio));
  pointer-events: none;
}
.layer { position: absolute; display: block; max-width: none; }
.layer-masked {
  -webkit-mask: url("assets/images/layer-fill-mask.svg") 0 0 / 100% 100% no-repeat;
  mask: url("assets/images/layer-fill-mask.svg") 0 0 / 100% 100% no-repeat luminance;
}

/* Phrase d'explication : bulle de BD qui sort de la bouche du personnage */
.scene-overlay { z-index: 2; }
/* Style croquis : contour au crayon qui tremble, écriture à la main. Cachée par défaut,
   affichée (.is-shown) quelques secondes à l'arrivée, puis au survol de moi ou de la télé. */
.desktop-hint {
  position: absolute; right: 38.5%; bottom: calc(61% + 4px);
  width: clamp(210px, 17vw, 300px); padding: 16px 20px 18px;
  font: clamp(16px, 1.15vw, 20px)/1.2 "Patrick Hand", "Comic Sans MS", var(--pixel); color: #1a1a1a; text-align: center;
  transform-origin: 92% 120%; transform: rotate(-2deg) scale(.6); opacity: 0; visibility: hidden;
  transition: transform .25s ease-in, opacity .25s ease-in, visibility 0s .25s;
}
.desktop-hint p { position: relative; margin: 0; opacity: 0; transition: opacity .2s; }
.desktop-hint svg { position: absolute; overflow: visible; filter: url(#crayon); pointer-events: none; }
.hint-body { inset: 0; width: 100%; height: 100%; }
.hint-tail { right: 14px; top: calc(100% - 3px); width: 34px; height: 34px; }
.desktop-hint path { fill: none; stroke: #1a1a1a; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hint-body path { vector-effect: non-scaling-stroke; }
.hint-body .pass1 { fill: #fffdf6; stroke-width: 2.6; fill-opacity: 0; }
.hint-body .pass2 { stroke-width: 1.2; opacity: .55; }
.hint-tail path { fill: none; stroke-width: 2.6; }
.hint-tail .tf { fill: #fffdf6; stroke: none; fill-opacity: 0; }

.desktop-hint.is-shown {
  transform: rotate(-2deg); opacity: 1; visibility: visible;
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), opacity .15s, visibility 0s;
}
.desktop-hint.is-shown p { opacity: 1; transition-delay: .35s; }
.desktop-hint.is-shown .pass1 { animation: draw .5s ease-out forwards, fill-in .2s .35s forwards; }
.desktop-hint.is-shown .pass2 { animation: draw .45s ease-out .25s forwards; }
.desktop-hint.is-shown .hint-tail path { animation: draw .2s ease-out .45s forwards; }
.desktop-hint.is-shown .hint-tail .tf { animation: fill-in .15s .4s forwards; }
.desktop-hint.ping { animation: wiggle .45s ease-in-out 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes wiggle { 25% { transform: rotate(-5deg); } 75% { transform: rotate(1deg); } }

/* Zones de survol (invisibles) sur moi et la télé */
.hint-zone { position: absolute; pointer-events: auto; cursor: help; }
/* « … » près de la tête : invite à survoler quand la bulle est cachée */
.hint-dots { position: absolute; right: 39.2%; bottom: 58.6%; display: flex; gap: 5px; pointer-events: none; transition: opacity .2s; }
.hint-dots i { width: 9px; height: 9px; border: 2px solid #1a1a1a; border-radius: 50% 45% 55% 48%; background: #fffdf6; animation: bob 1.4s ease-in-out infinite; }
.hint-dots i:nth-child(2) { animation-delay: .15s; }
.hint-dots i:nth-child(3) { animation-delay: .3s; }
.desktop-hint.is-shown ~ .hint-dots, .hint-dots:has(~ .desktop-hint.is-shown) { opacity: 0; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  .desktop-hint, .desktop-hint.is-shown { transition: opacity .2s, visibility 0s; }
  .desktop-hint path { stroke-dasharray: none; animation: none !important; fill-opacity: 1 !important; }
  .hint-dots i { animation: none; }
}

/* ---------- Icônes du bureau ---------- */
.desktop-icons { position: absolute; inset: 0 0 var(--taskbar-h) 0; z-index: 1; pointer-events: none; }
.desk-icon {
  --ico: 64px; /* même boîte pour toutes les icônes */
  position: absolute; left: 4px; width: 100px; padding: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; pointer-events: auto;
  touch-action: none; /* le doigt peut glisser l'icône, pas de zoom au double tap */
  user-select: none; -webkit-user-select: none;
}
.desk-icon.dragging { z-index: 5; cursor: grabbing; opacity: .85; }
.desk-icon.dragging img { transform: none; }
.desk-icon img { width: var(--ico); height: var(--ico); object-fit: contain; transition: transform .15s; }
/* grille régulière : même pas horizontal et vertical (--pitch) */
.desktop-icons { --pitch: 104px; }
.desk-icon { left: calc(8px + var(--x) * var(--pitch)); top: calc(12px + var(--y) * var(--pitch)); }

/* ---------- CV : page cv/cv.html dans un cadre ---------- */
#win-cv:not(.maximized) { width: min(880px, calc(100vw - 16px)); height: min(700px, calc(100% - 16px)); }
.cv-menu a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; font: 13px var(--ui); color: #000; text-decoration: none; }
.cv-menu a:hover, .cv-menu a:focus-visible { background: #316ac5; color: #fff; outline: none; }
.cv-body { padding: 0; overflow: hidden; background: #d9d9d9; }
.cv-body iframe { display: block; width: 100%; height: 100%; border: 0; }

.logo-crop { position: relative; width: 46px; height: 64px; overflow: hidden; display: block; }
/* Explication : logo réduit dans la même boîte que les autres icônes */
.desk-icon .logo-crop { height: calc(var(--ico) * .82); width: calc(var(--ico) * .82 * 46 / 64); margin: calc(var(--ico) * .09) 0; }
.desk-icon .logo-crop img { /* recadrage identique au Figma */
  position: absolute; width: 402.76%; height: 203.62%; left: -100.69%; top: -50.39%;
  max-width: none; object-fit: fill; transition: none;
}

.label {
  font: bold 12px/1.5 var(--pixel); color: #fff; text-align: center;
  text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 1px 0 0 #000; padding: 1px 3px;
}
.desk-icon:hover img:not(.logo-crop img) { transform: scale(1.08); }
.desk-icon:hover .logo-crop { transform: scale(1.08); }
.desk-icon:focus { outline: none; }
.desk-icon.selected .label, .desk-icon:focus-visible .label { background: var(--sel); outline: 1px dotted #fff; }
.desk-icon.selected img, .desk-icon:focus-visible img { filter: drop-shadow(0 0 0 var(--sel)) brightness(.8) sepia(1) hue-rotate(190deg) saturate(3); }

/* ---------- Fenêtres XP ---------- */
.windows { position: absolute; inset: 0 0 var(--taskbar-h) 0; z-index: 3; pointer-events: none; }
.window {
  position: absolute; width: min(560px, calc(100vw - 16px)); height: min(380px, calc(100% - 16px));
  display: flex; flex-direction: column; pointer-events: auto;
  background: #ece9d8; border: 3px solid #0831d9; border-top: 0; border-radius: 8px 8px 0 0;
  box-shadow: 3px 4px 12px rgba(0,0,0,.35);
  animation: win-open .14s ease-out;
}
.window:focus { outline: none; }
.window:not(.active) { border-color: #7a96df; }
.window.maximized { left: 0 !important; top: 0 !important; width: 100%; height: 100%; border-radius: 0; }
@keyframes win-open { from { transform: scale(.94); opacity: 0; } }

.title-bar {
  flex: none; height: 30px; margin: 0 -3px; padding: 0 5px 0 7px;
  display: flex; align-items: center; gap: 6px;
  color: #fff; border-radius: 8px 8px 0 0; cursor: default; user-select: none; touch-action: none;
  background: linear-gradient(#0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7);
}
.window.maximized .title-bar { border-radius: 0; }
.window:not(.active) .title-bar { background: linear-gradient(#7697e7, #7e9ee3 10%, #94afe8 90%, #9db5ea); }
.title-icon { width: 16px; height: 16px; object-fit: contain; flex: none; }
.title-text { flex: 1; min-width: 0; font: bold 14px var(--ui); text-shadow: 1px 1px #0f1089; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-controls { display: flex; gap: 2px; flex: none; }
.title-controls button { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.title-controls img { width: 22px; height: 22px; display: block; }
.title-controls button:hover img { filter: brightness(1.15); }
.title-controls button:active img { filter: brightness(.85); }
.title-controls button:focus-visible { outline: 1px dotted #fff; }
.window:not(.active) .title-controls img { opacity: .75; }
/* Au doigt : zone tactile de 44 px autour des petits boutons, sans changer leur dessin */
@media (pointer: coarse) {
  .title-controls { gap: 22px; }
  .title-controls button, .show-desktop { position: relative; }
  .title-controls button::after, .show-desktop::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
}

.window-body { flex: 1; min-height: 0; overflow: auto; margin: 0 0 0; background: #fff; border-top: 1px solid #a0a0a0; }
.folder-view { padding: 16px; }
.folder-empty { margin: 0; color: #555; font-size: 13px; }

/* ---------- Fenêtre dossier « explorateur XP » (réinterprétation du Figma en HTML/CSS) ---------- */
.window.xpx:not(.maximized) { width: min(980px, calc(100vw - 16px)); height: min(620px, calc(100% - 16px)); }
.xpx { font: 14px/1.3 var(--ui); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xpx-bar { flex: none; display: flex; align-items: center; background: #ece9d8; border-bottom: 1px solid #d6d3d1; }

/* Barre de menus */
.xpx-menu { height: 30px; padding-left: 2px; position: relative; z-index: 2; }
.xpx-mi { position: relative; height: 100%; }
.xpx-mi > button { height: 100%; padding: 0 10px; border: 0; background: none; }
.xpx-mi > button:hover, .xpx-mi > button[aria-expanded="true"] { background: #316ac5; color: #fff; }
.xpx-drop {
  position: absolute; left: 0; top: 100%; min-width: 200px; padding: 2px;
  display: flex; flex-direction: column; background: #fff; border: 1px solid #aca899; box-shadow: 2px 2px 4px rgba(0,0,0,.3);
}
.xpx-drop button { text-align: left; padding: 5px 22px; border: 0; background: none; white-space: nowrap; }
.xpx-drop button:hover, .xpx-drop button:focus-visible { background: #316ac5; color: #fff; outline: none; }
.xpx-logo { margin-left: auto; height: 30px; width: auto; padding: 3px 10px; background: #fff; border-left: 1px solid #d6d3d1; }

/* Barre d'outils */
.xpx-tools { height: 50px; padding: 0 6px; gap: 2px; overflow: hidden; background: linear-gradient(#fbfbf9, #ece9d8); }
.xpx-tb {
  height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 3px; background: none; white-space: nowrap;
}
.xpx-tb:hover:not(:disabled) { border-color: #cecec3; background: linear-gradient(#fff, #f1efe6); box-shadow: inset 0 -1px #d8d4c3; }
.xpx-tb:active:not(:disabled) { background: #e3e0d0; box-shadow: inset 1px 1px 2px rgba(0,0,0,.15); }
.xpx-tb:disabled { opacity: .45; cursor: default; }
.xpx-tb[aria-pressed="true"] { background: #fff; border-color: #cecec3; }
.xpx-round { width: 32px; height: 32px; flex: none; }
.xpx-round circle { fill: #3fae2a; stroke: #237a17; stroke-width: 1.5; }
.xpx-round path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.xpx-tb:disabled .xpx-round circle { fill: #9a9a9a; stroke: #777; }
.xpx-ico { width: 30px; height: 30px; flex: none; object-fit: contain; }
.xpx-up { position: relative; width: 32px; height: 32px; }
.xpx-up img { width: 30px; height: 30px; object-fit: contain; }
.xpx-up svg { position: absolute; right: -2px; top: -2px; width: 18px; height: 18px; fill: #3fae2a; stroke: #1e6a12; stroke-width: 1; }
.xpx-caret { font-size: 12px; margin-left: -4px; }
.xpx-sep { align-self: stretch; width: 1px; margin: 7px 5px; background: #c5c2b2; box-shadow: 1px 0 #fff; }

/* Barre d'adresse */
.xpx-address { height: 38px; gap: 8px; padding: 0 6px 0 10px; }
.xpx-address label { color: #555; }
.xpx-field {
  flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 6px; padding-left: 5px;
  background: #fff; border: 1px solid #7f9db9;
}
.xpx-field img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.xpx-addr { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; color: #000; cursor: pointer; }
.xpx-addr:focus-visible { outline: 1px dotted #000; }
.xpx-go { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px; border: 0; background: none; }
.xpx-go svg { width: 20px; height: 20px; }
.xpx-go rect { fill: #3fae2a; } .xpx-go path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xpx-go:hover { text-decoration: underline; }

/* Volet des tâches (gauche) */
.xpx-main { flex: 1; min-height: 0; display: flex; }
.xpx-side {
  flex: none; width: 270px; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(#7ba2e7, #6375d6); border-top: 1px solid #a0a0a0;
}
.xpx.no-side .xpx-side { display: none; }
.xpx-panel { flex: none; border-radius: 4px 4px 0 0; overflow: hidden; }
.xpx-ph {
  width: 100%; height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px;
  border: 0; text-align: left; font-weight: bold; color: #215dc6;
  background: linear-gradient(90deg, #fff 30%, #c6d3f7);
}
.xpx-panel:first-child .xpx-ph { color: #fff; background: linear-gradient(90deg, #0c32b5, #2663de); }
.xpx-ph::after { /* chevron rond */
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 8l4-4 4 4M5 13l4-4 4 4' fill='none' stroke='%23215dc6' stroke-width='1.8'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px #b2c4ef;
}
.xpx-ph[aria-expanded="false"]::after { transform: rotate(180deg); }
.xpx-ph:hover { color: #428eff; }
.xpx-panel:first-child .xpx-ph:hover { color: #c6d9ff; }
.xpx-pb { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; background: #d6dff7; border: 1px solid #fff; border-top: 0; }
.xpx-panel:first-child .xpx-pb { background: #eff3ff; }
.xpx-ph[aria-expanded="false"] + .xpx-pb { display: none; }
.xpx-pb button {
  display: flex; align-items: center; gap: 8px; padding: 4px 2px;
  border: 0; background: none; text-align: left; color: #0c32b5;
}
.xpx-pb button:hover, .xpx-pb button:focus-visible { color: #2d6cf0; text-decoration: underline; outline: none; }
.xpx-pb img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.xpx-details p { margin: 0; font-size: 13px; color: #000; }
.xpx-details b { display: block; margin-bottom: 4px; }

/* Zone des fichiers */
.xpx-view { background: #fff; }

/* Barres de défilement façon XP (Chrome, Edge, Safari) ; Firefox : couleurs simples */
.xpx-view::-webkit-scrollbar, .xpx-side::-webkit-scrollbar { width: 17px; height: 17px; }
.xpx-view::-webkit-scrollbar-track, .xpx-side::-webkit-scrollbar-track { background: #f4f3ee; box-shadow: inset 1px 0 #e3e2da; }
.xpx-view::-webkit-scrollbar-thumb, .xpx-side::-webkit-scrollbar-thumb {
  border: 1px solid #fff; border-radius: 3px; box-shadow: inset 0 0 0 1px #b6c8f5;
  background: linear-gradient(90deg, #c9d8fc, #b5cbfb 50%, #a7bdf3);
}
.xpx-view::-webkit-scrollbar-thumb:hover, .xpx-side::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #dbe6ff, #c6d8ff 50%, #b6cbf9); }
.xpx-view::-webkit-scrollbar-button:single-button, .xpx-side::-webkit-scrollbar-button:single-button {
  display: block; height: 17px; border-radius: 3px; border: 1px solid #fff; box-shadow: inset 0 0 0 1px #b6c8f5;
  background: #c9d8fc center / 9px no-repeat;
}
.xpx-view::-webkit-scrollbar-button:single-button:vertical:decrement, .xpx-side::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 5l3.5-3.5L8 5' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E");
}
.xpx-view::-webkit-scrollbar-button:single-button:vertical:increment, .xpx-side::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E");
}
.xpx-view::-webkit-scrollbar-button:single-button:hover, .xpx-side::-webkit-scrollbar-button:single-button:hover { background-color: #dbe6ff; }
@supports not selector(::-webkit-scrollbar) {
  .xpx-view, .xpx-side { scrollbar-color: #b5cbfb #f4f3ee; }
}

@media (max-width: 1000px) {
  .xpx-side { display: none; }
  .xpx-tb span:not(.xpx-up):not(.xpx-caret):not(.sr) { display: none; }
  .xpx-tb[data-xpx="side"] { display: none; }
}

/* Vignettes de projets : image + nom de fichier à droite, positions du Figma */
.thumbs {
  list-style: none; margin: 0; padding: 33px 21px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 51px 24px; max-width: 888px;
}
/* ---------- Projet IC : extraits, photo, vidéo YouTube, présentation (de haut en bas) ---------- */
.ic { overflow: hidden auto; container-type: inline-size; background: #000; color: #fff; border-top-color: #000; }
.ic-page { --pad: 24px; --gap: 12px; max-width: 1100px; margin: 0 auto; padding: 20px 0 48px; display: flex; flex-direction: column; gap: 32px; }

/* 1. Rangée d'extraits : 3,5 carrés visibles (le dernier dépasse du bord), défilement horizontal aimanté */
.ic-clips {
  --sq: calc((min(100cqw, 1100px) - var(--pad) - 3 * var(--gap)) / 3.5);
  list-style: none; margin: 0; padding: 0 var(--pad);
  display: flex; gap: var(--gap); overflow: auto hidden;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.ic-clips li {
  flex: 0 0 var(--sq); height: var(--sq); scroll-snap-align: start;
  overflow: hidden;
  transition: flex-basis .25s ease;
}
.ic-clips video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Survol (souris uniquement) : la case s'élargit vers le 16:9 et pousse ses voisines */
@media (hover: hover) and (pointer: fine) {
  .ic-clips li:hover { flex-basis: calc(var(--sq) * 16 / 9); }
}
@media (prefers-reduced-motion: reduce) { .ic-clips li { transition: none; } }

/* Variante WeLoveGreen : la case survolée ressort (ombre) ; marge verticale pour ne pas couper l'ombre */
.ic-clips--pop { padding-block: 10px; margin-block: -10px; }
.ic-clips--pop li { position: relative; transition: flex-basis .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .ic-clips--pop li:hover { flex-basis: calc(var(--sq) * 16 / 9); box-shadow: 0 4px 12px rgba(0, 0, 0, .55); z-index: 1; }
}

/* 2. Photo (pleine largeur) */
.ic-photo { display: block; width: calc(100% - 2 * var(--pad)); margin: 0 var(--pad); height: auto; }
/* Bloc YouTube en retrait par rapport à la photo (mise en page de référence) */
.ic-yt--inset { margin-inline: calc(var(--pad) + 7%); }

/* 3. Bloc YouTube : couverture + gros bouton lecture, lecteur chargé au clic */
.ic-yt {
  position: relative; margin: 0 var(--pad); aspect-ratio: 16 / 9; overflow: hidden;
}
.ic-yt-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.ic-yt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.ic-yt-play { /* bouton rond vert façon XP, assez grand pour le doigt */
  position: relative; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a6e88a, #3fae2a 60%, #237a17);
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .6); transition: transform .2s;
}
.ic-yt-play::after { content: ""; position: absolute; left: 36px; top: 26px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; }
.ic-yt-cover:hover img { filter: brightness(.85); }
.ic-yt-cover:hover .ic-yt-play, .ic-yt-cover:focus-visible .ic-yt-play { transform: scale(1.08); }
.ic-yt-cover:focus-visible { outline: 2px dotted #fff; outline-offset: -6px; }
.ic-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 4. Présentation : logos à gauche, texte du Figma */
.ic-about { display: flex; gap: 28px; align-items: flex-start; padding: 0 var(--pad); }
.ic-logos { flex: none; display: flex; flex-direction: column; gap: 16px; }
.ic-logos img { width: 100px; height: auto; display: block; }
.ic-text { max-width: 740px; font: 24px/1.2 "Jockey One", var(--ui); color: #fff; }
.ic-text p { margin: 0; }
.ic-text b { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: normal; }
/* Variante claire (AirF) : fond blanc, texte de la couleur des logos Adobe */
.ic--light { background: #fff; color: #000b1d; border-top-color: #a0a0a0; }
.ic--light .ic-text { color: #000b1d; }
.ic--light .ic-yt-cover:focus-visible { outline-color: #000b1d; }

/* Fenêtre étroite (téléphone) : 1,6 carré visible, texte sous les logos */
@container (max-width: 640px) {
  .ic-page { --pad: 16px; gap: 24px; }
  .ic-clips { --sq: calc((100cqw - var(--pad) - var(--gap)) / 1.6); }
  .ic-about { flex-direction: column; gap: 16px; }
  .ic-logos { flex-direction: row; }
  .ic-logos img { width: 72px; }
  .ic-text { font-size: 19px; }
  .ic-yt--inset { margin-inline: var(--pad); }
}

/* Barres de défilement façon XP (page et rangée d'extraits) */
.ic::-webkit-scrollbar, .ic-clips::-webkit-scrollbar, .gx::-webkit-scrollbar { width: 17px; height: 17px; }
.ic::-webkit-scrollbar-track, .ic-clips::-webkit-scrollbar-track, .gx::-webkit-scrollbar-track { background: #f4f3ee; }
.ic::-webkit-scrollbar-thumb, .ic-clips::-webkit-scrollbar-thumb, .gx::-webkit-scrollbar-thumb {
  border: 1px solid #fff; border-radius: 3px; box-shadow: inset 0 0 0 1px #b6c8f5;
  background: linear-gradient(90deg, #c9d8fc, #b5cbfb 50%, #a7bdf3);
}
.ic-clips::-webkit-scrollbar-thumb { background: linear-gradient(#c9d8fc, #b5cbfb 50%, #a7bdf3); }
.ic::-webkit-scrollbar-thumb:hover, .ic-clips::-webkit-scrollbar-thumb:hover, .gx::-webkit-scrollbar-thumb:hover { filter: brightness(1.06); background: #c6d8ff; }
.ic::-webkit-scrollbar-button:single-button, .ic-clips::-webkit-scrollbar-button:single-button, .gx::-webkit-scrollbar-button:single-button {
  display: block; width: 17px; height: 17px; border-radius: 3px; border: 1px solid #fff; box-shadow: inset 0 0 0 1px #b6c8f5;
  background: #c9d8fc center / 9px no-repeat;
}
.ic::-webkit-scrollbar-button:single-button:vertical:decrement, .gx::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 5l3.5-3.5L8 5' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E");
}
.ic::-webkit-scrollbar-button:single-button:vertical:increment, .gx::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E");
}
.ic-clips::-webkit-scrollbar-button:single-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M5 1L1.5 4.5 5 8' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E");
}
.ic-clips::-webkit-scrollbar-button:single-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9'%3E%3Cpath d='M1 1l3.5 3.5L1 8' fill='none' stroke='%234d6185' stroke-width='2'/%3E%3C/svg%3E");
}
.ic::-webkit-scrollbar-button:single-button:hover, .ic-clips::-webkit-scrollbar-button:single-button:hover, .gx::-webkit-scrollbar-button:single-button:hover { background-color: #dbe6ff; }
@supports not selector(::-webkit-scrollbar) {
  .ic, .ic-clips, .gx { scrollbar-color: #b5cbfb #f4f3ee; }
}
/* Au doigt : pas de barre, on fait glisser la rangée */
@media (hover: none) {
  .ic-clips { scrollbar-width: none; }
  .ic-clips::-webkit-scrollbar { display: none; }
}

/* ---------- Projets Graphisme (Kemp, Suchipie, Samr) ----------
   Mise en page du frame Figma reproduite à l'échelle : 1 unité --u = 1 px du frame (largeur --fw).
   Fenêtre étroite (< 720 px) : les blocs s'empilent et le texte reste lisible. */
.gx { overflow: hidden auto; container-type: inline-size; background: #fff; }
.gx-page { --u: calc(100cqw / var(--fw)); position: relative; height: calc(var(--fh) * var(--u)); overflow: hidden; }
.gx-page > * { position: absolute; margin: 0; }
.gx-page img { display: block; }
.gx-text { font: max(13px, calc(var(--fs) * var(--u)))/normal "Jockey One", var(--ui); }
.gx-text p { margin: 0; }
.gx-text b { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: normal; }

.gx-kemp { --fw: 1078; --fh: 1410; --fs: 16; }
.gx-kemp .gx-bg { left: calc(18 * var(--u)); top: calc(21 * var(--u)); width: calc(1051 * var(--u)); height: calc(1314 * var(--u)); object-fit: cover; }
.gx-kemp .gx-ticket { left: calc(34 * var(--u)); top: calc(33 * var(--u)); width: calc(452 * var(--u)); height: calc(482 * var(--u)); overflow: hidden; }
.gx-kemp .gx-ticket img { position: absolute; left: 0; top: -32.81%; width: 100%; height: 132.85%; }
.gx-kemp .gx-title { left: calc(500 * var(--u)); top: calc(33 * var(--u)); width: calc(559 * var(--u)); height: calc(470 * var(--u)); object-fit: cover; }
.gx-kemp .gx-text { left: calc(57 * var(--u)); top: calc(360 * var(--u)); width: calc(417 * var(--u)); color: #fff; }

.gx-suchipie { --fw: 1438; --fh: 1463; --fs: 16; }
.gx-suchipie .gx-mock { left: calc(86 * var(--u)); top: calc(28 * var(--u)); width: calc(1262 * var(--u)); height: calc(1309 * var(--u)); overflow: hidden; }
.gx-suchipie .gx-mock img { width: 100%; height: auto; } /* image calée en haut, bas recadré comme dans le frame */
.gx-suchipie .gx-text { left: calc(743 * var(--u)); top: calc(382 * var(--u)); width: calc(570 * var(--u)); color: #28338a; }

.gx-samr { --fw: 1433; --fh: 1831; --fs: 24; background: #f5f5f5; }
.gx-samr .gx-bg { left: calc(22 * var(--u)); top: calc(26 * var(--u)); width: calc(1382 * var(--u)); height: calc(1727 * var(--u)); object-fit: cover; }
.gx-samr .gx-text { width: calc(526 * var(--u)); }
.gx-samr .gx-text-1 { left: calc(851 * var(--u)); top: calc(138 * var(--u)); color: #000; }
.gx-samr .gx-text-2 { left: calc(142 * var(--u)); top: calc(1444 * var(--u)); color: #fff; }

@container (max-width: 719px) {
  .gx-page { height: auto; display: flex; flex-direction: column; gap: 20px; padding: 16px; }
  .gx-page > * { position: static; width: 100% !important; height: auto !important; }
  .gx-text { font-size: 17px; }
  /* Kemp : une seule fiche. Fond = la forêt avec l'affiche, calée en bas (pleine largeur, haut 125cqw) ;
     au-dessus, le sombre du haut de la photo est prolongé. KEMP + ticket côte à côte, texte dessous,
     et une marge basse pour que le texte s'arrête avant l'affiche (qui commence à ~60 % de la photo). */
  .gx-kemp {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 12px;
    padding-bottom: calc(125cqw * .42);
    background:
      linear-gradient(#0a0f08 calc(100% - 125cqw), rgba(10, 15, 8, 0) calc(100% - 125cqw + 40cqw)),
      #0a0f08 url("assets/images/graphisme/kemp/fond-foret.jpg") center bottom / 100% auto no-repeat;
  }
  .gx-kemp .gx-bg { display: none; }
  .gx-kemp > :not(.gx-bg) { position: relative; left: 0; top: 0; }
  .gx-kemp { min-height: 100%; }
  .gx-kemp .gx-title { order: -1; width: calc(55% - 6px) !important; }
  .gx-kemp .gx-ticket { width: calc(45% - 6px) !important; }
  .gx-kemp .gx-text { font-size: 15px; }
  .gx-kemp .gx-ticket { aspect-ratio: 452 / 482; }
  .gx-kemp .gx-ticket img { position: absolute; }
  .gx-suchipie .gx-mock { aspect-ratio: 1262 / 1309; }
  .gx-samr .gx-bg { order: 1; }
  .gx-samr .gx-text-2 { order: 2; color: #000; }
}

/* ---------- Paint ---------- */
#win-paint:not(.maximized) { width: min(900px, calc(100vw - 16px)); height: min(620px, calc(100% - 16px)); }
.pt-menu { flex: none; display: flex; flex-wrap: wrap; background: #ece9d8; border-bottom: 1px solid #d6d3d1; }
.pt-menu button { min-height: 36px; padding: 0 12px; border: 0; background: none; font: 13px var(--ui); }
.pt-menu button:hover, .pt-menu button:focus-visible { background: #316ac5; color: #fff; outline: none; }
.pt-menu button[aria-pressed="true"] { font-weight: bold; }
.pt { display: flex; overflow: hidden; background: #ece9d8; border-top: 0; }
.pt-side { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 4px; border-right: 1px solid #d6d3d1; }
.pt-tools { display: grid; grid-template-columns: repeat(2, 40px); gap: 2px; }
.pt-tools button, .pt-sizes button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: #ece9d8;
  box-shadow: inset -1px -1px #716f64, inset 1px 1px #fff; }
.pt-tools svg { width: 24px; height: 24px; }
.pt-tools button[aria-pressed="true"], .pt-sizes button[aria-pressed="true"] {
  background: #fff repeating-conic-gradient(#ece9d8 0 25%, #fff 0 50%) 0 0 / 2px 2px; box-shadow: inset 1px 1px #716f64, inset -1px -1px #fff; }
.pt-sizes { display: grid; grid-template-columns: repeat(2, 40px); gap: 2px; padding-top: 6px; border-top: 1px solid #d6d3d1; }
.pt-sizes i { display: block; width: 26px; background: #000; border-radius: 8px; }
.pt-area { flex: 1; min-width: 0; overflow: auto; padding: 6px; background: #808080; }
.pt-sheet { position: relative; width: max-content; box-shadow: 1px 1px 0 #404040; }
.pt-sheet canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; } /* gros pixels nets */
.pt-bg { position: absolute; inset: 0; }
.pt-canvas { position: relative; touch-action: none; cursor: crosshair; }
.pt-bottom { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: #ece9d8; border-top: 1px solid #d6d3d1; overflow-x: auto; }
.pt-current { position: relative; flex: none; width: 40px; height: 40px; box-shadow: inset 1px 1px #716f64, inset -1px -1px #fff; background: #fff; }
.pt-current i { position: absolute; width: 20px; height: 20px; border: 1px solid #000; box-shadow: 0 0 0 1px #fff; }
.pt-c1 { left: 6px; top: 6px; }
.pt-c2 { right: 6px; bottom: 6px; }
.pt-palette { display: grid; grid-template-rows: repeat(2, 20px); grid-auto-flow: column; grid-auto-columns: 20px; gap: 2px; }
.pt-palette button { width: 20px; height: 20px; padding: 0; border: 1px solid #808080; box-shadow: inset 1px 1px #fff; }
@media (pointer: coarse) {
  .pt-palette { grid-template-rows: repeat(2, 30px); grid-auto-columns: 30px; }
  .pt-palette button { width: 30px; height: 30px; }
}

/* ---------- Démineur ---------- */
#win-mines { width: auto; height: auto; max-width: calc(100vw - 16px); max-height: calc(100% - 16px); } /* Expert au téléphone : la grille défile dans la fenêtre */#win-mines.maximized { width: 100%; height: 100%; }
.ms { display: flex; flex-direction: column; align-items: safe center; gap: 8px; padding: 8px; overflow: auto; background: #ece9d8; }
.ms-game { flex: none; padding: 6px; background: #c0c0c0; box-shadow: inset 2px 2px #fff, inset -2px -2px #808080; }
.ms-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; margin-bottom: 6px; box-shadow: inset 2px 2px #808080, inset -2px -2px #fff; }
.ms-lcd { min-width: 54px; padding: 0 3px; background: #000; color: #f00; font: bold 26px/32px "Courier New", monospace; letter-spacing: 1px; text-align: center; box-shadow: inset -1px -1px #fff, inset 1px 1px #808080; }
.ms-face { width: 40px; height: 40px; padding: 0; border: 0; background: #c0c0c0; font-size: 22px; line-height: 1;
  box-shadow: inset -2px -2px #808080, inset 2px 2px #fff, 0 0 0 1px #808080; }
.ms-face:active { box-shadow: inset 2px 2px #808080, 0 0 0 1px #808080; }
.ms-grid { --c: 24px; display: grid; grid-template-columns: repeat(var(--cols), var(--c)); box-shadow: -3px -3px 0 -0px #808080, 3px 3px 0 #fff; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (pointer: coarse) { .ms-grid { --c: 32px; } }
.ms-grid button { width: var(--c); height: var(--c); padding: 0; border: 0; background: #c0c0c0; font: bold calc(var(--c) * .62)/1 Tahoma, var(--ui);
  box-shadow: inset -2px -2px #808080, inset 2px 2px #fff; touch-action: manipulation; }
.ms-grid button.open { background: #c0c0c0; box-shadow: inset 1px 1px #808080; cursor: default; }
.ms-grid button.boom { background: #f00; }
.ms-grid button[data-n="1"] { color: #0000ff; } .ms-grid button[data-n="2"] { color: #008000; }
.ms-grid button[data-n="3"] { color: #f00; }    .ms-grid button[data-n="4"] { color: #000080; }
.ms-grid button[data-n="5"] { color: #800000; } .ms-grid button[data-n="6"] { color: #008080; }
.ms-grid button[data-n="7"] { color: #000; }    .ms-grid button[data-n="8"] { color: #808080; }
.ms-flagmode { min-height: 44px; padding: 0 14px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ece9d8); }
.ms-flagmode[aria-pressed="true"] { background: #ffe9a8; font-weight: bold; }
@media (pointer: fine) { .ms-flagmode { display: none; } }
.ms-help { margin: 0; font-size: 12px; color: #555; text-align: center; }

/* ---------- Visionneuse d'images ---------- */
.gx [data-viewer] { cursor: zoom-in; }
.gx [data-viewer]:focus-visible { outline: 3px dotted #316ac5; outline-offset: -3px; }
#win-viewer:not(.maximized) { width: min(920px, calc(100vw - 16px)); height: min(660px, calc(100% - 16px)); }
.pv { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.pv-stage { flex: 1; min-height: 0; display: flex; overflow: auto; padding: 8px; background: #3b3b3b; /* gris foncé : les PNG clairs détourés restent lisibles */ outline: none; touch-action: pan-x pan-y; }
.pv-stage img { margin: auto; display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.pv-stage.is-zoomed { cursor: grab; }
.pv-stage.is-dragging { cursor: grabbing; }
.pv-stage:focus-visible { box-shadow: inset 0 0 0 2px #316ac5; }
.pv-caption { flex: none; margin: 0; padding: 4px 12px; text-align: center; font-size: 12px; color: #444; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-tools { flex: none; display: flex; justify-content: center; align-items: center; gap: 2px; padding: 4px 8px; background: #ece9d8; border-top: 1px solid #d6d3d1; }
.pv-tools button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; }
.pv-tools button:hover, .pv-tools button:focus-visible { border-color: #b9b6a8; background: #f7f6f0; outline: none; }
.pv-tools button:active { background: #e3e0d4; }
.pv-tools button:disabled { opacity: .4; pointer-events: none; }
.pv-tools svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pv-tools [data-pv="prev"] svg circle, .pv-tools [data-pv="next"] svg circle { fill: #3c9a3c; stroke: #fff; stroke-width: 1.5; }
.pv-tools [data-pv="fit"] svg rect, .pv-tools [data-pv="actual"] svg rect { fill: #3a6fd8; stroke: #1d4aa8; stroke-width: 1.5; }
.pv-tools [data-pv="in"] svg, .pv-tools [data-pv="out"] svg { stroke: #1d4aa8; }
.pv-tools [data-pv="in"] svg circle, .pv-tools [data-pv="out"] svg circle { fill: #dbe9ff; }
.pv-tools [data-pv="in"] svg path:first-of-type, .pv-tools [data-pv="out"] svg path:first-of-type { stroke: #8a5a2b; stroke-width: 4; }
.pv-sep { width: 1px; height: 30px; margin: 0 8px; background: #c5c2b2; box-shadow: 1px 0 #fff; }

.thumbs.list { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
.thumbs.list .thumb { gap: 12px; }
.thumbs.list .thumb img { width: 72px; height: 48px; box-shadow: none; }
.thumbs.list .thumb span { font-size: 14px; }
.thumb {
  display: flex; align-items: center; gap: 24px; padding: 4px; width: 100%;
  background: none; border: 1px solid transparent; text-align: left; cursor: pointer;
}
.thumb img { width: 167px; height: 111px; flex: none; object-fit: cover; box-shadow: 0 4px 4px rgba(0,0,0,.25); transition: transform .15s; }
.thumb span { font: 16px/1.3 var(--ui); color: #000; overflow-wrap: anywhere; padding: 1px 3px; }
.thumb:hover img { transform: scale(1.04); }
.thumb:focus { outline: none; }
.thumb:focus-visible { border: 1px dotted var(--sel); }
.thumb:focus-visible span { background: var(--sel); color: #fff; }

/* ---------- Fenêtre Explorer (Internet Explorer) ---------- */
#win-explorer:not(.maximized) { width: min(640px, calc(100vw - 16px)); height: min(440px, calc(100% - 16px)); }
.ie-toolbar, .ie-address {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 6px;
  font: 12px Tahoma, var(--ui); color: #000; border-bottom: 1px solid #d4d0c8;
}
.ie-toolbar { background: linear-gradient(#fdfdfb, #ece9d8); }
.ie-btn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; color: #444; user-select: none; }
.ie-round {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: bold; font-size: 15px;
  background: radial-gradient(circle at 35% 30%, #a6e88a, #3fae2a 60%, #237a17); box-shadow: inset 0 0 0 1px #1e6a12;
}
.ie-fwd .ie-round { filter: grayscale(1) opacity(.6); }
.ie-sq {
  width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; color: #fff; font-weight: bold;
  background: linear-gradient(#7dbdf9, #2f74d6); box-shadow: inset 0 0 0 1px #1f4f9e;
}
.ie-address { background: #ece9d8; }
.ie-address label { color: #555; }
.ie-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 1px 4px; background: #fff; border: 1px solid #7f9db9; }
.ie-field img { width: 16px; height: 16px; flex: none; }
.ie-field input { flex: 1; min-width: 0; border: 0; padding: 2px 0; font: inherit; background: none; outline: none; }
.ie-go {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; color: #000; text-decoration: none;
}
.ie-go::before { content: "\2192"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; color: #fff; background: #3fae2a; font-weight: bold; }
.ie-page { display: grid; place-items: center; padding: 24px; background: #fafafa; }
.ie-card {
  width: min(320px, 100%); padding: 28px 24px; text-align: center; background: #fff;
  border: 1px solid #dbdbdb; border-radius: 8px; font-family: Tahoma, var(--ui);
}
.ie-site {
  margin: 0 0 6px; font: italic bold 34px "Segoe Script", "Brush Script MT", cursive;
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ie-handle { margin: 0 0 20px; font-size: 16px; font-weight: bold; color: #262626; }
.ie-open {
  display: inline-block; padding: 8px 18px; border-radius: 6px; color: #fff; text-decoration: none; font-weight: bold; font-size: 14px;
  background: linear-gradient(90deg, #f09433, #dc2743 50%, #bc1888);
}
.ie-open:hover { filter: brightness(1.08); }
.ie-page [hidden] { display: none; }

/* Accueil de recherche */
.ie-home { width: min(480px, 100%); text-align: center; font-family: Tahoma, var(--ui); }
.ie-home-title {
  margin: 0 0 18px; font: italic bold 44px Tahoma, var(--ui); letter-spacing: -1px;
  color: #0a5bd8; text-shadow: 2px 2px 0 #fff, 3px 3px 0 #9fc3f5;
}
.ie-search { display: flex; gap: 8px; }
.ie-search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; font: 16px Tahoma, var(--ui);
  border: 1px solid #7f9db9; border-radius: 3px; background: #fff; box-shadow: inset 1px 1px 2px rgba(0,0,0,.12);
}
.ie-search input:focus { outline: 2px solid #316ac5; outline-offset: -1px; }
.ie-search button {
  flex: none; min-height: 44px; padding: 0 16px; font: bold 14px Tahoma, var(--ui); color: #000; cursor: pointer;
  border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ece9d8 85%, #d6d0c5);
}
.ie-search button:hover { box-shadow: inset 0 0 0 2px #f8b636; }
.ie-search button:active { background: linear-gradient(#d6d0c5, #ece9d8); }
@media (max-width: 420px) { .ie-search { flex-direction: column; } .ie-home-title { font-size: 34px; } }
.ie-open:focus-visible, .ie-go:focus-visible { outline: 2px dotted #0831d9; outline-offset: 2px; }

/* ---------- Fenêtre À propos : scène Figma 2811 × 898, défilement horizontal ---------- */
#win-apropos:not(.maximized) { width: min(1040px, calc(100vw - 16px)); height: min(680px, calc(100% - 16px)); }
.ap { overflow: auto hidden; container-type: size; outline: none; background: #fff; }
.ap:focus-visible { outline: 2px dotted #0831d9; outline-offset: -3px; }
.ap-stage {
  --u: calc(100cqh / 898); /* 1 px du Figma */
  position: relative; height: 100cqh; width: calc(2811 * var(--u)); overflow: hidden;
  font-family: "Jockey One", "Bahnschrift SemiBold Condensed", "Arial Narrow", sans-serif; font-weight: 400;
}
.ap-el {
  position: absolute; margin: 0; padding: 0;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u));
}
img.ap-el, .ap-crop { height: calc(var(--h) * var(--u)); object-fit: cover; }
.ap-crop { overflow: hidden; }
.ap-crop img { position: absolute; max-width: none; }
.ap-paper { opacity: .26; }
.ap-bio {
  padding-top: calc(19.2 * var(--u)); white-space: pre; line-height: 1.2;
  font-size: calc(24 * var(--u)); color: rgba(0,0,0,.54);
}
.ap-sp { font-size: calc(16 * var(--u)); }
.ap-title {
  font-size: calc(96 * var(--u)); line-height: 1.2; font-weight: 400; color: #298a49; white-space: nowrap;
  text-shadow: 0 calc(4 * var(--u)) calc(4 * var(--u)) rgba(0,0,0,.25);
}
.ap-edu { color: #298a49; line-height: 1.2; }
.ap-edu p { margin: 0; }
.ap-big { font-size: calc(48 * var(--u)); }
.ap-s14 { font-size: calc(14 * var(--u)); }
.ap-s16 { font-size: calc(16 * var(--u)); }
.ap-s20 { font-size: calc(20 * var(--u)); }
.ap-label { font-size: calc(20 * var(--u)); line-height: 1.2; color: #000; }
.ap-vert { width: min-content; word-break: break-all; font-size: calc(18 * var(--u)); line-height: .75; letter-spacing: -.05em; color: #000; }
.ap-inspi { font-size: calc(180 * var(--u)); line-height: .75; letter-spacing: -.0633em; font-weight: 400; color: #288548; white-space: nowrap; }

/* Coordonnées : petits boutons XP, assez hauts pour le doigt */
.ap-contact { list-style: none; display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.ap-contact a, .ap-contact button {
  display: flex; align-items: center; width: 100%; min-height: max(30px, calc(32 * var(--u))); padding: 0 8px;
  font: 13px/1.1 Tahoma, var(--ui); color: #0b2f9e; text-decoration: underline; text-align: left; cursor: pointer;
  background: linear-gradient(#fff, #ece9d8 85%, #d6d0c5); border: 1px solid #003c74; border-radius: 3px;
}
.ap-contact a:hover, .ap-contact button:hover { box-shadow: inset 0 0 0 2px #f8b636; }
.ap-contact a:active, .ap-contact button:active { background: linear-gradient(#d6d0c5, #ece9d8); }
.ap-contact a:focus-visible, .ap-contact button:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
@media (pointer: coarse) { .ap-contact a, .ap-contact button { min-height: 44px; } }
/* Mail et téléphone : simple texte bleu souligné, zone de clic invisible */
.ap-contact a, .ap-contact button,
.ap-contact a:hover, .ap-contact button:hover,
.ap-contact a:active, .ap-contact button:active { background: none; border: 0; border-radius: 0; box-shadow: none; }
.ap-contact a, .ap-contact button { color: #fff; }
.ap-contact a:hover, .ap-contact button:hover { text-decoration-thickness: 2px; }
.ap-contact a:focus, .ap-contact button:focus { outline: none; }
.ap-contact a:focus-visible, .ap-contact button:focus-visible { outline: 1px dotted #fff; outline-offset: -2px; }

/* ---------- Fenêtre Explication : planches horizontales ---------- */
#win-explication:not(.maximized) { width: min(1040px, calc(100vw - 16px)); height: min(680px, calc(100% - 16px)); }
.expl {
  display: flex; overflow: auto hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  container-type: size; outline: none;
  --jockey: "Jockey One", "Bahnschrift SemiBold Condensed", "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
}
.expl-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; }
/* scène au format du Figma (1440 × 900), 1 unité = 1 px du Figma */
.st { position: relative; width: min(100cqw, (100cqh - 2px) * 1.6); aspect-ratio: 1440 / 900; container-type: inline-size; background: #fff; }
.st > * {
  --u: calc(100cqw / 1440);
  position: absolute; margin: 0;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.st img { display: block; max-width: none; }
.st .cover { object-fit: cover; }
.st .mult { object-fit: fill; filter: brightness(1.05); } /* le fond gris clair (#f5f5f5) de l'export devient blanc */
.guide { border: calc(2 * var(--u)) solid #000; }
.guide.dashed { border-style: dashed; }
.ln { height: 0; border-top: calc(3 * var(--u)) solid #000; }
.ln.v { width: 0; border-top: 0; border-left: calc(3 * var(--u)) solid #000; }
.xm { font: calc(32 * var(--u))/1.2 var(--jockey); color: #000; }
.expl-name { font: calc(48 * var(--u))/1.2 var(--jockey); letter-spacing: -.01em; }
.expl-next {
  padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: calc(20 * var(--u));
  opacity: .12; transition: opacity .2s;
}
.expl-next span { font: calc(96 * var(--u))/1.33 Impact, "Arial Narrow", sans-serif; color: #000; width: 1ch; text-align: center; word-spacing: 100vw; }
.expl-next img { width: calc(71 * var(--u)); height: calc(78 * var(--u)); }
.expl-next:hover, .expl-next:focus-visible { opacity: .35; outline: none; }
.sw { display: block; }
.specimen { color: #000; overflow-wrap: anywhere; }
.specimen p { margin: 0 0 calc(18 * var(--u)); }
.specimen .jk { font: calc(30 * var(--u))/1.05 var(--jockey); letter-spacing: -.03em; }
.specimen .dg { font: calc(15 * var(--u))/1.3 "Dogica", "Pixelify Sans", "Pixelify Sans Static", monospace; }
.specimen .big { font-size: calc(72 * var(--u)); line-height: 1; }
.specimen .dg.big { font-size: calc(56 * var(--u)); }
.band { overflow: hidden; filter: blur(calc(5.5 * var(--u))); }
.band img { position: absolute; left: -.05%; width: 100.1%; height: 313.54%; }
.expl-text { font: calc(24 * var(--u))/1.1 var(--jockey); color: #000; }
.expl-text p { margin: 0 0 calc(14 * var(--u)); }
.expl-text b { font-size: 1.5em; font-weight: inherit; }

/* ---------- Barre des tâches ---------- */
.raised { box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf; }
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 10000;
  display: flex; align-items: center; gap: 6px; padding: 3px 4px;
  background: var(--grey); border-top: 1px solid #dfdfdf; box-shadow: inset 0 1px #fff;
}
.start-btn { height: 100%; padding: 0; border: 0; background: none; flex: none; }
.start-btn img { height: 100%; display: block; }
.start-btn[aria-expanded="true"] img { filter: brightness(.92); transform: translate(1px, 1px); }
.start-btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.task-list { flex: 1; min-width: 0; height: 100%; display: flex; gap: 4px; padding: 3px 0; }
.task-btn {
  flex: 0 1 170px; min-width: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  border: 0; background: var(--grey); text-align: left; font-size: 13px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf;
}
.task-btn img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.task-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-btn.active {
  font-weight: bold; background: #e6e6e6 repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 2px 2px;
  box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo);
}
.task-btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

.tray {
  flex: none; height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 4px;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi);
  font: 13px var(--ui);
}
.show-desktop {
  width: 30px; height: 28px; padding: 0; border: 0; background: var(--grey);
  display: grid; place-items: center;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo);
}
.show-desktop:active { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); }
.show-desktop:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.mini-desk { /* pictogramme « bureau » dessiné en CSS */
  width: 18px; height: 14px; display: inline-block; flex: none;
  background: linear-gradient(#4f8ff0 60%, #3fa037 60%); border: 1px solid #000; border-bottom-width: 3px;
}
#clock { min-width: 38px; text-align: right; }

/* ---------- Menu Démarrer ---------- */
/* Façon XP : en-tête bleu, colonne blanche + colonne bleu clair, pied bleu */
.start-menu {
  position: absolute; left: 0; bottom: var(--taskbar-h); z-index: 9999;
  width: min(440px, 100vw); max-height: calc(100% - var(--taskbar-h) - 8px); overflow: auto;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #0831d9; border-radius: 8px 8px 0 0;
  box-shadow: 3px 0 8px rgba(0, 0, 0, .35);
  animation: slide-up .12s ease-out;
}
@keyframes slide-up { from { transform: translateY(12px); opacity: 0; } }
.sm-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px 7px 0 0;
  background: linear-gradient(#1868ce, #0e60cb 12%, #0e60cb 80%, #1c6fd6);
  box-shadow: inset 0 1px #3d95ff; color: #fff; font: bold 17px var(--ui); text-shadow: 1px 1px 1px #0a3a8a;
}
.sm-avatar { flex: none; margin: -8px -5px; transform: scale(.75); background: #fff; border: 2px solid #d6e4f8; border-radius: 4px; }
.sm-avatar img { position: absolute; width: 402.76%; height: 203.62%; left: -100.69%; top: -50.39%; max-width: none; } /* même recadrage que l'icône du bureau */
.sm-cols { display: flex; border-top: 2px solid #f48a2a; }
.sm-cols ul { list-style: none; margin: 0; padding: 6px 0; flex: 1 1 50%; min-width: 0; }
.sm-right { background: #d3e5fa; border-left: 1px solid #95bdee; }
.start-menu li button, .start-menu li a {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 4px 10px;
  border: 0; background: none; text-align: left; font-size: 13px; color: #000; text-decoration: none;
}
.sm-right li button, .sm-right li a { color: #0c2f7a; }
.start-menu li img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.sm-left li img[src*="thumb"], .sm-left li img[src*="motion-"] { width: 28px; height: 28px; object-fit: cover; border: 1px solid #a8a8a8; margin: 0 2px; }
.start-menu li b { font-weight: bold; }
.start-menu li small { display: block; font-size: 11px; color: #6b6b6b; }
.start-menu li .mini-desk { margin: 0 7px; }
.start-menu li button:hover, .start-menu li button:focus-visible,
.start-menu li a:hover, .start-menu li a:focus-visible { background: #316ac5; color: #fff; outline: none; }
.start-menu li button:hover small, .start-menu li button:focus-visible small { color: #dce8ff; }
.start-menu .sep { height: 1px; margin: 4px 10px; background: linear-gradient(90deg, transparent, #c0c0c0, transparent); }
.sm-right .sep { background: linear-gradient(90deg, transparent, #95bdee, transparent); }
.sm-title { padding: 4px 12px 2px; font-size: 11px; color: #6b6b6b; }
.sm-foot {
  display: flex; justify-content: flex-end; gap: 4px; padding: 4px 6px;
  background: linear-gradient(#1c6fd6, #0e60cb 20%, #0e60cb 85%, #0a4fb0);
}
.sm-foot button {
  min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  border: 0; border-radius: 3px; background: none; color: #fff; font-size: 13px;
}
.sm-foot svg { width: 26px; height: 26px; flex: none; }
.sm-foot button:hover, .sm-foot button:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
@media (max-width: 480px) {
  .sm-cols { flex-direction: column; }
  .sm-right { border-left: 0; border-top: 1px solid #95bdee; }
}

/* ---------- Arrêter l'ordinateur ---------- */
.shutdown {
  position: fixed; inset: 0; z-index: 15000; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); animation: sd-gray .4s both;
}
@keyframes sd-gray { from { background: rgba(0, 0, 0, 0); } }
.shutdown.is-off { background: #000; }
.sd-box { width: min(420px, calc(100vw - 32px)); border-radius: 6px; overflow: hidden; background: #6b8ee4; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.sd-head { margin: 0; padding: 14px 18px; color: #fff; font: 20px var(--ui); background: #00309c; border-bottom: 2px solid #f48a2a; }
.sd-actions { display: flex; justify-content: space-around; gap: 8px; padding: 26px 12px; background: linear-gradient(#5a7edc, #7b9de8 50%, #5a7edc); }
.sd-actions button {
  min-width: 96px; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px;
  border: 0; border-radius: 4px; background: none; color: #fff; font-size: 13px;
}
.sd-actions button:hover, .sd-actions button:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.sd-ico { width: 44px; height: 44px; border-radius: 6px; border: 2px solid #fff; display: grid; place-items: center; font: bold 24px/1 var(--ui); color: #fff; box-shadow: 1px 2px 3px rgba(0, 0, 0, .3); }
.sd-sleep { background: linear-gradient(#f5c64a, #d89a10); }
.sd-sleep::before { content: "☾"; }
.sd-off { background: linear-gradient(#f07a50, #cc3a12); }
.sd-off::before { content: "⏻"; }
.sd-restart { background: linear-gradient(#7fd46a, #34962a); }
.sd-restart::before { content: "↻"; }
.sd-foot { display: flex; justify-content: flex-end; padding: 10px 14px; background: #00309c; }
.sd-foot button { min-width: 88px; min-height: 36px; border: 1px solid #fff; border-radius: 3px; background: #ece9d8; color: #000; }
.sd-black {
  position: fixed; inset: 0; width: 100%; border: 0; background: #000; color: #f48a2a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; text-align: center;
}
.sd-msg { font: bold clamp(18px, 3vw, 28px)/1.4 var(--ui); }
.sd-hint { font-size: 12px; color: #555; }
.sd-black:focus-visible { outline: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  /* Cadrage téléphone : la bande « moi + télé » (58 % → 93 % de la scène) tient dans la largeur de l'écran,
     calée en bas au-dessus de la barre des tâches. Au-dessus, le fond d'écran agrandi prolonge le ciel.
     Bulle, points et zones de survol sont sur le même calque (.scene-overlay), ils suivent. */
  .desktop { --sw: calc((100vw - 16px) / .35); background: #3d7fdc; } /* --sw : largeur de la scène */
  /* ciel prolongé : le haut du fond d'écran, agrandi 3× et retourné, se raccorde au bord haut de la scène */
  .desktop::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    /* déborde sous la scène sur toute la zone de fondu : plus de bande visible à la jonction */
    height: calc(100% - var(--taskbar-h) - 16px - .78 * var(--sw) / var(--ratio) + .3 * var(--sw) / var(--ratio));
    background: url("assets/images/wallpaper.png") 40% 0 / calc(3 * var(--sw)) auto no-repeat;
    transform: scaleY(-1);
  }
  .scene {
    width: var(--sw); height: calc(var(--sw) / var(--ratio)); transform: none;
    left: calc(8px - .58 * var(--sw));
    top: calc(100% - var(--taskbar-h) - 16px - .78 * var(--sw) / var(--ratio));
  }
  .scene:not(.scene-overlay) { -webkit-mask: linear-gradient(transparent 2%, #000 24%); mask: linear-gradient(transparent 2%, #000 24%); }
  /* bulle au-dessus de la télé, queue retournée vers ma tête à gauche */
  .desktop-hint { left: calc(58% + 32px); right: auto; bottom: 70%; width: 170px; padding: 12px 14px 14px; font-size: 14px; transform-origin: 8% 120%; }
  .hint-tail { left: 14px; right: auto; transform: scaleX(-1); }
  .hint-dots { gap: 3px; }
  .hint-dots i { width: 7px; height: 7px; }

  /* icônes en deux rangées de 4 en haut (grille du PC transposée), même pas dans les deux sens */
  .desktop-icons { --pitch: calc((100vw - 8px) / 4); }
  .desk-icon { width: calc(var(--pitch) - 2px); left: calc(4px + var(--y) * var(--pitch)); top: calc(10px + var(--x) * var(--pitch)); }
  .desk-icon .label { font-size: 11px; }
  #win-cv:not(.maximized) { height: calc(100% - 16px); }

  /* Paint : outils en bandeau au-dessus de la feuille, palette sur plusieurs lignes */
  #win-paint:not(.maximized) { height: calc(100% - 16px); }
  .pt { flex-direction: column; }
  .pt-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid #d6d3d1; }
  .pt-tools { grid-template-columns: repeat(8, 40px); }
  .pt-sizes { grid-template-columns: repeat(4, 40px); padding-top: 0; border-top: 0; }
  .pt-palette { flex: 1; grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, 30px); }

  /* Explication : planches plus grandes, on les fait défiler en continu */
  .expl { scroll-snap-type: x proximity; }
  .expl-slide { flex: 0 0 auto; padding: 0 10px; }
  .st { width: min(100cqh * .62 * 1.6, 900px); }

  /* À propos : échelle plafonnée (textes moins énormes), scène centrée dans la hauteur */
  .ap { display: flex; align-items: center; }
  .ap-stage { flex: none; --u: calc(min(100cqh, 540px) / 898); height: calc(898 * var(--u)); }
  .ap-contact { width: calc(300 * var(--u)); }
  .ap-contact a, .ap-contact button { min-height: 26px; font-size: 11px; }
  .pt-bottom { overflow: visible; }
  .desk-icon { --ico: 52px; }
  .start-btn img { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
