/* ============================================================
   Ubuntu 8.04 « Hardy Heron » sur HP Pavilion — style.css
   Scène : bureau + laptop. Écran : GNOME 2, thème Human.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --lidw: min(88vw, 84vh, 1020px);
  --human-orange: #dd4814;
  --human-tbar1: #f0a35d;
  --human-tbar2: #d4731a;
  --human-tbar3: #b85c10;
  --panel-bg1: #f3efe9;
  --panel-bg2: #ddd6cb;
  --panel-border: #b0a795;
  --win-border: #8f8674;
  --sel: #f4b27c;
  --menu-hl: #e8853d;
}

html, body { height: 100%; }
body {
  font-family: "DejaVu Sans", "Bitstream Vera Sans", Verdana, sans-serif;
  background: #1a1410;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}

#stage { position: fixed; inset: 0; overflow: hidden; }
#scene {
  position: absolute; inset: 0;
  transition: transform .65s cubic-bezier(.4,.1,.2,1);
  will-change: transform;
}

/* ---------- la pièce ---------- */
#wall {
  position: absolute; left: 0; right: 0; top: 0; height: 62%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,235,200,.10), transparent 60%),
    /* papier peint : motif losangé discret + fines rayures verticales */
    radial-gradient(circle at 30px 26px, rgba(214,196,164,.07) 1.4px, transparent 2px),
    radial-gradient(circle at 0 0, rgba(214,196,164,.07) 1.4px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(225,210,180,.045) 0 2px, transparent 2px 30px),
    linear-gradient(#4a4038, #38302a 70%, #2b251f);
  background-size: auto, 60px 52px, 60px 52px, auto, auto;
}
#desk {
  position: absolute; left: 0; right: 0; top: 62%; bottom: 0;
  background:
    linear-gradient(rgba(255,255,255,.06), rgba(0,0,0,.25)),
    repeating-linear-gradient(94deg,
      #7a5230 0 90px, #71492a 90px 170px, #80572f 170px 260px);
  box-shadow: 0 -4px 14px rgba(0,0,0,.45);
}

#postit {
  position: absolute; left: 4%; top: 67%;
  width: 165px; padding: 10px 12px;
  background: linear-gradient(#fff79a, #f5e96a);
  color: #5a4a12; font-size: 12.5px; line-height: 1.55;
  transform: rotate(-4deg);
  box-shadow: 2px 4px 8px rgba(0,0,0,.45);
  font-family: "Comic Sans MS", "Segoe Print", cursive;
}
#postit b { font-size: 13px; }

#mug { position: absolute; right: 6%; top: 71%; width: 80px; }
#mug .body {
  width: 78px; height: 86px; border-radius: 6px 6px 14px 14px;
  background: linear-gradient(100deg, #efe7da, #cdc2af 70%, #b3a791);
  box-shadow: inset 0 6px 4px -4px #6b3215, 2px 8px 12px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
#mug .body span {
  font-size: 9.5px; color: #8a4012; font-weight: bold; text-align: center;
  transform: rotate(-2deg); padding: 0 6px;
}
#mug .handle {
  position: absolute; right: -22px; top: 18px; width: 30px; height: 42px;
  border: 9px solid #d9cfbd; border-left: none;
  border-radius: 0 22px 22px 0;
}
#mug .steam {
  position: absolute; top: -34px; left: 26px; color: rgba(255,255,255,.35);
  font-size: 16px; line-height: .8; animation: steam 3s infinite ease-in-out;
}
@keyframes steam { 0%,100% { opacity:.15; transform: translateY(0);} 50% { opacity:.5; transform: translateY(-6px);} }

/* ---------- affiches au mur (2008) ---------- */
.poster {
  position: absolute; top: 5%;
  pointer-events: none;                 /* purement décoratif : laisse passer le clic (zoom) */
  box-shadow: 3px 9px 18px rgba(0,0,0,.55);
  border: 5px solid #efe9dd;
  padding: 9px 9px 7px;
  text-align: center; overflow: hidden;
}
.poster .tape {
  position: absolute; top: -9px; width: 34px; height: 16px;
  background: rgba(226,220,198,.45); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.poster .tape.tl { left: 8px; transform: rotate(-24deg); }
.poster .tape.tr { right: 8px; transform: rotate(22deg); }

.poster img {
  display: block; width: 100%; height: auto;
  user-select: none; -webkit-user-drag: none;
}

#poster-tdk {
  left: 3%; width: 188px;
  transform: rotate(-2.6deg);
  background: #0c0f14; padding: 7px;
}

