/* Styles Globaux & Effets */
body {
    background-color: #030014;
    color: #E2E8F0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-tech {
    font-family: 'Orbitron', sans-serif;
}

/* Glassmorphism */
.glass {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

/* Neon Button */
.btn-neon {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

.btn-neon:hover {
    box-shadow: 0 0 15px currentColor;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030014;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00F0FF;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Section Transition */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding-top: 80px;
    /* Espace pour la navbar fixe */
    min-height: 100vh;
}

.page-section.active {
    display: block;
    opacity: 1;
}

/* Form Steps */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
#mobile-menu {
        position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 100%;
            max-width: 320px;
            background: rgba(3, 0, 20, 0.98) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 9999;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
            padding-top: 80px;
            padding-left: 1rem;
            padding-right: 1rem;
       
}

#mobile-menu.open {
    transform: translateX(0);
}
#mobile-menu .flex flex-col {
    position: relative;
    z-index: 10;
}
#mobile-menu .flex.flex-col {
    background: transparent !important;
}
#mobile-menu a {
    color: white !important;
    background: transparent !important;
    position: relative;
    z-index: 10;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}
.mobile-menu-overlay.active {
    display: block;
}
#mobile-menu a:hover {
    color: #00F0FF !important;
}
#mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
/* Contact Form Styles */
#contact-form input,
#contact-form textarea {
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* Social Links Hover */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}
/* Empêcher le scroll quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Améliorer la visibilité des liens */
#mobile-menu a {
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#mobile-menu a:hover {
    background: rgba(0, 240, 255, 0.1) !important;
    transform: translateX(5px);
}

/* Style spécifique pour le bouton Devis mobile */
#mobile-menu a:last-child {
    background: rgba(0, 240, 255, 0.1) !important;
    margin-top: 1rem;
}

#mobile-menu a:last-child:hover {
    background: #00F0FF !important;
    color: #030014 !important;
}
/* Portfolio Animations */
.project-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filter-btn {
    transition: all 0.3s ease;
}

/* Modal Animation */
#project-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Project Card Hover Effects */
.project-card:hover {
    transform: translateY(-10px);
}

.project-card:hover .glass-card {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

/* Badge Styles */
.badge-premium {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
/* Styles pour le chat IA */
.chat-message {
    animation: fadeIn 0.3s ease-out;
}

.ai-message .message-bubble {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
}

.user-message .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Animation des points de saisie */
.typing-dot {
    width: 8px;
    height: 8px;
    background: #00F0FF;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation des messages */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-slide-in {
    animation: messageSlideIn 0.3s ease-out;
}

/* Améliorations pour mobile */
@media (max-width: 768px) {
    #chat-modal {
        padding: 0;
    }

    #chat-modal>div:last-child {
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    #chat-input {
        padding: 16px;
        font-size: 16px;
        /* Évite le zoom sur iOS */
    }

    #send-button {
        padding: 16px 20px;
    }

    #send-button span {
        display: none;
    }

    #send-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Scrollbar personnalisée pour la zone de chat */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00F0FF, #8B5CF6);
    border-radius: 10px;
}

/* Effet de survol pour les messages */
.chat-message:hover .message-time {
    opacity: 1;
}

.message-time {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
/* Toastify Styles */
.toastify-success {
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.toastify-error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.toastify-custom {
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}