/* Animations et Transitions */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease-out forwards;
}

.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Transitions fluides pour les composants */
.mud-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.mud-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

.mud-paper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Animation de rotation pour les icônes */
.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}

/* Animation de glissement pour les éléments de navigation */
.slide-in {
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animations et effets visuels pour les cartes */
.calendly-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.calendly-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animations pour les icônes de services */
.feature-icon {
    transition: all 0.3s ease;
}

.calendly-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Effet de brillance sur les cartes */
.calendly-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.calendly-card:hover::before {
    left: 100%;
}

/* Animations pour les boutons */
.btn-calendly-primary, .btn-calendly-secondary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-calendly-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

.btn-calendly-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.2);
}

/* Animation de pulsation pour les éléments importants */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Effet de gradient animé pour les en-têtes */
.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .calendly-card:hover {
        transform: none;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Effet de loading pour les images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Styles pour améliorer la visibilité des boutons d'actions dans la DataGrid */
.mud-table .mud-table-cell .mud-icon-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mud-table .mud-table-cell .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Couleurs spécifiques pour chaque type de bouton */
.mud-table .mud-table-cell .mud-icon-button.mud-button-color-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-warning:hover {
    background-color: rgba(255, 193, 7, 0.2);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-success:hover {
    background-color: rgba(76, 175, 80, 0.2);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-info {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-info:hover {
    background-color: rgba(33, 150, 243, 0.2);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-error {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.mud-table .mud-table-cell .mud-icon-button.mud-button-color-error:hover {
    background-color: rgba(244, 67, 54, 0.2);
}

/* Améliorer l'espacement des boutons d'actions */
.mud-table .mud-table-cell .d-flex.gap-2 {
    gap: 8px !important;
}

/* Style pour les icônes des boutons */
.mud-table .mud-table-cell .mud-icon-button .mud-icon-root {
    color: inherit;
    opacity: 0.8;
}

.mud-table .mud-table-cell .mud-icon-button:hover .mud-icon-root {
    opacity: 1;
}