/**
 * Premium Effects - Effets haut de gamme pour un design élégant
 * Animations, micro-interactions et détails raffinés
 */

/* ============================================
   SMOOTH SCROLL GLOBAL
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   TEXTURE GRAIN SUBTILE (effet premium)
   ============================================ */

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

/* ============================================
   ANIMATIONS AU SCROLL (Intersection Observer)
   ============================================ */

/* États initiaux pour les animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délais échelonnés pour les listes */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   LIGNES DÉCORATIVES PREMIUM
   ============================================ */

/* Ligne lumineuse horizontale */
.premium-line {
    position: relative;
}

.premium-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 158, 255, 0.8) 50%, 
        transparent 100%
    );
}

/* ============================================
   HOVER EFFECTS PREMIUM
   ============================================ */

/* Effet de lueur au survol */
.glow-hover {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.glow-hover:hover {
    box-shadow: 
        0 0 20px rgba(74, 158, 255, 0.3),
        0 0 40px rgba(74, 158, 255, 0.2),
        0 0 60px rgba(74, 158, 255, 0.1);
}

/* ============================================
   CURSEUR PERSONNALISÉ (optionnel - élégant)
   ============================================ */

/* Décommenter pour activer
.custom-cursor {
    cursor: none;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #4A9EFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
}
*/

/* ============================================
   SÉLECTION DE TEXTE ÉLÉGANTE
   ============================================ */

::selection {
    background: rgba(74, 158, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(74, 158, 255, 0.3);
    color: #ffffff;
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4A9EFF, #357ABD);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5AAFFF, #4A9EFF);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #4A9EFF rgba(0, 0, 0, 0.3);
}

/* ============================================
   EFFETS DE PROFONDEUR AMÉLIORÉS
   ============================================ */

/* Ombre portée élégante pour les cartes */
.premium-shadow {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BORDURES LUMINEUSES SUBTILES
   ============================================ */

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.5) 0%, 
        transparent 50%, 
        rgba(74, 158, 255, 0.3) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

/* ============================================
   EFFET DE PARALLAXE LÉGER
   ============================================ */

.parallax-slow {
    will-change: transform;
}

/* ============================================
   ANIMATIONS D'ENTRÉE PREMIUM
   ============================================ */

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

.shimmer-text {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* ============================================
   FOCUS STATES PREMIUM (Accessibilité)
   ============================================ */

*:focus-visible {
    outline: 2px solid rgba(74, 158, 255, 0.8);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(74, 158, 255, 0.8);
    outline-offset: 3px;
}

/* ============================================
   TRANSITIONS FLUIDES GLOBALES
   ============================================ */

a, button, input, textarea {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   LOADING STATE ÉLÉGANT
   ============================================ */

.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* ============================================
   EFFET FLOAT SUBTIL
   ============================================ */

@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float-subtle 4s ease-in-out infinite;
}

/* ============================================
   SÉPARATEURS DE SECTIONS ÉLÉGANTS
   ============================================ */

.section-divider {
    position: relative;
    height: 1px;
    margin: 4rem 0;
    background: transparent;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(74, 158, 255, 0.5), 
        transparent
    );
}

.section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #4A9EFF;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.8);
}

/* ============================================
   EFFET GLASSMORPHISM AMÉLIORÉ
   ============================================ */

.glass-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE PREMIUM
   ============================================ */

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

/* Désactiver certains effets sur mobile pour performance */
@media (max-width: 768px) {
    body::before {
        display: none; /* Désactive le grain sur mobile */
    }
    
    .parallax-slow {
        transform: none !important;
    }
}

