/* FloatPin — site vitrine.
   Polices et couleurs de Windows (l'app est un utilitaire Windows) + le bleu du logo. */
:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --ink: #1b1b1b;
  --muted: #5d5d5d;
  --line: #e1e1e1;
  --accent: #0a6cd6;
  --accent-ink: #ffffff;
  --accent-hover: #0858b0;
  --wall: #6f8fa8;          /* fond d'écran de la démo */
  --doc: #fbfbfb;
  --doc-line: #dcdcdc;
  --chrome: #202022;        /* barre et poignées, comme dans l'app */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --surface: #272727;
    --ink: #f2f2f2;
    --muted: #b4b4b4;
    --line: #3a3a3a;
    --accent: #4ca0ff;
    --accent-ink: #0b1a2b;
    --accent-hover: #75b6ff;
    --wall: #33465a;
    --doc: #2d2d2d;
    --doc-line: #444;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 650; }
p { margin: 0; }

/* ---------- En-tête ---------- */
/* Menu fixé en haut pendant le défilement ; le fond couvre toute la largeur, le contenu reste aligné sur la page. */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100% - 1112px) / 2));
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
section[id] { scroll-margin-top: 72px; } /* les liens du menu ne passent pas sous la barre */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; color: var(--ink); text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--ink); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.langs button {
  border: 0; background: transparent; color: var(--muted);
  font: 600 12px var(--font); padding: 6px 9px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Accroche + démo ---------- */
.hero {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 40px 24px 72px;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.01em; }
.lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 30em; }
.facts { margin-top: 14px; font-size: 14px; color: var(--muted); }

.store {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; padding: 13px 20px; border-radius: 6px;
}
.store:hover { background: var(--accent-hover); }
.win { /* logo Windows en 4 carrés */
  width: 16px; height: 16px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 0 / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 0 9px / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 9px / 7px 7px no-repeat;
}

.demo { margin: 0; }
.demo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.desk {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--wall); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 40px rgba(0,0,0,.18);
  user-select: none; touch-action: none;
}
.appwin {
  position: absolute; left: 6%; top: 7%; width: 74%; height: 72%;
  background: var(--doc); border-radius: 6px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.appbar {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px;
  font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--doc-line);
}
.appbar span { margin-right: auto; }
.appbar i { width: 10px; height: 2px; background: var(--muted); opacity: .6; }
.lines { padding: 18px 22px; display: grid; gap: 11px; }
.lines b { display: block; height: 7px; border-radius: 2px; background: var(--doc-line); width: 92%; }
.lines b.m { width: 70%; } .lines b.s { width: 46%; }

.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9%;
  display: flex; align-items: center; justify-content: center; gap: 1.6%;
  background: rgba(32,32,34,.88);
}
.taskbar i { width: 3.2%; aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.28); }
.taskbar i.on { background: rgba(255,255,255,.55); }
.tray { position: absolute; right: 2%; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; }

/* La fenêtre flottante */
.float {
  position: absolute; width: 38%; aspect-ratio: 16 / 9; right: 4%; bottom: 13%;
  background: #0d3b1e; cursor: grab; outline: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.float.dragging { cursor: grabbing; }
.float canvas { width: 100%; height: 100%; display: block; }
.fbar {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chrome);
  opacity: 0; transition: opacity .15s;
}
.fbar .h { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.fbar .h.move { cursor: move; }
.fbar svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.grip {
  position: absolute; width: 14px; height: 14px; border-radius: 4px; background: var(--chrome);
  opacity: 0; transition: opacity .15s;
}
.grip.tl { left: 4px; top: 4px; cursor: nwse-resize; }
.grip.tr { right: 4px; top: 4px; cursor: nesw-resize; }
.grip.bl { left: 4px; bottom: 4px; cursor: nesw-resize; }
.grip.br { right: 4px; bottom: 4px; cursor: nwse-resize; }
.float:hover .fbar, .float:hover .grip, .float:focus .fbar, .float:focus .grip, .float.dragging .fbar, .float.dragging .grip { opacity: 1; }
@media (hover: none) { .fbar, .grip { opacity: 1; } }

/* ---------- Trois gestes ---------- */
.steps, .uses, .price, .faq, .last { max-width: 1160px; margin: 0 auto; padding: 64px 24px; }
.steps { border-top: 1px solid var(--line); }
.steps ol { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; max-width: 860px; }
.steps li { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.steps h3 { font-size: 20px; font-weight: 650; }
.steps p { margin-top: 6px; color: var(--muted); }
.keys { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
kbd {
  font: 600 14px var(--font); padding: 5px 10px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 3px;
}

/* ---------- Usages ---------- */
.uses { background: var(--surface); max-width: none; }
.uses > * { max-width: 1112px; margin-left: auto; margin-right: auto; }
.uses > p { margin-top: 10px; color: var(--muted); }
.uses ul { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.uses li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 15px; }

/* ---------- Prix ---------- */
.price > p { margin-top: 10px; color: var(--muted); }
.price table { margin-top: 28px; width: 100%; max-width: 760px; border-collapse: collapse; font-size: 16px; }
.price th, .price td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.price th { font-weight: 650; }
.price td:nth-child(n+2), .price th:nth-child(n+2) { text-align: center; width: 22%; }
.price .pro { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.price th.pro { color: var(--accent); }
.price tfoot td { font-weight: 650; border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 18px; }
.faq details { max-width: 760px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--muted); }

.last { text-align: center; border-top: 1px solid var(--line); }

footer {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  padding: 28px 24px 40px; font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .links { display: none; }
  .langs { margin-left: auto; }
  .steps li { grid-template-columns: 1fr; gap: 10px; }
  .price td, .price th { padding: 10px 8px; font-size: 15px; }
}
