/* Bureau de Yasser : portfolio façon shell Linux (inspiré de l'ergonomie de caelestia-dots/shell, code écrit de zéro) */
@font-face { font-family: Rubik; src: url(fonts/rubik.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jbmono.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

/* Schéma de couleurs : recalculé en JS depuis la teinte du fond d'écran (--h).
   Valeurs par défaut = schéma sombre, teinte bleue. */
:root {
  --h: 250;
  --bar: 58px; --b: 10px; --r: 26px; --gap: 10px; --wr: 16px;
  --ease: cubic-bezier(.2, 0, 0, 1);          /* courbe « emphasized » de Material 3 */
  --ease-out: cubic-bezier(.05, .7, .1, 1);
  --t: 420ms;
  --primary: oklch(.82 .1 var(--h));
  --on-primary: oklch(.26 .07 var(--h));
  --primary-cont: oklch(.36 .08 var(--h));
  --on-primary-cont: oklch(.92 .05 var(--h));
  --secondary: oklch(.82 .04 var(--h));
  --secondary-cont: oklch(.34 .03 var(--h));
  --tertiary: oklch(.83 .08 calc(var(--h) + 70));
  --surface: oklch(.165 .012 var(--h));
  --surface-low: oklch(.19 .014 var(--h));
  --surface-cont: oklch(.215 .016 var(--h));
  --surface-high: oklch(.255 .018 var(--h));
  --surface-top: oklch(.3 .02 var(--h));
  --on-surface: oklch(.93 .01 var(--h));
  --on-surface-var: oklch(.78 .02 var(--h));
  --outline: oklch(.58 .02 var(--h));
  --outline-var: oklch(.36 .015 var(--h));
  --win: oklch(.19 .014 var(--h) / .93);
  --shadow: 0 10px 40px oklch(0 0 0 / .35);
  color-scheme: dark;
}
:root.light {
  --primary: oklch(.45 .13 var(--h));
  --on-primary: oklch(.99 .01 var(--h));
  --primary-cont: oklch(.9 .06 var(--h));
  --on-primary-cont: oklch(.28 .08 var(--h));
  --secondary: oklch(.45 .04 var(--h));
  --secondary-cont: oklch(.9 .03 var(--h));
  --tertiary: oklch(.48 .1 calc(var(--h) + 70));
  --surface: oklch(.965 .008 var(--h));
  --surface-low: oklch(.945 .01 var(--h));
  --surface-cont: oklch(.925 .012 var(--h));
  --surface-high: oklch(.9 .014 var(--h));
  --surface-top: oklch(.87 .016 var(--h));
  --on-surface: oklch(.22 .015 var(--h));
  --on-surface-var: oklch(.42 .02 var(--h));
  --outline: oklch(.55 .02 var(--h));
  --outline-var: oklch(.82 .012 var(--h));
  --win: oklch(.97 .008 var(--h) / .93);
  --shadow: 0 10px 40px oklch(.3 .05 var(--h) / .18);
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) { :root { --t: 1ms; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root, :root.light { --win: var(--surface-low); } }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--surface); color: var(--on-surface);
  font: 400 15px/1.5 Rubik, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 22px; height: 22px; fill: currentColor; flex: none; display: block; }
.mono, pre, code, kbd { font-family: "JetBrains Mono", ui-monospace, monospace; }
[hidden] { display: none !important; }

/* Fond d'écran + horloge du bureau */
#wall { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.desk-clock {
  position: fixed; left: calc(var(--bar) + 44px); bottom: 40px; pointer-events: none;
  color: oklch(.97 .02 var(--h)); text-shadow: 0 2px 30px oklch(0 0 0 / .35);
}
:root.light .desk-clock { color: oklch(.25 .05 var(--h)); text-shadow: 0 2px 30px oklch(1 0 0 / .4); }
.desk-clock__time { font-size: clamp(64px, 9vw, 128px); font-weight: 300; line-height: .9; letter-spacing: -.03em; }
.desk-clock__date { font-size: 20px; opacity: .85; margin-top: 8px; padding-left: 6px; }

