/****** Global styles ******/

html {
    font-size: 62.5%;
    height: 100vh;
}

body {
    font-size: 1.6rem;
    font-family: 'Raleway', sans-serif;
}


/***** Header *****/

header{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(../img/laptop.jpg) no-repeat bottom/cover;
    height: 100vh;
    padding : 0px 20px;
}

.presentation{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    animation: slideFromUp 2s none ease-out;
}

@keyframes slideFromUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        translate: translateY(0px);
    }
}

h1{
    font-size: 5rem;
    text-shadow: 4px 4px 5px black;
}

.subtitle{
    margin-top: 5px;
    font-size: 2.5rem;
    color: white;
    text-shadow: 4px 4px 5px black;
}

.arrow{
    width: 100%;
    margin : auto;
    position: absolute;
    bottom: 5%; 
}

.fa-arrow-down {
    color: #222936;
    cursor: pointer;
    background: white;
    padding: 15px 40px;
    transition: all 0.3s ease;
}

.fa-arrow-down:hover{
    color: #FFF;
    background-color: #009687;
    padding: 20px 50px;
}

/****** Navbar *****/

.side-bar {
    position: absolute;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #009687;
    left: -100%;
    transition: .5s ease-out;
    z-index: 4;
}

.toggle-button {
    position: absolute;
    top: 20px;
    left: 105%;
    cursor: pointer;
    height: 50px;
    width: 60px;
}

.toggle-button span {
    width: 50px;
    height: 7px;
    border-radius: 5px;
    background-color: rgb(110, 109, 109);
    display: block;
    margin-top: 8px;
    transition: 0.5s ease;
}

.navigation >li {
    color:white;
    font-weight: bold;
    list-style-type: none;
    font-size: 2rem;
    cursor: pointer;
    padding-left: 10px;
    margin-top: 40px;
    text-align: center;
}

.navigation >li.home{
    margin-top: 90px;
}

.logo{
    display: none;
}


/****** Navbar with class="active" ******/

.side-bar.active {
    left: 0;
}

.side-bar.active .toggle-button {
    position: absolute;
    top: 2.8rem;
    left: 80%;
}

.side-bar.active span {
    position: absolute;
    background-color: white;
}

.side-bar.active span:nth-child(1) {
    transform: rotate(45deg);
}

.side-bar.active span:nth-child(2) {
    opacity: 0;
}

.side-bar.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/****** Sections - global styles ******/

span, em {
    font-weight: bold;
}

section{
    margin: 20px 0px;
    padding: 60px 20px 0px 20px;
    text-align: justify;    
}

h2{
    color : #009687;
    font-size: 3.5rem;
    margin-top: 30px;
    margin-bottom: 50px;
}

h3{
    color: #222936;
    font-size: 2.6rem;
    margin-bottom: 15px ;
    margin-top: 30px ;
    font-weight: 700;
}

section p, section ul{
    font-size: 1.7rem;
    color: #706d6d;
    line-height: 3.5rem;
    margin-bottom : 20px;
}

section ul{
    margin-left : 30px;
}

li{
    list-style-image: url("../img/caret-right.svg");   
}

.icon{
    text-align: center;
    width: 100%;
    margin : auto;
    margin-bottom: 10px;
    color :#009687;
}

.icon i{
    display: none;
}

/****** Section pourquoi nous ******/

.pourquoi-nous{
    background-color: #009687;
    margin: 0;
    color: white;
    padding : 20px;
    text-align: center; 
}

.pourquoi-nous p{
    text-align: justify;
    font-size: 1.5rem;
}

.pourquoi-nous h2, .pourquoi-nous p{
    color: white;
}

.pourquoi-nous img {
    border-radius: 100px;
    margin-top: 30px;
}

.pourquoi-nous blockquote{
    text-align: left;
    line-height: 3rem;
    margin: 30px 0px;
    font-size: 1.5rem;
}

.pourquoi-nous figcaption{
    text-align: right;
    font-style: italic;
    margin-bottom: 30px;
}

/****** Section slider ******/

