/* Styles personnalisés pour les icônes Material Design */

/* Icônes Material Design - styles de base */
.material-icons,
.material-icons-outlined,
.material-icons-round,
.material-icons-sharp,
.material-icons-two-tone {
    font-family: 'Material Icons', 'Material Icons Outlined', 'Material Icons Round', 'Material Icons Sharp', 'Material Icons Two Tone';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Tailles d'icônes */
.icon-xs { font-size: 16px !important; }
.icon-sm { font-size: 20px !important; }
.icon-md { font-size: 24px !important; }
.icon-lg { font-size: 32px !important; }
.icon-xl { font-size: 48px !important; }
.icon-2xl { font-size: 64px !important; }

/* Animations pour les icônes */
.icon-hover-scale {
    transition: transform 0.3s ease;
}

.icon-hover-scale:hover {
    transform: scale(1.1);
}

.icon-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animations spéciales pour les images */
.image-zoom-hover {
    transition: transform 0.5s ease;
}

.image-zoom-hover:hover {
    transform: scale(1.05);
}

.hero-parallax {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Effets pour le carrousel */
.carousel-slide {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.carousel-content {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
    90% {
        transform: translateY(-2px);
    }
}

/* Styles pour les images */
.img-hero {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.img-gallery {
    object-fit: cover;
    width: 100%;
    height: 250px;
    transition: transform 0.3s ease;
}

.img-gallery:hover {
    transform: scale(1.05);
}

/* Fallback pour les images cassées */
img {
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
}

/* Loader pour les images */
.image-loader {
    position: relative;
    overflow: hidden;
}

.image-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive pour les icônes */
@media (max-width: 640px) {
    .material-icons-outlined {
        font-size: 20px;
    }
    
    .icon-2xl {
        font-size: 48px !important;
    }
    
    .icon-xl {
        font-size: 36px !important;
    }
}

/* Couleurs personnalisées pour les icônes */
.text-primary-icon { color: #3B82F6; }
.text-secondary-icon { color: #10B981; }
.text-accent-icon { color: #F59E0B; }
.text-success-icon { color: #22C55E; }
.text-warning-icon { color: #EAB308; }
.text-danger-icon { color: #EF4444; }
.text-info-icon { color: #06B6D4; }

/* Backgrounds pour les icônes */
.bg-icon-primary { background-color: rgba(59, 130, 246, 0.1); }
.bg-icon-secondary { background-color: rgba(16, 185, 129, 0.1); }
.bg-icon-accent { background-color: rgba(245, 158, 11, 0.1); }
.bg-icon-success { background-color: rgba(34, 197, 94, 0.1); }
.bg-icon-warning { background-color: rgba(234, 179, 8, 0.1); }
.bg-icon-danger { background-color: rgba(239, 68, 68, 0.1); }

/* Styles pour les cartes avec icônes */
.card-with-icon {
    transition: all 0.3s ease;
}

.card-with-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-with-icon:hover .material-icons-outlined {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}