/* ===================================
   LUXACTIVITY - ULTRA MODERN CSS
   Design Premium avec détails spectaculaires
   =================================== */

/* Variables Ultra Modernes */
:root {
    /* Couleurs principales */
    --lux-deep-blue: #002855;
    --lux-royal-blue: #003d7a;
    --lux-primary: #0073A8;
    --lux-sky: #00A1DE;
    --lux-light: #4AC0ED;
    --lux-pale: #B8E3F5;
    --lux-ultra-pale: #E8F6FC;
    --lux-red: #ED2939;
    --lux-gold: #FFD700;
    --lux-silver: #C0C0C0;
    --lux-bronze: #CD7F32;
    
    /* Gradients spectaculaires */
    --hero-gradient: linear-gradient(180deg, #002855 0%, #003d7a 25%, #0073A8 50%, #00A1DE 75%, #4AC0ED 100%);
    --mesh-gradient: radial-gradient(at 40% 20%, hsla(28,100%,74%,0.5) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, hsla(189,100%,56%,0.5) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, hsla(355,100%,93%,0.3) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, hsla(340,100%,76%,0.3) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, hsla(22,100%,77%,0.3) 0px, transparent 50%),
                     radial-gradient(at 80% 100%, hsla(242,100%,70%,0.3) 0px, transparent 50%),
                     radial-gradient(at 0% 0%, hsla(343,100%,76%,0.3) 0px, transparent 50%);
    --aurora-gradient: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    --holographic: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
    
    /* Ombres complexes */
    --shadow-3d: 0 20px 40px rgba(0, 115, 168, 0.15),
                 0 10px 20px rgba(0, 115, 168, 0.1),
                 0 5px 10px rgba(0, 115, 168, 0.05);
    --shadow-neon: 0 0 20px rgba(0, 161, 222, 0.5),
                   0 0 40px rgba(0, 161, 222, 0.3),
                   0 0 60px rgba(0, 161, 222, 0.1);
    --shadow-soft: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
                   0 18px 36px -18px rgba(0, 0, 0, 0.3);
    
    /* Animations timing */
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-bounce: cubic-bezier(0.87, -0.41, 0.19, 1.44);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Animations globales */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(2deg); }
    66% { transform: translateY(20px) rotate(-2deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 161, 222, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 161, 222, 0.8), 0 0 60px rgba(0, 161, 222, 0.4); }
}

@keyframes text-reveal {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
        opacity: 0;
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
    }
}

@keyframes liquid {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 30% 70% 70% 30% / 30% 70% 70% 30%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 30% 30% 70%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 30% 70% 70% 30% / 30% 70% 70% 30%;
        transform: rotate(270deg);
    }
}

@keyframes aurora {
    0% { transform: translateX(-100%) translateY(0) rotate(0deg); }
    100% { transform: translateX(100%) translateY(-100%) rotate(20deg); }
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* Hero Section avec mesh gradient animé */
.hero-ultra {
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mesh-gradient);
    opacity: 0.4;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: particle-float 10s linear infinite;
}

/* Waves SVG animées entre sections */
.wave-divider {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-layer-1 {
    animation: wave-motion 20s linear infinite;
    fill: rgba(0, 115, 168, 0.1);
}

.wave-layer-2 {
    animation: wave-motion 15s linear infinite reverse;
    fill: rgba(0, 161, 222, 0.1);
}

.wave-layer-3 {
    animation: wave-motion 10s linear infinite;
    fill: rgba(74, 192, 237, 0.1);
}

@keyframes wave-motion {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cards avec effet 3D et flip */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg) translateZ(20px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
    background: var(--button-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Glassmorphism avancé */
.glass-ultra {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Buttons avec magnetic effect */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s var(--ease-elastic);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Input avec liquid effect */
.input-liquid {
    position: relative;
    overflow: hidden;
}

.input-liquid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--button-gradient);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-smooth);
}

.input-liquid:focus-within::after {
    transform: scaleX(1);
}

/* Text scramble effect */
.text-scramble {
    position: relative;
    display: inline-block;
}

.text-scramble::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Loading skeleton avec wave */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: skeleton-wave 1.5s infinite;
}

@keyframes skeleton-wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tooltips animés */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    transition: transform 0.3s var(--ease-elastic);
}

.tooltip:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Footer aurora borealis */
.footer-aurora {
    position: relative;
    overflow: hidden;
}

.aurora-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--aurora-gradient);
    opacity: 0.1;
    filter: blur(60px);
    animation: aurora 20s linear infinite;
}

/* Social icons 3D rotation */
.social-icon-3d {
    transition: transform 0.3s var(--ease-smooth);
    transform-style: preserve-3d;
}

