/* Variables ************************************/
:root {

    --colorMainDark: #704ee7;
    --colorMainDark900: #1f0b55;
    --colorMainDark200: #bbb2f6;

    --colorMainLight: #a72df8;
    --colorSub: #f7dd5f;

    --black50: #fbfbfb;
    --black100: #dbdbdb;
    --black950: #121212;

}

/* Text Font and Style ********************************/

@font-face {
    font-family: 'mainFont';
    font-display: swap;

    src: 
        local("Plus Jakarta Sans"),
        url("../medias/fonts/PlusJakartaSans_wght.ttf");

} 

 
.display1
{
    text-transform: uppercase;
    font-weight: 600;
    font-size: 40px;
}

.display2
{
    text-transform: uppercase;
    font-weight: 600; 
    font-size: 32px;

}

.display3
{
    font-weight: 500;
    font-size: 24px;
}

.displaySmall
{
    font-weight: 500;
    font-size: 16px;
}

/* General **************************************/

html{
   /* scrollbar-width: none;*/
    scrollbar-shadow-color: var(--colorMainLight);
    scrollbar-color: var(--colorMainLight) transparent;

    scroll-behavior: smooth;
    font-family: 'mainFont';
}


body {
    margin:0;
}

img{
    pointer-events: none;
}

video{
    pointer-events: none;
}

a {
    text-decoration: none;
    color: white;
}

button{
    border: none;
    background-color: transparent;
}

/* Animation ******************************************/

.animOpacity{
    opacity: 0;
    transition: 400ms linear;
}

.animOpacity.onScreen{
    opacity: 1;
}

/* Header / Menu **************************************/

#header{
    position: fixed;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 90px;
    z-index: 100;
    top: 0px;
    background: rgba(255, 255, 255, 0);
    transition: linear 100ms;
    a{
        color: white;
    }
}

#header.headerIn
{
    background: rgb(255, 255, 255);
    .navLink {
        color: var(--black950);
    }
}

#headerLogoBox{
    display: block;
    position: absolute;
    overflow: hidden;

    top: 15px;
    left: 20px;
    height: 60px;
}

#headerLogo
{
    height: 100%;
    width: 280px;
    filter: invert(0%);
}

#headerLogo.headerIn
{
    filter: invert(100%);
}

#navLinksDiv{
    width: 40%;
    display: flex;
    justify-content: space-around;
}


.navLink{
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.navLink.selected{
    text-decoration: underline solid 2px;
}

/* contact button */ 
.contactButton{
    display: block;
    height: 50px;
    width: 200px;
    border-radius: 15px;

    user-select: none;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    border: solid 2px white;
}

#headerContactButton
{
    backdrop-filter: blur(10px);
    border-color:  white;

    background: none;
    color: white;
}

#menuContactButton{
    font-weight: 600;
}

#headerContactButton:hover, #headerContactButton:focus{
    color: var(--colorMainLight);
    border-color: var(--colorMainLight);
    animation: contactPulse 600ms ease-out infinite;
}

.headerIn#headerContactButton:hover, .headerIn#headerContactButton:focus, #menuContactButton:hover, #menuContactButton:focus{
    background: none;
    color: var(--colorMainLight);
    border-color: var(--colorMainLight);
    animation: contactPulse 600ms ease-out infinite;
}

#headerContactButton.headerIn, #menuContactButton
{
    border: solid 2px transparent;
    background: linear-gradient(120deg , var(--colorSub) 5%,pink,var(--colorMainDark),var(--colorMainLight),var(--colorSub) 95%);
    background-size: 500%;
    animation: contactButtonBackground 15s linear infinite;
}

@keyframes contactButtonBackground{
    0% {background-position: 500%;}
    100% {background-position: 0%;}
}

@keyframes contactPulse{
    0% {box-shadow: 0 0 0 0px var(--colorMainLight);}
    100% {box-shadow: 0 0 0 10px transparent;}
}

/* menu */

#menuButton{
    display: block;
}

#cancelMenuButton{
    display: none;
}

#headerButtonBox{
    display: block;
    position: absolute;

    top: 20px; 
    right: 20px;
    margin-right: 20px;
}

#headerMenuButtonDiv{
    display: none;
}

.menuIcon{
    margin-top: 10px;
    height: 30px;
}

