/* ALEX/OS : le portfolio d'Alexandre By.
   Ordinateur (>= 1024 px de large) : bureau avec fenêtres déplaçables et dock.
   Téléphone et tablette : une page qu'on fait défiler ; Reels, making-of et tl;dr en panneaux.
   Une seule couleur d'accent : le citron « volt ». Formes : fenêtres 14 px, boutons en pilule. */

:root {
  --bg: #0b0c0a;
  --win: #121410;
  --win-2: #181b15;
  --win-3: #22261d;
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --text: #eef0e8;
  --muted: #9a9e90;
  --accent: #c8f031;
  --on-accent: #10120b;
  --rec: #ff4d3d;
  --radius: 14px;
  --bar: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Unbounded", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100dvh;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 9999; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Démarrage ---------- */
.boot { display: none; }
.js .booting .boot {
  display: flex; flex-direction: column; justify-content: flex-end; position: fixed; inset: 0; z-index: 9000;
  background: var(--bg); padding: 32px; cursor: pointer;
}
.boot-log { margin: 0; font: 500 clamp(13px, 1.4vw, 16px)/1.8 var(--mono); color: var(--muted); white-space: pre-wrap; }
.boot-log b { color: var(--accent); font-weight: 700; }
.boot-skip { margin-top: 18px; font: 500 12px var(--mono); color: rgb(255 255 255 / 0.35); }
.boot.out { animation: boot-out .5s var(--ease) forwards; }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Champ génératif ---------- */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Barre du haut ---------- */
.bar {
  position: sticky; top: 0; z-index: 800; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px;
  background: rgb(11 12 10 / 0.72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line); font: 500 13px var(--mono);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.logo-mark {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent); font: 800 10px var(--display); letter-spacing: 0;
}
.bar-right { display: flex; align-items: center; gap: 4px; }
.bar-link {
  background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; font: 500 13px var(--mono); transition: color .2s, background-color .2s;
}
.bar-link:hover { color: var(--text); background: var(--win-3); }
.bar-lang { color: var(--text); border: 1px solid var(--line-2); }
.bar-sys { display: flex; gap: 6px; color: var(--muted); padding: 0 8px; font-size: 15px; }
.clock { color: var(--text); padding-right: 4px; min-width: 42px; text-align: right; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 1px solid transparent; text-decoration: none;
  font: 600 15px var(--body); padding: 12px 20px; border-radius: 999px;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-ghost { background: rgb(18 20 16 / 0.6); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.desk { position: relative; }
.hero { padding: 28px 16px 8px; position: relative; }
.role { font: 500 13px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; }
.hero h1 {
  font: 800 clamp(2.5rem, 9vw, 5.6rem)/0.98 var(--display); letter-spacing: -0.04em; margin-top: 14px;
  text-transform: uppercase;
}
.cursor { color: var(--accent); animation: blink 1.05s steps(1) infinite; margin-left: 0.04em; }
@keyframes blink { 50% { opacity: 0; } }
.typed-line { margin-top: 18px; font: 500 clamp(15px, 1.6vw, 19px)/1.5 var(--mono); min-height: 3em; }
.typed-line .ps { color: var(--muted); }
.typer { color: var(--accent); }
.typer::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; background: var(--accent); vertical-align: -0.15em; margin-left: 3px; animation: blink 1.05s steps(1) infinite; }
.hero-sub { margin-top: 10px; color: var(--muted); max-width: 46ch; font-size: 16.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Widget photo (téléphone) */
.widget {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 75%, rgb(200 240 49 / 0.25), transparent 70%), #0d0f0b;
  margin-bottom: 26px; border: 1px solid var(--line-2);
}
.widget .pix { position: absolute; inset: 0; }
.widget { aspect-ratio: auto; height: 300px; }
.widget-status {
  position: absolute; left: 12px; bottom: 12px; font: 700 11px var(--mono); letter-spacing: 0.08em;
  background: var(--accent); color: var(--on-accent); padding: 5px 9px; border-radius: 999px;
}

/* ---------- Grille d'apps (téléphone) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; padding: 34px 16px 130px; }
.app { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; }
.app .lab { font: 500 12px var(--body); color: var(--text); }
.ico {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px;
  background: linear-gradient(160deg, var(--win-3), var(--win)); border: 1px solid var(--line-2);
  color: var(--accent); font-size: 28px; transition: transform .25s var(--ease);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 10px 24px -12px rgb(0 0 0 / 0.8);
}
.ico-accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ico-img { background: #fff; overflow: hidden; padding: 0; }
.ico-img img { width: 100%; height: 100%; object-fit: cover; }
.app:active .ico { transform: scale(0.92); }

/* ---------- Dock ---------- */
.dock {
  position: fixed; z-index: 700; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  translate: -50% 0; display: flex; gap: 10px; padding: 10px;
  background: rgb(18 20 16 / 0.72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 20px 50px -20px rgb(0 0 0 / 0.9);
}
.dock-btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.dock-btn .ico { width: 52px; height: 52px; border-radius: 15px; font-size: 25px; }
.dock-btn .lab {
  position: absolute; left: 50%; bottom: calc(100% + 14px); translate: -50% 4px; opacity: 0; pointer-events: none;
  background: var(--win-2); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px;
  font: 500 12px var(--mono); white-space: nowrap; transition: opacity .2s, translate .2s var(--ease);
}
.dock-btn:hover .lab, .dock-btn:focus-visible .lab { opacity: 1; translate: -50% 0; }
.dock-btn:hover .ico { transform: translateY(-6px) scale(1.08); }
.dock-btn.on::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); translate: -50% 0;
}
@media (max-width: 1023px), (max-height: 619px) {
  .dock { gap: 8px; padding: 8px; border-radius: 22px; }
  .dock-btn:not([data-open="montage"]):not([data-open="agents"]):not([data-open="coolseo"]):not([data-open="contact"]) { display: none; }
  .dock-btn .lab { display: none; }
}

.foot { position: relative; z-index: 1; text-align: center; color: var(--muted); font: 500 12px var(--mono); padding: 0 16px 110px; margin-top: -90px; }

/* ---------- Fenêtres (base commune) ---------- */
.win {
  display: flex; flex-direction: column; background: var(--win); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 40px 90px -30px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(0 0 0 / 0.5);
}
.js .win { display: none; }
.js .win.open { display: flex; }
.win-bar {
  flex: none; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px;
  background: var(--win-2); border-bottom: 1px solid var(--line); user-select: none; -webkit-user-select: none;
}
.win-btns { display: flex; gap: 6px; }
.win-btns button {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--win-3); cursor: pointer; font-size: 13px; color: var(--muted); transition: background-color .2s, color .2s;
}
.win-btns button:hover { color: var(--on-accent); background: var(--accent); }
.win-title { display: flex; align-items: center; gap: 8px; font: 700 13px var(--mono); color: var(--text); letter-spacing: 0; }
.win-title i { color: var(--accent); font-size: 16px; }
.win-meta { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); }
.win-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--win-3) transparent; }
.only-mob { display: none; }
.win.active .win-bar { background: var(--win-3); }