.nos-clients{
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

.slider-title{
    text-align: center;
}

.slider-title h2{
    margin-top:0;
    color: #222936;
    margin-bottom: 5px;   
}

.slider-title p{
    font-size: 1.7rem;
}

.slider {
    height: 10em;
    width: 100%;
    margin : 0;
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center;
}
  
.slider__img {
    max-width: 100%;
    max-height: 100%;
    width: 60%;
    position: absolute;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s;
}

.slider__img--current {
    opacity: 1;
    z-index: 1;
}

.buttons{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.slider__btn {
    position: relative;
    z-index: 2;
    width: 10%;
    color: white;
    font-size:2.5rem;
    background-color: #222936
}


/****** Section contact ******/

.contact{
    background-color: #009687;
    margin: 0;
    color: white;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.contact p {
    font-size: 1.5rem;
}

.contact h2, .contact p{
    color: white;
}


.contact form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

form input{
    height: 4rem;
    padding-right: 1Opx;
}

form input, textarea{
   background-color: transparent; 
   color: white;
   margin : 10px 10px;
   border: 2px solid white;
   border-radius: 5px;
   width: 100%;
}
::placeholder{
    color: white;
    padding-left: 10px;
    padding-top: 2px;
}

button{
    background-color: white;
    color: #009687;
    font-weight: bold;
    width: 30%;
    height: 4rem;
    width: 40%;
    border: none;
    border-radius : 5px;
    margin-top: 20px;

}

.mail-situation{
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-top: 20px;
    
}
.mail-situation i{
    margin-right: 10px;
}

.mail-situation a{
    margin : 10px;
    font-size: 1.5rem;
}

/****** Footer ******/

footer{
    margin : 30px 10px;
}

footer p{
    color: white;
    font-size: 1.5rem;
}


/****** Mediaqueries ******/

@media (min-width: 462px) {

    h2, h3{
        text-align: center;
    }

    .slider{
        height: 15em;
    }
}

@media (min-width: 768px) {

    .slider{
        height: 20em;
    }

    .slider__img {
        width: 50%;
    }

    .icon i{
        display: initial;
        text-align:center;
    }

    .icon{
        text-align: center;
        width: 100%;
        margin : auto;
        margin-bottom: 10px;
        color : #009687;
    }

    .wrap{
        width: 80%;
        margin:auto;
    }

    section {
        padding-left:40px ;
        padding-right: 40px;
    }

}

@media (min-width: 1024px) {

    .slider{
        height: 30em;
    }

    .slider__img {
        width: 30%;
    }

    .slider__btn {
        position: relative;
        z-index: 2;
        font-weight: bold;
        width: 3%;
        background-color: #222936;
        font-size:3rem;
        color: white;
    }

    .wrap{
        width: 50%;
        margin:auto;
    }

    .figures{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    figure{
        width: 50%;
    }

    .sebastien{
        margin-right: 100px;
    }

    .buttons{
        display: flex;
        justify-content: space-around;
    }

    .contact div.wrap{
        width: 40%;
        margin: auto;
    }

    /* navbar */

    .toggle-button {
        display: none;
    }
    
    .side-bar {
        background-color: #009687;
        box-shadow: 2px 2px 10px black ;
        left: 0px;
        width: 100%;
        height: 90px;
    }

    .navigation >li.home{
        margin-top: 35px;
        width: 5%;
    }
 
    .navigation{
        display: flex;
        flex-direction: row;
        justify-content: space-around; 
    }

    .navigation >li{
        color:white;
        font-weight: bold;
        list-style: none;
        font-size: 1.6rem;
        cursor: pointer;
        padding-left: 10px;
        margin-top: 35px;
        text-align: center;
        max-height: 100%;   
    }

    .navigation >li:hover {
        transition: .6s ease-out;
    }

    a.navigation-link{
        display: inline-block;
        position: relative;
    }

    a.navigation-link:after {
        content: '';
        position: absolute;
        bottom: -4px; 
        width: 0%;
        left: 0px; 
        height: 2px;
        transition: 0.25s cubic-bezier(0.72,-0.01, 0.19, 0.92);
        background: white;
    }

    a.navigation-link:hover:after {
        width: 100%;
        left: 0;
    }

    ul.navigation{
        max-height: 100%;
    }

    .logo{
        display: flex;
        height: 90%;
    }

    .slideUp {
        -webkit-transform: translateY(-100px);
                transform: translateY(-100px);
        transition: transform .5s ease-out;
    }      
}

@media (min-width: 1300px) {

    .slider__img {
        width: 30%;
    }
}

@media (orientation: landscape) and (max-device-height : 450px){
 
    .navigation{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        height: 10%;
        margin: auto;
        padding-top:8%;
    }

    .navigation>li{
        list-style: none;
        padding-bottom: 20px;
        padding-right: 20px;
    }

    .navigation>li.home{
        margin-top : 40px;
    }
}

