body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #924DBF;
    color: #5e268a;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #a772d3;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
    z-index: 3;
    animation: fadeInDown 1s ease-in-out;
}

.navbar .logo {
    font-size: 70px;
    font-weight: bold;
    color: #924DBF;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar .logo:hover {
    color: #7338A0;
    border-bottom: 2px solid #7338A0;
}

.navbar .links {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.navbar .links a {
    color: #924DBF;
    text-decoration: none;
    font-size: 35px;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.navbar .links a:hover {
    color: #7338A0;
    border-bottom: 2px solid #7338A0;
}

.navbar .links a.active {
    color: #7338A0;
    border-bottom: 2px solid #7338A0;
}

.project-container {
    position: relative;
    height: calc(100vh - 180px); /* Ajuste la hauteur pour inclure plus d'espace */
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
    overflow: hidden;
    padding: 60px 0; /* Augmente l'espace en haut et en bas */
}

.parallax-background {
    position: absolute;
    top: 60px; /* Augmente la position pour plus d'espace en haut */
    left: 0;
    width: 100%;
    height: calc(100% - 120px); /* Réduit encore plus la hauteur */
    overflow: hidden;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.6;
    filter: blur(2px);
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: rgba(146, 77, 191, 0.6);
    color: white;
}

.content h1 {
    font-size: 50px;
    margin-bottom: 20px;
    animation: slideInFromLeft 1s ease-in-out;
}

.content p {
    font-size: 22px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .navbar .logo {
        font-size: 40px; /* Réduction de la taille du logo */
    }

    .navbar .links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .navbar .links a {
        font-size: 20px; /* Ajustement des liens */
        padding: 10px 0;
        width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1); /* Légère couleur de fond */
        border-radius: 10px;
    }

    .project-container {
        padding: 20px;
        height: auto; /* Ajuste la hauteur pour les petits écrans */
        margin-left: -10px; /* Déplace le conteneur vers la gauche */
    }

    .parallax-background {
        top: 20px; /* Réduit la position pour plus d'espace en haut */
        height: calc(100% - 40px); /* Réduit la hauteur pour les petits écrans */
    }

    .content {
        margin-left: -10px; /* Déplace le contenu vers la gauche */
    }

    .content h1 {
        font-size: 30px;
        margin-left: -10px; /* Déplace le titre vers la gauche */
    }

    .content p {
        font-size: 18px;
        max-width: 100%;
        margin-left: -10px; /* Déplace le paragraphe vers la gauche */
    }
}

