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

#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;
}
