@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --wash: #f3f5f4;
  --ink: #1b2430;
  --soft: #5a6472;
  --line: #e2e6e9;
  --accent: #1d4f3f;
  --accent-ink: #ffffff;
  --leaf: #6aa86a;
  --radius: 10px;
  --wrap: 1080px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181d;
    --wash: #1a1f25;
    --ink: #e9ecef;
    --soft: #9aa3ae;
    --line: #2a3038;
    --accent: #8cc7a6;
    --accent-ink: #10231b;
    --leaf: #8cc7a6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* En-tête */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.site-header nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.site-header nav a { color: var(--soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.site-header nav a:hover { color: var(--ink); background: var(--wash); }
.site-header nav a[aria-current] { color: var(--ink); font-weight: 500; }
.site-header nav .lang { margin-left: 8px; border: 1px solid var(--line); }

/* Accueil */
.hero { padding: 72px 0 64px; }
.hero h1 {
  max-width: 21ch;
  margin: 0 0 24px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { max-width: 52ch; color: var(--soft); font-size: 19px; line-height: 1.55; margin: 0; }

.catalog { padding: 0 0 24px; }
.catalog .wrap::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 40px; }
.catalog h2 { margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.products { list-style: none; margin: 0; padding: 0; }
.product {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 20px;
  align-items: center;
  padding: 24px 0;
}
.product + .product { border-top: 1px solid var(--line); }
.icon {
  grid-row: span 2;
  width: 80px; height: 80px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(27, 36, 48, 0.08), 0 6px 16px -8px rgba(27, 36, 48, 0.35);
}
.product h3 { margin: 0 0 2px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.product p { margin: 0; color: var(--soft); max-width: 56ch; }
.product-actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-weight: 500; text-decoration: none;
}
.btn:hover { filter: brightness(1.12); }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 17px; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: currentColor; }
.soon { color: var(--soft); }

@media (min-width: 760px) {
  .product { grid-template-columns: 88px 1fr auto; gap: 0 28px; padding: 28px 0; }
  .icon { grid-row: auto; width: 88px; height: 88px; }
  .product-actions { grid-column: 3; margin: 0; justify-content: flex-end; max-width: 300px; }
}

/* Pages de document */
.doc { padding-top: 56px; padding-bottom: 80px; }
.doc-head { margin-bottom: 40px; }
.doc-head h1, .narrow h1 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.meta { color: var(--soft); font-size: 14px; margin: 16px 0 0; }
.toc { display: none; }
.doc-body { max-width: 66ch; }
.doc-body > p:first-child { margin-top: 0; }
.doc-section { padding-top: 32px; }
.doc-section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.mini-icon { width: 32px; height: 32px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(27, 36, 48, 0.08); }

@media (min-width: 960px) {
  .doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 72px; }
  .doc-head { grid-column: 2; }
  .toc { display: block; grid-column: 1; grid-row: 1 / span 2; }
  .toc > * { position: sticky; }
  .toc p { top: 24px; margin: 8px 0 12px; font-size: 13px; color: var(--soft); }
  .toc ol { top: 56px; list-style: none; margin: 0; padding: 0 0 0 0; border-left: 1px solid var(--line); font-size: 15px; }
  .toc li a { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--soft); text-decoration: none; }
  .toc li a:hover { color: var(--ink); border-left-color: var(--ink); }
  .toc img { width: 20px; height: 20px; border-radius: 22.5%; }
  .doc-body { grid-column: 2; }
}

/* Support */
.narrow { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.contact { background: var(--wash); border-radius: 16px; padding: 32px; margin-bottom: 56px; }
.contact-mail { margin: 14px 0 0; font-weight: 500; }
.contact .meta { margin-top: 4px; }
.faq h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--soft); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: -4px 0 20px; color: var(--soft); max-width: 62ch; }

/* Pied de page */
.site-footer { background: var(--wash); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 56px; font-size: 14px; color: var(--soft); }
.foot-id p { margin: 14px 0 0; line-height: 1.7; }
.foot-id a:not(.brand) { color: var(--soft); }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; min-height: 0; }
  .site-header nav { width: calc(100% + 14px); margin-left: -7px; gap: 0; font-size: 14px; }
  .site-header nav a { padding: 8px 7px; }
  .site-header nav .lang { margin-left: auto; padding: 6px 10px; }
  .product { grid-template-columns: 64px 1fr; gap: 0 16px; align-items: start; }
  .icon { width: 64px; height: 64px; grid-row: span 2; margin-top: 4px; }
  .hero { padding: 40px 0 44px; }
  .lead { font-size: 17px; }
  .contact { padding: 24px; }
}

@media (prefers-color-scheme: dark) {
  .icon, .mini-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
}
