/* ==========================================================================
   VRoid MCP Bridge — feuille de style
   Palette : ivoire chaud, or, rouge des nœuds. Aucune dépendance externe.
   ========================================================================== */

:root {
  --bg: #f7f3ea;
  --bg-2: #f0e8d8;
  --surface: #fffdf8;
  --surface-2: #fbf6ec;
  --ink: #1c1a16;
  --muted: #6f685b;
  --faint: #948b79;
  --line: #e4dac8;
  --line-strong: #d3c4a8;
  --gold: #a87d10;
  --gold-2: #e0b32e;
  --gold-soft: #f6e9c4;
  --red: #a62b36;
  --red-2: #b02a37;
  --green: #2f7d5b;
  --shadow-sm: 0 2px 6px rgba(55, 42, 15, .05);
  --shadow: 0 24px 60px -32px rgba(55, 42, 15, .35);
  --shadow-lg: 0 40px 90px -40px rgba(55, 42, 15, .45);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --header-h: 72px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #12110f;
  --bg-2: #191714;
  --surface: #1e1c18;
  --surface-2: #171512;
  --ink: #f4efe4;
  --muted: #b4ab9a;
  --faint: #8c8372;
  --line: #302b23;
  --line-strong: #423a2e;
  --gold: #eec45c;
  --gold-2: #f2cf6a;
  --gold-soft: #372d15;
  --red: #e06a74;
  --red-2: #c94a56;
  --green: #6fcaa0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, .9);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(224, 179, 46, .13), transparent 60%),
    radial-gradient(900px 500px at -10% 22%, rgba(166, 43, 54, .055), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(224, 179, 46, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 22%, rgba(166, 43, 54, .05), transparent 55%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--gold-2); color: #1c1a16; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code, kbd, pre { font-family: var(--mono); }

code {
  font-size: .88em;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding: .12em .38em;
  border-radius: 6px;
  white-space: nowrap;
}

kbd {
  font-size: .78em;
  padding: .18em .45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  white-space: nowrap;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: .7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Progression & header ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--red-2));
  transition: width .1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(30, 22, 8, .5);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  color: #16130f;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(30, 22, 8, .18));
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand-text b { color: var(--gold); font-weight: 800; }
.brand-text small {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 550;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: .32em .5em;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.menu-toggle { display: none; }
.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .93rem;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 14px 30px -18px rgba(30, 22, 8, .7);
}
.btn-primary:hover { background: var(--gold-2); color: #1c1a16; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--surface); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface); }

.btn-small { padding: .6rem .9rem; font-size: .84rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 32px;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(224, 179, 46, .26), rgba(224, 179, 46, 0) 66%);
  filter: blur(10px);
  pointer-events: none;
}
html[data-theme="dark"] .hero-glow { background: radial-gradient(circle at 50% 50%, rgba(224, 179, 46, .14), transparent 66%); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-2) 14%, transparent);
}
.eyebrow-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .18em .6em;
  letter-spacing: .04em;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin-bottom: 26px;
}
.hero h1 .hl {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 60%, var(--gold-soft) 60%, var(--gold-soft) 92%, transparent 92%);
  padding: 0 .05em;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}
.hero .lede { max-width: 53ch; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--faint);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}

.hero-visual {
  position: relative;
  margin: 0;
  max-width: 455px;
  justify-self: end;
  width: 100%;
}

.hero-card {
  position: relative;
  background: #fffdf8;
  border: 1px solid rgba(60, 45, 15, .12);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(.6deg);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(168, 125, 16, .16);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.hero-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 12px);
  background: #fff;
}
.hero-tag {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 26px;
  background: var(--gold-2);
  color: #1c1a16;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45em .8em;
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(30, 22, 8, .6);
}

.hero-visual figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: .78rem;
  color: var(--faint);
  line-height: 1.5;
}

