/* iPitWall — site produit. Une seule feuille, sans dépendance. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #060708;
  --ink-2: #0a0c0f;
  --panel: #0e1115;
  --panel-2: #141820;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.15);
  --text: #f2f3f5;
  --mute: #9198a4;
  --dim: #5d636d;
  --accent: #ffcc00;
  --accent-2: #ffd84d;
  --accent-deep: #8a6e00;
  --green: #2fe07a;
  --blue: #2f8cff;
  --amber: #ffb21f;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--mono); }
code { font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 5px; background: rgb(255 255 255 / 0.07); }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0.05em 0.45em; text-align: center;
  font-size: 0.78em; line-height: 1.6; border-radius: 6px;
  background: linear-gradient(#22262d, #171a1f); border: 1px solid var(--line-2); border-bottom-width: 2px;
}
::selection { background: var(--accent); color: #0b0c0e; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--accent); color: #0b0c0e; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--panel-2);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--accent { --bg: var(--accent); border-color: transparent; color: #0b0c0e; box-shadow: 0 10px 40px -12px rgb(255 204 0 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn--accent:hover { --bg: var(--accent-2); box-shadow: 0 16px 50px -12px rgb(255 204 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn--blue { --bg: var(--blue); border-color: transparent; color: #fff; }
.btn--ghost { --bg: transparent; }
.btn--ghost:hover { --bg: rgb(255 255 255 / 0.06); }
.btn--sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn--lg { padding: 16px 26px; font-size: 17px; border-radius: 12px; }
.btn--xl { padding: 22px 36px; font-size: 20px; border-radius: 14px; }
.btn--xl svg { width: 24px; height: 24px; }
.link { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Barre ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
.bar.is-scrolled { background: rgb(6 7 8 / 0.72); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.bar__in { display: flex; align-items: center; gap: 28px; height: 64px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.brand img { height: 22px; width: auto; }
.bar__nav { display: flex; gap: 4px; margin-left: auto; }
.bar__nav a { padding: 6px 12px; border-radius: 8px; color: var(--mute); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s, background 0.2s; }
.bar__nav a:hover, .bar__nav a.is-here { color: var(--text); background: rgb(255 255 255 / 0.06); }
@media (max-width: 980px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }

/* ---------- Titres ---------- */
h1, h2, h3 { margin: 0; }
h2 {
  font: 600 clamp(46px, 6.6vw, 104px)/0.86 var(--display); text-transform: uppercase; letter-spacing: -0.005em;
}
h2 span { color: var(--dim); }
h3 { font: 600 20px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.head { display: grid; gap: 22px; max-width: 860px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.head p { margin: 0; max-width: 620px; color: var(--mute); font-size: 18px; }

.sec { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.sec--dark { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ---------- Héros ---------- */
.hero { position: relative; padding-top: clamp(110px, 13vw, 160px); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 45% -20% -10%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgb(255 204 0 / 0.13), transparent 70%); pointer-events: none; }
.hero__title { font: 600 clamp(58px, 11vw, 176px)/0.82 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.hero__title span { color: var(--accent); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: end; margin-top: clamp(26px, 3.4vw, 44px); }
.lead { margin: 0; max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); color: #c3c8d0; }
.ctas { display: grid; gap: 12px; justify-items: start; }
.ctas__meta { font: 12.5px var(--mono); color: var(--mute); letter-spacing: 0.04em; }
@media (max-width: 860px) { .hero__row { grid-template-columns: 1fr; } }

.rig { max-width: 1040px; margin: clamp(46px, 6vw, 80px) auto 0; }
.rig__screen {
  position: relative; aspect-ratio: 1193 / 768; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; background: #07080b;
  border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.9), 0 30px 140px -70px rgb(255 204 0 / 0.5);
}
.rig__screen > .scene { position: absolute; inset: 0; }
.rig__boot { position: absolute; inset: 0; display: grid; place-items: center; font: 12px var(--mono); color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; transition: opacity 0.6s; pointer-events: none; }
.rig.is-live .rig__boot { opacity: 0; }

/* ---------- Scènes vivantes ---------- */
.scene { position: relative; width: 100%; aspect-ratio: var(--scene-ratio, 16 / 9); overflow: hidden; }
.scene iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: transparent; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; color-scheme: normal; }
.scene.is-loaded iframe { opacity: 1; }

/* ---------- Le mur ---------- */
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.tile__stage { position: relative; flex: none; margin-block: auto; }
.tile h3 { color: #c9ced6; }
.tile--tv { grid-column: 1 / span 3; grid-row: 1 / span 3; }
.tile--general { grid-column: 4 / span 9; }
.tile--relative { grid-column: 4 / span 9; }
.tile--fuel { grid-column: 4 / span 5; }
.tile--map { grid-column: 9 / span 4; }
@media (max-width: 1080px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--tv { grid-column: 1; grid-row: 1 / span 2; }
  .tile--fuel { grid-column: 2; grid-row: 1; }
  .tile--map { grid-column: 2; grid-row: 2; }
  .tile--general { grid-column: 1 / -1; grid-row: 3; }
  .tile--relative { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 640px) {
  .wall { grid-template-columns: 1fr; }
  .tile--tv, .tile--general, .tile--relative, .tile--fuel, .tile--map { grid-column: 1; grid-row: auto; }
  .tile--tv .tile__stage { max-width: 260px; margin-inline: auto; width: 100%; }
}

/* ---------- Le Cadillac ---------- */
.dash { max-width: 1100px; margin: 0 auto; }
.xray { position: relative; aspect-ratio: 1261 / 800; background: #0a0b0d; border-radius: clamp(14px, 2vw, 26px); overflow: hidden; box-shadow: 0 40px 100px -40px rgb(0 0 0 / 0.95), 0 0 0 1px var(--line); }
.xray .dash__stage { transition: opacity 0.5s, filter 0.5s; }
.xray__editor { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.04); transition: opacity 0.5s, transform 0.6s; pointer-events: none; }
.xray.is-editor .xray__editor { opacity: 1; transform: none; }
.xray.is-editor .dash__stage { opacity: 0; filter: blur(6px); }
.switch { display: flex; width: fit-content; margin: 18px auto 0; padding: 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.switch button { padding: 7px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); font-weight: 600; font-size: 14px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Le studio : l'éditeur, branché sur la vraie visionneuse ---------- */
.studio {
  --st-bg: #090b0e; --st-panel: #101318; --st-field: #0b0e12; --st-line: #1e232c; --st-text: #dfe3ea; --st-mute: #858c99; --st-blue: #2f8cff; --st-sel: #3d8bff;
  display: grid; grid-template-columns: 248px minmax(0, 1fr) 264px; grid-template-rows: 50px minmax(0, 1fr);
  height: clamp(460px, 60vh, 540px);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--st-bg);
  box-shadow: 0 50px 120px -50px #000, 0 30px 120px -70px rgb(47 140 255 / 0.45);
  font: 400 13px/1.35 var(--sans); color: var(--st-text); user-select: none; -webkit-user-select: none;
}
.studio__fallback { grid-column: 1 / -1; grid-row: 1 / -1; width: 100%; height: 100%; object-fit: cover; }
.studio button { font-family: var(--sans); }
.studio svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.st-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; border-bottom: 1px solid var(--st-line); background: var(--st-panel); min-width: 0; }
.st-top__l, .st-top__r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-boards { display: flex; padding: 3px; border-radius: 9px; background: var(--st-field); border: 1px solid var(--st-line); }
.st-boards button { padding: 6px 12px; border: 0; border-radius: 6px; background: none; color: var(--st-mute); font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.st-boards button:hover { color: var(--st-text); }
.st-boards button[aria-pressed="true"] { background: #232a35; color: #fff; box-shadow: inset 0 0 0 1px #343d4c; }
.st-short { display: none; }
.st-demo { padding: 4px 9px; border-radius: 6px; border: 1px solid #8a5a17; color: #f6ad3c; font: 700 11px/1.3 var(--mono); letter-spacing: 0.06em; white-space: nowrap; }
.st-btn { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--st-line); background: var(--st-field); color: var(--st-text); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.st-btn:hover { border-color: #2e3542; background: #151a22; }

.st-left, .st-right { display: flex; flex-direction: column; min-height: 0; background: var(--st-panel); }
.st-left { border-right: 1px solid var(--st-line); }
.st-right { border-left: 1px solid var(--st-line); }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--st-line); font-weight: 600; font-size: 12.5px; flex: none; }
.st-head .mono { color: var(--st-mute); font-weight: 400; font-size: 11px; }

.st-tree { flex: 1; overflow: auto; padding: 6px 0 12px; scrollbar-width: thin; scrollbar-color: #2a303a transparent; }
.st-row { display: grid; grid-template-columns: 16px 16px minmax(0, 1fr) 22px; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 calc(8px + var(--depth) * 14px); color: #c9ced8; }
.st-row:hover, .st-row.is-hover { background: rgb(255 255 255 / 0.04); }
.st-row.is-sel { background: rgb(61 139 255 / 0.2); color: #fff; box-shadow: inset 2px 0 0 var(--st-blue); }
.st-row.is-hidden .st-row__name, .st-row.is-hidden .st-row__icon { opacity: 0.4; }
.st-row__twisty, .st-row__eye { display: grid; place-items: center; height: 20px; padding: 0; border: 0; background: none; color: var(--st-mute); cursor: pointer; }
.st-row__twisty { width: 16px; }
.st-row__twisty:disabled { visibility: hidden; }
.st-row__twisty svg { width: 12px; height: 12px; transition: transform 0.15s; }
.st-row__twisty.is-open svg { transform: rotate(90deg); }
.st-row__icon { display: grid; place-items: center; color: var(--st-mute); }
.st-row__icon svg { width: 12px; height: 12px; }
.st-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row__eye { width: 22px; }
.st-row__eye.is-off { color: #e5e9f0; }
.st-row__eye svg { width: 14px; height: 14px; }

.st-canvas {
  position: relative; overflow: hidden; outline: none; touch-action: none; cursor: default;
  background-color: var(--st-bg); background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1.3px);
}
.st-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgb(47 140 255 / 0.45); }
.st-canvas.is-over-sel { cursor: move; }
.st-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.st-view { position: relative; }
.st-view iframe { position: absolute; inset: 0; border: 0; pointer-events: none; background: transparent; color-scheme: normal; opacity: 0; transition: opacity 0.6s; }
.st-view.is-loaded iframe { opacity: 1; }
.st-ui { position: absolute; inset: 0; pointer-events: none; }
.st-ui > * { position: absolute; box-sizing: border-box; }
.st-scope { border: 1px dashed rgb(61 139 255 / 0.5); }
.st-child { border: 1px dashed rgb(245 166 35 / 0.7); }
.st-hover { border: 1.5px solid #3ee0ff; }
.st-sel { border: 1.5px solid var(--st-sel); }
.st-handle { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 1.5px solid var(--st-sel); pointer-events: auto; }
.st-handle[data-handle="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.st-handle[data-handle="n"] { left: 50%; top: 0; cursor: ns-resize; }
.st-handle[data-handle="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.st-handle[data-handle="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.st-handle[data-handle="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.st-handle[data-handle="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.st-handle[data-handle="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.st-handle[data-handle="w"] { left: 0; top: 50%; cursor: ew-resize; }
.st-size { position: absolute; left: 50%; top: calc(100% + 9px); translate: -50% 0; padding: 2px 6px; border-radius: 4px; background: var(--st-sel); color: #fff; font-size: 10.5px; line-height: 1.3; white-space: nowrap; }
.st-guide--v, .st-gap--v { width: 0 !important; }
.st-guide--h, .st-gap--h { height: 0 !important; }
.st-guide--v { border-left: 1px solid var(--st-blue); }
.st-guide--h { border-top: 1px solid var(--st-blue); }
.st-gap--v { border-left: 1px solid #ff3b3b; }
.st-gap--h { border-top: 1px solid #ff3b3b; }
.st-gap__n { position: absolute; padding: 1px 4px; border-radius: 3px; background: #ff3b3b; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.3; }
.st-gap--v .st-gap__n { left: 6px; top: 50%; translate: 0 -50%; }
.st-gap--h .st-gap__n { top: 6px; left: 50%; translate: -50% 0; }
.st-boot { position: absolute; inset: 0; display: grid; place-items: center; color: var(--st-mute); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; transition: opacity 0.5s; }
.studio.is-live .st-boot { opacity: 0; }
.st-status { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-top: 1px solid var(--st-line); background: rgb(12 14 18 / 0.94); color: var(--st-mute); font-size: 12px; white-space: nowrap; overflow: hidden; }
.st-status span:first-child { overflow: hidden; text-overflow: ellipsis; }
.st-status .mono { font-size: 11px; }

.st-insp { flex: 1; overflow: auto; display: grid; grid-auto-rows: max-content; align-content: start; gap: 16px; padding: 12px 14px 18px; scrollbar-width: thin; scrollbar-color: #2a303a transparent; }
.st-title { display: grid; gap: 3px; padding: 10px 12px; border-radius: 8px; background: var(--st-field); border: 1px solid var(--st-line); }
.st-title b { overflow: hidden; font-weight: 600; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.st-title span { color: var(--st-mute); font-size: 11px; }
.st-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.st-field--stack { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: normal; gap: 8px; }
.st-field__k { display: flex; justify-content: space-between; gap: 8px; color: #aab1bd; font-size: 12.5px; }
.st-field__v { color: var(--st-text); font-size: 11px; font-variant-numeric: tabular-nums; }
.st-field input[type="range"] { width: 100%; height: 16px; margin: 0; accent-color: var(--st-blue); cursor: pointer; }
.st-seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; padding: 3px; border-radius: 8px; background: var(--st-field); border: 1px solid var(--st-line); }
.st-seg button { padding: 6px 6px; border: 0; border-radius: 6px; background: none; color: var(--st-mute); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.st-seg button:hover { color: var(--st-text); }
.st-seg button[aria-pressed="true"] { background: #232a35; color: #fff; box-shadow: inset 0 0 0 1px #343d4c; }
.st-select { max-width: 62%; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--st-line); background: var(--st-field); color: var(--st-text); font: 12px var(--sans); }
.st-switch { position: relative; flex: none; width: 34px; height: 19px; padding: 0; border: 0; border-radius: 99px; background: #2a313c; cursor: pointer; transition: background 0.2s; }
.st-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: translate 0.2s; }
.st-switch[aria-checked="true"] { background: var(--st-blue); }
.st-switch[aria-checked="true"]::after { translate: 15px 0; }
.st-color { position: relative; display: flex; align-items: center; gap: 8px; font-size: 11.5px; cursor: pointer; }
.st-color__chip { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); }
.st-color input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.st-note { margin: 0; color: var(--st-mute); font-size: 12.5px; line-height: 1.5; }

@media (max-width: 1100px) { .studio { grid-template-columns: 210px minmax(0, 1fr) 240px; } .st-demo { display: none; } }
@media (max-width: 860px) {
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 300px auto auto; height: auto; }
  .st-top { grid-row: 1; padding: 8px 10px; }
  .st-long { display: none; }
  .st-short { display: inline; }
  .st-canvas { grid-row: 2; }
  .st-right { grid-row: 3; border-left: 0; border-top: 1px solid var(--st-line); max-height: 380px; }
  .st-left { grid-row: 4; border-right: 0; border-top: 1px solid var(--st-line); max-height: 240px; }
  .st-status .mono { display: none; }
}

/* ---------- Le comportement ---------- */
.curtain { position: relative; max-width: 1100px; margin-inline: auto; aspect-ratio: 1280 / 820; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); user-select: none; touch-action: pan-y; box-shadow: 0 50px 120px -50px #000; }
.curtain > img, .curtain__top img { width: 100%; height: 100%; object-fit: cover; }
.curtain__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.curtain__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 20px rgb(47 140 255 / 0.8); pointer-events: none; }
.curtain__line i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / 0.5); }
.curtain__line i::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: #111; font: 700 16px var(--mono); }
.curtain input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Par-dessus le jeu : le cockpit et Ctrl+E ---------- */
.desk { border-radius: clamp(14px, 1.6vw, 22px); padding: clamp(6px, 0.8vw, 12px); background: linear-gradient(#1a1d22, #0b0c0e); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px #000; }
.desk__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; container-type: inline-size; }
.desk__sim { position: absolute; inset: 0; overflow: hidden; cursor: crosshair; background: #07080b; }
.desk__sim img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s; }
.ripple { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--green); animation: ripple 0.7s ease-out forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.ov { position: absolute; left: var(--x); top: var(--y); width: var(--w); pointer-events: none; }
.ov::before { content: ""; position: absolute; inset: -4px; border: 1.5px solid transparent; border-radius: 3px; pointer-events: none; transition: border-color 0.2s; }
.ov .h { position: absolute; z-index: 1; width: 12px; height: 12px; background: #fff; border: 2px solid var(--blue); border-radius: 3px; display: none; }
.ov .h--nw { left: -10px; top: -10px; cursor: nwse-resize; }
.ov .h--ne { right: -10px; top: -10px; cursor: nesw-resize; }
.ov .h--sw { left: -10px; bottom: -10px; cursor: nesw-resize; }
.ov .h--se { right: -10px; bottom: -10px; cursor: nwse-resize; }
.is-editing .ov { pointer-events: auto; cursor: move; touch-action: none; }
.is-editing .ov::before { border-color: rgb(47 140 255 / 0.55); }
.is-editing .ov.is-sel::before { border-color: var(--blue); }
.is-editing .ov.is-sel .h { display: block; }
.is-editing .desk__sim { filter: saturate(0.6) brightness(0.8); cursor: default; }
.desk__done { position: absolute; top: 12px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 16px; border-radius: 12px; background: rgb(12 14 18 / 0.9); border: 1px solid rgb(47 140 255 / 0.6); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); }
.desk__done[hidden] { display: none; }
.desk__done .mono { font-size: 11.5px; color: var(--mute); font-weight: 400; }
@container (max-width: 620px) { .desk__done .mono { display: none; } }
.desk__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 6px 4px; }
.keycap { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 14px; }
.keycap span { margin-left: 6px; }
.keycap[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(47 140 255 / 0.25); }
.desk__status { font: 12px var(--mono); color: var(--mute); }
.aside { margin: 26px 0 0; max-width: 640px; color: var(--mute); font-size: 16px; }

/* ---------- Téléchargement ---------- */
.sec--grid { background: radial-gradient(60% 60% at 50% 0%, rgb(255 204 0 / 0.12), transparent 70%), var(--ink); }
.finish { display: grid; justify-items: center; text-align: center; gap: 26px; }
.finish h2 { font-size: clamp(56px, 9vw, 150px); }
.finish__meta { margin: 0; color: var(--mute); font-size: 12.5px; letter-spacing: 0.04em; }
.steps { display: grid; gap: 12px; width: min(100%, 560px); margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; text-align: left; color: #c3c8d0; font-size: 16px; line-height: 1.6; }
.steps li { position: relative; padding-left: 28px; counter-increment: step; }
.steps li::before { content: counter(step) "."; position: absolute; left: 0; top: 0; font: 700 14px/1.85 var(--mono); color: var(--accent-2); }
.steps b { color: var(--text); font-weight: 600; }
.finish__note { max-width: 600px; margin: 0; color: var(--dim); font-size: 13.5px; }

/* ---------- Pied ---------- */
.foot { padding: 50px 0 60px; border-top: 1px solid var(--line); }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.foot img { height: 20px; width: auto; opacity: 0.85; }
.foot nav { display: flex; gap: 20px; justify-self: end; flex-wrap: wrap; }
.foot nav a { color: var(--mute); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.foot__legal { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 13px; max-width: 900px; }
@media (max-width: 640px) { .foot__in { grid-template-columns: 1fr; } .foot nav { justify-self: start; } }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ripple { animation: none; }
}
