/* Bannières configurables — panel DESTOCK SHOP30 */

.ds30-page-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ds30-page-banner--compact { min-height: 180px; }
.ds30-page-banner--medium { min-height: 280px; }
.ds30-page-banner--large { min-height: 400px; }
.ds30-page-banner--full { min-height: 60vh; }

.ds30-page-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ds30-page-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Boutique pneus : bannière pleine largeur sous le menu */
.ds30-page-banner--boutique {
  min-height: 340px;
}

@media (min-width: 900px) {
  .ds30-page-banner--boutique {
    min-height: 420px;
  }
}

.ds30-page-banner__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.ds30-page-banner__inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

.ds30-page-banner__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: inherit;
}

.ds30-page-banner__subtitle {
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.92;
}

.ds30-page-banner__btn {
  margin-top: 0.5rem;
}

/* Accueil — bandeau milieu : texte à gauche */
.ds30-page-banner--accueil_mid {
  justify-content: flex-start;
  text-align: left;
}

.ds30-page-banner--accueil_mid .ds30-page-banner__inner {
  max-width: min(100%, 640px);
}

.ds30-page-banner--accueil_mid .ds30-page-banner__subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* Animations */
.ds30-page-banner--anim-fade .ds30-page-banner__inner {
  animation: ds30-banner-fade 1.2s ease both;
}

.ds30-page-banner--anim-slide .ds30-page-banner__inner {
  animation: ds30-banner-slide 0.9s ease both;
}

.ds30-page-banner--anim-pulse .ds30-page-banner__inner {
  animation: ds30-banner-pulse 2.4s ease-in-out infinite;
}

.ds30-page-banner--anim-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: ds30-banner-shimmer 3s linear infinite;
}

.ds30-page-banner--anim-zoom .ds30-page-banner__img {
  animation: ds30-banner-zoom 18s ease-in-out infinite alternate;
}

@keyframes ds30-banner-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ds30-banner-slide {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ds30-banner-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes ds30-banner-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes ds30-banner-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .ds30-page-banner--anim-fade .ds30-page-banner__inner,
  .ds30-page-banner--anim-slide .ds30-page-banner__inner,
  .ds30-page-banner--anim-pulse .ds30-page-banner__inner,
  .ds30-page-banner--anim-shimmer::after,
  .ds30-page-banner--anim-zoom .ds30-page-banner__img {
    animation: none !important;
  }
}
