@import '../includes/fonts/opensans';

div#header {
	width: auto;
	max-width: none;
	padding: 0 10px;
}

div#top {
	clear: both;
	margin: 0 auto;
	max-width: $width;
}

div#header-nav h1,
div#header-nav li {
	float: left;
}

div#header-nav li,
div#header-nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

div#header-nav li {
	margin: 0 16px;
	width: 170px;
	&#header-citoyen {
		width: 220px;
	}
	text-align: center;
	a {
		display: block;
		font-size: 2rem;
		font-style: italic;
		line-height: 215%;
		color: black;
		border-bottom: 14px solid transparent;
		transition: background 0.25s ease;
		&:hover {
			color: white;
		}
	}
	&#header-services a {
		border-color: #D24E38;
		&:hover {
			background: #DD6449;
		}
	}
	&#header-citoyen a {
		border-color: #0086CE;
		&:hover {
			background: #0099D7;
		}
	}
	&#header-actualites a {
		border-color: #469B90;
		&:hover {
			background: #54AAA1;
		}
	}
	@media screen and ($max-mobile-viewport) {
		margin: 15px 0;
		clear: both;
		float: none;
		display: block;
		width: 100%;
	}
}

div#header-nav h1 a {
	box-sizing: content-box;
	margin-left: 22px;
	display: block;
	text-indent: -10000px;
	background: url(logo_head2.png) bottom left no-repeat;
	height: 94px;
	padding-top: 25px;
	padding-left: 128px;
	line-height: 100px;
	color: black;
	font-style: italic;
	font-weight: normal;
	overflow: hidden;
}


#toplinks {
	border-radius: 0;
	border: none;
	box-shadow: none;
	background: #0086CE;
	padding-bottom: 1ex;
	a {
		color: white;
		text-transform: uppercase;
	}
}

a#publik-portal-agent {
	top: 40px;
	border-width: 1px;
}

div#top {
	font-style: italic;
	font-weight: normal;
	#logo a {
		font-size: 2rem;
		color: $primary-color;
		@media screen and ($max-mobile-viewport) {
			visibility: hidden;
		}
	}
	#baseline {
		display: block;
		padding-top: 1ex;
		padding-bottom: 2ex;
		font-size: 1.714rem;
		@media screen and ($max-mobile-viewport) {
			display: none;
		}
	}
}

div#nav > ul > li {
	margin-right: 10px;
	border: 2px solid $primary-color;
	border-width: 2px 0px;
	@media screen and ($max-mobile-viewport) {
		border: none;
	}
}

div#main-content {
	margin-top: 15px;
}

div#gauche, div#rub_service {
	margin-top: 0;
}

div.widget-prefilled div.content div.message {
	color: #888;
	font-size: 80%;
}

@media screen and ($max-mobile-viewport) {
	div#footer-wrapper {
		background-image: none;
	}
}

div#footer-wrapper {
	min-height: 100px;
	background: #E7F0F6 url(logo_head2.png) 32px 10px no-repeat;
}

div.widget th {
	font-weight: normal;
}

div#footer-post-wrapper {
	background: #0086CE;
	padding: 1.5ex 0;
	div#footer-post {
		max-width: $width;
		margin: 0 auto;
		text-align: right;
	}
	a {
		margin-left: 2em;
		color: #6fcdff;
		font-weight: bold;
		&:hover {
			color: white;
		}
	}
}

@media screen and ($max-mobile-viewport) {
	div#header {
		padding: 0;
		h1 {
			padding: 0;
			float: none;
			width: 100%;
			text-align: center;
			a {
				display: inline-block;
			}
		}
	}
}

#content div.cell.wcsformsofcategorycell {
	border-bottom: 0;
	margin-bottom: 2em;
	h2 {
		background: white center left no-repeat;
		cursor: pointer;
	}
	&.picto-services-commerces h2 {
		background-image: url(img/services-commerces.png);
		padding-left: 64px;
	}

	&.picto-enfance h2 {
		background-image: url(img/enfance.png);
		padding-left: 117px;
	}

	&.picto-jeunesse-sport h2 {
		background-image: url(img/jeunesse-sport.png);
		padding-left: 72px;
	}

	&.picto-tourisme h2 {
		background-image: url(img/tourisme.png);
		padding-left: 67px;
	}

	&.picto-deplacements h2 {
		background-image: url(img/deplacements.png);
		padding-left: 60px;
	}

	&.picto-urbanisme h2 {
		background-image: url(img/urbanisme.png);
		padding-left: 64px;
	}

	&.picto-services-culture h2 {
		background-image: url(img/services-culture.png);
		padding-left: 77px;
	}

	&.picto-environnement h2 {
		background-image: url(img/environnement.png);
		padding-left: 96px;
	}

	&.picto-service-eaux h2 {
		background-image: url(img/service-eaux.png);
		padding-left: 63px;
	}

	&.picto-proximite h2 {
		background-image: url(img/proximite.png);
		padding-left: 67px;
	}

	&.picto-services-papiers h2 {
		background-image: url(img/services-papiers.png);
		padding-left: 55px;
	}

	&.picto-services-asso h2 {
		background-image: url(img/services-asso.png);
		padding-left: 89px;
	}

	&.picto-services-sante h2 {
		background-image: url(img/services-sante.png);
		padding-left: 69px;
	}

	&.picto-services-sports h2 {
		background-image: url(img/services-sports.png);
		padding-left: 69px;
	}

	&.picto-services-nouveau h2 {
		background-image: url(img/services-nouveau.png);
		padding-left: 56px;
	}

	&.picto-services-voirie h2 {
		background-image: url(img/services-voirie.png);
		padding-left: 49px;
	}

	&.picto-services-securite h2 {
		background-image: url(img/services-securite.png);
		padding-left: 71px;
	}

	h2 ~ div {
		display: none;
	}
	&.toggled h2 ~ div {
		display: block;
	}
}

div#rub_service {
	div.submit-button {
		float: right;
	}
	div.previous-button button,
	div.cancel-button button {
		background: white;
		border: 1px solid #aaa;
		color: #666;
		box-shadow: none;
		font-weight: normal;
		&:hover {
			background: #eee;
		}
	}
	form + br.quixoteform {
		display: none;
	}
}

#login-page,
body.page-index #columns {
	margin-top: 1em;
}