/* Bordure d'écran : un trou arrondi, le reste couvert par l'ombre portée */
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.frame__hole {
  position: absolute; top: var(--b); right: var(--b); bottom: var(--b); left: var(--bar);
  border-radius: var(--r); box-shadow: 0 0 0 200vmax var(--surface);
}

/* Barre verticale */
.bar {
  position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--bar);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0;
}
.bar > *, .bar__tray > * { flex: none; }
.bar__logo {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  color: var(--primary); transition: background var(--t) var(--ease), border-radius var(--t) var(--ease);
}
.bar__logo:hover, .bar__logo.is-on { background: var(--primary-cont); border-radius: 50%; }
.bar__logo svg { width: 26px; height: 26px; }
.bar__ws {
  display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 99px; background: var(--surface-cont);
}
.ws {
  position: relative; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center;
  transition: height var(--t) var(--ease), background var(--t) var(--ease);
}
.ws::after {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--outline);
  transition: inherit; transition-property: background, width, height;
}
.ws.has-win::after { background: var(--on-surface-var); }
.ws.is-on { height: 44px; background: var(--primary); }
.ws.is-on::after { background: var(--on-primary); height: 18px; }
.ws:hover:not(.is-on) { background: var(--surface-high); }
.bar__title {
  writing-mode: vertical-rl; transform: rotate(180deg); max-height: 30vh; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; color: var(--on-surface-var); font-size: 13px; letter-spacing: .02em; margin-top: 6px;
}
.bar__fill { flex: 1 1 auto; }
.bar__tray { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 99px; background: var(--surface-cont); }
.bar__icon { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; color: var(--on-surface-var); position: relative; }
.bar__icon:hover { background: var(--surface-high); color: var(--on-surface); }
.bar__icon .count {
  position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px;
  background: var(--primary); color: var(--on-primary); font-size: 10px; font-weight: 600; line-height: 15px; text-align: center;
}
.bar__clock {
  display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-weight: 500; font-size: 15px;
  padding: 8px 4px; border-radius: 99px; color: var(--primary);
}
.bar__clock:hover { background: var(--surface-cont); }
.bar__power { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; color: oklch(.75 .14 25); }
:root.light .bar__power { color: oklch(.5 .17 25); }
.bar__power:hover { background: var(--surface-cont); }

/* Tiroirs : même couleur que la bordure, glissent depuis dessous elle, avec des « oreilles » concaves */
.drawer {
  --sz: 0px;
  position: fixed; z-index: 25; background: var(--surface); color: var(--on-surface);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.drawer::before, .drawer::after { content: ""; position: absolute; width: var(--r); height: var(--r); pointer-events: none; }
.drawer__in { padding: 18px 20px; }

.drawer--top { top: var(--b); left: calc(50% + (var(--bar) - var(--b)) / 2); width: min(820px, calc(100vw - var(--bar) - 80px));
  translate: -50% 0; border-radius: 0 0 var(--r) var(--r); transform: translateY(calc(-100% - var(--b))); }
.drawer--top::before { left: calc(-1 * var(--r)); top: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - .5px), var(--surface) var(--r)); }
.drawer--top::after { right: calc(-1 * var(--r)); top: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), var(--surface) var(--r)); }

.drawer--bottom { bottom: var(--b); left: calc(50% + (var(--bar) - var(--b)) / 2); width: min(640px, calc(100vw - var(--bar) - 80px));
  translate: -50% 0; border-radius: var(--r) var(--r) 0 0; transform: translateY(calc(100% + var(--b))); }
.drawer--bottom::before { left: calc(-1 * var(--r)); bottom: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--surface) var(--r)); }
.drawer--bottom::after { right: calc(-1 * var(--r)); bottom: 0; background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--surface) var(--r)); }

