/* Premium header & responsive menu styles */

header.navbar {
	position: sticky;
	top: 0;
	z-index: 1200;

	background: rgba(255, 255, 255, 0.9); /* fond blanc transparent */
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
}

.logo {
	font-weight: 800;
	letter-spacing: 2px;
	font-size: 1.05rem;

	background: linear-gradient(90deg,#0f172a,#6366f1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Desktop nav */
#nav {
	display: flex;
	gap: 18px;
	align-items: center;
}

#nav a {
	color: #1e293b; /* texte foncé visible */
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 10px;
	font-weight: 600;
	transition: all .2s ease;
}

#nav a:hover {
	transform: translateY(-4px);
	background: rgba(255,255,255,0.04);
	color: #6366f1;
}

#nav a.btn-primary {
	padding: 10px 16px;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(99,102,241,0.14);
	background: linear-gradient(90deg,#6366f1,#7c83ff);
	color: white;
}

/* Hamburger button */
.hamburger {
	display: none; /* shown on mobile */
	width: 46px;
	height: 36px;
	position: relative;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hamburger span {
	position: absolute;
	left: 8px;
	right: 8px;
	height: 3px;
	background: #6366f1;
	border-radius: 3px;
	transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .2s ease, top .32s ease;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 16px; }
.hamburger span:nth-child(3) { top: 24px; }

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }





/* Mobile menu (overlay) */
/* MOBILE MENU FIXED PRO */
@media (max-width: 900px) {

    #nav {
        display: none;
    }

    #nav.mobile-overlay {
        display: flex !important;

        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        /* FOND ULTRA PREMIUM (NON TRANSPARENT) */
        background: linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.98),
            rgba(30, 41, 59, 0.98)
        );

        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);

        z-index: 9999;

        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 25px;

        opacity: 0;
        pointer-events: none;

        transform: scale(1.05);
        transition: all 0.4s ease;
    }

    #nav.mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

    #nav.mobile-overlay a {
        font-size: 1.4rem;
        font-weight: 600;
        color: #fff;

        opacity: 0;
        transform: translateY(20px);

        transition: all 0.4s ease;
    }

    #nav.mobile-overlay.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* animation progressive */
    #nav.mobile-overlay.active a:nth-child(1) { transition-delay: 0.1s; }
    #nav.mobile-overlay.active a:nth-child(2) { transition-delay: 0.2s; }
    #nav.mobile-overlay.active a:nth-child(3) { transition-delay: 0.3s; }
    #nav.mobile-overlay.active a:nth-child(4) { transition-delay: 0.4s; }
    #nav.mobile-overlay.active a:nth-child(5) { transition-delay: 0.5s; }
    #nav.mobile-overlay.active a:nth-child(6) { transition-delay: 0.6s; }
    #nav.mobile-overlay.active a:nth-child(7) { transition-delay: 0.7s; }

    .hamburger {
        display: block;
        z-index: 10000; /* au-dessus du menu */
    }
}



body.menu-open {
    overflow: hidden;
}




#nav.mobile-overlay::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent);
    bottom: -80px;
    left: -80px;
    filter: blur(100px);
}