/* ===========================
   ANIMATIONS DE CHARGEMENT
   =========================== */

/* Animation révélation des lettres */
@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Animation fade-in pour les éléments hero */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Navigation visible */
nav {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.nav-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projets et sections visibles */
.project-card.visible,
.about.visible,
.contact.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Curseur personnalisé */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #ff3e00;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, mix-blend-mode 0.2s ease;
    mix-blend-mode: normal;
}

/* Transition fluide des images */
.project-visual img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Effet magnétique boutons */
.submit-btn {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animation overlay projet */
.project-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-visual:hover .project-overlay {
    opacity: 1;
}

/* Préchargement - masquer le contenu initial */
.hero h1,
.hero h2,
.hero-sub,
.hero .submit-btn {
    opacity: 0;
}

/* Animation pulse subtile pour les icônes sociales */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.nav-socials a:hover,
.footer-socials a:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Amélioration performance mobile */
@media (max-width: 768px) {
    .cursor {
        display: none !important;
    }
    
    .project-visual img {
        transition: none;
    }
}