:root {
    --rose: #d50072e0;
    --bleu: #376d99e0;
    --bleu-clair: #08b3a5e0;
    --vert: #27b13ee0;
    --jaune: #ffe401e0;
    --blanc: #ffffffe0;
    --orange: #ff9e00e0;
    --violet: #984df0e0;
    --violet-clair: #d2affae0;
    --marron: #751f27e0;
}

html {
    height: 100%;
}

body {
    background: url(img/fabe-collage-diqJhQtHHNk-unsplash.jpg) no-repeat center fixed;
    background-size: cover;
    height: fit-content;
    padding-top: 2rem;
    font-family: helvetica, sans-serif;
}

#content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    max-width: 80%;
    justify-content: space-between;
    align-items: stretch;
    align-content: space-between;
    row-gap: 3rem;
    column-gap: 3rem;
}

#content-wrapper.legal,
#content-wrapper.about {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    display: block;
}

#header-wrapper {
    text-align: right;
    max-width: 80%;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    margin: 1rem auto 5rem auto;
}

#footer {
    background-color: rgba(255, 255, 255, 0.9);
    margin: 2rem auto;
    width: 50%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    row-gap: 3rem;
    column-gap: 3rem;
    border-radius: 0.5rem;
}

#logos {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 3rem;
}

#logos img {
    min-height: 64px;
    max-height: 64px;
    height: 64px;
}

h1 {
    font-weight: lighter;
    margin-bottom: 1rem;
    font-size: 4rem;
}

h2 {
    font-weight: lighter;
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-weight: lighter;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: grey;
}

h4 {
    margin-top: 2rem
}

.project:hover {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
}

.project {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    padding: 2rem 2rem;
    text-align: center;
    max-width: 18%;
    width: 18%;
    height: 300px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    cursor: pointer;
    flex: auto;
}

.project .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    row-gap: 2rem;
    column-gap: 2rem;
}

.project .tags div {
    outline: 1px solid lightgray;
    padding: 2px 4px;
    font-size: 0.8rem;
}

.project h2 {
    font-weight: lighter;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.rose {
    background-color: var(--rose);
    color: white;
}

.vert {
    color: white;
    background-color: var(--vert);
}

.jaune {
    background-color: var(--jaune);
}

.orange {
    background-color: var(--orange);
}

.bleu {
    color: white;
    background-color: var(--bleu);
}

.bleu-clair {
    color: white;
    background-color: var(--bleu-clair);
}

.blanc {
    background-color: var(--blanc);
}

.violet {
    color: white;
    background-color: var(--violet);
}

.violet-clair {
    background-color: var(--violet-clair);
}

.marron {
    color: white;
    background-color: var(--marron);
}

.modal.bleu .modal-content {
    color: black;
    border: 1rem solid var(--bleu);
}

.modal.bleu-clair .modal-content {
    color: black;
    border: 1rem solid var(--bleu-clair);
}

.modal.vert .modal-content {
    color: black;
    border: 1rem solid var(--vert);
}

.modal.rose .modal-content {
    color: black;
    border: 1rem solid var(--rose);
}

.modal.jaune .modal-content {
    color: black;
    border: 1rem solid var(--jaune);
}

.modal.orange .modal-content {
    color: black;
    border: 1rem solid var(--orange);
}

.modal.violet .modal-content {
    color: black;
    border: 1rem solid var(--violet);
}

.modal.violet-clair .modal-content {
    color: black;
    border: 1rem solid var(--violet-clair);
}

.modal.marron .modal-content {
    color: black;
    border: 1rem solid var(--marron);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    display: none;
}

.modal-content {
    border-radius: 0.5rem;
    text-align: justify;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 50%;
    max-height: 80vh;
    height: 80vh;
    overflow: none;
    padding: 2rem;
    display: flex;
}

.modal a.close {
    position: fixed;
    top: -35px;
    right: -30px;
    color: black;
    background: rgba(255, 255, 255);
    border-radius: 50%;
    text-align: center;
    display: flex;
    margin: 0;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
    border: 1px solid black;
    font-weight: bold;
}

.modal a {
    cursor: pointer;
    display: block;
    padding: 2px;
    margin: 1rem 0;
}

.modal p {
    text-align: justify;
}

.left {
    overflow: auto;
    width: 70%;
    max-width: 70%;
    max-height: 100%;
    height: 100%;
    padding-right: 2rem;
}

.right {
    text-align: center;
    max-width: 30%;
    width: 30%;
    padding-left: 2rem;
}

.right img {
    max-width: 100%;
    width: 100%;
}

.section {
    padding-right: 2rem;
    display: block;
    margin-bottom: 2rem;
}

.section.elan {
    background-color: lightgray;
    padding: 2rem;
}

.section-title {
    font-weight: bold;
}

.arrow {
    cursor: pointer;
    padding: 1rem;
    font-size: 2rem;
    color: black;
    position: fixed;
    top: 50%;
    background: rgba(255, 255, 255);
    z-index: 99999;
    display: none;
    user-select: none;
}

.arrow#previous-modal {
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    left: 0px;
}

.arrow#next-modal {
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    right: 0px;
}


@media (max-width: 1920px) {
    .project {
        max-width: 18%;
        width: 18%;
    }

    .modal-content {
        width: 50%;
    }
}

@media (max-width: 1440px) {
    .project {
        max-width: 20%;
        width: 20%;
    }

    .modal-content {
        width: 60%;
    }
}

@media (max-width: 1280px) {
    .project {
        max-width: 35%;
        width: 35%;
    }

    .modal-content {
        width: 70%;
    }
}

@media (max-width: 800px) {
    .project {
        max-width: 100%;
        width: 100%;
    }

    .modal-content {
        width: 80%;
    }
}