#menu{
    padding: 0;
    top: 0px;
    height: 100vh;
    width: 100%;

    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.397);

    position: fixed;
    align-items: center;
    text-align: left;
    justify-content: left;

    display: none;
    z-index: 90;

    li{
        display: block;
        padding-bottom: 20px;
        align-items: center;
        list-style: none;
        
    }
    .menuLink {
        color: white;
        text-transform: uppercase;
        font-size: 24px;
        font-weight: 500;
    }  
}

/* Action Button *******************************/

.actionButton{
    display: block;
    position: relative;
    padding: 0;

    font-size: 18px;
    font-weight: 700;
    color: black;


    background: linear-gradient(110deg,var(--colorMainLight) 10%,var(--colorSub),pink,var(--colorMainLight) 90%);
    background-size: 500%;
    height: 50px;
    width: 240px;
    border-radius: 12px;
    animation: actionBackground 5s linear infinite;

    user-select: none;
    line-height: 50px;
    text-align: center;
}

@keyframes actionBackground {
    0% {background-position:0px 0px ;}
    100% {background-position: 1200px 0px;}
}

/* outline */
.actionButton::before{
    content: "  ";
    display: block;
    position: absolute;
    top: -7%;
    left: 0%;
    height: 114%;
    width: 100%;
    background: linear-gradient(90deg, transparent 65%, var(--colorSub) ,transparent 95%);
    background-size: 250%;
    z-index: -1;
    border-radius: 12px;
    animation: actionOutline 3s linear infinite;
    filter: blur(3px);
}

@keyframes actionOutline{
    0% {background-position:0px 0px ;}
    40% {background-position:0px 0px ;}
    100% {background-position: 500px 0px;}
}

/* on hover */

.actionButton::after 
{
    content: "  ";
    display: block;
    position: absolute;
    background: none;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    top: 0px;
    z-index: -1;
}

.actionButton:hover::after, .actionButton:focus::after
{
    background: var(--colorSub);
}

.actionButton:hover, .actionButton:focus{
    color: transparent;
    background: linear-gradient(110deg,var(--colorMainDark) 10%,var(--colorMainLight),pink,var(--colorMainDark) 90%);
    background-clip: text;
}


.actionButton:hover::before, .actionButton:focus::before{
    background: none;
    transition: ease-in-out 500ms;
    animation: pulseAnimation ease-out 600ms infinite;
    filter: none;
    height: 100%;
    top: 0%;
}


@keyframes pulseAnimation{
    0% {box-shadow: 0 0 0 0px var(--colorMainDark);}
    100% {box-shadow: 0 0 0 12px transparent;}
}


/* small action */ 

#smallActionButton{
    display: none;
    width: 120px;
    font-size: 16px;
    font-weight: 700;

    animation: actionBackground 10s linear infinite;
}

/* Start ***************************************/

#accueil{
    display: flex;
    overflow: hidden;
}


/*Loading */

#loadingView{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -20;
}

#loading2
{
    opacity: 0.5;
    background: linear-gradient(to right,#DBA507,#722dd9);

    mask-image: linear-gradient(85deg ,transparent 40%,white,transparent 60%);
    mask-size: 200%;
    animation: loadingMask 1.6s linear infinite;

    display: flex;
    align-items: center;
    justify-content: center;
    img{
        max-height: 40svh;
        max-width: 80vw;
        filter: grayscale(100%);
    }
}

@keyframes loadingMask {
    0% {mask-position: 0%;}
    100% {mask-position: -200%;}
}

#loading1
{
    background: #888888;
}

.loadingFullScreen
{   
    position: absolute;
    height: 100svh;
    width: 100vw;  
}

.loadingOpacity0{
    opacity: 0;
}

/*video */

.startFullScreen{
    min-width: 100%;
    min-height: 100svh;
    width: auto;
    height: auto;
    max-height: 100svh;
    max-width: 100vw;

    background-size: cover;   
    object-fit: cover;
}

#videoStart{
    pointer-events: none;
    overflow: hidden;

    z-index: -10;
}

#textStart{
    color: white;
    position: absolute;
    bottom: 0px;
    left: 0px;


    padding-left: 25px;
    padding-bottom: 25px;
}

#textStartBig{
    margin: 5px 0px 10px 0px;
}

#textStartSub{
    margin: 0;
}

