/* 🔹 NAVBAR STYLES */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: calc(100% - 40px); /* Reduced width to create floating effect */
    top: 15px; /* Space from the top to create floating effect */
    left: 20px; /* Space from the left */
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    border-radius: 30px; /* Increased rounded corners */
    max-width: 1400px; /* Prevent it from getting too wide on large screens */
    margin: 0 auto; /* Center the navbar */
    right: 20px; /* Space from the right */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar:hover {
    /* Retrait de l'effet de surlignage (ombre et déplacement) */
}

/* 🔹 Conteneur principal */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 🔹 Logo */
.logo a {
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

/* 🔹 Navigation */
nav {
    display: flex;
    align-items: center;
}

/* Masquer la navigation normale en mode mobile */
nav ul {
    display: flex;
    list-style: none;
    gap: 80px;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFC300;
}

/* 🔹 Bouton Contact */
.btn {
    padding: 8px 15px;
    background: #FFC300;
    color: black;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid black;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: black;
    color: #FFC300;
    transform: scale(1.05);
}

/* 🔹 Conteneur de boutons navbar */
.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 🔹 Bouton Extranet */
.btn-extranet {
    background: white;
    color: black;
    border: 2px solid #FFC300;
}

.btn-extranet:hover {
    background: #FFC300;
    color: black;
}

/* 🔹 MENU BURGER */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-menu div {
    width: 30px;
    height: 4px;
    background: black;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* 🔹 RESPONSIVE - TABLETTE & MOBILE */
@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .navbar {
        padding: 15px;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px; /* Adjusted to account for the floating navbar */
        right: 15px;
        background: white;
        width: 200px;
        text-align: left;
        padding: 15px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 20px; /* Increased rounded corners for dropdown */
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        padding: 10px 0;
    }

    nav.active {
        display: flex !important;
        flex-direction: column;
        z-index: 1000;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .nav-buttons {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.12);
    }
    
    .navbar:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28), 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        margin-left: auto;
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        top: 10px;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .navbar:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15);
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
}

/* 🔹 Animation Burger */
.burger-menu.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active div:nth-child(2) {
    opacity: 0;
}

.burger-menu.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}