a:link, a:visited {
	color: $link-color;
	&:hover {
		text-decoration: underline;
	}
}

a.pk-button:link, a.pk-button:visited {
	color: white;
}

%button {
	@extend %button;
	&:hover {
		text-decoration: none !important;
		box-shadow: none;
	}
}

body {
	background: $lightgray;
	@media screen and ($max-mobile-viewport) {
		background: white;
	}
	h1, h2, h3 {
		font-family: $title-font-family;
	}
	h2, h4 {
		color: $lightblue;
	}
}

.site-header {
	background: none;
	border-top: none;
	#logo {
		padding: 10px 0;
		@media screen and ($max-mobile-viewport) {
			padding: 10px 50px;
		}
		a {
			display: block;
			margin: 0 0;
			width: 208px;
			height: 47px;
			background: url(/assets/header:logo) no-repeat;
			background-size: cover;
			text-indent: -10000px;
		}
	}
	#toplinks {
		background: $logoblue;
		border: 1px solid white;
		box-shadow: none;
		border-radius: 0;
		top: 11px;
		padding-bottom: 0.6rem;
		a {
			color: white;
		}
		span { color: #f2f0e7;}
	}
}

div#header {
	background: $logoblue;
	padding: 0 1.2em;
}
.site-nav {
	font-family: $title-font-family;
	@media screen and ($max-mobile-viewport) {
		text-align: left;
	}
	div.gru-nav > ul > li a {
		font-weight: 400;
		color: $deepblue;
	}
	@media screen and ($max-mobile-viewport) {
		div.gru-nav-wrapper {
			background: transparent;
		}
	}
}

#main-content {
	background: white;
	padding: 0.5rem 1rem;
	@media screen and ($max-mobile-viewport) {
	padding: 0.5rem 0.5rem;
	}
}

div.comment-field,
div.textcell {
	line-height: 1.4285714;
	h1, h2, h3, h4, p {
		margin: 0.7em 0;
	}
}


footer {
	margin-top: 30px;
	@media screen and ($max-mobile-viewport) {
		margin-top: 0;
	}
	h1, h2, h3 {
		color: white;
	}
	ul, li {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	a:link {
		color: #A9A9A9;
		&:hover {
			color: #4796ec;
		}
	}
}

.cell.textcell.intro,
div#title-section {
	h1 {
		font-family: "Open Sans Condensed", $title-font-family;
		font-size: 2.375rem;
		color: #333;
		font-weight: bold;
	}
	p {
		font-family: "Open Sans Semibold", $title-font-family;
		font-size: 130%;
		color: $lightblue;
		margin: 0 auto;
	}
}

// STEPS

.wcs-steps {
	font-family: $title-font-family;
}

.wcs-step--label {
	text-transform: uppercase;
}

@media ($mq-min--wcs-steps-horizontal-layout) {
	.wcs-steps--list {
		justify-content: center;
		align-items: flex-end;
		overflow: hidden;
	}

	.wcs-step {
		flex-direction: column;
		align-items: center;
		flex: 1 1 6em;
		max-width: 11em;
		position: relative;
		font-size: 1.2em;

		&--label {
			position: static;
			font-size: 0.67em;
			order: -1;
			padding-bottom: .66em;
			text-align: center;
		}

		&:not(.current) & {
			&--label {
				display: block;
			}
		}

		// Tie
		&::after {
			position: absolute;
			bottom: calc( (#{$wcs-step-marker-size} - #{$wcs-step-marker-tie-width}) / 2}) !important;
			left: 50%;
			width: calc(100% + #{$wcs-step-marker-size});
		}
	}
}

div#rub_service div#tracking-code {
	text-align: center;
	button {
		margin-right: 0;
	}
	h3, a {
		font-size: 100%;
		display: inline-block;
	}
}

div.form-validation {
	div.page {
		background: $lightgray;
	}
	div.title label {
		font-weight: bold;
	}
	input[readonly], select[readonly], textarea[readonly] {
		border-width: 0 0 3px 0;
	}
}

div.gru-content #rub_service form.quixote {
	h3, h4 {
		clear: both;
		margin: 25px 0;
		text-align: left;
		font-size: 1.625rem;
		line-height: 40px;
		color: $darkgray;
		border-bottom: none;
	}
	h4 {
		font-size: 1.375rem;
	}
	div.buttons {
	}
}

.wcs-step--label {
	font-weight: 500;
}

div.errornotice {
	color: #cc1a1a;
}

.gru-content div.cell.inverse {
	background: $logoblue;
	color: white;
	h2 {
		background: $logoblue;
		color: white;
	}
}

div.links-list ul > li > a {
	color: $link-color;
}

div.list-of-forms {
	span.form-status {
		font-weight: bold;
	}
	span.form-number {
		opacity: 1;
		font-size: 100%;
		color: $typogray;
	}
}

.a2-block + #frontend-registration-fc, .block + .block-fc,
.block + .block-fc {
	border-left: none;
}

#registration-blocks,
#login-page {
	h2 {
		text-transform: uppercase;
		font-size: 115%;
		margin-top: 2rem;
		margin-bottom: 0;
		padding-bottom: 0;
		@media screen and ($max-mobile-viewport) {
			margin-top: 0;
		}
	}
	form {
		margin-left: 0;
		p {
			margin-left: 0;
		}
	}
}

@media screen and ($max-mobile-viewport) {
	#login-page.methods2 > .block {
		margin-left: 0;
		margin-right: 0;
	}
}

.a2-block + #frontend-registration-fc::after,
.block + .block-fc::after {
	margin-top: 60px;
	font-weight: bold;
	font-size: 1.5rem;
	font-family: $title-font-family;
	color: $logoblue;
}

div.block {
	&.block-fc h2 {
		padding-left: 0;
	}
	div#fc-registration-user-info, div#fc-button-wrapper, div#fc-explanation-text {
		text-align: left;
	}
}

div.a2-block {
	h2 {
		padding-left: 0;
	}
	div#fc-registration-user-info, div#fc-button-wrapper, div#fc-explanation-text {
		text-align: left;
	}
}


h2.intertitle {
	text-align: center;
	color: $title-color;
}

div.registration-bottom {
	padding-top: 20px;
	clear: both;
	position: relative;
	&::before {
		content: '';
		height: 3px;
		width: 170px;
		display: block;
		margin: 30px auto 10px auto;
		background: $gray;
	}

	text-align: center;
}

div#rub_service div.dataview, div#rub_service dl#evolutions, div#rub_service form {
	padding: 0.5rem 1rem;
}

// adjustments for extra right gutter
div.form-validation div.page {
	padding-left: 2rem;
}

div#rub_service #steps ~ form {
	margin-right: #{0 - $grid-gutter};
	@media screen and ($max-mobile-viewport) {
		margin-right: 0;
	}
}

div.widget label {
	font-weight: bold;
}

.text-check-before-submit {
	text-align: center;
	font-size: 1.25rem;
	font-style: italic;
}

.mention {
	font-size: 80%;
	text-align: center;
	&::before {
		content: '';
		height: 3px;
		width: 170px;
		display: block;
		margin: 30px auto 10px auto;
		background: #c6bfa5;
	}
}

div.error {
	background-image: url(img/alerte-saisie.png);
	background-size: 16px;
}

#profile span.label {
	color: $font-color;
	font-weight: bold;
}

#registration-blocks h2 {
	padding-left: 1rem;
}