#videoMask{
    position: absolute;
    opacity: 0.8;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 200px,transparent);
    z-index: -9;
}

/* arrow Down */ 

#startArrowDown{
    height: 30px;
    position: absolute;
    bottom: 30px;
    right: 50%;
    left: 50%;

    animation: moveUp 0.5s infinite alternate ease-out;
}

@keyframes moveUp{
    0% {transform: translateY(0px);}
    100% {transform: translateY(-8px);}
}

/* volume */ 

#volumeShow{
    position: fixed;
    color: white;
    bottom: 0px;
    right: 0px;

    transition: linear 100ms;
    z-index: 20;
}

.activated#volumeShow, .off#volumeShow
{
    opacity: 0;
    z-index: -1;
}

#volumeText{
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 220px;
    padding-right: 180px;
    margin: 0;
}

#volumeArrow{
    position: absolute;
    bottom: 20px;
    right: 110px;

    user-select: none;
}

#volumeTextSon{
    position: relative;
    color: var(--colorSub);
    z-index: -1;
}

#volume {
    position: fixed;
    z-index: 25;
    bottom: 25px;
    right: 25px;
    height: 48px;
    width: 48px;
    transition: ease-in-out 100ms;
    img{
        position: absolute;
        height: 60%;
        margin: 20%;
        transition: linear 100ms;

        user-select: none;
    }
}

#volumeBackground{
    position: absolute;
    border-radius: 50px;
    height: 48px;
    width: 48px;
    transition: ease-in-out 100ms;
    background: var(--colorMainDark900);
}

.activated#volume
{
    #volumeSwitchMuted{
        opacity: 0;
    }
    #volumeSwitchVolumeOn{
        opacity: 1;
    }         
    #volumeBackground{
        background: var(--colorMainDark200);
    }
}

#volumeSwitchVolumeOn{
    opacity: 0;
}

#muteButton{
    display: none;
}

.volumeButton{
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0;
    z-index: 25;
}

@property --volumeOutlineDeg
{
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

@keyframes outlineRotate {
    to
    {
        --volumeOutlineDeg: 360deg;
    }
}

#volume::after {
    content: "  ";
    position: absolute;
    background: conic-gradient(from var(--volumeOutlineDeg) at center,transparent 20%,var(--colorMainLight),var(--colorMainDark),transparent 80%);
    height: 120%;
    width: 120%;
    top: -10%;
    left: -10%;
    z-index: -1;
    border-radius: 50px;
    animation: outlineRotate 1.8s linear infinite;
    transition: none;
    filter: blur(2px);
    transition: ease-in-out 100ms;
}

.activated#volume::after{
    opacity: 0;
}

/* BACKGROUND ***********************************************/ 
#background
{
    display: block;
    position: absolute;
    top: 0px;
    width: 100%;


    height: 415vh;
    clip-path: ellipse(350% 100% at 50% 0%);

    background: linear-gradient(to bottom,var(--colorMainDark) 30%,var(--colorMainLight));
    z-index: -100;
}


/* TITLE ***************************************************/

.sectionTitle{
    text-align: left;
    display: flex;
    margin-top: 0;
    margin-left: 10%;
    margin-right: 10%;
    p {
        margin: 0px auto 0px auto;
    }
}




/* SERVICE *************************************************/
#services{
    display: block;
    position: sticky;
    top: 90px;
    height: 92vh;
    overflow-x: hidden;
}


#introTextDiv{
    position: relative;
    z-index: -1;
    display: flex;
    width: 100vw;
    height: 19vh;
    overflow: visible;
    align-items: center;
    justify-content: center;
}

#introText{
    color: white;
}


#servicesDiv{
    margin-left: 5vw;
}

.service{
    transition: ease-in-out 400ms;
    display: block;
    position: absolute;
    height: 60vh;
    padding-right: 2%;
    opacity: 0;
}

.serviceVideo{
    transition: linear 600ms;
    height: 100%;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 5px;
    left: 8vw;
    mask-image: linear-gradient(to right, white 40%, transparent 60%);
    mask-size: 300%;
    mask-position: 60% 0%;
    filter: brightness(65%);
}

.serviceText{
    opacity: 0;
    position: absolute;
    left: 0px;
    bottom: 0px;
    transition: linear 600ms;
    width: 60%;
}

.serviceTitle{
    font-size: 72px;
    font-weight: 700;
    color: white;
    margin: 30px 0px;
}

