@font-face {
	font-family: "Roboto";
	src: url('../fonts/Roboto-Regular.ttf');
}

@font-face {
	font-family: "Roboto";
	font-weight: bold;
	src: url('../fonts/Roboto-Bold.ttf');
}

* {
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

*::-moz-focus-inner {
	border: 0;
}

*::selection,
*::-moz-selection,
*:hover,
*:focus,
*:active {
	color: inherit;
	background-color: inherit;
}

input[type="text"]:disabled,
input[type="number"]:disabled,
textarea:disabled {
	background-color: #FFF;
}

html {
	-ms-touch-action: manipulation;
	touch-action: manipulation;
}

body {
	margin: 0;
	padding: 0;
	font-size: 100%;
	font-family: Roboto, Arial;
	color: #454545;
}

body * {
	box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
	font-weight: normal;
}

ul, li {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	border-radius: 0;
	text-align: left;
	font-size: 1em;
}

.nowrap {
	white-space: nowrap;
}

#to_top {
	position: fixed;
	display: block;
	right: 3vw;
	bottom: 3vw;
	display: none;
	width: 20vw;
	height: 20vw;
	background: transparent url(../images/pictos/to_top.svg) 0 0 no-repeat;
	background-size: 100%;
}

#header {
	width: 100%;
	font-size: 1.2em;
	padding: 0.6em 4vw 0.6em 3em;
	position: relative;
}

#header .action {
	display: block;
	width: 2.5em;
	height: 100%;
	position: absolute;
    top: 0;
    left: 0;
}

#header .action.btn_back {
	background: transparent url(../images/pictos/left_arrow_w.svg) 50% 50% no-repeat;
    background-size: 1em 1em;
}

#header .action.btn_menu {
	background: transparent url(../images/pictos/menu_w.svg) 50% 50% no-repeat;
    background-size: 1em 1em;
}

#header h1 {
	display: inline-block;
	font-size: inherit;
	color: #FFF;
}

#header_options {
	display: block;
    width: 2.5em;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
	background: transparent url(../images/pictos/options_w.svg) 50% 50% no-repeat;
    background-size: 1em 1em;
	color: inherit;
}

#header_overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9000;
	display: none;
}

#header_options_list {
	position: absolute;
    top: 0.2em;
    right: 0.2em;
	background-color: #FFF;
	z-index: 5;
	padding: 0.3em 0.7em;
	box-shadow: 0 0 1em #454545;
	transform: scale(0, 0);
	transform-origin: top right;
	transition: transform 0.2s;
	opacity: 0;
	z-index: 9001;
}

#header_options_list.opened {
	opacity: 1;
	transform: scale(1, 1);
}

#header_options_list a {
	text-decoration: none;
	display: block;
	white-space: nowrap;
	font-size: 0.8em;
	color: inherit;
	padding: 0.5em 0;
}

.clear {
	clear: both;
}

.btn_radio,
.btn_checkbox {
    background: transparent url(../images/pictos/radio.svg) 0 0 no-repeat;
    background-size: 2em 2em;
    display: inline-block;
	min-height: 2em;
    padding: 0 0 0 2.5em;
	border: none;
	color: inherit;
}

.btn_radio.selected,
.btn_checkbox.selected {
	background: transparent url(../images/pictos/radio_ok.svg) 0 0 no-repeat;
	background-size: 2em 2em;
}

.btn_radio.inline,
.btn_checkbox.inline {
	line-height: 2em;
}

.btn_radio input,
.btn_checkbox input {
	position: absolute !important;
    top: -2000em !important;
    left: -2000em !important;
}

.btn {
	width: 100%;
	height: 3em;
	line-height: 3em;
	color: #FFF;
	border: none;
	font-size: 1.2em;
	background-color: #006BB1;
	text-align: center;
	text-decoration: none;
	display: block;
}

.btn_bottom_fix {
	position: fixed;
	bottom: 0;
	left: 0;
}

.screen_too_small #disconnect {
	position: relative;
    width: 100%;
}