#poster-ferrari {
  right: 3%; width: 244px;
  transform: rotate(2.2deg);
  background: #111; padding: 7px 7px 0;
}
#poster-ferrari .fer-sub {
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-align: center; padding: 5px 0 6px;
  background: #b00009;
  text-shadow: 0 1px 1px rgba(0,0,0,.5);
}

/* ---------- le livre de thermo (détesté) ---------- */
#thermobook {
  position: absolute; left: 3%; top: 77%;
  width: 100px; height: 140px;
  pointer-events: none;
  transform: rotate(-9deg);
  filter: drop-shadow(3px 7px 7px rgba(0,0,0,.5));
}
#thermobook .tb-side {
  position: absolute; left: -6px; top: 5px; width: 11px; height: 130px;
  background: repeating-linear-gradient(#efe7d2 0 2px, #d8cdae 2px 4px);
  transform: skewY(34deg); border-radius: 2px 0 0 2px;
}
#thermobook .tb-cover {
  position: absolute; inset: 0;
  border-radius: 2px 4px 4px 2px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), inset -9px 0 14px rgba(0,0,0,.28);
}
#thermobook .tb-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
}
#thermobook .tb-boring {
  position: absolute; right: -4px; bottom: 30px;
  color: #ff2d2d; font-size: 26px; font-weight: 800;
  font-family: "Comic Sans MS", "Segoe Print", "Marker Felt", cursive;
  transform: rotate(-13deg);
  text-shadow: 0 0 1px #ff2d2d, 1px 1px 0 rgba(120,0,0,.5);
}
#thermobook .tb-boring::after {
  content: ""; position: absolute; left: -2px; bottom: -3px; width: 102%; height: 3px;
  background: #ff2d2d; border-radius: 2px; transform: rotate(1.5deg);
}

/* ---------- horloge murale ---------- */
#wallclock {
  position: absolute; left: 5.5%; top: 42%;
  width: 118px; height: 118px; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 38% 32%, #fdfbf4, #ece4d2 70%, #d8cdb6);
  border: 6px solid #2b2b2b;
  box-shadow: 0 0 0 2px #6a6a6a, 4px 8px 14px rgba(0,0,0,.5), inset 0 2px 6px rgba(255,255,255,.6);
}
#wallclock .wc-tick {
  position: absolute; left: 50%; top: 6px; width: 2px; height: 8px;
  background: #3a3a3a; transform-origin: 50% 53px; margin-left: -1px;
}
#wallclock .wc-tick.maj { height: 12px; width: 3px; margin-left: -1.5px; background: #1c1c1c; }
#wallclock .wc-hand {
  position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%;
  border-radius: 3px; background: #1c1c1c;
}
#wallclock .wc-hour { width: 5px; height: 30px; margin-left: -2.5px; }
#wallclock .wc-min  { width: 3.5px; height: 44px; margin-left: -1.75px; }
#wallclock .wc-sec  { width: 1.5px; height: 48px; margin-left: -.75px; background: #c0392b; }
#wallclock .wc-cap  {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #c0392b;
  box-shadow: 0 0 0 2px #1c1c1c;
}

/* ---------- calendrier mural (avril 2008) ---------- */
#wallcal {
  position: absolute; right: 4.5%; top: 25%;
  width: 168px; pointer-events: none;
  background: #fbf7ee; border: 1px solid #cfc4ad;
  transform: rotate(1.5deg);
  box-shadow: 3px 7px 14px rgba(0,0,0,.45);
  font-family: "DejaVu Sans", Arial, sans-serif;
}
#wallcal .cal-top {
  position: relative; background: linear-gradient(#c64a1e, #e35a26);
  color: #fff; text-align: center; padding: 7px 0 6px;
  font-weight: 800; letter-spacing: 3px; font-size: 13px;
}
#wallcal .cal-top::before {
  content: ""; position: absolute; left: 22px; top: -7px; width: 7px; height: 12px;
  background: #d8cdb6; border-radius: 3px; box-shadow: 116px 0 0 #d8cdb6;
}
#wallcal .cal-month { text-align: center; color: #b0381a; font-weight: 700;
  font-size: 12px; letter-spacing: 1px; padding: 5px 0 2px; }
