/***************************
**   TABLE DES MATIERES   **
****************************
**                        **
** 0. INITIALISATEUR      **
** 1. DIMENSIONS          **
** 2. POSITIONNEMENT      **
** 3. MARGES              **
** 4. FONTS               **
** 5. BACKGROUND          **
** 6. LIST                **
** 7. SHADOW              **
** 8. BORDER              **
** 9. RESPONSIVITE        **
** 10. TRANSITION         **
** 11. ANIMATION          **
** 12. PSEUDO-ELEMENT     **
**                        **
***************************/


/***************************
***   0.INITIALISATEUR   ***
***************************/

/*
    Un initialisateur est intégré au css de Bootstrap.
    Cependant quelques détails on dû être modifié.
*/

*{
    margin: 0;
    padding: 0;
}

ul{
    margin-bottom: 0;
    margin-top: 0;
    padding: .5rem 0;
}

/*Bootstrap row*/
.row{
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100%;
}



/* Valeur de la classe offset-1 divisé par 2
* cette classe ne pouvant par être directement utilisé
* pour les section du main de la page index dû a d'autre classe */
@media (min-width: 992px) {
     .main-section{
        margin-left: 4.1666% !important;
        margin-right: 4.1666% !important;
    }
}

/***************************
**     1.DIMENSIONS       **
***************************/

header{
    height: 11em;
}

.logo{
    width:100px !important;
    height:80px !important;
}

main{
    height: auto;
}

.navigation ul{
    width: 100%;
}

.bouton{
    width: 10em;
}

img{
    height: 100%;
}

.icons{
    width: 48px;
    height: 48px;
}

/***************************
**   2.POSITIONNEMENT     **
***************************/

header{
    display: flex;
}

ul,li
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

h1,.logo{
    align-self: center;
}

h1,h2,.centre
{
    text-align: center;
}

main{
    display: flex;
    flex-direction: row;
}

/*Phrase d'intro*/
.entete{
    text-align: center;
}

/*Navigation*/
.colonne{
    text-align: center;
}

.navigation{
    position: -webkit-sticky;
    position: -mos-sticky;
    position: -o-sticky;
    position: sticky;
    top: 1em;
    left: 0;
}

.navigation ul{
    display: flex;
    flex-direction: column;
}

section{
    display: flex;
    align-items: center;
    flex-direction: column;
}

/*Relatif, pour l'animation*/
.rel section{
    position: relative;
    top: 0;
}

.perspective section p{
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
}

.perspective section article p,.perspective section article {
    display: flex;
    align-content: center;
    justify-content: center;
}

.bouton{
    position: relative;
}

figure{
    float: left;
    text-align: center;
}

article{
    display: flex;
    align-items: center;
}

img{
    float: left;
}

footer
{
    text-align: center;
    position: static;
    bottom: 0;
    left: 0; 
}

footer p{
    position: relative;
    top: 1em;
}

.perspective{
    perspective: 4000px;
    display: flex;
    flex-direction: column;
}

.image {
    display: flex;
    flex-wrap: wrap;
}

/***************************
**        3.MARGES        **
***************************/

.logo{
    padding-right: 0;
}

div.navigation-fixe nav ul{
    margin-bottom: 0;
    margin-top: 0;
    
    padding-bottom: .5rem ;
    padding-top: .5rem;
}

ul,li
{
    margin-bottom: .5rem;
    margin-top: .5rem;
}

div.navigation-fixe nav ul a{
    margin-top: .8em;
    margin-bottom: .5em;
}

/*Garder le 'li' a la même taille que le 'a' pour le hover*/
div.navigation-fixe nav ul a li{
    margin: 0;
    padding: 0;
}

h1,.logo{
    margin-bottom: 0;
}

/*Phrase d'intro*/
.entete{
    margin-top: 1em;
    padding: .5em 0;
}

/*Navigation*/
.colonne{
    padding-right: 0;
}

.navigation{
    padding: 1em;
}

.navigation ul li{
    padding: 1em .4em;
}