.color_blue {
	color: #006BB1 !important;
}

#main_menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	transform: translateX(-100%);
	transition: transform 0.3s;
	z-index: 502;
}

#main_menu.opened {
	transform: translateX(0);
}

#main_menu.screen_too_small {
	overflow-y: auto;
}

#main_menu_overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	z-index: 501;
}

#main_menu_close {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 502;
}

#main_menu_overlay.opened {
	display: block;
}

#main_menu_header {
	background-color: #006BB1;
	color: #FFF;
	font-size: 1em;
	padding: 1em 4% 1em 4%;
}

#main_menu_header h2 {
	font-size: 1.5em;
    text-transform: uppercase;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main_menu_header h3 {
	font-size: 0.8em;
    text-transform: uppercase;
}

#main_menu_header address {
    font-style: normal;
    font-size: 0.8em;
	margin-top: 1em;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main_menu nav {
	background-color: #FFF;
	height: 100%;
	width: 65%;
	position: relative;
	z-index: 503;
}

#main_menu li {
	border-bottom: solid 1px #929395;
	background-color: #FFF;
	background: #FFF url(../images/pictos/right_arrow.svg) calc(100% - 1em) 50% no-repeat;
	background-size: 1em 1em;
}

#main_menu li a {
	text-decoration: none;
	color: inherit;
	padding: 0 6%;
	height: 4em;
	line-height: 4em;
	display: block;
}

#main_menu_accueil a {
	background: linear-gradient(to right, #006BB1 2%, transparent 2%);
}

#main_menu_todo a {
	background: linear-gradient(to right, #972A7F 2%, transparent 2%);
}

#main_menu_book a {
	background: linear-gradient(to right, #F5A200 2%, transparent 2%);
}

#main_menu_calendar a {
	background: linear-gradient(to right, #AC1027 2%, transparent 2%);
}

#main_menu_reports a {
	background: linear-gradient(to right, #4E972B 2%, transparent 2%);
}

#main_menu_admin a {
	background: linear-gradient(to right, #008F9E 2%, transparent 2%);
}

#disconnect {
	width: 65%;
}

#bloc_links fieldset {
	font-size: 1.2em;
	padding: 1em 0 1em 3.5em;
}

#bloc_links a {
	display: block;
	width: 100%;
	height: 1.4em;
	line-height: 1.4em;
	background: #FFF url(../images/pictos/right_arrow.svg) 100% 50% no-repeat;
	background-size: 1.5em 1.5em;
	text-decoration: none;
	color: inherit;
}

#bloc_links #rdv {
	background: linear-gradient(to right, #AC1027 1%, transparent 1%);
}

#bloc_links #historique {
	background: linear-gradient(to right, #4E972B 1%, transparent 1%);
}

#window_unload.loading {
	position: fixed;
    top: 1em;
    left: 1em;
    width: 3em;
    height: 3em;
    background-color: #FFF;
    background-position: 50% 50%;
    margin: 0;
    border-radius: 2em;
	box-shadow: 0 0 1em #000;
	z-index: 9999;
	display: none;
}

.loading {
	display: block;
	width: 100%;
	height: 2em;
	margin: 1em 0;
	background: transparent url(../images/pictos/loading.svg) 50% 0 no-repeat;
	background-size: 2em 2em;
	-webkit-animation: rotating 2s linear infinite;
	-moz-animation: rotating 2s linear infinite;
	-ms-animation: rotating 2s linear infinite;
	-o-animation: rotating 2s linear infinite;
	animation: rotating 2s linear infinite;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
	from {
		-webkit-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes rotating {
	from {
		-ms-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-webkit-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-ms-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-webkit-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@media only screen and (min-width: 768px) {
	body,
	section {
		max-width: 400px;
		margin: 0 auto;
	}
	
	#main_menu {
		left: calc(50% - 200px);
		width: 0;
		transform: translateX(0);
		transition: width 0.3s;
	}
	
	#main_menu.opened {
		width: 400px;
	}
	
	#window_unload.loading {
		left: calc(50% - 180px);
	}
}