/**
 * SVG Icons - MS Europe
 * Styles pour les icônes SVG personnalisées
 */

/* Classe de base pour les icônes SVG */
.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
  transition: all 0.3s ease;
}

/* Tailles disponibles */
.svg-icon--xs {
  width: 0.75em;
  height: 0.75em;
}

.svg-icon--sm {
  width: 1em;
  height: 1em;
}

.svg-icon--md {
  width: 1.25em;
  height: 1.25em;
}

.svg-icon--lg {
  width: 1.5em;
  height: 1.5em;
}

.svg-icon--xl {
  width: 2em;
  height: 2em;
}

/* Couleurs */
.svg-icon--primary {
  fill: #e20512;
}

.svg-icon--secondary {
  fill: #000000;
}

.svg-icon--white {
  fill: #ffffff;
}

.svg-icon--success {
  fill: #28a745;
}

.svg-icon--warning {
  fill: #ffc107;
}

.svg-icon--error {
  fill: #dc3545;
}

/* États interactifs */
.svg-icon--hover {
  cursor: pointer;
}

.svg-icon--hover:hover {
  transform: scale(1.1);
  fill: #e20512;
}

.svg-icon--clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.svg-icon--clickable:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(226, 5, 18, 0.3));
}

.svg-icon--clickable:active {
  transform: scale(0.95);
}

/* Animations */
.svg-icon--pulse {
  animation: pulse 2s infinite;
}

.svg-icon--rotate {
  animation: rotate 2s linear infinite;
}

.svg-icon--bounce {
  animation: bounce 1s infinite;
}

/* Animations keyframes */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-icon .svg-icon {
    width: 16px;
    height: 16px;
  }
  
  .card-icon .svg-icon {
    width: 20px;
    height: 20px;
  }
  
  .user-avatar .svg-icon {
    width: 60px;
    height: 60px;
  }
  
  .welcome-icon .svg-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .nav-icon .svg-icon {
    width: 14px;
    height: 14px;
  }
  
  .card-icon .svg-icon {
    width: 18px;
    height: 18px;
  }
  
  .user-avatar .svg-icon {
    width: 50px;
    height: 50px;
  }
}
