/* ForgeGUI for VS Code — landing page
   Mêmes tokens que le panneau de l'extension (media/panel/panel.css). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/AtkinsonHyperlegibleNext-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/assets/fonts/AtkinsonHyperlegibleMono-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Consolas, monospace;
  --bg: #0c0c0c;
  --text: #ededed;
  --muted: rgb(255 255 255 / 58%);
  --faint: rgb(255 255 255 / 10%);
  --rim: inset 0 -2px 1px rgb(255 255 255 / 25%), inset 0 2px 1px rgb(255 255 255 / 25%);
  --btn-rim: inset 0 2px 1.5px rgb(255 255 255 / 25%), inset 0 -2px 1.5px rgb(255 255 255 / 25%);
  --panel: radial-gradient(ellipse at top, #1b1b1b, #101010);
  --panel-shadow: var(--rim), 0 4px 50px rgb(0 0 0 / 25%);
  --blue: radial-gradient(ellipse 50.45% 100% at 49.55% 101.25%, #0077ff, #002b5d);
  --blue-hover: radial-gradient(ellipse 50.45% 100% at 49.55% 101.25%, #007bff, #003f86);
  --dark: radial-gradient(ellipse 50.45% 100% at 49.55% 101.25%, #2a2a2a, #161414);
  --dark-hover: radial-gradient(ellipse 50.45% 100% at 49.55% 101.25%, #535353, #252525);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
p { margin: 0; }
code {
  font-family: var(--mono);
  font-size: .9em;
  padding: .1em .4em;
  border-radius: 6px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid var(--faint);
}
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid #0077ff; outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 10px; background: #0077ff; color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid #000;
  color: #fff; font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  box-shadow: var(--btn-rim);
  transition: transform .08s ease, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -3px 1.5px rgb(0 0 0 / 35%), inset 0 3px 1.5px rgb(0 0 0 / 35%); }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-hover); }
.btn--dark { background: var(--dark); color: var(--text); }
.btn--dark:hover { background: var(--dark-hover); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
  white-space: nowrap;
}
.link svg { width: 14px; height: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgb(12 12 12 / 72%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--faint);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__tag { font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 2px; }
.nav__links { display: flex; gap: 24px; margin-right: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 64px 0 40px; margin-top: -64px; padding-top: 128px; overflow: hidden; }
.hero__sky {
  position: absolute; inset: 0 0 auto; z-index: -1;
  width: 100%; height: 820px; object-fit: cover; object-position: center 35%;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  opacity: .85;
  animation: drift 50s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.06) translateX(-1.5%); } to { transform: scale(1.06) translateX(1.5%); } }

.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; margin-bottom: 26px;
  border-radius: 9999px; border: 1px solid #000; background: #101010;
  box-shadow: var(--panel-shadow);
  font-size: 13px; font-weight: 600; color: #e4f5ff;
}
.pill svg { width: 14px; height: 14px; color: #4b8dd9; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); max-width: 15ch; text-shadow: 0 4px 40px rgb(0 0 0 / 45%); }
.grad {
  background: linear-gradient(180deg, #fff 10%, #7cc0ff 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  max-width: 600px; margin-top: 20px;
  font-size: clamp(17px, 2vw, 19px); color: rgb(237 237 237 / 80%);
  text-shadow: 0 2px 16px rgb(0 0 0 / 60%);
}
.hero__lead strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.hero__meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- VS Code window ---------- */
.window {
  margin: 64px auto 0; max-width: 1040px;
  border-radius: 16px; border: 1px solid #000; overflow: hidden;
  background: #181818;
  box-shadow: var(--rim), 0 30px 120px rgb(0 0 0 / 60%), 0 0 0 1px rgb(255 255 255 / 4%), 0 -20px 120px rgb(0 119 255 / 10%);
}
.window__bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 38px; background: #1f1f1f; border-bottom: 1px solid #2b2b2b;
}
.dots { position: absolute; left: 14px; display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3a; }
.window__title { font-size: 13px; color: #9d9d9d; }
.window__body { display: grid; grid-template-columns: 48px 320px minmax(0, 1fr); height: 640px; }
.activity { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 14px; background: #181818; border-right: 1px solid #2b2b2b; }
.activity svg, .activity img { width: 24px; height: 24px; color: #868686; stroke-width: 1.6; }
.activity img.is-active { filter: invert(1); opacity: 1; }
.activity img.is-active { position: relative; }
.side { display: flex; flex-direction: column; background: #181818; border-right: 1px solid #2b2b2b; min-width: 0; }
.side__head { height: 35px; display: flex; align-items: center; padding: 0 20px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #cccccc; }
.side iframe { flex: 1; width: 100%; border: 0; background: #0c0c0c; }
.editor { background: #1f1f1f; min-width: 0; overflow: hidden; }
.tabs { display: flex; height: 35px; background: #181818; border-bottom: 1px solid #2b2b2b; }
.tab { display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: #9d9d9d; border-right: 1px solid #2b2b2b; }
.tab.is-active { background: #1f1f1f; color: #fff; box-shadow: inset 0 1px #0078d4; }
.code {
  margin: 0; padding: 14px 0; overflow: hidden;
  font: 14px/1.7 var(--mono); color: #cccccc; white-space: pre;
}
.code .ln { display: inline-block; width: 52px; padding-right: 18px; text-align: right; color: #6e7681; user-select: none; }
.code .k { color: #569cd6; } .code .s { color: #ce9178; } .code .c { color: #6a9955; }
.window__caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 110px 0 0; }
.section--tight { padding-top: 90px; }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); }
.section__head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  padding: 24px; border-radius: var(--radius); border: 1px solid #000;
  background: var(--panel); box-shadow: var(--panel-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--panel-shadow), inset 0 0 27.8px rgb(0 119 255 / 22%); }
.feature__icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px; border: 1px solid #000; background: var(--blue); box-shadow: var(--btn-rim);
}
.feature__icon svg { width: 20px; height: 20px; color: #fff; }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 6px; color: var(--muted); }

.quicks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 16px; border: 1px solid #000; box-shadow: var(--rim); text-decoration: none;
  background: #161616;
}
.quick img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(.9); transition: transform .4s ease, filter .3s; }
.quick span {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgb(12 12 12 / 92%), transparent);
  font-weight: 600;
}
.quick:hover img, .quick:focus-visible img { transform: scale(1.05); filter: brightness(.95) saturate(1); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius); border: 1px solid #000;
  background: var(--panel); box-shadow: var(--panel-shadow);
}
.step__num {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 9999px; border: 1px solid #000; background: var(--dark); box-shadow: var(--btn-rim);
  font-weight: 600; font-size: 15px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step p + p { margin-top: 10px; }
.step__alt { font-size: 14px; }
.step__alt strong { color: var(--text); }
.cmd {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 6px 6px 6px 12px; border-radius: 12px;
  background: #0c0c0c; border: 1px solid var(--faint);
}
.cmd code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 13px; color: #e4f5ff; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd__copy {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid #000; border-radius: 8px; background: var(--dark); box-shadow: var(--btn-rim);
  color: var(--text); cursor: pointer;
}
.cmd__copy:hover { background: var(--dark-hover); }
.cmd__copy svg { width: 15px; height: 15px; }
.cmd__copy.is-done { color: #7cc0ff; }

.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 16px; border: 1px solid #000; background: var(--panel); box-shadow: var(--rim);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq a { color: #7cc0ff; }

.cta { padding: 130px 0 120px; position: relative; isolation: isolate; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 50% 100%, rgb(0 119 255 / 20%), transparent 70%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__inner img { margin-bottom: 24px; filter: drop-shadow(0 12px 32px rgb(0 119 255 / 40%)); }
.cta h2 { font-size: clamp(30px, 4.5vw, 48px); }

.footer { border-top: 1px solid var(--faint); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-right: auto; }
.footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer p { color: rgb(255 255 255 / 35%); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .window__body { grid-template-columns: 48px 320px minmax(0, 1fr); }
  .editor .code { font-size: 13px; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quicks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta .btn--dark { display: none; }
  .nav__inner { justify-content: space-between; }
  .hero { padding-top: 104px; }
  .window { margin-top: 44px; max-width: 360px; }
  .window__body { grid-template-columns: 1fr; height: 600px; }
  .activity, .editor { display: none; }
  .features, .steps, .quicks { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sky { animation: none; }
  .feature, .quick img { transition: none; }
}

/* Liens dans le texte (étapes, FAQ) */
a.inline { color: #7cc0ff; text-underline-offset: 3px; }
.faq strong { color: var(--text); font-weight: 600; }
/* Le code en ligne ne se coupe pas ; la commande d'installation passe à la ligne entière. */
code { white-space: nowrap; }
.cmd code { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