.drawer--right { right: var(--b); top: 50%; translate: 0 -50%; border-radius: var(--r) 0 0 var(--r); transform: translateX(calc(100% + var(--b))); }
.drawer--right::before { right: 0; top: calc(-1 * var(--r)); background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--surface) var(--r)); }
.drawer--right::after { right: 0; bottom: calc(-1 * var(--r)); background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - .5px), var(--surface) var(--r)); }
.drawer.is-open { transform: none; }

/* Tableau de bord */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 99px; background: var(--surface-cont); width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 7px 16px; border-radius: 99px; color: var(--on-surface-var); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.tab:hover { color: var(--on-surface); }
.tab.is-on { background: var(--primary); color: var(--on-primary); }
.tabpane { display: none; }
.tabpane.is-on { display: block; animation: rise var(--t) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.tile { background: var(--surface-cont); border-radius: 18px; padding: 16px; }
.dash { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.dash__user { grid-column: 1; display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 58px; height: 58px; border-radius: 22px; flex: none; display: grid; place-items: center;
  background: var(--primary-cont); color: var(--on-primary-cont); font-weight: 600; font-size: 21px; letter-spacing: .02em;
}
.avatar--big { width: 96px; height: 96px; border-radius: 36px; font-size: 34px; }
.dash__name { font-weight: 600; font-size: 17px; }
.dash__role { color: var(--primary); font-size: 14px; }
.dash__meta { color: var(--on-surface-var); font-size: 13px; }
.dash__date { display: flex; flex-direction: column; justify-content: center; }
.dash__big { font-size: 40px; font-weight: 300; line-height: 1; }
.dash__day { color: var(--on-surface-var); font-size: 14px; margin-top: 6px; }
.dash__cal { grid-row: span 2; grid-column: 3; font-size: 12.5px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; font-size: 14px; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__grid span { padding: 4px 0; border-radius: 99px; }
.cal__grid .dow { color: var(--on-surface-var); font-weight: 500; }
.cal__grid .out { opacity: .35; }
.cal__grid .today { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.dash__last { grid-column: 1; text-align: left; display: flex; gap: 12px; align-items: center; transition: background var(--t) var(--ease); }
.dash__last:hover { background: var(--surface-high); }
.dash__last img { width: 92px; height: 58px; object-fit: cover; border-radius: 10px; flex: none; }
.kicker { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.dash__last b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.dash__stats { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: center; }
.stat b { display: block; font-size: 26px; font-weight: 500; color: var(--primary); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--on-surface-var); }
.perf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ring { text-align: center; }
.ring svg { width: 108px; height: 108px; transform: rotate(135deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: var(--surface-high); }
.ring .val { stroke: var(--primary); transition: stroke-dashoffset 600ms var(--ease); }
.ring__n { margin-top: -66px; height: 40px; font-size: 22px; font-weight: 500; }
.ring__l { margin-top: 18px; font-size: 13px; color: var(--on-surface-var); }
.fine { font-size: 12.5px; color: var(--on-surface-var); margin: 12px 4px 0; }
.fetch { margin: 0; font-size: 13px; line-height: 1.55; color: var(--on-surface); white-space: pre-wrap; }
.fetch .k { color: var(--primary); font-weight: 600; }
.fetch .a { color: var(--tertiary); }

/* Lanceur */
.results { list-style: none; margin: 0 0 12px; padding: 0; max-height: min(52vh, 460px); overflow-y: auto; scrollbar-width: thin; }
.res {
  display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 14px; cursor: pointer;
  transition: background 160ms var(--ease);
}
.res.is-sel { background: var(--surface-high); }
.res__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-cont); color: var(--on-primary-cont); flex: none; overflow: hidden; }
.res__ico img { width: 100%; height: 100%; object-fit: cover; }
.res__t { font-weight: 500; line-height: 1.25; }
.res__d { font-size: 13px; color: var(--on-surface-var); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.res__k { margin-left: auto; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--outline); flex: none; }
.res-empty { padding: 18px 12px; color: var(--on-surface-var); }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface-cont); border-radius: 99px; padding: 0 18px; }
.search__ico { color: var(--on-surface-var); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--on-surface); font: inherit; font-size: 16px; padding: 14px 0; }
.search input::placeholder { color: var(--outline); }

