@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap');


/*=====================================================================================================================
    GLOBAL
=======================================================================================================================*/

* {
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease 0s;
}

.container {
    margin: auto;
    padding: 30px;
    max-width: 1100px;
}

html {
    font-size: 62.5%;
}

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

a {
    color: #f62459;
    text-decoration: none;
}

img {
    width: 100%;
}

h1::before, h1::after, h2::before, h2::after {
    content: " - ";
}

.clear {
    clear: both;
}

/*=====================================================================================================================
    MOBILE - HEADER
=======================================================================================================================*/


header .container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
}

/*Tous les liens*/
header .container a {
    display: inline-block;
    text-decoration: none;
    color: #999;
    height: 50%;
    margin: 10px 0;
}

/*Juste le logo*/
header .container>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 4rem;
}

header .container>a:hover {
    color: #f62459;
}

header .container>a img {
    width: 40px;
}

header .container>a img:hover {
    transform: scale(1.3);
}

/*Les onglets*/
header .container nav {
    display: flex;
    flex-direction: column;
    font-size: 2rem;
}

header .container i {
    display: block;
}

header .container nav a:hover {
    color: #f62459;
    transform: translate(0, 10px);
}

/*=====================================================================================================================
    MOBILE - MAIN
=======================================================================================================================*/

/* ============= MAIN - Global ==============*/

h1:not(:first-of-type), h2, h3 {
    color: #f62459;
}

h1 {
    font-size: 4rem;
}

h2 {
    text-align: center;
    font-size: 3.5rem;
    border-bottom: solid 2px rgba(153, 153, 153, 0.1);
    padding: 20px 0;
    margin: 40px 0;
}

h3 {
    font-size: 1.8rem;
}


/* ============= MAIN - Bienvenue ==============*/

#bienvenue {
    background: #000;
    background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(153,153,153,1) 100%);
}

#bienvenue .container {
    color: #fff;
    padding: 100px 30px;
}

#bienvenue .container a {
    color: #fff;
    background-color: #f62459;
    padding: 10px 20px;
    border-radius: 5px;
}

#bienvenue .container p {
    padding-bottom: 30px;
}

/* ============= MAIN - Compétences ==============*/


#competences h3 {
    color: #777;
    font-size: 3rem;
    text-transform: uppercase;
}

/* ============= MAIN - Services ==============*/

#services article {
    margin-bottom: 60px;
}

#services i {
    font-size: 2.5rem;
    width: 75px;
    height: 75px;
    background-color: rgba(153, 153, 153, 0.1);
    border: solid 2px rgba(153, 153, 153, 0.2);
    border-radius: 100%;
    padding: 25px 0;
}

#services i:hover {
    animation: bounce 0.35s ease infinite alternate;
}

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


/* ============= MAIN - Realisations ==============*/

#realisations {
    text-align: left;
}

#realisations a {
    padding: 20px 30px;
}

#realisations a:hover {
    color: #fff;
    background-color: #f62459;
}

/* ============= MAIN - Contact ==============*/

#contact {
    text-align: left;
}

#contact .input-theme {
    display: flex;
    border: solid 1px #ccc;
    border-radius: 50px;
    margin: 10px 0;
}

#contact img {
    width: 50px;
    margin: 10px;
}

#contact input:not(.btn), #contact textarea {
    margin: 10px;
    border: none;
    background-color: transparent;
    font-family: sans-serif;
    font-weight: 100;
    color: #666;
    font-size: 1.6rem;
    padding: 20px;
}

/*btn*/
#contact .btn {
    font-family: sans-serif;
    color: #fff;
    padding: 20px 30px;
    background-color: #999;
    border: none;
    margin: 20px 2px;
}

#contact .btn:first-of-type {
    background-color: #f62459;
}

#contact .boutons {
    display:flex;
    justify-content: center;
}

/*=====================================================================================================================
    MOBILE - FOOTER
=======================================================================================================================*/

footer.container img {
    width: 50px;
}

footer.container {
    padding-top: 80px;
    padding-bottom: 20px;
}



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

@media screen and (min-width: 768px) {
    
    
    /* ============= Main ==============*/
    
    #bienvenue {
        background-image: url("../img/bg_header.png");
        background-position:center;
        background-size:cover;
        background-color: black;
    }
    
    #competences img {
        max-width: 200px;
    }
    
    #realisations img {
        float: left;
        width: 50%;
        margin: 0 30px 30px 0;
    }
    
    #realisations img.img-right {
        float: right;
        margin: 0 0 30px 30px ;
    }
    
    #contact form div#nom-prenom {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    #contact form div#nom-prenom .input-theme {
        flex-basis: 48%;
    }
    
}

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

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

    /* ============= Header ==============*/
    
    header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    }
    
    
    /*Juste le logo*/
    header .container>a {
        flex-direction: row;
        flex-basis: 60%;
    }
    
    header .container>a img {
        margin-right: 15px;
    }
    
    /*Les onglets*/
    header .container nav {
        flex-direction: row;
        flex-basis: 40%;
        justify-content: space-around;
    }
    
    /* ============= Compétences ==============*/
    
    #competences {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        
    }
    
    #competences>h2 {
        flex-basis: 100%;
    }
    
    #competences figure {
        flex-basis: 20%;
    }
    
    #services {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    #services>h2 {
        flex-basis: 100%;
    }
    
    #services article {
       flex-basis: 32%; 
    }
    
    #realisations h2, #contact h2 {
        text-align: center;
    }
    
    
    
}

@media screen and (min-width: 1120px) {
    
    .container {
        padding: 0;
    }
    
    /*Les onglets*/
    header .container nav {
        justify-content: space-between;
    }
}


