*{margin:0;padding:0;outline:0;}
body{background-color:#2f2d2d;font-family:Arial, Helvetica, sans-serif;color:black;}
ul{list-style-type:none;}
a{text-decoration:none;}
img{border:none;}

#container{width:950px;height:670px;margin:auto;}
#header{height:150px;width:950px;background-color:#2f2d2d;color:white;}

#header ul li, ul, img{float:left;}
#header p{
float:right; background-color:#2f2d2d;width:165px;color:white; padding:25px 0;text-align:right;
border:1px solid #d65351;text-align:center;border-radius:4px;
margin-top:15px;
}
#header p a, #contact p a{color:#d65351;}
#header p a:hover,  #contact p a:hover{text-decoration:underline;}


#main{float:left; width:950px;height:470px;color:white;}
#home{float:left; width:950px;height:470px; background-color:#2f2d2d;}
#home img{border-radius:4px;width:343px;height:440px;}
#home p{margin:20px auto;width:343px;height:440px;}

#ecurie{float:left; width:870px;height:390px;color:white; padding:40px;}
#ecurie p{float:left; width:870px;height:390px;color:white;text-align:justify;line-height:22px;}

.red {color:#d65351;}
.purple{color:#663399;}

#gare h1{color:#d65351;text-align:center;}
#gare {padding-top:20px;height:450px;}

.contest {width:400px;float:left; margin:25px; border:1px solid white;border-radius:4px;padding:10px;}
.contest:hover {border:1px solid #d65351;}
.contest ul li{float:left; color:#d65351;margin:10px 9px;text-align:center;}
.contest ul li a, .arch{color:#d65351;}
.contest ul li a:hover, .arch:hover{text-decoration:underline;}
.arch {font-size:20px;}
.contest ul {text-align:center; margin-left:0px;}
.contest p{text-align:right;}
.gallery {margin-left:40px;}
.gallery li a img {width:200px; height:150px;}
.gallery li {float:left; margin:0 25px 10px 0 ;}

#ecurie a{color:#d65351!important;}
#ecurie a:hover{text-decoration:underline;}
#footer{background-color:#2f2d2d; height:50px;float:left;width:100%; text-align:center;color:white;}
#footer img {height:40px; float:left; text-align:center;margin-left:32px; padding-top:10px;}
.cube {height:80px!important;}

#contact iframe{margin-top:10px;margin-right:25px;float:right;}
#contact p{margin-top:10px;margin-left:25px;float:left; width:280px; padding:10px;text-align:left;}

nav  {
	display: block;
	overflow: hidden;
	width:640px;
	float:left;
	
}

nav ul {
	margin: 80px 0 20px 5px;

	float: left;
	list-style: none;
	

}

nav li {
	float:left;
	margin-left:5px;
}

nav a {
text-align:center;
	float:left;
	width:100px;
	padding: .8em 1.5em;
	text-decoration: none;
	color: #2f2d2d;
	text-shadow: 0 1px 0 rgba(255,255,255,.5);
	font: bold 1.1em/1 'trebuchet MS', Arial, Helvetica;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-width: 0px;
	border-style: solid;
	border-color: #fff #ccc #999 #eee;
	background: #c1c1c1;
	background: -moz-linear-gradient(#f5f5f5, #c1c1c1);
	background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#c1c1c1));
	background: -webkit-linear-gradient(#f5f5f5, #c1c1c1);
	background: -o-linear-gradient(#f5f5f5, #c1c1c1);
	background: -ms-linear-gradient(#f5f5f5, #c1c1c1);
	background: linear-gradient(#f5f5f5, #c1c1c1);            
 }
 
nav a:hover, nav a:focus {
	outline: 0;
	color: #fff;
	text-shadow: 0 1px 0 rgba(0,0,0,.2);
	background: #d65351;
	background: -moz-linear-gradient(#d65351, #2f2d2d);
	background: -webkit-gradient(linear, left top, left bottom, from(#d65351), to(#2f2d2d));
	background: -webkit-linear-gradient(#d65351, #2f2d2d);
	background: -o-linear-gradient(#d65351, #2f2d2d);
	background: -ms-linear-gradient(#d65351, #2f2d2d);
	background: linear-gradient(#d65351, #2f2d2d);
}

nav a:active {
	-moz-box-shadow: 0 0 2px 2px rgba(0,0,0,.3) inset;
	-webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.3) inset;
	box-shadow: 0 0 2px 2px rgba(0,0,0,.3) inset;
}
 
nav li:first-child a {
	border-left: 0;
	-moz-border-radius: 4px 0 0 4px;
	-webkit-border-radius: 4px 0 0 4px;
	border-radius: 4px 0 0 4px;            
}

nav li:last-child a {
	border-right: 0;
	-moz-border-radius: 0 4px 4px 0;
	-webkit-border-radius: 0 4px 4px 0;
	border-radius: 0 4px 4px 0;            
}