/* FONT */

@font-face {
    font-family: 'Roboto - Text';
    src: url('../fonts/Roboto-Regular')
}

@font-face {
    font-family: 'Titillium Web - Title';
    src: url('../fonts/TitilliumWeb-Black')
}


/* STYLE */

:root {
    --body-bg: #1e1e1e;
    --body-color: #fff;

    --main-bg: #27292a;

    --header-height: 70px;

    --fontfamily-title: 'Titillium Web - Title', sans-serif;
    --fontfamily-texte: 'Roboto - Text', sans-serif;

    --link-survol-color: rgb(255, 120, 0);
    --play-bg: rgb(255, 120, 0);

    --separator-size: 55%;
    --separator-color: #585d5f;

    --color-shadow: #000;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    background-color: var(--body-bg);
    color: var(--body-color);

    box-sizing: border-box;
}

body[loader] {
    overflow: hidden;
}

*::-webkit-scrollbar {
    width: 3px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--body-color);
    border-radius: 50px;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

* {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

@supports not selector(::-webkit-scrollbar) {
    * {
        scrollbar-color: var(--body-color) transparent;
    }
}

section {
    max-width: 100vw;
    min-height: 100vh;

    position: relative;

    box-sizing: border-box;
}

section:not(:last-child):not(#home)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc((100% - var(--separator-size)) / 2);
    width: var(--separator-size);
    height: 2px;
    background-color: var(--separator-color);
    border-radius: 50px;
}

section:not(#home) {
    padding: calc(var(--header-height) + 30px) 20px;
}

section>h1 {
    width: 100%;
    text-align: center;

    font-family: var(--fontfamily-title);
    text-transform: uppercase;

    margin: 0;
    margin-bottom: 30px;

    font-size: 50px;
}

footer {
    height: var(--header-height);
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

footer>p {
    font-family: var(--fontfamily-texte);
}


a {
    color: var(--body-color);
    text-decoration: none;
    cursor: pointer;

    border-bottom: 1px dotted var(--body-color);

    transition-property: color, border-color;
    transition-duration: 0.5s;
}

a:hover {
    color: var(--link-survol-color);
    border-color: var(--link-survol-color);
}

.b-shadow {
    -webkit-box-shadow: 10px 10px 15px -5px var(--color-shadow);
    -moz-box-shadow: 10px 10px 15px -5px var(--color-shadow);
    box-shadow: 10px 10px 15px -5px var(--color-shadow);
}

.t-shadow {
    text-shadow: 10px 10px 15px var(--color-shadow);
}

canvas,
img {
    pointer-events: none;
}

@media (max-width: 400px) {

    section>h1 {
        font-size: 40px;
    }

}

@media (max-width: 300px) {

    section:not(:last-child):not(#home)::after {
        display: none;
    }

    section:not(#home) {
        padding: 20px;
    }

    section>h1 {
        font-size: 30px;
    }

}

@media (max-width: 270px) {
    body {
        display: none;
    }
}


/* LOADER  */

#loader {
    position: fixed;
    z-index: 2000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: var(--body-bg);

    display: flex;
    justify-content: center;
    align-items: center;

    flex-direction: column;
}

#loader .spinner {
    position: relative;
    width: 15.7px;
    height: 15.7px;
}

#loader .spinner div {
    animation: spinner-4t3wzl 1.875s infinite backwards;
    background-color: #ffffff;
    border-radius: 50%;
    height: 100%;
    position: absolute;
    width: 100%;
}

#loader .spinner div:nth-child(1) {
    animation-delay: 0.15s;
    background-color: rgba(255, 255, 255, 0.9);
}

#loader .spinner div:nth-child(2) {
    animation-delay: 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
}

#loader .spinner div:nth-child(3) {
    animation-delay: 0.45s;
    background-color: rgba(255, 255, 255, 0.7);
}

#loader .spinner div:nth-child(4) {
    animation-delay: 0.6s;
    background-color: rgba(255, 255, 255, 0.6);
}

#loader .spinner div:nth-child(5) {
    animation-delay: 0.75s;
    background-color: rgba(255, 255, 255, 0.5);
}

@keyframes spinner-4t3wzl {
    0% {
        transform: rotate(0deg) translateY(-200%);
    }

    60%,
    100% {
        transform: rotate(360deg) translateY(-200%);
    }
}


/* NOSCRIPT */

#noscript-warning {
    position: fixed;
    z-index: 3000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

#noscript {
    position: absolute;
    bottom: 40px;

    width: 100%;
    height: fit-content;

    margin: 0;
    padding: 20px;
    box-sizing: border-box;

    background-color: var(--body-bg);

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: var(--fontfamily-texte);
    text-align: center;
    font-size: x-large;

    z-index: 3000;
}


/* HEADER */

header {

    position: fixed;

    width: 100%;
    height: fit-content;

    padding: 15px;
    box-sizing: border-box;

    z-index: 900;
}

header .container {
    background-color: var(--main-bg);
    width: 80%;
    height: var(--header-height);
    border-radius: 80px;
    margin: 0 auto;

    padding: 10px 30px;
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;

    position: relative;

    transition: width 1s, border-radius 1s;

}

