/*Dark Mode*/
body.dark-mode #scroll-to-project a {
    color: #FFFF;
}

#presentation {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 8px;
    margin: auto;
}

#sous-presentation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#sous-presentation p {
    width: 45%;
    text-align: justify;
}

#sous-presentation-img {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#sous-presentation-img img {
    border-radius: 3.5cm;
    width: 250px;
    height: 250px;
    object-fit: cover;
}

#signature {
    width: 50%;
    text-align: end;
    font-style: italic;

    font-weight: normal;
}

#scroll-to-project {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 2cm;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#scroll-to-project a {
    text-align: center;
}

#scroll-to-project-img {
    height: 24px;
    width: 24px;
}

#scroll-to-project:hover {
    cursor: pointer;
    box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

#competences {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#competences-contenant {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.competence {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 30%;
    min-width: 250px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px;
}

.competence h3 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.competence p {
    text-align: justify;
    width: 75%;
    justify-self: center;
}

#projects {
    margin: auto;
    padding-top: 296px;
    display: flex;
    flex-direction: column;
    gap: 256px;
}

.project {
    display: flex;
    align-items: center;
}

.project-img {
    width: 40%;
    display: flex;
}

.project:nth-child(even) .project-img {
    justify-content: flex-end;
}

.project-img img {
    height: 352px;
    border-radius: 16px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-img img:hover {
    box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

.project p {
    width: 60%;
    text-align: justify;
}


/* Responsive */

@media (max-width: 1150px) {

    #presentation {
        gap: 16px;
        padding: 0 20px;
    }

    #sous-presentation {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    #sous-presentation p {
        width: 90%;
        text-align: justify;
    }

    #sous-presentation-img {
        width: 100%;
        justify-content: center;
    }

    #sous-presentation-img img {
        width: 220px;
        height: 220px;
    }

    #signature {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    #scroll-to-project {
        margin: auto;
        padding: 8px 20px;
        gap: 6px;
    }

    #competences {
        padding-top: 60px;
    }

    #competences-contenant {
        justify-content: center;
        gap: 20px;
    }

    .competence {
        flex-basis: 40%;
        min-width: 280px;
        padding: 16px;
    }

    .competence p {
        width: 85%;
    }

    #projects {
        padding-top: 200px;
        gap: 180px;
        width: 95%;
    }

    .project {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .project-img {
        width: 100%;
        justify-content: center !important;
    }

    .project-img img {
        width: 70%;
        height: auto;
        max-width: 360px;
    }

    .project p {
        width: 90%;
        text-align: justify;
        margin: auto;
    }

}
