﻿/* =====================================================
   DJEZZY SOLUTIONS - NOS TERMINAUX
===================================================== */

.djezzy-devices * {
  box-sizing: border-box;
}

.djezzy-devices__container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* ---------- heading ---------- */
.djezzy-devices__heading {
  text-align: center;
  margin-bottom: 44px;
}

.djezzy-devices__eyebrow {
  margin-bottom: 8px;

  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--djz-red);
}

.djezzy-devices__title {
  margin: 0;

  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--djz-black);
}

.djezzy-devices__subtitle {
  margin: 10px 0 0;
  font-family: var(--djz-font-body);
  font-size: 14px;
  color: var(--djz-grey-muted);
}

/* ---------- stage ---------- */
.djezzy-devices__stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.djezzy-devices__viewport {
  flex: 1 1 auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  background: linear-gradient(150deg, #f3f4f6 0%, #e9eaed 100%);
  border: 1px solid var(--djz-grey-line);
}

.djezzy-devices__viewport::-webkit-scrollbar {
  display: none;
}

.djezzy-devices__viewport {
  scrollbar-width: none;
}

.djezzy-devices__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 380px;
}

.djezzy-devices__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  height: 100%;
}

.djezzy-devices__visual img {
  max-height: 340px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .18));
}

.djezzy-devices__info {
  padding: 32px 48px 32px 8px;
}

.djezzy-devices__tag {
  display: block;
  margin-bottom: 6px;

  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--djz-red);
}

.djezzy-devices__name {
  margin: 0 0 20px;

  font-size: 30px;
  font-weight: 800;
  color: var(--djz-black);
}

/* ---------- specs ---------- */
.djezzy-devices__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.djezzy-devices__specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--djz-grey-line);
  border-radius: 10px;
  padding: 10px 14px;
}

.djezzy-devices__specs .spec-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  /* tint to red via CSS filter */
  filter: invert(11%) sepia(99%) saturate(7480%) hue-rotate(1deg) brightness(97%) contrast(107%);
}

.djezzy-devices__specs svg {
  width: 20px;
  height: 20px;
  color: var(--djz-red);
  flex: 0 0 auto;
}

.djezzy-devices__specs strong {
  display: block;

  font-size: 14px;
  font-weight: 800;
  color: var(--djz-black);
  line-height: 1.2;
}

.djezzy-devices__specs span {
  display: block;
  font-family: var(--djz-font-body);
  font-size: 11px;
  color: var(--djz-grey-muted);
}

.djezzy-devices__link {
  display: inline-block;

  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--djz-red);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease;
}

.djezzy-devices__link:hover {
  border-color: var(--djz-red);
}

/* ---------- arrows ---------- */
.djezzy-devices__arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--djz-red);
  background: #fff;
  color: var(--djz-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.djezzy-devices__arrow svg {
  width: 18px;
  height: 18px;
}

.djezzy-devices__arrow:hover {
  background: var(--djz-red);
  color: #fff;
}

.djezzy-devices__arrow:active {
  transform: scale(.93);
}

.djezzy-devices__arrow:focus-visible {
  outline: 2px solid var(--djz-navy);
  outline-offset: 2px;
}

/* ---------- thumbnails ---------- */
.djezzy-devices__thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.djezzy-devices__thumb {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 10px;
  border: 1.5px solid var(--djz-grey-line);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.djezzy-devices__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.djezzy-devices__thumb:hover {
  border-color: #d9a3a7;
}

.djezzy-devices__thumb.is-active {
  border-color: var(--djz-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .12);
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .djezzy-devices {
    padding: 50px 18px 58px;
  }

  .djezzy-devices__slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .djezzy-devices__visual {
    padding: 24px 24px 8px;
  }

  .djezzy-devices__visual img {
    max-height: 240px;
  }

  .djezzy-devices__info {
    padding: 8px 24px 28px;
    text-align: left;
  }

  .djezzy-devices__name {
    font-size: 24px;
  }

  .djezzy-devices__arrow {
    display: none;
  }

  .djezzy-devices__thumb {
    width: 46px;
    height: 46px;
  }
}