/*Menu mobile*/
$hldt: true !default;
$header-banner-width-resp: $header-banner-width !default;
$header-banner-height-resp: $header-banner-height !default;
$header-logo-display-text: true !default;

@if variable-exists(header-logo-display-text) {
	$hldt: $header-logo-display-text;
} @else {
	$hldt: false;
}
div#nav #nav-button.toggled + ul {
	padding-top: 2%;
}

/*Device with smartphone*/

@media handheld,
	screen and (max-device-width: 480px),
	screen and (max-width: 480px) {
	#toplinks {
		font-size: 0.8em;
	}
	div#header > img {
		padding-top: 25px;
	}
	/*Homepage*/
	.page-index #content .column {
		display: block;
		max-width: 100%;
	}
	.page-index #main-content > #content #columns .cell {
		display: block;
		width: 100%;
	}
	.page-index #main-content div#content div.column:last-child div#colleft,
	.page-index #main-content div#content div.column:last-child div#colright {
		float: none;
	}
	.page-index #main-content > #content #columns .nuagedetag {
		display: none;
	}
}

@media handheld,
	screen and (max-device-width: 768px),
	screen and (max-width: 768px) {
	div#header {
		background-size: $header-banner-width-resp;
		padding: 0 1ex $header-banner-height-resp;
		min-height: 80px;
	}
	div#nav #nav-button + ul li.selected > a,
	div#nav #nav-button + ul li:hover > a {
		color: $nav-button-color;
	}
	div#nav > ul > li.selected > a,
	div#nav > ul > li > a:hover {
		border-bottom: 2px solid #c7c7c7;
	}
	div#nav ul ul:hover {
		border-top: 2px solid #c7c7c7;
	}
	a.remove-item {
		padding-left: 30px;
	}
	#page div#gauche {
		width: 100%;
	}
	#page div#gauche + div#rub_service {
		padding-left: 0;
		width: 100%;
	}
	#receipt-intro a#workflow-button-paid,
	#receipt-intro input#pay {
		margin-bottom: 1ex;
	}
	.page-panier li a {
		text-align: left;
		margin-left: 0;
		margin-top: 1em;
	}
	.page-panier li label > a {
		vertical-align: top;
		width: 100%;
		margin-top: 0;
	}
	.page-panier li label > a.basket-number {
		width: 100%;
		margin: 0.5em 0;
	}
	#profile dt {
		width: 100%;
	}
	div#header h1 {
		background-position: 0em;
	}
	h1#logo {
		background-size: 3em;
	}
	h1#logo a {
		@if $hldt == false {
			display: none;
			width: 60%;
		} @else {
			padding-top: 0em;
			//width: 25%;
			font-size: 0.5em;
			margin-top: 1.3em;
			width: 60%;
		}
	}
	div.gru-nav .gru-nav-button + ul {
		background: none;
	}
}

@media handheld,
	screen and (max-device-width: 800px),
	screen and (max-width: 800px) {
	div#header h1 {
		padding-left: 0.5em;
		margin-top: 0;
	}
	.gru-nav-wrapper {
		margin-top: 0px;
	}
	div.gru-nav .gru-nav-button {
		background: $primary-color;
	}
	div.gru-nav > ul > li a {
		padding: 0.25em 1em;
		border-bottom: 1px solid white;
	}
	div#nav {
		background: #fff;
		position: relative;
	}
	div.gru-nav .gru-nav-button {
		position: absolute;
		top: -50px;
		right: 1em;
	}
	div#nav ul li a {
		color: $nav-menu-color;
	}
}

/* iphone 5 adjsmts */
@media handheld,
	screen and (max-device-width: 320px),
	screen and (max-width: 320px) {
	h1#logo a {
		width: 70%;
	}
}