header h1 {
    margin: 0 15px 0 0;

    display: flex;
    align-items: center;

    font-family: var(--fontfamily-texte);
    text-transform: uppercase;
}

header .nav {
    flex: 1;

    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;

}

header .nav>li {
    text-align: center;
    margin: 0 15px;
    cursor: pointer;

    transition: color 0.3s ease-in-out;

    font-family: var(--fontfamily-texte);
    text-transform: uppercase;
}

header .nav>li:last-child {
    margin-right: 0;
}

header .nav>li.active {
    color: var(--link-survol-color);
    cursor: default;
}


.dropbtn {
    text-align: center;
    margin: 0 0 0 15px;
    cursor: default;

    transition: color 0.3s ease-in-out;

    font-family: var(--fontfamily-texte);
    text-transform: uppercase;

    background: transparent;
    border: none;
    color: var(--body-color);

    font-size: 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 20px;
    aspect-ratio: 16/9;

    padding: 12px 0;

}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--main-bg);

    border: 1px solid #000;
    box-sizing: border-box;

    width: fit-content;
    z-index: 1;

    border-radius: 10px;
    border-radius: 10px;
}

.dropdown-content div[country] {
    color: black;
    background-color: transparent;

    padding: 12px;

    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 20px;
    aspect-ratio: 16/9;

    cursor: pointer;

    transition: background-color 0.5s;
}

.dropdown-content div[country]:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.dropdown-content div[country]:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}



.dropdown-content div[country].active {
    background-color: var(--link-survol-color);
    cursor: default;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn img,
.dropdown-content div[country] img {
    height: 20px;
    aspect-ratio: 16/9;
}


@media(hover:hover) {
    header .nav>li:hover {
        color: var(--link-survol-color);
    }

    .dropdown:hover .dropbtn {
        color: var(--link-survol-color);
    }

    .dropdown-content div[country]:hover {
        background-color: var(--link-survol-color);
    }
}

@media (max-width: 1040px) {

    header h1 {
        display: none;
    }

    header h1,
    header .nav {
        justify-content: center;
    }

    header .nav>li:last-child,
    .dropbtn {
        margin-right: 15px;
    }

}

@media (max-width: 600px) {
    header {
        padding: 15px 0;
    }

    header .container {
        width: 100%;
        border-radius: 0;
        padding: 10px;
    }
}

@media (max-width: 440px) {
    header .nav {
        display: none;
    }

    header h1 {
        display: flex;

        width: 100%;
        text-align: center;

        font-size: 6vw;

        margin: 0;
    }
}



/* HOME */

#home #showreel {
    display: block;

    width: 100%;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    background-color: #000;

}

#home .volume {
    position: absolute;
    top: 30px;
    right: 20px;

    width: 30px;
    height: 30px;

    fill: var(--body-color);

    cursor: pointer;
    z-index: 1100;

    transition: top .5s;
}

#home h1 {
    position: absolute;

    margin: 0 10px;

    text-transform: uppercase;
    bottom: 100px;

    width: calc(100% - 20px);
    text-align: center;

    font-family: var(--fontfamily-title);
    font-size: 80px;

    transition: font-size 1s;
}

#home .scroll-downs {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);

    width: 34px;
    height: 55px;

    border-radius: 50%;

    cursor: pointer;
}


#home .scroll-downs .mousey {
    width: 3px;
    padding: 10px 15px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 25px;
    opacity: 0.75;
    box-sizing: content-box;
}

#home .scroll-downs .scroller {
    width: 3px;
    height: 10px;
    border-radius: 25%;
    background-color: #fff;
    animation-name: scroll;
    animation-duration: 2.2s;
    animation-timing-function: cubic-bezier(.15, .41, .69, .94);
    animation-iteration-count: infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}


@media (max-width: 1000px) {
    #home h1 {
        font-size: 60px;
    }
}

@media (max-width: 690px) {
    #home h1 {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    #home .volume {
        top: 100px;
    }
}


@media (max-width: 300px) {
    #home h1 {
        font-size: 30px;
    }
}



/* GALLERY */

.gallerie {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    flex-direction: column;
}

.card {

    width: 69%;
    height: 375px;

    margin: 20px 0;

    background-color: var(--main-bg);
    border-radius: 10px;

    display: flex;

    transition: all 1s;

    position: relative;
}

.card:nth-child(even) .image {
    order: 2
}

.card .image {
    height: 100%;
    max-width: 50%;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

}

