.entete-principal {
    width: 100%;
    padding: 15px 25px;
    background-color: black;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.barre-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.marque-navigation a {
    font-family: "Nohemi", Arial, sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.marque-navigation a:hover {
    color: #bb86fc;
}

.liens-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.liens-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 35px;
}

/* --- DÉBUT DES STYLES DU MENU DÉROULANT GÉRÉ PAR JS --- */

/* 1. Positionnement relatif pour le LI parent (Projets) */
.liens-navigation ul li.menu-deroulant-projets {
    position: relative;
    padding: 0;
}

/* 2. Styles et masquage par défaut du sous-menu (UL enfant) */
/* Conteneur du sous-menu */
.sous-menu-projets {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px; /* largeur réduite si tu veux */
    padding: 0; /* padding réduit */
    margin: 0;
    list-style: none;
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Affichage en hover */
.liens-navigation ul li.menu-deroulant-projets:hover .sous-menu-projets {
    display: block;
}

/* Items du sous-menu */
.sous-menu-projets li a {
    display: block;
    padding: 8px 14px; /* padding réduit */
    color: #e0e0e0;
    font-family: "Nohemi", Arial, sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 5. Application de l'effet de soulignement pour les sous-liens */
.sous-menu-projets li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 20px; /* Aligné avec le nouveau padding */
    right: 20px;
    background-color: #bb86fc;
    transition: width 0.3s ease;
    z-index: 1;
}

.sous-menu-projets li a:hover::after {
    width: calc(100% - 40px); /* Ajusté (20px de chaque côté) */
}

/* 6. Survol de la couleur du texte pour les sous-liens */
.sous-menu-projets li a:hover {
    color: #bb86fc;
}

/* --- FIN DES STYLES DU MENU DÉROULANT --- */

/* --- STYLES LIEN NORMAUX (APPLICABLES aux liens hors menu déroulant) --- */

.liens-navigation ul li a {
    font-family: "Nohemi", Arial, sans-serif;
    font-size: 1em;
    font-weight: 500;
    color: #e0e0e0;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.liens-navigation ul li a:hover {
    color: #bb86fc;
}

.liens-navigation ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #bb86fc;
    transition: width 0.3s ease;
}

.liens-navigation ul li a:hover::after {
    width: 100%;
}

.bouton-navigation {
    font-family: "Nohemi", Arial, sans-serif;
    padding: 8px 18px;
    border: 1px solid #bb86fc;
    border-radius: 20px;
    color: #bb86fc;
    background-color: transparent;
    text-decoration: none;
    font-weight: 600;
    transition:
        background-color 0.7s ease,
        color 0.7s ease;
}

.bouton-navigation:hover {
    background-color: #bb86fc;
    color: #121212;
}

.menu-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-burger .barre {
    width: 100%;
    height: 3px;
    background-color: #bb86fc;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-burger.active .barre:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

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

.menu-mobil {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.menu-mobil.active {
    display: flex;
    transform: translateY(0);
}

.menu-mobil ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.menu-mobil ul li {
    margin-bottom: 20px;
}

/* STYLE SPÉCIFIQUE AU LIEN PARENT MOBILE QUI S'OUVRE/FERME */
.menu-mobil .menu-deroulant-projets-mobile ul {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
}

.menu-mobil .menu-deroulant-projets-mobile.open ul {
    height: auto;
}

/* STYLE DES LIENS MOBILES */
.menu-mobil ul li a {
    display: block;
    padding: 10px 0;
    font-size: 1.2em;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-mobil ul li a:hover {
    color: #bb86fc;
}

.bouton-mobil {
    margin-top: 20px;
    padding: 10px 25px;
}

/* MEDIA QUERY POUR MOBILE */
@media (max-width: 768px) {
    .entete-principal {
        padding: 10px 20px;
    }
    .liens-navigation {
        display: none;
    }
    .menu-burger {
        display: flex;
    }
    /* Cacher le sous-menu desktop sur mobile */
    .sous-menu-projets {
        display: none !important;
    }
}
