a#publik-portal-agent {
	right: auto;
	left: 5px;
}

%title {
	@extend %title;
	border-radius: $border-radius $border-radius 0 0;
}

span#environment-label {
	font-size: 0.625rem;
}

.site-header {
	#header {
		padding: 0;
		transition: all ease 0.2s;
		margin-bottom: 2rem;
		padding-left: 6px;
		h1 {
			padding-top: 8px;
			a {
				display: block;
				height: 60px;
				width: 200px;
				text-indent: -10000px;
				background: url(img/parl.png) 0px 0px no-repeat;
				background-size: 200px auto;
			}
		}
	}
}

div#nav-wrapper {
	max-width: $width;
	margin: 0 auto;
}

div#nav {
	z-index: 10;
	margin-top: -100px;
	margin-left: 200px;
	position: relative;
	@media screen and ($max-mobile-viewport) {
		margin-top: 0;
		margin-left: 0;
	}
	& > ul {
		margin: 2em 0 1em 0;
		@media screen and ($max-mobile-viewport) {
			margin: 0;
		}
		transition: all ease 0.2s;
		li a {
			font-weight: normal;
		}
		& > li {
			> a {
				box-sizing: content-box;
				text-align: center;
				display: table;
				height: 35px;
				padding-top: 40px;
				width: 8rem;
				line-height: 120%;
				padding-bottom: 5px;
				@media screen and ($max-mobile-viewport) {
					text-align: left;
					height: auto;
					padding: 1rem;
					width: auto;
					display: block;
				}
			}
			&.menu-accueil {
				background: url(img/home.svg) 50% 5px no-repeat;
				background-size: 25px auto;
				@media screen and ($max-mobile-viewport) {
					background: none;
				}
			}
			&.menu-videos {
				background: url(img/videos.svg) 50% 5px no-repeat;
				background-size: 30px auto;
				@media screen and ($max-mobile-viewport) {
					background: none;
				}
			}
			&.menu-forms {
				background: url(img/forms.svg) 50% 5px no-repeat;
				background-size: 20px auto;
				span {
					font-weight: bold;
				}
				@media screen and ($max-mobile-viewport) {
					background: none;
				}
			}
			&.menu-pes {
				background: url(img/pes.svg) 50% 10px no-repeat;
				background-size: 30px auto;
				@media screen and ($max-mobile-viewport) {
					background: none;
				}
			}
			&.menu-calendrier {
				background: url(img/calendrier.svg) 50% 5px no-repeat;
				background-size: 22px auto;
				@media screen and ($max-mobile-viewport) {
					background: none;
				}
			}
		}
	}
}

body.page-connexion, body.page-mon-profil {
	div#nav > ul > li.menu-forms span {
		font-weight: normal;
	}
}

body.has-picture {
	div#main-content-wrapper {
		margin-top: -150px;
		padding-top: 1rem;
	}
}

#logo a {
	color: $primary-color;
	font-weight: normal;
}

@media screen and ($max-mobile-viewport) {
	div#nav, .site-header {
		text-align: left;
		position: static;
		width: auto;
		padding-right: 0;
		border-bottom: 0;
		#logo a {
			background-position: 0 0;
			padding-left: 50px;
			white-space: pre;
			overflow: hidden;
			max-width: calc(100vw - 180px);
			display: inline-block;
		}
	}

	.site-header #header {
		margin-top: 3rem;
		margin-bottom: 0.4rem;
	}

	div#nav > ul {
		margin-top: 0;
		margin-bottom: 0px;
	}

	div#main-content-wrapper {
		padding-top: 0;
	}

	#toplinks {
		right: 1vw;
		left: auto;
		top: -3rem;
		width: auto;
	}

	body.has-picture .site-nav::after {
		top: 0px;
	}

}

div#gauche, div#rub_service {
	background: white;
	border-radius: $border-radius;
}

footer {
	a {
		color: white;
	}
}
