:root {
  --aubergine: oklch(22% 0.085 334);
  --aubergine-2: oklch(28% 0.1 334);
  --petal: oklch(93% 0.035 350);
  --mist: oklch(96% 0.018 12);
  --ink: oklch(18% 0.035 334);
  --muted: oklch(46% 0.035 334);
  --line: oklch(64% 0.055 340);
  --coral: oklch(70% 0.19 27);
  --green: oklch(78% 0.16 154);
  --blue: oklch(62% 0.15 236);
  --paper: oklch(98% 0.012 20);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

p {
  max-width: 70ch;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 42px);
  border-bottom: 1px solid oklch(100% 0 0 / 0.15);
  background: oklch(22% 0.085 334 / 0.94);
  color: var(--petal);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--aubergine);
  font-weight: 950;
}

nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

nav a {
  padding: 8px 10px;
  color: oklch(88% 0.035 350);
}

nav a:hover {
  background: oklch(100% 0 0 / 0.1);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 44%, oklch(70% 0.19 27 / 0.28), transparent 23rem),
    radial-gradient(circle at 16% 22%, oklch(78% 0.16 154 / 0.18), transparent 22rem),
    var(--aubergine);
  color: var(--petal);
}

.position-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid oklch(93% 0.035 350 / 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: min(86vw, 980px);
  aspect-ratio: 1;
}

.orbit-b {
  width: min(64vw, 710px);
  aspect-ratio: 1;
}

.orbit-c {
  width: min(38vw, 430px);
  aspect-ratio: 1;
  border-color: oklch(78% 0.16 154 / 0.5);
}

.axis {
  position: absolute;
  left: 50%;
  top: 50%;
  background: oklch(93% 0.035 350 / 0.24);
  transform: translate(-50%, -50%);
}

.axis.horizontal {
  width: 100vw;
  height: 1px;
}

.axis.vertical {
  width: 1px;
  height: 100vh;
}

.pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid oklch(93% 0.035 350 / 0.42);
  border-radius: 999px;
  background: oklch(22% 0.085 334 / 0.76);
  color: var(--petal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.pin-main {
  right: 17%;
  top: 34%;
  background: var(--green);
  color: var(--aubergine);
}

.pin-one {
  right: 29%;
  top: 18%;
}

.pin-two {
  right: 10%;
  bottom: 25%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 8vw, 112px);
}

.kicker,
.eyebrow {
  margin-bottom: 18px;
  color: var(--green);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 1050px;
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 4.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 790px;
  color: oklch(88% 0.035 350);
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
}

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

.primary,
.secondary,
.offer-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.primary,
.offer-list a {
  background: var(--green);
  color: var(--aubergine);
}

.secondary {
  border: 1px solid oklch(93% 0.035 350 / 0.42);
  color: var(--petal);
}

.primary:hover,
.secondary:hover,
.offer-list a:hover {
  transform: translateY(-2px);
}

.statement {
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 76px);
  background: var(--coral);
  color: var(--aubergine);
}

.statement p {
  margin-bottom: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.statement h2 {
  max-width: 1100px;
  margin-bottom: 0;
  color: var(--aubergine);
}

.definition,
.territory,
.method,
.entity,
.service,
.fit,
.offers,
.faq,
.closing {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 108px) 0;
}

.definition {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
}

.side-title {
  position: sticky;
  top: 104px;
  align-self: start;
}

