@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

/* Page construction */
#hero{
    height: 100vh;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

#hero h1, #hero p{
    text-align: center;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Slab", sans-serif;
}

html{
    scroll-behavior: smooth !important;
    scrollbar-color: var(--color-main) #0000;
    scrollbar-width: thin;
}

body{
    --color-bg: #020E13;
    --color-font: #ffffff;
    --color-main: #D83F45;
    --color-main-8: #951C27;
    --color-sec: #00536F;
    --color-third: #F0C7C5;
    --code-background: #222222;
    --code-bg-shadow: #121212;
    background-color: var(--color-bg);
    color: var(--color-font);
}

/* SPLASHSCREEN */

.splashscreen{
    position: fixed;
    top: 0%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #951C27;
    z-index: 30;
    animation: Disapear 1s ease;
    animation-fill-mode: forwards;
    animation-delay: 2s;
}

@keyframes Disapear{
    0%{
        opacity: 1;
        z-index: 30;
        display: flex;
    }
    99%{
        opacity: 0;
        z-index: 30;
        display: flex;
    }
    100%{
        opacity: 0;
        z-index: -10;
        display: none;
    }
}

/*Style CTA*/

.main-cta{
  padding: 1em 2em;
  border: none;
  color: var(--color-font);
  font-size: 24px;
  font-weight: bold;
  background-color: var(--color-sec);
  transition: all 200ms ease-in-out;
  transform: translateY(-1.2em) rotate(-30deg) skewX(30deg);
  outline: none;
  display: inline-block;
  text-decoration: none;
  margin-top: 5em;
  width: fit-content;
}

.main-cta::after{
    position: absolute;
    content: '';
    background-color: var(--color-third);
    width: 100%;
    height: 1.5em;
    left: -0.75em;
    bottom: -1.5em;
    transform: skewX(-45deg);
    transition: all 200ms ease-out;
}

.main-cta::before{
    position: absolute;
    content: '';
    background-color: var(--color-main);
    width: 1.5em;
    height: 100%;
    left: -1.5em;
    bottom: -0.75em;
    transform: skewY(-45deg);
    transition: all 200ms ease-out;
}

.main-cta:hover{
    transform: translateY(0) rotate(-30deg) skewX(30deg);    
    
}

.main-cta:hover::after{
    height: 0.5em;
    left: -0.25em;
    bottom: -0.5em;
}

.main-cta:hover::before{
    width: 0.5em;
    left: -0.5em;
    bottom: -0.25em;
}

/*-- Style CTA fin --*/

header{
    height: 80px;
    background-color: var(--color-bg);
    display: flex;
    position: sticky;
    top: 0;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0px 120px;
    z-index: 20;
}

.socials{
    display: flex;
    justify-content: center;
    align-items: center;
}

.socials img{
    margin-left: 20px;
    width: 32px;
    height: auto;
}

.logo{
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.logo img{
    width: 180px;
    height: auto;
}

#menu-toggle{
    visibility: hidden;
}

header label{
    cursor: pointer;
}

#menu-toggle + label{
  background-color: var(--color-bg);
  transition-duration: 200ms;
}

#menu-toggle + label img{
    width: 32px;
    height: auto;
}

.submenu{
    position: absolute;
    left: 0;
    bottom: 35px;
    transition: 200ms ease-in-out;
    background-color: var(--color-bg);
    border: 1px solid var(--color-font);
}

.menu ul li{
    list-style-type: none;
}

.menu ul li a{
    display: inline-block;
    padding: 2em 3em;
    width: 100%;
    transition: 200ms ease-in-out;
    text-decoration: none;
    color: var(--color-font);
    position: relative;
    border-bottom: 1px solid var(--color-font);
}

.menu ul li a::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    height: 20px;
    width: 0%;
    background-color: var(--color-main);
    z-index: -1;
    transition: .2s ease;
}

.menu ul li a:hover::after{
    width: 60%;
}

#menu-toggle:checked + label .submenu{
    transform: translateY(110%) translateX(0%);
}
#menu-toggle:not(:checked) + label .submenu{
    transform: translateY(110%) translateX(-100%);
}

/* FOOTER */

footer{
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    background-color: var(--color-main);
    padding: 20px 0px;
    font-size: 18pt;
}

footer a{
    text-decoration: none;
    color: var(--color-main-8);
    transition: .2s ease;
}

footer a:hover{
    text-decoration: none;
    color: var(--color-sec);
}

/*  TITRES  */

h1{
    font-size: 64pt;
}

h2{
    font-size: 48pt;
}

h3{
    font-size: 36pt;
}

h4{
    font-size: 28pt;
}

h5{
    font-size: 22pt;
}

.yink{
    font-family: "yink", serif;
}

.overtitle{
    font-size: 22pt;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-main-8);
    margin: 0;
    width: 100%;
}

