/* Global reset */
body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: Atacama VAR, ABCDiorIcons, arial, sans-serif;
}
header{
    margin-bottom: 70px;
    top: 0;
}

/* Navbar container */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    z-index: 1000; /* Ensure navbar stays above other content */
    width: 78%;
    /*
    margin-top: 20px;
    */
    background-color: white;
    /*
    box-shadow: red 0px 0px 10px;
    */
    top: 0;
    transition: width 0.3s ease-in-out; /* Ajout d'une transition pour un rendu fluide */
}



/* Logo */
#imgLogo {
    width: 120px;
    height: 88px;
    padding: 10px 0;
}

/* Navbar links container */
.navbar-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 40px;
}

/* Navigation items wrapper */
.nav-items-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Style des liens de la navbar */
.nav-item {
    position: relative;
    text-decoration: none;
    color: #012a7d;
    font-size: 16px;
    padding: 8px 18px; /* Uniformisez cet espace intérieur */
    transition: color 0.3s ease-in-out;
    white-space: nowrap;
    line-height: 1.5; /* Fixez l'espacement vertical */
    display: inline-block; /* Évite les variations dues aux parent flexibles */
    text-align: center; /* Centralise le texte si besoin */
}

.navbar-links, .nav-items-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item.active {
    background: linear-gradient(90deg, #4183d7, #012a7d);
    color: white;
    border-radius: 5px;
}


.nav-item:hover {
    color: white;
}

/* Pseudo-élément pour le dégradé */
.nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%; /* Couvre toujours la hauteur entière du parent */
    background: linear-gradient(90deg, #4183d7, #012a7d);
    z-index: -1; /* Place le pseudo-élément derrière le texte */
    transition: width 0.3s ease-in-out;
    border-radius: 5px;
}

.nav-item:hover::before {
    width: 100%;
}

/* Dropdown styling */
.dropdown {
    position: static;

}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 110%;
    display: none;
    padding: 10px 0;
    /*
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    */
    z-index: 9999;
    background-color: white;
    /*
    margin-top: 10px;
    */
    border: none;
    /*
    box-shadow: greenyellow 0px 0px 10px;
    */

}

.dropdown-menu li {
    display: inline-block;
    padding: 0 10px;
}

.dropdown-menu a {
    text-decoration: none;
    color: #012a7d;
    font-size: 13px;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
    display: inline-block;
    /*
    text-align: center;
    */
}
.dropdown-menu a img {
    height: 25px;
    margin-right: 7px;
}

.dropdown-menu a:hover {
    color: #0C4A9A;
    text-decoration: underline; /* Ajoute un soulignement */
    text-decoration-color: #0C4A9A; /* Couleur du soulignement */
    text-underline-offset: 3px; /* Descend le soulignement (valeur ajustable) */
}
.dropdown-menu.active {
    display: flex; /* Ou flex, selon votre structure */
}




/* Contact button */
#contactButton {
    border-radius: 10px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #4183d7, #012a7d);
    color: white;
    border: none;
    white-space: nowrap;
    font-size: 16px;
}

/* Container */
#container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #4183d7 0%, #012a7d 100%);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 25px;
}

/* Logo à gauche */
footer img {
    width: 80px;
    height: auto;
    margin-right: 11%;
    margin-left: 4%;
}

/* Conteneur des liens */
#container-footer {
    display: flex;
    gap: 100px; /* Réduit l'espace entre les liens */
}

/* Liens du footer */
footer a {
    color: white;
    font-size: 1rem;
    white-space: nowrap;
}

/* Icône LinkedIn */
footer a i {
    font-size: 1.8rem;
    padding-right: 10px;
}

/* Empêcher le soulignement de l'icône */
footer a:last-child i {
    text-decoration: none;
}

/* Assurer que seul le texte "LinkedIn" soit souligné */
footer a:last-child {
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none; /* Supprime le soulignement global */
}

/* Ajouter le soulignement uniquement sur le texte "LinkedIn" */
footer a:last-child span {
    text-decoration: underline;
}






/* Responsive design */
@media screen and (max-width: 1700px) {
    .navbar-links {
        margin-left: 40px;
    }

    .nav-items-wrapper {
        gap: 20px;
    }

    .nav-item {
        padding: 10px 15px;
        font-size: 16px;
    }

    .dropdown-menu{
        flex-wrap: wrap;
    }

    .dropdown-menu a img {
        height: 25px;
        margin-right: 7px;
    }
    .dropdown-menu a {
        font-size: 13px;
        padding: 8px 8px;
    }
    .dropdown-menu li {
        padding: 0 10px;
    }
    #container{
        width: 100%;
    }
    .navbar {
        width: 100%;
    }
    #contactButton {
        margin-right: 60px;
    }


}

@media screen and (max-width: 990px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-left: 0;
        z-index: 1000;
    }

    .navbar-links.active {
        display: flex;
    }

    .nav-items-wrapper {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: stretch;
    }

    .nav-item {
        display: block;
        text-align: left;
        padding: 12px 20px;
        border-left: 3px solid transparent;
    }

    .nav-item:hover {
        border-left-color: #4183d7;
        background-color: rgba(65, 131, 215, 0.1);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        padding: 10px 0;
        display: none;
        flex-direction: column; /* S'assure que tout est empilé verticalement */
    }

    .dropdown.active .dropdown-menu {
        display: flex; /* Affiche en mode flex pour respecter flex-direction */
    }

    .dropdown-menu li {
        display: block; /* Chaque élément liste sur une nouvelle ligne */
        width: 100%; /* S'assure qu'il occupe toute la largeur */
        padding: 10px 0; /* Ajoute de l'espace entre les éléments */
    }

    .dropdown-menu a {
        display: block; /* Chaque lien occupe une ligne entière */
        width: 100%;
        text-align: left;
        padding-left: 40px; /* Ajoute un espace pour démarquer les liens */
        font-size: 13px;
    }
    .dropdown-menu a img {
        height: 25px;
        margin-right: 10px;
    }

    #contactButton {
        margin-top: 15px;
        width: 100%;
    }

    footer img {
        width: 70px;
        height: auto;
        margin-right: 5%;
        margin-left: 1%;
    }

    #container-footer {
        display: flex;
        gap: 50px; /* Réduit l'espace entre les liens */
    }
}