:root{
    --primary-color: rgb(44,44,44);
    --bg-color: rgb(255, 255, 255);
    --seconday-color: #127D77;
}

html {
    box-sizing: border-box;
  }
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }

body {
    padding: 2rem;
    background-color: var(--bg-color);
    font-family: Poppins, sans-serif;
    color: var(--primary-color);
    letter-spacing: .1rem;
    line-height: 1.5rem;
}


h1 {
    text-transform: uppercase;
    font-size: 2rem
}

h2 {
    background-color: var(--primary-color);
    font-size: .6rem;
    width: fit-content;
    text-align: center;
    color: var(--bg-color);
    padding: 0 .6rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.open{
    position: fixed;
    top: 5rem;
    right: 0;
}

.open:hover{
    cursor: pointer;
    box-shadow: 0 0 20px rgb(192, 192, 192);
    transition: all .5sec ease-in-out;
}

.contact{
    display: flex;
    flex-direction: column;
}

.icone{
    width: 16px;
    height: auto;
}

.menu{
    /*display: none;*/
    position: absolute;
    right: -30rem;
    top: 8rem;
    width: 22rem;
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 2rem;
    box-shadow: 0 0 20px rgb(192, 192, 192);
    position: fixed;
    transition: all 0.6s ease-in-out;
}

.menu li, .menu a{
    color: var(--primary-color);
    list-style-type: none;
    font-size: .8rem;
}

.lien{
    text-decoration: underline dashed;
}

.lien:hover{
    font-size: 110%;
    background-color: var(--seconday-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    color: var(--bg-color);
}

.menu li, .presentation li{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu.clicked{
    /*display: block;*/
    width: fit-content;
    height: fit-content;
    transition: all 0.6s ease-in-out;
    position: fixed;
    top: 8rem;
    right: 0;
}

.projet {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    padding: .8rem;
}

.projet:hover {
    border: 1.4px dashed var(--primary-color);
}

.projet img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 700;
}

.infos {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr auto;
}

.date {
    font-size: .8rem;
    font-weight: 600;
}

.type {
    font-size: .8rem;
    font-weight: 100;
    font-style: italic;
    text-align: right;
}

.description {
    font-size: 1rem;
    text-align: left;
}

.presentation {
    border: .1rem dashed var(--primary-color);
    padding: 0 2rem;
    margin: 4rem 0;
    width: fit-content;
}

@media (min-width: 700px) {
    body {
        padding: 1.5rem;
    }

    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: .8rem;
    }

    .menu.clicked{
        width: 50%;
    }

    .cercle{
        border-radius: 1000000px;
    }
}

@media (min-width: 1000px) {
    body {
        padding: 2rem 3rem;
    }

    main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .menu.menu.clicked{
        width: 30%;
    }

    .presentation{
        margin: 4rem;
    }
}