:root {
  --ink: #15191d;
  --ink-soft: #242b31;
  --paper: #f4f0e7;
  --paper-2: #fffaf0;
  --white: #ffffff;
  --muted: #66717c;
  --line: #d8d0bf;
  --line-dark: rgba(255, 255, 255, 0.18);
  --teal: #0f7f75;
  --teal-dark: #09564f;
  --blue: #2346a0;
  --copper: #bd5b24;
  --red: #d9432f;
  --amber: #f4c95d;
  --shadow: 0 28px 80px rgba(21, 25, 29, 0.18);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 860px;
  color: var(--white);
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 46px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 23px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-inner {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  background: rgba(244, 240, 231, 0.95);
  border-bottom: 1px solid rgba(216, 208, 191, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 176px;
}

.brand-logo {
  width: 184px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #4d5964;
  font-size: 14px;
  font-weight: 820;
}

.main-nav a:hover,
.text-link:hover,
.mail-link:hover {
  color: var(--teal);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 860;
  white-space: nowrap;
}

.header-cta-short {
  display: none;
}

.header-cta:hover {
  color: var(--white);
  background: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 74px 0 0;
  z-index: 25;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px max(22px, calc((100vw - 1180px) / 2)) 32px;
  background: rgba(244, 240, 231, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  animation: mobile-nav-in 200ms ease;
}

.mobile-nav[hidden] {
  display: none;
}

@keyframes mobile-nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-nav nav {
  display: grid;
}

.mobile-nav nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mobile-nav .button {
  margin-top: 18px;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 84px 0 72px;
  background: var(--ink);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("./assets/screenshots/hero-gestion-chantier.webp");
  background-size: cover;
  background-position: center top;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 25, 29, 0.92), rgba(21, 25, 29, 0.68) 46%, rgba(21, 25, 29, 0.32)),
    linear-gradient(0deg, rgba(21, 25, 29, 0.62), rgba(21, 25, 29, 0.1) 48%);
}

.hero-content {
  display: grid;
  gap: 24px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow,
.rail-section .eyebrow {
  color: #8ee4d6;
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 18px 38px rgba(15, 127, 117, 0.25);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
}

.signal-strip {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid rgba(21, 25, 29, 0.12);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid div {
  min-height: 138px;
  padding: 24px 20px;
  border-left: 1px solid var(--line-dark);
}

.signal-grid div:last-child {
  border-right: 1px solid var(--line-dark);
}

.signal-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.signal-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.problem-section {
  background: var(--paper);
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 70px;
  align-items: start;
}

.section-title {
  display: grid;
  gap: 16px;
}

.section-title.wide {
  max-width: 900px;
  margin-bottom: 38px;
}

.problem-copy {
  display: grid;
  gap: 20px;
  padding-top: 8px;
}

.problem-copy p {
  font-size: 19px;
}

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

.friction-header {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 34px;
}

.friction-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.friction-board article {
  min-height: 330px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.friction-board article:first-child {
  border-left: 0;
}

.friction-board span,
.offer-type {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.friction-board p {
  margin-top: 18px;
  font-size: 15px;
}

.offer-section {
  background: var(--paper);
}

.offer-list {
  display: grid;
  border-top: 2px solid var(--ink);
}

.offer-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.offer-index {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.offer-row p {
  font-size: 16px;
}

.price-block {
  justify-self: end;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.price-block strong {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-block span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 820;
}

.price-block-light {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.price-block-light strong {
  color: var(--teal-dark);
}

.price-block-light span {
  color: var(--muted);
}

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

.cadrage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 64px;
  align-items: start;
}

.cadrage-grid h2 {
  margin-top: 16px;
}

.cadrage-grid p {
  margin-top: 22px;
  font-size: 18px;
}

.deliverables {
  display: grid;
  border: 1px solid rgba(15, 127, 117, 0.22);
  background: rgba(255, 255, 255, 0.64);
}

.deliverables div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 24px;
  border-top: 1px solid rgba(15, 127, 117, 0.18);
}

.deliverables div:first-child {
  border-top: 0;
}

.deliverables span {
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 920;
  text-transform: uppercase;
}

.deliverables p {
  margin: 0;
  font-size: 16px;
}

.method-section {
  color: var(--white);
  background: var(--ink);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 70px;
  align-items: start;
}

.method-copy {
  display: grid;
  gap: 16px;
}

.method-copy h2 {
  color: var(--white);
}

.method-copy .eyebrow {
  color: #8ee4d6;
}

.method-steps {
  display: grid;
  gap: 14px;
}

.method-steps article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}

.method-steps article:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.method-steps span {
  color: var(--amber);
  font-size: 17px;
  font-weight: 940;
}

.method-steps p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.product-section {
  background: linear-gradient(165deg, #d3ece5 0%, #b6ddd2 100%);
  border-top: 1px solid rgba(15, 127, 117, 0.28);
  border-bottom: 1px solid rgba(15, 127, 117, 0.3);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.product-copy {
  display: grid;
  gap: 18px;
}

.product-copy p:not(.eyebrow) {
  font-size: 18px;
}

.product-benefits {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.product-benefits li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.product-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--teal-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 800;
}

.product-frame {
  overflow: hidden;
  border: 1px solid rgba(21, 25, 29, 0.12);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.product-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.showcase-section {
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.showcase-copy {
  display: grid;
  gap: 18px;
}

.showcase-copy .eyebrow {
  color: #8ee4d6;
}

.showcase-copy h2 {
  color: var(--white);
  max-width: 560px;
}

.showcase-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.showcase-note {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.56) !important;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.showcase-tags span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 860;
}

.showcase-device {
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b3238, #14171b 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.device-frame img {
  width: 100%;
  border-radius: 33px;
  display: block;
}

.trust-section {
  padding: 76px 0;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.trust-layout {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.trust-section .eyebrow {
  color: #8ee4d6;
}

.trust-section h2 {
  margin-top: 16px;
  color: var(--white);
  max-width: 760px;
  font-size: 40px;
  overflow-wrap: break-word;
}

.trust-intro {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  overflow-wrap: break-word;
}

.trust-head {
  max-width: 760px;
  min-width: 0;
}

.trust-subhead {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.traction-strip {
  display: grid;
  min-width: 0;
}

.traction-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 34px 36px;
  border: 1px solid rgba(142, 228, 214, 0.28);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(15, 127, 117, 0.2), rgba(255, 255, 255, 0.03));
}

.traction-card strong {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.traction-card span {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.partner-block {
  min-width: 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.partner-carousel {
  min-width: 0;
  overflow: hidden;
}

.partner-carousel-controls {
  display: none;
}

.partner-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow-wrap: break-word;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

a.partner-card:hover {
  transform: translateY(-1px);
  border-color: rgba(142, 228, 214, 0.42);
  background: rgba(255, 255, 255, 0.055);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.partner-logo-light {
  background: rgba(255, 255, 255, 0.94);
}

.partner-logo img {
  max-width: 64px;
  max-height: 46px;
  object-fit: contain;
}

.logo-mark {
  color: var(--amber);
  font-size: 24px;
  font-weight: 950;
}

.partner-card > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.partner-card > div:last-of-type {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.partner-card h3 {
  color: var(--white);
  font-size: 19px;
}

.partner-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

.partner-site {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  color: #8ee4d6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.carousel-count {
  min-width: 58px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.rail-section {
  background: var(--ink);
  border-top: 6px solid var(--red);
}

.rail-layout {
  display: grid;
  gap: 22px;
}

.rail-section h2 {
  max-width: 920px;
  color: var(--white);
}

.rail-section p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sector-tags span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 860;
}

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

.team-layout {
  display: grid;
  gap: 44px;
}

.team-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

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

.team-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.team-photo {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  display: grid;
  gap: 6px;
}

.team-info h3 {
  font-size: 24px;
}

.team-role {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.team-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team-info p:last-child {
  margin-top: 10px;
  font-size: 15px;
}

.contact-section {
  padding: 92px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 60px;
  align-items: start;
}

.contact-layout h2 {
  margin-top: 16px;
  max-width: 760px;
}

.contact-intro {
  max-width: 620px;
  margin-top: 22px;
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-2);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field textarea {
  min-height: 138px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 127, 117, 0.14);
}

.form-field textarea::placeholder {
  color: #8b949e;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: var(--teal-dark);
  background: rgba(15, 127, 117, 0.12);
}

.form-status.is-error {
  color: #9f2b1f;
  background: rgba(217, 67, 47, 0.12);
}

.contact-submit {
  width: 100%;
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

/* Panneau de confirmation (remplace le formulaire au succès) */
.contact-form[hidden],
.contact-success[hidden] {
  display: none;
}

.contact-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: 54px 36px;
  border: 1px solid rgba(15, 127, 117, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(15, 127, 117, 0.1), rgba(255, 255, 255, 0) 62%),
    var(--white);
  box-shadow: 0 24px 60px rgba(15, 127, 117, 0.14);
}

.contact-success.is-shown {
  animation: contact-success-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-success-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 14px 30px rgba(15, 127, 117, 0.35);
}

.contact-success.is-shown .contact-success-badge {
  animation: contact-badge-pop 620ms cubic-bezier(0.22, 1.4, 0.4, 1) 80ms both;
}

.contact-success-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--teal);
  opacity: 0;
}

.contact-success.is-shown .contact-success-badge::after {
  animation: contact-badge-ring 900ms ease-out 320ms both;
}

.contact-success-badge svg {
  width: 38px;
  height: 38px;
}

.contact-success.is-shown .contact-success-badge svg path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: contact-check-draw 420ms ease-out 360ms forwards;
}

.contact-success h3 {
  font-size: 26px;
  color: var(--ink);
}

.contact-success > p {
  max-width: 360px;
  font-size: 16px;
}

.contact-success-meta {
  font-size: 14px;
  color: var(--muted);
}

@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes contact-badge-pop {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes contact-badge-ring {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0; transform: scale(1.5); }
}

@keyframes contact-check-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-success.is-shown,
  .contact-success.is-shown .contact-success-badge,
  .contact-success.is-shown .contact-success-badge::after,
  .contact-success.is-shown .contact-success-badge svg path {
    animation: none;
  }
  .contact-success.is-shown .contact-success-badge svg path {
    stroke-dashoffset: 0;
  }
}

.form-footnote {
  font-size: 14px;
  line-height: 1.55;
}

.mail-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 880;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #111417;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  font-weight: 820;
}

.footer-logo {
  width: 132px;
  height: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--white);
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 104px 0 52px;
  background:
    linear-gradient(90deg, rgba(21, 25, 29, 0.9), rgba(21, 25, 29, 0.74)),
    url("./assets/screenshots/hero-gestion-chantier.webp") center top / cover;
}

.legal-hero h1 {
  margin-top: 18px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 72px);
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.legal-content {
  padding: 64px 0 92px;
}

.legal-stack {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.legal-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.legal-card p,
.legal-card li,
.legal-card dd {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-card p + p {
  margin-top: 14px;
}

.legal-card a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-list dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.legal-list dd {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover,
  a.partner-card:hover {
    transform: none;
  }
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .site-header {
    gap: 12px;
  }

  .header-cta {
    display: inline-flex;
    margin-left: auto;
    min-height: 40px;
    padding: 0 16px;
    border-color: transparent;
    color: var(--white);
    background: var(--teal);
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(15, 127, 117, 0.26);
  }

  .header-cta:hover {
    color: var(--white);
    background: var(--teal-dark);
  }

  .header-cta-full {
    display: none;
  }

  .header-cta-short {
    display: inline;
  }

  .nav-toggle {
    display: flex;
    margin-left: 8px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .problem-grid,
  .cadrage-grid,
  .method-grid,
  .product-layout,
  .showcase-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase-device {
    order: -1;
  }

  .friction-board {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .friction-board article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .friction-board article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .offer-row {
    grid-template-columns: 64px 1fr;
  }

  .offer-row > p,
  .price-block {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .signal-grid div:nth-child(3) {
    border-top: 1px solid var(--line-dark);
  }

  .signal-grid div:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .section-inner {
    width: min(calc(100% - 28px), 1180px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 142px;
  }

  .mobile-nav {
    inset: 66px 0 0;
    padding: 14px 14px 28px;
  }

  .hero {
    min-height: 570px;
    padding: 54px 0 44px;
  }

  .hero-media {
    background-position: 58% top;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(21, 25, 29, 0.95), rgba(21, 25, 29, 0.82)),
      linear-gradient(0deg, rgba(21, 25, 29, 0.65), rgba(21, 25, 29, 0.08));
  }

  h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 21px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-grid,
  .friction-board {
    grid-template-columns: 1fr;
  }

  .signal-grid div,
  .signal-grid div:last-child {
    min-height: 116px;
    border-right: 1px solid var(--line-dark);
    border-top: 1px solid var(--line-dark);
  }

  .signal-grid div:first-child {
    border-top: 0;
  }

  .section {
    padding: 68px 0;
  }

  .problem-copy p,
  .rail-section p:not(.eyebrow),
  .product-copy p:not(.eyebrow),
  .showcase-copy p,
  .cadrage-grid p {
    font-size: 17px;
  }

  .problem-grid > *,
  .product-layout > *,
  .showcase-layout > *,
  .cadrage-grid > *,
  .method-grid > *,
  .contact-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .device-frame {
    width: min(300px, 100%);
  }

  .showcase-copy h2,
  .showcase-copy p,
  .showcase-tags span {
    overflow-wrap: break-word;
  }

  .showcase-tags span {
    max-width: 100%;
    white-space: normal;
  }

  .friction-board article,
  .friction-board article:nth-child(2),
  .friction-board article:nth-child(3),
  .friction-board article:nth-child(4) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .friction-board article:first-child {
    border-top: 0;
  }

  .offer-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .offer-row > p,
  .price-block {
    grid-column: auto;
  }

  .price-block {
    width: 100%;
  }

  .deliverables div,
  .method-steps article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .team-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .client-feature {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-section {
    padding: 68px 0;
  }

  .trust-section {
    padding: 58px 0;
  }

  .trust-layout {
    gap: 28px;
  }

  .trust-head,
  .trust-section h2,
  .trust-intro {
    max-width: 100%;
  }

  .trust-section h2 {
    font-size: clamp(24px, 8vw, 28px);
    line-height: 1.12;
  }

  .trust-intro {
    font-size: 16px;
    line-height: 1.65;
  }

  .traction-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 8px;
  }

  .traction-card strong {
    font-size: clamp(31px, 11vw, 38px);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .traction-card span {
    max-width: none;
    font-size: 16px;
  }

  .partner-carousel {
    width: 100%;
    max-width: 100%;
  }

  .partner-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .partner-grid::-webkit-scrollbar {
    display: none;
  }

  .partner-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-rows: auto 1fr;
    min-height: 0;
    padding: 16px;
    scroll-snap-align: start;
  }

  .partner-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
  }

  .partner-logo {
    width: 68px;
    height: 68px;
  }

  .partner-logo img {
    max-width: 54px;
    max-height: 38px;
  }

  .logo-mark {
    font-size: 19px;
  }

  .partner-card h3 {
    font-size: 18px;
  }

  .partner-card p {
    font-size: 13px;
  }

  .contact-form {
    padding: 20px;
  }

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

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

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 8px;
    padding: 0 10px;
  }

  .brand-logo {
    width: 118px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: 4px;
    padding: 0 9px;
  }

  .legal-hero {
    padding: 76px 0 42px;
  }

  .legal-content {
    padding: 38px 0 64px;
  }

  .legal-card {
    padding: 20px;
  }

  .legal-card h2 {
    font-size: 24px;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
