:root {
  color-scheme: light;
  --ink: oklch(17% 0.036 280);
  --paper: oklch(97% 0.018 72);
  --paper-deep: oklch(91% 0.031 72);
  --cream: oklch(99% 0.012 78);
  --muted: oklch(41% 0.035 280);
  --line: oklch(74% 0.035 74);
  --violet: oklch(52% 0.19 300);
  --lime: oklch(82% 0.18 128);
  --cyan: oklch(72% 0.15 210);
  --rust: oklch(59% 0.17 34);
  --blue: oklch(47% 0.16 250);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, oklch(17% 0.036 280 / 0.08) 1px, transparent 1px),
    linear-gradient(0deg, var(--paper), var(--paper-deep));
  background-size: 22px 22px, auto;
  font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.56;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  max-width: 72ch;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(16px, 3vw, 42px);
  border-bottom: 2px solid var(--ink);
  background: oklch(97% 0.018 72 / 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, var(--lime) 0 50%, var(--violet) 50%),
    var(--cream);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

nav a {
  padding: 8px 11px;
  border: 2px solid transparent;
}

nav a:hover {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.7fr);
  grid-template-areas:
    "head form"
    "rest form";
  gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 84px);
  align-items: start;
  align-content: center;
  padding: clamp(54px, 7vw, 98px) 0 clamp(46px, 7vw, 88px);
}

.hero-head {
  grid-area: head;
}

.hero-rest {
  grid-area: rest;
}

.hero-form {
  grid-area: form;
  align-self: start;
}

.eyebrow,
.section-label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  background: var(--lime);
  padding: 8px 12px 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin-bottom: 24px;
  font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  font-size: clamp(2.9rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.8vw, 5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  line-height: 1.05;
}

.lead,
.definition p,
.mission p,
.closing p {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.4vw, 1.28rem);
}

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

.primary,
.secondary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  font-weight: 900;
  text-align: center;
}

.primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--rust);
}

.secondary {
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--lime);
}

.primary:hover,
.secondary:hover {
  transform: translate(-2px, -2px);
}

/* ---- Carte formulaire (hero + section contact) ---- */
.lead-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, oklch(17% 0.036 280 / 0.08) 1px, transparent 1px),
    linear-gradient(0deg, oklch(17% 0.036 280 / 0.08) 1px, transparent 1px),
    var(--cream);
  background-size: 30px 30px;
  box-shadow: 14px 14px 0 var(--ink);
}

.lead-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-card-head span {
  color: var(--muted);
}

.lead-card-head b {
  border: 2px solid var(--ink);
  background: var(--violet);
  color: var(--cream);
  padding: 4px 9px;
}

.lead-card-title {
  margin-bottom: 2px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.04;
}

.lead-card-sub {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.lead-form textarea {
  resize: vertical;
  min-height: 96px;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 0;
}

.lead-submit {
  min-height: 54px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--rust);
}

.lead-submit:hover {
  transform: translate(-2px, -2px);
}

.lead-success {
  margin: 6px 0 0;
  padding: 12px 14px;
  background: var(--lime);
  border: 2px solid var(--ink);
  font-weight: 900;
}

.definition,
.engines,
.factors,
.mission,
.audiences,
.faq,
.closing,
.contact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto clamp(34px, 6vw, 78px);
}

.definition {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(34px, 6vw, 70px) 0;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 72px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.section-intro.narrow {
  display: block;
  max-width: 980px;
}

.engine-stack {
  display: grid;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.engine-stack article {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  border-bottom: 2px solid var(--ink);
  padding: clamp(18px, 3vw, 30px);
}

.engine-stack article:last-child {
  border-bottom: 0;
}

.engine-name {
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
}

.engine-signal,
.engine-action {
  margin-bottom: 0;
  color: var(--muted);
}

.engine-action {
  color: var(--ink);
  font-weight: 800;
}

.factor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--cream);
}

