/* CHINA FACTORY — accueil, octobre 2026.
   Complément du thème actuel : photo responsive et ruban de réassurance. */

.hero.hero-street {
  isolation: isolate;
  min-height: clamp(520px, 66vh, 720px);
  background: var(--encre);
  overflow: hidden;
}
.hero-street .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-street .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero.hero-street::before {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(17,17,19,.96) 0%,
    rgba(17,17,19,.85) 25%, rgba(17,17,19,.35) 48%,
    rgba(17,17,19,0) 68%);
}
.hero.hero-street .container { z-index: 2; }
.hero-street .hero-copy { max-width: 33rem; }
.hero-street .hero-kicker {
  color: var(--papier);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-street .hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.hero-street .hero-text { max-width: 28rem; color: #D3CEC7; }

/* Deux groupes strictement identiques rendent la boucle continue.
   Le doublon est aria-hidden : une seule lecture pour les aides techniques. */
.bandeau.bandeau-marquee {
  position: relative;
  background: var(--encre);
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
}
.bandeau-marquee .marquee-window {
  overflow: hidden;
  min-width: 0;
  margin-right: 64px;
  mask-image: linear-gradient(90deg, transparent, #000 28px,
    #000 calc(100% - 28px), transparent);
}
.bandeau-marquee .marquee-track {
  display: flex;
  width: max-content;
  animation: cf-ruban 32s linear infinite;
}
.bandeau-marquee .marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
  gap: clamp(32px, 4vw, 64px);
  min-width: max(960px, calc(100vw - 64px));
  padding: 22px 24px;
  margin: 0;
  list-style: none;
}
.bandeau-marquee .marquee-group li {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--acier);
}
.bandeau-marquee .marquee-group li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: var(--accent);
  transform: rotate(45deg);
}
.bandeau-marquee .marquee-group strong {
  color: var(--papier);
  font-weight: 600;
}
.bandeau-marquee .marquee-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: var(--encre-haute);
  color: var(--papier);
  cursor: pointer;
}
.marquee-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.marquee-toggle .marquee-play { display: none; }
.marquee-toggle[aria-pressed="true"] .marquee-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .marquee-play { display: block; }
.bandeau-marquee.is-paused .marquee-track,
.bandeau-marquee:focus-within .marquee-track { animation-play-state: paused; }
@media (hover: hover) {
  .bandeau-marquee:hover .marquee-track { animation-play-state: paused; }
  .bandeau-marquee .marquee-toggle:hover { border-color: var(--papier); }
}
@keyframes cf-ruban { to { transform: translateX(-50%); } }

/* Mobile : photo dans la partie haute, visage dégagé, texte sur l'encre.
   Le ruban reste une seule ligne, plutôt que trois gros blocs empilés. */
@media (max-width: 860px) {
  .hero.hero-street { min-height: 0; }
  .hero-street .hero-visual {
    bottom: auto;
    height: clamp(390px, 62svh, 520px);
  }
  .hero-street .hero-visual img { object-position: center 20%; }
  .hero.hero-street::before {
    background: linear-gradient(to bottom, rgba(17,17,19,.04) 0%,
      rgba(17,17,19,.08) 28%, rgba(17,17,19,.76) 48%,
      var(--encre) 66%);
  }
  .hero-street .hero-copy {
    padding: clamp(330px, 52svh, 440px) 0 32px;
    max-width: 34rem;
  }
  .hero-street .hero-text { font-size: 17px; margin-bottom: 24px; }
  .bandeau-marquee .marquee-group { padding-top: 18px; padding-bottom: 18px; }
}

/* Réduction des mouvements : afficher tous les faits dans une grille fixe.
   Le bouton n'est plus nécessaire et le doublon disparaît. */
@media (prefers-reduced-motion: reduce) {
  .bandeau-marquee .marquee-window { margin-right: 0; mask-image: none; }
  .bandeau-marquee .marquee-track { width: auto; animation: none; }
  .bandeau-marquee .marquee-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 18px;
  }
  .bandeau-marquee .marquee-group li { white-space: normal; flex-wrap: wrap; }
  .bandeau-marquee .marquee-group[aria-hidden="true"],
  .bandeau-marquee .marquee-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 600px) {
  .bandeau-marquee .marquee-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