.serviceP{
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin: 10px 0px;
}

.serviceButton{
    display: block;
    height: 40px;
    width: 140px;

    border: solid 2px transparent;
    border-radius: 10px;
    margin-top: 30px;

    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 700;

    color: black;

    background: var(--colorSub);

    img{
        margin-top: 2px;
        filter: brightness(0%);
        margin-right: 5px;
        height: 40%;
    }
}

.serviceButton:hover, .serviceButton:focus{
    background: white;
    color: var(--colorSub);
    border-color: var(--colorSub);
    background: transparent;
    animation: servicePulse 600ms ease-out infinite;
    backdrop-filter: blur(4px);
    img{
        filter: none;
    }
}

@keyframes servicePulse{
    0% {box-shadow: 0 0 0 0px var(--colorSub);}
    100% {box-shadow: 0 0 0 10px transparent;}
}

.servicePlaceHolderBig
{
    height: 50vh;
}
.servicePlaceHolderSmall
{
    height: 10vh;
}

.nextService{
    opacity: 0.4;
}

.currentService{
    transition-delay: 0ms;
    opacity: 1;
    .serviceText
    {
            opacity: 1;
    }
    .serviceVideo
    {
        mask-position: 0% 0%;
    }
}

/* points */

.servicePointDiv{
    position: relative;
    z-index: 2;
    left: 6vw;
}

.servicePoint{
    display: block;

    height: 20px;
    width: 20px;
    border-radius: 10px;
    background-color: white;
    margin-bottom: 5px;

    transition: linear 800ms;
}

.servicePoint.selected{
    background-color: var(--colorSub);
}

/* MEMBRES **************************************************/
#collectif{
    margin-top: 2vh;
    padding-top: 15vh;
}

#collectifText{
    text-align: left;
    margin: 3% 20%;
}

#membres{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.membresBox{
    position: relative;
    margin: 32px;
    height: 250px;
    width: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--colorMainLight);
    img {
        position: relative;
        transition: ease-in-out 200ms;
        height: 100%;
        filter: grayscale(100%);
    }
}

.membresBox:hover{
    img{
        mask-image: linear-gradient(190deg,white 30%,rgba(1, 1, 1, 0.4));
    }
}

.membresName{
    text-align: left;
    position: absolute;
    color: white;
    bottom: 10px;
    left: 0px;
    padding: 20px;
    margin: 0px;

    font-size: 18px;
    font-weight: 700;
}

.membresJob{
    text-align: left;
    position: absolute;
    color: white;
    bottom: 0px;
    left: 0px;
    padding: 20px;
    padding-bottom: 15px;
    margin: 0px;

    font-size: 10px;
}



/* CONFIANCE / CONTACT ************************************************/
#contact{
    padding-top: 15vh;
    margin-top: 100px;
}

#confiance{
    margin: 100px 8vw 80px 8vw;
    display: flex;
    overflow-x: hidden;
    height: 95px;
    mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 1) 10% 90%, transparent);
}

#confiance::-webkit-scrollbar{
    display: none;
}

.confianceLoop{
    display: flex;
    align-content: center;
    justify-content: center;
    animation : confiance-animation 65s linear infinite;
}

.confianceLogo{
    flex: 0 0 80px;
    padding: 0px 20px;
    margin : 0px 20px;
    height: 100%;
}

@keyframes confiance-animation{
    from {translate: 0;}
    to {translate : -100%;}
}

#contactInfo{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    margin-bottom: 100px;
}

.contactInfoButton{
    display: block;
    height: 66px;
    width: 230px;
    margin: 20px;

    border-radius: 40px;
    border: solid 2px var(--colorMainLight);

    text-transform: uppercase;
    color: var(--colorMainLight);
    line-height: 66px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;

    img{
 
        margin-left: 20px;
    }
}

.contactInfoButton:hover, .contactInfoButton:focus
{
    color: white;
    background: var(--colorMainLight);

    img{
        filter: grayscale(100%) contrast(500%) invert(100%);
    }
}

#mailButton
{
    color: black;
    border-color: transparent;
    width: 479px;
    background-color: var(--colorSub);

    img{
        filter: grayscale(100%) contrast(200%);
    }
}

