/* ============================================================
   APPLAT — feuille de style vitrine
   Charte : bleu #2F6BFF, navy #0B1220, cloud #F6F8FB, steel #94A3B8
   Rayons 8px, bordures 1px #D7DEE8, ombres minimes, Inter.
   ============================================================ */

:root {
  --blue: #2f6bff;
  --blue-dark: #1f52d6;
  --blue-soft: #eaf0ff;
  --navy: #0b1220;
  --navy-soft: #16233b;
  --cloud: #f6f8fb;
  --steel: #94a3b8;
  --line: #d7dee8;
  --line-dark: #24324c;
  --white: #ffffff;
  --ok: #16a34a;

  --r: 8px;
  --r-lg: 14px;
  --gap: 8px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(11, 18, 32, 0.16);

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

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

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.5rem);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 0 var(--r) 0;
}

.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--steel);
}

.accent {
  color: var(--blue);
}

/* ── Typo utilitaires ───────────────────────────────────── */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow--light {
  color: #7ea2ff;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: #475569;
  max-width: 34rem;
  margin-top: 20px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--cloud {
  background: var(--cloud);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__lede {
  margin-top: 18px;
  color: #475569;
  font-size: 1.0625rem;
}

.section__head--center .section__lede {
  margin-inline: auto;
  max-width: 40rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: var(--navy);
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn--lg {
  height: 56px;
  padding: 0 30px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__word {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links > a:not(.btn) {
  color: #334155;
  transition: color 0.16s var(--ease);
}

.nav__links > a:not(.btn):hover {
  color: var(--navy);
}

.nav__login {
  padding-left: 4px;
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__burger span[aria-hidden] {
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s var(--ease);
}

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

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

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

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--steel);
  font-weight: 500;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__proof li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Maquette applicative ───────────────────────────────── */

.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  font-size: 0.8125rem;
}

.mock__logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.mock__crumb {
  color: var(--steel);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__export {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cddcff;
}

.mock__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
}

.mock__canvas {
  position: relative;
  background: var(--cloud);
  background-image: radial-gradient(rgba(11, 18, 32, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  border-right: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  align-items: center;
}

.mock__canvas svg {
  width: 100%;
  height: auto;
}

.mock__zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  gap: 4px;
}

.mock__zoom span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  color: #475569;
}

.mock__panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.panel__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.panel__title--eq {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.panel__title--light {
  color: #7f96b8;
}

.mock__status {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: #475569;
  background: #fbfcfe;
}

.mock__status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.mock__meta {
  margin-left: auto;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

/* Champs / sliders */

.fields {
  display: grid;
  gap: 12px;
}

.field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
}

.field__label {
  color: #475569;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6875rem;
}

.field__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.field__value span {
  color: var(--steel);
  font-weight: 500;
  margin-left: 2px;
}

.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 2px 0 0;
  background: transparent;
  cursor: ew-resize;
}

.field input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--blue) var(--pct, 50%),
    var(--line) var(--pct, 50%)
  );
}

.field input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--blue) var(--pct, 50%),
    var(--line) var(--pct, 50%)
  );
}

.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.2);
}

.field input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
}

.fields--dark .field__label {
  color: #8ba0c0;
}

.fields--dark .field__value {
  color: #fff;
}

.fields--dark .field input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    #5f8bff var(--pct, 50%),
    var(--line-dark) var(--pct, 50%)
  );
}

.fields--dark .field input[type="range"]::-moz-range-track {
  background: linear-gradient(
    to right,
    #5f8bff var(--pct, 50%),
    var(--line-dark) var(--pct, 50%)
  );
}

.fields--dark .field input[type="range"]::-webkit-slider-thumb {
  background: var(--navy);
  border-color: #5f8bff;
}

/* Équations */

.eqs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
}

.eqs li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.eqs b {
  margin-left: auto;
  font-weight: 600;
  color: #475569;
}

.eqs code {
  font-family: inherit;
  font-weight: 700;
  color: var(--navy);
  min-width: 20px;
}

.eqs span {
  color: var(--steel);
}

.eqs em {
  font-style: normal;
  color: var(--blue);
  font-weight: 500;
}

/* ── Étapes ─────────────────────────────────────────────── */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.step__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 8px;
}

.step > p {
  color: #475569;
  font-size: 0.9375rem;
}

