/* =========================================================
   TEKNOVA — feuille de styles
   Même structure que la version d'origine, design modernisé.
   ========================================================= */

:root {
  --green: #55c915;
  --green-bright: #6ee02a;
  --green-dark: #2a8a0a;
  --green-soft: #ecf8e4;
  --night: #04100e;
  --night-2: #0a1b18;
  --night-3: #12261f;
  --ink: #0d1a17;
  --muted: #56645f;
  --line: #e2e9e5;
  --surface: #ffffff;
  --soft: #f3f6f4;
  --max: 1320px;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
  font-stretch: 112%;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 12px clamp(18px, 3vw, 40px);
  background: rgba(4, 16, 14, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 16, 14, 0.94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: grid;
  gap: 5px;
}

.brand span,
.footer-brand span {
  color: var(--green);
  font-size: 30px;
  line-height: 0.9;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}

.brand small,
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.main-nav {
  justify-content: center;
  gap: 4px;
  justify-self: center;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a.active {
  color: var(--night);
  background: var(--green);
}

.header-actions {
  gap: 20px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--green);
}

.header-link svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* ---------- Boutons ---------- */

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-primary {
  color: var(--night);
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(85, 201, 21, 0);
}

.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 10px 30px rgba(85, 201, 21, 0.32);
  transform: translateY(-1px);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(85, 201, 21, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(85, 201, 21, 0.08), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  min-height: min(720px, calc(100vh - var(--header-h)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 56px) clamp(120px, 12vw, 150px);
}

.hero-copy {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(85, 201, 21, 0.35);
  border-radius: 999px;
  background: rgba(85, 201, 21, 0.08);
  color: #d6f5c3;
  font-size: 13px;
  font-weight: 600;
}

.hero-tag svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Composition produit : cadre de scan biométrique */

.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.scan-frame {
  position: relative;
  width: min(340px, 82%);
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-main {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid var(--green);
  z-index: 2;
}

.corner-tl {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 28px;
}

.corner-tr {
  top: -2px;
  right: -2px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 28px;
}

.corner-bl {
  bottom: -2px;
  left: -2px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 28px;
}

.corner-br {
  bottom: -2px;
  right: -2px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 28px;
}

.scan-line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  z-index: 2;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 18px 4px rgba(85, 201, 21, 0.55);
  animation: scan 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes scan {
  0%,
  100% {
    top: 18px;
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
  50% {
    top: calc(100% - 20px);
  }
}

.device-float {
  position: absolute;
  width: 128px;
  height: 128px;
  object-fit: contain;
  z-index: 3;
}

.device-float-one {
  left: 0;
  bottom: 40px;
}

.device-float-two {
  right: 0;
  top: 30px;
}

.device-status {
  position: absolute;
  right: 4%;
  bottom: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 27, 24, 0.9);
  border: 1px solid rgba(85, 201, 21, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.device-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(85, 201, 21, 0.2);
}

/* ---------- Bande de confiance ---------- */

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: -72px auto 0;
  width: calc(100% - clamp(40px, 8vw, 112px));
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(4, 16, 14, 0.14);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item svg {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 4vw, 56px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-heading span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
}

.section-heading span::before,
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---------- Solutions ---------- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 172px 28px 28px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(85, 201, 21, 0.16), transparent 55%),
    linear-gradient(160deg, var(--night-3) 0%, var(--night) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 65%);
  mask-image: radial-gradient(circle at 85% 15%, #000, transparent 65%);
}

/* Vignette produit sur fond blanc, en haut à droite */
.solution-card img,
.card-tile {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 140px;
  height: 140px;
  transition: transform 0.4s ease;
}

.solution-card img {
  object-fit: contain;
}

.card-tile {
  display: grid;
  place-items: center;
  color: var(--green);
}

.card-tile svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.5;
}

.solution-card > svg {
  position: absolute;
  top: 26px;
  left: 28px;
  width: 50px;
  height: 50px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(85, 201, 21, 0.14);
  border: 1px solid rgba(85, 201, 21, 0.3);
  color: var(--green);
}

.solution-card h3 {
  margin: 0 56px 8px 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.solution-card p {
  margin: 0 56px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.solution-card a {
  position: absolute;
  right: 24px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.solution-card a svg {
  width: 20px;
  height: 20px;
}

.solution-card:hover img,
.solution-card:hover .card-tile {
  transform: translateY(-4px) rotate(-2deg);
}

.solution-card:hover a {
  background: var(--green);
  color: var(--night);
  transform: rotate(45deg);
}

/* ---------- Bande logiciels ---------- */

.software-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 44px 0 16px;
}

.software-head strong {
  font-size: 20px;
  font-weight: 800;
  font-stretch: 112%;
}

.software-head span {
  color: var(--muted);
  font-size: 15px;
}

.software-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  overflow: hidden;
}

.software-item {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.software-item:last-child {
  border-right: 0;
}

.software-item strong {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
}

.software-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .software-strip {
    grid-template-columns: 1fr 1fr;
  }

  .software-item:nth-child(2) {
    border-right: 0;
  }

  .software-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .software-strip {
    grid-template-columns: 1fr;
  }

  .software-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .software-item:last-child {
    border-bottom: 0;
  }
}

/* ---------- Partenaires ---------- */

.partner-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(72px, 9vw, 112px);
}

.partner-scroll {
  display: flex;
  justify-content: center;
}

.partner-card {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 50%, var(--green-soft), transparent 45%),
    #fff;
}

.partner-logo {
  padding-right: clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--line);
  color: #232829;
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.partner-logo span {
  color: var(--green);
  font-style: italic;
}

.partner-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
}

