:root {
  --ink: #141719;
  --paper: #f3f5f2;
  --paper-2: #e5ebe5;
  --panel: #fffefd;
  --muted: #68645c;
  --line: rgba(20, 23, 25, 0.14);
  --dark: #3f4240;
  --dark-2: #595c59;
  --oxide: #6c706d;
  --safety: #a6a6a6;
  --green: #6f746f;
  --blue: #777b78;
  --shadow: 0 28px 80px rgba(64, 66, 64, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

#btp,
#domotique,
#acquisition,
#contact {
  scroll-margin-top: 5.8rem;
}

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

.skip-link:focus {
  z-index: 100;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--dark);
  border-radius: 6px;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.2rem;
  color: #fff;
  background: rgba(63, 66, 64, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.topbar.is-scrolled {
  box-shadow: 0 18px 45px rgba(17, 20, 23, 0.22);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.72rem;
}

.brand-logo {
  width: 4.85rem;
  height: 4.05rem;
  object-fit: contain;
  padding: 0.18rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.hero-logo {
  width: 9rem;
  height: auto;
  margin-bottom: 1.6rem;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(64, 66, 64, 0.14));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
}

.brand small {
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
}

.site-nav a {
  padding: 0.75rem 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.12rem;
  height: 2px;
  margin: 0.17rem auto;
  background: #fff;
}

.hero-shell {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.86fr);
  gap: 1rem;
  padding: 6.2rem 1rem 1rem;
  background:
    linear-gradient(90deg, rgba(20, 23, 25, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 23, 25, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.hero-copy {
  display: flex;
  height: clamp(600px, calc(100vh - 7.2rem), 720px);
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 3.5vw, 4.2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--oxide);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-title h2,
.deep-content h2,
.systems-head h2,
.acquisition-copy h2,
.network-section h2,
.cta-content h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 880px;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 1.3rem 0 0;
  color: #403d37;
  font-size: 1.17rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: var(--dark-2);
  box-shadow: 0 18px 35px rgba(89, 92, 89, 0.26);
}

.button-secondary {
  color: var(--dark);
  background: transparent;
  border-color: rgba(20, 23, 25, 0.22);
}

.hero-visual {
  position: relative;
  height: clamp(600px, calc(100vh - 7.2rem), 720px);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(17, 20, 23, 0.74) 0%, rgba(17, 20, 23, 0) 48%),
    linear-gradient(90deg, rgba(17, 20, 23, 0.35), rgba(17, 20, 23, 0));
}

.scan-card {
  position: absolute;
  z-index: 2;
  width: min(390px, calc(100% - 2rem));
  padding: 1rem;
  color: #fff;
  background: rgba(17, 20, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.scan-card span,
.scan-card strong {
  display: block;
}

.scan-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scan-card strong {
  margin-top: 0.25rem;
  font-size: 1.2rem;
  line-height: 1.18;
}

.scan-card-main {
  left: 1rem;
  bottom: 1rem;
}

.scan-card-side {
  top: 1rem;
  right: 1rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--dark);
}

.signal-strip p {
  min-height: 5.8rem;
  margin: 0;
  padding: 1rem;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(0.94rem, 1.3vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
}

.signal-strip p:last-child {
  border-right: 0;
}

.section,
.systems-section,
.acquisition-section,
.network-section,
.proof-lab,
.cta-section,
.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.section-title {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-title h2,
.deep-content h2,
.systems-head h2,
.acquisition-copy h2,
.network-section h2,
.cta-content h2 {
  font-size: clamp(2.3rem, 4.8vw, 5rem);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.diagnostic-grid article {
  min-height: 330px;
  padding: 1.25rem;
  background: #fffdf7;
}

.diagnostic-grid span {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--dark);
  background: var(--safety);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 950;
}

.diagnostic-grid h3,
.systems-matrix h3,
.proof-lab h3 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  line-height: 1.14;
}

.diagnostic-grid p,
.deep-content p,
.systems-head p,
.systems-matrix p,
.acquisition-copy p,
.network-section p,
.proof-lab p,
.cta-content p {
  color: var(--muted);
}

.deep-section {
  display: grid;
  min-height: 760px;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--dark);
}

.deep-image,
.systems-panel,
.proof-lab article,
.cta-section {
  overflow: hidden;
  border-radius: 8px;
}

.deep-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4.5rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(29, 35, 37, 0.96), rgba(17, 20, 23, 0.98)),
    var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.deep-content .eyebrow,
.cta-content .eyebrow {
  color: var(--safety);
}

.deep-content p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.spec-list div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

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

.spec-list span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
}

.systems-section {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.systems-head {
  display: grid;
  grid-template-columns: 0.3fr 0.45fr 0.25fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.systems-head p:not(.eyebrow) {
  margin: 0;
  font-size: 1.08rem;
}

.systems-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 1rem;
}

.systems-panel {
  min-height: 620px;
}

.systems-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.systems-matrix article {
  min-height: 302px;
  padding: 1.35rem;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.systems-matrix article:nth-child(2) {
  background: #e7efe5;
}

.systems-matrix article:nth-child(3) {
  background: #edf0f1;
}

.systems-matrix article:nth-child(4) {
  background: #f2e5d9;
}

.acquisition-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
  align-items: stretch;
  padding-top: 1rem;
  padding-bottom: 6.5rem;
}

.acquisition-copy {
  padding: 2rem;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}

.acquisition-copy .eyebrow {
  color: #ffdc72;
}

.acquisition-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.acquisition-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.acquisition-board article {
  min-height: 210px;
  padding: 1.3rem;
  background: var(--panel);
}

.acquisition-board span,
.acquisition-board strong {
  display: block;
}

.acquisition-board span {
  color: var(--oxide);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.acquisition-board strong {
  max-width: 320px;
  margin-top: 1rem;
  font-size: 1.45rem;
  line-height: 1.08;
}

.network-section {
  display: grid;
  grid-template-columns: 0.52fr 0.48fr;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.network-section p:not(.eyebrow) {
  margin: 0;
  align-self: end;
  font-size: 1.15rem;
}

.proof-lab {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.proof-lab article {
  display: grid;
  min-height: 560px;
  grid-template-rows: 1fr auto;
  background: #fffdf7;
  border: 1px solid var(--line);
}

.proof-lab article > div {
  padding: 1.5rem;
}

.proof-lab article img {
  min-height: 330px;
}

.cta-section {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  min-height: 520px;
  margin-bottom: 4rem;
  color: #fff;
  background: var(--dark);
}

.cta-media {
  background:
    linear-gradient(0deg, rgba(17, 20, 23, 0.22), rgba(17, 20, 23, 0.22)),
    url("assets/tableau-electrique.jpg") center / cover;
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.cta-content p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.cta-content .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--oxide);
  outline: none;
}

.legal-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8rem 1rem 5rem;
}

.legal-hero {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-content {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.legal-block {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fffefd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
}

.legal-block p {
  margin: 0.6rem 0 0;
}

.legal-block ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.2rem;
}

.legal-block strong {
  color: var(--ink);
}

@media (max-width: 1060px) {
  .hero-shell,
  .deep-section,
  .systems-layout,
  .acquisition-section,
  .network-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-copy,
  .hero-visual {
    min-height: 620px;
  }

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

  .systems-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 4.7rem;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 1rem;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 4.2rem;
    height: 3.5rem;
  }

  .hero-shell {
    padding: 5.8rem 0.7rem 0.7rem;
  }

  .hero-copy,
  .hero-visual {
    height: auto;
    min-height: auto;
  }

  .hero-copy {
    padding: 2rem 1rem;
  }

  .hero-logo {
    width: 7.6rem;
    margin-bottom: 1.2rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-visual {
    height: 520px;
  }

  .scan-card-side {
    top: auto;
    right: auto;
    left: 1rem;
    bottom: 7.3rem;
  }

  .signal-strip,
  .section-title,
  .systems-matrix,
  .acquisition-board,
  .proof-lab {
    grid-template-columns: 1fr;
  }

  .signal-strip p {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section,
  .systems-section,
  .proof-lab {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

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

  .diagnostic-grid article,
  .systems-matrix article,
  .acquisition-board article {
    min-height: auto;
  }

  .deep-section {
    min-height: auto;
    padding: 0.7rem;
  }

  .deep-image,
  .systems-panel {
    min-height: 430px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .acquisition-section,
  .network-section,
  .cta-section {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .network-section {
    gap: 1.5rem;
  }

  .cta-media {
    min-height: 280px;
  }

  .contact-actions,
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 0.92rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .section-title h2,
  .deep-content h2,
  .systems-head h2,
  .acquisition-copy h2,
  .network-section h2,
  .cta-content h2 {
    font-size: 2.15rem;
  }

  .scan-card {
    width: calc(100% - 1.4rem);
    left: 0.7rem;
  }

  .scan-card-main {
    bottom: 0.7rem;
  }

  .scan-card-side {
    bottom: 6.9rem;
  }
}
