:root {
  --bg: #f7f9fc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5f6979;
  --line: #dfe5ee;
  --blue: #1e63ff;
  --blue-dark: #0e3fb4;
  --mint: #00b386;
  --mint-soft: #e6f9f3;
  --slate: #1f2937;
  --shadow: 0 24px 70px rgba(18, 32, 58, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(223, 229, 238, 0.75);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.board-header,
.board-footer {
  display: flex;
  align-items: center;
}

.brand {
  width: fit-content;
}

.brand-logo {
  display: block;
  width: 246px;
  height: 66px;
}

.main-nav {
  gap: 28px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  padding: 11px 17px;
  color: white;
  background: var(--blue);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(30, 99, 255, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-cta:hover,
.button.primary:hover {
  background: #1557f0;
  box-shadow: 0 18px 34px rgba(30, 99, 255, 0.26);
  transform: translateY(-2px);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
  min-height: min(820px, calc(100vh - 72px));
  padding: clamp(48px, 7vw, 84px) 0 64px;
}

.hero > *,
.automation-board,
.node,
.flow-row {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 780;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button::after {
  margin-left: 8px;
  content: "->";
  transition: transform 180ms ease;
}

.button:hover::after {
  transform: translateX(3px);
}

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 16px 30px rgba(30, 99, 255, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: rgba(30, 99, 255, 0.35);
  box-shadow: 0 12px 26px rgba(18, 32, 58, 0.08);
  transform: translateY(-2px);
}

.automation-board {
  position: relative;
  width: 100%;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.automation-board:hover {
  box-shadow: 0 30px 84px rgba(18, 32, 58, 0.16);
  transform: translateY(-4px);
}

.automation-board::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(30, 99, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 99, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  animation: grid-drift 18s linear infinite;
}

.board-header,
.board-footer {
  position: relative;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #087a5e;
  background: var(--mint-soft);
  padding: 7px 10px;
  border-radius: 999px;
}

.status::before {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 179, 134, 0.42);
  content: "";
  animation: pulse 1.9s ease-out infinite;
}

.flow-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  gap: 0;
  align-items: center;
  margin-top: 28px;
}

.flow-row.lower {
  margin-top: 18px;
  transform: translateY(10px);
}

.node {
  position: relative;
  min-height: 166px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.node:hover {
  border-color: rgba(30, 99, 255, 0.42);
  box-shadow: 0 18px 38px rgba(18, 32, 58, 0.1);
  transform: translateY(-3px);
}

.node.source,
.node.target {
  border-color: rgba(30, 99, 255, 0.35);
  box-shadow: 0 18px 36px rgba(30, 99, 255, 0.11);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  color: var(--blue);
  background: #edf3ff;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 820;
}

.node h2,
.node h3,
.steps h3,
.project-list h3,
.use-case-grid h3 {
  margin: 16px 0 8px;
  font-size: 1.06rem;
  line-height: 1.25;
}

.node p,
.steps p,
.project-list p,
.use-case-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.connector {
  position: relative;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  overflow: hidden;
}

.connector::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, white, transparent);
  content: "";
  opacity: 0.72;
  transform: translateX(-100%);
  animation: signal-run 2.8s ease-in-out infinite;
}

.board-footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.board-footer strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.use-cases,
.method-band,
.contact-band,
.testimonials-band {
  padding: 90px 0;
}

.use-cases {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 52px;
  align-items: start;
}

.split-heading h2,
.feasibility h2,
.method-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.split-heading p,
.method-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.use-case-grid article,
.steps article,
.project-list article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.use-case-grid article {
  min-height: 210px;
  padding: 24px;
}

.use-case-grid article,
.feasibility > div,
.steps article,
.project-list article,
.testimonial-list article,
.contact-form {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.use-case-grid article:hover,
.feasibility > div:hover,
.steps article:hover,
.project-list article:hover,
.testimonial-list article:hover,
.contact-form:hover {
  border-color: rgba(30, 99, 255, 0.28);
  box-shadow: 0 18px 42px rgba(18, 32, 58, 0.1);
  transform: translateY(-4px);
}

.use-case-grid span,
.project-list span {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.feasibility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 92px 0;
}

.feasibility > div {
  padding: clamp(28px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--slate);
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: white;
  background: var(--mint);
  border-radius: 50%;
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
}

.check-list.human li::before {
  color: var(--blue);
  background: #edf3ff;
  content: "!";
}

.method-band {
  color: white;
  background: #111827;
}

.method {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 54px;
  align-items: start;
}

.method-copy p {
  color: #aab4c4;
  margin-top: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.steps article {
  min-height: 188px;
  padding: 24px;
  color: white;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

.steps span {
  color: var(--mint);
  font-weight: 840;
}

.steps p {
  color: #aab4c4;
}

.projects {
  padding: 92px 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.project-list article {
  position: relative;
  min-height: 278px;
  padding: 26px;
  overflow: hidden;
}

.project-line {
  width: 100%;
  height: 4px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 999px;
  background-size: 180% 100%;
  animation: line-flow 5s ease-in-out infinite;
}

.project-list p {
  min-height: 104px;
  margin-bottom: 26px;
}

.testimonials-band {
  background: #eef4ff;
  border-top: 1px solid var(--line);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.testimonial-list article {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--paper);
  border: 1px solid #cfddf3;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(18, 32, 58, 0.08);
}

.testimonial-list article::before {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: var(--blue);
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.8;
}

.testimonial-list p {
  margin: 0;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.7;
}

.testimonial-list strong,
.testimonial-list span {
  display: block;
}

.testimonial-list strong {
  margin-top: 26px;
  font-size: 0.98rem;
}

.testimonial-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact p {
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 8px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 760;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 0.98rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 99, 255, 0.11);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: #087a5e;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 68px 34px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 179, 134, 0.42);
  }

  72% {
    box-shadow: 0 0 0 10px rgba(0, 179, 134, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 179, 134, 0);
  }
}

@keyframes signal-run {
  0%,
  22% {
    transform: translateX(-100%);
  }

  70%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes line-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

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

  .main-nav {
    display: none;
  }

  .hero,
  .split-heading,
  .feasibility,
  .method,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .automation-board {
    max-width: 680px;
  }

  .use-case-grid,
  .project-list,
  .testimonial-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-logo {
    width: 170px;
    height: 48px;
  }

  .nav-cta {
    padding: 10px;
    font-size: 0.78rem;
  }

  .nav-cta {
    font-size: 0;
  }

  .nav-cta::after {
    content: "Projet";
    font-size: 0.78rem;
  }

  .section-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero.section-shell {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-right: 48px;
  }

  .hero > * {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.18rem);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .hero-copy p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-copy,
  .hero-actions,
  .automation-board {
    width: min(100%, 326px);
    max-width: calc(100vw - 64px);
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .flow-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .board-header {
    gap: 12px;
  }

  .automation-board {
    padding: 18px;
  }

  .status {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .connector {
    width: 2px;
    height: 28px;
    margin-inline: auto;
  }

  .flow-row.lower {
    transform: none;
  }

  .use-case-grid,
  .project-list,
  .testimonial-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .use-cases,
  .method-band,
  .contact-band,
  .testimonials-band,
  .projects,
  .feasibility {
    padding: 64px 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
