/* nav.css : styles de base pour une navigation responsive.
Attention : ne fonctionne pas toujours très bien sur les anciens navigateurs ou OS mobiles (par exemple Android 2.1) */


.nav-open, .nav-close {display: none !important; background:#F1E9D7!important;color:#999!important;}



#navigation ul {
	margin: 0!important;
	padding: 0!important;
	background: none;

}
#navigation li {
	display: inline;
}
#navigation a {
	display: inline-block;
	color: #362C36;
	font-size:1.65em;
	font-weight:bold;
	/*letter-spacing:0.02em;*/
	line-height: 1.1em;
	border: none solid #aaa;
	text-decoration: none;
	background: none;
	padding-top: 0.3em;
	padding-right: 0.5em;
	padding-bottom: 0.3em;
	padding-left: 0.5em;
	margin:0!important;
	transition-property: all;
	transition-duration: 0.5s;
}
#navigation a:hover {
	color: #E0AA2D;
	background: #1A1A1A;
}
#navigation .active {
	color: #909090;
	background: none;
}
#navigation .contact {
	float:right;
	/*color: #909090;
	background: #A9C16A;*/
}

	.menu-connex {display:none;margin:0;padding:0;}

	.ico-menu {padding:0!important;margin:0 0 -8px 0!important;}


@media (max-width: 890px) {

#navigation a {
	font-size:1.45em;
	transition-property: all;
	transition-duration: 0.5s;
	}

}


@media (max-width: 640px) {
	
	/* styling menu button */
	.nav-open:after {content: " ";}
	.nav-close:after {content: " ";}	

	nav ul {		
		max-height: 25em; /* number of items x5 */
		-webkit-transition: max-height .4s;
		-moz-transition: max-height .4s;
		-ms-transition: max-height .4s;
		-o-transition: max-height .4s;
		transition: max-height .4s;
		-webkit-transform: translateZ(0); /* activating hardware acceleration */
		-moz-transform: translateZ(0);
		-ms-transform: translateZ(0);
		-o-transform: translateZ(0);
		transform: translateZ(0);
	}
	/* handling clic and touch with CSS :target */
	#body:not(:target) nav ul {
		max-height: 0;
		overflow: hidden;
	}
	#body:not(:target) .nav-open, #body:target .nav-close {display: block !important;}
	#body:not(:target) .nav-close, #body:target .nav-open {display: none !important;}

	#navigation > a {
		display: block;
		padding: .6em .4em;
		border: 0; 
		background: #D6C6B6;
		font-size: 1.4em;
		font-weight:bold;
	}

	#navigation ul, #navigation a {
	background: #fff;
	}

#navigation a:hover {
	color: #3E4267;
	background: #F3F2F1;
}

	#navigation li a {
		display: block;
		padding: .6em .4em;
		border: 0; border-bottom: 1px solid #aaa;
		font-size: 1.4em;
	}
	#navigation li a:before {
		content: "\203A";
		font-size: 1.2em;
		margin-right: .6em;
		line-height: 1;
	}

	#navigation li a:hover,
	#navigation li a:active {
		
		text-decoration: none;
	}

	.menu-connex {
		display:block;
		clear:both!important;
	}

	#navigation .contact {
		display:block;
		width:100%;
		float:left!important;
		clear:both!important;
		/*color: #272727;
		background: none;*/
		border-bottom: 1px solid #aaa!important;
}


}