.partner-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.partner-facts li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .partner-facts {
    justify-content: center;
  }
}

.partner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Catalogue produits (vitrine défilante) ---------- */

.products {
  position: relative;
  max-width: none;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 60% at 15% 0%, rgba(85, 201, 21, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(85, 201, 21, 0.1), transparent 70%),
    var(--night);
}

.products-head {
  max-width: var(--max);
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  gap: 32px;
  align-items: end;
}

.products-head .section-heading {
  margin: 0;
  text-align: left;
}

.products .section-heading span {
  color: var(--green);
}

.products .section-heading h2 {
  color: #fff;
}

.products-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.65;
}

.product-marquee {
  overflow: hidden;
  padding: 8px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.product-carousel {
  width: max-content;
  display: flex;
  gap: 24px;
  animation: product-marquee 90s linear infinite;
}

.product-marquee:hover .product-carousel,
.product-marquee:focus-within .product-carousel {
  animation-play-state: paused;
}

@keyframes product-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

.product-card {
  width: 240px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Produits détourés, posés directement sur le fond */
.product-media {
  position: relative;
  height: 240px;
  isolation: isolate;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.5s ease;
}



.product-card:hover .product-media img {
  transform: translateY(-6px) scale(1.04);
}

.product-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.product-card h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.25;
}

.product-body span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.product-quote {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-quote svg {
  width: 18px;
  height: 18px;
}

.product-card:hover .product-quote,
.product-quote:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--night);
  transform: rotate(45deg);
}

.products .catalog-note {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 980px) {
  .products-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .product-card {
    width: 200px;
    flex-basis: 200px;
  }

  .product-media {
    height: 200px;
  }
}

/* ---------- À propos ---------- */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.about p:not(.eyebrow),
.contact p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.check-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check-list li:hover {
  border-color: rgba(85, 201, 21, 0.5);
  background: #fbfdfa;
}

.check-list svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--green);
  color: var(--night);
}

/* ---------- Contact ---------- */

.contact-wrap {
  padding: 0 clamp(12px, 2.5vw, 32px) clamp(12px, 2.5vw, 32px);
}

.contact {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(85, 201, 21, 0.18), transparent 70%),
    var(--night-2);
}

.contact .eyebrow {
  color: var(--green);
}

.contact p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-size: 17px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--green);
}

