.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    background: rgb(22, 22, 22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(22, 22, 22);
    z-index: -1;
}

.navbar {
    display: flex;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    font-size: 1.15rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2.5rem;
    display: flex;
    align-items: center;
}

.nav-menu a .bx-chevron-down {
    margin-left: 0.5rem;
    font-size: 1rem;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(22, 22, 22);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: white;
    transition: background 0.3s;
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .submenu {
    display: block;
}

/* Mobile Styles */
#check {
    display: none;
}

.icons{
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: white;
    cursor: pointer;
    display: none;
}

@media (max-width: 1425px) {
    .header{
        padding: 1rem 5%;
    }
}

@media (max-width: 1283px) {
    .header{
        padding: 0.1rem 3%;
    }
}

@media (max-width: 1217px) {
    .header{
        padding: 0.1rem 3%;
    }
    .nav-menu a {
        font-size: 1rem;
    }
}

@media (max-width: 1149px) {
    .header{
        padding: 0.1rem 1%;
    }
    .nav-menu a {
        font-size: 0.8rem;
    }
}

@media (max-width: 1025px) {
    .header{
        padding: 0.1rem 1%;
    }
    .nav-menu a {
        font-size: 0.7rem;
    }
}

@media (max-width: 992px) {
    .header{
        padding: 1.3rem 5%;
    }
}

@media (max-width: 996px) {

    #compagnie-menu {
        display: none;
    }
    .icons {
        display: inline-flex;
    }

    #check:checked ~ .icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked ~ .icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(22, 22, 22);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        flex-direction: column;
    }

    #check:checked ~ .navbar {
        max-height: 500px; /* Ajuster selon le contenu */
    }

    .nav-menu {
        flex-direction: column;
        align-items: center; /* Centre horizontalement */
        width: 100%;
        padding: 0; /* Supprimer tout padding */
        margin: 0; /* Supprimer toute marge */
    }

    .nav-menu > li {
        width: 100%;
        text-align: center; /* Centre le texte */
        padding: 0; /* Supprimer tout padding */
        margin: 0; /* Supprimer toute marge */
    }

    .nav-menu a {
        display: flex; /* Utiliser flex pour centrer */
        justify-content: center; /* Centre horizontalement le contenu */
        align-items: center; /* Centre verticalement le contenu */
        margin: 1.5rem 0; /* Marges verticales uniquement */
        font-size: 1.1rem;
        text-align: center;
        width: 100%; /* Prend toute la largeur disponible */
        margin-left: 0; /* Supprime la marge gauche */
        padding: 0; /* Supprime tout padding */
    }

    /* Submenu Styles for Mobile */
    .submenu {
        position: static;
        background-color: rgb(22, 22, 22);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        text-align: center; /* Centre le texte des sous-menus */
    }

    .dropdown.active .submenu {
        max-height: 500px; /* Ajuster selon le contenu */
    }

    .dropdown > a {
        justify-content: center;
    }

    .dropdown > a .bx-chevron-down {
        margin-left: 0.5rem;
        transition: transform 0.3s;
    }

    .dropdown.active > a .bx-chevron-down {
        transform: rotate(180deg);
    }

    /* Toggle Submenu on Mobile */
    .dropdown > a {
        cursor: pointer;
    }
}



/* Footer Styles */
.footer {
    background-color: rgb(22, 22, 22);
    color: white;
    text-align: center;
    padding: 20px 0;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
    font-size: 1rem;
}

.footer a {
    color: #74ebd5;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}