/* Harmonisation des couleurs des cartes premium avec le nouveau thème */
.provider-card-premium-style .card-header {
  background: var(--event-primary) !important; /* Solid purple */
}

.provider-card-premium-style .badge-premium {
  background: var(--event-accent) !important; /* Green accent for premium badge */
}

.provider-card-premium-style .btn-primary {
  background: var(--event-primary) !important; /* Solid purple */
  border-color: var(--event-primary) !important;
}

.provider-card-premium-style .btn-primary:hover {
  background: var(--event-secondary) !important; /* Darker purple on hover */
  border-color: var(--event-secondary) !important;
}

/* === CARD CONTAINER === */
@media (prefers-reduced-motion: no-preference) {
  .provider-card-premium-style {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .provider-card-premium-style:hover {
    transform: none;
  }
}

.shadow-premium {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
  .provider-card-premium-style:hover .shadow-premium {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.15),
      0 8px 16px rgba(0, 0, 0, 0.1);
  }
}

/* === IMAGE EFFECTS SUPPRIMÉS POUR ÉVITER LES TREMBLEMENTS === */
.card-image-hover {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover effect désactivé temporairement pour éviter les conflits
.provider-card-premium-style:hover .card-image-hover {
  transform: scale(1.05);
} */

/* === BADGES VISIBLES AU HOVER === */
.provider-card-premium-style .position-absolute {
  z-index: 10 !important;
}

.provider-card-premium-style:hover .position-absolute {
  z-index: 15 !important;
}

/* === BADGES === */
.premium-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-type-modern {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === TAGS MODERNES === */
.tags-modern {
  display: flex;
  flex-wrap: wrap;
}

.tag-modern {
  background: rgba(248, 250, 252, 0.8);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.tag-modern:hover {
  background: rgba(241, 245, 249, 1);
  transform: translateY(-1px);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* === PRICING === */
.price-display .price-amount {
  color: #059669;
  font-size: 1.1rem;
}

.price-unit {
  font-size: 0.8rem;
}

/* === BUTTONS === */
.btn-hover-modern {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-width: 1.5px;
}

.btn-hover-modern:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.btn-contact-modern {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-contact-modern:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
}

.favorite-btn {
  transition: all 0.2s ease;
}

.favorite-btn:hover {
  color: #EF4444 !important;
  transform: scale(1.1);
}

/* === DETAILED INFO === */
.detailed-info {
  background: linear-gradient(135deg, #FAFBFF 0%, #F1F5F9 100%);
}

.gallery-thumb {
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover effect désactivé temporairement pour éviter les tremblements
.gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

/* === TYPOGRAPHY === */
.letter-spacing {
  letter-spacing: 0.5px;
}

/* === PROVIDER NAME ON IMAGE === */
.provider-name-on-image {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  margin: 0 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* === PROVIDER ACTION BUTTONS === */
.provider-action-btn {
  position: relative;
  z-index: 20 !important;
}

.card-footer {
  position: relative;
  z-index: 15 !important;
}

/* === RESPONSIVE === */
@media (max-width: 576px) {
  .provider-card-premium-style:hover {
    transform: none;
  }

  .tags-modern {
    justify-content: center;
  }

  .tag-modern {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* === ANIMATIONS === */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collapse.show .detailed-info {
  animation: slideIn 0.4s ease-out;
}

/* === HOVER STATES === */
.provider-card-premium-style:hover .card-title {
  color: #3B82F6 !important;
  transition: color 0.2s ease;
}

.provider-card-premium-style:hover .tag-modern {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* === OPTIMISATIONS POUR GRANDE GRILLE === */
@media (min-width: 1200px) {
  .provider-card-premium-style .card {
    min-height: 420px;
  }

  .provider-card-premium-style .card-body {
    padding: 1.25rem;
  }

  .provider-card-premium-style .card-footer {
    padding: 1rem 1.25rem;
  }

  .provider-card-premium-style .card-title {
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .provider-card-premium-style .card {
    min-height: 450px;
  }

  .provider-card-premium-style .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .provider-card-premium-style .card {
    min-height: auto;
  }

  .provider-card-premium-style .card-body {
    padding: 1.25rem;
  }
}

/* === ASPECT RATIO SUPPORT === */
.aspect-w-16 {
  position: relative;
  padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
  --tw-aspect-w: 16;
}

.aspect-h-9 {
  --tw-aspect-h: 9;
}

.aspect-w-16 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* === LINE CLAMP SUPPORT === */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  max-height: 4.5em; /* 3 lines * 1.5 line-height */
}

/* === ANIMATION PULSE POUR LA CARTE === */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
