@import url('https://fonts.googleapis.com/css2?family=Akshar:wght@300;400;500;600;700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --p-mini-size: 14px;
    --p-size: 20px;
    --h3-size: 28px;
    --h2-size: 40px;
    --h1-size: 57px;
    --h1-ultrasize: 80px;
    --h1-gigasize: 113px;

    --space-h1-gigasize: 226px;
    --space-h1-ultrasize: 160px;
    --space-h1: 114px;
    --space-h2: 80px;
    --space-h3: 56px;
    --space-p: 40px;

    --p-mini-size-mobile: 12px;
    --p-size-mobile: 17px;
    --h3-size-mobile: 24px;
    --h2-size-mobile: 34px;
    --h1-size-mobile: 48px;
    --h1-ultrasize-mobile: 68px;
    --h1-gigasize-mobile: 96px;

    --space-h1-gigasize-mobile: 192px;
    --space-h1-ultrasize-mobile: 136px;
    --space-h1-mobile: 96px;
    --space-h2-mobile: 68px;
    --space-h3-mobile: 48px;
    --space-p-mobile: 34px;

    --grid-column-gap: 20px;
    --grid-row-gap: 40px;

    --btn-tb-padding: 10px;
    --btn-lr-padding: 20px;

    --p-font: 'Akshar', sans-serif;
    --title-font: 'Poppins', sans-serif;

    --line-height: 140%;
    --inter-p: 20px;
    --inter-p-mobile: 17px;

    --rux-grey: #161616;
    --rux-beige: #EFE3D4;
    --rux-blue: #313956;

    --bg-color: var(--rux-beige);
    --font-color: var(--rux-grey);

    --link-color: var(--rux-blue);
    --link-color-hover: #526090;
    --link-color-active: #728299;
    --link-color-visited: #313F60;
    --link-color-white: #ececeb;

    --color-dwt: var(--link-color);
    --color-dwt-text: var(--rux-grey);
}

*{
    margin: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

section{
    height: 90vh;
}

.index__body{
    overflow-x: hidden;
    overflow-y: hidden;

    width: 100vw;
    background-color: var(--rux-beige);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    object-fit: cover;
}


p, li, small, cite, label{
    font-family: var(--p-font);
    font-size: var(--p-size-mobile);
    font-weight: 400;
    line-height: var(--line-height);
    color: var(--rux-grey);
}

h2{
    color: var(--rux-grey);
}

a{
    color: var(--link-color);
    font-family: var(--p-font);
    font-weight: 450;
}

a:hover{
    color: var(--link-color-hover);
}

a:active{
    color: var(--link-color-active);
}

/* ----- HORS GENERAL ----- */
.title{
    font-family: var(--title-font);
    line-height: var(--line-height);
}

.text{
    margin-bottom: var(--space-p-mobile);
}

.btn{
    cursor: pointer;
    font-family: var(--p-font);
    font-size: var(--p-size-mobile);
    border: 1px solid var(--rux-grey);
    color: var(--rux-grey);
    background-color: #00000000;
    padding: var(--btn-tb-padding) var(--btn-lr-padding);
}


/* Button burger menu */
.menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #161616f2;
    z-index: 40;
    transform: translateY(-100%);
    transition: transform .3s cubic-bezier(0.25, 1, 0.5, 1);

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.menu--open .menu{
    transform: translateX(0);
}

/* ----- Header (Navbar) ----- */
.index__header{
    z-index: 100;
    position: fixed;
    top: 28px; left: 20px; right: 20px;
}

.menu__list{
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu__el{
    display: flex;
    padding: 10px 0;
    margin: 20px 0;
}

.menu__el a{
    text-decoration: none;
    color: var(--rux-beige);
    padding: 10px 20px;
    transition: .3s ease-in-out;



    position: relative;
    overflow: hidden;
}

.menu__el a::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--rux-blue);
    transition: width .3s ease;
    z-index: -1;
}

.menu__el a:hover::before{
    width: 100%;
}

.menu__el a:hover{
    color: var(--rux-beige);
}

.menu__el a:active{
    color: var(--link-color-white);
    background-color: var(--rux-blue);
}

.menu__el .active--element {

    background-color: var(--rux-blue);
    color: var(--rux-beige);

}



.menu__icons{
    display: flex;
    justify-content: space-between;
}

.menu__logo{
    width: 50%;
}

.menu__link{
    position: relative;
    z-index: 101;
}

.menu__btn{
    background: #00000000;
    border: none;
    cursor: pointer;
    z-index: 41;
}

