.content {
    padding: 80px;
}

.separator {
    width: 90%;
    border: 3px solid white;
    border-radius: 10px;
}

.bloc-top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background-color: rgba(232, 245, 233, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 10% 80%;
}

.bloc-top-navbar + * {
    margin-top: -80%;
}

.title-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.bloc-top-navbar a {
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.bloc-top-navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--main-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.bloc-top-navbar a:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.bloc-top-navbar a:hover::after {
    width: 80%; /* Le trait s'étend depuis le centre */
}


/* */

@media screen and (max-width: 768px) {
    /* 2. Navbar supérieure */
    /* On passe les liens en colonne ou on les laisse en ligne avec flex-wrap */
    .bloc-top-navbar {
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
        margin: 0 5% 40px; /* Ajustement de la marge */
        padding: 15px;
    }
    .title-name {
        width: 100%; /* Force le titre à prendre toute la ligne */
        text-align: center;
        order: -1; /* Met le titre tout en haut */
        margin-bottom: 10px;
    }
    .bloc-top-navbar + * {
        margin-top: -40px;
    }
    .bloc-top-navbar a {
        font-size: smaller;
    }

    /* Sur mobile, le :hover n'existe pas vraiment (tactile).
       On désactive l'agrandissement en largeur pour éviter un débordement horizontal (scroll) */
    .bloc-one-project:hover {
        width: 100%;
        height: auto;
        transform: translateY(-5px); /* On garde juste le petit saut */
    }
    .img-project {
        height: 200px; /* Hauteur fixe pour l'image sur mobile */
    }
    .bloc-one-project:hover .img-project {
        height: 200px;
    }
}