/* ========================================
   PREMIUM EFFECTS CSS - NIVEAU 5000€
   Ultra Modern Professional Effects
   ======================================== */

/* === ROOT VARIABLES PREMIUM === */
:root {
    --blur-sm: blur(10px);
    --blur-md: blur(20px);
    --blur-lg: blur(40px);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --shadow-premium: 0 20px 60px rgba(102, 126, 234, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);

    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === CUSTOM CURSOR DISABLED === */
/* Curseur personnalisé désactivé à la demande de l'utilisateur */

/* === LOADER PREMIUM === */
.premium-loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    z-index: 100000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.premium-loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.premium-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.premium-loader-circle {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    animation: premium-spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: absolute;
}

.premium-loader-circle:nth-child(2) {
    border-top-color: #764ba2;
    border-right-color: #667eea;
    animation-delay: 0.3s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.premium-loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premium-pulse 2s ease-in-out infinite;
    letter-spacing: 3px;
}

.premium-loader-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes premium-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes premium-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === GLASS MORPHISM === */
.glass-card-premium {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--blur-md) !important;
    -webkit-backdrop-filter: var(--blur-md) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    position: relative;
    overflow: hidden;
}

.glass-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.glass-card-premium:hover::before {
    left: 100%;
}

/* === 3D TILT CARDS === */
.card-3d-tilt {
    transform-style: preserve-3d;
    transition: all var(--transition-smooth);
}

.card-3d-tilt:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.card-3d-content {
    transform: translateZ(50px);
    position: relative;
}

/* === CARD SHINE EFFECT === */
.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-3d-tilt:hover .card-shine {
    opacity: 1;
    animation: shine-sweep 1.5s ease-in-out;
}

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

/* === FLOATING CALL BUTTON === */
.premium-floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: white;
}

.premium-floating-call:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 60px rgba(102, 126, 234, 0.6);
}

.premium-floating-call svg,
.premium-floating-call i {
    font-size: 1.75rem;
    animation: premium-shake 2s infinite ease-in-out;
}

.premium-call-pulse {
    position: absolute;
    inset: -5px;
    border: 3px solid #667eea;
    border-radius: 50%;
    animation: premium-pulse-ring 2s infinite;
}

@keyframes premium-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes premium-shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-8deg); }
    20%, 40%, 60%, 80% { transform: rotate(8deg); }
}

@media (max-width: 768px) {
    .premium-floating-call {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
}

/* === SCROLL INDICATOR === */
.premium-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: premium-bounce 2s infinite;
    z-index: 10;
}

.premium-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.premium-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: premium-scroll-wheel 2s infinite;
}

.premium-scroll-indicator p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes premium-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes premium-scroll-wheel {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* === FLOATING SHAPES === */
.premium-floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.premium-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: premium-float 20s infinite ease-in-out;
}

.premium-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.premium-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

.premium-shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes premium-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 30px) rotate(270deg); }
}

/* === NAVBAR PREMIUM BLUR === */
.navbar.premium-scrolled {
    background: rgba(10, 14, 26, 0.8) !important;
    backdrop-filter: var(--blur-md) !important;
    -webkit-backdrop-filter: var(--blur-md) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* === ANIMATED GRADIENT BACKGROUNDS === */
.premium-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: premium-gradient-shift 15s ease infinite;
}

@keyframes premium-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === SCROLL REVEAL ANIMATIONS === */
.premium-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.premium-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.premium-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.premium-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* === STAGGERED ANIMATIONS === */
.premium-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-stagger.active > *:nth-child(1) { animation: premium-fadeInUp 0.6s ease forwards 0.1s; }
.premium-stagger.active > *:nth-child(2) { animation: premium-fadeInUp 0.6s ease forwards 0.2s; }
.premium-stagger.active > *:nth-child(3) { animation: premium-fadeInUp 0.6s ease forwards 0.3s; }
.premium-stagger.active > *:nth-child(4) { animation: premium-fadeInUp 0.6s ease forwards 0.4s; }
.premium-stagger.active > *:nth-child(5) { animation: premium-fadeInUp 0.6s ease forwards 0.5s; }
.premium-stagger.active > *:nth-child(6) { animation: premium-fadeInUp 0.6s ease forwards 0.6s; }

@keyframes premium-fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HERO STATS COUNTER === */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* === PARALLAX LAYERS === */
.premium-parallax-layer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === CARD HOVER GLOW === */
.premium-card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s ease;
}

.card-3d-tilt:hover .premium-card-glow {
    opacity: 0.6;
}

/* === BUTTON PREMIUM EFFECTS === */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

/* === TOOLTIP PREMIUM === */
.premium-tooltip {
    position: absolute;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.has-tooltip:hover .premium-tooltip {
    opacity: 1;
}

/* === SMOOTH TRANSITIONS EVERYWHERE === */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a, button, .card-3d-tilt, .service-card, .portfolio-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .premium-shape {
        display: none;
    }

    .premium-scroll-indicator {
        display: none;
    }
}
