* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #14181C;
    color: #E3E6E8;
}

.font-mono-tech {
    font-family: 'JetBrains Mono', monospace;
}

/* Animations */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.anim-fade-slide {
    animation: fadeSlide 0.9s ease forwards;
}

/*Bannière hero*/

.hero-header{
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-overlay-nexus {
    background: linear-gradient(135deg, rgba(20, 24, 28, 0.88) 0%, rgba(20, 24, 28, 0.3) 60%, rgba(20, 24, 28, 0.7) 100%);
}

.glass-nexus {
    background: rgba(30, 36, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 150, 100, 0.15);
}
.glass-nexus-dark {
    background: rgba(16, 20, 24, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(180, 150, 100, 0.08);
}

.copper-line {
    width: 60px;
    height: 2px;
    background: #B8945C;
    border-radius: 2px;
}

/* Cards */

.card-nexus {
    background: rgba(26, 32, 38, 0.5);
    border: 1px solid rgba(180, 150, 100, 0.1);
    transition: all 0.4s ease;
}
.card-nexus:hover {
    border-color: rgba(180, 150, 100, 0.4);
    box-shadow: 0 0 30px rgba(180, 150, 100, 0.05);
    transform: translateY(-4px);
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #14181C;
}
::-webkit-scrollbar-thumb {
    background: #B8945C;
    border-radius: 3px;
}

/* Navbar scroll */

#navbar-nexus {
    transition: all 0.3s ease;
}

.nav-scrolled-nexus {
    background: rgba(20, 24, 28, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(180, 150, 100, 0.15);
}

/* Évite tout débordement horizontal */
#navbar-nexus {
    overflow: hidden;
    max-width: 100vw;
}

/* Assure que le conteneur interne ne dépasse pas */
#navbar-nexus .flex {
    flex-wrap: nowrap;
}

/* Sur les très petits écrans, on réduit encore le logo */
@media (max-width: 360px) {
    #navbar-nexus a.text-xl {
        font-size: 1rem; /* 16px au lieu de 20px */
    }
    #navbar-nexus .font-mono-tech {
        font-size: 0.9rem;
    }
}

/* Le menu mobile ne dépasse pas non plus */
#mobile-menu-nexus {
    max-width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
}


@media (max-width: 600px) {
    
    .hero-header .backdrop-blur-sm {
        margin-top: 180px;
    }

    .navbar-nexus .backdrop-blur-md{
        background-color: #14181C!important;
    }
}