#wallcal .cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; padding: 4px 6px 8px; font-size: 9.5px; color: #4a4438;
}
#wallcal .cal-dow { text-align: center; font-weight: 700; color: #9a9082; padding-bottom: 2px; }
#wallcal .cal-d { text-align: center; padding: 2.5px 0; line-height: 1; }
#wallcal .cal-d.sun { color: #c0392b; }
#wallcal .cal-d.circ {
  position: relative; color: #b0381a; font-weight: 800;
}
#wallcal .cal-d.circ::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 15px;
  margin: -8px 0 0 -9px; border: 2px solid #c0392b; border-radius: 50%;
  transform: rotate(-12deg);
}

/* ---------- le laptop ---------- */
#laptop {
  position: absolute; left: 50%; top: 7%;
  width: var(--lidw);
  transform: translateX(-50%);
  transform-style: preserve-3d;
  perspective: 1900px; perspective-origin: 50% 20%;
}
#lid {
  position: relative; width: 100%; aspect-ratio: 1.49;
  background: linear-gradient(160deg, #3c3f45, #23252a 60%, #1b1d21);
  border-radius: 14px 14px 4px 4px;
  border: 1px solid #0c0d10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 10px rgba(0,0,0,.4);
  padding: 0;
}
#bezel { position: absolute; inset: 0; }
#cam {
  position: absolute; top: 2.2%; left: 50%; width: 7px; height: 7px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5a7a8a, #0a0f14 70%);
  box-shadow: 0 0 0 2px #111;
}
#screen {
  position: absolute; left: 3.4%; right: 3.4%; top: 5.2%; bottom: 6.6%;
  background: #000; overflow: hidden; border-radius: 2px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 26px rgba(0,0,0,.85);
}
.hp-mark {
  position: absolute; bottom: 1.4%; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hp-circle {
  display: inline-block; width: 20px; height: 20px; line-height: 19px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4aa0d8, #14507e);
  color: #fff; font-size: 9.5px; font-weight: bold; font-style: italic;
  text-align: center;
}
.hp-model { color: #9aa0a8; font-size: 11px; letter-spacing: 2px; }

#base {
  position: relative; width: 100%; height: calc(var(--lidw) * .62);
  transform-origin: top center;
  transform: rotateX(72deg);
  margin-top: -2px;
}
#deck {
  position: absolute; inset: 0;
  background: linear-gradient(#d6d3cc, #b9b5ac 60%, #a09b90);
  border-radius: 6px 6px 22px 22px;
  border: 1px solid #6f6a60;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 18px 28px rgba(0,0,0,.5);
  padding: 2.2% 3.4%;
  display: flex; flex-direction: column;
}
#hinge {
  position: absolute; top: 0; left: 6%; right: 6%; height: 12px;
  background: linear-gradient(#55524b, #84817a 50%, #44423c);
  border-radius: 0 0 6px 6px;
}
#powerbtn {
  position: absolute; top: 3.2%; right: 5%;
  width: 36px; height: 14px; border-radius: 8px;
  background: linear-gradient(#e8e5de, #c4c0b6);
  border: 1px solid #8a857a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#powerled {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5d6258; transition: background .3s, box-shadow .3s;
}
#powerbtn.on #powerled { background: #7fd24a; box-shadow: 0 0 8px #7fd24a; }

#kbd {
  margin-top: 26px; flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  background: #2a2925; border-radius: 6px; padding: 6px;
  border: 1px solid #1a1916;
}
.krow { display: flex; gap: 4px; flex: 1; }
.key {
  flex: 1; border-radius: 3px;
  background: linear-gradient(#3b3a36, #262522);
  border: 1px solid #14130f;
  color: #cfccc2; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.key.w15 { flex: 1.5; } .key.w2 { flex: 2; } .key.w25 { flex: 2.5; }
.key.w6 { flex: 6; } .key.half { font-size: 8px; }

#palmrest { display: flex; align-items: center; margin-top: 8px; height: 26%; }
#pad {
  width: 26%; height: 100%; margin: 0 auto;
  background: linear-gradient(#c8c4bb, #aaa69c);
  border: 1px solid #7c776c; border-radius: 4px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
#padbtns { display: flex; height: 30%; border-top: 1px solid #7c776c; }
#padbtns span { flex: 1; }
#padbtns span:first-child { border-right: 1px solid #7c776c; }
.sticker {
  font-size: 10px; line-height: 1.1; padding: 5px 9px; border-radius: 3px;
  box-shadow: 1px 2px 3px rgba(0,0,0,.3); transform: rotate(-2deg);
}
.sticker-ubuntu { background: var(--human-orange); color: #fff; font-weight: bold; }
.sticker-hp { background: #dfe7ee; color: #2a5b86; transform: rotate(2deg); margin-left: auto; }
.sticker small { font-weight: normal; font-size: 8px; }

#lapshadow {
  position: absolute; left: -4%; right: -4%; bottom: -10%;
  height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%);
  transform: translateZ(-50px);
}

#hint {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: #cbbfae; font-size: 13px; background: rgba(0,0,0,.45);
  padding: 6px 14px; border-radius: 14px; pointer-events: none;
  transition: opacity .4s;
}
#hint.faded { opacity: 0; }

/* indique qu'on peut cliquer pour zoomer */
body:not(.zoomed) #screen { cursor: zoom-in; }
body:not(.zoomed) #ui { pointer-events: none; }

/* ============================================================
   L'INTÉRIEUR DE L'ÉCRAN — design fixe 1280×800, mis à l'échelle
   ============================================================ */
#ui {
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 800px;
  transform-origin: 0 0;
  background: #000;
  font-size: 13px;
}
.layer { position: absolute; inset: 0; }
.hidden { display: none !important; }

/* ---------- écran éteint ---------- */
#off { background: #050505; cursor: pointer; z-index: 60; }
#off-hint {
  position: absolute; bottom: 40px; width: 100%; text-align: center;
  color: #2e2e2e; font-size: 18px;
}
#off:hover #off-hint { color: #4a4a4a; }