.main-paragraph{
    font-size: 22pt;
    line-break: 15rem;
    margin-bottom: 25px;
}

/*  HERO  */

.main-hero{
    height: calc(100vh - 80px);
    display: flex;
    position: relative;
    flex-flow: column wrap;
    justify-content: end;
    align-items: flex-end;
    padding: 0px 120px 10em 0px;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-bg-video{
    width: 100vw;
    height: 100vh;
    opacity: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

/*  ABOUT  */

.content{
    padding: 0 120px;
    display: flex;
    justify-content: space-between;
}

#about{
    padding-top: 5em;
    background-color: var(--color-bg);
    background-image: url('../Assets/Images/bg-main-hero.png');
    background-attachment: local;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

#about .half:nth-child(1){
    align-self: flex-start;
    position: sticky;
    top: 30px;
}

#about .half:nth-child(2){
    margin-bottom: 200px;
}

.half{
    max-width: 50vw;
    align-self: center;
}

.half img{
    display: block;
    width: 100%;
}

.content-column{
    width: 100%;
    height: 100%;
}

#about hr{
    border-color: var(--color-font);
    margin: 2em 0 3em 0;
    width: 20em;
}

#about .cta-wrapper{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

/*  SLIDER  */

.info-slider{
    --slider-speed: 50s;
    padding: 50px 0;
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    border-top: 1px solid var(--color-font);
    background-color: var(--color-bg);
}

.reversed{
    justify-content: end;
}

.sliding-content{
    text-wrap: nowrap;
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    animation: slide var(--slider-speed) linear infinite;
}

.sliding-content a{
    color: var(--color-main);
    text-decoration: none;
    transition: .2s ease-in-out;
}

.sliding-content a:hover{
    color: var(--color-main-8);
}

.reversed .sliding-content{
    animation: reverse-slide var(--slider-speed) linear infinite;
}

.info-slider:hover .sliding-content{
    animation-play-state: paused;
}

@keyframes slide {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-100%);
    }
}

@keyframes reverse-slide {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(100%);
    }
}

.slider-web{
    position: sticky;
    top: 80px;
    z-index: 15;
    border-bottom: 1px solid var(--color-font);
}

.slider-graphisme{
    position: sticky;
    top: 80px;
    z-index: 15;
    border-bottom: 1px solid var(--color-font);
}


/* RESPONSIVE */

@media screen and (max-width: 480px){

    h1{
        font-size: 48pt;
        text-align: center;
    }
    h2{
        font-size: 32pt;
    }

    .main-cta{
        font-size: 14pt;
    }

    header{
        padding: 15px;
    }

    .socials img{
        margin-left: 0px;
    }

    .logo img{
        width: 160px;
        height: auto;
    }

    .main-hero{
        padding: 0 15px;
        justify-content: center;
        align-items: center;
    }

    .content{
        width: 100%;
    }

    #about{
        flex-flow: column nowrap;
        padding: 50px 15px 0px 15px;
        width: 100%;
    }

    #about .half{
        width: 100%;
        padding: 30px 0;
        max-width: none;
    }

    #about .half:nth-child(1){
        padding: 0;
    }

    .overtitle{
        margin-right: 0px;
    }

    #about .cta-wrapper{
        justify-content: center;
    }

    #about .content-column:nth-child(1){
        order: 1;
    }

}



/* DEV LABO */

.labo{
    background-image: url('../Assets/Images/bg-main-hero.png');
}

.txt-align-right{
    text-align: right;
}

.demo-slider{
    padding: 50px 120px;
}

.p-slider{
    margin: 50px 50% 25px 0;
}

.labo-code{
    background-color: var(--code-background);
    padding: 15px;
    max-width: 500px;
    overflow: scroll;
    max-height: 300px;
    border-radius: 2px;
    box-shadow: inset 0px 10px 4px var(--code-bg-shadow);
}

.demo-slider-wrapper{   
    width: 100%;
    background-color: red;
}

.demo-sliding-content{
    background-color: blue;
    width: fit-content;
    padding: 15px 0;
    font-size: 14pt;
}

@keyframes Translate{
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(0%);
    }
}

.demo-slider-wrapper-1{   
    width: 100%;
    background-color: red;
}

.demo-sliding-content-1{
    background-color: blue;
    width: fit-content;
    padding: 15px 0;
    font-size: 14pt;
    animation: Translate 10s linear infinite;
}

.demo-slider-wrapper-2{   
    width: 100%;
    background-color: red;
    display: flex;
    flex-flow: row nowrap;
    overflow: hidden;
}

.demo-sliding-content-2{
    text-wrap: nowrap;
    background-color: blue;
    width: fit-content;
    padding: 15px 0;
    font-size: 14pt;
    animation: Translate 10s linear infinite;
}