.menu__icon{
    width: 28px;
}

/* ----- Section home ----- */
.home__primary-title{
    font-size: var(--h2-size-mobile);
    font-weight: 500;
    color: var(--rux-blue);
    
}

.home__secondary-title{
    font-size: var(--h3-size-mobile);
    margin: var(--space-h2-mobile) 0 var(--space-h3-mobile);
}

.home__btn{
    margin-top: var(--space-h3-mobile);
}

.slider{
    z-index: 30;
    position: fixed;
    bottom: 28px; left: 20px; right: 20px;
    display: flex;
}

.home__slider{
    justify-content: end;
}

.btn__slider{
    cursor: pointer;
    font-family: var(--p-font);
    font-size: var(--p-mini-size-mobile);
    border: none;
    color: var(--rux-grey);
    background-color: #00000000;
    display: flex;
    align-items: center;
    padding: 10px;
}

.btn__slider:hover{
    color: var(--link-color-hover);
    scale: 101%;
}

.arrow__left{
    padding-right: 10px;
}

.arrow__right{
    padding-left: 10px;
}

.btn__next, .btn__prev{
    transition: .3s ease-in-out;
}

/* ----- Section presentation ----- */
.presentation__title{
    padding: var(--space-h1-mobile) 0 var(--space-h3-mobile);
    font-size: var(--h3-size-mobile);
    font-weight: 600;
}

.img{
    width: 100%;
}

.presentation__slider{
    justify-content: space-between;
}

/* ----- Section explication ----- */
.explication__title{
    padding: var(--space-h1-mobile) 0 var(--space-h3-mobile);
    font-size: var(--h3-size-mobile);
    font-weight: 600;
}

.explication__slider{
    justify-content: space-between;
}

/* ----- Section 4 ----- */
.inspiration__title{
    padding: var(--space-h1-mobile) 0 var(--space-h3-mobile);
    font-size: var(--h3-size-mobile);
    font-weight: 600;
}

.inspiration__slider{
    justify-content: space-between;
}

/* ----- Section 5 ----- */
.implication__title{
    padding: var(--space-h1-mobile) 0 var(--space-h3-mobile);
    font-size: var(--h3-size-mobile);
    font-weight: 600;
}

.implication__slider{
    justify-content: start;
}

/* ----- Loading Time Bar */
.loading-time{
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background-color: var(--rux-beige);
    height: 5px;
    z-index: 42;
}

.loading-time__bar{
    width: 0%;
    background-color: var(--rux-blue);
    height: 5px;
}

/* ----- Progress Bar ----- */
.reading-progress{
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background-color: var(--rux-blue);
    height: 5px;
    z-index: 42;
}

.reading-progress__bar{
    width: 0%;
    background-color: var(--rux-beige);
    height: 5px;
}

/* ----- Footer ----- */
.footer{
    z-index: 125;
    /* border-top: 1px solid var(--rux-grey); */
    /* background-color: var(--rux-beige); */
    padding: 10px 0;
    position: fixed;
    bottom: 0; left: 0; right: 0;
}

