@font-face {
	font-family: 'icomoon';
	src: url('../fonts/icomoon.eot');
	src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
		url('../fonts/icomoon.woff') format('woff'),
		url('../fonts/icomoon.ttf') format('truetype'),
		url('../fonts/icomoon.svg#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Windows Chrome ugly fix http://stackoverflow.com/questions/13674808/chrome-svg-font-rendering-breaks-layout/14345363#14345363 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
	@font-face {
		font-family: 'icomoon';
		src: url('../fonts/icomoon.svg#icomoon') format('svg');
	};
}

a, li {-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}


/* CSS général appliqué quelque soit la taille de l'écran */


.nav ul {
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.5em;
	font-weight: 300;
}

.nav li span {display: block;}

.nav a {
	display: block;
	padding-top:8px;
	color: rgba(249, 249, 249, .9);
	text-decoration: none;
	-webkit-transition: color .5s, background .5s, height .5s;
	-moz-transition: color .5s, background .5s, height .5s;
	-o-transition: color .5s, background .5s, height .5s;
	-ms-transition: color .5s, background .5s, height .5s;
	transition: color .5s, background .5s, height .5s;
}

/* Remove the blue Webkit background when element is tapped */
a, button {-webkit-tap-highlight-color: rgba(0,0,0,0);}

/* Hover effect for the whole navigation to make the hovered item stand out */
.no-touch .nav ul:hover a {color: rgba(249, 249, 249, .5);}
.no-touch .nav ul:hover a:hover {color: rgba(249, 249, 249, 0.99);}

/* Couleur de fond aux différents éléments du menu de navigation */
.nav li:nth-child(6n+1) {background: rgb(208, 101, 3);}
.nav li:nth-child(6n+2) {background: rgb(233, 147, 26);}
.nav li:nth-child(6n+3) {background: rgb(22, 145, 190);}
.nav li:nth-child(6n+4) {background: rgb(22, 107, 162);}
.nav li:nth-child(6n+5) {background: rgb(27, 54, 71);}
.nav li:nth-child(6n+6) {background: rgb(21, 40, 54);}

/* Pour les écrans au-delà de 800px */
@media (min-width: 50em) {

	/* Les fonds d'écran s'étirent à 100% sur leur axe horizontal */
	.bg1, .bg2, .bg3, .bg4 {background-size:100% auto;}

	/* Les éléments du menu s'alignent sur l'horizontal */
	.nav li {
		float: left;
		width: 20%;
		text-align: center;
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
	}

	.nav a {display: block;width: auto;}

	/* hover, focus et active : ils ajoutent une bordure colorée aux éléments */
	.no-touch .nav li:nth-child(6n+1) a:hover,
	.no-touch .nav li:nth-child(6n+1) a:active,
	.no-touch .nav li:nth-child(6n+1) a:focus {
		border-bottom: 4px solid rgb(174, 78, 1);
	}

	.no-touch .nav li:nth-child(6n+2) a:hover,
	.no-touch .nav li:nth-child(6n+2) a:active,
	.no-touch .nav li:nth-child(6n+2) a:focus {
		border-bottom: 4px solid rgb(191, 117, 20);
	}

	.no-touch .nav li:nth-child(6n+3) a:hover,
	.no-touch .nav li:nth-child(6n+3) a:active,
	.no-touch .nav li:nth-child(6n+3) a:focus {
		border-bottom: 4px solid rgb(12, 110, 149);
	}

	.no-touch .nav li:nth-child(6n+4) a:hover,
	.no-touch .nav li:nth-child(6n+4) a:active,
	.no-touch .nav li:nth-child(6n+4) a:focus {
		border-bottom: 4px solid rgb(10, 75, 117);
	}

	.no-touch .nav li:nth-child(6n+5) a:hover,
	.no-touch .nav li:nth-child(6n+5) a:active,
	.no-touch .nav li:nth-child(6n+5) a:focus {
		border-bottom: 4px solid rgb(16, 34, 44);
	}

	.no-touch .nav li:nth-child(6n+6) a:hover,
	.no-touch .nav li:nth-child(6n+6) a:active,
	.no-touch .nav li:nth-child(6n+6) a:focus {
		border-bottom: 4px solid rgb(9, 18, 25);
	}

	/* Possibilité d'animer la hauteur des onglets : là elle est fixe */
	.nav a,
	.no-touch .nav a:hover ,
	.nav a:active ,
	.nav a:focus {
		height: 2.2em;
	}	
		
}

@media (min-width: 50em) and (max-width: 61.250em) {

	/* Size and font adjustments to make it fit into the screen*/
	.nav ul {font-size: 1.2em;}

}

/* Version tablette et mobile */

/* Disposition générale */
@media (max-width: 49.938em) {		
	
	/* Bordure colorée */
	.no-touch .nav ul li:nth-child(6n+1) a:hover,
	.no-touch .nav ul li:nth-child(6n+1) a:active,
	.no-touch .nav ul li:nth-child(6n+1) a:focus {
		background: rgb(227, 119, 20);
	}

	.no-touch .nav li:nth-child(6n+2) a:hover,
	.no-touch .nav li:nth-child(6n+2) a:active,
	.no-touch .nav li:nth-child(6n+2) a:focus {
		background: rgb(245, 160, 41);
	}

	.no-touch .nav li:nth-child(6n+3) a:hover,
	.no-touch .nav li:nth-child(6n+3) a:active,
	.no-touch .nav li:nth-child(6n+3) a:focus {
		background: rgb(44, 168, 219);
	}

	.no-touch .nav li:nth-child(6n+4) a:hover,
	.no-touch .nav li:nth-child(6n+4) a:active,
	.no-touch .nav li:nth-child(6n+4) a:focus {
		background: rgb(31, 120, 176);
	}

	.no-touch .nav li:nth-child(6n+5) a:hover,
	.no-touch .nav li:nth-child(6n+5) a:active,
	.no-touch .nav li:nth-child(6n+5) a:focus {
		background: rgb(39, 70, 90);
	}

	.no-touch .nav li:nth-child(6n+6) a:hover,
	.no-touch .nav li:nth-child(6n+6) a:active,
	.no-touch .nav li:nth-child(6n+6) a:focus {
		background: rgb(32, 54, 68);
	}

	.nav ul li {
		-webkit-transition: background 0.5s;
		-moz-transition: background 0.5s;
		-o-transition: background 0.5s;
		-ms-transition: background 0.5s;
		transition: background 0.5s;
	}	

}

/* Propriétés CSS spécifiques au mode "Colonnes 2x3" */
@media (min-width:32.5em) and (max-width: 49.938em) {
	
	/* Les fonds d'écran s'étirent à 100% sur leur axe horizontal */
	.bg1,.bg2,.bg3,.bg4{background-size:auto 100%;}

	/* Creating the 2 column layout using floating elements once again */
	.nav li {display: block;float: left;width: 50%;}
	
	/* Adding some padding to make the elements look nicer*/
	.nav a {padding: 0.8em;}

	/* Displaying the icons on the left, and the text on the right side using inlin-block*/
	.nav li span {display: inline-block;}
	
}

/* Styling the toggle menu link and hiding it */
.nav .navtoogle{
	display: none;	
	width: 100%;
	padding: 0.5em 0.5em 0.8em;
	font-family: 'Lato',Calibri,Arial,sans-serif;
	font-weight: normal;
	text-align: left;
	color: rgb(7, 16, 15);
	font-size: 1.2em;
	background: none;	
	border: none;
	border-bottom: 4px solid rgb(221, 221, 221);
	cursor: pointer;
}

/* Adapter la taille de police pour les petits écrans*/
@media (min-width: 32.5em) and (max-width: 38.688em) {
	.nav li span {
		font-size: 0.9em;
	}
}

/* Version mobile */
@media (max-width: 32.438em) {

	/* Les fonds d'écran s'étirent à 100% sur leur axe horizontal */
	.bg1,.bg2,.bg3,.bg4{background-size:auto 100%;}

	/* Unhiding the styled menu link */
	.nav .navtoogle{margin: 0;display: block;}
	
	/* Animating the height of the navigation when the button is clicked */
	
	/* When JavaScript is disabled, we hide the menu */
	.no-js .nav ul {max-height: 30em;overflow: hidden;}
	
	/* When JavaScript is enabled, we hide the menu */
	.js .nav ul {max-height: 0em;overflow: hidden;}
	
	/* Displaying the menu when the user has clicked on the button*/
	.js .nav .active + ul {		
		max-height: 30em;
		overflow: hidden;
		-webkit-transition: max-height .4s;
		-moz-transition: max-height .4s;
		-o-transition: max-height .4s;
		-ms-transition: max-height .4s;
		transition: max-height .4s;
	}

	/* Adapting the layout of the menu for smaller screens : icon on the left and text on the right*/
	.nav li span {display: inline-block;height: 100%;}
	.nav a {padding: 0.5em;}
	
	/* Ajout d'une bordure gauche de 8px avec une couleur différente pour chaque élément */
	.nav li:nth-child(6n+1) {border-left: 8px solid rgb(174, 78, 1);}
	.nav li:nth-child(6n+2) {border-left: 8px solid rgb(191, 117, 20);}
	.nav li:nth-child(6n+3) {border-left: 8px solid rgb(13, 111, 150);}
	.nav li:nth-child(6n+4) {border-left: 8px solid rgb(10, 75, 117);}
	.nav li:nth-child(6n+5) {border-left: 8px solid rgb(16, 34, 44);}
	.nav li:nth-child(6n+6) {border-left: 8px solid rgb(9, 18, 25);}

	/* make the nav bigger on touch screens */
	.touch .nav a {padding: 0.8em;}
}

