/**
 * Animations et Effets Flottants pour NWC
 * Animations élégantes et professionnelles
 */

/* Animation de flottement doux */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 40px) scale(0.95);
    }
    75% {
        transform: translate(40px, 20px) scale(1.02);
    }
}

/* Animation de flottement vertical lent */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Animation de rotation continue */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation de pulse doux */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Animation de fade in depuis le bas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de fade in depuis la gauche */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation de fade in depuis la droite */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation de zoom doux */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Éléments flottants décoratifs */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1), transparent);
    top: 10%;
    right: -5%;
    animation: float 20s ease-in-out infinite;
}

.floating-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 78, 137, 0.08), transparent);
    bottom: 10%;
    left: -5%;
    animation: float 25s ease-in-out infinite reverse;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.floating-circle-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(30, 91, 140, 0.1));
    top: 20%;
    left: 10%;
    animation: floatSlow 15s ease-in-out infinite;
}

.floating-circle-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(247, 157, 62, 0.08));
    top: 60%;
    right: 15%;
    animation: floatSlow 18s ease-in-out infinite reverse;
}

.floating-circle-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 212, 255, 0.1));
    bottom: 30%;
    left: 20%;
    animation: floatSlow 12s ease-in-out infinite;
}

.floating-square {
    position: absolute;
    border-radius: 8px;
    pointer-events: none;
}

.floating-square-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.1), rgba(30, 91, 140, 0.08));
    top: 40%;
    right: 8%;
    transform: rotate(45deg);
    animation: rotate 30s linear infinite;
}

.floating-square-2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(255, 107, 53, 0.08));
    bottom: 50%;
    left: 12%;
    transform: rotate(25deg);
    animation: rotate 25s linear infinite reverse;
}

/* Particules de fond */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(10, 37, 64, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

/* Classes utilitaires pour animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Délais d'animation pour effets en cascade */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Effet de parallaxe doux au scroll */
@media (prefers-reduced-motion: no-preference) {
    .parallax-slow {
        transition: transform 0.5s ease-out;
    }
}

/* Responsive - Désactiver certaines animations sur mobile */
@media (max-width: 768px) {
    .floating-shape,
    .floating-circle,
    .floating-square {
        display: none;
    }
    
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Effet de survol pour les cartes */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Effet de brillance au survol */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Ligne de progression animée */
@keyframes progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #0A2540, #1E5B8C, #00D4FF);
    animation: progress 1.5s ease-out;
}

/* Effet de typing pour le texte */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid #0A2540;
    white-space: nowrap;
    animation: typing 3.5s steps(40) 1s 1 normal both, blink 0.75s step-end infinite;
}
