/* File: /bootik24_evo/frontends/public-bff/public/css/promo-banner.css */
/* PROMO BANNER - Bannière promotionnelle dynamique avec 3 templates carousel */

/* ============================================
   BASE BANNER
   ============================================ */
.promo-banner {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.promo-banner:hover {
  filter: brightness(1.05);
}

/* ============================================
   TEMPLATE 1 - CAROUSEL TEXTE
   (icône fixe | textes défilent | bouton fixe)
   ============================================ */
.promo-carousel-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

.promo-icon-fixed {
  font-size: 24px;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.promo-text-carousel {
  position: relative;
  height: 20px;
  overflow: hidden;
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.promo-text-slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  opacity: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.promo-text-slide.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.promo-cta-fixed {
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 15px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.promo-cta-fixed:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(4px);
}

/* ============================================
   TEMPLATE 2 - CAROUSEL COLONNE (CSS PURE)
   (colonnes fixes + 1 colonne défile)
   ============================================ */
.promo-column-carousel {
  position: relative;
  height: 40px;
  overflow: hidden;
  flex-grow: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

/* Animation CSS pour 6 slides - 5 secondes chacune = 30s total */
.promo-slide-text:nth-child(1) {
  animation: slideShow 30s infinite;
  animation-delay: 0s;
}

.promo-slide-text:nth-child(2) {
  animation: slideShow 30s infinite;
  animation-delay: 5s;
}

.promo-slide-text:nth-child(3) {
  animation: slideShow 30s infinite;
  animation-delay: 10s;
}

.promo-slide-text:nth-child(4) {
  animation: slideShow 30s infinite;
  animation-delay: 15s;
}

.promo-slide-text:nth-child(5) {
  animation: slideShow 30s infinite;
  animation-delay: 20s;
}

.promo-slide-text:nth-child(6) {
  animation: slideShow 30s infinite;
  animation-delay: 25s;
}

@keyframes slideShow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px);
  }
  3% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
  17% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
  20% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

.promo-column-slide {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  color: inherit !important;
  opacity: 0;
  transform: translateY(100%) translateY(-50%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.promo-column-slide.active {
  opacity: 1;
  transform: translateY(-50%);
  position: relative;
}

/* ============================================
   TEMPLATE 3 - CAROUSEL IMAGE
   (full-image avec overlay)
   ============================================ */
.promo-banner-image-carousel {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.promo-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.promo-image-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.promo-content {
  text-align: center;
  padding: 20px;
}

.promo-icon-large {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
  animation: pulse 3s infinite;
}

.promo-title {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-cta-large {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  color: #000 !important;
  padding: 12px 32px;
  border-radius: 25px;
  text-decoration: none !important;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-cta-large:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MODE NORMAL (sans carousel)
   ============================================ */
.promo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: inherit !important;
  text-decoration: none !important;
  padding: 8px 20px;
  width: 100%;
  justify-content: center;
}

.promo-link:hover,
.promo-link:visited,
.promo-link:active,
.promo-link:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.promo-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}

.promo-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-cta {
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.promo-link:hover .promo-cta {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* ============================================
   MULTI-COLONNES - FORCE UNE LIGNE
   ============================================ */
.promo-banner.columns-2,
.promo-banner.columns-3,
.promo-banner.columns-4 {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.promo-banner.columns-2::-webkit-scrollbar,
.promo-banner.columns-3::-webkit-scrollbar,
.promo-banner.columns-4::-webkit-scrollbar {
  display: none;
}

.promo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.promo-column a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  color: inherit !important;
}

.promo-column a:hover,
.promo-column a:visited,
.promo-column a:active,
.promo-column a:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.promo-column .promo-icon {
  font-size: 24px;
}

.promo-column .promo-text {
  font-size: 12px;
}

.promo-column .promo-cta {
  font-size: 11px;
  padding: 6px 28px;
}

/* Bandeau sous-marque (ex. Tropifresh) : message unique centré et horizontal,
   au lieu d'une mono-colonne collée à gauche. Scopé au contexte, zéro impact marketplace. */
.b24-tropifresh .promo-banner.columns-4 { justify-content: center; }
.b24-tropifresh .promo-banner.columns-4 .promo-column {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-width: auto;
  font-size: 15px;
  font-weight: 600;
}
.b24-tropifresh .promo-banner.columns-4 .promo-column .promo-cta {
  font-size: 13px;
  padding: 7px 22px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .promo-text {
    font-size: 13px;
  }

  .promo-title {
    font-size: 20px;
  }

  .promo-cta-large {
    font-size: 14px;
    padding: 10px 24px;
  }
}

@media (max-width: 768px) {
  .promo-banner,
  .promo-carousel-text {
    height: 36px;
  }

  .promo-banner-image-carousel {
    height: 80px;
  }

  .promo-text {
    font-size: 12px;
  }

  .promo-icon,
  .promo-icon-fixed {
    font-size: 20px;
  }

  .promo-cta,
  .promo-cta-fixed {
    display: none;
  }

  .promo-column {
    min-width: 100px;
  }

  .promo-title {
    font-size: 16px;
  }

  .promo-icon-large {
    font-size: 32px;
  }

  .promo-cta-large {
    font-size: 12px;
    padding: 8px 20px;
  }
}


/* ========================================
   MINI-TEMPLATES STYLES
   ======================================== */

/* === MINI TEMPLATE CARD === */
.promo-mini-template {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  width: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-mini-template:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* === MINI-TEMPLATE 1: SPIRAL SHELL CARD === */
.promo-mini-template-1 {
  gap: 14px;
}

.promo-mini-template-1 .mini-icon-circle {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  position: absolute;
  left: -10px;
  top: 0px;
}

.promo-mini-template-1 .mini-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-mini-template-1 .mini-title {
  font-weight: 600;
  font-size: 12px;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 2px;
}

.promo-mini-template-1 .mini-subtitle {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.2;
}

/* === MINI-TEMPLATE 2: IMAGE + CTA === */
.promo-mini-template-2 {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-height: 50px;
  padding: 0;
}

.mini-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mini-text {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  flex: 1;
}

.mini-cta {
  background: #FF6B35;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.mini-cta:hover {
  background: #FF8555;
  transform: translateX(4px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .promo-mini-template {
    max-width: 100%;
    padding: 8px 12px;
  }

  .promo-mini-template-1 .mini-icon-circle {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .promo-mini-template-1 .mini-title {
    font-size: 14px;
  }

  .promo-mini-template-1 .mini-subtitle {
    font-size: 12px;
  }

  .mini-text {
    font-size: 11px;
  }

  .mini-cta {
    padding: 4px 12px;
    font-size: 11px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}