
/****************************************************
                      GLOBAL
*****************************************************/
* {
	box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease 0s; 
    /*effet de transition appliqué sur toutes les propriétés de toutes les balises*/
}

html {
	font-size: 62.5%;
}

body {
    background-image: url(../img/fond.png);
    color: #999;
	font-family: "Bree Serif", Arial, sans-serif;
	font-size: 1.8rem;
	line-height: 2;
	margin: 0;
	text-align: center;
}



a { /*Tous les liens*/
    color: rgba(246, 36, 89,1);
	text-decoration: none;
}

img {
    max-width:100%;
}

header,
main section:not(#presentation), /*Toutes les sections du main sauf la session #presentation*/
#presentation > div,
footer  {
	margin: 0 auto;
    max-width: 1100px;
}

main section:not(#presentation), 
footer {
    padding: 80px 25px 0;
}

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

/****************************************************
                    HEADER 
*****************************************************/
header {
	padding: 50px 25px;
}

header.flex,
header .flex {
    align-items: center;
}

header a {
	color: #999;
}

header a:hover {
	color: rgba(246, 36, 89,1);
}

header > a { /*on vise la première balise <a>*/
    font-size: 4rem;
}

/*ici on demande que l'image qui se trouve dans la première balise <a> change de taille lorsque l'on survol ladite balise <a>*/
header > a:hover img { 
	transform: scale(1.3); /*effet zoom*/
}

header img {
    display: block;
    margin: 0 auto;
	width: 50px;
}

header nav a {
	font-size: 2rem;
    padding: 0 50px;
}

header nav a:hover {
	transform: translate(0, 10px); /*effet de translation*/
}

#nav i{
	display: block;
	padding: 10px;
}



/****************************************************
                    MAIN 
*****************************************************/

/*global*/
main h1 {
    color: #fff;
	font-size: 4rem;
}

main h2, 
main h3 {
    color: #f62459;
	font-weight: normal;
}

main h1::before, 
main h1::after, 
main h2::before, 
main h2::after {
	content: " - "; /*on ajoute avant et après les tritres h1 et h2 le signe -*/
}

main h2 {
    border-bottom: 2px solid rgba(153,153,153,0.1);
	font-size: 3.5rem;
	padding-bottom: 15px;
}

/*section présentation*/
#presentation {
    background: linear-gradient(to bottom, #999 0%,#000000 32%,#000000 68%,#999 100%);
	color: #fff;
	padding: 150px 75px;
}

#presentation p {
	padding-bottom: 50px;
}

.discover, .readmore{
    padding: 10px 20px;
}

.discover, section a:hover {
    background: #f62459;
    border-radius: 5px;
	color: white;
}

/*section compétences*/
#competences h3 {
	margin: 0;
	font-size: 3rem;	
	color: #777;
}

#competences figure{
    margin: 0 0 75px;
}

#competences figure:last-of-type{
    margin-bottom: 0;
}

/*section services*/
.service{
    padding: 20px;
}

.service i {
	font-size: 2.5rem;
	background-color: rgba(153,153,153,0.1);
	border: 2px solid rgba(153,153,153,0.2);
	color: #999;
	width: 75px;
	height: 75px;
	padding-top: 22px;
	border-radius: 50%;
}

.service i:hover {
	animation: bounce 0.35s ease infinite alternate;
}

@keyframes bounce{ /*animation*/
	from{
        transform :translateY(0);
    }
    to{
        transform :translateY(-20px);
    }
}

/*section résumé*/
#resume article{
    text-align: left;
}

#resume article img {
    width: 100%;
}

#resume article::after{
    content: " ";
    clear: both;
    display: block;
}



/*section contact*/
#contact p{
    text-align: left;
}

form div{
    display: flex;
    flex-direction: column;
}

input{
    flex-basis:100%;
}

input, 
textarea {
	padding: 20px 20px 20px 70px;
	margin: 5px 0;
	color: #666;
	background-color: transparent;
	border-radius: 50px;
	border: 1px solid #ccc;
	font-family: Arial;
	font-size: 1.6rem;
}

input:first-child {
	background-image: url(../img/bg_form_name.svg);
	background-repeat: no-repeat;
	background-size: 40px;
	background-position: 10px;
}

input:nth-of-type(2) {
	background-image: url(../img/bg_form_mail.svg);
	background-repeat: no-repeat;
	background-size: 40px;
	background-position: 10px;
}

textarea {
	width: 100%;
	resize: none;
	background-image: url(../img/bg_form_message.svg);
	background-repeat: no-repeat;
	background-size: 40px;
	background-position: 10px;
}

button {
	margin: 25px 0;
	padding: 15px 25px;
	border: 0;
	color: white;
}

button:hover {
	cursor: pointer;
}

button[type="submit"] {
	background-color: #f62459;
}

button[type="reset"] {
	background-color: #999;
}



/****************************************************
                    FOOTER 
*****************************************************/
footer img {
    width: 50px;
}


/*=======================================================
                    MEDIA QUERIES
=========================================================*/


/*========================= TABLETTE ======================*/

@media screen and (min-width:768px){
    #presentation {
        background: url(../img/bg_header.jpg) no-repeat center center;
        background-size: cover;
    }

    #resume article img {
        width: 50%;
    }

    #resume article:nth-of-type(even) img {
        float: left;
        margin-right: 25px;
    }
    
    #resume article:nth-of-type(odd) img {
        float: right;
        margin-left: 25px;
    }

    form div{
        flex-direction: row;
        justify-content: space-between;
    }

    input{
        flex-basis:48%;
    }
}

/*========================= DESKTOP ======================*/

@media screen and (min-width:1025px){
    .flex {
        flex-direction: row;        
    }

    header.flex {
        justify-content: space-between;
    }

    header img {
        display: inline;
        margin: 0 10px 0 0;
        vertical-align: middle;
    }


    #competences div, 
    #services div{
        display: flex;
        justify-content: space-around;
    }
}