/* Backscape — site de présentation
   Palette et typographie reprises de la brochure validée. */

/* Polices hébergées localement (sous-ensemble latin, SIL Open Font License : assets/fonts/OFL-*.txt).
   Aucune requête vers Google Fonts. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/jetbrains-mono-600.woff2") format("woff2"); }

:root {
  --bg: #121318;
  --panel: #1a1b21;
  --panel-2: #202128;
  --line: #2c2e37;
  --text: #edecf1;
  --muted: #a3a4b0;
  --dim: #8b8d99;
  --amber: #ffb547;
  --on-amber: #241806;
  --sky: #1d1f3d;
  --hill: #3a2f55;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-title: "Sora", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-text);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffc976; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-title); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.amber { color: var(--amber); }
.mono { font-family: var(--f-mono); }

.eyebrow {
  font: 500 0.78rem/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- Logo ---------- */
.logo {
  font-family: var(--f-title);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex; align-items: baseline;
}
.logo:hover { color: var(--text); }
.logo .peak {
  display: inline-block;
  width: 0.6em; height: 0.54em;
  margin: 0 0.015em 0 0.03em;
  overflow: visible;
  vertical-align: baseline;
  align-self: baseline;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px;
  font: 600 1rem/1 var(--f-title);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: #ffc46d; color: var(--on-amber); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #4a4c58; color: var(--text); background: var(--panel); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(18, 19, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); background: var(--panel); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 132px 0 40px; position: relative; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5rem); letter-spacing: -0.04em; margin: 18px 0 20px; }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 600px; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font: 400 0.8rem/1.4 var(--f-mono); color: var(--dim); }

/* ---------- Maquettes : écrans ---------- */
.shot { margin: 0; }
.desk {
  margin: 56px auto 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  max-width: 1080px;
}
.monitor { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.monitor .bezel {
  width: 100%;
  background: #0b0c0f;
  border: 1px solid var(--line);
  border-radius: clamp(6px, 1vw, 12px);
  padding: clamp(3px, 0.45vw, 6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.monitor .stand { width: 18%; height: clamp(10px, 2vw, 26px); background: linear-gradient(#24252c, #18191e); }
.monitor .foot { width: 34%; height: clamp(3px, .5vw, 6px); border-radius: 3px 3px 0 0; background: #24252c; }
.desk .m-left { flex: 0 0 27%; }
.desk .m-main { flex: 0 0 46%; }
.desk .m-port { flex: 0 0 15.5%; }

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(3px, .5vw, 6px);
  background: var(--sky);
  container-type: inline-size;
  isolation: isolate;
}
.screen.portrait { aspect-ratio: 9 / 16; }
.screen > .scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: 6.2cqw; min-height: 6px;
  background: rgba(10, 10, 14, .78);
  display: flex; align-items: center; justify-content: center; gap: 1.2cqw;
}
.portrait .taskbar { height: 9cqw; }
.taskbar i { display: block; width: 3cqw; height: 3cqw; border-radius: .6cqw; background: #3b3d48; }
.taskbar i:first-child { background: var(--amber); }
.portrait .taskbar i { width: 5cqw; height: 5cqw; }

.icons { position: absolute; left: 2.2cqw; top: 2.6cqw; z-index: 3; display: grid; gap: 2.4cqw; }
.icons i { display: block; width: 4.4cqw; height: 4.4cqw; border-radius: 1cqw; background: rgba(237,236,241,.82); box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.35); }
.icons i:nth-child(2) { background: #8fb7ff; }
.icons i:nth-child(3) { background: #ffd28a; }
.icons i:nth-child(4) { background: #9be0b5; }

/* Widgets dans les écrans : tailles en unités de conteneur */
.w { position: absolute; z-index: 2; font-family: var(--f-text); color: var(--text); }
.w-clock { font-family: var(--f-mono); line-height: 1; }
.w-clock .t { font-size: 11cqw; font-weight: 500; letter-spacing: -0.04em; }
.w-clock .d { font-size: 2.3cqw; color: #d5d4dd; margin-top: 1.4cqw; letter-spacing: .02em; }
.w-card {
  background: rgba(18, 19, 24, .74);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.4cqw;
  padding: 1.8cqw 2cqw;
  font-size: 1.9cqw; line-height: 1.3;
}
.w-card .lbl { font-family: var(--f-mono); color: #b9b9c4; display: flex; justify-content: space-between; gap: 2cqw; }
.bar { height: 1cqw; border-radius: 1cqw; background: rgba(255,255,255,.1); margin: .8cqw 0 1.4cqw; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--amber); border-radius: inherit; }
.bar.alt b { background: #8fb7ff; }
.w-card svg.graph { width: 100%; height: 6cqw; }

/* Module web (site sur le fond) */
.web {
  position: absolute; z-index: 2;
  background: #0e0f13; border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.4cqw; overflow: hidden;
  display: flex; flex-direction: column;
}
.web .vid { flex: 1; position: relative; background: linear-gradient(135deg, #2a2d52, #4a3a66 55%, #6b4a52); }
.web .vid::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-left: 5cqw solid rgba(237,236,241,.8); border-top: 3cqw solid transparent; border-bottom: 3cqw solid transparent;
}
.web .live {
  position: absolute; left: 2cqw; top: 2cqw; z-index: 1;
  font: 600 2.4cqw/1 var(--f-mono); background: #d9534f; color: #fff; padding: .8cqw 1.2cqw; border-radius: .6cqw;
}
.web .chat { padding: 1.6cqw 2cqw; display: grid; gap: 1.1cqw; }
.web .chat i { display: block; height: 1.1cqw; border-radius: 1cqw; background: rgba(255,255,255,.14); }
.web .chat i:nth-child(2) { width: 70%; } .web .chat i:nth-child(3) { width: 85%; }

/* ---------- Sections fonctionnalités ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.overview {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.overview a {
  background: var(--bg); padding: 20px 22px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 6px; transition: background-color .2s;
}
.overview a:hover { background: var(--panel); color: var(--text); }
.overview .n { font: 500 .78rem/1 var(--f-mono); color: var(--amber); }
.overview .k { font: 600 1rem/1.3 var(--f-title); letter-spacing: -0.01em; }
.overview .s { font-size: .9rem; color: var(--dim); line-height: 1.45; }

.feature {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.025em; margin: 14px 0 14px; }
.feature-copy > p { color: var(--muted); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
.ticks li span { color: var(--muted); }
kbd {
  font: 500 .82em/1 var(--f-mono); color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 3px 6px;
}

/* Cadre de maquette (fenêtre de l'app) */
.frame {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  container-type: inline-size;
}
.frame-bar {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line); font: 500 .78rem/1 var(--f-mono); color: var(--dim);
}
.frame-bar .wc { margin-left: auto; display: flex; gap: 14px; }
.frame-bar .wc i { width: 10px; height: 1.5px; background: var(--dim); display: block; }
.frame-bar .mini-peak { width: 16px; height: 14px; }
.frame-body { padding: clamp(14px, 3.4cqw, 24px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 .74rem/1 var(--f-mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: var(--bg);
  white-space: nowrap;
}
.chip.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

/* 1. Fonds vivants */
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.mode { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--bg); }
.mode.on { border-color: var(--amber); }
.mode .sw { aspect-ratio: 16/10; border-radius: 6px; position: relative; overflow: hidden; }
.mode .ml { display: block; font: 500 .68rem/1.2 var(--f-mono); color: var(--muted); margin-top: 6px; text-align: center; }
.mode.on .ml { color: var(--amber); }
.sw-grad { background: linear-gradient(120deg, #1d1f3d, #3a2f55, #ffb547); background-size: 200% 200%; animation: drift 9s ease-in-out infinite alternate; }
.sw-solid { background: #2b3a55; }
.sw-img { background: var(--sky); }
.sw-vid { background: #1b1c25; }
.sw-vid::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 9px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sw-none { background: repeating-linear-gradient(45deg, #1a1b21 0 6px, #22232b 6px 12px); }
.sw svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.big-grad {
  background: linear-gradient(120deg, #1d1f3d 0%, #3a2f55 45%, #8a4b4f 75%, #ffb547 100%);
  background-size: 220% 220%; animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.fill-modes { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* 2. Recherche */
.search {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font-size: .92rem; color: var(--text);
}
.search svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.search .src { margin-left: auto; display: flex; gap: 4px; }
.search .caret { width: 1px; height: 18px; background: var(--amber); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.filters { margin-top: 10px; }
.masonry { columns: 3; column-gap: 8px; margin-top: 14px; }
.masonry .tile { break-inside: avoid; margin-bottom: 8px; border-radius: 8px; overflow: hidden; position: relative; }
.masonry .tile svg { width: 100%; height: auto; }
.masonry .tile.picked { outline: 2px solid var(--amber); outline-offset: -2px; }
.masonry .tile .dl {
  position: absolute; right: 6px; bottom: 6px; font: 600 .66rem/1 var(--f-mono);
  background: var(--amber); color: var(--on-amber); padding: 5px 7px; border-radius: 5px;
}
.credit {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line);
  font: 400 .74rem/1.4 var(--f-mono); color: var(--dim);
}
.credit b { color: var(--muted); font-weight: 500; }

/* 3. Sites web */
.site-demo .screen { border-radius: 10px; }
.alt-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 10cqw; transform: translateX(-50%);
  background: rgba(18,19,24,.88); border: 1px solid var(--line); border-radius: 999px;
  padding: 1.4cqw 2.4cqw; font: 500 2.4cqw/1 var(--f-text); color: var(--text); white-space: nowrap;
  display: flex; align-items: center; gap: 1.4cqw;
}
.alt-hint kbd { font-size: 2.2cqw; padding: .6cqw 1cqw; }
.web-tools { position: absolute; top: 1.6cqw; right: 1.6cqw; display: flex; gap: 1cqw; z-index: 2; }
.web-tools button {
  width: 5cqw; height: 5cqw; border-radius: 1cqw; background: rgba(18,19,24,.86);
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1);
}
.web-tools svg { width: 60%; height: 60%; color: var(--text); }
.pick {
  position: absolute; z-index: 3; border: 2px dashed var(--amber); border-radius: 1cqw;
  box-shadow: 0 0 0 999px rgba(18,19,24,.45);
}
.pick em {
  position: absolute; top: -4.4cqw; left: -2px; font: 600 2.2cqw/1 var(--f-mono); font-style: normal;
  background: var(--amber); color: var(--on-amber); padding: .8cqw 1.2cqw; border-radius: .6cqw; white-space: nowrap;
}

/* 4. Widgets */
.widget-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wb { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.wb .h { font: 500 .72rem/1 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 8px; }
.wb .clock { font: 500 clamp(2rem, 9cqw, 3.2rem)/1 var(--f-mono); letter-spacing: -0.04em; margin-top: 14px; }
.wb .date { font: 400 .8rem/1 var(--f-mono); color: var(--muted); margin-top: 10px; }
.wb .row { display: flex; justify-content: space-between; font: 500 .8rem/1 var(--f-mono); margin-top: 14px; color: var(--muted); }
.wb .row b { color: var(--text); font-weight: 500; }
.wb .bar { height: 6px; margin: 8px 0 0; }
.wb svg.graph { width: 100%; height: 56px; margin-top: 12px; }
.sessions { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.sessions li { display: flex; align-items: center; gap: 8px; font: 400 .8rem/1.3 var(--f-mono); color: var(--text); min-width: 0; }
.sessions li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessions li i { width: 7px; height: 7px; border-radius: 50%; background: #9be0b5; flex: none; }
.sessions li.idle i { background: var(--dim); }
.sessions li small { margin-left: auto; color: var(--dim); font-size: .72rem; flex: none; }
.style-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.style-row .dots { display: flex; gap: 6px; }
.style-row .dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bg); outline: 1px solid var(--line); display: block; }
.style-row .dots i.on { outline-color: var(--amber); }
.style-row .apply { margin-left: auto; font: 600 .74rem/1 var(--f-mono); color: var(--on-amber); background: var(--amber); padding: 8px 10px; border-radius: 6px; }

/* 5. Éditeur */
.editor-canvas {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 7% 5% 9%;
  display: flex; align-items: flex-start; justify-content: center; gap: 2.5%;
  background-image: radial-gradient(circle, #23252d 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.ed-screen { position: relative; flex: none; }
.ed-screen .screen { border-radius: 4px; outline: 1px solid #3a3c47; }
.ed-screen.a { width: 54%; }
.ed-screen.b { width: 24%; margin-top: 4%; }
.ed-screen.active .screen { outline: 2px solid var(--amber); }
.ed-screen .tag {
  position: absolute; top: -22px; left: 0; font: 500 .66rem/1 var(--f-mono); color: var(--dim); white-space: nowrap;
}
.ed-screen.active .tag { color: var(--amber); }
.ed-screen .tb-zone {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6.2cqw; z-index: 6;
  background: repeating-linear-gradient(45deg, rgba(255,181,71,.18) 0 4px, transparent 4px 8px);
  border-top: 1px dashed rgba(255,181,71,.6);
}
.guide-v, .guide-h { position: absolute; z-index: 7; background: var(--amber); }
.guide-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.guide-h { left: 0; right: 0; top: 50%; height: 1px; }
.edge-glow {
  position: absolute; z-index: 7; top: 0; bottom: 0; right: 0; width: 18%;
  background: linear-gradient(to left, rgba(255,181,71,.55), transparent);
  pointer-events: none;
}
.toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px;
}
.tool {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
}
.tool.on { border-color: var(--amber); color: var(--amber); }
.tool svg { width: 16px; height: 16px; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.toolbar .chip { margin-left: auto; }
.live-note {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font: 400 .76rem/1.4 var(--f-mono); color: var(--muted);
}
.live-note i { width: 8px; height: 8px; border-radius: 2px; background: var(--amber); flex: none; }

/* 6. Presets */
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preset { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 8px; min-width: 0; }
.preset.on { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc); }
.preset .thumb { display: flex; gap: 3px; align-items: flex-end; }
.preset .thumb .screen { flex: 1; border-radius: 3px; }
.preset .thumb .screen.portrait { flex: 0 0 26%; }
.preset .meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; font: 600 .82rem/1.2 var(--f-title); }
.preset .meta i { width: 9px; height: 9px; border-radius: 3px; background: var(--pc); flex: none; }
.preset .meta small { margin-left: auto; font: 400 .66rem/1 var(--f-mono); color: var(--dim); }
.wipe-demo { margin-top: 14px; position: relative; border-radius: 10px; overflow: hidden; }
.wipe-demo .screen { border-radius: 10px; }
.tray-switch {
  margin-top: 12px; font: 400 .76rem/1.4 var(--f-mono); color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

/* 7. Multi-écrans */
.multi { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.multi .mon { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.multi .mon.l { width: 36%; } .multi .mon.c { width: 36%; } .multi .mon.p { width: 16%; }
.multi .screen { border-radius: 6px; outline: 1px solid #34363f; }
.multi .off .screen { filter: grayscale(1) brightness(.45); }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 500 .7rem/1.2 var(--f-mono); color: var(--muted); }
.switch { width: 30px; height: 17px; border-radius: 999px; background: #34363f; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--dim); transition: left .2s; }
.switch.on { background: var(--amber); }
.switch.on::after { left: 15px; background: var(--on-amber); }

/* 8. Discret */
.tray-wrap { display: flex; justify-content: flex-end; }
.tray-menu {
  width: min(320px, 100%); background: #1e1f26; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  font-size: .9rem;
}
.tray-menu .it { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.tray-menu .it.hl { background: var(--panel-2); }
.tray-menu .it small { margin-left: auto; color: var(--dim); font: 400 .72rem/1 var(--f-mono); }
.tray-menu .it .pc { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.tray-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 6px; }
.tray-menu .label { padding: 8px 12px 4px; font: 500 .68rem/1 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.tray-bar {
  margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  background: #0d0e12; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
  font: 400 .78rem/1 var(--f-mono); color: var(--muted);
}
.tray-bar .tray-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--panel-2); outline: 1px solid var(--amber); }
.tray-bar .tray-ico svg { width: 15px; height: 14px; }
.tray-col { width: min(360px, 100%); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact b { display: block; font: 600 .95rem/1.3 var(--f-title); }
.fact span { display: block; color: var(--dim); font-size: .86rem; margin-top: 4px; line-height: 1.4; }

/* ---------- Vidéo ---------- */
.video-section { background: linear-gradient(var(--bg), #15161c 40%, var(--bg)); }
.player {
  position: relative; max-width: 980px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.player .fallback {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px;
  text-align: center; padding: 20px;
}
.player .fallback .logo { font-size: clamp(1.6rem, 5vw, 3rem); }
.player .fallback p { font: 400 .8rem/1.4 var(--f-mono); color: var(--dim); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; object-fit: cover; }

/* ---------- Prix ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--amber);
}
.price-card .tier { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-card .tier .logo { font-size: 1.3rem; }
.badge { font: 500 .72rem/1 var(--f-mono); color: var(--amber); border: 1px solid rgba(255,181,71,.4); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.amount { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 6px; flex-wrap: wrap; }
.amount .v { font: 700 clamp(3.2rem, 2rem + 4vw, 4.6rem)/1 var(--f-title); letter-spacing: -0.045em; }
.amount .u { font: 400 .9rem/1.3 var(--f-mono); color: var(--muted); }
.price-card .sub { color: var(--muted); font-size: .95rem; }
.price-card .ticks { margin: 26px 0 30px; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.price-card .ticks li { font-size: .93rem; }
.price-card .btn { width: 100%; }
.price-card .small { margin-top: 14px; font: 400 .76rem/1.5 var(--f-mono); color: var(--dim); text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font: 600 1.06rem/1.35 var(--f-title); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 6px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 4px 24px; color: var(--muted); max-width: 680px; }
.faq .a p + p { margin-top: 10px; }

/* ---------- CTA final + pied ---------- */
.final { text-align: center; padding: clamp(72px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.final p { color: var(--muted); margin-top: 14px; }
.final .hero-cta { margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-in nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.foot-in nav a { color: var(--muted); text-decoration: none; }
.foot-in nav a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.6; color: var(--dim); }
.legal strong { color: var(--muted); font-weight: 500; }
.legal .ph { font-family: var(--f-mono); color: var(--amber); }
.legal p + p { margin-top: 6px; }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .overview { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
  .pricing { grid-template-columns: 1fr; }
  .tray-wrap { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 14px 8px; font-size: 1.05rem; }
  .header-in { gap: 10px; }
  .header-buy { order: 3; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero-cta .btn { width: 100%; }
  .desk { margin-top: 40px; gap: 5px; }
  .desk .m-left { display: none; }
  .desk .m-main { flex-basis: 72%; }
  .desk .m-port { flex-basis: 24%; }
  .overview { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 2; }
  .widget-board { grid-template-columns: 1fr; }
  .presets { grid-template-columns: 1fr 1fr; }
  .presets { gap: 6px; } .preset .meta { font-size: .74rem; } .preset .meta small { display: none; }
  .price-card .ticks { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .toolbar .chip { margin-left: 0; }
  .editor-canvas { padding: 12% 4% 9%; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.25rem; }
  .header-buy { padding: 0 12px; font-size: .85rem; }
  .header-buy .long { display: none; }
}

/* ---------- Correctifs passe 1 ---------- */
.header-buy { gap: 0; }
#fonctionnalites, #features { padding-bottom: 0; }
.search .q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.multi .mon.l, .multi .mon.c { width: 34%; }
.multi .mon.p { width: 20%; }
.toggle-line span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Vidéo : tant qu'aucune affiche n'est disponible, le poster de secours reste visible */
.player.noposter video:not(.started) { opacity: 0; pointer-events: none; }
.player .play {
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--amber); color: var(--on-amber); display: grid; place-items: center;
  position: relative; z-index: 2;
}
.player .play[hidden], .player .soon[hidden] { display: none; }
.player .play:hover { background: #ffc46d; }
.player .play svg { width: 30px; height: 30px; margin-left: 4px; }
.player.noposter .fallback { z-index: 1; }
@media (max-width: 600px) {
  .multi { gap: 6px; }
  .toggle-line { font-size: .62rem; flex-direction: column; align-items: flex-start; gap: 6px; }
  .switch { width: 24px; height: 14px; }
  .switch::after { width: 10px; height: 10px; }
  .switch.on::after { left: 12px; }
}

/* =====================================================================
   Démos interactives (maquettes cliquables), pilotées par demo.js
   ===================================================================== */
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:where(.demo) button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.demo button:not(:disabled) { cursor: pointer; }
button.chip { min-height: 32px; transition: border-color .2s, color .2s, background-color .2s; }
button.chip:hover { border-color: #4a4c58; color: var(--text); }
button.chip.on { color: var(--on-amber); }
button.chip.on:hover { background: #ffc46d; color: var(--on-amber); }
.chip b { color: var(--text); font-weight: 600; }
.chip.on b { color: var(--on-amber); }
.opt-l { font: 500 .72rem/1 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-right: 2px; }
.opt-l b { color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; }
.opt-note { font: 400 .74rem/1.4 var(--f-mono); color: var(--dim); }

/* Indice « Essayez » + petite impulsion la première fois */
.try { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 400 .78rem/1.4 var(--f-mono); color: var(--dim); }
.try svg { width: 16px; height: 16px; color: var(--amber); flex: none; }
[data-hint].nudge { animation: nudge-ring 1.5s ease-out 2; border-radius: 10px; }
@keyframes nudge-ring { 0% { box-shadow: 0 0 0 0 rgba(255,181,71,.5); } 100% { box-shadow: 0 0 0 12px rgba(255,181,71,0); } }

/* ---- 01 Fonds ---- */
.mode { width: 100%; text-align: center; transition: border-color .2s; }
.mode:hover { border-color: #4a4c58; }
.mode.on, .mode.on:hover { border-color: var(--amber); }
.mode .sw { display: block; }
.bgp .bgl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; z-index: 0; }
.bgp[data-mode="grad"] .bgl-grad, .bgp[data-mode="solid"] .bgl-solid, .bgp[data-mode="img"] .bgl-img,
.bgp[data-mode="vid"] .bgl-vid, .bgp[data-mode="none"] .bgl-none { display: block; }
.bgl-grad {
  background-image: linear-gradient(120deg, #1d1f3d, #3a2f55 45%, #8a4b4f 75%, #ffb547);
  background-size: 260% 260%; animation: drift var(--speed, 14s) ease-in-out infinite alternate;
}
.bgl-solid { background: var(--solid, #2b3a55); transition: background-color .35s; }
.bgl-img { background: #0b0c0f; }
.bgl-vid svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-wave1, .v-wave2, .v-wave3 { animation: wave linear infinite; }
.v-wave1 { animation-duration: 9s; } .v-wave2 { animation-duration: 6s; } .v-wave3 { animation-duration: 4s; }
.v-sun { transform-box: fill-box; transform-origin: center; animation: bob 5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes bob { from { transform: translateY(2px); } to { transform: translateY(-5px); } }
.vid-ind {
  position: absolute; left: 3cqw; bottom: 9cqw; z-index: 3; display: flex; align-items: center; gap: 1.2cqw;
  background: rgba(18,19,24,.78); border-radius: .8cqw; padding: 1cqw 1.6cqw;
  font: 500 2.4cqw/1 var(--f-mono); color: var(--text);
}
.vid-play { width: 0; height: 0; border-left: 1.6cqw solid var(--amber); border-top: 1cqw solid transparent; border-bottom: 1cqw solid transparent; }
.vid-bar { width: 16cqw; height: .7cqw; border-radius: 1cqw; background: rgba(255,255,255,.18); overflow: hidden; }
.vid-bar b { display: block; height: 100%; width: 0; background: var(--amber); }
.bgl-none { background: radial-gradient(ellipse 70% 80% at 28% 115%, #3b6db0 0%, transparent 60%), radial-gradient(ellipse 60% 70% at 85% -10%, #2a4f86 0%, transparent 60%), #15213a; }
.none-tag { position: absolute; top: 3cqw; right: 3cqw; font: 500 2.2cqw/1 var(--f-mono); color: var(--text); background: rgba(18,19,24,.7); padding: 1cqw 1.4cqw; border-radius: .8cqw; }
.bgp .mod-clock { z-index: 3; }
.bgp .mod-clock .t { font-size: 8cqw; }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; min-height: 34px; }
.hue { width: 28px; height: 28px; border-radius: 50%; padding: 0; background: var(--h); border: 2px solid var(--panel); outline: 1px solid var(--line); }
.hue.on { outline: 2px solid var(--amber); }

/* ---- 02 Recherche ---- */
.search { cursor: text; }
.search:focus-within { border-color: var(--amber); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  color: var(--text); font: 400 1rem/1 var(--f-text);
}
.ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .src { display: inline-flex; gap: 4px; margin: 0; }
.masonry-wrap { margin-top: 12px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3c47 transparent; border-radius: 8px; }
.masonry-wrap .masonry { margin-top: 0; }
.sentinel { height: 1px; }
.tile { display: block; width: 100%; padding: 0; border: 0; background: none; }
.tile svg { display: block; width: 100%; height: auto; }
.masonry .tile .dl { opacity: 0; transition: opacity .2s; }
.masonry .tile:hover .dl, .masonry .tile:focus-visible .dl { opacity: 1; }
.tile:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.tile .prog { position: absolute; inset: auto 0 0 0; padding: 6px; display: none; background: linear-gradient(transparent, rgba(10,10,14,.85)); font: 600 .66rem/1 var(--f-mono); color: var(--text); text-align: left; }
.tile .prog i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin-top: 5px; overflow: hidden; }
.tile .prog i b { display: block; height: 100%; width: 0; background: var(--amber); }
.tile.loading .prog { display: block; }
.tile.loading .dl, .tile.applied .dl { display: none; }
.tile.applied { outline: 2px solid var(--amber); outline-offset: -2px; }
.tile.enter { animation: tile-in .45s ease both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.applied { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-desk { flex: 0 0 38%; border-radius: 6px; display: block; }
.mini-bg, .mini-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mini-bg.fresh { animation: fade-in .5s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.credit2 { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 400 .74rem/1.4 var(--f-mono); color: var(--dim); }
.credit2 b { color: var(--text); font-weight: 500; }

/* ---- 03 Sites web ---- */
.webmod { transition: outline-color .2s, box-shadow .2s; outline: 2px solid transparent; outline-offset: 2px; }
.webmod.interact { outline-color: var(--amber); box-shadow: 0 0 0 6px rgba(255,181,71,.16); }
.page-bar { display: flex; gap: 1cqw; align-items: center; padding: 1.2cqw 1.6cqw; background: #17181d; }
.page-bar i { display: block; height: 1cqw; width: 8cqw; border-radius: 1cqw; background: rgba(255,255,255,.14); }
.page-bar i:first-child { width: 4cqw; background: var(--amber); }
.page-main { flex: 1; display: flex; min-height: 0; transition: opacity .2s; }
.webmod .vid { border: 0; padding: 0; text-align: left; background-size: 220% 220%; animation: drift 8s ease-in-out infinite alternate; cursor: default; }
.webscreen.interact .webmod .vid { cursor: pointer; }
.webmod .vid:not(.is-paused)::after { display: none; }
.webmod .vid.is-paused { animation-play-state: paused; filter: saturate(.6) brightness(.8); }
.webmod .vid .paused { display: none; position: absolute; left: 2cqw; bottom: 2cqw; font: 600 2.2cqw/1 var(--f-mono); color: var(--text); background: rgba(18,19,24,.8); padding: .8cqw 1.2cqw; border-radius: .6cqw; }
.webmod .vid.is-paused .paused { display: block; }
.webmod .vid:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.page-side { width: 26%; padding: 2cqw 1.8cqw; display: grid; align-content: start; gap: 1.2cqw; background: #121318; }
.page-side i { display: block; height: 1cqw; border-radius: 1cqw; background: rgba(255,255,255,.14); }
.page-side i:nth-child(odd) { width: 80%; }
.webmod.isolated .page-bar, .webmod.isolated .page-side { display: none; }
.webmod.isolated { outline: 2px dashed var(--amber); outline-offset: 2px; }
.webmod.isolated.interact { outline-style: solid; }
.webmod.reloading .page-main { opacity: .15; }
.web-tools { z-index: 3; }
.web-tools button { width: 6cqw; height: 6cqw; min-width: 26px; min-height: 26px; padding: 0; color: var(--text); }
.web-tools button:hover { border-color: var(--amber); }
.web-tools button[aria-pressed="true"] { background: var(--amber); }
.web-tools button[aria-pressed="true"] svg { color: var(--on-amber); }
.web-tools .spin svg { animation: spin .8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.eq { position: absolute; right: 2cqw; bottom: 2cqw; display: none; gap: .5cqw; align-items: flex-end; height: 3.4cqw; }
.webmod.sound .eq { display: flex; }
.eq i { display: block; width: .8cqw; height: 40%; background: var(--text); border-radius: .3cqw; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.alt-hint { transition: background-color .2s, color .2s; }
.webscreen.interact .alt-hint { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.webscreen.interact .alt-hint kbd { background: var(--on-amber); color: var(--amber); border-color: var(--on-amber); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.chip.key kbd { font-size: .9em; padding: 2px 5px; }
.chip.key[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.chip.key[aria-pressed="true"] kbd { background: var(--on-amber); color: var(--amber); border-color: var(--on-amber); }
.chip[aria-pressed="true"]:not(.key) { border-color: var(--amber); color: var(--amber); }
.chip[aria-pressed="true"]:not(.key) b { color: var(--amber); }

/* ---- 04 Widgets ---- */
.wb { position: relative; --wc: #ffb547; --wf: var(--f-mono); transition: border-color .2s, box-shadow .2s; }
.wb-pick { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; border-radius: 12px; z-index: 1; }
.wb-pick:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wb.sel { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.wb .clock { color: var(--wc); transition: color .25s; }
.wb .clock, .wb .date, .wb .row, .wb .sessions li, .wb .h { font-family: var(--wf); }
.wb .g-cpu { stroke: var(--wc); transition: stroke .25s; }
.wb .bar:not(.alt) b { background: var(--wc); transition: background-color .25s; }
.wb .sessions li:not(.idle) i { background: var(--wc); }
.wb.flash { animation: wb-flash .7s ease; }
@keyframes wb-flash { 0% { box-shadow: 0 0 0 0 rgba(255,181,71,.55); } 100% { box-shadow: 0 0 0 10px rgba(255,181,71,0); } }
.style-row .seg { display: inline-flex; gap: 4px; }
.style-row .dots { gap: 8px; }
.style-row .dots button { width: 26px; height: 26px; border-radius: 50%; padding: 0; border: 2px solid var(--bg); outline: 1px solid var(--line); }
.style-row .dots button.on { outline: 2px solid var(--amber); }
.style-row .apply { border: 0; min-height: 34px; }
.style-row .apply:hover { background: #ffc46d; }

/* ---- 05 Éditeur ---- */
.tool { padding: 0; transition: border-color .2s, color .2s, background-color .2s; }
.tool:hover { color: var(--text); border-color: #4a4c58; }
.tool.on, .tool[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.tool.flash { background: rgba(255,181,71,.18); }
.editor-canvas { user-select: none; -webkit-user-select: none; }
.ed-screen.target .screen { outline: 2px solid var(--amber); }
.ed-screen .portrait .tb-zone { height: 9cqw; }
.edge-glow.l { left: 0; right: auto; width: 32%; background: linear-gradient(to right, rgba(255,181,71,.6), transparent); }
.mod {
  position: absolute; z-index: 8; touch-action: none; cursor: grab;
  border-radius: 1.4cqw; outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .15s, box-shadow .15s;
}
.mod.sel { outline-color: var(--amber); }
.mod.dragging { cursor: grabbing; box-shadow: 0 1.5cqw 4cqw rgba(0,0,0,.5); }
.mod:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.mod-clock-e { background: rgba(18,19,24,.6); padding: 1.6cqw 2.6cqw; }
.mod-clock-e .t { display: block; font: 500 8cqw/1 var(--f-mono); letter-spacing: -0.04em; color: var(--text); }
.portrait .mod-clock-e { padding: 3cqw 5cqw; border-radius: 3cqw; }
.portrait .mod-clock-e .t { font-size: 16cqw; }
.mod-quota-e { width: 26cqw; background: rgba(18,19,24,.78); border: 1px solid rgba(255,255,255,.08); padding: 1.6cqw 2cqw; }
.portrait .mod-quota-e { width: 62cqw; padding: 4cqw; border-radius: 3cqw; }
.mod-quota-e .lbl { display: block; font: 500 2cqw/1 var(--f-mono); color: #c9c8d2; }
.portrait .mod-quota-e .lbl { font-size: 5cqw; }
.mod-quota-e .bar { display: block; margin: 1cqw 0 0; height: 1cqw; }
.portrait .mod-quota-e .bar { height: 2.4cqw; margin-top: 2.4cqw; }
.mirror { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mirror-l { font: 500 .7rem/1.3 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; flex: none; width: 74px; }
.mirror-desk { flex: 1; display: flex; align-items: flex-start; gap: 3%; max-width: 360px; }
.mirror-mon { display: block; }
.mirror-mon.a { flex: 0 0 66%; } .mirror-mon.b { flex: 0 0 22%; }
.mirror-mon .screen { display: block; border-radius: 4px; outline: 1px solid #3a3c47; }
.mirror .mod { cursor: default; pointer-events: none; outline: 0; transition: none; }

/* ---- 06 Presets ---- */
.preset { width: 100%; text-align: left; transition: border-color .2s, box-shadow .2s; }
.preset:hover { border-color: #4a4c58; }
.preset.on:hover { border-color: var(--pc); }
.preset .thumb .screen { display: block; }
.preset .meta { display: flex; }
.grad-ocean { background: linear-gradient(120deg, #0f2a3d, #1f5f7a 55%, #3fa7a3 85%, #bde8d8); }
.wipe-demo .pv-next { position: absolute; inset: 0; z-index: 4; clip-path: inset(0 100% 0 0); }
.wipe-demo .pv-next .screen { height: 100%; }
.wipe-demo .pv-next.go { clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.65,0,.3,1); }
.wipe-demo .edge { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1px; z-index: 5; background: var(--amber); box-shadow: 0 0 18px 4px rgba(255,181,71,.45); }
.wipe-demo .edge.go { left: 100%; transition: left .8s cubic-bezier(.65,0,.3,1); }
.pv-mod { position: absolute; z-index: 2; }
.pv-label { position: absolute; top: 3cqw; right: 3cqw; z-index: 3; font: 600 2.4cqw/1 var(--f-title); padding: 1.1cqw 1.6cqw; border-radius: .8cqw; background: rgba(18,19,24,.75); color: var(--text); display: flex; align-items: center; gap: 1cqw; }
.pv-label i { width: 1.6cqw; height: 1.6cqw; border-radius: .4cqw; display: block; }

/* ---- 07 Multi-écrans ---- */
.mon-pick { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 6px; }
.mon-pick .screen { display: block; transition: outline-color .2s; }
.mon-pick[aria-pressed="true"] .screen { outline: 2px solid var(--amber); }
.mon-pick:hover .screen { outline-color: #5a5c68; }
.mon-pick[aria-pressed="true"]:hover .screen { outline-color: var(--amber); }
.off-tag { display: none; position: absolute; inset: 0; z-index: 6; place-items: center; font: 600 .7rem/1 var(--f-mono); color: var(--text); }
.multi .off .off-tag { display: grid; }
.multi .off .screen { filter: none; }
.multi .off .screen > :not(.off-tag) { filter: grayscale(1) brightness(.4); }
.multi .screen .bgl { position: absolute; inset: 0; }
button.toggle-line { width: 100%; min-height: 34px; padding: 4px 2px; border: 0; background: none; text-align: left; }
button.toggle-line:hover { color: var(--text); }
.mon-info { margin-top: 14px; font: 400 .76rem/1.5 var(--f-mono); color: var(--dim); }
.mon-info b { color: var(--text); font-weight: 500; }
.mon-info .is-on { color: var(--amber); }
.mon-info .is-off { color: var(--muted); }

/* ---- 08 Zone de notification ---- */
.tray-menu .it { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: var(--text); }
.tray-menu button.it:hover { background: var(--panel-2); }
.tray-menu .it[aria-pressed="true"] { background: var(--panel-2); }
.tray-menu .it.muted { color: var(--dim); }
.tray-state { font: 500 .74rem/1 var(--f-mono); color: var(--amber); margin-right: auto; }
.tray-col.paused .tray-ico svg { filter: grayscale(1) brightness(.7); }
.tray-col.paused .tray-ico { outline-color: var(--dim); }

@media (max-width: 600px) {
  .masonry-wrap { max-height: 300px; }
  .mini-desk { flex-basis: 44%; }
  .mirror-l { width: 54px; }
  .demo-controls .opt-note { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-hint].nudge { animation: none; }
}
/* Pause depuis la zone de notification : toutes les animations des démos s'arrêtent */
.bs-paused .demo *, .bs-paused .demo *::before, .bs-paused .demo *::after { animation-play-state: paused !important; }
.w-card span.bar { display: block; }
@media (max-width: 600px) { .presets { grid-template-columns: repeat(3, 1fr); } .preset { padding: 6px; } }

/* ---------- Sélecteur de langue (FR / EN) ---------- */
.lang { display: flex; align-items: center; gap: 0; font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; color: var(--dim); }
.lang a {
  display: inline-grid; place-items: center; min-width: 30px; min-height: 36px; padding: 0 5px; border-radius: 6px;
  color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--text); background: var(--panel); }
.lang a[aria-current="page"] { color: var(--amber); }
.lang .sl { color: var(--line); }
.lang-foot { margin-top: 14px; margin-left: -5px; }
@media (max-width: 820px) {
  .header-in .lang { order: 1; margin-left: auto; }
  .header-in .menu-btn { order: 2; margin-left: 0; }
}
@media (max-width: 400px) {
  .header-in { gap: 6px; }
  .header-in .lang a { min-width: 26px; padding: 0 3px; }
}

/* ---------- Captures réelles de l'application ---------- */
.real { padding-bottom: 0; }
.real figure { margin: 0; }
.real img { width: 100%; height: auto; }
.real-desk { max-width: 1080px; margin: 0 auto; }
.real-desk .bezel { overflow: hidden; }
.real-desk .bezel img { border-radius: clamp(3px, .5vw, 7px); }
.real figcaption { margin-top: 14px; font: 400 .8rem/1.5 var(--f-mono); color: var(--dim); text-align: center; }
.real-apps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(40px, 6vw, 72px); }
.real-win img { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); background: var(--panel); }
@media (max-width: 760px) { .real-apps { grid-template-columns: 1fr; } }

/* ---------- Bientôt disponible (avant le lancement) ---------- */
.btn.is-disabled { opacity: .55; pointer-events: none; cursor: default; }
.soon-note { margin-top: 14px; font: 400 .8rem/1.4 var(--f-mono); color: var(--dim); }

/* ---------- Pages légales et 404 ---------- */
.prose { max-width: 760px; padding-top: 128px; padding-bottom: clamp(64px, 8vw, 96px); }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); letter-spacing: -0.03em; }
.prose .lede { margin-top: 14px; color: var(--muted); }
.prose h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 40px; }
.prose p, .prose ul { margin-top: 12px; color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); font-weight: 500; }
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 0; }
.not-found .code { font: 500 .8rem/1 var(--f-mono); letter-spacing: .12em; color: var(--amber); }
.not-found h1 { margin-top: 16px; }
.not-found .hero-cta { margin-top: 28px; }

/* En-tête : libellé court du bouton (« Me prévenir ») tant que la place manque */
@media (max-width: 1060px) { .header-buy .long { display: none; } }
.not-found { padding-top: 68px; }