.factor-list li {
  position: relative;
  min-height: 230px;
  padding: 20px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.factor-list li:nth-child(4n) {
  border-right: 0;
}

.factor-list li:nth-child(n + 5) {
  border-bottom: 0;
}

.factor-list li::before {
  content: counter(list-item, decimal-leading-zero);
  display: block;
  margin-bottom: 36px;
  color: var(--accent, var(--violet));
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  font-weight: 900;
  line-height: 0.8;
}

.factor-list li:nth-child(2n) {
  --accent: var(--rust);
}

.factor-list li:nth-child(3n) {
  --accent: var(--blue);
}

.factor-list li:nth-child(4n) {
  --accent: var(--lime);
}

.factor-list b {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.05;
}

.factor-list span {
  color: var(--muted);
  font-size: 0.98rem;
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: clamp(26px, 6vw, 78px);
  align-items: start;
}

.mission-steps {
  display: grid;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.mission-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 16px;
  border-bottom: 1px solid oklch(97% 0.018 72 / 0.24);
  padding: 18px;
}

.mission-steps article:last-child {
  border-bottom: 0;
}

.mission-steps span {
  grid-row: span 2;
  color: var(--lime);
  font-size: 1.5rem;
  font-weight: 900;
}

.mission-steps b {
  font-size: 1.16rem;
}

.mission-steps p {
  margin-bottom: 0;
  color: oklch(90% 0.02 74);
  font-size: 0.96rem;
}

.audiences {
  border: 2px solid var(--ink);
  background: var(--lime);
  padding: clamp(24px, 4vw, 44px);
}

.audience-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.audience-line span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 2px solid var(--ink);
  background: var(--cream);
  padding: 8px 12px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--cream);
}

.faq-list article {
  min-height: 220px;
  padding: clamp(18px, 3vw, 28px);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.faq-list article:nth-child(2n) {
  border-right: 0;
}

.faq-list article:nth-child(n + 3) {
  border-bottom: 0;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

/* ---- Section contact (formulaire dédié) ---- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: clamp(26px, 6vw, 78px);
  align-items: start;
}

.closing {
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 88% 20%, var(--violet) 0 70px, transparent 72px),
    radial-gradient(circle at 72% 82%, var(--cyan) 0 94px, transparent 96px),
    var(--cream);
  padding: clamp(28px, 5vw, 58px);
}

.closing h2 {
  max-width: 850px;
}

.closing .primary {
  margin-top: 10px;
}

footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

footer a:hover {
  color: var(--ink);
}

/* ---- Page légale (mentions / confidentialité) ---- */
.legal {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0;
}

.legal h1 {
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.legal h2 {
  max-width: none;
  margin-top: 38px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.legal p,
.legal li {
  color: var(--muted);
  max-width: none;
}

.legal ul {
  margin: 0 0 16px 22px;
}

.legal a.inline {
  font-weight: 900;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "form"
      "rest";
  }

  .definition-grid,
  .section-intro,
  .mission,
  .contact {
    grid-template-columns: 1fr;
  }

  .engine-stack article {
    grid-template-columns: 1fr;
  }

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

  .factor-list li:nth-child(2n) {
    border-right: 0;
  }

  .factor-list li:nth-child(4n) {
    border-right: 0;
  }

  .factor-list li:nth-child(n + 5) {
    border-bottom: 2px solid var(--ink);
  }

  .factor-list li:nth-child(n + 7) {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 18px;
  }

  .topbar {
    position: static;
    display: grid;
    padding: 12px 14px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .definition,
  .engines,
  .factors,
  .mission,
  .audiences,
  .faq,
  .closing,
  .contact,
  footer {
    width: min(100% - 24px, var(--max));
  }

  /* Mobile form-first : H1 puis formulaire juste en dessous. */
  .hero {
    grid-template-areas:
      "head"
      "form"
      "rest";
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 2.6rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .primary,
  .secondary,
  .lead-submit {
    width: 100%;
  }

  .factor-list,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .factor-list li,
  .factor-list li:nth-child(2n),
  .factor-list li:nth-child(4n),
  .faq-list article,
  .faq-list article:nth-child(2n) {
    border-right: 0;
  }

  .factor-list li:nth-child(n + 7) {
    border-bottom: 2px solid var(--ink);
  }

  .factor-list li:last-child,
  .faq-list article:last-child {
    border-bottom: 0;
  }

  .faq-list article:nth-child(n + 3) {
    border-bottom: 2px solid var(--ink);
  }
}
