@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }

/* Palette « Céramique violet nuit » (docs/design/DESIGN.md). */
:root {
  --bg: #E9E2FA;
  --grid: rgba(91, 52, 184, 0.09);
  --ink: #2A1F45;
  --title: #3B2370;
  --muted: #5E5478;
  --panel: rgba(255, 255, 255, 0.55);
  --panel-border: rgba(255, 255, 255, 0.9);
  --pink: #FF0082;
  --pink-button: #E00072;
  --pink-soft: #FF8CC4;
  --violet: #5B34B8;
  --lilac: #B9A3EC;
  --night: #2A1850;
  --night-border: #3C2670;
  --night-card: #321D5E;
  --night-card-head: #3B2670;
  --night-line: #47307A;
  --night-text: #FFFFFF;
  --night-muted: #C9BCE8;
  --mono-text: #EDE6FF;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); }
a:hover { color: var(--pink-button); }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
kbd {
  padding: 1px 7px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #D9CCF3;
  box-shadow: 0 1px 0 #D9CCF3;
  color: var(--title);
  white-space: nowrap;
}
img { max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Barre du haut ---------- */
.topbar { padding: 20px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--title); font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.topbar nav a:hover { color: var(--title); }
.topbar nav a.button-primary, .topbar nav a.button-primary:hover { color: #fff; }

/* ---------- Boutons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 12px; border: 0;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button-primary { background: var(--pink-button); color: #fff; box-shadow: 0 8px 24px rgba(224, 0, 114, 0.28); }
.button-primary:hover { color: #fff; background: #C80066; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(224, 0, 114, 0.34); }
.button-ghost { background: var(--panel); color: var(--title); border: 1px solid var(--panel-border); box-shadow: 0 4px 14px rgba(59, 35, 112, 0.08); }
.button-ghost:hover { background: #fff; color: var(--title); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- Héro ---------- */
.hero { padding: 48px 0 32px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-border);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.hero h1 {
  margin: 22px auto 18px; max-width: 820px;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
  color: var(--title);
}
.hero h1 em { font-style: normal; color: var(--pink-button); }
.hero .lede { margin: 0 auto 32px; max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Maquette de la fenêtre ---------- */
.shot { padding: 40px 0 24px; }
.window {
  display: grid; grid-template-columns: 270px 1fr; gap: 12px;
  padding: 12px; border-radius: 26px;
  background: rgba(233, 226, 250, 0.75);
  border: 1px solid var(--panel-border);
  box-shadow: 0 40px 80px -24px rgba(59, 35, 112, 0.35), 0 0 0 1px rgba(91, 52, 184, 0.06);
  text-align: left;
}
.side {
  border-radius: 18px; padding: 14px 12px;
  background: var(--panel); border: 1px solid var(--panel-border);
  display: flex; flex-direction: column; gap: 6px; font-size: 13px;
}
.lights { display: flex; gap: 7px; padding: 2px 4px 10px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.side-label { margin: 10px 6px 2px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.project { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.project small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.session { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 4px 9px; padding: 8px 10px; border-radius: 14px; }
.session b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session span { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.session.active { background: #fff; box-shadow: 0 4px 14px rgba(59, 35, 112, 0.14); }
.session.needs { background: #FFF0F7; border: 1px solid #FFC2E0; }
.session.needs span { color: #A3004F; }
.badge { font-family: var(--mono); font-size: 10.5px; color: var(--violet); background: #EFE8FC; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.badge.hot { color: #A3004F; background: #FFE3F1; }
.state { width: 14px; height: 14px; border-radius: 50%; }
.state.needs { background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 0, 130, 0.15); width: 10px; height: 10px; margin: 2px; }
.state.working { border: 2.5px solid #E4DAF7; border-top-color: var(--pink); animation: spin 1s linear infinite; }
.state.done { background: var(--violet); position: relative; }
.state.done::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.side-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.plus { width: 34px; height: 34px; border-radius: 10px; background: var(--pink-button); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 500; }
.rings { display: flex; gap: 6px; margin-left: auto; }
.ring { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), #EEE7FA 0); display: grid; place-items: center; }
.ring::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #F7F3FE; }

.term {
  border-radius: 18px; overflow: hidden;
  background: var(--night); border: 1px solid var(--night-border);
  color: var(--night-text); display: flex; flex-direction: column; min-width: 0;
}
.term-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.term-head b { font-size: 15px; }
.term-head span { font-family: var(--mono); font-size: 12px; color: var(--night-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--pink-soft); background: rgba(255, 0, 130, 0.12); border: 1px solid rgba(255, 0, 130, 0.45); }
.term-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; flex: 1; }
.bubble { align-self: flex-end; max-width: 80%; background: #5B3FA0; padding: 9px 14px; border-radius: 14px 14px 4px 14px; }
.reply { display: flex; gap: 10px; color: var(--night-text); }
.reply::before { content: ">"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; background: #fff; color: var(--pink); font: 700 12px/18px var(--mono); text-align: center; }
.tool { border-radius: 12px; background: var(--night-card); border: 1px solid var(--night-line); font-family: var(--mono); font-size: 12.5px; overflow: hidden; }
.tool header { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--night-card-head); color: var(--night-muted); }
.tool header b { color: #fff; font-weight: 600; }
.tool pre { margin: 0; padding: 10px 12px; color: var(--mono-text); white-space: pre-wrap; word-break: break-word; }
.tool pre i { font-style: normal; color: #C8B4FF; }
.tool.live { border-color: rgba(255, 0, 130, 0.45); background: rgba(255, 0, 130, 0.08); }
.tool.live header { background: transparent; color: var(--pink-soft); }
.progress { height: 3px; background: rgba(255, 255, 255, 0.08); }
.progress i { display: block; height: 100%; width: 62%; background: var(--pink); }
.input {
  margin: 4px 18px 18px; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px 11px 14px; border-radius: 12px;
  background: var(--night-card); border: 1px solid #5A4390;
  font-family: var(--mono); font-size: 13.5px;
}
.input .prompt { color: var(--pink); font-weight: 600; }
.input .typed { flex: 1; min-width: 0; color: var(--mono-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.input .typed::after { content: ""; display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -3px; background: var(--pink-soft); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.input .act { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--night-muted); background: rgba(255, 255, 255, 0.06); }
.input .act.stop { color: #fff; background: var(--pink); }
.input .act svg { width: 15px; height: 15px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--title); }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.kicker { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pink-button); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--panel-border);
  box-shadow: 0 4px 14px rgba(59, 35, 112, 0.06);
}
.card h3 { margin: 14px 0 8px; font-size: 19px; color: var(--title); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: 0 4px 14px rgba(59, 35, 112, 0.10); }
.icon svg { width: 22px; height: 22px; }
.card.wide { grid-column: span 2; }
.card.dark { background: var(--night); border-color: var(--night-border); }
.card.dark h3 { color: #fff; }
.card.dark p { color: var(--night-muted); }
.card.dark .icon { background: rgba(255, 0, 130, 0.14); color: var(--pink-soft); box-shadow: none; }

/* ---------- Téléchargement ---------- */
.download-box {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: stretch;
}
.dl-main { padding: 34px; border-radius: 22px; background: var(--night); color: #fff; border: 1px solid var(--night-border); position: relative; overflow: hidden; }
.dl-main::before { content: ""; position: absolute; inset: auto -80px -120px auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(rgba(255, 0, 130, 0.35), transparent 70%); }
.dl-main h3 { margin: 0 0 6px; font-size: 26px; }
.dl-main .meta { margin: 0 0 24px; color: var(--night-muted); font-size: 15px; }
.dl-main .hash { margin-top: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--night-muted); word-break: break-all; position: relative; }
.dl-main .hash b { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--pink-soft); margin-bottom: 4px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 40px; color: var(--muted); font-size: 15.5px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--violet); font-weight: 700; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(59, 35, 112, 0.12); }
.steps li b { color: var(--ink); }
.card h3.first { margin-top: 0; }
.platforms { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-border); font-size: 15px; color: var(--muted); }
.platform b { display: block; margin-bottom: 4px; color: var(--title); font-size: 16px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: 2px; }
.tag.ok { background: #E4F7EA; color: #1E7A3C; }
.tag.soon { background: #EFE8FC; color: var(--violet); }

/* ---------- Pied de page ---------- */
.credits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(91, 52, 184, 0.15); padding-top: 24px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .window { grid-template-columns: 1fr; }
  .side { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .download-box, .credits { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar nav a:not(.button) { display: none; }
  .hero { padding-top: 24px; }
  .features { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  section { padding: 52px 0; }
  .dl-main { padding: 26px; }
  .term-body { padding: 14px; font-size: 13px; }
  .term-head span { display: none; }
  .input { margin: 4px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
