/*Definition des polices*/

@font-face { 
    font-family: 'roboto-regular';
    src: url('../fonts/Roboto-Regular.ttf');
}

@font-face { 
    font-family: 'roboto-bold';
    src: url('../fonts/Roboto-Bold.ttf');
}

/*Caractéristiques générales*/

*{
    padding: 0;
    margin: 0;
    font-family: 'roboto-regular', 'arial', sans-serif;
}

#blocPage {
    width: 100%;
    margin: auto;
}

#texte h1, section h2 {
    text-transform: uppercase;
    color: #272727;
    /*font-weight: bold;*/
    font-family: 'roboto-bold';
}

section h2{
    font-size: 2em;
    padding-top: 10px;
}

h1{
    margin-bottom: 10px;
}

/*EN-TÊTE*/

/*Logo et menu de navegation*/

#enTete{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 30px;
    padding-top: 30px;
    background-color: white;
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 15;
    height: 80px;
}

#menu ul{
    list-style-type: none;
    display: flex;
}

#menu li{
    margin-right: 20px;
}

#menu a {
    font-size: 1em;
    color: #5f5f5f;
    padding-top: 25px;
    text-decoration: none;
}

#menuAccueil{
    border-top: 3px solid #5fb3d2;
}

#menuServices:hover, #menuProjets:hover, #menuContact:hover{
    border-top: 3px solid #80c5de;
}

/*SLIDER*/

#sliderEtTexte{
    padding-top: 140px;
    position: relative;
}

.fa-angle-right, .fa-angle-left{
    color: white;
    font-size: 25px;
}


#flecheDroite{
    position: absolute;
    top:40%;
    right:-2%;
    z-index: 2;
    padding:2%;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    background: rgba(66,66,70,0.6);
}

#flecheGauche{
    position: absolute;
    top:40%;
    left:-2%;
    z-index: 2;
    padding: 2%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    background: rgba(66,66,70,0.8);
}

#slider{
    width:100%;
    height:auto;
    padding:0;
    position:relative;
    margin:auto;
    overflow: hidden;
}

#imagesSlider{
    width: 300%;
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 0;
    text-align: left;
    animation: 20s slidy infinite;
    overflow: hidden;
}

#imagePetiteFille, #imagePetitGarcon, #imagePetiteFille2{ 
    width: 33.3%; 
    height: auto; 
    position: relative;
    float: left;
}

#imagesSlider img{
    width: 100%;
}

/*
@keyframes slidy {
  0% {left: 0%;}
  45% {left: 0%;}
  50% {left: -100%;}
  95% {left: -100%;}
  100% {left: -200%;}
}
*/

@-webkit-keyframes slidy {
  0% {margin-left: 0%;}
  45% {margin-left: 0%;}
  50% {margin-left: -100%;}
  95% {margin-left: -100%;}
  100% {margin-left: -200%;}
}

@keyframes slidy {
  0% {margin-left: 0%;}
  45% {margin-left: 0%;}
  50% {margin-left: -100%;}
  95% {margin-left: -100%;}
  100% {margin-left: -200%;}
}

.barreBleue{
    width: 100%;
    display: flex;
    background-color: rgba(171,171,171,0.7);
}

.barreBleueTrait{
    height: 5px;
    background-color: #54acde;
    width: 20%;
    position: relative;
    animation: 9.9s progression infinite;
}

@keyframes progression{
    0% {width: 20%;}
    98% {width: 100%;}
}

/*---Texte sur Slider---*/

#texte{
    width: 45%;
    height: auto;
    position: absolute;
    top:45%;
    left:8%;
    z-index: 3;
}

#texte h1{
    color: white;
    font-size: 2em;
}

#texte p{
    color: white;
    text-align: left;
    margin-bottom: 30px;
    line-height: 15px;
    margin-top: 15px;
}

#texte a{
    color: white;
    text-decoration: none;
    background-color: #54acde;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
}

span{
    color: #54adce;
    font-family: 'roboto-bold';
}

/*SECTION 1 SERVICES*/

#services{
    width:100%;
    margin-bottom: 150px;
    padding-top: 80px; 
    margin-top: -80px; 
}

.intitule{
    width: 85%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

section h1{
    font-size: 2.3em;
}

i{
    color: #55aecf;
}

.traitRond{
    position: relative;
    text-align: center;
    border-top: 1px solid #bec2c4;
    margin-left: 45%;
    margin-right: 45%;
    display: flex;
    justify-content: center;
    vertical-align: middle;
    margin-top: 25px;
}

.iServices{
    position: absolute;
    top: -12px;
    z-index: 5;
    border: 3px solid white;
    border-radius: 50%;
}

h2{
    margin-bottom: 15px;
    margin-top: 15px;
}

.pIntitule{
    text-align: center;
    padding-top: 15px;
    line-height: 25px;
    margin-top: 30px;
}

/*Partie de l'ordi et liste de services*/

#detailServices{
    display: flex;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
}

#ordi{
    width: 50%;
}

#ordi img{
    width: 100%;
    height: auto;
}

