body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
}
#background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    filter: blur(0px) opacity(0.4) brightness(1) saturate(1.8) contrast(2);
    animation: background ease-in both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
}

@keyframes background {
    to {
        filter: blur(100px) opacity(0) brightness(1) saturate(0) contrast(0);  
    }
}

#noise {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-image: url(https://www.richardsancho.com/img/noise.png);
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: difference;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
    animation: noise ease-in-out both;
    animation-timeline: scroll(root);
    animation-range: 0 60vh;
}

@keyframes noise {
    to {
        opacity: 0;
    }
}

#content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    color: #fff;
    text-align: center;
    mix-blend-mode: difference;
    animation: content linear both;
    animation-timeline: scroll(root);
}

@keyframes content {
  to {
    transform: translateY(70vh) translate3d();
  }
}

#logo svg {
    fill: #fff;
    width: 60vw;
    height: auto;
    margin-top: calc(50vh - (60vw * 16 / 69)/2);
    translate: 1.3vw 0;
    transition: 1s ease;
}

.logo.charge svg {
  translate: 0 0;
}

#content p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    animation: p ease-in both;
    animation-timeline: scroll(root);
    color: #AAA;
}

@keyframes p {
  to {
    transform: translateY(-25vh);
    opacity: 0;
  }
}



#presentation {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    text-align: center;
    padding: 1rem;
    margin: 1rem;
    border-radius: 2rem;
    filter: blur(0.7);
    animation: presentation ease-in-out both;
    animation-timeline: scroll(root);
    animation-range: 40vh 90vh;
}

@keyframes presentation {
  to {
    padding: 2rem;
    margin: 0rem;
    border-radius: 0rem;
  }
}

h1 {
    font-size: 5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 1rem;
}


/* Projets */
.projects {
    --project-gap: 1.25rem;
    --project-radius: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--project-gap);
    margin: 2rem 5vw 0;
    text-align: left;
}

.project {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    min-width: 0;
    padding: 0 1.5rem 0 0;
    border-radius: var(--project-radius);
    overflow: hidden;
}

.project img,
.project-art {
    display: block;
    width: 100%;
    height: 220px;
    border-radius: var(--project-radius) 0 0 var(--project-radius);
}

.project img {
    object-fit: cover;
}

.project[data-affichage-image="entière"] img {
    box-sizing: border-box;
    object-fit: contain;
    padding: var(--marges-image, 0);
}

.project[data-affichage-image="étirer"] img {
    object-fit: fill;
}

.project-art {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgb(255 255 255 / 38%), rgb(32 33 36 / 8%)), var(--project-art-color, #e8eef1);
    color: #202124;
}

.project-art i {
    font-size: 4.5rem;
    opacity: 0.78;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    padding-block: 1.25rem;
    font-family: 'Roboto', sans-serif;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgb(32 33 36 / 12%);
    border-radius: 999px;
    background: rgb(255 255 255 / 55%);
    color: #202124;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.project-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.project-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-radius: 10000px;
    background: #fff;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0%);
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-link:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 7px 16px rgb(0 0 0 / 22%);
    transform: translateY(-2px);
}

.project-link:hover i {
    transform: translateX(3px);
}

.project-link i {
    transition: transform 180ms ease;
}

.project-link:focus-visible {
    outline: 3px solid #202124;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .project {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0;
    }

    .project img,
    .project-art {
        height: 220px;
        border-radius: var(--project-radius) var(--project-radius) 0 0;
    }

    .project-info {
        padding: 1.25rem 1.5rem 0;
    }

    .project-link {
        justify-self: start;
        margin: 1rem 1.5rem 1.5rem;
    }
}

@media (min-width: 1300px) {
    .projects {
        --project-gap: 2rem;
        grid-template-columns: repeat(2, minmax(560px, 1fr));
    }

    .project {
        width: 100%;
        justify-self: center;
    }
}