:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #0e0e0e;
  --ink-2: #3d3d3a;
  --muted: #4a4a46;
  --line: rgba(14, 14, 14, 0.14);
  --grid: rgba(14, 14, 14, 0.06);
  --accent: #ffd60a;
  --sky-1: #cfe6fb;
  --sky-2: #7fb8ec;
  --sky-ink: #06243f;
  --focus: #1f6feb;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0e;
    --paper: #181816;
    --ink: #f4f2ea;
    --ink-2: #d6d4cc;
    --muted: #b0aea6;
    --line: rgba(244, 242, 234, 0.2);
    --grid: rgba(244, 242, 234, 0.06);
    --sky-1: #12304d;
    --sky-2: #1d5d97;
    --sky-ink: #eaf4ff;
    --focus: #7fb8ff;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--accent); color: #0e0e0e; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  border-radius: 999px;
}
.skip:focus { top: 16px; }

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

.mono {
  font-family: var(--mono);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- barre du haut ---------- */

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 1.05rem;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top nav {
  justify-self: end;
  display: flex;
  gap: 18px;
  align-items: center;
}

.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.lang[aria-current="page"] { font-weight: 700; text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 20px;
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.hero h1 {
  grid-column: 1 / span 5;
  grid-row: 1;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero .lede {
  grid-column: 1 / span 5;
  grid-row: 2;
  margin: clamp(24px, 3vw, 40px) 0 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 34ch;
}

.install {
  grid-column: 1 / span 5;
  grid-row: 3;
  margin-top: 28px;
}

.cmd {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  max-width: 520px;
}

.cmd code {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.cmd code::before { content: "$ "; color: var(--muted); }

.copy {
  flex: none;
  border: 0;
  border-left: 1.5px solid var(--ink);
  background: var(--accent);
  color: #0e0e0e;
  font: 600 0.8125rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  min-height: 48px;
}
.copy:hover { background: #ffe24d; }

.install p { margin: 10px 0 0; color: var(--muted); }

/* île flottante */

.island {
  grid-column: 6 / span 5;
  grid-row: 1 / span 3;
  position: relative;
  justify-self: center;
  align-self: center;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.02;
  margin-top: 8px;
}

.island img { position: absolute; user-select: none; }

.island .rock    { width: 74%; left: 13%; bottom: 10%; }
.island .laptop  { width: 42%; left: 29%; bottom: 44%; }
.island .speaker { width: 23%; right: 4%;  top: 12%; transform: rotate(-8deg); }
.island .seed    { width: 15%; left: 24%; bottom: 45%; }
.island .spark   { width: 12%; left: 8%;  top: 18%; }
.island .ear     { width: 15%; left: 2%;  bottom: 30%; transform: rotate(10deg); }

.island::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 4%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), transparent);
}

/* annotations à la manière d'un plan */

.note {
  position: absolute;
  z-index: 2;
  width: 220px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.note b {
  display: block;
  margin: -10px -12px 8px;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note.n1 { right: var(--gutter); top: clamp(24px, 5vw, 56px); width: 190px; }
.note.n2 { right: var(--gutter); bottom: clamp(56px, 8vw, 120px); width: 200px; }

.leaders {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  color: var(--ink);
}

.leaders path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.leaders rect { fill: var(--bg); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- blocs de texte flottant ---------- */

section { position: relative; }

.band { padding: clamp(64px, 10vw, 140px) 0; border-top: 1px solid var(--line); }

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border: 1px solid currentColor; }

.statement {
  margin: 0;
  max-width: 19ch;
  margin-left: auto;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.statement + .statement { margin-top: 0.6em; }

.ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin: 0 0.08em;
}

.boxed {
  border: 1.5px solid var(--ink);
  border-radius: 0.28em;
  padding: 0 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl { background: linear-gradient(transparent 58%, var(--accent) 58%); color: inherit; }
@media (prefers-color-scheme: dark) { .hl { background: linear-gradient(transparent 58%, rgba(255, 214, 10, 0.35) 58%); } }

.side {
  position: absolute;
  left: var(--gutter);
  top: calc(clamp(64px, 10vw, 140px) + 72px);
  width: 230px;
}

.side .note { position: static; width: auto; }

/* ---------- écoute ---------- */

.listen-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 48px;
}

.listen-head h2 {
  grid-column: 1 / span 7;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.listen-head p { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); }

.clips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.clip {

  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.clip h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

.term {
  margin: 0;
  background: #111110;
  color: #e9e7df;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
}

.term .p { color: #ffd60a; }

.said {
  margin: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  font-size: 1.1rem;
  line-height: 1.45;
}

.said img { width: 40px; height: 40px; grid-row: span 2; }
.said br { display: none; }
.said small { grid-column: 2; color: var(--muted); font-size: 0.95rem; }

audio { width: 100%; height: 44px; }

/* ---------- principes ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.fact {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.fact header {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid var(--ink);
}

.fact .body { padding: 18px 16px 22px; display: grid; gap: 10px; }
.fact img { width: 64px; height: 64px; }
.fact h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 600; }
.fact p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- touches ---------- */

.keys {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.keys th, .keys td {
  text-align: left;
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.keys th { width: 32%; font-weight: 500; }

kbd {
  display: inline-block;
  min-width: 2.4em;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.95rem;
  text-align: center;
}

.two {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.two h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.two .intro { color: var(--ink-2); margin: 20px 0 0; }

/* ---------- conçu avec ---------- */

.with {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.with img { width: clamp(120px, 16vw, 200px); }

/* ---------- licences ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.plan {
  position: relative;
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 16px;
  align-content: start;
  overflow: hidden;
}

.plan.free { background: var(--paper); border: 1px solid var(--line); }

.plan.pro {
  --focus: #06243f;
  background: radial-gradient(120% 90% at 50% 0%, var(--sky-1), var(--sky-2));
  color: var(--sky-ink);
}

.plan .icon { position: absolute; right: 20px; top: 20px; width: 88px; }

.plan h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; font-weight: 600; }
.plan .price { margin: 0; font-size: 1.1rem; }
.plan ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.plan.pro .btn { background: #ffffff; color: #06243f; border-color: #ffffff; }
.btn:hover { text-decoration: underline; }

.fine { color: var(--muted); font-size: 0.95rem; margin-top: 24px; }

/* ---------- installation ---------- */

.steps { display: grid; gap: 20px; }

.steps h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; }

.steps pre {
  margin: 0;
  background: #111110;
  color: #e9e7df;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

/* ---------- pied ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* ---------- apparition douce ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  :root { --line: currentColor; --muted: var(--ink); --ink-2: var(--ink); }
}

/* ---------- mobile ---------- */

@media (max-width: 1200px) {
  .leaders { display: none; }
  .note.n1, .note.n2 { position: static; width: auto; max-width: 420px; margin-top: 16px; grid-column: 1 / span 5; }
}

@media (max-width: 900px) {
  body { background-size: calc(100% / 3) 100%; }
  .top { grid-template-columns: 1fr; }
  .top nav { justify-self: start; flex-wrap: wrap; gap: 8px 18px; }
  .top .tag { display: none; }
  .hero { display: block; }
  .island { width: min(100%, 380px); margin: 32px auto 0; }
  .leaders { display: none; }
  .side { position: static; width: auto; margin-bottom: 32px; }
  .statement { margin-left: 0; }
  .listen-head { display: block; }
  .listen-head p { margin-top: 16px; }
  .clips, .facts, .plans, .two { grid-template-columns: minmax(0, 1fr); }
  .keys th { width: 42%; }
  .with { grid-template-columns: 1fr; }
}

.clip, .steps, .plan, .fact .body { grid-template-columns: minmax(0, 1fr); }