.hero-chips {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  white-space: nowrap;
}
.hero-chips span {
  background: rgba(255, 253, 248, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #1c1a16;
  border: 1px solid rgba(60, 45, 15, .12);
  border-radius: 999px;
  padding: .35em .75em;
  font-size: .68rem;
  font-weight: 700;
  box-shadow: 0 6px 18px -10px rgba(30, 22, 8, .5);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.stats dd {
  margin: 2px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.stats dd::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-top: 10px;
  background: var(--gold-2);
  border-radius: 2px;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .section-alt { background: var(--bg-2); }

.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.04;
  margin-bottom: 18px;
}
.section-head .lede { max-width: 68ch; }

h3 { font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.25; }

/* ---------- Architecture ---------- */

.arch-wrap {
  overflow-x: auto;
  padding: 6px 2px 14px;
  margin-bottom: 42px;
  scrollbar-width: thin;
}
.arch {
  display: flex;
  align-items: stretch;
  min-width: 880px;
}
.arch-node {
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.arch-node strong { font-size: .98rem; letter-spacing: -.01em; }
.arch-node > span:not(.arch-icon) { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.arch-node code { align-self: flex-start; margin-top: 6px; font-size: .7rem; }
.arch-node-accent {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: linear-gradient(180deg, var(--gold-soft), var(--surface) 70%);
}
.arch-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--ink);
  margin-bottom: 6px;
}
.arch-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arch-arrow {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}
.arch-arrow span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.two-col h3 { margin-bottom: 12px; }
.two-col p { color: var(--muted); font-size: .96rem; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Code ---------- */

.code-block {
  background: #17140f;
  border: 1px solid #2c261d;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #2c261d;
  font-family: var(--mono);
  font-size: .72rem;
  color: #bdb19a;
}
.copy-btn {
  background: transparent;
  border: 1px solid #3a3226;
  color: #d8cdb8;
  border-radius: 7px;
  padding: .2em .6em;
  font-size: .7rem;
  transition: background .15s ease, color .15s ease;
}
.copy-btn:hover { background: #2a241b; color: #fff; }
.copy-btn.is-copied { background: var(--gold-2); color: #1c1a16; border-color: var(--gold-2); }
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.65;
  color: #f1e8d7;
  tab-size: 2;
}
.code-block code {
  background: none;
  border: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: inherit;
}
.c-path { color: var(--gold-2); }

/* ---------- Brief / comparaison ---------- */

.brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 26px);
  margin-bottom: 52px;
  align-items: stretch;
}
.brief-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 3.2vw, 42px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brief-card blockquote {
  margin: 16px 0 16px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.03em;
  max-width: 22ch;
}
.brief-note { color: var(--muted); font-size: .92rem; }
.brief-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 0;
}
.brief-facts li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brief-facts strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brief-facts span {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.brief-link {
  margin-top: auto;
  color: var(--gold);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}
.brief-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.brief-result {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.brief-result .compare-media { flex: 1; min-height: 520px; }
.brief-result .compare-media img { max-height: 520px; }

/* ---------- Comparaison (conservé) ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 26px);
  margin-bottom: 52px;
}
.compare-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.compare-label {
  display: inline-block;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35em .7em;
  margin: 0 0 12px 4px;
}
.compare-label-accent { color: #1c1a16; background: var(--gold-2); border-color: var(--gold-2); }
.compare-media {
  background: #fff;
  border-radius: 16px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(60, 45, 15, .07);
}
.compare-media img { max-height: 520px; width: auto; object-fit: contain; }
.compare-item figcaption {
  margin: 12px 4px 2px;
  font-size: .8rem;
  color: var(--faint);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  counter-reset: step;
}
.timeline li {
  display: flex;
  gap: 18px;
  padding: 22px 0 22px;
  border-top: 1px solid var(--line);
}
.timeline .step {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-top: 3px;
}
.timeline h3 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.gallery-wide { grid-column: span 12; aspect-ratio: 16 / 6.6; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.gallery-item.is-doc img { object-fit: contain; padding: 10px; }
.gallery-item.gallery-sheet img { object-fit: cover; object-position: top; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(14, 11, 7, .82));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gallery-cap strong { font-size: .9rem; }
.gallery-cap small { font-size: .74rem; color: rgba(255, 255, 255, .75); line-height: 1.4; }
.gallery-wide .gallery-cap { padding: 60px 24px 20px; }
.gallery-wide .gallery-cap strong { font-size: 1.05rem; }

.inline-link {
  margin: -26px 0 34px;
  font-size: .85rem;
}
.inline-link a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.inline-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

.credit-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: -22px 0 30px;
  font-size: .8rem;
  color: var(--faint);
}
.credit-line strong { color: var(--ink); }
.credit-line::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-2);
  flex: none;
}

/* ---------- Caveat ---------- */

.caveat {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-left: 4px solid var(--gold-2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold-soft) 45%, var(--surface));
}
.caveat-icon {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-2);
  color: #1c1a16;
  font-weight: 900;
  font-family: var(--mono);
}
.caveat h3 { font-size: 1rem; margin-bottom: 8px; }
.caveat ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.caveat li + li { margin-top: 6px; }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--ink);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.04rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Outils ---------- */

