:root {
  --cobalt: oklch(34% 0.19 264);
  --cobalt-deep: oklch(23% 0.14 264);
  --cream: oklch(96% 0.038 91);
  --paper: oklch(99% 0.014 91);
  --ink: oklch(17% 0.04 260);
  --muted: oklch(43% 0.035 260);
  --lime: oklch(82% 0.2 136);
  --orange: oklch(72% 0.2 47);
  --pink: oklch(78% 0.16 342);
  --line: oklch(75% 0.045 91);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  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;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 3vw, 38px);
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

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

.brand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--cobalt);
  color: var(--cream);
  border-radius: 0 22px 22px 0;
  font-size: 0.8rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

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

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.82fr);
  grid-template-areas:
    "head form"
    "rest form"
    "stack stack";
  gap: clamp(22px, 4vw, 56px);
  align-content: center;
  align-items: start;
  padding: clamp(44px, 6vw, 88px) max(22px, calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(circle at 18% 20%, oklch(82% 0.2 136 / 0.24), transparent 28rem),
    linear-gradient(120deg, var(--cobalt) 0 68%, var(--orange) 68% 100%);
  color: var(--cream);
}

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

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

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

.category-stack {
  grid-area: stack;
  justify-self: start;
}

.label,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--cobalt-deep);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: normal;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.lead {
  max-width: 640px;
  color: oklch(93% 0.03 91);
  font-size: clamp(1.06rem, 1.5vw, 1.26rem);
}

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

.primary,
.secondary,
.offer-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 3px solid currentColor;
  border-radius: 0 24px 24px 0;
  font-weight: 950;
  text-align: center;
  white-space: normal;
}

.primary,
.offer-list a {
  background: var(--lime);
  color: var(--cobalt-deep);
}

.secondary {
  color: var(--cream);
}

/* ---- Carte formulaire (hero + #contact) ---- */
.lead-card {
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  border-radius: 0 28px 28px 0;
  padding: clamp(20px, 3vw, 30px);
}

.lead-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lead-card-head b {
  background: var(--lime);
  color: var(--cobalt-deep);
  border: 3px solid var(--ink);
  border-radius: 0 12px 12px 0;
  padding: 4px 9px;
}

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