.footer__content{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.footer__list{
    display: flex;
    list-style: none;
    padding: 0;
}

.footer__el a{
    font-size: var(--p-mini-size);
    padding: 0 10px;
}

.footer__copyright{
    font-size: var(--p-mini-size);
}

.dwt{
    -webkit-text-size-adjust: 100%;
    font-family: source-code-pro, monospace;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5238095238;
    -webkit-font-smoothing: antialiased;
    font-size: 80%;
    color: #707070;
    width: 50px;
    margin-left: 10px;
    position: relative;
    top: 5px;
    transition: none;
}

.dwt__txt{
    fill: var(--color-dwt-text);
}

.dwt__und{
    fill: var(--color-dwt);
}

/* ----- Credits ----- */
.credits__wrapper{
    max-width: 85%;
    margin: 0 auto;
}

.credits__menu{
    padding: var(--space-h2) 0 0;
}

.credits__btn{
    font-size: var(--p-mini-size);
    color: var(--rux-blue) !important;
    border: 1px solid var(--rux-blue);
    text-decoration: none;
}

.credits__btn:hover{
    color: var(--rux-beige) !important;
    background-color: var(--rux-blue);
    text-decoration: none;
}

.credits__icon{
    padding: 0 11px 0 0;
}


.credits{
    background-color: var(--rux-beige);
    color: var(--rux-blue);
}

.credits .footer__copyright{
    color: var(--cb-yellow);
}

.credits__title--h1{
    margin: var(--space-h1) 0 var(--space-h2);
    font-size: var(--h1-size);
}

.credits__title--h2{
    margin-bottom: var(--space-h3);
    font-size: var(--h2-size);
    font-weight: 700;
}

.credits__title--h3{
    margin-bottom: 20px;
    font-size: var(--h3-size);
    font-weight: 500;
}

.credits__list{
    margin-bottom: var(--space-h3);
    padding: 0;
}

.credits__el{
    margin-bottom: 20px;
    font-size: var(--p-size);
}

/* Back to the top */
.btn__top{
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #31334C80;
    color: var(--rux-beige) !important;
    border: none;
    cursor: pointer;
    border-radius: 0px;
    transition: ease-in-out .3s;
    width: 40px;
    height: 40px;
    z-index: 160;
}

.btn__top:hover{
    background-color: var(--rux-blue);
    color: var(--rux-beige);
    transition: ease-in-out .3s;
}

.icon__top{
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%; top: 50%;
}

.hidden{
    display: none;
}

img{
    width: 300px;
    opacity: 35%;
}

.img--accueil, .menu__icon, .menu__logo{
    opacity: 100%;
}

h2{
    margin-top: var(--space-h1-gigasize-mobile);
}

.wrapper{
    width: 90%;
    margin: 0 auto;
}

.home__title{
    margin-top: 288px;
}

.img--accueil{
    width: 100%;
}

.img--presentation1, .img--presentation2{
    position: relative;
    top: -450px;
    rotate: 60deg;
    z-index: -1;


}

.img--explication{
    position: relative;
    top: -350px;
    z-index: -1;
    rotate: 20deg;


}

.img--inspiration{
    position: relative;
    z-index: -1;
    rotate: 320deg;
    top: -300px;

    
}

.implication__img{
    position: relative;
    top: -250px;
    rotate: 120deg;
    z-index: -1;


}

.slider{
    position: fixed;
    bottom: 112px; left:20px; right: 20px;
}

.credits__list--last{
    padding-bottom: var(--space-h2);
}

.transition--hide{
    display: none;
}

/* ----- Medias Queries ----- */
@media only screen and (min-width: 480px){
    .wrapper{
        max-width: 80%;
    }

    .index__header{
        top: 56px; left: 40px; right: 40px;
    }

    .slider{
        z-index: 30;
        position: fixed;
        bottom: 112px; left: 40px; right: 40px;
    }

    .home__primary-title{
        font-size: var(--h1-size-mobile);
    }
    
    .home__secondary-title{
        font-size: var(--h2-size-mobile);
    }

    .presentation__title{
        padding: var(--space-h1-ultrasize-mobile) 0 var(--space-h3);
    }

    .explication__title{
        padding: var(--space-h1-ultrasize-mobile) 0 var(--space-h3);
    }

    .inspiration__title{
        padding: var(--space-h1-ultrasize-mobile) 0 var(--space-h3);
    }
}

@media only screen and (min-width: 755px){
    .img--presentation1, .img--presentation2{
        position: relative;
        top: -300px;
        rotate: -30deg;
        z-index: -1;

        
    }
}

@media only screen and (min-width: 768px){
    .wrapper{
        width: 65%;
    }

    .img--presentation1{
        position: relative;
        top: -300px;
        rotate: -30deg;
        z-index: -1;

        
    }

    .img--presentation2{
        position: relative;
        top: -450px;
        rotate: 330deg;
        right: -200px;
        z-index: -1;
    }
}

@media only screen and (min-width: 930px){
    .img--presentation1, .img--presentation2{
        position: relative;
        top: -300px;
        rotate: -30deg;
        z-index: -1;
        right: 0px;

        
    }
}

@media only screen and (min-width: 1024px){
    .transition--hide{
        display: block;
    }

    .wrapper{
        margin: 0;
    }

    img{
        width: auto;
        opacity: 100%;
    }
    
    h2{
        margin-top: 0;
    }

    .img--presentation1, .img--presentation2{
        position: relative;
        top: 0;
        rotate: 0deg;
        z-index: -1;

        
    }
    

    .img--explication{
        position: relative;
        top: 0;
        z-index: -1;
        rotate: 0deg;


    }

    .img--inspiration{
        position: relative;
        z-index: -1;
        rotate: 360deg;
        top: 0;


    }

    .implication__img{
        position: relative;
        top: 0;
        z-index: -1;
        rotate: 0deg;


    }

    p, li, small, cite, label{
        font-size: var(--p-size);
    }

    .menu--toggle{
        display: none;
    }

    .menu{
        transform: translateY(0);
        display: flex;
        flex-direction: row;
        justify-content: end;

        background-color: #00000000;
        width: 100%;
        height: 100px;  
    }

    .menu__list{
        display: flex;
        flex-direction: row;
        position: fixed;
        top: 56px;right: 40px;
    }

    .menu__el{
        margin: 0 20px;
        padding: 0;
        font-size: var(--p-size);
    }

    .menu__el a{
        text-decoration: none;
        color: var(--rux-blue);
        padding: 10px 20px;
        transition: .3s ease-in-out;



        position: relative;
        overflow: hidden;
    }

    .menu__el a::before{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background-color: var(--rux-blue);
        transition: width .3s ease;
        z-index: -1;
    }

    .menu__el a:hover::before{
        width: 100%;
    }

    .menu__el a:hover{
        color: var(--rux-beige);
    }

    .menu__el a:active{
        color: #ececeb;
        background-color: var(--rux-blue);
    }

    .btn{
        font-size: var(--p-size);
    }

    .home__primary-title{
        font-size: var(--h1-size);

    }
    
    .home__secondary-title{
        font-size: var(--h2-size);
        margin: var(--space-h2) 0 var(--space-h3);
    }
    
    .home__btn{
        margin-top: var(--space-h3);
    }

    .btn__slider{
        font-size: var(--p-mini-size);
    }
    
    .presentation__title{
        padding: var(--space-h1-ultrasize) 0 var(--space-h3);
        font-size: var(--h3-size);
        font-weight: 600;
    }

    .explication__title{
        padding: var(--space-h1-ultrasize) 0 var(--space-h3);
        font-size: var(--h3-size);
        font-weight: 600;
    }

    .inspiration__title{
        padding: var(--space-h1-ultrasize) 0 var(--space-h3);
        font-size: var(--h3-size);
        font-weight: 600;
    }

    .implication__title{
        padding: var(--space-h1-ultrasize) 0 var(--space-h3);
        font-size: var(--h3-size);
        font-weight: 600;
    }

    .home__section .wrapper{
        max-width: 100%;
        
        display: grid;
        grid-template-columns: repeat(4, 25vw);
        grid-template-rows: repeat(4,22.5vh);
    }

    .grid--placement{

        position: relative;
        grid-column: 2/4;
        grid-row: 2/4;
        align-self: center;
        width: 100%;
        height: fit-content;
    }

    .home__section .wrapper .title{

        position: absolute;
        bottom: 0;
        z-index: -1;
        width: 100%;        

    }

    .home__section .wrapper .img--accueil {

        position: relative;
        grid-column: 2/4;
        grid-row: 2;
        max-width: 100%;
    }

    .grid .wrapper{

        display: grid;
        grid-template-columns: repeat(6, 16.66vw);
        grid-template-rows: repeat(4,22.5vh);
    }

    .grid .wrapper .presentation__title{

        grid-column: 3/5;
        grid-row: 2;
        align-self:end;
        width: 70%;

    }

    .grid .wrapper .img--presentation1{

        grid-column: 2;
        grid-row: 2;

        margin-left: -20%;
        width: 100%;
    
    }

    .grid .wrapper .img--presentation2{

        grid-column: 5;
        grid-row: 3/5;
        margin-left: 20%;
        margin-top: 30%;
        width: 100%;
    
    
    }

    .grid .wrapper .presentation__text{

        grid-column: 3/6;
        grid-row: 3/4;
        width: 70%;

    }


    .grid .wrapper .explication__title{

        grid-column: 4;
        grid-row: 2;
        align-self: end;

    }

    .grid .wrapper .img--explication{

        grid-column: 2/4;
        grid-row: 2; 
        width: 80%;

    }


    .grid .wrapper .explication__text{

        grid-column: 4/6;
        grid-row: 3;
        min-width: 115%;
    }

    .grid .wrapper .img--inspiration{

        grid-column: 2/3;
        grid-row: 2; 
        width: auto;

    }
    .grid .wrapper .inspiration__text{

        grid-column: 3/4;
        grid-row: 2/3;
        align-self: start;
        justify-self: start;
        min-width: 165%;
        margin-left: 5%;
        margin-top: 20%;

    }

    .grid .wrapper .inspiration__title{

        grid-column: 5;
        grid-row: 2;
        align-self: start;
        min-width: 70%;
        padding: 0;
        margin-top: 20%;

    }

    .implication__section .wrapper{

        grid-template-rows: repeat(8,11.25vh);
    }

    .grid .wrapper .first{
        grid-column: 3;
        grid-row: 6;
         align-self: start;
       justify-self: end;
        width: 350px;
    }

    .implication__section .wrapper .second{

        grid-column: 4;
        grid-row: 6;
         align-self: start;
       justify-self: start;
        width: 350px;
        
        margin-left: 10%;
    }


    .grid .wrapper .implication__title{

        grid-column: 3/5;
        grid-row: 4;
        align-self: center;
        justify-self: center;
        
        margin: 0;
        padding: 0;
    }
    
    .grid .wrapper .implication__img{


        grid-column: 3/5;
        grid-row: 4; 
        align-self: center;
        justify-self: center;
        margin: 0;
        padding: 0;
        width: 150%;
        z-index: -1;

    }

    .home__section .title{
        font-size: var(--h3-size);
    }

/*
 * ----------------------------------------
 *              ANIMATION
 * ----------------------------------------
 */

    h1 {
        display:inline-block;
        overflow:hidden;
        white-space:nowrap;
    } 
      
    .slide-in {
        margin-left: 800px;
    }

    .presentation__transition2 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: var(--rux-blue);
        z-index: 150;  
    }

    .presentation__transition1 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: #8995A4;
        z-index: 150;
        
        
    }
    .presentation__transition--title {
        text-transform: uppercase;
        font-family: sans-serif;
        font-size: 60px;
        position: absolute;
        z-index: 1;
        color: var(--rux-blue);
        font-weight: bold;
        top: 50vh;
        left: 50vw;
        padding: 5%;
        background-image: url(../images/planche1.png);
        background-repeat: no-repeat;
        background-size: 100%;
        transform: translate(-50%,-50%);
        z-index: 151;
    }
    .explication__transition2 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: var(--rux-blue);
        z-index: 150; 
    }

    .explication__transition1 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: #8995A4;
        z-index: 150;
        
        
    }
    .explication__transition--title {
        text-transform: uppercase;
        font-family: sans-serif;
        font-size: 60px;
        position: absolute;
        z-index: 1;
        color: var(--rux-blue);
        font-weight: bold;
        top: 50vh;
        left: 50vw;
        padding: 5%;
        background-image: url(../images/planche1.png);
        background-repeat: no-repeat;
        background-size: 100%;
        transform: translate(-50%,-50%);
        z-index: 151;
    }

    .inspiration__transition2 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: var(--rux-blue);
        z-index: 150;
        
        
    }

    .inspiration__transition1 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: #8995A4;
        z-index: 150;
        
        
    }
    .inspiration__transition--title {
        text-transform: uppercase;
        font-family: sans-serif;
        font-size: 60px;
        position: absolute;
        z-index: 1;
        color: var(--rux-blue);
        font-weight: bold;
        top: 50vh;
        left: 50vw;
        padding: 5%;
        background-image: url(../images/planche1.png);
        background-repeat: no-repeat;
        background-size: 100%;
        transform: translate(-50%,-50%);
        z-index: 151;
    }

    .implication__transition2 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: var(--rux-blue);
        z-index: 150;   
    }

    .implication__transition1 {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100vw;
        background: #8995A4;
        z-index: 150;  
    }
    .implication__transition--title {
        text-transform: uppercase;
        font-family: sans-serif;
        font-size: 60px;
        position: absolute;
        z-index: 1;
        color: var(--rux-blue);
        font-weight: bold;
        top: 50vh;
        left: 50vw;
        padding: 5%;
        background-image: url(../images/planche1.png);
        background-repeat: no-repeat;
        background-size: 100%;
        transform: translate(-50%,-50%);
        z-index: 151;
    }

    .presentation__section .wrapper{
        transform: scale(0.5);
        opacity: 0;
        animation: fadeInScale 1.5s ease forwards;
        animation-delay: 3s;
    }
    
    .presentation__title {
    opacity: 0;
    animation: fadeIn 2.5s ease forwards;
    animation-delay: 3s;
    }
    
    .presentation__text {
    opacity: 0;
    animation: fadeIn 2.5s ease forwards;
    animation-delay: 3s;
    }


    
    .img--presentation1 {
    transform: translateX(70%);
    animation: slideInLeft 2.5s forwards;
    animation-delay: 3s;
    
    }
    
    .img--presentation2 {
    transform: translate(-70%, -75%);
    animation: slideInRight 2.5s forwards ;
    animation-delay: 3s;
    
    }

    .implication__section .wrapper, .inspiration__section .wrapper, .explication__section .wrapper{

        opacity: 0;
        animation: fadeIn 2.5s ease forwards;
        animation-delay: 3s;

    }

    .credits__wrapper{
        max-width: 85%;
        margin: 0 auto;
    }

    
    @keyframes fadeInScale {
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    @keyframes fadeIn {
        100% {
            opacity: 1;
        }
    }
    
    @keyframes slideInLeft {
        100% {
            transform: translateX(0);
        }
    }
    
    @keyframes slideInRight {
        100% {
            transform: translate(0);
        }
    }

    @keyframes moveUpDown {
        0% {
            transform: translateY(-1.5px);
        }
        50% {
            transform: translateY(1.5px);
        }
        100% {
            transform: translateY(-1.5px);
        } 
    }



/*
 * ----------------------------------------
 * animation flip-diagonal-1-tr
 * ----------------------------------------
 */

    .flip-diagonal-1-tr {

        transform:rotate3d(1, 1, 0, 180deg)scale(0.2) translate(-100%,250%) rotate(-40deg);
        animation: flip-diagonal-1-tr 3s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
        animation-delay: 3s;
        opacity: 0;
    }

    .inspiration__text{

        opacity: 0;
        animation: fadeIn 2.5s ease forwards;
        animation-delay: 5.5s;
    }

  @keyframes flip-diagonal-1-tr {
    100% {

        transform: rotate3d(1, 1, 0, 0deg) scale(1) translate(0);
        opacity: 1;
    }
  } 
  
/*
 * ----------------------------------------
 * animation flip-diagonal-2-tl
 * ----------------------------------------
 */
 

    .flip-diagonal-2-tl {
	    animation: flip-diagonal-2-tl 1s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
        animation-delay: 3s;

    }

    @keyframes flip-diagonal-2-tl {
        0% {
            transform: rotate3d(-1, 1, 0, 180deg)  scale(0.5);
        }
        100% {
            transform: rotate3d(-1, 1, 0, 360deg) scale(1);
        }
    }





/*
 * ----------------------------------------
 * animation bounce-in-fwd
 * ----------------------------------------
 */

    .bounce-in-fwd {

        animation: bounce-in-fwd 1.1s both;
        animation-delay: 3s;
    }

  @keyframes bounce-in-fwd {
    0% {
     
        transform: scale(0);
        animation-timing-function: ease-in;
      opacity: 0;
    }
    38% {
      
        transform: scale(1);

        animation-timing-function: ease-out;
      opacity: 1;
    }
    55% {
   
        transform: scale(0.7);

        animation-timing-function: ease-in;
    }
    72% {
     
        transform: scale(1);

        animation-timing-function: ease-out;
    }
    81% {
    
        transform: scale(0.84);

        animation-timing-function: ease-in;
    }
    89% {

        transform: scale(1);

        animation-timing-function: ease-out;
    }
    95% {
    
        transform: scale(0.95);

        animation-timing-function: ease-in;
    }
    100% {
    
        transform: scale(1);

        animation-timing-function: ease-out;
    }
  }

  
  
  
}

