/* Corrections pour les images de la section logiciels */

/* Amélioration de l'affichage des logos des applications */
.app-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 10px;
  transition: transform 0.3s ease;
  /* Fallback si l'image ne charge pas */
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

.app-logo:hover {
  transform: scale(1.1);
}

.app-logo.active {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Amélioration des captures d'écran */
.slideshow-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.slideshow-container img:hover {
  transform: scale(1.05);
}

/* Fallback pour les images qui ne se chargent pas */
.slideshow-container img:not([src]), 
.slideshow-container img[src=""],
.slideshow-container img[src*="undefined"] {
  display: none;
}

/* Amélioration des boutons avec icônes */
.btn-telecharger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-telecharger:hover {
  background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.store-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  /* Fallback si l'icône ne charge pas */
  background-color: #ffffff;
  border-radius: 4px;
  padding: 2px;
}

/* Amélioration des images des partenaires */
.logo {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin: 0 15px;
  transition: transform 0.3s ease;
  /* Fallback si l'image ne charge pas */
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
}

.logo:hover {
  transform: scale(1.1);
}

/* Animation de chargement pour les images */
@keyframes imageLoading {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.slideshow-container img,
.app-logo,
.store-icon,
.logo {
  animation: imageLoading 0.5s ease-out;
}

/* Gestion des erreurs d'images */
img[src*="undefined"],
img[src=""],
img:not([src]) {
  position: relative;
}

img[src*="undefined"]::after,
img[src=""]::after,
img:not([src])::after {
  content: "Image non trouvée";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f8d7da;
  color: #721c24;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* Responsive design pour les images */
@media (max-width: 768px) {
  .app-logo {
    width: 32px;
    height: 32px;
  }
  
  .store-icon {
    width: 20px;
    height: 20px;
  }
  
  .logo {
    max-width: 80px;
    max-height: 60px;
    margin: 0 10px;
  }
  
  .slideshow-container img {
    border-radius: 6px;
  }
}

/* Amélioration de la navigation entre applications */
.nav-btn {
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nav-btn:hover::before {
  left: 100%;
}

/* Amélioration des transitions entre slides */
.mySlides {
  transition: opacity 0.5s ease-in-out;
}

.mySlides.fade {
  opacity: 0;
}

.mySlides.fade:first-child {
  opacity: 1;
}

/* Indicateurs de chargement */
.loading-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