section{
    margin: 1em 0;
    padding: 2em 0;
}

.perspective section article p,.perspective section article {
    margin: auto;
}

.bouton{
    margin: 0 auto;
}

footer
{
    padding: 1em 0;
}

.social{
    padding: 1em 0;
}

.icons{
    padding: 2px;
}

/***************************
**        4.FONT          **
***************************/

body,p{    
    font-family: 'Raleway',Arial,sans-serif;
}

p,h1,h2,h3,h4,.bouton{
    line-height: 1.5em;
    letter-spacing: .1em;
}

header{
    color: white;
}

li {
    color: white;
}

nav li:hover{
    color: #ff6e66;
}

h1,h2,h3,h4,li{
    font-family: "Orbitron",Arial,sans-serif;
}

span{
    font-weight: 800;
    font-size: 1.4em;
    line-height: 1.4;
}

a:hover{
    text-decoration: none;
}

/*Phrase d'intro*/
.entete{
    color: #fff;
}

.navigation ul li{
    cursor: pointer;
    font-variant: small-caps;
    line-height: 2;
    font-family: 'Raleway',Arial,sans-serif;
    letter-spacing: 1px;    
}

.navigation ul li:hover{
    color: #000;
}

.navigation ul li a{
    color: #fff;
}

.bouton{
    color: white;
    font-variant: small-caps;
    font-size: 14px;
    line-height: 2;
}

footer
{
    color: white;
}

/***************************
**     5.BACKGROUND       **
***************************/

header{
    background: #36415B;
}

nav,ul,li{
    background: #000;
}

main{
    background-image: linear-gradient(to bottom, #ffffff, #f7f7f7, #f0f0f0, #e8e8e8, #e1e1e1);
}

/*Phrase d'intro*/
.entete{
    background: #aaa;
}

/*Navigation*/
.navigation{
    background-color: transparent;
}

.navigation ul{
    background: #EEE;
    background-color: transparent;
}

.navigation ul li{
    background: #081163;
}

.navigation ul li:hover{
    background: transparent;
}

section{
    background: transparent;
}

.bouton{
    background: #081163;
}

footer{
    background: #36415B;
}

.social,.social ul,.social ul li{
    background: #36415B;
}

footer p{
    background: rgba(0,0,0,.6);
}

/***************************
**        6.LIST          **
***************************/

ul,li
{
    list-style-type: none;
}

/***************************
**       7.SHADOW         **
***************************/

main{
    box-shadow: 0 0 1rem 1rem #fff;
}

nav{
    box-shadow: 0 3em 5em #000;
}

nav:hover{
    box-shadow: 0 -.5em 1em 1em #000;
}

section{
    box-shadow: 0 0 .3em #000;
}

footer{    
    -webkit-box-shadow: inset 0px 20px 6px -10px #e1e1e1;
    -moz-box-shadow: inset 0px 20px 6px -10px #e1e1e1;
    box-shadow: inset 0px 20px 6px -10px #e1e1e1;
}

div.social ul li a img:hover{
    box-shadow: 0px 0px 1px 2px #ff6e66;
}

footer p{
    box-shadow: 0 5px 15px 20px rgba(0,0,0,.6);
}

/***************************
**       8.BORDER         **
***************************/

/*Navigation*/
.navigation ul li{
    border-radius: 10px;
    border: 1px solid #000;
}

section{
    border-radius: 5px;
}

.bouton{
    border-radius: 10px;
}

img{
    border-radius: 20%;
}

/****************************
**     9.RESPONSIVITE      **
****************************/

section{
    overflow-y: auto;
}

.bouton{
    overflow: hidden;
}

/*Rendre le contenu visible selon la taille*/
@media (max-width: 767px) {
	main#top .perspective > section {
		height: auto !important;
		top: unset !important;
		left: unset !important;
	}
}

/***************************
**     10.TRANSITION      **
***************************/

body{    
    scroll-behavior: smooth; /*Que sur Firefox*/
}

nav{
    transition: all .3s;
}

nav,ul,li{
    transition: all .2s;
}