.lead-card-sub {
  margin-bottom: 18px;
  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: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

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

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

.lead-submit {
  min-height: 52px;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 0 18px 18px 0;
  background: var(--cobalt);
  color: var(--cream);
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
}

.lead-submit:hover {
  background: var(--lime);
  color: var(--cobalt-deep);
}

.lead-success {
  margin: 6px 0 0;
  padding: 12px 14px;
  background: var(--lime);
  color: var(--cobalt-deep);
  border: 3px solid var(--ink);
  font-weight: 950;
}

.category-stack {
  color: var(--ink);
  width: 100%;
  max-width: 640px;
}

.layer {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.layer + .layer {
  margin-top: -3px;
}

.layer span {
  grid-row: span 2;
  font-size: 2.9rem;
  line-height: 1;
  font-weight: 950;
}

.layer b,
.layer small {
  display: block;
}

.layer small {
  color: var(--muted);
}

.leader {
  background: var(--lime);
}

.challenger {
  background: var(--paper);
  transform: translateX(28px);
}

.noise {
  background: var(--pink);
  transform: translateX(56px);
}

.category-stack p {
  margin: 18px 0 0 72px;
  color: var(--cobalt-deep);
  background: var(--cream);
  padding: 14px 16px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.thesis {
  padding: clamp(46px, 7vw, 86px) clamp(22px, 6vw, 82px);
  background: var(--ink);
  color: var(--cream);
}

.thesis p {
  margin-bottom: 16px;
  color: var(--orange);
  font-weight: 950;
  text-transform: uppercase;
}

.thesis h2 {
  max-width: 1120px;
  margin-bottom: 0;
}

.definition,
.difference,
.category,
.program,
.proof,
.fit,
.offers,
.faq,
.closing,
.contact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) 0;
}

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

.section-index {
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.8;
  color: var(--orange);
  font-weight: 950;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-copy p,
.difference-row p,
.category-copy p,
.program-list p,
.proof-copy p,
.fit-list p,
.offer-list p,
.faq-list p,
.closing p,
.contact-intro p {
  color: var(--muted);
}

.section-copy > p {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.difference {
  border-top: 3px solid var(--ink);
}

.difference-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 0 52px 52px 0;
}

.difference-row article {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
  border-right: 3px solid var(--ink);
}

.difference-row article:last-child {
  border-right: 0;
  background: var(--lime);
}

.difference-row span {
  display: block;
  margin-bottom: 18px;
  color: var(--cobalt);
  font-weight: 950;
}

.category {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  border-top: 3px solid var(--ink);
}

.category-copy {
  columns: 2;
  column-gap: 34px;
}

.category-copy p {
  break-inside: avoid;
}

.program {
  border-top: 3px solid var(--ink);
}

.program-head {
  max-width: 980px;
}

.program-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 3px solid var(--ink);
  background: var(--ink);
}

.program-list article {
  min-height: 310px;
  padding: 24px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
}

.program-list article:nth-child(2) {
  background: var(--cream);
}

.program-list article:nth-child(3) {
  background: var(--pink);
}

.program-list article:last-child {
  border-right: 0;
  background: var(--lime);
}

.program-list b {
  display: block;
  margin-bottom: 22px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.proof {
  width: min(1380px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  padding: clamp(42px, 6vw, 74px);
  background: var(--cobalt);
  color: var(--cream);
  border-radius: 0 76px 76px 0;
}

.proof-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-band span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.12);
  color: var(--cream);
  font-weight: 850;
}

.proof-copy p {
  color: oklch(92% 0.03 91);
}

.fit {
  border-top: 3px solid var(--ink);
}

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

.fit-list p {
  max-width: none;
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0 34px 34px 0;
}

.offers {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(30px, 6vw, 86px);
  border-top: 3px solid var(--ink);
}

.offer-list {
  display: grid;
  gap: 16px;
}

.offer-list article {
  padding: 24px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0 44px 44px 0;
}

.offer-list a {
  margin-top: 8px;
}

.faq {
  border-top: 3px solid var(--ink);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-list article {
  padding: 24px;
  background: var(--paper);
  border-left: 12px solid var(--cobalt);
}

/* ---- Section contact (formulaire on-page) ---- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
  border-top: 3px solid var(--ink);
}

.contact-intro p {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.closing {
  width: min(1380px, calc(100% - 36px));
  margin-bottom: clamp(36px, 6vw, 86px);
  padding: clamp(38px, 7vw, 82px);
  background: var(--orange);
  border-radius: 0 76px 76px 0;
}

.closing p {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
}

.closing .primary {
  color: var(--cobalt-deep);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--lime);
  font-weight: 900;
}

/* ---- Pages legales (mentions / confidentialite) ---- */
.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: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "form"
      "rest"
      "stack";
  }

  .category,
  .proof,
  .offers,
  .contact {
    grid-template-columns: 1fr;
  }

  .category-stack {
    max-width: 580px;
    transform: none;
  }

  .category-copy {
    columns: 1;
  }

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

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

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 36px 14px 56px;
    background: var(--cobalt);
    /* Mobile form-first : H1 puis formulaire juste en dessous. */
    grid-template-areas:
      "head"
      "form"
      "rest"
      "stack";
  }

  h1 {
    font-size: clamp(2rem, 8.6vw, 2.6rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
  }

  .hero-actions,
  .difference-row,
  .program-list,
  .fit-list,
  .faq-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary,
  .secondary,
  .lead-submit {
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  .category-stack {
    display: none;
  }

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

  .section-index {
    font-size: 4rem;
  }

  .difference-row article,
  .program-list article {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }

  .difference-row article:last-child,
  .program-list article:last-child {
    border-bottom: 0;
  }

  .proof,
  .closing {
    width: min(100% - 24px, 1380px);
    border-radius: 0 38px 38px 0;
  }

  footer {
    flex-direction: column;
  }
}
