/* Variables ************************************/
:root {
    --main-color : #27703d;
    --main-color-smmoth : #3a644d;
    --emphasis-color : #732DD9;
    --text-color : #554D38; 
    --text-color-light : #ffffff;
    --bg-color : #ffffff; 

    --menu-bg-color : #aaaaaacc; 
    --menu-text-color : #732DD9;


    --main-font-size : 1rem;
    --medium-font-size : 1.3rem;
    --big-font-size : 2.3rem;
    --big-big-font-size : 4rem
}


@media(prefers-color-scheme: dark){

    :root{ /*Dark Mode */
        --main-color : #1eac49;
        --main-color-smmoth : #105e33;
        --emphasis-color : #DBA507;
        --text-color : #D2CDB9; 
        --text-color-light : #ffffff;
        --bg-color : #2e2a1f;     
        
        --menu-bg-color : #222222cc; 
        --menu-text-color : #1eac49;
    }   
}


/* General **************************************/

html{
   /* scrollbar-width: none;*/
    scrollbar-shadow-color: #105e33;
    scrollbar-color: var(--main-color-smmoth) transparent;

    scroll-behavior: smooth;
}


body {
    margin:0;
    background-color: var(--bg-color);
    font-size: var(--main-font-size);
    color: var(--text-color);
}

img{
    pointer-events: none;
}

video{
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

button{
    border: none;
    background-color: transparent;
}

#content{
    padding-left: 7vw;
    padding-right: 7vw;
    overflow-x: hidden;
}

.emphasis{
    color: var(--text-color-light);
    font-weight: 300;
    background-color: var(--main-color-smmoth);
}

.hoverScale:hover{
    scale: 150%;
    transition: 0.1s ease-in-out;
}

/* Header / Menu **************************************/

#header{
    position: fixed;

    width: 100vw;
    z-index: 100;
}

#headerLogoBox{
    display: block;
    position: absolute;

    top: 20px;
    left: 20px;
    height: 60px;
}

#headerLogo
{
    height: 100%;
}


#menuButton{
    display: block;
}

#cancelMenuButton{
    display: none;
}

.menuButtonBox{
    display: block;
    position: absolute;

    top:35px; 
    right: 35px;
    height: 45px;
}

.menuIcon{
    height: 100%;
}

#menu{
    padding: 0;
    height: 100vh;
    width: 100%;

    background-color: var(--menu-bg-color);
    backdrop-filter: blur(10px);

    position: fixed;
    align-items: center;
    text-align: center;
    justify-content: center;

    display: none;
    z-index: 90;

    li{
        display: block;
        padding-bottom: 8vh;
        align-items: center;
        list-style: none;
        
    }
    a {
        color: var(--menu-text-color);
        font-size: var(--big-big-font-size);
    }
    a:hover{
        color: var(--text-color-light);
    }
    
}



/* Start ***************************************/

#start{
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#videoStart{
    min-width: 100%;
    min-height: 100vh;
    width: auto;
    height: auto;
    max-height: 100vh;
    max-width: 100vw;

    background-size: cover;   
    object-fit: cover;
    
    pointer-events: none;
    overflow: hidden;
}

.logoStart{
    position: absolute;
    width: 60vw;
}

#muteButton{
    display: none;
}

.volumeButton{
    position: absolute;
    bottom: 25px;
    left: 25px;
}

.volumeImg{
    height: 50px;
    color: var(--text-color-light);
}

/* TITLE ***************************************************/

.sectionTitle{
    font-size: var(--big-font-size);
    color: var(--main-color);
}

.introText{
    text-align: center;
    font-size: var(--big-big-font-size);
    margin-left: auto;
    margin-right: auto;
    color: var(--main-color);
    overflow: hidden;

}


/* SERVICE *************************************************/

.service{
    display: flex;
    flex-direction: row;
    margin-top: 64px;
    margin-bottom: 64px;
}

.serviceVideoBox{
    max-height: 315px;
    max-width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    margin-right: 5vw;
    margin-left: 5vw;
}
.serviceVideo{
    width: 100%;
    border-radius: 10px;
    transition-duration: 500ms;
    margin-bottom: 48px;
}

.serviceTitle{
    margin: 0;
    color: var(--main-color);
    font-size: var(--big-font-size);
}

.serviceText{
    margin: 0;
}

.serviceP{
    display: block;
    max-width: 35vw;
    font-size: var(--medium-font-size);
}

.serviceL{
    text-align: left;
}

.serviceR{
    flex-direction: row-reverse;
    text-align: right;
}

.serviceVideoP{
    position: absolute;
    opacity: 1;
    pointer-events: none;
    max-width: 75%;

    opacity: 0;
    transition: opacity 350ms;
    
    font-size: var(--medium-font-size);
    color: var(--text-color-light);
}

.serviceVideoBox:hover
{
    .serviceVideoP{
        opacity: 1;
    }

    .serviceVideo{
        filter: blur(2px) brightness(0.4);
    }
}


/* MEMBRES **************************************************/

#membres{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.membresBox{
    max-width: 80%;
    margin: 16px 32px 32px 32px;
}

.membresPhoto{
    max-height: 200px;
    border-radius: 15px;
}

.membresName{
    text-align: center;
}



/* CONFIANCE ************************************************/

#confiance{
    display: flex;
    overflow-x: hidden;
    margin-bottom: 80px;
}

#confiance::-webkit-scrollbar{
    display: none;
}

.confianceLoop{
    display: flex;
    align-content: center;
    justify-content: center;
    animation : confiance-animation 40s linear infinite;
}

.confianceLogo{
    flex: 0 0 80px;
    max-height: 100px;
    padding: 16px;
    margin : 16px;
    pointer-events: none;

}

@keyframes confiance-animation{
    from {translate: 0;}
    to {translate : -100%;}
}

/* FOOTER ***********************************************************/

#footer{
    background-color: var(--main-color-smmoth);
    color: var(--text-color-light);
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 40px;
    padding-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footerBox{
    display: block;
}

.footerLogo{
    height: 60px;
    padding-bottom: 10px;
    max-width: 100%;
}

#footerSocialsLogo{
    display: inline-block;
    margin-bottom: 32px;
}

.footerSocialsLogoBox{

    margin-right: 7px; 
}

.socialsLogo{
    height: 30px;
}

.socialsLink{
    display: inline-block;
    height: 30px;
}


/* Animation ***************************************************************************/

.animOpacity {
    opacity: 0;
    transition: 800ms ease;
}

.animOpacity.onScreen {
    opacity: 1;
}


.animL {
    transform: translateX(-300px);
    transition: 800ms ease;
}

.animL.firstTimeOnScreen {
    transform: none;
}

.animR {
    transform: translateX(300px);
    transition: 800ms ease;
}

.animR.firstTimeOnScreen {
    transform: none;
}

.animB {
    transform: translateY(20px);
    transition: 800ms ease;
}

.animB.firstTimeOnScreen {
    transform: none;
}



/* switch size (vertical) *****************************************************************/

@media(max-width : 1000px)
{

    .logoStart{
        width: 80vw;
    }

    .service{
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .serviceP{
        max-width: 100%;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .serviceVideoBox{
        margin-left: auto;
        margin-right: auto;
    }
    .serviceText{
        text-align: center;
    }

    #footer{
        flex-direction: column;
    }
}