#nav-wrapper {
	margin: 50px auto;
	line-height: 0;
}
#nav {
	margin: 0;
	padding: 0;
	line-height: 100%;
	margin-top: -9px;
}
#nav li {
	margin: 0 0 10px 0;
	border-top: 8px solid #ddd;
	padding: 0;
	float: left;
	position: relative;
	list-style: none;
}
/* main level link */
#nav a {
	font-weight: bold;
	color: #aaa;
	text-decoration: none;
	display: block;
	padding:  8px 18px 9px 18px;
	-webkit-transition: border-color 1s ease-out, color 1s ease-out, background-color .5s ease-out;
	-moz-transition: border-color 1s ease-out, color 1s ease-out, background-color .5s ease-out;
	-o-transition: border-color 1s ease-out, color 1s ease-out, background-color .5s ease-out;
	transition: border-color 1s ease-out, color 1s ease-out, background-color .5s ease-out, opacity 1s;
/*	text-shadow: 0 -1px 1px rgba(0,0,0, .25);*/
}
#nav a.actif-lien-accueil, #nav a.nonactif-lien-accueil:hover {
	color: #38a5c5;
	border-top: 8px solid #38a5c5;
	margin-top: -8px;
}
#nav a.actif-lien-formations, #nav a.nonactif-lien-formations:hover {
	color: #b3d809;
	border-top: 8px solid #B3D809;
	margin-top: -8px;
}
#nav a.actif-lien-colloque, #nav a.nonactif-lien-colloque:hover {
	color: #0084B4;
	border-top: 8px solid #0084b4;
	margin-top: -8px;
}
#nav a.actif-lien-anciens, #nav a.nonactif-lien-anciens:hover {
	color: #E45B0B;
	border-top: 8px solid #e45b0b;
	margin-top: -8px;
}
#nav a.actif-lien-infos, #nav a.nonactif-lien-infos:hover {
	color: #c38ed2;
	border-top: 8px solid #c38ed2;
	margin-top: -8px;
}
#nav a.actif-lien-contact, #nav a.nonactif-lien-contact:hover {
	color: #fdca01;
	border-top: 8px solid #fdca01;
	margin-top: -8px;
}
/* main level link hover */
#nav li:hover > a {
	text-decoration: none;
}

/* sub levels link hover */
#nav ul li:hover a, #nav li:hover li a {
	background: none;
	border: none;
	color: #fff;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	margin-top: 0;
}
#nav ul a:hover {
	background: #38a5c5 !important;
	color: #fff !important;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	text-shadow: 0 1px 1px rgba(0,0,0, .1);
}

/* dropdown */
#nav li:hover > ul {
	display: block;
	z-index: 12;
	height: auto;
	opacity: 1;
}

/* level 2 list */
#nav ul {
/*	instead of display: none; use height:0 and overflow: hidden to allow the animation (transition does not work on display property)*/
	display: block;
	height: 0;
	overflow: hidden;
	opacity: 0;

	margin: 0;
	padding: 0;
	min-width: 150px;
	position: absolute;
	top: 32px;
	left: 0;
	
	transition: opacity 0.2s ease-out;
	
	background-color: #f06015;
	background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(248,142,31,0.9)), to(rgba(240,96,21,0.6)));
	background-image: -moz-linear-gradient(top, rgba(248,142,31,0.9), rgba(240,96,21,0.6));
	background-image: -o-linear-gradient(top, rgba(248,142,31,0.9), rgba(240,96,21,0.6));
	background-image: linear-gradient(top, rgba(248,142,31,0.9), rgba(240,96,21,0.6));
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;

	-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
	-moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
	box-shadow: 0px 1px 3px rgba(0,0,0, .3);
}
#nav ul li {
	float: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(0,0,0,0.1);
}

#nav ul a {
	font-weight: normal;
	text-shadow: 0 -1px 1px rgba(0,0,0, .25);
	margin-bottom: 0px;
	color: #fff;
}

/* level 3+ list */
#nav ul ul {
	left: 181px;
	top: 0px;
}

/* rounded corners of first and last link */
#nav ul li:first-child > a {
	-webkit-border-top-left-radius: 5px;
	-moz-border-radius-topleft: 5px;
	border-top-left-radius: 5px;

	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topright: 5px;
	border-top-right-radius: 5px;
}
#nav ul li:last-child > a {
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-radius-bottomleft: 5px;
	border-bottom-left-radius: 5px;

	-webkit-border-bottom-right-radius: 5px;
	-moz-border-radius-bottomright: 5px;
	border-bottom-left-radius: 5px;
}
/* clearfix */
#nav:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
#nav {
	display: inline-block;
} 
html[xmlns] #nav {
	display: block;
}
 
* html #nav {
	height: 1%;
}
/* navigation secondaire pour la page formations */
#nav-sec {
	text-align: center;
/*	margin: -15px 0;
	padding: 0;*/
}
#nav-sec a:hover {
	text-decoration: none;
}
#nav-sec .first-level {
	list-style: none;
/*	padding: 10px 20px;*/
	background: #ebf8ff;
	border: 1px solid #ddd;
/*	margin: 10px 0;*/
	-webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -kthtml-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
#nav-sec .first-level a {
	color: #0084b4;
}
#nav-sec .first-level:hover {
	background: #0084b4;
	border: 1px solid #0084b4;
	color: #fff;
	text-decoration: none;
  	-webkit-box-shadow: 0 0 6px rgba(0,168,236,.6);
  	-moz-box-shadow: 0 0 6px rgba(0,98,134,.6);
  	box-shadow: 0 0 6px rgba(0,98,134,.6);
}
#nav-sec .sec-level {
	color: #0084b4;
	border: none;
	-moz-box-shadow: 0 0 0 #999; 
	-webkit-box-shadow: 0 0 0 #999;
	box-shadow: 0 0 0 #999;
	padding: 5px 10px 0 0;
	list-style: none;
	font-size: 13px;
}
nav-sec .first-level:hover a {
	color: #fff;
}
/* subnav */
#subnav {
	text-align: center;
	color: #aaa;
	border-bottom: 1px solid #eee;
}
#subnav ul {
	margin: 15px 0 15px -40px;
}
#subnav li {
	list-style: none;
	display: inline-block;
	margin: 0 1em;
	position: relative;
}
#subnav li a.actif-lien {
	color: #E45B0B; 
	text-decoration: none;
}
#subnav li a.actif-lien:after {
    content: "\02c6";
    font-size: 20px;
    position: absolute;
    top: 21px;
    left: 42%;	
}

/* responsive features */
@media (max-width: 767px) {
	#nav li {
		float:none;
	}
	#nav li:hover > ul {
		display: none;	
	}
	#nav {
		border-top: 0px;
	}
	#nav-wrapper {
		margin-bottom: -10px;	
	}
	#subnav li a.actif-lien:after {
	content: none;
	}
}