.side-title span {
  display: block;
  margin-bottom: 20px;
  color: var(--coral);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.5vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

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

.longcopy p,
.role-list p,
.path p,
.entity-copy p,
.service-lines p,
.fit-columns p,
.offer-list p,
.faq-list p,
.closing p {
  color: var(--muted);
}

.longcopy p {
  font-size: clamp(1.08rem, 1.65vw, 1.34rem);
}

.territory {
  border-top: 1px solid var(--line);
}

.role-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.role-list article {
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.role-list span {
  display: block;
  margin-bottom: 26px;
  color: var(--coral);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

.method {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(34px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.method-head {
  align-self: start;
  position: sticky;
  top: 104px;
}

.path {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--aubergine);
}

.path li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 42px 26px;
}

.path li:last-child {
  padding-bottom: 0;
}

.path span {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-left: -60px;
  border-radius: 50%;
  background: var(--aubergine);
  color: var(--petal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 950;
}

.entity {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(42px, 6vw, 76px);
  width: min(1320px, calc(100% - 40px));
  background: var(--aubergine);
  color: var(--petal);
  border-radius: 34px;
}

.entity-copy p {
  color: oklch(88% 0.035 350);
}

.entity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entity-strip span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.1);
  color: var(--petal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}

.service {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(32px, 6vw, 90px);
}

.service-lines {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.service-lines p {
  max-width: none;
  margin: 0;
  padding: 24px;
  background: var(--paper);
}

.fit {
  border-top: 1px solid var(--line);
}

.fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
}

.fit-columns article {
  padding-top: 24px;
  border-top: 6px solid var(--coral);
}

.offers {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: clamp(32px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

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

.offer-list article {
  padding: 24px;
  border-radius: 28px;
  background: var(--petal);
}

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

.faq {
  border-top: 1px solid var(--line);
}

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

.faq-list article {
  padding: 26px;
  background: var(--paper);
  border-radius: 28px;
}

.closing {
  width: min(1320px, calc(100% - 40px));
  margin-bottom: clamp(38px, 6vw, 86px);
  padding: clamp(40px, 7vw, 86px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 76% 28%, oklch(78% 0.16 154 / 0.22), transparent 22rem),
    var(--aubergine);
  color: var(--petal);
}

.closing p {
  color: oklch(88% 0.035 350);
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 4vw, 54px);
  background: var(--aubergine);
  color: var(--petal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

footer a {
  color: var(--green);
  font-weight: 850;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    justify-content: flex-start;
  }

  .definition,
  .method,
  .entity,
  .service,
  .offers {
    grid-template-columns: 1fr;
  }

  .side-title,
  .method-head {
    position: static;
  }

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

  .role-list article {
    min-height: auto;
  }

}

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 26px, var(--max));
    padding: 52px 0 58px;
  }

  h1 {
    font-size: clamp(1.7rem, 7vw, 2.6rem);
    line-height: 1.02;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
  }

  h2 {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }

  .pin {
    display: none;
  }

  .orbit-a {
    width: 120vw;
  }

  .orbit-b {
    width: 88vw;
  }

  .path {
    border-left: 0;
  }

  .path li {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .path span {
    margin-left: 0;
  }

  .entity,
  .closing {
    width: min(100% - 24px, 1320px);
    border-radius: 24px;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------
   Formulaire de lead on-page + hero grid form-first (mobile)
   --------------------------------------------------------------- */

/* Hero passe en grille 2 colonnes : copie / carte formulaire.
   grid-template-areas permet de réordonner en mobile (titre -> form). */
.hero-inner.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  grid-template-areas:
    "head form"
    "rest form";
  align-items: start;
}

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

.lead-card {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 26px;
  border: 1px solid oklch(93% 0.035 350 / 0.28);
  background: oklch(22% 0.085 334 / 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px oklch(18% 0.035 334 / 0.45);
}

.lead-card-title {
  margin-bottom: 8px;
  color: var(--petal);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead-card-sub {
  margin-bottom: 20px;
  color: oklch(88% 0.035 350);
  font-size: 1rem;
}

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

.lead-card input,
.lead-card textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid oklch(93% 0.035 350 / 0.3);
  background: oklch(100% 0 0 / 0.06);
  color: var(--petal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.lead-card textarea { resize: vertical; min-height: 84px; }

.lead-card input::placeholder,
.lead-card textarea::placeholder { color: oklch(80% 0.035 350 / 0.7); }

.lead-card input:focus,
.lead-card textarea:focus {
  outline: none;
  border-color: var(--green);
}

.lead-submit {
  margin-top: 4px;
  min-height: 50px;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--aubergine);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.lead-success {
  margin: 4px 0 0;
  color: var(--green);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}

/* Mobile : une seule colonne, le formulaire passe SOUS le H1 (form-first). */
@media (max-width: 980px) {
  .hero-inner.hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "form"
      "rest";
  }
}

/* Correctif overflow horizontal mobile (binôme 2 — illisibilité H1/carte au bord droit) */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .hero-inner.hero-grid { width: min(100% - 28px, var(--max)); margin-inline: auto; }
  .hero-head, .hero-rest, .hero-form-wrap, .lead-card { min-width: 0; max-width: 100%; }
  .lead-card input, .lead-card textarea { max-width: 100%; }
}
