/* Tibumo Découvertes — devices module. */

.decouvertes-page .showcase__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.decouvertes-page .device-frame--phone:hover,
.decouvertes-page .device-frame--tablet:hover {
  transform: rotateY(0deg);
}

.decouvertes-page .device-frame--phone .device-screen {
  border-radius: 26px;
}

.decouvertes-page .device-frame--tablet .device-screen {
  border-radius: 16px;
  aspect-ratio: 2064 / 2752;
}

.decouvertes-page .showcase-slide.active {
  opacity: 1;
}

@media (max-width: 900px) {
  .decouvertes-page .showcase__devices {
    gap: 20px;
  }

  .decouvertes-page .device-frame--phone {
    width: 200px;
    border-radius: 28px;
    padding: 8px;
    transform: none;
  }

  .decouvertes-page .device-frame--phone .device-screen {
    border-radius: 22px;
  }

  .decouvertes-page .device-frame--tablet {
    width: 300px;
    border-radius: 20px;
    padding: 8px;
    transform: none;
  }

  .decouvertes-page .device-frame--tablet .device-screen {
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .decouvertes-page .showcase__device--tablet {
    display: none;
  }

  .decouvertes-page .device-frame--phone {
    width: 260px;
    border-radius: 36px;
    padding: 10px;
  }

  .decouvertes-page .device-frame--phone .device-screen {
    border-radius: 26px;
  }
}

@media (max-width: 760px) {
  .decouvertes-page .showcase__devices {
    padding: 28px 14px 22px;
  }
}

.decouvertes-page .showcase__devices {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  perspective: 1200px;
  position: relative;
  border-radius: 8px;
  background-size: 32px 32px;
  align-items: center;
}

.decouvertes-page .device-frame {
  position: relative;
  border: 1px solid rgba(26, 26, 46, 0.12);
  overflow: hidden;
}

.decouvertes-page .device-screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.decouvertes-page .device-frame--phone {
  padding: 10px;
  transform: rotateY(5deg);
  transition: transform 0.5s ease;
  width: 260px;
  border-radius: 36px;
}

.decouvertes-page .device-frame--tablet {
  padding: 8px;
  transform: rotateY(-5deg);
  transition: transform 0.5s ease;
  width: 420px;
  border-radius: 24px;
}

.decouvertes-page .showcase-slide {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decouvertes-page #showcase .showcase-slide {
  object-position: center center;
  background: #f7efe1;
}

@media (prefers-color-scheme: dark) {
  .decouvertes-page .device-frame {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  }
}

.decouvertes-page .device-frame {
  background: transparent;
  padding: 0;
  box-shadow: 0 28px 64px rgba(26, 26, 46, 0.18);
}

.decouvertes-page .device-screen {
  border-radius: inherit;
}

.decouvertes-page .showcase__devices {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 20px 0 8px;
}

.decouvertes-page .device-frame--phone .device-screen {
  aspect-ratio: 540 / 1109;
}

.decouvertes-page #showcase .showcase-slide {
  object-fit: contain;
}

@media (max-width: 820px) {
  .decouvertes-page .showcase__devices {
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .decouvertes-page .showcase__device--phone,
  .decouvertes-page .showcase__device--phone .device-frame--phone {
    margin-left: auto;
    margin-right: auto;
  }
}

.decouvertes-page .showcase .device-frame {
  box-shadow: 0 16px 34px rgba(26, 26, 26, 0.11),
    0 4px 12px rgba(26, 26, 26, 0.06);
}

.decouvertes-page .showcase .device-frame--phone {
  box-shadow: 0 15px 32px rgba(26, 26, 26, 0.12),
    0 3px 10px rgba(26, 26, 26, 0.06);
}

.decouvertes-page .showcase .device-frame--tablet {
  box-shadow: 0 14px 30px rgba(26, 26, 26, 0.10),
    0 3px 10px rgba(26, 26, 26, 0.05);
}

:root[data-theme="dark"] .decouvertes-page .showcase .device-frame {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.20);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .decouvertes-page .showcase .device-frame {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28),
                  0 4px 12px rgba(0, 0, 0, 0.20);
  }
}

.decouvertes-page .hero__phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-dark);
  position: relative;
  padding: 0 6px;
}

.decouvertes-page .hero__phone-screen .hero-slide.active {
  opacity: 1;
}

.decouvertes-page .hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.decouvertes-page .hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.decouvertes-page .hero__dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .decouvertes-page .hero__visual {
    margin-top: 40px;
    min-height: 560px;
  }

  .decouvertes-page .hero__phone-frame {
    width: 240px;
    height: 480px;
  }
}

.decouvertes-page .hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 650px;
  justify-content: flex-end;
}

.decouvertes-page .hero__phone {
  position: relative;
  z-index: 2;
  margin-right: 34px;
  margin-top: 88px;
  transform: rotate(4deg);
}

.decouvertes-page .hero__phone-frame {
  width: 286px;
  height: 572px;
  background: var(--bg-dark);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 0 rgba(26,26,46,0.10),
    0 38px 70px rgba(26,26,46,0.24);
}

@media (max-width: 980px) {
  .decouvertes-page .hero__visual {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .decouvertes-page .hero__visual {
    min-height: 300px;
    margin-top: 8px;
  }

  .decouvertes-page .hero__phone {
    margin: 0;
    transform: rotate(1.5deg);
  }

  .decouvertes-page .hero__phone-frame {
    width: 150px;
    height: 300px;
    border-radius: 26px;
    padding: 6px;
  }

  .decouvertes-page .hero__phone-screen {
    border-radius: 20px;
  }
}

@media (max-width: 960px) {
  .decouvertes-page .hero--refresh .hero__visual {
    min-height: 520px;
  }
}

.decouvertes-page .hero--refresh .hero__visual {
  min-height: 540px;
}

.decouvertes-page .hero--refresh .hero__phone {
  bottom: 0;
  right: clamp(32px, 7vw, 110px);
}

.decouvertes-page .hero--refresh .hero__phone-frame {
  border: 1px solid rgba(26, 26, 46, 0.12);
  overflow: hidden;
  width: 260px;
  height: 534px;
  border-radius: 36px;
}

.decouvertes-page .hero--refresh .hero__phone-screen {
  background: #fff;
}

.decouvertes-page .hero__phone-screen .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .decouvertes-page .hero--refresh .hero__visual {
    width: 100%;
    justify-content: center;
  }

  .decouvertes-page .hero--refresh .hero__phone {
    position: static;
    right: auto;
    margin: 0;
    transform: rotate(3deg);
  }
}

@media (max-width: 640px) {
  .decouvertes-page .hero--refresh .hero__visual {
    min-height: 360px;
  }

  .decouvertes-page .hero--refresh .hero__phone-frame {
    width: 172px;
    height: 354px;
    border-radius: 28px;
  }
}

.decouvertes-page .hero--refresh .hero__phone-frame {
  background: transparent;
  padding: 0;
  box-shadow: 0 28px 64px rgba(26, 26, 46, 0.18);
}

.decouvertes-page .hero--refresh .hero__phone-screen {
  border-radius: inherit;
}