.tools-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.search {
  flex: 1 1 auto;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: 0;
  font-size: .9rem;
}
.search input::placeholder { color: var(--faint); }
.tools-count { font-size: .8rem; color: var(--faint); font-family: var(--mono); white-space: nowrap; }

.tools { display: grid; gap: 10px; }
.tool-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.tool-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .94rem;
}
.tool-group > summary::-webkit-details-marker { display: none; }
.tool-group > summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform .2s ease;
}
.tool-group[open] > summary::after { transform: rotate(45deg); }
.tool-group[open] > summary { border-bottom: 1px solid var(--line); }
.tool-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .12em .55em;
}
.table-wrap { overflow-x: auto; }
.tool-group table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tool-group th {
  text-align: left;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 10px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tool-group td { padding: 11px 20px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
.tool-group tr:last-child td { border-bottom: 0; }
.tool-group tbody tr:hover { background: color-mix(in srgb, var(--gold-soft) 22%, transparent); }
.tool-group td:first-child { white-space: nowrap; }
.tool-group td code { font-size: .78rem; }
.tool-group tr.is-hidden { display: none; }

.tools-note {
  margin-top: 22px;
  font-size: .84rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
}
.tools-note a { color: var(--gold); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Installation ---------- */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.install-steps li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.install-steps .step, .step {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
}
.install-steps h3 { font-size: 1.03rem; margin-bottom: 5px; }
.install-steps p { color: var(--muted); font-size: .92rem; margin: 0; }

.req-card {
  background: #17140f;
  color: #f2ebde;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.req-card h3 { color: #fff; margin-bottom: 14px; }
.req-card .check-list li { color: #c9c0af; }
.req-card .check-list li::before { background: rgba(224, 179, 46, .18); border-color: rgba(224, 179, 46, .4); }
.req-card .check-list li::after { border-color: var(--gold-2); }
.req-note { color: #9f9684; font-size: .8rem; margin: 18px 0; line-height: 1.55; }
.req-card .btn-primary { background: var(--gold-2); color: #1c1a16; box-shadow: none; }
.req-card .btn-primary:hover { background: #fff; }

.install-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}
.info-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}
.info-block summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.info-block summary::-webkit-details-marker { display: none; }
.info-block summary::after { content: "+"; font-family: var(--mono); color: var(--gold); }
.info-block[open] summary::after { content: "−"; }
.info-block[open] { padding-bottom: 18px; }
.info-block p, .info-block ul { font-size: .88rem; color: var(--muted); }
.info-block ul { padding-left: 18px; }

/* ---------- Coulisses ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.mini-card code { white-space: normal; overflow-wrap: anywhere; }
.mini-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .1em;
}
.mini-card h3 { font-size: 1.02rem; margin: 8px 0 6px; }
.mini-card p { color: var(--muted); font-size: .89rem; margin: 0; }

.version-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.version-table h3 { font-size: 1rem; margin-bottom: 14px; }
.version-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.version-table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 8px 12px 8px 0;
  white-space: nowrap;
}
.version-table td { padding: 8px 24px 8px 0; color: var(--muted); }

.limitations {
  border-left: 3px solid var(--red-2);
  padding: 4px 0 4px 22px;
  max-width: 850px;
}
.limitations h3 { font-size: 1rem; margin-bottom: 8px; }
.limitations p { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 900px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--gold);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: .93rem; padding: 0 40px 22px 0; margin: 0; }

/* ---------- CTA ---------- */

.cta-band {
  background: #16130f;
  color: #f5efe4;
  padding: clamp(44px, 6vw, 64px) 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; margin-bottom: 6px; }
.cta-band p { color: #b7ad9b; margin: 0; }
.cta-band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--gold-2); color: #1c1a16; }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-secondary { border-color: #4a4133; color: #f5efe4; }
.cta-band .btn-secondary:hover { border-color: #f5efe4; background: #221e18; }

/* ---------- Footer ---------- */

.site-footer {
  background: #12100d;
  color: #b9b0a0;
  padding: 60px 0 24px;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-text b { color: var(--gold-2); }
.site-footer .brand-text small { color: #8d8474; }
.footer-brand p { margin-top: 14px; font-size: .84rem; color: #8d8474; line-height: 1.6; }
.footer-col h3 {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: #b9b0a0;
  text-decoration: none;
  padding: 4px 0;
  font-size: .85rem;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-col p { font-size: .82rem; color: #8d8474; }
.footer-status { display: flex; align-items: center; gap: 8px; color: #d8cfbd !important; }
.footer-status .status-dot { background: #6fcaa0; box-shadow: 0 0 0 3px rgba(111, 202, 160, .15); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #2a251e;
  padding-top: 18px;
  font-size: .74rem;
  color: #7d7567;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #a89e8c; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-2); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 8, 6, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.lightbox figcaption { color: #e9e0cf; font-size: .85rem; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Révélation ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { justify-self: center; max-width: 390px; }
  .hero { padding-top: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .install-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 12px;
    right: 12px;
    z-index: 75;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
  .nav a:hover { background: var(--surface-2); }
  .nav a::after { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header.is-scrolled {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header-github span { display: none; }
  .header-github { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .arch { flex-direction: column; min-width: 0; }
  .arch-arrow { transform: rotate(90deg); padding: 4px 0; }
  .arch-node { min-width: 0; }
  .arch-wrap { overflow: visible; }
  .timeline { grid-template-columns: 1fr; }
  .brief { grid-template-columns: 1fr; }
  .brief-result .compare-media { min-height: 420px; }
  .brief-result .compare-media img { max-height: 420px; }
  .compare { grid-template-columns: 1fr; }
  .compare-media { min-height: 420px; }
  .compare-media img { max-height: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(3), .stats > div:nth-child(4) { border-top: 1px solid var(--line); }
  .gallery-item { grid-column: span 6; }
  .gallery-wide { grid-column: span 12; aspect-ratio: 16 / 10; }
  .install-grid { grid-template-columns: 1fr; }
  .req-card { position: static; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 12px; }
  .header-actions { gap: 6px; }
  .header-github { display: none; }
  .lang-switch a { min-width: 27px; padding: .3em .42em; }
  .brand-text small { display: none; }
  .brand-text { font-size: .95rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.1rem); }
  .hero-cta .btn { width: 100%; }
  .hero-chips { bottom: 30px; }
  .hero-chips span:nth-child(3) { display: none; }
  .stats > div { padding: 16px; }
  .stats dd { font-size: 1.7rem; }
  .features { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .gallery-item { grid-column: span 12; aspect-ratio: 4 / 3; }
  .gallery-wide { aspect-ratio: 4 / 3; }
  .compare-media { min-height: 360px; }
  .compare-media img { max-height: 360px; }
  .timeline li { gap: 12px; }
  .tools-toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .tools-count { text-align: right; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .caveat { flex-direction: column; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; }
}

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

/* ---------- Consentement RGPD ---------- */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--surface);
  border-top: 3px solid var(--gold-2);
  box-shadow: 0 -24px 60px -34px rgba(30, 22, 8, .55);
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.consent-text { max-width: 70ch; }
.consent-text h2 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.consent-text p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}
.consent-text .consent-state {
  margin-top: 6px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.consent-btn {
  min-width: 116px;
  justify-content: center;
}
.consent-more {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.consent-more:hover { color: var(--gold-2); }
body.consent-open { padding-bottom: 190px; }

.footer-link-button {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #b9b0a0;
  font: inherit;
  font-size: .85rem;
  line-height: inherit;
  text-align: left;
}
.footer-link-button:hover { color: var(--gold-2); }

/* ---------- Pages légales ---------- */

.legal { padding-top: clamp(48px, 6vw, 72px); }
.legal-wrap { max-width: 820px; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 14px 0 18px;
}
.legal h2 {
  font-size: 1.22rem;
  margin: 38px 0 12px;
}
.legal h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}
.legal p, .legal li {
  color: var(--muted);
  font-size: .95rem;
}
.legal strong { color: var(--ink); }
.legal ul, .legal ol {
  margin: 0 0 1em;
  padding-left: 22px;
}
.legal li { margin-bottom: .45em; }
.legal a { color: var(--gold); font-weight: 600; }
.legal a:hover { color: var(--gold-2); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: .88rem;
}
.legal th, .legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th { color: var(--ink); font-weight: 700; }
.legal td { color: var(--muted); }
.legal code { white-space: nowrap; }
.legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .84rem;
  font-weight: 600;
}
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--gold); }
.legal .eyebrow { margin-bottom: 6px; }
.legal-footer { border-top: 0; }
.legal-footer .footer-link-button { display: inline; width: auto; font-size: inherit; }

@media (max-width: 760px) {
  .consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 130px; }
  .consent-more { width: 100%; }
  body.consent-open { padding-bottom: 280px; }
}
