
/* =========================================================
   NEXTCOM — SITE VITRINE
   ---------------------------------------------------------
   POUR CHANGER LES IMAGES :
   Mets tes images dans /assets puis change uniquement
   les 4 lignes ci-dessous.
   ========================================================= */

:root {
  --hero-bg: url("assets/hero.jpg");
  --system-bg: url("assets/system.jpg");
  --fleet-bg: url("assets/fleet.jpg");
  --protocol-bg: url("assets/protocol.jpg");
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

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


/* =========================================================
   HEADER
   ========================================================= */

header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;

  height: 88px;
  padding: 0 4vw;

  display: flex;
  align-items: center;
  gap: 42px;

  background: linear-gradient(#0009, transparent);
  transition: 0.3s;
}

header.scrolled {
  background: #000d;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand b {
  font-size: 24px;
  letter-spacing: 0.14em;
}

.brand small {
  margin-top: 7px;
  font-size: 6px;
  letter-spacing: 0.34em;
  color: #bbb;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
.klark {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.klark {
  margin-left: auto;
  color: #bbb;
}


/* =========================================================
   SECTIONS PLEIN ÉCRAN
   ========================================================= */

.panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;

  display: flex;
  align-items: flex-end;

  padding: 0 7vw 10vh;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Overlay noir pour garder le texte lisible */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.42) 42%,
      rgba(0, 0, 0, 0.08) 75%
    );
}


/* =========================================================
   IMAGES DES SECTIONS
   ========================================================= */

.hero {
  background-image: var(--hero-bg);
}

.second {
  background-image: var(--system-bg);
}

.third {
  background-image: var(--fleet-bg);
}

.fourth {
  background-image: var(--protocol-bg);
}


/* =========================================================
   TEXTE DES SECTIONS
   ========================================================= */

.copy {
  position: relative;
  z-index: 5;
  max-width: 760px;
}

.copy p,
.product-copy p {
  margin: 0 0 14px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.copy h1,
.copy h2,
.product h2 {
  margin: 0 0 24px;

  font-size: clamp(56px, 7.7vw, 116px);
  line-height: 0.87;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.copy > span,
.product-copy > span {
  display: block;

  max-width: 600px;
  margin-bottom: 28px;

  color: #d0d0d0;
  line-height: 1.6;
  font-size: 16px;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.btn {
  width: 245px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;

  border: 2px solid #fff;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;

  transition: 0.2s;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.btn i {
  font-style: normal;
  font-size: 19px;
}


/* =========================================================
   HERO : PETIT INDICATEUR DE SCROLL
   ========================================================= */

.scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;

  width: 2px;
  height: 52px;

  background: #ffffff38;
}

.scroll::after {
  content: "";

  display: block;

  width: 2px;
  height: 22px;

  background: #fff;

  animation: scrollAnimation 1.5s infinite;
}

@keyframes scrollAnimation {
  from {
    transform: translateY(-24px);
  }

  to {
    transform: translateY(56px);
  }
}


/* =========================================================
   SECTION QRM-42
   ========================================================= */

.product {
  min-height: 100svh;

  padding: 9vh 7vw;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7vw;

  background: #f2f2f2;
  color: #090909;
}

.product-copy > span {
  color: #444;
}

.dark {
  border-color: #111;
}

.dark:hover {
  background: #111;
  color: #fff;
}

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

.device-shell {
  position: relative;

  width: min(560px, 90vw);
  aspect-ratio: 1.55;

  background: linear-gradient(145deg, #222, #0a0b0d);

  border-radius: 24px;

  box-shadow:
    0 35px 80px #0005,
    inset 0 0 0 1px #ffffff1c;

  clip-path: polygon(
    5% 0,
    90% 0,
    100% 13%,
    100% 86%,
    92% 100%,
    4% 100%,
    0 87%,
    0 12%
  );
}

.device-label {
  position: absolute;
  left: 14%;
  top: 27%;

  font-size: 20px;
  letter-spacing: 0.13em;
  color: #aaa;
}

.device-label strong {
  font-size: 38px;
  color: #eee;
  letter-spacing: 0.04em;
}

.device-label small {
  font-size: 12px;
}

.led {
  position: absolute;
  right: 17%;
  top: 42%;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: #7cff76;
  box-shadow: 0 0 16px #7cff76;
}

.rail {
  position: absolute;
  left: 0;
  top: 28%;

  width: 5%;
  height: 45%;

  background: #050505;
  border: 1px solid #555;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;

  margin-top: 36px;
}

.stats b {
  display: flex;
  flex-direction: column;

  font-size: 27px;
}

.stats small {
  margin-top: 5px;

  font-size: 8px;
  letter-spacing: 0.2em;

  color: #999;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  min-height: 110px;

  padding: 0 5vw;

  display: flex;
  align-items: center;
  gap: 30px;

  background: #fff;
  color: #111;

  font-size: 9px;
  letter-spacing: 0.08em;
}

footer span:last-child {
  margin-left: auto;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);

  transition: 0.8s;
}

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


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  nav,
  .klark {
    display: none;
  }

  header {
    height: 74px;
  }

  .panel {
    padding: 0 6vw 8vh;
  }

  .copy h1,
  .copy h2,
  .product h2 {
    font-size: clamp(50px, 14vw, 82px);
  }

  .product {
    grid-template-columns: 1fr;

    padding: 110px 6vw 70px;
  }

  .stats {
    gap: 20px;
  }

  footer {
    height: auto;

    padding: 28px 6vw;

    flex-direction: column;
    align-items: flex-start;
  }

  footer span:last-child {
    margin-left: 0;
  }
}