#liste{
    width: 45%;
    padding-top: 40px;
}

.unService{
    display: flex;
    margin-top: 40px;
}

#liste h3{
    font-weight: bold;
    font-size: 1.3em;
    padding-bottom: 15px;
}

#liste p{
    text-align: justify;
    line-height: 20px;
    font-size: 0.9em;
}

.iconeService{
    background-color: white;
    border: 1px solid #bec2c4;
    border-radius: 50%;
    padding: 20px;
    margin-right: 50px;
    position: relative;
    width: auto;
}

.iconeService::after{
    content: "";
    width: 15px;
    height: 15px;
    background: #54acde; 
    border-radius: 50%;
    z-index: 10;
    position: absolute;
    right: -12%;
    top: 40%;
    border: 3px solid white;
}

/*SECTION 2 PROJETS*/

#projets{
    background-color: #f5f5f5;
    padding-bottom: 30px;
    padding-top: 80px; 
    margin-top: -80px;
}

#navPortfolio{
    padding-top: 25px;
    margin-bottom: 30px;
    justify-content: center;
}

#navPortfolio input{
    display: none;
}

.label{
    padding-top: 25px;
    margin-top: 20px;
    padding-bottom: 25px;
    color: #676b70;
    text-align: center;
    background-color: #e5e5e5;
    cursor: pointer;
    position: relative;
    display:inline-block;
    float: left;
    width: 9%;
}


#labelAll{
    margin-left: 32%;
    border-top-left-radius: 10%;
    border-bottom-left-radius: 10%;
}

#labelPortfolio{
    border-top-right-radius: 10%;
    border-bottom-right-radius: 10%;
}


/*Quand les boutons sont sélectionnés = checked*/

#navPortfolio #allWorks:checked ~ #labelAll, #navPortfolio #creative:checked ~ #labelCreative, #navPortfolio #corporate:checked ~ #labelCorporate,
#navPortfolio #portfolio:checked ~ #labelPortfolio {
    border-bottom: 3px solid #408daa;
    background: #55aecf;
    color:white;
}

#navPortfolio #allWorks:checked ~ #labelAll:after, #navPortfolio #creative:checked ~ #labelCreative:after, #navPortfolio #corporate:checked ~ #labelCorporate:after,
#navPortfolio #portfolio:checked ~ #labelPortfolio:after{
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
}

#navPortfolio #allWorks:checked ~ #labelAll:after, #navPortfolio #creative:checked ~ #labelCreative:after, #navPortfolio #corporate:checked ~ #labelCorporate:after,
#navPortfolio #portfolio:checked ~ #labelPortfolio:after{
	border-color: rgba(85, 174, 207, 0);
	border-top-color: #408daa;
	border-width: 14px;
	margin-left: -14px;
}

/*Quand les boutons sont survolés*/

#labelAll:hover, #labelCreative:hover, #labelCorporate:hover, #labelPortfolio:hover{
    border-bottom: 3px solid #408daa;
    background: #80c5de;
    color:white;
}

.label:hover:after{
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
}

.label:hover:after{
	border-color: rgba(85, 174, 207, 0);
	border-top-color: #408daa;
	border-width: 13px;
	margin-left: -13px;
}

#creative:checked ~ #imgPortfolio .corporate figure, #creative:checked ~ #imgPortfolio .portfolio figure{
    opacity: 0.3;
}

#corporate:checked ~ #imgPortfolio .creative figure, #corporate:checked ~ #imgPortfolio .portfolio figure{
    opacity: 0.3;
}

#portfolio:checked ~ #imgPortfolio .creative figure, #portfolio:checked ~ #imgPortfolio .corporate figure{
    opacity: 0.3;
}

/*--portfolio--*/

#imgPortfolio{
    margin-top: 120px;
    padding-top: 20px;
}

.image{
    width:20%;
    margin-left: 4%;
    height: auto;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.figPortfolio{
    position: relative;
    margin-bottom: 0;
    z-index: 1;
    height: auto;
    width: 100%;
}

.image img{
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    display: block;
}

figcaption{
    color: white;
    background-color: rgba(171,171,171,0.7);
    position: absolute;
    width: 100%;
    bottom: 0;
    left:0;
    z-index:10;
    display: none;
    padding-top: 10px;
}

.titreProjet{
    color: white;
    font-weight: bold;
    line-height: 25px;
    padding-left:10px;
}

figcaption p{
    padding-left: 10px;
    padding-bottom: 10px;
    font-size: 0.8em;
}

.eye{
    position: absolute;
    top:-33%;
    right: 5%;
    border: 2px solid white;
    border-radius: 50%;
    background: #3e91ae;
    padding: 3%;
    z-index: 2;
}

.eye i{
    color: white;
}

.image:hover figcaption{
    display: block;
}


/* CONTACT */

#contact {
    padding-top: 10em; 
    margin-top: -10em; 
    position: relative;
    width: 100%;
    height: 800px;
}

#map{
    position: relative;
    width:100%;
    height: 800px;
}

iframe{
    z-index: 5;
    opacity: 0.5;
    position: relative;
    width: 100%;
    height: 800px;
}

