/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BODY */
body{
    font-family:'Segoe UI',sans-serif;
    padding-top:110px;
}

/* HEADER FLOAT */
.header{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:92%;
    max-width:1350px;
    z-index:1000;
}

/* NAVBAR */
.navbar-float{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 20px;

    /* 🔥 FIX VISIBILITÉ */
    background:rgba(20,30,40,0.75);
    backdrop-filter:blur(20px);

    border-radius:25px;

    border:1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.05);

    transition:0.3s;
}

/* ✨ EFFET HOVER NAVBAR */
.navbar-float:hover{
    box-shadow:
        0 15px 40px rgba(0,0,0,0.3),
        0 0 20px rgba(76,175,80,0.2);
}

/* LOGO */
.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:40px;
    border-radius:10px;
    transition:0.3s;
}

.logo img:hover{
    transform:scale(1.1) rotate(3deg);
}

/* MENU 1 LIGNE */
.menu{
    display:flex;
    align-items:center;
    gap:15px;

    overflow-x:auto;
    white-space:nowrap;

    scrollbar-width:none;
}

.menu::-webkit-scrollbar{
    display:none;
}

/* LINKS */
.menu a{
    text-decoration:none;
    color:#e5e7eb;
    font-size:13px;
    padding:6px 10px;
    border-radius:8px;
    transition:0.3s;

    white-space:nowrap;
}


/* HOVER */
.menu a:hover{
    background:rgba(76,175,80,0.12);
    color:#9be15d;
    transform:translateY(-2px);
}

/* BOUTON PRINCIPAL */
.btn-main{
    background:linear-gradient(135deg,#4CAF50,#2e7d32);
    color:white !important;
    padding:6px 12px;
    border-radius:10px;
    font-size:13px;
    font-weight:500;

    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:0.3s;
}

.btn-main:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 25px rgba(0,0,0,0.3),
        0 0 15px rgba(76,175,80,0.4);
}

/* 🔴 BOUTON DECONNEXION */
.btn-logout{
    background:linear-gradient(135deg,#e53935,#b71c1c);
    color:white !important;
    padding:6px 12px;
    border-radius:10px;
    font-size:13px;
    font-weight:500;

    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:0.3s;
}

/* HOVER */
.btn-logout:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 25px rgba(0,0,0,0.3),
        0 0 15px rgba(229,57,53,0.4);

    background:linear-gradient(135deg,#ff5252,#c62828);
}


/* BURGER */
.burger{
    display:none;
    flex-direction:column;
    cursor:pointer;
}

.burger span{
    width:22px;
    height:3px;
    background:white;
    margin:3px;
    border-radius:5px;
    transition:0.3s;
}

/* MOBILE */
@media(max-width:900px){

    .menu{
        position:absolute;
        top:70px;
        left:0;
        width:100%;

        flex-direction:column;
        gap:12px;

        background:rgba(20,30,40,0.95);
        backdrop-filter:blur(20px);

        border-radius:15px;
        padding:20px;

        display:none;

        overflow-x:hidden;

        box-shadow:0 10px 30px rgba(0,0,0,0.3);
    }

    .menu.active{
        display:flex;
        animation:fadeDown 0.3s ease;
    }

    .burger{
        display:flex;
    }
}

/* ANIMATION */
@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}