/* Étude de cas NexFlow : parcours Services techniques et Traitement 3D. */

.nexflow-case-study {
  position: relative;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 0;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(127, 202, 255, .28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 139, 56, .14), transparent 34%),
    linear-gradient(145deg, rgba(19, 39, 57, .99), rgba(6, 15, 25, .99));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.nexflow-case-study::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(54, 168, 255, .1);
  filter: blur(18px);
  pointer-events: none;
}

.nexflow-case-copy {
  position: relative;
  z-index: 2;
  padding: 42px;
  border-right: 1px solid var(--line);
}

.nexflow-case-copy h3 {
  max-width: 560px;
  margin: 18px 0 16px;
  font-size: clamp(32px, 3.8vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.nexflow-case-copy > p {
  max-width: 650px;
  margin: 0;
  font-size: 16px;
}

.nexflow-case-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 27px 0 29px;
}

.nexflow-case-point {
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.nexflow-case-point strong,
.nexflow-case-point span {
  display: block;
}

.nexflow-case-point strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

.nexflow-case-point span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nexflow-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.nexflow-case-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
  padding: 30px;
  background:
    linear-gradient(120deg, rgba(54, 168, 255, .08), rgba(241, 139, 56, .06)),
    rgba(4, 11, 19, .52);
}

.nexflow-case-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: #07111d;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .32);
  transition: transform .25s ease, border-color .25s ease;
}

.nexflow-case-screen:first-child {
  transform: translateY(18px) rotate(-1.2deg);
}

.nexflow-case-screen:last-child {
  transform: translateY(-8px) rotate(1.2deg);
  border-color: rgba(241, 139, 56, .48);
}

.nexflow-case-visual:hover .nexflow-case-screen:first-child {
  transform: translateY(12px) rotate(-.6deg);
}

.nexflow-case-visual:hover .nexflow-case-screen:last-child {
  transform: translateY(-12px) rotate(.6deg);
}

.nexflow-case-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: #dce6ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nexflow-case-screen-head span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nexflow-case-screen img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  background: #102131;
}

.nexflow-case-screen:last-child img {
  object-position: 58% center;
}

@media (max-width: 1080px) {
  .nexflow-case-study {
    grid-template-columns: 1fr;
  }

  .nexflow-case-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nexflow-case-screen img {
    min-height: 330px;
  }
}

@media (max-width: 700px) {
  .nexflow-case-copy {
    padding: 25px;
  }

  .nexflow-case-copy h3 {
    font-size: 34px;
  }

  .nexflow-case-points,
  .nexflow-case-visual {
    grid-template-columns: 1fr;
  }

  .nexflow-case-visual {
    padding: 17px;
  }

  .nexflow-case-screen:first-child,
  .nexflow-case-screen:last-child,
  .nexflow-case-visual:hover .nexflow-case-screen:first-child,
  .nexflow-case-visual:hover .nexflow-case-screen:last-child {
    transform: none;
  }

  .nexflow-case-screen img {
    min-height: 235px;
    max-height: 285px;
  }

  .nexflow-case-actions {
    flex-direction: column;
  }

  .nexflow-case-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexflow-case-screen {
    transition: none;
  }
}
