/* ==========================================================================
   PRESSWALL. — HERO DYNAMIC BANNER (CONTINUOUS HORIZONTAL MARQUEE)
   Generous height filling more of the page with white margin bands top & bottom
   ========================================================================== */

.hero-showcase {
  position: relative;
  width: 100%;
  padding-top: clamp(2rem, 4.5vh, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4.5rem);
  margin-top: 0;
  background-color: var(--bg-primary);
  overflow: hidden;
  display: flex;
  /* Isolate compositing to reduce intermittent flashes */
  contain: layout paint;
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  height: clamp(460px, 66vh, 720px);
  margin: 0;
  padding: 0;
  animation: heroScrollRight 28s linear infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.hero-marquee-track.is-preparing {
  animation: none !important;
  opacity: 0;
}

.hero-marquee-track.is-ready {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Triple strip: 0% → -33.333% for seamless loop */
@keyframes heroScrollRight {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

.hero-column {
  flex: 0 0 clamp(320px, 28vw, 480px);
  width: clamp(320px, 28vw, 480px);
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: default;
  user-select: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Background Image Container */
.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hero-media.is-loading {
  opacity: 0;
}

.hero-media.is-loaded {
  opacity: 1;
}

/* Pas de dégradé sombre ni de texte sur le bandeau */
.hero-overlay {
  display: none !important;
}

.hero-content {
  display: none !important;
}

/* Adaptation Mobile & Tablette */
@media (max-width: 899px) {
  .hero-showcase {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  .hero-marquee-track {
    height: 52vh;
    min-height: 360px;
    max-height: 480px;
  }
  .hero-column {
    flex: 0 0 clamp(260px, 70vw, 360px);
    width: clamp(260px, 70vw, 360px);
    height: 100%;
  }
}

@media (max-width: 540px) {
  .hero-showcase {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }
  .hero-marquee-track {
    height: 48vh;
    min-height: 320px;
  }
  .hero-column {
    flex: 0 0 78vw;
    width: 78vw;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track {
    animation: none;
    transform: translate3d(0, 0, 0);
  }
}
