/* ============================================================================
   PackEngin — feuille de style unique.
   Aucune dépendance externe : polices système, SVG inline, zéro CDN.
   ========================================================================== */

:root {
  --paper: #faf7f2;
  --paper-2: #f3ede5;
  --paper-3: #efe6da;
  --card: #ffffff;
  --ink: #0f1e32;
  --ink-2: #1b2c44;
  --ink-soft: #5c6b7f;
  --ink-faint: #8a97a8;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #eef4ff;
  --kraft: #e8c49a;
  --kraft-soft: #f7ecdd;
  --line: #e9e2d7;
  --line-strong: #d9cfc0;
  --success: #16845b;
  --danger: #b42318;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgb(15 30 50 / 0.05);
  --shadow: 0 1px 2px rgb(15 30 50 / 0.04), 0 12px 32px -12px rgb(15 30 50 / 0.14);
  --shadow-lg: 0 2px 4px rgb(15 30 50 / 0.04), 0 32px 64px -24px rgb(15 30 50 / 0.28);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --sans: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* L'attribut hidden doit toujours gagner contre un display déclaré. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--kraft); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 880px; }

/* ───────────────────────────── En-tête ───────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(250 247 242 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(250 247 242 / 0.94);
  box-shadow: 0 6px 24px -18px rgb(15 30 50 / 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
  flex: none;
}
.brand-mark { width: 26px; height: 26px; color: var(--ink); transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) translateY(-1px); }
.brand-name { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.915rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgb(15 30 50 / 0.045); }

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ───────────────────────────── Boutons ───────────────────────────── */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--blue);
  box-shadow: 0 1px 2px rgb(15 30 50 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.btn-primary:hover { --btn-bg: var(--blue-deep); box-shadow: 0 8px 22px -8px rgb(37 99 235 / 0.65); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { --btn-bg: rgb(255 255 255 / 0.7); border-color: var(--ink-faint); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { --btn-bg: var(--paper-2); border-color: var(--ink-faint); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ───────────────────────────── Hero ───────────────────────────── */

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0 0;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 78% 8%, rgb(37 99 235 / 0.09), transparent 70%),
    radial-gradient(620px 380px at 12% 0%, rgb(232 196 154 / 0.22), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -72px 0 auto;
  height: 760px;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgb(15 30 50 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 30 50 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-intro {
  max-width: 1060px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.hero-grid > * { min-width: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.14);
}
.eyebrow-light { color: rgb(255 255 255 / 0.62); }
.eyebrow-light .eyebrow-dot { background: var(--kraft); box-shadow: 0 0 0 3px rgb(232 196 154 / 0.18); }

.hero h1 {
  font-size: clamp(2.45rem, 5.5vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.042em;
  text-wrap: initial;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--blue);
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.07em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--kraft), rgb(232 196 154 / 0.25));
  z-index: -1;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.66;
  color: var(--ink-soft);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--ink-faint);
}
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ── Visuel : développé ── */

.hero-visual { margin: 0 0 22px; }

.visual-card {
  position: relative;
  background: linear-gradient(180deg, #fff, #fdfbf8);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 16px 16px 8px;
  overflow: visible;
}
.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
  pointer-events: none;
}

.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 12px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-chip svg { width: 13px; height: 13px; flex: none; }
.toolbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgb(22 132 91 / 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(22 132 91 / 0.4); }
  70% { box-shadow: 0 0 0 7px rgb(22 132 91 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(22 132 91 / 0); }
}

.dieline { width: 100%; height: auto; max-height: 500px; }
.dieline .grid-lines path { stroke: rgb(15 30 50 / 0.055); stroke-width: 1; }
.dieline .cut {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dieline .creases path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
  opacity: 1;
}
.dieline .accents circle { fill: var(--blue); opacity: 1; }
.dieline .dim path { stroke: var(--ink-faint); stroke-width: 0.8; fill: none; }
.dieline .dim text {
  fill: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 1;
}

.result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 4px;
  padding: 12px 6px 4px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.result-ref { color: var(--ink); letter-spacing: 0.01em; }
.result-qty { color: var(--ink-faint); }
.result-total {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.result-total span { font-family: var(--mono); font-size: 0.6rem; font-weight: 400; color: var(--ink-faint); margin-left: 2px; }
.result-badge {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  background: rgb(22 132 91 / 0.09);
  border: 1px solid rgb(22 132 91 / 0.18);
  padding: 3px 7px;
  border-radius: 999px;
}

.hero-visual figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ── Bandeau de preuves ── */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip li {
  padding: 20px 24px;
  display: grid;
  gap: 3px;
  border-left: 1px solid var(--line);
}
.proof-strip li:first-child { border-left: 0; padding-left: 0; }
.proof-strip strong { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.015em; }
.proof-strip span { font-size: 0.78rem; color: var(--ink-faint); }

/* ───────────────────────────── Sections ───────────────────────────── */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tinted { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 12%, var(--paper-2) 88%, var(--paper) 100%); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  letter-spacing: -0.032em;
  line-height: 1.06;
}
.section-lede {
  margin-top: 18px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 44em;
}
.section-head-wide {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
}
.section-head-wide .section-lede { margin-top: 0; padding-bottom: 4px; }

/* ── Comparaison ── */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--card);
}
.compare-before { background: rgb(255 255 255 / 0.55); }
.compare-after {
  border-color: rgb(37 99 235 / 0.22);
  background: linear-gradient(180deg, #fff, var(--blue-soft));
  box-shadow: 0 20px 48px -30px rgb(37 99 235 / 0.5);
}
.compare-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.compare-after .compare-tag { border-color: rgb(37 99 235 / 0.3); color: var(--blue-deep); background: rgb(37 99 235 / 0.06); }
.compare-col h3 { font-size: 1.2rem; margin-bottom: 18px; }
.compare-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.compare-col li {
  position: relative;
  padding-left: 26px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.compare-before li::before { background: linear-gradient(135deg, transparent 45%, var(--line-strong) 45%, var(--line-strong) 55%, transparent 55%); }
.compare-after li::before {
  border-color: rgb(37 99 235 / 0.35);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--blue-soft);
}

/* ── Piliers ── */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.pillar {
  position: relative;
  padding: clamp(24px, 2.8vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pillar-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.16rem; line-height: 1.22; margin-bottom: 12px; }
.pillar p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.62; }
.pillar-list { margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.pillar-list li { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.pillar-list li::before { content: ""; width: 10px; height: 1.5px; background: var(--kraft); margin-top: 0.62em; flex: none; }

/* ── Étapes ── */

.steps {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.steps-tabs { display: grid; gap: 4px; }
.step-tab {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas: "index label" "index desc";
  gap: 0 12px;
  padding: 14px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.step-tab:hover { background: rgb(255 255 255 / 0.7); }
.step-tab.is-active {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.step-index {
  grid-area: index;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.step-tab.is-active .step-index { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-label { grid-area: label; font-size: 0.95rem; font-weight: 550; letter-spacing: -0.01em; }
.step-desc { grid-area: desc; font-size: 0.79rem; color: var(--ink-faint); }

.steps-panels { min-width: 0; }
.step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  animation: panelIn 0.45s var(--ease);
}
.step-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step-text h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 12px; }
.step-text p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.64; }
.step-note {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--kraft);
  font-size: 0.84rem !important;
  color: var(--ink-faint) !important;
}

/* ── Maquettes d'interface ── */

.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
  font-size: 0.82rem;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-title { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.02em; }

.dropzone {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 26px 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  text-align: center;
}
.dropzone svg { width: 22px; height: 22px; color: var(--ink-faint); margin-bottom: 4px; }
.dropzone-title { font-size: 0.86rem; font-weight: 550; }
.dropzone-sub { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-faint); }

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.file-icon {
  width: 30px; height: 34px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  border: 1px solid rgb(37 99 235 / 0.2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--blue-deep);
  flex: none;
}
.file-meta { display: grid; gap: 1px; min-width: 0; }
.file-meta strong { font-size: 0.76rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta span { font-size: 0.65rem; color: var(--ink-faint); }
.file-ok {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  background: rgb(22 132 91 / 0.09);
  padding: 3px 6px;
  border-radius: 4px;
  flex: none;
}

.mock-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 12px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.mock-kv div { background: var(--card); padding: 8px 10px; }
.mock-kv dt { font-size: 0.62rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-kv dd { margin: 1px 0 0; font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.mock-kv-tight div { padding: 6px 10px; }

.mock-block { margin-bottom: 14px; }
.mock-block:last-child { margin-bottom: 0; }
.mock-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.choice.is-selected { border-color: rgb(37 99 235 / 0.45); background: var(--blue-soft); color: var(--ink); }
.radio { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.choice.is-selected .radio { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 45%, transparent 47%); }
.choice div { display: grid; gap: 1px; }
.choice strong { font-size: 0.78rem; font-weight: 550; }
.choice span { font-size: 0.66rem; color: var(--ink-faint); }

.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  background: var(--paper);
}
.chip.is-on { border-color: rgb(37 99 235 / 0.35); background: var(--blue-soft); color: var(--blue-deep); }

.qty-row { display: flex; gap: 4px; }
.qty-row span {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.qty-row .is-main { border-color: var(--ink); background: var(--ink); color: #fff; }

.ladder { display: grid; gap: 7px; margin-bottom: 14px; }
.ladder-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-areas: "qty bar price";
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
}
.ladder-row.is-best { background: var(--blue-soft); border-color: rgb(37 99 235 / 0.22); }
.ladder-qty { grid-area: qty; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); }
.ladder-bar {
  grid-area: bar;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), rgb(37 99 235 / 0.35));
  width: var(--w);
  max-width: 100%;
}
.ladder-row:not(.is-best) .ladder-bar { background: linear-gradient(90deg, var(--line-strong), rgb(217 207 192 / 0.3)); }
.ladder-price { grid-area: price; font-size: 0.76rem; font-variant-numeric: tabular-nums; font-weight: 550; }
.ladder-badge {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  background: rgb(37 99 235 / 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}
.mock-foot { font-size: 0.68rem; color: var(--ink-faint); line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

.doc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: linear-gradient(180deg, #fff, #fdfbf8); }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc-head div { display: grid; gap: 1px; }
.doc-head strong { font-size: 0.78rem; }
.doc-head span { font-size: 0.66rem; color: var(--ink-faint); }
.doc-status {
  font-size: 0.58rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line-strong);
  padding: 2px 6px;
  border-radius: 3px;
  flex: none;
}
.doc-table { width: 100%; border-collapse: collapse; margin: 4px 0; }
.doc-table td { padding: 7px 0; font-size: 0.7rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.doc-table td:nth-child(2) { text-align: center; color: var(--ink-faint); }
.doc-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; color: var(--ink); }
.doc-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; }
.doc-total span { font-size: 0.68rem; color: var(--ink-soft); }
.doc-total strong { font-size: 1rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.doc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.58rem; color: var(--ink-faint); }

/* ── Anatomie du prix ── */

.section-ink {
  position: relative;
  background: var(--ink);
  color: #f4f0e9;
  isolation: isolate;
  overflow: hidden;
}
.section-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 0%, rgb(37 99 235 / 0.22), transparent 65%),
    radial-gradient(700px 400px at 5% 100%, rgb(232 196 154 / 0.1), transparent 70%),
    linear-gradient(to right, rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}
.section-ink h2 { color: #fff; }
.section-ink .section-lede { color: rgb(244 240 233 / 0.66); }

.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: 8px;
}
.anatomy-visual { min-width: 0; }
.price-bar {
  display: flex;
  gap: 3px;
  height: 74px;
  margin-bottom: 10px;
}
.seg {
  flex: var(--share) 1 0;
  position: relative;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease), filter 0.25s;
  opacity: 1;
}
.seg span {
  position: absolute;
  left: 9px;
  bottom: 8px;
  font-size: 0.66rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: rgb(255 255 255 / 0.92);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: calc(100% - 14px);
}
.seg:hover { filter: brightness(1.12); }
.seg-1 { background: linear-gradient(180deg, #21395a, #16283f); }
.seg-2 { background: linear-gradient(180deg, #1e4ea8, #17408c); }
.seg-3 { background: linear-gradient(180deg, #2f6ce0, #2563eb); }
.seg-4 { background: linear-gradient(180deg, #6b9be8, #5b8bdd); }
.seg-5 { background: linear-gradient(180deg, #e8c49a, #d8ad7c); }
.seg-5 span { color: rgb(15 30 50 / 0.82); }
.price-bar.has-selection .seg { opacity: 0.42; }
.price-bar.has-selection .seg[aria-pressed="true"] { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.7); }
.price-legend { display: none; margin: 16px 0 0; padding: 0; list-style: none; gap: 9px 18px; grid-template-columns: 1fr 1fr; }
.price-legend li { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgb(244 240 233 / 0.75); }
.price-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.price-legend li:nth-child(1) i { background: #21395a; }
.price-legend li:nth-child(2) i { background: #1e4ea8; }
.price-legend li:nth-child(3) i { background: #2f6ce0; }
.price-legend li:nth-child(4) i { background: #6b9be8; }
.price-legend li:nth-child(5) i { background: #e8c49a; }
.price-legend b { margin-left: auto; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }

.anatomy-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(244 240 233 / 0.4);
}
.anatomy-note { margin-top: 22px; font-size: 0.78rem; color: rgb(244 240 233 / 0.45); line-height: 1.6; max-width: 34em; }

.anatomy-detail {
  background: rgb(255 255 255 / 0.045);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(4px);
  min-height: 320px;
}
.detail-item { animation: panelIn 0.4s var(--ease); }
.detail-item[hidden] { display: none; }
.detail-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: 12px;
}
.detail-item h3 { font-size: clamp(1.18rem, 1.8vw, 1.4rem); color: #fff; margin-bottom: 12px; line-height: 1.22; }
.detail-item p { font-size: 0.92rem; line-height: 1.66; color: rgb(244 240 233 / 0.7); }
.detail-meta { display: grid; gap: 10px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.detail-meta div { display: grid; grid-template-columns: 124px 1fr; gap: 12px; }
.detail-meta dt { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(244 240 233 / 0.4); padding-top: 2px; }
.detail-meta dd { margin: 0; font-size: 0.84rem; color: rgb(244 240 233 / 0.86); }

/* ── Spécifications ── */

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec { background: var(--card); padding: clamp(22px, 2.6vw, 30px); }
.spec h3 { font-size: 1rem; margin-bottom: 8px; }
.spec p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; }

/* ── Personas ── */

.personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.persona {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 32px);
}
.persona h3 { font-size: 1.1rem; margin-bottom: 10px; }
.persona p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.62; }
.persona ul { margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.persona li { font-size: 0.8rem; color: var(--ink-faint); display: flex; gap: 8px; }
.persona li::before { content: "—"; color: var(--kraft); }

/* ── Offres ── */

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); align-items: stretch; }
.offer {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 32px);
  box-shadow: var(--shadow-sm);
}
.offer-featured {
  border-color: rgb(37 99 235 / 0.3);
  box-shadow: 0 24px 60px -32px rgb(37 99 235 / 0.55);
  background: linear-gradient(180deg, #fff 55%, var(--blue-soft));
}
.offer-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgb(37 99 235 / 0.08);
  border: 1px solid rgb(37 99 235 / 0.2);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.offer-head h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.offer-sub { margin-top: 5px; font-size: 0.84rem; color: var(--ink-soft); }
.offer-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 20px 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.offer-price span { font-size: 0.74rem; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.offer-list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; }
.offer-list li { position: relative; padding-left: 20px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
.offer-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--blue);
  border-bottom: 1.6px solid var(--blue);
  transform: rotate(-45deg);
}
.offer .btn { margin-top: auto; }

/* ── FAQ ── */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.012em;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-deep); }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ink-faint);
  flex: none;
  transition: transform 0.28s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.faq-item p { padding: 0 52px 22px 4px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.68; max-width: 62ch; }

/* ── Accès / formulaire ── */

.section-access { background: linear-gradient(180deg, var(--paper) 0%, #f6f0e7 100%); }
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.access-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.032em; }
.access-copy .section-lede { margin-top: 18px; }

.next-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 2px; }
.next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.next-steps li > span {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  margin-top: 1px;
}
.next-steps strong { display: block; font-size: 0.92rem; font-weight: 550; }
.next-steps p { font-size: 0.82rem; color: var(--ink-faint); margin-top: 1px; }
.access-note { margin-top: 24px; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.6; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
}
.form-head h3 { font-size: 1.24rem; letter-spacing: -0.02em; }
.form-head p { margin-top: 5px; font-size: 0.78rem; color: var(--ink-faint); }

.access-form { margin-top: 22px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.8rem; font-weight: 550; color: var(--ink-2); }
.field label > span[aria-hidden] { color: var(--blue); }
.label-optional { font-weight: 400; color: var(--ink-faint); font-size: 0.74rem; margin-left: 4px; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  padding-right: 34px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 86px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #a9b3c1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c4b8a6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgb(37 99 235 / 0.13);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3.5px rgb(180 35 24 / 0.1);
}
.field-hint { font-size: 0.7rem; color: var(--ink-faint); text-align: right; }
.field-error { font-size: 0.76rem; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.field-consent { margin-top: 2px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; font-weight: 400; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.access-form .btn[type="submit"] { margin-top: 4px; position: relative; }
.access-form .btn[type="submit"] .spinner { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.access-form.is-busy .btn[type="submit"] .spinner { display: inline-block; }
.access-form.is-busy .btn[type="submit"] { pointer-events: none; opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-fine { font-size: 0.7rem; color: var(--ink-faint); line-height: 1.55; text-align: center; }
.form-alert {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgb(180 35 24 / 0.07);
  border: 1px solid rgb(180 35 24 / 0.2);
  color: var(--danger);
  font-size: 0.82rem;
}

.form-success { display: grid; gap: 10px; justify-items: start; padding: 8px 0; animation: panelIn 0.4s var(--ease); }
.form-success:focus { outline: none; }
.form-success[hidden] { display: none; }
.success-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(22 132 91 / 0.1);
  color: var(--success);
  border: 1px solid rgb(22 132 91 / 0.22);
  margin-bottom: 6px;
}
.success-icon svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.form-success p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.form-success strong[data-ref] { font-family: var(--mono); font-size: 0.92rem; color: var(--ink); background: var(--paper-2); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); }
.success-sub { font-size: 0.82rem !important; color: var(--ink-faint) !important; }
.form-success .btn { margin-top: 8px; }

/* ───────────────────────────── Pied de page ───────────────────────────── */

.site-footer { background: var(--ink); color: rgb(244 240 233 / 0.72); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(24px, 4vw, 48px);
}
.brand-footer { color: #fff; font-size: 1.05rem; }
.brand-footer .brand-mark { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 0.86rem; max-width: 30ch; line-height: 1.6; }
.footer-small { font-size: 0.72rem !important; color: rgb(244 240 233 / 0.4) !important; margin-top: 12px !important; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgb(244 240 233 / 0.42); margin-bottom: 4px; }
.footer-col a { font-size: 0.86rem; color: rgb(244 240 233 / 0.75); text-decoration: none; width: fit-content; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.84rem; line-height: 1.6; color: rgb(244 240 233 / 0.55); max-width: 28ch; }
.footer-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--kraft) !important; font-weight: 550; }
.footer-cta span { transition: transform 0.2s var(--ease); }
.footer-cta:hover span { transform: translateX(3px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.74rem;
  color: rgb(244 240 233 / 0.4);
}

/* ───────────────────────────── Révélation ───────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0ms); }

/* ───────────────────────────── Responsive ───────────────────────────── */

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; }
  .steps-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .step-tab { grid-template-columns: 1fr; grid-template-areas: "index" "label" "desc"; gap: 4px; padding: 12px; }
  .step-index { margin-bottom: 2px; }
  .step-desc { display: none; }
  .step-panel { grid-template-columns: 1fr; }
  .step-text { order: 2; }
  .anatomy { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .hero-copy { max-width: 640px; }
  .pillars, .specs, .personas, .offers { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .section-head-wide { grid-template-columns: 1fr; align-items: start; }
  .section-head-wide .section-lede { margin-top: 14px; }
  .access-grid { grid-template-columns: 1fr; }
  .access-copy { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgb(15 30 50 / 0.5);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 4px; border-radius: 6px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-inner { min-height: 64px; }
  html { scroll-padding-top: 78px; }
  .nav { inset: 64px 0 auto; }

  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-visual figcaption { text-align: left; }

  .pillars, .specs, .personas, .offers { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip li { padding: 16px 14px; }
  .proof-strip strong { font-size: 0.84rem; }
  .field-row { grid-template-columns: 1fr; }
  .steps-tabs { grid-template-columns: 1fr 1fr; }
  .faq-item p { padding-right: 12px; }
  .detail-meta div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .price-bar { height: 60px; }
  .seg span { font-size: 0.58rem; left: 6px; bottom: 6px; }
}

@media (max-width: 560px) {
  .price-legend { display: grid; }
  .seg span { display: none; }
  .price-bar { height: 46px; }
  .result-bar { gap: 4px 10px; padding-inline: 2px; }
  .result-qty { display: none; }
  .result-total { font-size: 0.98rem; }
}

@media (max-width: 460px) {
}

/* ───────────────────────────── Mouvement réduit ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .dieline .cut { stroke-dashoffset: 0; }
  .dieline .creases path, .dieline .accents circle, .dieline .dim text { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────────────────────────── Impression ───────────────────────────── */

@media print {
  .site-header, .nav-toggle, .hero-visual, .cta-row, .form-card, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .section-ink { background: #fff; color: #000; }
}

/* ───────────────────────────── Pages simples ───────────────────────────── */

.simple-main { padding: clamp(56px, 8vw, 104px) 0; }
.simple-card {
  max-width: 620px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.simple-card .success-icon { margin: 0 auto 18px; }
.simple-card h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.simple-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.simple-card p + p { margin-top: 12px; }
.simple-card .ref-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.simple-card .ref-line strong { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.simple-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

.legal { max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.legal .legal-lead { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; margin-bottom: 36px; }
.legal h2 { font-size: 1.15rem; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.legal ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--blue-deep); }
.legal .todo { background: var(--kraft-soft); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px 14px; font-size: 0.85rem; color: var(--ink-2); margin: 10px 0; }
.legal .todo strong { color: var(--ink); }
.legal-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-faint); }

.success-icon.is-error { background: rgb(180 35 24 / 0.08); color: var(--danger); border-color: rgb(180 35 24 / 0.22); }

/* ============================================================================
   Bibliothèque de modèles
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.net-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lib-hero {
  position: relative;
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 40px);
  isolation: isolate;
}
.lib-hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(720px 380px at 80% 0%, rgb(37 99 235 / 0.08), transparent 70%),
    radial-gradient(560px 320px at 8% 0%, rgb(232 196 154 / 0.2), transparent 72%);
  pointer-events: none;
}
.lib-hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 18em;
}
.lib-hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.lib-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-top: 24px;
}
.lib-hero-row .lede { margin-top: 0; max-width: 46em; }
.lib-facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.lib-facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.lib-facts strong {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.lib-facts span { font-size: 0.76rem; color: var(--ink-faint); }

.section-lib { padding-top: clamp(32px, 4vw, 48px); }

.lib-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.lib-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.filter-chip span {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-faint);
  background: rgb(15 30 50 / 0.05);
  padding: 1px 6px;
  border-radius: 999px;
}
.filter-chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-chip.is-active span { background: rgb(255 255 255 / 0.16); color: #fff; }

.lib-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
}
.lib-search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}
.lib-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  appearance: none;
}
.lib-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgb(37 99 235 / 0.13);
}

.lib-count {
  margin: 16px 0 22px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.lib-count strong { color: var(--ink); font-weight: 600; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.model-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.model-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.model-card[hidden] { display: none !important; }

.model-visual {
  position: relative;
  aspect-ratio: 320 / 210;
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgb(15 30 50 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 30 50 / 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  display: grid;
  place-items: center;
}
.model-visual svg { width: 100%; height: auto; max-height: 190px; }
.model-standard {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgb(250 247 242 / 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

.model-body { display: flex; flex-direction: column; padding: 18px 20px 20px; gap: 6px; flex: 1; }
.model-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.model-body h3 { font-size: 1.05rem; line-height: 1.25; margin-top: 2px; }
.model-desc { font-size: 0.84rem; line-height: 1.55; color: var(--ink-soft); }
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.model-tags li {
  font-size: 0.66rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.model-open {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 14px 0 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
}
.js .model-open { display: inline-flex; }
.model-open span { transition: transform 0.2s var(--ease); }
.model-open:hover span { transform: translateX(3px); }

.lib-empty {
  margin: 32px 0;
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.lib-legend {
  margin-top: clamp(28px, 3vw, 38px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.55);
}
.lib-legend-title {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.lib-legend ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 12px; padding: 0; list-style: none; }
.lib-legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-soft); }
.legend-line { width: 26px; height: 0; border-top: 1.6px solid var(--ink); display: inline-block; }
.legend-line.is-crease { border-top: 1.4px dashed var(--blue); }
.lib-legend-note { font-size: 0.8rem; line-height: 1.6; color: var(--ink-faint); max-width: 70ch; }
.lib-legend-note strong { color: var(--ink-soft); }

.lib-cta { padding-bottom: clamp(56px, 7vw, 96px); }
.lib-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 90% 0%, rgb(37 99 235 / 0.3), transparent 65%),
    var(--ink);
  color: #f4f0e9;
}
.lib-cta-card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lib-cta-card .section-lede { color: rgb(244 240 233 / 0.66); margin-top: 14px; }
.lib-cta-card .eyebrow { color: rgb(244 240 233 / 0.55); }
.lib-cta-actions { display: flex; flex-direction: column; gap: 10px; }
.lib-cta-actions .btn-ghost { --btn-fg: #fff; border-color: rgb(255 255 255 / 0.3); }
.lib-cta-actions .btn-ghost:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.5); }

/* ── Fenêtre de détail ── */

.model-dialog {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.model-dialog::backdrop {
  background: rgb(15 30 50 / 0.55);
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  color: var(--ink);
  cursor: pointer;
}
.dialog-close svg { width: 18px; height: 18px; }
.dialog-close:hover { background: var(--paper-2); }
.dialog-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.dialog-visual {
  display: grid;
  place-items: center;
  padding: 28px;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgb(15 30 50 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 30 50 / 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  border-right: 1px solid var(--line);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.dialog-visual svg { width: 100%; height: auto; max-width: 380px; }
.dialog-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dialog-body { padding: clamp(24px, 3vw, 36px); }
.dialog-code {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.dialog-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.dialog-content { margin-bottom: 22px; }
.dialog-content p { font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }
.dialog-content h4 {
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 20px 0 8px;
}
.dialog-content ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dialog-content li { position: relative; padding-left: 16px; font-size: 0.86rem; color: var(--ink-soft); }
.dialog-content li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1.5px; background: var(--kraft); }

@media (max-width: 1080px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-hero-row { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .lib-toolbar { align-items: stretch; }
  .lib-search { min-width: 0; width: 100%; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
  }
  .dialog-visual svg { max-height: 190px; }
}

@media (max-width: 560px) {
  .model-grid { grid-template-columns: 1fr; }
  .lib-hero h1 { font-size: clamp(2rem, 9.5vw, 2.7rem); }
  .lib-facts { gap: 16px; }
  .lib-facts strong { font-size: 1.35rem; }
  .lib-cta-card { grid-template-columns: 1fr; }
  .lib-cta-actions { align-items: stretch; }
  .filter-chip { font-size: 0.78rem; padding: 7px 11px; }
}
