/*
	Theme Name: HTML5;
	Date: Janvier 2019;
	Discription: Learn Basic HTML5;
	Version: 1.0;
	Author: Nour Homsi;
	Author URL: http://www.dr-nour.com;
*/

body {
	color: #000305;
	font-size: 87%; /* base font-size = 14px */
	font-family: Arial, 'Lucida Sans Unicode';
	line-height: 1.5em;
	text-align: left;
	background-color: #dff9fb;
}

.body {
	margin: 0 auto;
	width: 960px;
}

.bg_background {
	background-image: url(img/bg_bckg.png);
	background-repeat: no-repeat;
	width: 960px;
	display: inline-block;
}

/* --------------- MAIN HEADER ---------------- */

.logo {
	text-align: center;
	padding: 20px;
}

.logo img {
	width: 20%;
}

.mainheader img {
	margin: -30px 0;
	padding: -50px;
	width: 101.3%;
}

nav {
	margin: 27px auto 10px;
	position: relative;
	width: 796px;
	height: 30px;
	background-color: #f8efba;
	border-radius: 8px;
}

nav a {
	line-height: 32px;
	height: 30px;
	font-size: 12px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	color: #0c2461;
	cursor: pointer;
}

nav a:hover {
	line-height: 32px;
	height: 30px;
	font-size: 12px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	cursor: pointer;
}

nav .animation {
	position: absolute;
	height: 100%;
	top: 0;
	z-index: 0;
	transition: all .5s ease 0s;
	border-radius: 8px;
}
a:nth-child(1) {
	width: 60px;
}
a:nth-child(2) {
	width: 83px;
}
a:nth-child(3) {
	width: 55px;
}
a:nth-child(4) {
	width: 82px;
}
a:nth-child(5) {
	width: 85px;
}
a:nth-child(6) {
	width: 52px;
}
a:nth-child(7) {
	width: 93px;
}
a:nth-child(8) {
	width: 87px;
}
a:nth-child(9) {
	width: 59px;
}
a:nth-child(10) {
	width: 96px;
}
nav .start-home,
a:nth-child(1):hover ~ .animation {
	width: 60px;
	left: 0;
	background-color: #7a87ff;
}

nav .start-about,
a:nth-child(2):hover ~ .animation {
	width: 88px;
	left: 60px;
	background-color: #aa4822;
}
nav .start-blog,
a:nth-child(3):hover ~ .animation {
	width: 58px;
	left: 148px;
	background-color: #3f338b;
}
nav .start-portefolio,
a:nth-child(4):hover ~ .animation {
	width: 88px;
	left: 206px;
	background-color: #683089;
}
nav .start-contact,
a:nth-child(5):hover ~ .animation {
	width: 86px;
	left: 294px;
	background-color: #72230e;
}
nav .start-contact,
a:nth-child(6):hover ~ .animation {
	width: 60px;
	left: 380px;
	background-color: #156a3b;
}
nav .start-contact,
a:nth-child(7):hover ~ .animation {
	width: 92px;
	left: 440px;
	background-color: #22aae2;
}

nav .start-contact,
a:nth-child(8):hover ~ .animation {
	width: 96px;
	left: 532px;
	background-color: #269e7c;
}

nav .start-contact,
a:nth-child(9):hover ~ .animation {
	width: 55px;
	left: 628px;
	background-color: #315290;
}

nav .start-contact,
a:nth-child(10):hover ~ .animation {
	width: 112px;
	left: 683px;
	background-color: #ea4b7b;
}

.slideContent {
	float: left;
	margin: auto;
	padding: 0px 15% 0 15%;
	width: 70%;
	height: 375px;
}

.slidershow {
	overflow: hidden;
	width: 780px;
	height: 375px;
}

.middle {
	position: absolute;
	left: 50%;
	transform: translate(-50%, 5%);
}

.navigation {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
}
.bar {
	width: 25px;
	height: 5px;
	border: 2px solid #fff;
	margin: 6px;
	cursor: pointer;
	transition: 0.4s;
}
.bar:hover {
	background: #fff;
}

input[name="r"] {
	position: absolute;
	visibility: hidden;
}

.slides {
	width: 900%;
	height: 100%;
	display: flex;
}

.slide {
	width: 11.11%;
	transition: 0.6s;
}
.slide img {
	width: 100%;
	height: 100%;
}

#r1:checked ~ .s1 {
	margin-left: 0;
}
#r2:checked ~ .s1 {
	margin-left: -11.11%;
}
#r3:checked ~ .s1 {
	margin-left: -22.22%;
}
#r4:checked ~ .s1 {
	margin-left: -33.33%;
}
#r5:checked ~ .s1 {
	margin-left: -44.44%;
}
#r6:checked ~ .s1 {
	margin-left: -55.55%;
}
#r7:checked ~ .s1 {
	margin-left: -66.66%;
}

#r8:checked ~ .s1 {
	margin-left: -77.77%;
}

#r9:checked ~ .s1 {
	margin-left: -88.88%;
}

/* --------------- MAIN CONTENT ---------------- */

.maincontent {
	position: relative;
	float: left;
	margin: 27px auto 27px;
	width: 100%;
	text-align: center;
}

.top-content {
	margin-top: 20px;
	width: 100%;
	height: 100%;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

.top-content img {
	width: 780px;
}

/* Pied de page */
#footer {
	text-align: center;
	line-height: 1.5em;
	width: 100%;
	margin-top: 10px;
}

#footer h2 {
	margin: 10px 0px 20px 0px;
	padding-top: 20px;
}

#logo_footer {
	width: 182px;
}

#contact_footer {
	position: relative;
	font-size: 24px;
	text-align: left;
	width: 780px;
	height: 110px;
	padding: 0;
	margin: 27px 10% 27px 10%;
	width: 80%;
	background-color: purple;
	color: white;
}

#tel {
	position: absolute;
	left: 40px;
	top: 30px;
	width: 50px;
}

#contact p {
	line-height: 1.2em;
	position: absolute;
	left: 110px;
	margin: 13px;
}

#mail {
	position: absolute;
	left: 200px;
	top: 15px;
	width: 50px;
}

#mail p {
	margin-top: 30px;
	line-height: 1.2em;
	position: absolute;
	left: 280px;
}

/* --------------- HTML 5 ---------------- */

.post-img {
	width: 100%;
}

figure {
	margin: 25px 0;
	font-size: 80%;
	color: #999;
}
