@import '../includes/fonts/firasans';
@import '../includes/fonts/roboto-condensed';

%big-title {
	@extend %title;
	background: transparent;
	color: $font-color;
	padding-left: 0.5rem;
	font-size: 2.2rem;
}

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

%cancel-button {
	@extend %button;
	font-weight: normal;
	background: #aaa;
}

body {
	background: #fffffe url(img/background.jpg) repeat-y;
	background-attachment: fixed;
	background-position: top center;
}

#columns div.textcell {
	@extend .pk-transparent;
	h1 {
		@extend %big-title;
	}
	h2, h2:first-child {
		@extend %big-title;
		font-size: 1.5rem;
	}
}

div#header {
	background: white;
	box-shadow: 0 20px 10px $nav-background;
	@media ($min-desktop-viewport) {
		padding-left: $columns-gutter;
		padding-right: $columns-gutter;
	}
	#logo {
		padding-bottom: 20px;
		a {
			display: block;
			height: 120px;
			background-size: 200px auto;
			background-position: bottom left;
		}
		@media screen and ($max-mobile-viewport) {
			padding-top: 20px;
			a {
				padding-left: 0;
			}
		}
	}
	@media screen and ($max-mobile-viewport) {
		box-shadow: none;
	}
}

.site-nav {
	z-index: 1000;
}

div#main-content-wrapper {
	box-shadow: 0 -20px 10px $nav-background;
	padding-top: 1rem;
	padding-bottom: 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: $green;
		}
	}
	@media screen and ($max-mobile-viewport) {
		left: 0;
		right: 0;
		max-width: none;
		font-size: 14px;
	}
}

#nav {
	border-bottom: 5px solid $green;
	ul {
		margin: 0;
	}
}

// Page picture
body.has-picture .site-nav::after {
	box-sizing: content-box;
	position: static;
	max-width: $width;
	margin: 0 auto;
	padding-top: 20%;
	height: 0;

	@media (min-width: $width) {
		padding-top: 270px;
	}

	@media ($max-mobile-viewport) {
		content: none;
	}
}

#main-content {
	@media ($min-desktop-viewport) {
		padding-left: $columns-gutter;
		padding-right: $columns-gutter;
	}
}

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

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%;
}

// CUSTOM FOOTER
#footer {
	font-family: $title-font-family;
	font-size: 1.125em;
	padding: $columns-gutter;

	@media ($min-desktop-viewport) {
		padding: 0 $columns-gutter * 2 $columns-gutter;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		> .cell {
			flex: 0 1 25%;
		}
	}

	// social icons
	[class*="icon-"]::before {
		font-family: FontAwesome;
		line-height: 1;
	}
	.icon-facebook::before {
		content: "\f09a";
	}
	.icon-twitter::before {
		content: "\f099";
	}
	.icon-youtube::before {
		content: "\f167";
	}
	.icon-instagram::before {
		content: "\f16d";
	}
	.icon-instagram::before {
		content: "\f16d";
	}
	.icon-linkedin::before {
		content: "\f0e1";
	}
	.icon-viadeo::before {
		content: "\f2a9";
	}
	.icon-phone::before {
		content: "\f095";
	}


	div.textcell {
		h1, h2 {
			font-size: 2.1rem;
			margin-bottom: 0;
			margin-top: 0;
		}
		p {
			margin: 8px 0;
		}

		a {
			color: white;
		}

		&.footer-network {
			flex-basis: auto;
			a {
				background: #546e7a;
				color: #b0bec5;
				font-size: 1.52941176470588em;
				display: inline-block;
				width: 42px;
				height: 54px;
				line-height: 54px;
				text-align: center;
				text-decoration: none;

				&:hover {
					color: black;
				}
			}
		}

		&.footer-copyright {
			font-size: 1rem;
			font-weight: 300;
			flex: 0 0 100%;
			color: #b0bec5;
		}
	}
	div.links-list {
		text-align: right;
		li {
			border-bottom: none !important;
			display: block;

			&:first-child {
				// Téléphone
				&::before {
					content: "\f095"; // icon-tel
					font-family: FontAwesome;
					line-height: 1;
					font-size: 1.5em;
					vertical-align: middle;
					margin-right: .33em;
				}
				a {
					color: white;
					margin-bottom: 1rem;
				}
			}

			&:not(:first-child) {
				font-size: 1rem;
			}

			a {
				display: inline;
				padding: 0;
				color: #b0bec5;
				&:hover {
					text-decoration: underline;
					background: none;
					color: white;
				}

			}
		}
	}
}

#footer-wrapper {
	margin-top: 0;
}

#side {
	padding-left: 1rem;
}

div#rub_service {
	max-width: 900px;
	margin: auto;

	> h2 {
		@extend %big-title;
	}
}

#gauche + #rub_service {
	max-width: none;
	margin: 0;
}

input, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], input[type="search"], input[type="file"], input[type="date"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], textarea, select {
	border-bottom-width: 2px;
	&:focus:not([readonly]) {
		border-bottom-width: 2px;
	}
}
