/* latin */
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/bebasneue/v14/JTUSjIg69CK48gW7PXoo9Wlhyw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #45193b;
    --secondary-color: #009994;
    --font: Montserrat, sans-serif;
    --font-title: 'Bebas Neue', sans-serif;
    --font-color: #000;
    --bg-color: #fff;
}

*, ::after, ::before {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-color);
    font-family: var(--font);
    font-size: 14px;
    color: var(--font-color);
    padding: 90px 20px 80px 20px;
}

header {
    width: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 15px;
    left: 10px;
    z-index: 999;
    height: 60px;
    gap: 10px;
    flex-direction: column;
}

header::before {
    -webkit-backdrop-filter: blur(17px);
    backdrop-filter: blur(17px);
    background-blend-mode: overlay;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    background: rgba(56,9,43, .9);
    background: linear-gradient(117deg, rgba(56, 9, 43, 1) 0%, rgba(88, 52, 122, .5) 42%, rgba(113, 71, 137, .4) 50%, rgba(88, 52, 122, .5) 58%, rgba(56, 9, 43, 1) 100%);
    border-radius: 50px;
    filter: drop-shadow(0 10px 15px rgb(0 0 0 / 40%));
}

header h1 {
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
}

header h1 a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-color);
}

header h1 span {
    background-color: rgba(255,255,255,.9);
    padding: 0 5px;
    width: fit-content;
}

header h1 span:first-child {
    border-radius: 5px 5px 5px 0;
}

header h1 span:last-child {
    border-radius: 0 0 5px 5px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255,255,255, .7);
    -webkit-backdrop-filter: blur(17px);
    backdrop-filter: blur(17px);
    background-blend-mode: overlay;
}

nav ul li {
    text-transform: uppercase;
    font-weight: 400;
    font-size: .6rem;
    flex: 1 0 0;
}

nav ul li:hover a:not([aria-current="page"]) {
    color: var(--bg-color);
    background-color: rgba(69, 25, 59, .8);
}

nav ul li:hover a:not([aria-current="page"]) img {
    filter: invert(1);
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    transition: color 200ms, background-color 200ms;
    height: 60px;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    user-select: none;
}

nav a img {
    height: 20px;
    transition: filter 200ms;
    user-select: none;
    filter: invert(13%) sepia(14%) saturate(3728%) hue-rotate(268deg) brightness(97%) contrast(97%);
}

nav a[aria-current="page"] img {
    filter: invert(1);
}

nav a[aria-current="page"] {
    background-color: rgba(69, 25, 59, .8);
    color: var(--bg-color);
}

.container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.side-bar-content h2 {
    font-family: var(--font-title);
    text-transform: lowercase;
    font-weight: 400;
    margin-block: 1rem;
    line-height: 2rem;
    font-size: 2rem;
    text-wrap: balance;
    color: var(--primary-color);
}

.side-bar-content p {
    text-wrap: balance;
    color: var(--primary-color);
}

.container .main-content {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.container article {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

article img {
    max-width: 100%;
    height: auto;
}

/*img.shadow {
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, .2);
}*/

img.shadow-2, img.shadow, video.shadow {
    filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .35));
}

img.rounded, .crop-box.rounded {
    border-radius: 20px;
}

.crop-box {
    overflow: hidden;
}

.main-content .box-superposition.box-superposition-poulpe-2 > img:nth-child(1),
.main-content .box-superposition.box-superposition-poulpe-2 > picture:nth-child(1) img,
.main-content .box-superposition.box-superposition-poulpe-2 > .crop-box:nth-child(1) img {
    transform: scale(1.4) translateY(-15px) translateX(-20px);
}

.box-veja-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-veja-1 > img:first-child,
.box-veja-1 > picture:first-child img {
    max-width: 100px;
}

.box-veja-1 > picture:first-child {
    display: flex;
}

.scrollable-box {
    width: 100%;
    overflow: scroll hidden;
    height: 300px;
}

.scrollable-box img {
    height: 100%;
    max-width: unset;
    width: auto;
}

.box-vachequirit-1 {
    display: flex ;
    flex-direction: column;
    gap: 20px;
}