.step__visual {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cloud);
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.step__visual svg {
  width: 100%;
  height: auto;
  margin-top: auto;
  margin-bottom: auto;
}

.tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: #475569;
}

.tool--on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.step__visual--eq {
  justify-content: center;
  gap: 18px;
}

.cote-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cote-swap__val {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
}

.cote-swap__arrow {
  color: var(--steel);
}

.cote-swap__var {
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  animation: pop 3.4s var(--ease) infinite;
}

@keyframes pop {
  0%,
  70%,
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
  78% {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px -6px rgba(47, 107, 255, 0.7);
  }
}

.eqs--static {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  gap: 8px;
}

.step__visual--gen {
  justify-content: center;
}

.genform {
  display: grid;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}

.genform__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #475569;
}

.genform__row b {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.genform .btn {
  margin-top: 4px;
  height: 42px;
}

.genresult {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  animation: fadeUp 0.4s var(--ease) both;
}

.genresult__ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ok);
  margin-bottom: 10px;
}

.genresult__files {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 0.8125rem;
  color: #475569;
}

.genresult__files li::before {
  content: "▸";
  color: var(--steel);
  margin-right: 6px;
}

.genresult__files em {
  font-style: normal;
  color: var(--steel);
}

.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ── Arguments ──────────────────────────────────────────── */

.args__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.arg {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
}

.arg__icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: 18px;
}

.arg h3 {
  margin-bottom: 8px;
}

.arg p {
  color: #475569;
  font-size: 0.9375rem;
}

/* ── Section puissance (navy) ───────────────────────────── */

.power {
  background: var(--navy);
  color: #e6ecf7;
  position: relative;
  overflow: hidden;
}

.power::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 72%);
  pointer-events: none;
}

.power .container {
  position: relative;
}

.power h2 {
  color: #fff;
}

.power .section__lede {
  color: #9fb2cf;
}

.power__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.power__vars {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.power__hint {
  font-size: 0.75rem;
  color: #7f96b8;
  text-align: center;
}

.power__parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.part {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.part.is-done {
  border-color: rgba(47, 107, 255, 0.55);
  background: rgba(47, 107, 255, 0.07);
}

.part__view {
  background: rgba(11, 18, 32, 0.5);
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.part__view svg {
  width: 100%;
  height: 100%;
}

.part__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.part__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.part__dims {
  font-size: 0.6875rem;
  color: #7f96b8;
  font-variant-numeric: tabular-nums;
}

.part__file {
  font-size: 0.6875rem;
  color: #7ea2ff;
  font-weight: 600;
  min-height: 1em;
}

/* ── Exemples ───────────────────────────────────────────── */

.examples__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.example {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.example:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.example__canvas {
  background: var(--cloud);
  background-image: radial-gradient(rgba(11, 18, 32, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.example__canvas svg {
  width: 100%;
  height: auto;
}

.example__body {
  padding: 20px 22px 22px;
}

.example__body h3 {
  margin-bottom: 6px;
}

.example__body p {
  color: #475569;
  font-size: 0.9375rem;
}

.example__meta {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--steel);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Comparaison ────────────────────────────────────────── */

.compare__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.compare__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}

.compare__card--after {
  border-color: rgba(47, 107, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.07);
}

.compare__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.compare__label--accent {
  color: var(--blue);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #334155;
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--line);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--steel);
}

.flow--short li {
  border-color: rgba(47, 107, 255, 0.35);
  background: #f7faff;
  color: var(--navy);
  font-weight: 600;
}

.flow--short li::before {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.compare__foot {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--steel);
}

.compare__foot--accent {
  color: var(--blue);
  font-weight: 600;
}

/* ── Tarifs ─────────────────────────────────────────────── */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan--featured {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}

.plan__name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.plan__price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}

.plan__price span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0;
  margin-left: 4px;
}

.plan__price--text {
  font-size: 1.75rem;
}

.plan__note {
  color: var(--steel);
  font-size: 0.875rem;
  margin-top: 4px;
}

.plan__list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
  color: #334155;
  flex: 1;
}

.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan__list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid #cddcff;
}

/* ── CTA final ──────────────────────────────────────────── */

.cta {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--cloud);
  border-top: 1px solid var(--line);
}

.cta__inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.cta h2 {
  max-width: 30rem;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: var(--navy);
  color: #9fb2cf;
  padding: 48px 0;
}