/*Navigation interne*/
.navigation ul li{
    transition: all .3s;
}

section{
    transition: all 1s;
}

div.social ul li a img{
    transition: all .4s;
}

/***************************
**     11.ANIMATION       **
***************************/

nav li:hover{
    animation: shadow 5s ease-out infinite; /*Leger clignotement (neon)*/
}

@keyframes shadow{
    0%,5%{
        box-shadow:inset 0 -15px 5px -13px #ff6f68;
    }
    100%{
        box-shadow:inset 0 -15px 5px -13px #ff6f68;
    }
    
    1%,3%{
        box-shadow:inset 0 -15.6px 5px -13px #ff6f68;
    }
    3%,4%{
        box-shadow:inset 0 -14.5px 5px -13px #ff6f68;
    }
}

body{
    opacity: 0;
    animation: pop 1s .1s ease-out forwards;
}

@keyframes pop{
    0%{
        opacity 0;
    }
    100%{
        opacity: 1;
    }
}

h1{
    animation: pop-in 1.2s .1s cubic-bezier(0,0,0,1.2) forwards;
}

@keyframes pop-in{
    0%{
        transform: scale(.4);
        opacity: .4;
    }
    100%{
        transform: none;
        opacity: 1;
    }
}

.logo{
    opacity: 0;
    animation: slide-right 1.5s .3s cubic-bezier(0,0,0,1.2) forwards;
}

@keyframes slide-right{
    0%{
        transform: translateX(-100%);
        opacity: .2;
    }
    100%{
        transform: none;
        opacity: 1;
    }
}

/***************************
**   12.PSEUDO-ELEMENT    **
***************************/

/*Sheen effect*/

.bouton {
    font-size: 14px;
    position: relative;
    overflow: hidden;
    line-height: 2;
}

.bouton::after {
    content: ''; /*Pour le rendre visible*/
    position: absolute; /*Place a gauche du bouton*/
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(8, 17, 99, 0), rgba(255,255,255,0.5) 50%, rgba(8, 17, 99, 0));
    transform: rotateZ(60deg) translate(-5em, 7.5em); /*Incliner le gradiant*/
}

.bouton:hover::after, .bouton:focus::after {
    animation: sheen 1s forwards; /*Traverse le bouton*/
}

@keyframes sheen {
    100% {
        transform: rotateZ(60deg) translate(1em, -9em);
    }
}

/*Sheen effect end*/

/***************************
****************************
***************************/

/*JS - deplacement*/

/*Premiere section*/
.n1{
    transform-origin: left;
    transform: rotateY(-20deg) skewY(5.7deg) scale(.8) translateX(15em);
    box-shadow: .5em 0 1em #000;
}

/*reste des sections*/
.cache{
    opacity: .4;
    transform: rotateY(40deg) skewY(-5.7deg) scale(.8) translateX(-15em);
}

/*Annule .n1 et .cache ainsi que les Shadow (si click)*/
.stop{
    transform: none;
    opacity: 1;
    box-shadow: none;
}

/*Position Relatif, pour pouvoir animer (la proprieter order n'est pas animé)*/
.rel{
    position: relative;
    top: 0;
}

/*Definition du placement*/

/*Faire monter de n position par rapport à ça position de départ*/
.order0{}
.order1{}
.order2{}
.order3{}
.order4{}

/*Faire descendre de n position par rapport à ça position de départ*/
.i-order0{}
.i-order1{}
.i-order2{}
.i-order3{}
.i-order4{}

/*Donne la position de départ des sections*/
.s-order{order: 1;}
.s-order1{order: 2;}
.s-order2{order: 3;}
.s-order3{order: 4;}
.s-order4{order: 5;}

/*Classe temporaire, si on souhaite conserver la position initiale si non click (pas utilisé)*/
.order-f1{order: 1 !important;}
.order-f2{order: 2 !important;}
.order-f3{order: 3 !important;}
.order-f4{order: 4 !important;}
.order-f5{order: 5 !important;}

/* JS FIN */