/* CONTENEUR PRINCIPAL */
.ad-banner-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* BANNIERE PUBLICITAIRE */
.ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(225, 231, 239, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ad-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* GROUPE CONTENU */
.ad-content {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.ad-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* CONTENEUR MÉDIA (IMAGE & VIDÉO VIGNETTE) */
.ad-media-thumb {
  width: 110px;
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ad-media-thumb img,
.ad-media-thumb video {
  width: 100%;
  height: 100%;
  display: block;
}

/* FOND ARRIÈRE-PLAN (MODE BANNIÈRE VISUELLE COMPLÈTE) */
.ad-banner.has-bg-media {
  position: relative;
  z-index: 1;
  background: #000 !important;
}

.ad-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.ad-banner.has-bg-media:hover .ad-bg-media {
  opacity: 0.5;
}

.ad-banner.has-bg-media .ad-text h5,
.ad-banner.has-bg-media .ad-text p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* AUDIO PLAYER DANS LA BANDEROLE */
.ad-audio-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-audio-player {
  height: 36px;
  max-width: 200px;
  border-radius: 20px;
}

.ad-text h5 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.ad-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.82;
}

/* ACTIONS ET BADGES */
.ad-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ad-badge {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ad-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.ad-banner:hover .ad-btn-cta i {
  transform: translateX(4px);
}

/* VARIANTES DE TYPE */
.ad-banner.type-entreprise {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.04) 0%, rgba(13, 110, 253, 0.01) 100%);
  border-left: 5px solid #0d6efd;
}
.ad-banner.type-entreprise .ad-icon { background: linear-gradient(135deg, #0d6efd, #0b5ed7); }
.ad-banner.type-entreprise .ad-text h5 { color: #0a58ca; }
.ad-banner.type-entreprise .ad-badge { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.ad-banner.type-entreprise .ad-btn-cta { background: #0d6efd; color: #fff; }

.ad-banner.type-partenaire {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.01) 100%);
  border-left: 5px solid #10b981;
}
.ad-banner.type-partenaire .ad-icon { background: linear-gradient(135deg, #10b981, #059669); }
.ad-banner.type-partenaire .ad-text h5 { color: #047857; }
.ad-banner.type-partenaire .ad-badge { background: rgba(16, 185, 129, 0.12); color: #059669; }
.ad-banner.type-partenaire .ad-btn-cta { background: #10b981; color: #fff; }

.ad-banner.type-utilisateur {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(139, 92, 246, 0.01) 100%);
  border-left: 5px solid #8b5cf6;
}
.ad-banner.type-utilisateur .ad-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ad-banner.type-utilisateur .ad-text h5 { color: #6d28d9; }
.ad-banner.type-utilisateur .ad-badge { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.ad-banner.type-utilisateur .ad-btn-cta { background: #8b5cf6; color: #fff; }

/* MODE SOMBRE */
[data-theme="dark"] .ad-banner {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .ad-text h5 { color: #f8fafc; }
[data-theme="dark"] .ad-text p { color: #cbd5e1; }

/* ADAPTATION MOBILE */
@media (max-width: 768px) {
  .ad-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .ad-media-thumb {
    width: 100%;
    height: 120px;
  }
  .ad-actions {
    width: 100%;
    justify-content: space-between;
  }
}