.gif-vachequirit {
    margin-top: -40px;
}

.main-content .box-vachequirit-1 .crop-box img {
    transform: scale(1.8);
    position: absolute;
    left: 40%;
    bottom: 15%;
}

.box-vachequirit-1 .crop-box {
    border-radius: 20%;
    position: relative;
    aspect-ratio: 1;
}

.main-content video {
    max-width: 100%;
}

.box-collection-1 {
    display: grid;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

img.fill {
    width: 100%;
}

.box-cgr-1 {
    display: grid ;
    grid-template-columns: 40% 1fr 40%;
    align-items: center;
    gap: 10px;
}

.box-cgr-2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.box-cgr-2 > :first-child {
    flex: 1 0 100%;
}

.box-cgr-2 > :nth-child(2) {
    flex: 0 0 33%;
}

.box-cgr-2 > :last-child {
    flex: 1;
}

.arrow-right {
    border: solid black;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 12px;
    transform: rotate(-45deg);
    aspect-ratio: 1;
    margin: 0 auto;
    margin-left: -20%;
}

.logo-terrae {
    max-width: 500px;
    margin: 0 auto;
}

.box-terrae-1, .box-terrae-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box-vss-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archives-diapo {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
}

.box-rock-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-content .box-superposition {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

video {
    filter: grayscale(0);
    clip-path: inset(1px 1px);
}

.box-olivades-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

article.cv .side-bar-content {
    text-align: center;
}

article.cv .side-bar-content img {
    border-radius: 50%;
    width: 80%;
    max-width: 300px;
}

article.cv .side-bar-content a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

article.cv .side-bar-content a:hover {
    text-decoration: underline;
}

h3 {
    font-family: var(--font-title);
    text-transform: lowercase;
    font-size: 1.7rem;
    font-weight: 500;
    margin: 0;
    color: var(--primary-color);
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

h5 {
    font-size: 1rem;
    font-weight: 500;
}

article.cv .main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

article.cv .main-content p, article.cv .main-content h4, article.cv .main-content h5 {
    margin: 0;
}

article.cv .main-content > section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--primary-color);
}

article.cv .main-content p {
    text-wrap: balance;
}

article.cv .main-content > section > section {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

article.cv ul {
    margin: 0;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    gap: 5px;
}

.main-content img, .main-content video {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out;
    will-change: opacity, visibility;
}

@media (prefers-reduced-motion: no-preference) {
    .main-content img, .main-content video, .main-content .crop-box, .main-content .scrollable-box {
        transform: translateY(15%);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

.main-content .crop-box img, .main-content .scrollable-box img {
    transition: opacity 0.6s ease-out;
}

.main-content .scrollable-box img {
    transform: none;
}

.main-content img.is-visible, .main-content video.is-visible, .main-content .crop-box.is-visible, .main-content .scrollable-box.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

@media (min-width: 768px) {
    .main-content video.figma-video {
        max-width: calc(100% / 3);
        margin: 0 auto;
    }

    .container article {
        flex-direction: row;
    }

    .side-bar-content {
        position: sticky;
        top: 110px;
    }

    .container .side-bar {
        max-width: 350px;
        flex: 0 0 30%;
        min-height: 100%;
        /*transform: rotate(3deg) translateY(10px);*/
    }

    .container {
        margin-top: 10px;
    }

    .container article:nth-child(even) .side-bar {
        /*transform: rotate(-3deg) translateY(10px);*/
    }

    body {
        padding: 80px 50px;
    }

    header {
        justify-content: space-between;
        padding: 0 50px;
        flex-direction: row;
        left: 20px;
        width: calc(100% - 40px);
    }

    header::before {
        background: linear-gradient(117deg, rgba(56, 9, 43, 1) 0%, rgba(88, 52, 122, .5) 9%, rgba(113, 71, 137, .2) 14%, rgba(88, 52, 122, .3) 19%, rgba(56, 9, 43, 1) 100%);
    }

    nav {
        position: initial;
        width: auto;
        background: transparent;
        -webkit-backdrop-filter: blur(0);
        backdrop-filter: blur(0);
        background-blend-mode: initial;
    }

    nav ul li {
        font-size: 1rem;
    }

    .main-content .box-superposition {
        position: relative;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
    
    .box-superposition.box-superposition-poulpe > img:nth-child(1),
    .box-superposition.box-superposition-poulpe > picture:nth-child(1) img {
        position: absolute;
        max-width: 70%;
        right: 0;
        bottom: 0;
    }
    
    .box-superposition.box-superposition-poulpe > img:nth-child(2),
    .box-superposition.box-superposition-poulpe > picture:nth-child(2) img {
        max-width: 55%;
        position: absolute;
    }

    .box-superposition.box-superposition-poulpe-2 > img:nth-child(1),
    .box-superposition.box-superposition-poulpe-2 > picture:nth-child(1) img,
    .box-superposition.box-superposition-poulpe-2 > .crop-box:nth-child(1) {
        position: absolute;
        max-width: 70%;
        right: 0;
        bottom: 0;
    }
    
    .box-superposition.box-superposition-poulpe-2 > img:nth-child(2),
    .box-superposition.box-superposition-poulpe-2 > picture:nth-child(2) img {
        max-width: 40%;
        position: absolute;
    }

    .box-veja-1 {
        display: grid;
        grid-template-columns: 20% 1fr 1fr;
    }

    .box-veja-1 > img:first-child,
    .box-veja-1 > picture:first-child img {
        max-width: auto;
        margin: 0 auto;
        max-width: 50%;
    }

    .scrollable-box {
        height: auto;
    }

    .scrollable-box img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .box-olivades-1 {
        display: grid;
        grid-template-columns: 1fr 1fr 25%;
        align-items: center;
    }

    .box-vachequirit-1 {
        display: grid;
        grid-template-columns: 1fr 45% 20%;
        gap: 20px;
        align-items: center;
    }

    .box-collection-1 {
        grid-template-columns: repeat(3, 1fr);
    }

    img.collection-open-book {
        max-width: 70%;
        margin: 0 auto;
        display: flex;
    }

    .arrow-right {
        margin-inline: auto 40%;
    }

    .box-cgr-1 {
        max-width: 500px;
        margin: 0 auto;
    }

    .box-cgr-2 {
        display: grid ;
        grid-template-columns: 1fr 20% 33%;
        gap: 20px;
        align-items: center;
    }

    .box-cgr-3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-inline: 20%;
    }

    .box-terrae-1 {
        display: grid;
        grid-template-columns: 51.9% 1fr;
        gap: 20px;
    }

    .box-terrae-2 {
        display: grid;
        grid-template-columns: 56.7% 1fr;
        gap: 20px;
    }

    .box-terrae-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .box-vss-1 {
        display: grid;
        grid-template-columns: 40% 1fr 1fr;
        align-items: center;
        gap: 20px;
    }

    .box-superposition-memoire {
        display: grid;
        grid-template-columns: 40% 1fr;
        align-items: center;
    }

    .box-rock-1 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 85%;
        margin: 0 auto;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        height: 30px;
        padding-inline: 15px;
        flex-direction: row;
        color: var(--bg-color);
        border-radius: 50px;
    }

    nav ul li a img {
        filter: invert(1);
    }

    .side-bar-content h2 {
        margin-block: 1rem;
        line-height: 3rem;
        font-size: 3rem;
    }

    nav a[aria-current="page"] {
        background: rgba(255,255,255,.8);
        color: var(--primary-color);
    }

    nav ul li a[aria-current="page"] img, nav ul li:hover a:not([aria-current="page"]) img {
        filter: invert(13%) sepia(14%) saturate(3728%) hue-rotate(268deg) brightness(97%) contrast(97%);
    }

    nav ul li:hover a:not([aria-current="page"]) {
        color: var(--primary-color);
        background: rgba(255,255,255,.8);
    }

    article.cv .main-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, 470px);
        justify-content: center;
    }

    .container .main-content {
        max-width: 1920px;
        margin: 0 auto;
    }

    .gif-vachequirit {
        margin-top: 0;
    }
}