/* Session */
.session { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; }
.session__btn {
  width: 84px; height: 84px; border-radius: 26px; background: var(--surface-cont); display: grid; place-items: center;
  color: var(--on-surface); text-decoration: none; position: relative; transition: border-radius var(--t) var(--ease), background var(--t) var(--ease);
}
.session__btn svg { width: 30px; height: 30px; }
.session__btn em {
  position: absolute; right: calc(100% + 12px); white-space: nowrap; font-style: normal; font-size: 13px; padding: 5px 12px;
  border-radius: 99px; background: var(--surface-top); opacity: 0; transform: translateX(6px); transition: inherit; transition-property: opacity, transform; pointer-events: none;
}
.session__btn:hover, .session__btn:focus-visible { border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.session__btn:hover em, .session__btn:focus-visible em { opacity: 1; transform: none; color: var(--on-surface); }

/* Notifications */
.notifs { position: fixed; z-index: 45; top: calc(var(--b) + 14px); right: calc(var(--b) + 14px); width: min(380px, calc(100vw - var(--bar) - 48px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.notif {
  pointer-events: auto; display: flex; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface-cont);
  box-shadow: var(--shadow); animation: slidein var(--t) var(--ease-out); cursor: pointer;
}
.notif.is-out { animation: slideout 260ms var(--ease) forwards; }
@keyframes slidein { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes slideout { to { opacity: 0; transform: translateX(40px) scale(.96); } }
.notif__ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-cont); color: var(--on-primary-cont); flex: none; }
.notif__app { font-size: 12px; color: var(--on-surface-var); }
.notif__t { font-weight: 500; line-height: 1.3; }
.notif__b { font-size: 13.5px; color: var(--on-surface-var); line-height: 1.4; }

/* Fenêtres en mosaïque */
#tiles { position: fixed; z-index: 10; top: var(--b); right: var(--b); bottom: var(--b); left: var(--bar); }
.win {
  position: absolute; display: flex; flex-direction: column; overflow: hidden;
  background: var(--win); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: var(--wr); border: 2px solid var(--outline-var); box-shadow: var(--shadow);
  transition: left var(--t) var(--ease), top var(--t) var(--ease), width var(--t) var(--ease), height var(--t) var(--ease),
              border-color var(--t) var(--ease), opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.win.is-active { border-color: var(--primary); }
.win.is-new { opacity: 0; transform: scale(.94); }
.win.is-gone { opacity: 0; transform: scale(.94); pointer-events: none; }
.win.is-away { opacity: 0; pointer-events: none; transform: translateY(var(--away, 40px)); }
.win__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; flex: none; color: var(--on-surface-var); font-size: 13.5px; font-weight: 500; }
.win__head svg { width: 18px; height: 18px; color: var(--primary); }
.win__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__btn { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; color: var(--on-surface-var); }
.win__btn svg { width: 17px; height: 17px; color: inherit; }
.win__btn:hover { background: var(--surface-high); color: var(--on-surface); }
.win__btn--x:hover { background: oklch(.62 .17 25); color: #fff; }
.win__body { flex: 1; min-height: 0; overflow: auto; padding: 4px 18px 18px; scrollbar-width: thin; scrollbar-color: var(--outline-var) transparent; }

/* Appli Projets (gestionnaire de fichiers) */
.fm { display: grid; grid-template-columns: 170px 1fr; gap: 14px; height: 100%; }
.fm__side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: start; }
.fm__cat { text-align: left; padding: 8px 14px; border-radius: 99px; color: var(--on-surface-var); font-size: 14px; display: flex; justify-content: space-between; }
.fm__cat small { color: var(--outline); }
.fm__cat:hover { background: var(--surface-high); color: var(--on-surface); }
.fm__cat.is-on { background: var(--secondary-cont); color: var(--on-surface); font-weight: 500; }
.fm__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; align-content: start; }
.card {
  text-align: left; border-radius: 16px; overflow: hidden; background: var(--surface-cont); display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.card:hover { transform: translateY(-3px); background: var(--surface-high); }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--surface-high); }