/* ---------- boot ---------- */
#boot { background: #000; z-index: 50; }
.boot-screen { position: absolute; inset: 0; }

/* écran POST du HP Pavilion */
#hpsplash {
  background: radial-gradient(ellipse at 50% 42%, #0b1830, #04060c 80%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #eef3fb;
}
#hpsplash .hp-badge {
  width: 132px; height: 132px; border-radius: 50%;
  border: 5px solid #d6e2f2; color: #d6e2f2;
  display: flex; align-items: center; justify-content: center;
  font: 700 64px/1 Arial, "DejaVu Sans", sans-serif; letter-spacing: -3px;
  background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.12), transparent 60%);
}
#hpsplash .hp-invent { margin-top: 10px; font: italic 17px Georgia, serif; color: #aebfd6; letter-spacing: 3px; }
#hpsplash .hp-keys {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  font: 12px "DejaVu Sans Mono", monospace; color: #6b7b96;
}

/* menu GRUB + logs noyau (texte console) */
#grub, #bootlog {
  color: #cfcfcf; background: #000;
  font: 14px/1.42 "DejaVu Sans Mono", monospace;
  padding: 20px 26px; white-space: pre-wrap; overflow: hidden;
}
#grub { color: #d7d7d7; }
.grub-hl { background: #d7d7d7; color: #000; }
#bootlog { font-size: 12.5px; line-height: 1.4; }
#bootlog .ok { color: #4fdc5a; font-weight: bold; }
#usplash {
  position: absolute; inset: 0; background: #211710;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ulogo { font-size: 64px; color: #fff; letter-spacing: -2px; margin-bottom: 50px; }
.u-word { font-weight: bold; font-family: Ubuntu, "DejaVu Sans", sans-serif; }
.u-cof {
  display: inline-block; width: 18px; height: 18px; margin-left: 6px;
  border-radius: 50%; background: var(--human-orange);
  box-shadow: -26px -30px 0 -4px #f3c12e, 26px -30px 0 -4px #d8262c;
}
.ubar {
  width: 280px; height: 18px; border: 2px solid #b15f24; border-radius: 10px;
  padding: 2px; background: #160f0a;
}
#ubar-fill {
  height: 100%; width: 0%; border-radius: 6px;
  background: linear-gradient(#f49b54, var(--human-orange));
  transition: width .25s;
}
.umsg { color: #b89a7e; margin-top: 28px; font-size: 14px; }

/* ---------- GDM ---------- */
#gdm {
  z-index: 45;
  background:
    radial-gradient(ellipse at 50% 35%, #8a4a1c, #4e2a10 55%, #2c180a);
  display: flex; align-items: center; justify-content: center;
}
.gdm-box {
  background: rgba(255, 250, 240, .96); border-radius: 8px;
  padding: 30px 50px; text-align: center; color: #3a3026;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.gdm-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(#f0a35d, #b85c10); color: #fff;
  font-size: 34px; font-weight: bold; line-height: 64px;
}
.gdm-user { font-size: 22px; font-weight: bold; }
.gdm-host { font-size: 12px; color: #8a7c6a; margin-bottom: 18px; }
.gdm-box label { font-size: 14px; }
#gdm-pass {
  display: block; margin: 8px auto 0; padding: 6px 10px; width: 220px;
  border: 1px solid #b0a795; border-radius: 4px; font-size: 15px;
  background: #fff; outline-color: var(--human-orange);
}
.gdm-tip { font-size: 11px; color: #9a8c78; margin-top: 10px; }
.gdm-footer {
  position: absolute; bottom: 22px; width: 100%; text-align: center;
  color: #c79b6e; font-size: 13px;
}

/* ============================================================
   GNOME 2
   ============================================================ */
#gnome { background: #28160a; }

/* ---------- tableaux de bord ---------- */
#panel-top, #panel-bottom {
  position: absolute; left: 0; right: 0; height: 27px;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  display: flex; align-items: stretch;
  font-size: 13px; color: #2e2a24;
  z-index: 5000;
}
#panel-top { top: 0; border-bottom: 1px solid var(--panel-border); }
#panel-bottom { bottom: 0; border-top: 1px solid var(--panel-border); align-items: center; }
.panel-spring { flex: 1; }
.panel-sep { width: 1px; background: var(--panel-border); margin: 4px 6px; }

.pmenu { position: relative; display: flex; }
.pm-label {
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  cursor: default; font-weight: bold;
}
.pmenu:hover .pm-label, .pmenu.open .pm-label { background: var(--menu-hl); color: #fff; }
.cof-ic {
  width: 18px; height: 18px; display: inline-block;
  background: url("../img/ubuntu-logo.svg") center/contain no-repeat;
}

.quick-ic, .tray-ic {
  display: flex; align-items: center; padding: 0 7px; cursor: pointer;
  font-size: 15px;
}
.quick-ic:hover { background: rgba(232,133,61,.35); }
.quick-ic.active { background: var(--menu-hl); }
#clock { display: flex; align-items: center; padding: 0 8px; font-weight: bold; }

/* ---------- menus déroulants ---------- */
.dropdown, .submenu {
  position: absolute; min-width: 215px;
  background: #fbf9f5; border: 1px solid #9a917e;
  box-shadow: 3px 4px 10px rgba(0,0,0,.4);
  padding: 3px; z-index: 6000;
}
.dropdown { top: 100%; left: 0; display: none; }
.pmenu.open .dropdown { display: block; }
.mi {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 5px 9px; cursor: default; color: #2e2a24; white-space: nowrap;
}
.mi:hover { background: var(--menu-hl); color: #fff; }
.mi .mi-ic { width: 20px; text-align: center; }
.mi .mi-ic .mi-img { width: 17px; height: 17px; object-fit: contain; vertical-align: -3px; }
.mi .arrow { margin-left: auto; font-size: 10px; }
.msep { height: 1px; background: #d8d2c6; margin: 3px 6px; }
.submenu { left: calc(100% - 3px); top: -4px; display: none; }
.mi:hover > .submenu { display: block; }

/* ---------- cube / espaces de travail ---------- */
#viewport3d {
  position: absolute; top: 27px; bottom: 27px; left: 0; right: 0;
  perspective: 2300px; overflow: visible;
  background: #1d130a;
}
#cube {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(-640px);
}
#cube.anim { transition: transform .55s cubic-bezier(.35,.1,.25,1); }
#viewport3d.cubemode { cursor: grab; }
#viewport3d.cubemode .face * { pointer-events: none; }
.face {
  position: absolute; inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}
.wallpaper { position: absolute; inset: 0; }
.wallpaper svg { width: 100%; height: 100%; display: block; }
.wallpaper .wp-img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }

/* ---------- icônes du bureau ---------- */
.dicon {
  position: absolute; width: 84px; text-align: center; cursor: default;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); font-size: 12px;
}
.dicon .big { font-size: 38px; display: block; }
.dicon .big-img { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 2px;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.dicon.sel .lbl { background: rgba(221,72,20,.75); border-radius: 3px; }

/* ---------- fenêtres (thème Human) ---------- */
.win {
  position: absolute; min-width: 240px; min-height: 120px;
  background: #efebe3; border: 1px solid var(--win-border);
  border-radius: 7px 7px 0 0;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
}
.win.maxed { border-radius: 0; }
.tbar {
  height: 26px; flex: none;
  display: flex; align-items: center; gap: 6px; padding: 0 6px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--human-tbar1), var(--human-tbar2) 60%, var(--human-tbar3));
  color: #fff; font-weight: bold; font-size: 13px;
  cursor: default; text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.win.inactive .tbar {
  background: linear-gradient(#e2dcd1, #c6bfb0);
  color: #7d766a; text-shadow: none;
}
.ttitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.tbtns { display: flex; gap: 4px; }
.tbtns b {
  width: 19px; height: 19px; border-radius: 4px; font-size: 11px;
  font-weight: normal; line-height: 18px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.22); border: 1px solid rgba(0,0,0,.25);
}
.tbtns b:hover { background: rgba(255,255,255,.5); }
.tbtns .b-close:hover { background: #d8262c; color: #fff; }
.wbody {
  flex: 1; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.rsz {
  position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px;
  cursor: nwse-resize; z-index: 5;
}

/* ---------- liste des tâches & sélecteur ---------- */
#tasklist { display: flex; gap: 3px; padding: 0 4px; overflow: hidden; flex: 4; }
.task {
  display: flex; align-items: center; gap: 5px;
  width: 165px; min-width: 60px; padding: 2px 7px; font-size: 12px;
  background: linear-gradient(#fdfbf7, #e4ddd0);
  border: 1px solid #a89f8c; border-radius: 3px; cursor: pointer;
  overflow: hidden; white-space: nowrap;
}
.task.on { background: linear-gradient(#d8d0c0, #cfc6b4); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.task.min { color: #8d8574; font-style: italic; }
.task span { overflow: hidden; text-overflow: ellipsis; }

#wswitch { display: flex; gap: 2px; padding: 0 6px; }
.wsbox {
  width: 34px; height: 19px; border: 1px solid #8f8674; border-radius: 2px;
  background: #cdc5b4; cursor: pointer; position: relative; overflow: hidden;
}
.wsbox.cur { background: #8a5a28; border-color: #5e3a14; }
.wsbox i {
  position: absolute; background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.3); border-radius: 1px;
}

/* ---------- notifications ---------- */
#notify {
  position: absolute; top: 34px; right: 10px; z-index: 6500;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.bubble {
  max-width: 330px; padding: 11px 15px; border-radius: 8px;
  background: rgba(36,30,24,.92); color: #f3ede2; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  animation: bubin .3s;
}
.bubble b { color: #f4a96a; }
@keyframes bubin { from { opacity: 0; transform: translateY(-8px);} }

/* ---------- boîte de dialogue modale ---------- */
#modal {
  position: absolute; inset: 0; z-index: 7000;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.dlg {
  background: #efebe3; border: 1px solid var(--win-border); border-radius: 7px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); min-width: 360px;
}
.dlg .tbar { border-radius: 6px 6px 0 0; }
.dlg-body { padding: 20px 22px; font-size: 13.5px; color: #3a3429; }
.dlg-body h3 { margin-bottom: 8px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 14px; }

button.gbtn {
  font: inherit; font-size: 13px; padding: 5px 16px; cursor: pointer;
  background: linear-gradient(#fdfbf7, #e0d9cb);
  border: 1px solid #a89f8c; border-radius: 4px; color: #3a3429;
}
button.gbtn:hover { background: linear-gradient(#fff, #ece5d8); }
button.gbtn.primary {
  background: linear-gradient(#f0a35d, #d4731a); color: #fff; border-color: #9c5210;
}

/* ============================================================
   APPLICATIONS
   ============================================================ */

/* ---- Firefox ---- */
.ff-toolbar {
  display: flex; align-items: center; gap: 5px; padding: 5px 7px;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-bottom: 1px solid var(--panel-border);
}
.ff-toolbar button {
  font: inherit; width: 28px; height: 26px; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 4px;
}
.ff-toolbar button:hover { border-color: #a89f8c; background: #fff; }
.ff-toolbar button:disabled { opacity: .35; cursor: default; }
.ff-url {
  flex: 1; font: inherit; padding: 4px 9px;
  border: 1px solid #a89f8c; border-radius: 12px; background: #fff;
  outline-color: var(--human-orange);
}
.ff-go { font-weight: bold; }
.ff-body { flex: 1; position: relative; background: #fff; }
.ff-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ff-status {
  height: 21px; display: flex; align-items: center; padding: 0 8px; gap: 8px;
  font-size: 11.5px; color: #5c564b;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-top: 1px solid var(--panel-border);
}
.throbber {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #d8d2c6; border-top-color: var(--human-orange);
  animation: spin .8s linear infinite; visibility: hidden;
}
.loading .throbber { visibility: visible; }
@keyframes spin { to { transform: rotate(360deg); } }

.ff-start {
  position: absolute; inset: 0; overflow: auto; background: #fff;
  padding: 44px 60px; color: #333; -webkit-user-select: text; user-select: text;
}
.ff-start h1 { font-size: 26px; color: var(--human-orange); margin-bottom: 4px; }
.ff-start .sub { color: #888; margin-bottom: 26px; }
.ff-search { display: flex; gap: 8px; margin-bottom: 30px; max-width: 480px; }
.ff-search input {
  flex: 1; font: inherit; font-size: 15px; padding: 7px 12px;
  border: 1px solid #aaa; border-radius: 4px;
}
.ff-start h2 { font-size: 15px; margin-bottom: 10px; color: #555; }
.ff-links { line-height: 2; }
.ff-links a { color: #1668ad; cursor: pointer; text-decoration: underline; }
.ff-note {
  margin-top: 30px; padding: 10px 14px; background: #fff6e8;
  border: 1px solid #eecf9a; border-radius: 4px; font-size: 12px; color: #7a6238;
}

/* ---- Terminal ---- */
.term {
  flex: 1; background: #1d1812; color: #e8e2d6; padding: 8px 10px;
  font: 13px/1.45 "DejaVu Sans Mono", "Liberation Mono", monospace;
  overflow-y: auto; cursor: text; -webkit-user-select: text; user-select: text;
  white-space: pre-wrap; word-break: break-word;
}
.term .ps1 { color: #8ae234; font-weight: bold; }
.term .path { color: #729fcf; font-weight: bold; }
.term .caret {
  display: inline-block; width: 8px; height: 14px; vertical-align: -2px;
  background: #e8e2d6; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- gedit ---- */
.gedit-bar {
  display: flex; gap: 2px; padding: 4px 6px; font-size: 12px;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-bottom: 1px solid var(--panel-border); color: #5c564b;
}
.gedit-bar span { padding: 3px 8px; border-radius: 3px; }
.gedit-bar span:hover { background: #fff; }
.gedit-txt {
  flex: 1; resize: none; border: 0; outline: 0; padding: 10px 12px;
  font: 13.5px/1.5 "DejaVu Sans Mono", monospace; color: #2e2a24; background: #fff;
  -webkit-user-select: text; user-select: text;
}

/* ---- Nautilus ---- */
.nau-bar {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-bottom: 1px solid var(--panel-border); font-size: 12.5px;
}
.nau-bar button {
  font: inherit; padding: 3px 10px; cursor: pointer;
  background: linear-gradient(#fdfbf7, #e0d9cb);
  border: 1px solid #a89f8c; border-radius: 4px;
}
.nau-path { font-weight: bold; color: #5c564b; }
.nau-main { flex: 1; display: flex; overflow: hidden; }
.nau-side {
  width: 150px; background: #f6f3ec; border-right: 1px solid #d8d2c6;
  padding: 8px 0; font-size: 12.5px; overflow-y: auto;
}
.nau-side div { padding: 4px 12px; cursor: pointer; }
.nau-side div:hover { background: var(--sel); }
.nau-grid {
  flex: 1; background: #fff; overflow-y: auto; padding: 14px;
  display: grid; grid-template-columns: repeat(auto-fill, 92px);
  gap: 10px; align-content: start;
}
.nfile { text-align: center; font-size: 11.5px; cursor: default; color: #2e2a24; border-radius: 4px; padding: 6px 2px; }
.nfile .big { font-size: 34px; display: block; }
.nfile:hover { background: #f4e3d2; }
.nau-status {
  height: 22px; font-size: 11.5px; color: #5c564b; padding: 0 10px;
  display: flex; align-items: center;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-top: 1px solid var(--panel-border);
}

/* ---- eboard (échecs FICS) ---- */
.eb-main { flex: 1; display: flex; overflow: hidden; background: #e6e0d4; }
.eb-left { display: flex; flex-direction: column; padding: 8px; gap: 6px; }
.eb-status { font-size: 12px; font-weight: bold; color: #3a3429; min-height: 15px; }
.eb-board {
  display: grid; grid-template-columns: repeat(8, 51px); grid-template-rows: repeat(8, 51px);
  border: 2px solid #5e5549; width: fit-content;
}
.eb-sq {
  width: 51px; height: 51px; font-size: 40px; line-height: 51px;
  text-align: center; cursor: pointer; color: #1c1208;
}
.eb-sq.l { background: #ecd9b9; } .eb-sq.d { background: #ae8a68; }
.eb-sq.sel { outline: 3px solid #dd4814; outline-offset: -3px; }
.eb-sq.last { box-shadow: inset 0 0 0 3px rgba(221,72,20,.45); }
.eb-players { font-size: 11.5px; color: #5c564b; }
.eb-right {
  flex: 1; display: flex; flex-direction: column;
  border-left: 1px solid #a89f8c; min-width: 0;
}
.eb-console {
  flex: 1; overflow-y: auto; background: #fff; padding: 6px 8px;
  font: 12px/1.45 "DejaVu Sans Mono", monospace; color: #2e2a24;
  white-space: pre-wrap; word-break: break-word;
  -webkit-user-select: text; user-select: text;
}
.eb-btns {
  display: flex; gap: 4px; padding: 4px 6px; flex-wrap: wrap;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-top: 1px solid var(--panel-border);
}
.eb-btns .gbtn { font-size: 11.5px; padding: 3px 9px; }
.eb-inrow {
  display: flex; gap: 6px; padding: 5px 6px; align-items: center;
  background: linear-gradient(var(--panel-bg1), var(--panel-bg2));
  border-top: 1px solid var(--panel-border); font: bold 12px monospace;
}
.eb-in {
  flex: 1; font: 13px "DejaVu Sans Mono", monospace; padding: 4px 8px;
  border: 1px solid #a89f8c; border-radius: 3px; outline-color: var(--human-orange);
}

/* ---- client SSH ---- */
.ssh-form {
  padding: 26px 30px; flex: 1; overflow: auto; color: #3a3429;
  display: flex; flex-direction: column; gap: 11px;
}
.ssh-form h3 { margin-bottom: 6px; }
.ssh-form label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; max-width: 430px; font-size: 13px;
}
.ssh-form input {
  font: inherit; padding: 5px 9px; width: 280px;
  border: 1px solid #a89f8c; border-radius: 3px; outline-color: var(--human-orange);
}
.ssh-form input.s-port { width: 70px; }
.ssh-form .s-go { align-self: flex-start; margin-top: 6px; }
.ssh-err { color: #b3261e; font-size: 12.5px; }
.ssh-note {
  margin-top: 8px; padding: 9px 12px; max-width: 430px;
  background: #fff6e8; border: 1px solid #eecf9a; border-radius: 4px;
  font-size: 11.5px; color: #7a6238;
}
.ssh-term { position: absolute; inset: 0; background: #1d1812; padding: 3px; }
.ssh-term .xterm { height: 100%; }

/* ---- écran de veille ---- */
#saver {
  position: absolute; inset: 0; z-index: 8000; background: #000;
  cursor: none;
}
#saver canvas { width: 100%; height: 100%; display: block; }

/* ---- À propos / Apparence ---- */
.about { padding: 24px 28px; overflow: auto; flex: 1; color: #3a3429; line-height: 1.6; }
.about h2 { color: var(--human-orange); margin-bottom: 6px; }
.about .cof-big {
  width: 56px; height: 56px; border-radius: 50%; background: var(--human-orange);
  margin-bottom: 14px; position: relative;
}
.about .cof-big::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 4px dotted #fff;
}
.appearance { padding: 18px 22px; flex: 1; overflow: auto; color: #3a3429; font-size: 13px; }
.appearance label { display: block; margin: 7px 0; cursor: pointer; }
.appearance .fx-note { margin-top: 14px; font-size: 12px; color: #8a7c6a; }