#fond{
    background-color:rgba(135,206,250, 0.6);
    position: absolute;
    top: 0%;
    left: 0%;
    z-index: 2;
    width: 100%;
    height: 800px;
}

/* Formulario*/

#form{
    position: absolute;
    width: 25%;
    top:10%;
    right: 15%;
    z-index: 5;
}

#form form{
    background-color: rgba(255,255,255,0.8);
    padding: 20px;
    width: 100%;
    margin-left: 10%;
    z-index: 100;
}

#form p{
    text-align: left;
    margin-bottom: 10px;
}

#form span{
    font-weight: bold;
    color: black;
}

#form input, #form textarea{
    margin-top: 20px;
    width: 90%;
    padding: 5px;
    font-size: 0.8em
}

#form button{
    margin-top: 20px;
    background-color: #55aecf;
    padding: 10px;
    border-radius: 5px;
    border-bottom: 3px solid #3d95b7;
    text-decoration: none;
    font-size: 1em;
    color: white;
    cursor: pointer;
}

/*----MEDIA QUERIES----*/

/*Règles pour tablettes*/

@media screen and (max-width: 992px){
    #texte{
        position: absolute;
        top:40%;
        left:8%;
    }
    #texte h1{
        font-size: 1.8em;
    }
    #ordi{
        width: 35%;
    }
    #liste{
        width: 65%;
        padding-right: 5%;
        padding-top: 0px;
    }
    .label{
        font-size: 0.9em;
    }
    .image{
        width:30%;
        margin-left: 2.5%;
        height: auto;
        position: relative;
    }
    figcaption p{
        padding-left: 10px;
        padding-bottom: 15px;
        padding-top: 5px;
    }
    figcaption{
        padding-top: 15px;
    }
    .titreProjet{
        font-size: 1em;
    }
    .eye{
        top:-28%;
    }  
    #form{
        width:30%;
    }
}

/*Règles pour smartphones*/

@media screen and (max-width: 768px){
    section h2{
        font-size: 1.5em;
    }
    #menu ul{
        flex-direction: column;
        margin-left: 15px;
    }
    #menu a{
        line-height: 20px;
        font-size: 0.9em;
        padding-top: 0px;
    }
    #menuAccueil{
        border-top: none;
    }
    #menu a:hover{
        color: #5fb3d2;
        border-top:none;
    }
    #sliderEtTexte{
        display:flex;
        flex-direction: column;
    }
    #texte{
        width:80%;
        position: relative;
        text-align: center;
        margin-top: 50px;
    }
    #texte span{
        color: #54acde;
    }
    #texte h1{
        color: black;
    }
    #texte p{
        color: black;
        text-align: center;
        line-height: 25px;
    }
    .traitRond{
        margin-left: 35%;
        margin-right: 35%;
    }
    .pIntitule{
        font-size: 0.8em;
    }
    #detailServices{
        display: flex;
        flex-direction: column;
    }
    #ordi{
        width: 90%;
        margin: auto;
    }
    #liste{
        width: 90%;
        margin: auto;
    }
    #liste p{
        font-size: 0.8em;
    }
    .label{
        width: 100%;
        float: none;
        display: inline-block;
        margin-top: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    #labelAll{
        margin-left: 0;
        border-top-left-radius: 0%;
        border-bottom-left-radius: 0%;
    }
    #labelPortfolio{
        border-top-right-radius: 0%;
        border-bottom-right-radius: 0%;
        margin-bottom: 30px;
    }
    #labelAll:hover, #labelCreative:hover, #labelCorporate:hover, #labelPortfolio:hover{
        border:none;
    }
    .label:hover:after{
        content: none;
    }
    #navPortfolio #allWorks:checked ~ #labelAll:after, #navPortfolio #creative:checked ~ #labelCreative:after, #navPortfolio #corporate:checked ~ #labelCorporate:after,
    #navPortfolio #portfolio:checked ~ #labelPortfolio:after{
        content: none;
    }
    #imgPortfolio{
        margin-top: 20px;
    }
    .image{
        width:90%;
        margin-left: 5%;
        margin-right: 5%;
        height: auto;
        position: relative;
    }
    figcaption{
        padding-top: 15px;
        display: block;
    }
    .titreProjet{
        font-size: 1.2em;
    }
    figcaption p{
        padding-left: 10px;
        padding-bottom: 15px;
        padding-top: 10px;
        font-size: 1em;
    }
    .eye{
        top:-25%;
    } 
    #form{
        position: relative;
        width:70%;
        margin:auto;
        top: 5%;
        margin-bottom: 70px;
        right: 0;
    }
    #form form{
        border: 1px solid black;
        margin-left: 0;
        margin-right: 0;
        margin:auto;
        z-index: 10;
        padding-left: 0px;
        padding-right: 0px;
    }
    #form h2{
        padding-left: 10px;
    }
    #form p{
        padding-left: 10px;
        font-size: 0.9em;
    }
    #form input, #form textarea{
        margin-left: 10px;
        width: 85%;
    }
    #form button{
        margin-left: 10px;
    }
}