.image img {
    height: 100%;
    max-width: 100%;
    max-height: 500px;

    width: 100%;
    aspect-ratio: 16/9;

    object-fit: cover;
    object-position: center;

    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;

    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.card:nth-child(even) .image img {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;

    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


.image .play {

    position: absolute;

    width: 80px;
    aspect-ratio: 16/9;

    background-color: var(--play-bg);
    border-color: transparent;
    cursor: pointer;

    border-radius: 10px;

    box-sizing: border-box;

    z-index: 20;

    display: flex;
    justify-content: center;
    align-items: center;

    transition-property: width, height;
    transition-duration: 0.2s;
}

.play svg {
    height: 100%;
    aspect-ratio: 1/1;
    fill: var(--main-bg);
}

.image .play:hover {
    width: 100px;
}


.card .info {
    flex: 1;

    padding: 20px;

    display: flex;
    flex-direction: column;
}

.info h3 {
    margin: 0;

    width: 100%;
    text-align: center;
    text-transform: uppercase;

    font-family: var(--fontfamily-title);
    font-size: 30px;
}

.info h4 {
    margin: 0;

    width: 100%;
    text-align: center;

    font-family: var(--fontfamily-texte);
    font-size: 20px;
}

.info h5 {
    margin: 0;

    width: 100%;
    text-align: center;

    font-family: var(--fontfamily-texte);
    font-size: 15px;
}

.info p {

    font-family: var(--fontfamily-texte);
    text-align: justify;
    line-height: 1.5;

    margin: 20px 0 0 0;

    overflow-y: auto;
}

.info:not(:has(.project)) p {
    margin: 20px 0;

    flex: 1;
}

.info .project {
    flex: 1;

    font-family: var(--fontfamily-texte);
    text-align: justify;
    line-height: 1.5;

    margin: 20px 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.info .project p {
    margin: 0;
    overflow: hidden;
}

.info .project ul {
    flex: 1;
    margin: 10px 0;

    overflow-y: hidden;

    transition: all 0.2s ease;
}

.info .project ul.columns {
    column-count: 2;
    column-gap: 1rem;
}

@media (max-width: 1800px) {

    .card {
        width: 80%;
    }
}

@media (max-width: 1500px) {
    .card {
        width: 90%;
    }
}

@media (max-width: 1300px) {
    .card {
        width: 100%;
    }
}

@media (max-width: 1200px) {


    .image {
        width: 400px;
    }
}

@media (max-width: 910px) {

    .card {
        flex-direction: column;
        height: 100%;
    }

    .card .image {
        width: 100%;
        max-width: 100%;
    }

    .image img,
    .card:nth-child(even) .image img {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 0;

        border-top-right-radius: 10px;
        border-bottom-right-radius: 0;
    }

    .card:nth-child(even) .image {
        order: unset;
    }
}



/* PROFILE */

#profile {
    display: flex;
    flex-direction: column;
}

#idcard {
    flex: 1;

    padding: 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

#idcard .container {

    width: 80%;

    background-color: var(--main-bg);
    border-radius: 10px;

    display: flex;

    transition: all 1s;
}

#idcard .container * {
    transition: all 1s;
}


#idcard .container>img {
    width: 400px;
    max-width: 50%;
    height: 100%;

    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;

    object-fit: cover;
    object-position: center;
}

#idcard .container>.info {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px;

    border-collapse: collapse;
}

#idcard .info td {
    font-family: var(--fontfamily-texte);
    padding: 20px;
    box-sizing: border-box;
}

#idcard .info td:first-child {
    text-transform: uppercase;
    flex: 1;

    font-weight: 600;

}

#idcard .info td:last-child {
    padding-left: 40px;
    box-sizing: border-box;

    flex: 3;
}

#idcard .info td:last-child span {
    cursor: pointer;
}

#idcard .info tr {
    border-bottom: 2px solid var(--body-bg);

    display: flex;
}

#idcard .info tr:last-child {
    border-bottom: none;
}

@media (max-width : 1340px) {
    #idcard .info td:last-child {
        padding-left: 0;
        flex: 2;
    }
}

@media (max-width : 1220px) {
    #idcard .info td {
        flex: 1;
    }
}

@media (max-width : 1200px) {

    #idcard {
        padding: 0 40px;
    }

    #idcard .info tr {
        flex-direction: column;

        padding: 10px 20px;
    }

    #idcard .info td {
        padding: 5px 0;
    }
}

@media (max-width : 900px) {
    #idcard .container {
        width: 100%;
    }
}

@media (max-width : 680px) {
    #idcard .container {
        flex-direction: column;
    }

    #idcard .container>img {
        height: 200px;
        max-width: 200px;
        aspect-ratio: 1/1;

        margin: 0 auto;
        margin-top: 20px;

        border-radius: 50%;
        object-fit: cover;
        object-position: top center;

        padding: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 430px) {
    #idcard .container>.info {
        padding: 40px 10px;
    }

}

@media (max-width: 450px) {
    #idcard {
        padding: 0;
    }
}




/* MODAL */

#modal {
    background-color: rgba(0, 0, 0, 0.6);

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
}

#modal .container {
    width: 80%;
    aspect-ratio: 16/9;

    display: flex;
    justify-content: center;
    align-items: center;

    animation: ModalAnimation .3s linear;
}

#modal .container iframe {
    width: 100%;
    height: 100%;

    border-radius: 10px;
}


@media (max-height: 620px) {
    #modal .container {
        height: 80%;
        width: unset;
    }

}

@keyframes ModalAnimation {
    from {
        width: 0%;
        aspect-ratio: 16/9;
    }

    to {
        width: 80%;
        aspect-ratio: 16/9;
    }
}