@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;400;700&display=swap');
* {
	margin: 0;
	padding: 0;
	font-family: 'Ubuntu', sans-serif;
	box-sizing:border-box;
}

body {
	height: 100%;
	min-height:100vh;
	font-size: 17px;
	line-height: 1.7;
	color: #858585;
	position:relative;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	background-color: #eeeeee;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: space-around;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

h1{
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    font-size: 280%;
    margin-bottom: 70px;
    line-height: 1.1;
}

#portail{
    text-align: center;
}

#contacts{
    color: #828282;
    font-weight: 400;
}

a, a:link, a:visited, a:focus, a:active, a:hover{
	text-decoration:none;
	color: #9b9b9b;
}
a:hover{
	text-decoration:none;
	color: #4b4b4b;
}

#contacts .fas{
    transform: scale(.8);
    padding-right: .5em;
}

#contacts a{
    margin:0 .7em;
}

#blocks{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

.block{
    width:500px;
    height:500px;
    background-color: white;
    color: white;
    border-radius:16px;    
    box-shadow: 0 3px 6px rgb(0 0 0 / 25%);
    display: inline-block;
    overflow: hidden;
}
a.block, a.block:link, a.block:visited, a.block:focus, a.block:active, a.block:hover{
	color: #fff;
}
a.block:hover{
	color: #fff;
    text-shadow: 0 0px 3px rgb(0 0 0 / 60%);
}
.block:hover{
	box-shadow: 0 3px 24px rgb(0 0 0 / 50%);
}

.logo{
    background-image:url("epi/img/logo.svg");
	background-position: 50% 50%;
    background-size: 68%;
	background-repeat:no-repeat;
	background-color:white;
    width: 100%;
    height:0;
    padding-bottom: 20%;
    margin:7.5% 0;
    transition:all 0.3s;
}
#droite-logo{background-image:url("quincaillerie/img/logo.svg");}
.block:hover .logo{
	background-size: 72%;
}

.image img{
    width: 100%;
    display: block;
}

#gauche-image{border-top:12px solid #f76f00;}
#droite-image{border-top:12px solid#5ecf32;}

#milieu{
    height:500px;
    width:96px;
    background-image:url("img/milieu.svg");
	background-position: 50% 50%;
	background-size:auto 174px;
	background-repeat:no-repeat;
}

.txt{
    background-color: #f76f00;
    height: 0;
    width: 100%;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    font-size: 130%;
    line-height: 1.1;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding:10.5% 2em;
}
#droite-txt{background-color: #5ecf32;}

@media (max-width: 1025px) {
    .block{
        width:350px;
        height:350px;
    }
    #milieu{
        height:350px;
        width:48px;
        background-size:auto 122px;
    }
    .txt{
        font-size: 100%;
    }
}
@media (max-width: 767px) {
    body{
        padding: 30px;
    }

    h1 {
        font-size: 190%;
        margin-bottom: 30px;
    }

	#contacts a{
        margin:0;
        display: block;
    }

    #blocks {
        display: block;
    }
    .block{
        display: block;
        height: 0;
        width: 100%;
        padding-bottom: 110%;
    }
    #milieu{
        display: none;
    }
    #gauche{
        margin-bottom: 24px;
    }
    .txt{
        font-size: 100%;
        padding: 15% 2em;
    }
}