.contact-links svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--green);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--soft);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #8a9692;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(85, 201, 21, 0.18);
}

.quote-form textarea {
  resize: vertical;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.form-actions .btn {
  width: 100%;
  padding: 0 18px;
}

.form-actions .btn:hover svg {
  transform: none;
}

.btn-whatsapp {
  color: #fff;
  background: #1fa855;
}

.btn-whatsapp:hover {
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.contact .quote-form .form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-links .whatsapp-link svg {
  color: #25d366;
}

/* ---------- Pied de page ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 40px clamp(20px, 4vw, 56px);
  color: var(--muted);
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

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

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.footer-top:hover {
  border-color: var(--green);
}

.footer-top svg {
  width: 16px;
  height: 16px;
}

/* ---------- Mouvement réduit ---------- */

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

  .scan-line {
    animation: none;
    opacity: 0;
  }

  .product-carousel {
    animation: none;
  }

  .product-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

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

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
  }

  .site-header.nav-open .main-nav {
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 18px;
  }

  .site-header.nav-open .main-nav a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .site-header.nav-open .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 8px;
  }

  .site-header.nav-open .header-link {
    padding: 4px 6px;
    font-size: 15px;
  }
}

@media (max-width: 1080px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .hero-content,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 0;
    padding-bottom: 130px;
  }

  .hero-device {
    min-height: 400px;
    width: min(100%, 460px);
    justify-self: center;
  }

  .partner-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .partner-logo {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand span,
  .footer-brand span {
    font-size: 26px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero-content {
    padding: 48px 20px 120px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-device {
    min-height: 340px;
  }

  .device-float {
    width: 92px;
    height: 92px;
  }

  .device-status {
    font-size: 12px;
    padding: 8px 13px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

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

  .solution-card {
    min-height: 0;
    padding-top: 148px;
  }

  .solution-card img,
  .card-tile {
    width: 112px;
    height: 112px;
  }

  .partner-card .btn {
    width: 100%;
  }

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

  .contact {
    border-radius: 24px;
    padding: 36px 22px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* L'e-mail de l'en-tête reste visible dans le menu mobile et le pied de page */
@media (max-width: 1720px) and (min-width: 1401px) {
  .header-email {
    display: none;
  }

  .site-header {
    gap: 20px;
  }
}

/* ---------- Logos (images) ---------- */

.brand {
  grid-template-columns: auto;
  gap: 3px;
}

.brand img {
  width: auto;
  height: 46px;
  transition: filter 0.3s ease;
}

.brand:hover img {
}

/* le slogan s'aligne sous le mot TEKNOVA, à droite de l'icône */
.brand small {
  margin-top: -13px;
  padding-left: calc(46px * 86 / 64);
}

.brand small b {
  color: var(--green);
  font-weight: 600;
}

.footer-brand img {
  width: auto;
  height: 34px;
}

.partner-logo img {
  width: clamp(170px, 18vw, 220px);
  height: auto;
}

@media (max-width: 640px) {
  .brand img {
    height: 38px;
  }

  .brand small {
    margin-top: -10px;
    padding-left: calc(38px * 86 / 64);
  }
}

/* Très petits écrans */
.contact-links a {
  overflow-wrap: anywhere;
}

.site-header > .brand {
  min-width: 0;
}

@media (max-width: 380px) {
  .brand small {
    display: none;
  }

  .contact-links a {
    font-size: 15px;
  }
}

/* ---------- Besoins : choix multiple ---------- */

.need-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.need-group legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.need-group legend small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.need-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-form .need-chip {
  display: inline-flex;
  position: relative;
  gap: 0;
  font-weight: 500;
  cursor: pointer;
}

.need-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.need-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.need-chip:hover span {
  border-color: var(--green);
}

.need-chip input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}

.need-chip input:checked + span::before {
  content: "✓";
  font-weight: 800;
}

.need-chip input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.need-error {
  margin: 10px 0 0;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
}

.contact .quote-form .need-error {
  max-width: none;
  margin: 10px 0 0;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.4;
}