#mailButton:hover, #mailButton:focus{

    background-color: transparent;
    color: var(--colorMainLight);
    border-color: var(--colorMainLight);
    img{
        filter: none;
    }
}



/* FOOTER ***********************************************************/

#footer{
    background-color: var(--black950);
    color: var(--black100);
    
    padding: 30px;

    font-size: 12px;
    font-weight: 400;

    a{
        margin: 12px 0px;
        display: block;
        color: var(--black100);
    }
}

.footerButtonText
{
    margin: 0;
}

#footerDiv{
    display: flex;
    flex-direction: row;
}

.footerTitle{
    text-transform: uppercase;
    font-size: 14px;
    color: var(--black50);
}

.footerBox{
    display: block;
    margin-right: 5vw;
}

.footerLogo{
    height: 60px;
    padding-bottom: 10px;
    max-width: 100%;
}

.socialsLogo{
    height: 30px;
}

.socialsLink{
    height: 30px;
}

.footerSocialsLogoBox{
    display: inline-block;
    margin-right: 4px;
}

#footerLast{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px 0px;
    border-top: solid var(--black50) 2px;
}

/* Responsive ************************************************************/ 
@media(width < 1000px),(height < 450px)
{
    /*cancel opacity animation */ 
    .animOpacity{
        opacity: 1;
    }

    /* display */ 
    .display1
    {
        font-size: 30px;
    }

    .display2{
        font-size: 24px;
    }

    .display3
    {
        font-size: 18px;
    }

    .displaySmall
    {
        font-size: 12px;
    }

    /* start */ 
    #volumeShow{
        display: none;
    }

    #header{
        height: 0px;
    }

    #startArrowDown
    {
        display: none;
    }

    /*header */ 
    #headerLogoBox{
        width: 60px;
    }

    #headerLogo.headerIn{
        filter: none;
    }

    #headerLogo.headerIn.dark{
        filter: invert(100%);
    }

    #navLinksDiv{
        display: none;
    }

    #headerContactButton{
        display: none;
    }

    #headerMenuButtonDiv{
        display: block;
    }

    .dark{
        filter: invert(100%);
    }


    /*services */ 
    #services{
        top: 0px; 
        height: 100vh;
        overflow: hidden;
    }

    #servicesDiv{
        margin: 0;
    }

    .service{
        opacity: 1;
        height: 100%;
    }

    #introTextDiv{
        display: none;
    }

    .servicePointDiv{
        left: 15px;
        top: 25vh;
    }

    .serviceTitle{
        font-size: 40px;
        font-weight: 600;
    }

    .serviceP{
        font-size: 16px;
        max-width: 90vw;
    }

    .serviceVideo{
        mask-image: none;
        left: calc(-50% + 50vw);
        min-width: 100vw;
        min-height: 100vh;
        max-height: 100%;
        object-fit: cover;
        width: auto;
        height: auto;
    }
    
    .nextService{
        opacity: 1;
    }

    .serviceText{
        bottom: 75px;
        left: 15px;
    }

    .servicePlaceHolderBig
    {
        height: 70vh;
    }

    /* contact */ 

    .contactInfoButton{
        font-size: 16px;
        line-height: 42px;
        height: 42px;
        width: 180px;
    }

    #mailButton{
        width: 380px;
    }
    /* footer */ 

    #footerDiv{
        flex-direction: column;
    }

    #footerLast{
        flex-direction: column-reverse;
    }
}


@media(width < 420px)
{
    #collectifText
    {
        margin: 3% 10%;
    }

    #confiance{
        height: 80px;
    }
    
    .contactInfoButton{
        font-size: 14px;
        line-height: 30px;
        height: 30px;
        width: 120px;

        img{
            display: none;
        }
    }

    #mailButton{
        width: 300px;
    }
}

/* smalllllll */ 
@media(width < 350px)
{
    .display1{
        font-size: 24px;
    }

    .serviceTitle{
        font-size: 28px;
    }

    .serviceP{
        font-size: 12px;
    }

    #bigActionButton{
        display: none;
    }

    #smallActionButton{
        display: block;
    }


    .contactInfoButton{
        font-size: 10px;
        line-height: 30px;
        height: 30px;
        width: 100px;

        img{
            display: none;
        }
    }

    #mailButton{
        width: 220px;
    }
}


/* service Point */ 
@media(height < 550px)
{
    .servicePointDiv{
        display: none;
    }
}
