/* Styles pour le mockup du PC portable */
.laptop-container {
    position: relative;
    z-index: 2;
    animation: float-laptop 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.laptop-frame {
    position: relative;
    width: 480px;
    height: 320px;
    transform: rotateX(10deg) rotateY(-20deg);
    transform-style: preserve-3d;
    margin: 0 auto;
}

.laptop-screen {
    position: relative;
    width: 100%;
    height: 250px;
    background: #222;
    border-radius: 10px 10px 0 0;
    border: 2px solid #444;
    padding: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.laptop-display {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px 6px 0 0;
    background-color: #fff;
}

.laptop-keyboard {
    position: relative;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, #444, #333);
    border-radius: 0 0 10px 10px;
    transform: translateZ(-2px) rotateX(5deg);
    transform-origin: top center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.laptop-keyboard::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.laptop-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotateX(80deg);
    width: 90%;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    filter: blur(20px);
    border-radius: 50%;
    z-index: 1;
}

@keyframes float-laptop {
    0% { transform: translateY(0) rotateX(10deg) rotateY(-20deg); }
    50% { transform: translateY(-15px) rotateX(12deg) rotateY(-18deg); }
    100% { transform: translateY(0) rotateX(10deg) rotateY(-20deg); }
}

/* Responsive design pour le laptop */
@media (max-width: 1200px) {
    .laptop-frame {
        width: 440px;
        height: 290px;
    }
    
    .laptop-screen {
        height: 230px;
    }
    
    .laptop-keyboard {
        height: 60px;
    }
}

@media (max-width: 992px) {
    .laptop-frame {
        width: 380px;
        height: 260px;
    }
    
    .laptop-screen {
        height: 200px;
    }
    
    .laptop-keyboard {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .laptop-frame {
        width: 340px;
        height: 230px;
        transform: rotateX(8deg) rotateY(-15deg);
    }
    
    .laptop-screen {
        height: 180px;
    }
    
    .laptop-keyboard {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .laptop-frame {
        width: 280px;
        height: 200px;
        transform: rotateX(5deg) rotateY(-10deg);
    }
    
    .laptop-screen {
        height: 155px;
    }
    
    .laptop-keyboard {
        height: 45px;
    }
    
    @keyframes float-laptop {
        0% { transform: translateY(0) rotateX(5deg) rotateY(-10deg); }
        50% { transform: translateY(-10px) rotateX(7deg) rotateY(-8deg); }
        100% { transform: translateY(0) rotateX(5deg) rotateY(-10deg); }
    }
}
