/* ========================================
   ANIMATIONS, EFFETS & UTILITIES
   ======================================== */

/**
 * Animations, effets hover/scroll et classes utilitaires
 */

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
    --nv-primary: #0026FF;
    --nv-accent: #FF6B4A;
    --nv-light: #F4E8D8;
    --nv-dark: #1e293b;
    --nv-gray: #64748b;
    
    --nv-space-xs: 10px;
    --nv-space-sm: 20px;
    --nv-space-md: 40px;
    --nv-space-lg: 60px;
    --nv-space-xl: 80px;
    
    --nv-radius-sm: 8px;
    --nv-radius-md: 12px;
    --nv-radius-lg: 16px;
    --nv-radius-xl: 50px;
    
    --nv-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --nv-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --nv-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --nv-shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.3);
    
    --nv-transition-fast: 0.2s ease;
    --nv-transition-normal: 0.3s ease;
    --nv-transition-slow: 0.5s ease;
}

/* ========================================
   ANIMATIONS D'APPARITION
   ======================================== */

.fade-in {
    animation: fadeIn 1s ease-out both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    animation: fadeInDown 1s ease-out both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 1s ease-out both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.zoom-in {
    animation: zoomIn 0.8s ease-out both;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 1s ease-out both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   DÉLAIS D'ANIMATION
   ======================================== */

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

.delay-6 {
    animation-delay: 1.2s;
}

/* ========================================
   ANIMATIONS CONTINUES
   ======================================== */

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-fast {
    animation: float 1.5s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.rotate-slow {
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-fast {
    animation: rotate 5s linear infinite;
}

.swing {
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

/* ========================================
   EFFETS HOVER
   ======================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.hover-scale {
    transition: transform 0.3s ease !important;
}

.hover-scale:hover {
    transform: scale(1.05) !important;
}

.hover-glow {
    transition: box-shadow 0.3s ease !important;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 38, 255, 0.4) !important;
}

.hover-shimmer {
    position: relative !important;
    overflow: hidden !important;
}

.hover-shimmer::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.7s;
    z-index: 1;
}

.hover-shimmer:hover::before {
    left: 100%;
}

.hover-brighten {
    transition: background 0.3s ease !important;
}

.hover-brighten:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.hover-rotate {
    transition: transform 0.3s ease !important;
}

.hover-rotate:hover {
    transform: rotate(5deg) !important;
}

/* ========================================
   ANIMATIONS AU SCROLL
   ======================================== */

.scroll-fade-in,
.scroll-fade-in-up,
.scroll-fade-in-down,
.scroll-fade-in-left,
.scroll-fade-in-right,
.scroll-zoom-in {
    opacity: 0;
    transform: translateY(0);
}

.scroll-fade-in.visible {
    animation: fadeIn 1s ease-out both;
}

.scroll-fade-in-up.visible {
    animation: fadeInUp 1s ease-out both;
}

.scroll-fade-in-down.visible {
    animation: fadeInDown 1s ease-out both;
}

.scroll-fade-in-left.visible {
    animation: fadeInLeft 1s ease-out both;
}

.scroll-fade-in-right.visible {
    animation: fadeInRight 1s ease-out both;
}

.scroll-zoom-in.visible {
    animation: zoomIn 0.8s ease-out both;
}

/* ========================================
   UTILITIES - Effets spéciaux
   ======================================== */

.glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.badge-glass {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.gradient-border {
    position: relative !important;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0026FF, #FF6B4A, #F4E8D8, #0026FF);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    animation: rotateBorder 3s linear infinite;
}

.gradient-border:hover::before {
    opacity: 1;
}

@keyframes rotateBorder {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}

.show-mobile {
    display: block !important;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}

.show-tablet {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .show-tablet {
        display: block !important;
    }
}

.show-desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    .show-desktop {
        display: block !important;
    }
}

/* ========================================
   OPTIMISATION MOBILE - Version équilibrée
   ======================================== */

@media (max-width: 767px) {

    /* ✅ GARDER les animations du hero (plus courtes) */
    .fade-in,
    .fade-in-up,
    .fade-in-down,
    .fade-in-left,
    .fade-in-right,
    .zoom-in,
    .bounce-in {
        animation-duration: 0.5s !important;
    }

    /* ❌ DÉSACTIVER les animations au scroll — AVEC et SANS .visible */
    .scroll-fade-in,
    .scroll-fade-in-up,
    .scroll-fade-in-down,
    .scroll-fade-in-left,
    .scroll-fade-in-right,
    .scroll-zoom-in,
    .scroll-fade-in.visible,
    .scroll-fade-in-up.visible,
    .scroll-fade-in-down.visible,
    .scroll-fade-in-left.visible,
    .scroll-fade-in-right.visible,
    .scroll-zoom-in.visible {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* ❌ DÉSACTIVER les animations continues */
    .float,
    .float-fast,
    .pulse,
    .rotate-slow,
    .rotate-fast,
    .swing {
        animation: none !important;
    }

    /* ✅ Fix Kadence animations inline (neutralise les styles inline) */
    .kadence-animate,
    [data-kb-animate],
    .kb-animation,
    .wp-block-kadence-rowlayout.kadence-animate,
    .wp-block-kadence-column.kadence-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .delay-1 { animation-delay: 0.1s !important; }
    .delay-2 { animation-delay: 0.2s !important; }
    .delay-3 { animation-delay: 0.3s !important; }
    .delay-4 { animation-delay: 0.4s !important; }
    .delay-5 { animation-delay: 0.5s !important; }
    .delay-6 { animation-delay: 0.6s !important; }

    * {
        transition-duration: 0.2s !important;
    }
}