.card__b { padding: 10px 12px 12px; }
.card__t { font-weight: 500; }
.card__d { font-size: 13px; color: var(--on-surface-var); line-height: 1.35; margin-top: 2px; }
.card__y { font-size: 11.5px; color: var(--primary); font-weight: 600; letter-spacing: .04em; margin-top: 6px; }
.detail { max-width: 760px; }
.detail img { width: 100%; max-height: 340px; border-radius: 16px; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.detail h2 { font-size: 26px; font-weight: 600; margin: 16px 0 4px; letter-spacing: -.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--secondary-cont); color: var(--on-surface); }
.detail p { color: var(--on-surface-var); font-size: 15.5px; line-height: 1.6; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px; font-weight: 500; font-size: 14px;
  background: var(--primary); color: var(--on-primary); text-decoration: none; transition: border-radius var(--t) var(--ease), filter var(--t);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-radius: 12px; }
.btn--tonal { background: var(--secondary-cont); color: var(--on-surface); }

/* Appli Journal */
.blog { display: flex; flex-direction: column; gap: 4px; }
.post { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 16px; text-decoration: none; color: inherit; transition: background var(--t) var(--ease); }
.post:hover { background: var(--surface-cont); }
.post img { width: 132px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; }
.post__t { font-weight: 500; line-height: 1.3; }
.post__d { font-size: 13px; color: var(--on-surface-var); line-height: 1.4; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__m { font-size: 11.5px; color: var(--outline); margin-top: 4px; letter-spacing: .03em; }

/* Appli À propos */
.about { display: grid; gap: 14px; }
.about__hero { display: flex; gap: 16px; align-items: center; }
.about__hero h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.about__hero p { margin: 2px 0 0; color: var(--primary); }
.about__intro { color: var(--on-surface-var); line-height: 1.6; margin: 0; }
.h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-var); font-weight: 600; margin: 6px 0 2px; }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.skill { background: var(--surface-cont); border-radius: 14px; padding: 10px 14px; }
.skill__n { font-weight: 500; font-size: 14px; }
.skill__bar { height: 6px; border-radius: 99px; background: var(--surface-high); margin-top: 8px; overflow: hidden; }
.skill__bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); width: 0; transition: width 900ms var(--ease-out); }
.skill__l { font-size: 12px; color: var(--on-surface-var); margin-top: 4px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--outline-var); }
.tl li:first-child { border-top: 0; }
.tl__w { font-size: 12.5px; color: var(--primary); font-weight: 500; }
.tl__t { font-weight: 500; line-height: 1.3; }
.tl__p { font-size: 13px; color: var(--on-surface-var); }
.tl__d { font-size: 13.5px; color: var(--on-surface-var); margin-top: 3px; line-height: 1.5; }

/* Appli Terminal : curseur fixe, jamais clignotant */
.term { font: 13.5px/1.6 "JetBrains Mono", ui-monospace, monospace; min-height: 100%; cursor: text; }
.term__out { white-space: pre-wrap; word-break: break-word; }
.term__line { display: flex; gap: 0; }
.term__ps { color: var(--primary); white-space: pre; }
.term__ps b { color: var(--tertiary); font-weight: 600; }
.term input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--on-surface); font: inherit; padding: 0; caret-color: var(--primary); }
.term .ok { color: var(--primary); } .term .dim { color: var(--on-surface-var); } .term .err { color: oklch(.75 .14 25); } .term .acc { color: var(--tertiary); }
.term a { color: var(--primary); }
.term button.lnk { color: var(--primary); text-decoration: underline; font: inherit; }

