@import '../includes/fonts/lato';
@import '../includes/fonts/yantramanav';

%title {
	@extend %title;
	padding-left: 0.5rem;
	&::before {
		content: "";
		display: block;
		background: $red;
		height: 2px;
		width: 70px;
		margin-top: 1rem;
		position: absolute;
		bottom: 0;
		left: 0.5rem;
	}
}

%button {
	@extend %button;
	box-shadow: none;
	font-weight: bold;
	&:hover {
		box-shadow: none;
	}
}

%cancel-button {
	@extend %button;
	font-weight: normal;
	color: lighten($font-color, 20%);
	border-color: lighten($font-color, 20%);
}

div.textcell {
	h1 {
		@extend %title;
	}
	h2 {
		@extend %title;
		font-size: 1.5rem;
	}
}

#page .site-header {
	background: transparent url(img/bandeau_header.svg) top center no-repeat;
	background-size: 100%;
}

div#header-wrapper {
	height: 140px;
	#logo {
		padding-top: 40px;
		a {
			display: block;
			height: 100px;
			background: url(img/logo_metropole_couleur.svg) top center no-repeat;
			background-size: auto 100px;
			text-indent: -1000px;
			overflow: hidden;
		}
		@media screen and ($max-mobile-viewport) {
			padding-left: 0;
			width: 100%;
		}
	}
}

div#main-content-wrapper {
	padding-top: 1rem;
	background: white;
}

#toplinks {
	background: #f6f6f6;
	border: none;
	box-shadow: none;
	border-radius: 0;
	a {
		display: inline-block;
		color: black;
		padding: 5px 10px 10px 10px;
		text-decoration: underline;
		&:hover {
			color: $red;
		}
	}
	@media screen and ($max-mobile-viewport) {
		left: 0;
		right: 0;
		max-width: none;
		font-size: 14px;
	}
}

#nav {
	text-align: center;
	@media screen and ($max-mobile-viewport) {
		text-align: left;
		li > a::after {
			margin-left: 0;
		}
	}
}

div.gru-nav li > a {
	border-bottom-color: transparent;
	padding-bottom: 10px;
	&::after {
		content: "";
		display: block;
		width: 0px;
		height: 2px;
		background: $red;
		margin: 5px auto 0 auto;
		transition: width linear 0.2s;
		@media screen and ($max-mobile-viewport) {
			content: none;
		}
	}
}

div.gru-nav > ul > li a {
	font-weight: normal;
	text-transform: uppercase;
}

div.gru-nav > ul > li li a {
	&::after {
		content: none;
	}
	&:hover {
		font-weight: bold;
	}
	span {
		border-left: 3px solid #ddd;
		padding-left: 7px;
		@media screen and ($max-mobile-viewport) {
			margin-left: 1rem;
		}
	}
}

div.gru-nav > ul li ul {
	box-shadow: 0px 13px 24px 0px rgba(0, 0, 0, 0.34);
	font-size: 95%;
	@media screen and ($max-mobile-viewport) {
		box-shadow: none;
	}
}

div.gru-nav > ul > li a {
}

div.gru-nav > ul > li li a {
	padding: 0.5rem 0.5rem 0.15rem 0.5rem;
}

div.gru-nav li li a::after {
	margin: 0;
}

div.gru-nav li:hover > a,
div.gru-nav li.selected > a {
	border-bottom-color: transparent;
	&:after {
		width: 20px;
	}
}

div.drafts-recall a,
div.textcell a {
	text-decoration: underline;
	&.pk-button, &.pk-big-button {
		text-decoration: none;
	}
}

form p label, .field--label {
	font-size: 110%;
}

#footer-wrapper {
	div.textcell a {
		color: white;
	}
}