.footer__inner {
  display: grid;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.footer__brand .brand__mark {
  width: 24px;
  height: 24px;
}

.footer__sign {
  font-size: 0.875rem;
  font-weight: 600;
}

.footer__links,
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
}

.footer__legal {
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: #6f86a8;
}

.footer a:hover {
  color: #fff;
}

/* ── Pages d'authentification ───────────────────────────── */

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth__aside {
  background: var(--navy);
  color: #e6ecf7;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000, transparent 75%);
}

.auth__aside > * {
  position: relative;
}

.auth__aside .brand {
  color: #fff;
}

.auth__pitch h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  max-width: 22rem;
}

.auth__pitch p {
  color: #9fb2cf;
  margin-top: 16px;
  max-width: 26rem;
  font-size: 0.9375rem;
}

.auth__demo {
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.auth__demo svg {
  width: 100%;
  height: auto;
}

.auth__steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.875rem;
  color: #9fb2cf;
}

.auth__steps li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth__steps li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f8bff;
  flex: none;
}

.auth__main {
  display: grid;
  place-items: center;
  padding: 44px 24px;
  background: var(--white);
}

.auth__card {
  width: 100%;
  max-width: 25rem;
}

.auth__card h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.auth__sub {
  color: #475569;
  margin-top: 10px;
  font-size: 0.9375rem;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.form__field {
  display: grid;
  gap: 7px;
}

.form__field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.form__field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.form__field input::placeholder {
  color: #a9b6c8;
}

.form__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}

.form__hint {
  font-size: 0.75rem;
  color: var(--steel);
}

.form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}

.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
}

.form__check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex: none;
}

.form__check a {
  color: var(--blue);
  font-weight: 500;
}

.form__link {
  color: var(--blue);
  font-weight: 500;
}

.form__notice {
  border: 1px solid #cddcff;
  background: var(--blue-soft);
  color: #1f3f8f;
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 0.8125rem;
  animation: fadeUp 0.3s var(--ease) both;
}

.auth__alt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: #475569;
}

.auth__alt a {
  color: var(--blue);
  font-weight: 600;
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--steel);
  margin-top: 26px;
}

.auth__back:hover {
  color: var(--navy);
}

/* ── Animations d'apparition ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  animation: fadeUp 0.6s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SVG technique ──────────────────────────────────────── */

.cad-outline {
  fill: rgba(47, 107, 255, 0.05);
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linejoin: round;
}

.cad-hole {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 2;
}

.cad-dim {
  stroke: var(--blue);
  stroke-width: 1;
}

.cad-ext {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.7;
}

.cad-fold {
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 8 4 2 4;
  opacity: 0.85;
}

.cad-arrow {
  fill: var(--blue);
  stroke: none;
}

.cad-text {
  fill: var(--blue);
  font: 600 12px Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}

.cad-node {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 1.5;
}

.cad-axis {
  stroke: var(--steel);
  stroke-width: 1;
  opacity: 0.6;
}

/* Variantes sur fond navy */

.part .cad-outline {
  fill: rgba(95, 139, 255, 0.1);
  stroke: #cfe0ff;
  stroke-width: 2.5;
}

.part .cad-hole {
  fill: #0b1220;
  stroke: #cfe0ff;
  stroke-width: 2.5;
}

.part .cad-fold {
  stroke: #5f8bff;
}

.auth__demo .cad-outline {
  fill: rgba(95, 139, 255, 0.1);
  stroke: #cfe0ff;
}

.auth__demo .cad-hole {
  fill: #0b1220;
  stroke: #cfe0ff;
}

.auth__demo .cad-dim,
.auth__demo .cad-ext {
  stroke: #5f8bff;
}

.auth__demo .cad-text {
  fill: #9fb2cf;
}

.auth__demo .cad-arrow {
  fill: #5f8bff;
}

.auth__demo .cad-node {
  fill: #0b1220;
  stroke: #5f8bff;
}

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

@media (max-width: 1080px) {
  .args__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .power__layout {
    grid-template-columns: 1fr;
  }

  .power__vars {
    position: static;
  }
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .steps__grid,
  .examples__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth__aside {
    padding: 32px 24px;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .nav__burger {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links > a:not(.btn) {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__links .btn {
    margin-top: 10px;
    height: 46px;
  }

  .mock__body {
    grid-template-columns: 1fr;
  }

  .mock__canvas {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .power__parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .power__parts {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