/* ---------- Cadre technique (coins) et REC ---------- */
.cam-corners { position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--text), var(--text)) top left / 16px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) top left / 2px 16px no-repeat,
    linear-gradient(var(--text), var(--text)) top right / 16px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) top right / 2px 16px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom right / 2px 16px no-repeat;
  opacity: 0.7;
}
.cam-rec { position: absolute; top: 12px; left: 12px; font: 700 11px var(--mono); color: var(--text); display: flex; align-items: center; gap: 6px; }
.cam-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1) infinite; }

.btn-sm { padding: 9px 15px; font-size: 14px; gap: 8px; }

/* ---------- alex.exe : fiche du joueur ---------- */
#alex .win-body { overflow-y: auto; }
.pix-stage {
  position: relative; height: 300px; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 50% 70%, rgb(200 240 49 / 0.2), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    #0d0f0b;
}
.pix { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.pix-status {
  position: absolute; left: 12px; top: 12px; font: 700 10.5px var(--mono); letter-spacing: 0.06em;
  background: var(--accent); color: var(--on-accent); padding: 4px 8px; border-radius: 999px;
}
.pix-hint { position: absolute; right: 12px; bottom: 10px; font: 500 11px var(--mono); color: var(--muted); }
.sheet-body { padding: 16px 18px 20px; }
.sheet-row { display: flex; justify-content: space-between; font: 700 11.5px var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.sheet-row .lv { color: var(--accent); }
.sheet-name { font: 800 30px/1.1 var(--display); letter-spacing: -0.02em; margin-top: 8px; }
.sheet-class { font: 500 13px var(--mono); color: var(--muted); margin-top: 4px; }
.sheet-h { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 700 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.inv { margin-top: 10px; display: grid; gap: 7px; font: 500 13px var(--mono); }
.inv li { display: flex; justify-content: space-between; gap: 12px; }
.inv li span:last-child { color: var(--accent); text-align: right; }
.move { margin-top: 8px; font: 700 14px/1.5 var(--mono); }

/* ---------- montage.app ---------- */
[hidden] { display: none !important; }
.win-ed .win-body { overflow: hidden; }
.ed {
  height: 100%; display: grid; gap: 1px; background: var(--line);
  grid-template-columns: 236px minmax(0, 1fr) 270px; grid-template-rows: minmax(0, 1fr) 132px;
}
.ed > * { background: var(--win); min-height: 0; }
.ed-label {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px;
  font: 700 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--line);
}
.ed-label span { color: var(--accent); }
.ed-bin { display: flex; flex-direction: column; }
.ed-bin ol { overflow-y: auto; padding: 6px; display: grid; gap: 4px; align-content: start; scrollbar-width: thin; }
.bin-item {
  width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px; transition: background-color .2s, border-color .2s;
}
.bin-item:hover { background: var(--win-2); }
.bin-item.on { background: var(--win-3); border-color: var(--accent); }
.bin-item img { flex: none; width: 36px; height: 64px; object-fit: cover; border-radius: 4px; background: #000; }
.b-txt { display: grid; min-width: 0; }
.b-brand { font: 700 11px var(--mono); color: var(--accent); }
.b-title { font: 600 13.5px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-meta { font: 500 11px var(--mono); color: var(--muted); }
.ed-mon { display: flex; flex-direction: column; background: #070806; }
.ed-tc { font-variant-numeric: tabular-nums; }
.mon-screen { position: relative; flex: 1; min-height: 0; }
.mon-video { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; cursor: pointer; }
.mon-ctrl { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); }
.mc-keys { padding: 0 12px 8px; font: 500 10.5px var(--mono); color: var(--muted); }
.mc {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--win-2);
  display: grid; place-items: center; cursor: pointer; font-size: 16px; transition: background-color .2s, color .2s;
}
.mc:hover { background: var(--win-3); }
.mc-play { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.mc-play:hover { background: var(--accent); filter: brightness(1.08); }
.mc-time { margin-left: auto; font: 700 12px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.ed-info { overflow-y: auto; scrollbar-width: thin; }
.info { padding: 16px; display: grid; gap: 10px; align-content: start; }
.info-kind { font: 700 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.info h3 { font: 800 20px/1.15 var(--display); letter-spacing: -0.02em; }
.info h3 span { display: block; font: 700 12px var(--mono); color: var(--accent); letter-spacing: 0; margin-bottom: 4px; }
.info-concept { font: 500 11.5px var(--mono); color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; padding: 5px 8px; }
.info-sum { color: var(--muted); font-size: 14px; }
.info dl, .paper dl { margin: 0; display: grid; gap: 6px; }
.info dl div, .paper dl div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 13px; }
.info dt, .paper dt { font: 500 11px/1.9 var(--mono); color: var(--muted); }
.info dd, .paper dd { margin: 0; }
.info .btn { justify-self: start; margin-top: 4px; }
.ed-tl { grid-column: 1 / -1; position: relative; padding: 0 12px 10px; overflow: hidden; }
.tl-ruler { position: relative; height: 22px; margin-left: 44px; border-bottom: 1px solid var(--line); }
.tl-ruler span { position: absolute; top: 5px; font: 500 10px var(--mono); color: var(--muted); padding-left: 3px; border-left: 1px solid var(--line-2); }
.tl-track { display: flex; align-items: stretch; height: 44px; margin-top: 8px; }
.tl-audio { height: 30px; margin-top: 6px; }
.tl-name { flex: none; width: 44px; display: grid; place-items: center; font: 700 11px var(--mono); color: var(--muted); }
.tl-lane { position: relative; flex: 1; background: var(--win-2); border-radius: 6px; }
.clip {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; cursor: pointer;
  padding: 0 6px 0 0; background: #2b3320; border: 1px solid rgb(200 240 49 / 0.25); border-radius: 6px; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.clip img { height: 100%; width: 26px; object-fit: cover; opacity: 0.85; }
.clip span { font: 700 11px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.clip:hover { border-color: var(--accent); }
.clip.on { background: #3c4a1f; border-color: var(--accent); }
.aclip { position: absolute; top: 3px; bottom: 3px; padding: 0 2px; }
.aclip svg { width: 100%; height: 100%; fill: rgb(200 240 49 / 0.45); }
.tl-head { position: absolute; top: 0; bottom: 6px; left: 56px; width: 2px; background: var(--rec); pointer-events: none; }
.tl-head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--rec); }

/* ---------- reels.app ---------- */
.win-reels .win-body { overflow: hidden; background: #000; }
.feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.reel-card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-ui {
  position: absolute; left: 0; right: 64px; bottom: 0; padding: 60px 14px 16px; color: #f4f5ef;
  background: linear-gradient(to top, rgb(0 0 0 / 0.75), transparent);
}
.reel-user { display: flex; align-items: center; gap: 8px; font: 700 13px var(--body); }
.reel-user img { width: 28px; height: 28px; border-radius: 50%; background: var(--win-3); border: 1.5px solid var(--accent); }
.reel-ui h3 { font: 700 15px/1.3 var(--body); margin-top: 8px; }
.reel-sum { font-size: 13px; opacity: 0.85; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-side { position: absolute; right: 10px; bottom: 18px; display: grid; gap: 12px; }
.rs {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 19px;
  background: rgb(20 22 18 / 0.6); color: #f4f5ef; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.rs:hover { transform: scale(1.08); }
.rs[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- making-of : un document papier ---------- */
.win-doc .win-body { background: #2a2d26; padding: 18px; }
.paper {
  background: #f2f3ee; color: #16180f; max-width: 560px; margin: 0 auto; padding: 34px 34px 40px; border-radius: 4px;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8); font-size: 15.5px; line-height: 1.65;
}
.paper-kind { font: 700 11px var(--mono); color: #5c6150; text-transform: uppercase; letter-spacing: 0.08em; }
.paper h3 { font: 800 clamp(22px, 3vw, 30px)/1.1 var(--display); letter-spacing: -0.03em; margin-top: 10px; }
.paper-sum { font-size: 17px; margin-top: 12px; color: #2f3326; }
.paper-fig { margin: 22px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.paper-fig img { width: 120px; height: auto; border-radius: 6px; background: #000; }
.paper-fig figcaption { display: grid; gap: 12px; align-content: start; }
.paper dt { color: #6a6f5d; }
.paper .btn { justify-self: start; }
.paper-link { font: 600 13px var(--mono); color: #46640a; }
.paper > p:not(.paper-kind):not(.paper-sum) { margin-top: 14px; }

/* ---------- tl;dr ---------- */
.bar-tldr { color: var(--on-accent) !important; background: var(--accent); font-weight: 700 !important; }
.bar-tldr:hover { background: var(--accent) !important; filter: brightness(1.08); }
.tldr { padding: 18px; display: grid; gap: 12px; }
.tldr-head { display: flex; align-items: center; gap: 12px; }
.tldr-head img { width: 52px; height: 52px; border-radius: 50%; background: var(--win-3); border: 2px solid var(--accent); }
.tldr-head h3 { font: 800 20px var(--display); letter-spacing: -0.02em; }
.tldr-who { font-weight: 600; }
.tldr ul { display: grid; gap: 8px; }
.tldr li { padding-left: 22px; position: relative; color: var(--muted); font-size: 14.5px; }
.tldr li::before { content: ">"; position: absolute; left: 0; color: var(--accent); font: 700 14px var(--mono); }
.tldr-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- coolseo.app ---------- */
.url {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 10px; padding: 7px 8px 7px 12px;
  background: var(--win-3); border: 1px solid var(--line); border-radius: 999px; font: 500 12.5px var(--mono); color: var(--muted);
}
.url span { flex: 1; color: var(--text); }
.url a { text-decoration: none; background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.shot { display: block; margin: 0 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; transition: scale .8s var(--ease); }
.shot:hover img { scale: 1.02; }
.cs-copy { padding: 20px 18px 22px; display: grid; gap: 12px; }
.cs-copy h3 { font: 800 22px/1.15 var(--display); letter-spacing: -0.02em; }
.cs-copy p { color: var(--muted); max-width: 70ch; }
.cs-copy ul { display: grid; gap: 8px; margin-bottom: 6px; }
.cs-copy li { padding-left: 22px; position: relative; }
.cs-copy li::before { content: ">"; position: absolute; left: 0; color: var(--accent); font: 700 14px var(--mono); }
.cs-copy .btn { justify-self: start; }

/* ---------- Terminal et code ---------- */
.win-term .win-body { background: #0a0b09; }
.term { padding: 16px 18px 22px; font: 500 13.5px/1.7 var(--mono); }
.term .ln { margin: 0; }
.term .cmd { margin-top: 12px; color: var(--text); }
.term .cmd:first-child { margin-top: 0; }
.ps { color: var(--accent); }
.term .entry { padding: 6px 0 6px 14px; border-left: 2px solid var(--win-3); margin: 6px 0; }
.term .d { color: var(--accent); }
.term h3 { font: 700 13.5px/1.5 var(--mono); }
.term .x { color: var(--muted); }
.term .files { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #8fd0ff; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
.js .term.typing .ln { visibility: hidden; }
.js .term.typing .ln.shown { visibility: visible; }

.code { margin: 0; padding: 16px 0 20px; font: 500 13.5px/1.75 var(--mono); counter-reset: l; overflow-x: auto; }
.code code { display: block; }
.cl { display: block; padding-right: 18px; white-space: pre; }
.cl::before { counter-increment: l; content: counter(l); display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: rgb(255 255 255 / 0.22); user-select: none; }
.code .k { color: var(--accent); }
.code .s { color: var(--text); }
.code .pn { color: var(--muted); }

/* ---------- contact.vcf ---------- */
.vcard { padding: 18px; display: grid; gap: 10px; }
.vc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.vc-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--win-3); border: 2px solid var(--accent); }
.vc-head h3 { font: 800 19px var(--display); letter-spacing: -0.02em; }
.vc-head p { color: var(--muted); font-size: 13.5px; }
.vc-status { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; background: rgb(200 240 49 / 0.08); border: 1px solid rgb(200 240 49 / 0.25); }
.live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(200 240 49 / 0.18); translate: 0 -1px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; text-decoration: none;
  background: var(--win-2); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s;
}
a.row:hover, .row:has(a:hover) { border-color: var(--accent); }
.lbl { flex: none; width: 76px; font: 500 11.5px var(--mono); color: var(--muted); }
.val { flex: 1; min-width: 0; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row > i { color: var(--accent); font-size: 18px; }
.copy {
  flex: none; border: 1px solid var(--line-2); background: var(--win-3); cursor: pointer;
  font: 600 12px var(--mono); padding: 5px 10px; border-radius: 999px;
}
.copy.done { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.vc-where { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; margin: 2px 0 6px; }

/* ---------- Assistant ---------- */
#assistant .win-body { display: flex; flex-direction: column; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; min-height: 120px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.face { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--win-3); border: 1.5px solid var(--line-2); }
.msg-row .msg { max-width: none; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.msg.bot { background: var(--win-3); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.msg .act {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; font: 600 12px var(--mono); color: var(--accent);
}
.msg .act:hover { border-color: var(--accent); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; translate: 0 -2px; } }
.chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chip {
  cursor: pointer; background: var(--win-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 11px; font: 500 13px var(--body); transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--accent); }
.chip.used { opacity: 0.45; }
.chat-note { flex: none; padding: 0 14px 12px; font: 500 11px var(--mono); color: var(--muted); }

/* ================= Téléphone et tablette =================
   Pas de menus en plein écran : les apps sont des sections de la page, qu'on fait défiler.
   Seuls Reels, le making-of et tl;dr s'ouvrent par-dessus, en panneau qu'on ferme facilement. */
@media (max-width: 1023px), (max-height: 619px) {
  .bar-sys { display: none; }
  .only-desk { display: none !important; }
  .only-mob { display: initial; }
  .widget.only-mob { display: block; }
  .grid.only-mob { display: grid; }
  .hero { max-width: 640px; }
  .bar-link:not(.bar-tldr):not(.bar-lang):not(.bar-sound) { display: none; }

  /* Les apps, l'une après l'autre */
  .windows { display: grid; gap: 22px; padding: 0 12px 120px; max-width: 720px; margin-inline: auto; }
  .js .win:not(.win-overlay) { display: flex; position: relative; scroll-margin-top: 52px; border-radius: 16px; }
  .win:not(.win-overlay) .win-btns { display: none; }
  .win:not(.win-overlay) .win-body { overflow: visible; }
  .win-bar { height: 46px; }
  .grid { padding: 26px 16px 30px; }
  .foot { margin-top: 0; padding: 0 16px 110px; }

  /* Montage */
  .ed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; height: auto; }
  .ed > * { min-width: 0; }
  .ed-mon { order: -1; }
  .mon-screen { height: min(66dvh, 600px); flex: none; }
  .ed-bin ol { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .bin-item { width: 210px; flex: none; scroll-snap-align: start; }
  .ed-tl { display: none; }
  .ed-full {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px;
    padding: 5px 11px; font: 700 11px var(--mono); text-transform: none; letter-spacing: 0;
  }
  .ed-label span + .ed-full { margin-left: 8px; }
  .ed-info { overflow: visible; }

  /* Autres sections */
  .pix-stage { height: 320px; }
  #alex .win-body { overflow: visible; }
  .chat { max-height: 380px; }
  .term { max-height: none; }
  .win-term .code { overflow-x: auto; }

  /* Panneaux (Reels, making-of, tl;dr) */
  .scrim { position: fixed; inset: 0; z-index: 880; background: rgb(0 0 0 / 0.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sheet-open .scrim { opacity: 1; pointer-events: auto; }
  .sheet-open .dock { display: none; }
  .js .win-overlay { display: none; }
  .js .win-overlay.open {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: calc(100dvh - 28px); border-radius: 18px 18px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #tldr.open { height: auto; max-height: 85dvh; }
  .js .win-reels.open { height: 100dvh; border-radius: 0; }
  .win-overlay .win-bar { position: relative; height: 52px; }
  .grab { position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); translate: -50% 0; }
  .win-overlay .win-btns { order: 3; margin-left: auto; }
  .win-overlay .win-meta { display: none; }
  .win-overlay .win-close {
    width: auto !important; height: 32px !important; display: flex !important; gap: 6px; padding: 0 12px !important;
    background: var(--accent) !important; color: var(--on-accent) !important; border: 0 !important; border-radius: 999px !important;
    font: 700 13px var(--body) !important;
  }
  .win-overlay .win-close .only-mob { display: inline; }
  .win-doc .win-body { padding: 10px; }
  .paper { padding: 24px 20px 30px; }
  .paper-fig { grid-template-columns: 96px 1fr; }
  .paper-fig img { width: 96px; }
  @media (prefers-reduced-motion: no-preference) {
    .js .win-overlay.open { animation: sheet .28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  }
  .win-overlay.dragging { transition: none; }
  .no-js .win { margin: 16px; }

  /* Dock : raccourcis, celui de la section visible est allumé */
  .dock-btn.here .ico { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(200 240 49 / 0.35); }
}
@keyframes sheet { from { translate: 0 100%; } }

/* ================= Ordinateur : le bureau ================= */
@media (min-width: 1024px) and (min-height: 620px) {
  body { overflow: hidden; height: 100dvh; }
  .js .desk { position: fixed; inset: var(--bar) 0 0 0; }
  .hero { position: absolute; left: clamp(32px, 5vw, 88px); top: clamp(48px, 13vh, 150px); width: min(46vw, 640px); padding: 0; }
  .hero h1 { font-size: clamp(3rem, 5.1vw, 5.4rem); }
  .windows { position: absolute; inset: 0; pointer-events: none; }
  .js .win { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: translate; }
  .win-bar { cursor: grab; }
  .win-bar:active { cursor: grabbing; }
  .win.max { translate: 8px 8px !important; width: calc(100vw - 16px) !important; height: calc(100dvh - var(--bar) - 104px) !important; }
  .foot { position: fixed; left: 16px; bottom: 14px; margin: 0; padding: 0; text-align: left; z-index: 2; }
  @media (prefers-reduced-motion: no-preference) {
    .js .win.open.pop { animation: pop .28s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .js .win.leave-close { animation: leave-close .15s cubic-bezier(0.4, 0, 1, 1) forwards; pointer-events: none; }
    .js .win.leave-min { animation: leave-min .22s cubic-bezier(0.3, 0, 0.8, 0.4) forwards; pointer-events: none; }
    .js .hero > * { animation: rise .8s var(--ease) both; }
    .js .hero > :nth-child(3) { animation-delay: .06s; }
    .js .hero > :nth-child(4) { animation-delay: .12s; }
    .js .hero > :nth-child(5) { animation-delay: .18s; }
    .js .hero > :nth-child(6) { animation-delay: .24s; }
  }
  .no-js .windows { position: static; pointer-events: auto; }
}
@keyframes pop { from { opacity: 0; scale: 0.3; } 45% { opacity: 1; } }
@keyframes leave-close { to { opacity: 0; scale: 0.96; } }
@keyframes leave-min { 70% { opacity: 1; } to { opacity: 0; scale: 0.12; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }

/* Sans JavaScript : tout s'affiche à la suite, lisible. */
.no-js body { overflow: auto; height: auto; }
.no-js .win { position: static; margin: 16px auto; max-width: 900px; }
.no-js .dock, .no-js .grid { display: none; }
.no-js .hero { position: static; width: auto; padding: 32px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Terminal interactif ---------- */
.term-out .ln { white-space: pre-wrap; }
.term-out .k { color: var(--accent); }
.term-out .x { color: var(--muted); }
.term-out .err { color: #ff8a7a; }
.term-out .ok { color: var(--accent); font-weight: 700; }
.term-out .fi { margin-right: 18px; color: #8fd0ff; }
.term-out .files { display: flex; flex-wrap: wrap; }
.term-out a { color: var(--accent); }
.term-form { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.term-in {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text);
  font: 500 13.5px/1.7 var(--mono); caret-color: var(--accent);
}
.term-in::placeholder { color: rgb(255 255 255 / 0.32); }
.term-form:focus-within { outline: 1px dashed rgb(200 240 49 / 0.35); outline-offset: 4px; border-radius: 4px; }
.term-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.term-quick button {
  cursor: pointer; background: var(--win-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 10px; font: 500 12px var(--mono); color: var(--text); transition: border-color .2s;
}
.term-quick button:hover { border-color: var(--accent); }
.js .term.typing .term-form, .js .term.typing .term-quick { visibility: hidden; }
body.granted::after {
  content: ""; position: fixed; inset: 0; z-index: 9500; pointer-events: none;
  box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 120px rgb(200 240 49 / 0.35);
  animation: granted 1.6s ease-out forwards;
}
@keyframes granted { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- agents.app ---------- */
.ag { padding: 18px 18px 22px; display: grid; gap: 16px; }
.ag-title { font: 800 22px/1.15 var(--display); letter-spacing: -0.02em; }
.ag-intro { color: var(--muted); max-width: 64ch; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; }
.node {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 10px;
  background: var(--win-2); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted);
}
.node strong { color: var(--text); font: 700 14px var(--body); }
.n-k { font: 700 11px var(--mono); color: var(--accent); }
.node-human { border-color: var(--accent); background: rgb(200 240 49 / 0.08); }
.node:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -10px; width: 10px; height: 2px; background: var(--accent);
}
/* Lueur qui passe d'une étape à l'autre : seule l'opacité bouge (fluide, aucun repeint). */
.node::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgb(200 240 49 / 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .node::before { animation: pulse-node 4s infinite; animation-delay: calc(var(--i) * 1s); will-change: opacity; }
}
@keyframes pulse-node { 0%, 20%, 100% { opacity: 0; } 8% { opacity: 1; } }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cases li { padding: 14px; border-radius: 10px; background: var(--win-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.c-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.c-head strong { color: var(--text); font: 700 15px var(--body); }
.c-head span { font: 700 10.5px var(--mono); color: var(--on-accent); background: var(--accent); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.offer { padding: 16px; border-radius: 12px; border: 1px dashed rgb(200 240 49 / 0.4); display: grid; gap: 10px; }
.offer-h { font: 700 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.offer ul { display: grid; gap: 6px; }
.offer li { padding-left: 22px; position: relative; font-size: 14.5px; }
.offer li::before { content: ">"; position: absolute; left: 0; color: var(--accent); font: 700 14px var(--mono); }
.offer .btn { justify-self: start; }
@media (max-width: 700px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .node:not(:last-child)::after { top: auto; bottom: -12px; right: auto; left: 24px; width: 2px; height: 12px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Démo d'agent ---------- */
.demo { border: 1px solid var(--line-2); border-radius: 12px; background: #0a0b09; padding: 12px; display: grid; gap: 10px; }
.demo-label { display: flex; align-items: center; gap: 8px; font: 700 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stage {
  min-height: 132px; border-radius: 10px; border: 1px solid var(--line); background: var(--win); padding: 10px;
  display: grid; align-content: start; gap: 8px; transition: border-color .3s, background-color .3s, opacity .3s; opacity: 0.55;
}
.stage.on { opacity: 1; border-color: var(--accent); background: rgb(200 240 49 / 0.06); box-shadow: 0 0 0 1px rgb(200 240 49 / 0.25); }
.stage.done { opacity: 0.9; }
.stage-h { font: 700 12px var(--mono); color: var(--text); }
.stage-body { display: grid; gap: 6px; font-size: 13px; }
.mail { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; background: var(--win-2); border: 1px solid var(--line-2); }
.mail > i { color: var(--accent); font-size: 18px; margin-top: 2px; }
.mail div { display: grid; min-width: 0; }
.mail strong { font-size: 13px; }
.mail span { color: var(--muted); font-size: 12.5px; }
.step { display: flex; gap: 6px; align-items: baseline; color: var(--text); }
.step i { color: var(--accent); }
.ask { padding: 8px 10px; border-radius: 8px; background: #2b2d36; border-left: 3px solid #8b93ff; display: grid; gap: 6px; font-size: 13px; }
.ask-who { display: flex; align-items: center; gap: 6px; }
.ask-who i { color: #8b93ff; font-size: 16px; }
.ask-btns { display: flex; gap: 6px; }
.ask-btns span { font: 700 11.5px var(--body); padding: 4px 10px; border-radius: 6px; background: #3b3e4a; color: var(--text); transition: background-color .2s, transform .2s; }
.ask-btns .b-ok.pressed { background: var(--accent); color: var(--on-accent); transform: scale(0.94); }
.ask-ok { color: var(--accent); font: 700 12px var(--mono); display: flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .pop-in { animation: pop-in .35s var(--ease); }
}
@keyframes pop-in { from { opacity: 0; translate: 0 6px; } }
@media (max-width: 700px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } .stage { min-height: 0; } }

/* ---------- Bouton son ---------- */
.bar-sound { font-size: 15px; padding: 4px 8px !important; display: grid; place-items: center; }
.bar-sound[aria-pressed="true"] { color: var(--accent) !important; }

/* ================= Téléphone : parcours recruteur =================
   Haut de page clair, résumé visible, menu texte collant, titres en clair, actions en bas. */
.mnav, .brief, .sec-title, .avail, .mbar { display: none; }
@media (max-width: 1023px), (max-height: 619px) {
  .only-desk-block { display: none !important; }
  .dock, .grid { display: none !important; }
  .boot { display: none !important; }

  /* Menu texte collé sous la barre */
  .mnav {
    display: flex; gap: 6px; position: sticky; top: var(--bar); z-index: 790; overflow-x: auto; scrollbar-width: none;
    padding: 8px 12px; background: rgb(11 12 10 / 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav button {
    flex: none; cursor: pointer; background: var(--win-2); border: 1px solid var(--line-2); color: var(--text);
    border-radius: 999px; padding: 7px 13px; font: 600 13.5px var(--body); transition: background-color .2s, color .2s, border-color .2s;
  }
  .mnav button.here { background: var(--accent); color: var(--on-accent); border-color: transparent; }

  /* Haut de page */
  .hero { padding-top: 18px; }
  .widget { height: 190px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); margin-top: 10px; }
  .avail {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: 999px;
    background: rgb(200 240 49 / 0.1); border: 1px solid rgb(200 240 49 / 0.35); font: 600 13.5px var(--body);
  }
  .typed-line { min-height: 0; margin-top: 12px; }
  .hero-sub { display: none; }
  .ctas { margin-top: 18px; }
  .ctas .btn { flex: 1; }

  /* En bref */
  .brief {
    display: block; margin: 22px 12px 8px; padding: 18px; border-radius: 16px; background: var(--win); border: 1px solid var(--line-2);
  }
  .brief h2 { font: 800 20px var(--display); letter-spacing: -0.02em; }
  .brief-who { margin-top: 8px; font-weight: 600; }
  .brief ul { display: grid; gap: 8px; margin-top: 10px; }
  .brief li { padding-left: 22px; position: relative; color: var(--muted); font-size: 14.5px; }
  .brief li::before { content: ">"; position: absolute; left: 0; color: var(--accent); font: 700 14px var(--mono); }

  /* Titres de sections en clair */
  .sec-title { display: block; font: 800 22px/1.15 var(--display); letter-spacing: -0.02em; margin: 18px 4px -8px; scroll-margin-top: 104px; }
  .js .win:not(.win-overlay) { scroll-margin-top: 104px; }
  .win:not(.win-overlay) .win-title { font-size: 11.5px; color: var(--muted); }
  .win:not(.win-overlay) .win-bar { height: 38px; }


  /* Barre d'actions */
  .mbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 780;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(11 12 10 / 0.9);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; padding: 11px 6px;
    border-radius: 12px; background: var(--win-2); border: 1px solid var(--line-2); font: 600 14px var(--body); color: var(--text);
  }
  .mbar a:first-child { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .mbar i { font-size: 17px; }
  .sheet-open .mbar { display: none; }
  .windows { padding-bottom: 40px; }
  .foot { padding: 10px 16px 96px; margin-top: 0; }
}
@media (max-width: 1023px), (max-height: 619px) {
  /* Rien ne doit dépasser de l'écran : les sections et leur contenu se resserrent. */
  .windows > * { min-width: 0; }
  .vcard { grid-template-columns: minmax(0, 1fr); }
  .vcard .row { min-width: 0; }
  .vcard .lbl { width: 64px; }
  .vc-head > div { min-width: 0; }
}

/* ---------- Compétences : liste lisible partout, JSON en option ---------- */
.sk-tabs { display: flex; gap: 4px; padding: 10px 16px 0; }
.sk-tabs button {
  cursor: pointer; background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 999px; padding: 4px 12px; font: 700 12px var(--mono);
}
.sk-tabs button.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.sk-list { display: grid; gap: 14px; padding: 14px 16px 18px; }
.sk-h { font: 700 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.sk-list ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sk-list li { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; background: var(--win-2); }
.sk-group:first-child li { border-color: rgb(200 240 49 / 0.45); }

/* Compétences clés dans le haut de page */
.hero-skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; max-width: 560px; }
.hero-skills button {
  cursor: pointer; background: rgb(18 20 16 / 0.75); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font: 600 13.5px var(--body); backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.hero-skills li:nth-child(-n+2) button { border-color: var(--accent); color: var(--accent); }
.hero-skills button:hover { border-color: var(--accent); transform: translateY(-1px); }
@media (max-width: 1023px), (max-height: 619px) {
  .hero-skills { margin-top: 14px; gap: 6px; }
  .hero-skills button { padding: 6px 11px; font-size: 13px; }
}