.social-icon-3d:hover {
    transform: rotateY(360deg);
}

/* Newsletter input avec liquid border */
.newsletter-liquid {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--button-gradient) border-box;
}

.newsletter-liquid:focus {
    animation: liquid 3s ease-in-out infinite;
}

/* Success animation avec confetti */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--lux-gold);
    animation: confetti-fall 3s linear;
}

/* Scroll indicator animé */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    opacity: 0.7;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Morphing shapes background */
.morph-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.morph-shape {
    position: absolute;
    background: var(--button-gradient);
    opacity: 0.1;
    animation: morph 15s ease-in-out infinite;
}

.morph-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.morph-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.morph-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

/* Ken Burns effect pour images */
@keyframes ken-burns {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.2) translateX(-10px);
    }
}

.img-ken-burns {
    animation: ken-burns 20s linear infinite alternate;
}

/* Badge shine effect */
.badge-shine {
    position: relative;
    overflow: hidden;
}

.badge-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: rotate(45deg) translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Number counter animation */
.counter {
    display: inline-block;
    animation: counter 2s ease-out;
}

@keyframes counter {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Progress bar animée */
.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(0, 115, 168, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--button-gradient);
    border-radius: 2px;
    animation: progress-fill 2s ease-out;
}

@keyframes progress-fill {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: var(--progress);
        opacity: 1;
    }
}

/* Stagger animation pour listes */
.stagger-list > * {
    opacity: 0;
    transform: translateY(20px);
    animation: stagger-in 0.5s var(--ease-smooth) forwards;
}

.stagger-list > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-list > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-list > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-list > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-list > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax layers */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 110%;
    height: 110%;
    will-change: transform;
}

.parallax-layer-1 {
    transform: translateZ(-1px) scale(2);
}

.parallax-layer-2 {
    transform: translateZ(-2px) scale(3);
}

.parallax-layer-3 {
    transform: translateZ(-3px) scale(4);
}

/* Magnetic field effect */
.magnetic-field {
    position: relative;
}

.magnetic-field::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 161, 222, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.magnetic-field:hover::before {
    opacity: 1;
}

/* Focus states créatifs */
.creative-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 168, 0.1),
                0 0 0 6px rgba(0, 161, 222, 0.1),
                0 0 20px rgba(74, 192, 237, 0.2);
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.error-shake {
    animation: shake 0.5s;
}

/* Success pulse */
@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.success-pulse {
    animation: success-pulse 1s;
}

/* Breadcrumbs animés */
.breadcrumb-animated {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    position: relative;
    padding: 8px 16px;
    background: var(--lux-ultra-pale);
    border-radius: 20px;
    transition: all 0.3s;
}

.breadcrumb-item:hover {
    background: var(--button-gradient);
    color: white;
    transform: translateY(-2px);
}

.breadcrumb-separator {
    color: var(--lux-primary);
    animation: bounce-x 1s infinite;
}

@keyframes bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Underline créatif */
.creative-underline {
    position: relative;
    text-decoration: none;
}

.creative-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--button-gradient);
    transition: width 0.3s var(--ease-smooth);
}

.creative-underline:hover::after {
    width: 100%;
}

/* Glow effect for icons */
.icon-glow {
    filter: drop-shadow(0 0 10px rgba(0, 161, 222, 0));
    transition: filter 0.3s;
}

.icon-glow:hover {
    filter: drop-shadow(0 0 20px rgba(0, 161, 222, 0.8));
}

/* Text reveal animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: text-reveal-anim 0.6s var(--ease-smooth) forwards;
}

.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }
.text-reveal span:nth-child(4) { animation-delay: 0.4s; }
.text-reveal span:nth-child(5) { animation-delay: 0.5s; }

@keyframes text-reveal-anim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Soft shadows colorées */
.shadow-colored-blue {
    box-shadow: 0 20px 40px rgba(0, 115, 168, 0.2);
}

.shadow-colored-sky {
    box-shadow: 0 20px 40px rgba(0, 161, 222, 0.2);
}

.shadow-colored-light {
    box-shadow: 0 20px 40px rgba(74, 192, 237, 0.2);
}

/* Hover states uniques */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3d);
}

.hover-grow:hover {
    transform: scale(1.05);
}

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

.hover-skew:hover {
    transform: skewX(-5deg);
}

/* Loading states créatifs */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--lux-primary);
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mouse trail effect */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--button-gradient);
    opacity: 0.5;
    pointer-events: none;
    transition: transform 0.1s, opacity 0.3s;
    z-index: 9999;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--lux-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    * {
        border-width: 2px !important;
    }
    
    .btn-primary {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --text-primary: #f0f0f0;
    }
}