@media only screen and (min-width: 1280px){
    .home__section .title{
        font-size: var(--h2-size);
    }
}

@media only screen and (min-width: 1440px){

    .img--accueil{

        width: 100%;
    }

    .home__section .title{
        font-size: var(--h2-size);
    }

    .credits__wrapper{
        max-width: 85%;
        margin: 0 auto;
    }
}

@media only screen and (min-width: 1846px){
    .home__section .title{
        font-size: var(--h1-size);
    }
}

@media only screen and (max-height: 667px){
    .slider{
        bottom: 68px; left: 20px; right: 20px;
    }
}

@media only screen and (max-height: 750px){
    .home__primary-title{
        font-size: var(--h1-size);
        margin-top: var(--space-h1-ultrasize-mobile);
    }


    .presentation__title{
        padding-top: 0;
    }

    .explication__title{
        padding-top: 0;
    }

    .inspiration__title{
        padding-top: 0;
    }

    .implication__title{
        padding-top: 0;
    }

}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .presentation__transition--title {
        background-image: url(../images/planche1@2x.png);
    }

    .explication__transition--title {
        background-image: url(../images/planche1@2x.png);
    }

    .inspiration__transition--title {
        background-image: url(../images/planche1@2x.png);
    }

    .implication__transition--title {
        background-image: url(../images/planche1@2x.png);
    }
}