/* Appli Contact */
.contact { display: grid; gap: 10px; max-width: 520px; }
.contact__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface-cont); color: inherit; text-decoration: none; text-align: left; width: 100%; transition: background var(--t) var(--ease); }
.contact__row:hover { background: var(--surface-high); }
.contact__row .res__ico { width: 42px; height: 42px; }
.contact__row b { display: block; font-weight: 500; }
.contact__row span { font-size: 13px; color: var(--on-surface-var); }

/* Écran de verrouillage */
.lock {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: oklch(.12 .02 var(--h) / .35); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  color: oklch(.97 .02 var(--h)); transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
:root.light .lock { background: oklch(.95 .02 var(--h) / .35); color: oklch(.22 .04 var(--h)); }
.lock.is-out { opacity: 0; transform: translateY(-4%); pointer-events: none; }
.lock__clock { font-size: clamp(80px, 15vw, 170px); font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.lock__date { font-size: 20px; opacity: .85; text-transform: capitalize; margin-bottom: 7vh; }
.lock__user { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 28px; border-radius: 28px; transition: background var(--t) var(--ease); }
.lock__user:hover { background: oklch(1 0 0 / .08); }
.lock__name { font-size: 20px; font-weight: 500; }
.lock__hint { font-size: 13.5px; opacity: .75; }
.noscript { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: var(--surface); margin: 0; padding: 20px; text-align: center; }

/* Téléphone : barre en bas, une fenêtre à la fois */
@media (max-width: 820px) {
  :root { --bar: 62px; --b: 8px; --r: 22px; }
  .frame__hole { left: var(--b); bottom: var(--bar); }
  #tiles { left: var(--b); bottom: var(--bar); }
  .bar { top: auto; right: 0; width: auto; height: var(--bar); flex-direction: row; padding: 0 10px calc(env(safe-area-inset-bottom) * .5); gap: 8px; }
  .bar__ws, .bar__tray { flex-direction: row; }
  .ws.is-on { height: 26px; width: 44px; }
  .ws.is-on::after { width: 18px; height: 8px; }
  .bar__title, .bar__clock span + span::before { display: none; }
  .bar__clock { flex-direction: row; gap: 2px; padding: 6px 8px; }
  .bar__clock span + span::before { content: ":"; display: inline; }
  .bar__tray { display: none; }
  .ws { width: 24px; }
  .bar__ws { gap: 4px; padding: 6px; }
  :root { --win: oklch(.19 .014 var(--h) / .97); }
  :root.light { --win: oklch(.97 .008 var(--h) / .97); }
  .desk-clock { left: 28px; bottom: calc(var(--bar) + 30px); }
  .drawer--top { left: 50%; width: calc(100vw - 2 * var(--b) - 2 * var(--r)); max-height: calc(100dvh - var(--bar) - 30px); overflow-y: auto; }
  .drawer--bottom { left: 50%; bottom: var(--bar); width: calc(100vw - 2 * var(--b) - 2 * var(--r)); transform: translateY(calc(100% + var(--bar))); }
  .drawer--bottom.is-open { transform: none; }
  .drawer--right { top: auto; bottom: calc(var(--bar) + 40px); translate: 0 0; }
  .session { flex-direction: row; flex-wrap: wrap; width: 200px; }
  .session__btn { width: 76px; height: 76px; }
  .session__btn em { display: none; }
  .dash { grid-template-columns: 1fr 1fr; }
  .dash__user, .dash__last { grid-column: 1 / -1; }
  .dash__cal { grid-column: 1 / -1; grid-row: auto; }
  .dash__stats, .dash__date { grid-column: auto; }
  .perf { grid-template-columns: 1fr 1fr; }
  .fm { grid-template-columns: 1fr; }
  .fm__side { flex-direction: row; overflow-x: auto; position: static; }
  .fm__cat { white-space: nowrap; gap: 8px; }
  .post { grid-template-columns: 96px 1fr; }
  .post img { width: 96px; }
  .tl li { grid-template-columns: 1fr; gap: 2px; }
  .notifs { right: var(--b); left: var(--b); width: auto; top: var(--b); }
  .win { border-width: 0; }
}
