body {
	font-family: "Open Sans", "Segoe UI", Arial, Verdana, sans-serif;
	background-image: url("../img/essential/background.jpg");
}

h1, h2, h3, h4, h5, h6 {
	text-align: center;
	margin-top: 10px;
	margin-bottom: 10px;
}

h1 > small, h2 > small, h3 > small, h4 > small, h5 > small, h6 > small {
	color: #777;
}

h1 {
	font-size: 30px;
}

h2 {
	font-size: 26px;
}

h3 {
	font-size: 18px;
}

h4 {
	font-size: 16px;
}

h5, h6 {
	font-size: 14px;
}

a {
	color: #3bafda;
}

a:focus, a:hover {
	text-decoration: underline;
}

::selection {
	background-color: #ffe000;
}

video {
	max-width: 100%;
	height: auto;
}

html.fancybox-enabled nav.navbar-stmaur .container {
	position: relative;
	left: -8.5px;
}

ul.styled {
	list-style: none;
}

ul.styled li:before {
	content: "-";
	padding-right: 8px;
}

.important {
	color: red;
}

.btn {
	transition: all .2s;
	border-radius: 3px;
}

.form-control {
	border-radius: 2px;
}

.form-control:focus {
	box-shadow: 0 0 2px 0 #3bafda;
}

input[type=radio],
input[type=checkbox] {
	position: absolute;
	left: -9999px;
}

/* Structure du cercle extérieur */
.radio label:before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #aaa;
	margin-right: 5px;
	box-shadow: inset #ccc 0 0 5px 0;
	vertical-align: middle;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.checkbox label:before {
	content: "";
	border-radius: 3px;
	display: inline-block;
	width: 15px;
	height: 15px;
	border: 1px solid #aaa;
	margin-right: 5px;
	box-shadow: inset #ccc 0 0 3px 0;
	vertical-align: sub;
}

/* Radio cochée */
.radio input[type=radio]:checked + label:before {
	content: "";
	background-color: rgb(59, 175, 218);
	border: 3.5px solid white; /* Espace blanc autour du point */
	box-shadow: 0 0 0 1px rgb(59, 175, 218); /* Bordure extérieure bleue */
}

/* Checkbox cochée */
.checkbox input[type=checkbox]:checked + label:before {
	content: "\2713";
	font-size: 15px;
	font-weight: bold;
	color: rgb(59, 175, 218);
	text-align: center;
	line-height: 11px;
	vertical-align: initial;
}

/* Checkbox désactivée - carré grisé */
.checkbox input[type=checkbox]:disabled + label:before {
    background-color: #e0e0e0;
    border-color: #bdbdbd;
    box-shadow: none;
	opacity: 0.7;
}

/* Checkbox cochée ET désactivée */
.checkbox input[type=checkbox]:checked:disabled + label:before {
    background-color: #d0d0d0;
    border-color: #b0b0b0;
    color: #888; /* couleur du ✓ */
	opacity: 0.7;
}

/* Texte du label grisé */
.checkbox input[type=checkbox]:disabled + label {
    color: #888;
    cursor: not-allowed;
}

.chargement {
	display: block;
	margin: 50px auto;
}

.dossier > p {
	text-decoration: none;
	color: #333;
	font-weight: bold;
	background-color: #f5f5f5;
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #ddd;
	height: 52px;
	overflow-y: auto;
}

.dossier img, .photo-galerie img {
	max-height: 140px;
}

body > .container .photo-galerie {
	overflow: visible !important;
}

a.suppr {
	color: red;
	position: absolute;
	right: 32px;
	top: -13px;
	border-radius: 100%;
	background-color: #ddd;
	width: 20px;
	height: 20px;
}

a.suppr:hover {
	background-color: #eee;
	color: rgba(255, 0, 0, 0.4);
}

.glyphicon-remove {
	opacity: 1;
	transition: opacity .2s;
}

.glyphicon-remove:hover {
	opacity: 0.6;
	cursor: pointer;
}

/* Visionneuse PDF */
.pdf-container {
    width: 100%;
    height: 90vh;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

/* ==================== MAIN ==================== */


body > .container {
	box-shadow: 0px 0px 20px 0px #555;
	background-color: white;
}

body > .container > .row > aside {
	margin-top: 50px;
	background-color: #eee;
}

body > .container > .row > section {
	margin-top: 50px;
	background-color: white;
}

body > .container > .row > section.shadowed {
	box-shadow: inset 7px 0px 8px -7px #555;
}

body > .container > .row > section > article.news h1, body > .container > .row > section > article.news h2, body > .container > .row > section > article h3, body > .container > .row > section > article h4, body > .container > .row > section > article h5, body > .container > .row > section > article h6 {
	text-align: left;
}

/*----- SAME HEIGHT COLUMNS -----*/

body > .container .row.equal {
	overflow: hidden; 
}

body > .container > .row.equal > [class*="col-"] {
	margin-bottom: -99999px;
	padding-bottom: 99999px;
}

/*-----*/

header > a {
	display: block;
	width: 100%;
	margin: 10px auto;
}

header > a > img {
	width: 100%;
}

header, .top-page, .container article {
	border-bottom: solid 1px rgba(204, 204, 204, 0.6);
}

.container article:last-of-type {
	border: none;
}

.top-page {
	text-align: center;
}

.top-page, .container article {
	padding: 10px 10px;
}

.top-page .alert {
	text-align: left;
}

img.thumbnail {
	opacity: 1;
	transition: opacity .3s;
}

img.thumbnail:hover {
	opacity: 0.75;
	transition: opacity .3s;
}

.timeline {
	margin: 20px 0;
}

.timeline dl dd .events {
	background-color: #eee;
}

.timeline dl dd.pos-left .events:before {
	border-color: transparent transparent transparent #eee;
}

.timeline dl dd.pos-right .events:before {
	border-color: transparent #eee transparent transparent;
}

.timeline dl dd .time {
	width: 200px;
}

.timeline dl dd.pos-right .time {
	margin-left: -200px;
}

body > .container > .row > section > article .reservation h3, body > .container > .row > section > article .reservation h4, body > .container > .row > section > article .reservation h5, body > .container > .row > section > article .reservation h6 {
	text-align: center;
}

.right-form {
	display: none;
}

.eye-inscrits {
	font-size: 18px;
	opacity: 1;
	transition: opacity .2s;
}

.eye-inscrits:hover {
	opacity: 0.6;
	cursor: pointer;
}

.liste-inscrits {
	display: none;
}

.liste-inscrits > div {
	background-color: #333;
	border-radius: 5px;
	color: white;
	overflow: auto;
}

.reservation-inscrit {
	clear: right;
}

.reservation-inscrit:nth-child(even) {
	background-color: #555;
}

.tooltip-inner {
	white-space: pre;
	max-width: none;
	font-size: 14px;
	padding: 5px 10px;
}

.tooltip-inner > p {
	margin: 0;
}

.tooltip-inner > h4 {
	margin: 5px 0;
}

h3.popover-title {
	text-align: center !important;
}

.inline-block {
	display: inline-block;
}

.badge-non-obtenu {
	filter: grayscale(100%);
	opacity: 0.4;
}

.checkbox.hover:hover {
	background-color: #f5f5f5;
}


/* ==================== NAV ==================== */


.container > .navbar-header {
	margin-right: 0;
}

.container > .navbar-collapse {
	margin-right: 0;
}

.navbar-stmaur {
	background: rgba(67, 74, 84, 0.75);
	border-radius: 0;
	border: none;
	margin-bottom: 0px;
	box-shadow: 0 0 5px 2px #434a54;
}

.navbar-stmaur > .container, .nav > li > a:focus {
	background-color: #434a54;
}

.navbar-stmaur .navbar-nav > li > a, .navbar-stmaur .navbar-text {
	color: white;
	font-weight: 600;
}

.navbar-stmaur > .container {
	padding: 0;
}

.navbar-stmaur > .container {
	padding-left: 0px;
	padding-right: 0px;
}

.navbar-stmaur > .container, .navbar-nav:first-of-type {
	padding-right: 15px;
}

.nav > li > a {
	transition: background .2s;
}

.nav > li > a:hover {
	background-color: #656d78;
	transition: background .2s;
}

.nav .open>a, .nav .open>a:hover, .nav .open>a:focus {
	background-color: #656d78;
}

.dropdown-menu {
	background-color: #222933;
	border-radius: 0;
}

.dropdown-menu > li > a {
	transition: background .2s;
}

.navbar-toggle {
	margin-right: 15px;
}

.navbar-toggle:hover {
	background-color: #222933;
}

.navbar-toggle > .icon-bar {
	background-color: white;
}

.navbar-brand, .navbar-brand:hover, .navbar-brand:focus, .navbar-brand:active {
	color: white;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 12px;
	margin-left: 15px;
}

.navbar-brand > img {
    display: inline;
    max-height: 100%;
    margin-right: 10px;
}


/* ==================== ASIDE ==================== */


aside > h2 {
	background-color: #ccc;
	margin-left: -15px;
	margin-right: -15px;
	text-align: center;
	padding: 5px 15px;
}

aside > h3 {
	text-align: center;
}

.logos-aside {
	height: 40px;
}

.logos-aside > li > a {
	text-decoration: none;
	color: #434a54;
}

.logos-aside > li {
	margin: 0 20px;
	vertical-align: middle;
	opacity: 1;
	transition: opacity .2s;
}

.logos-aside > li:hover {
	opacity: 0.7;
	cursor: pointer;
}

.logos-aside img {
	height: 35px;
}

.logos-aside .glyphicon {
	font-size: 40px;
	top: 3px;
}


/* ==================== CALENDRIER ==================== */


aside .cal {
	margin-top: 15px;
}

.cal h3 {
	text-align: center !important;
}

.prev, .next {
	opacity: 1;
	transition: opacity .2s;
}

.prev:hover, .next:hover {
	cursor: pointer;
	opacity: 0.4;
}

.cal table.calendrier {
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 4px 4px;
}

.cal table.calendrier thead th, .cal table.calendrier tbody td {
	width: 32px;
	height: 32px;
	text-align: center;
	border-radius: 100%;
}

.cal table.calendrier thead th, .cal table.calendrier tbody td .event {
	height: 32px;
	line-height: 32px;
	border-radius: 100%;
}

.cal table.calendrier tbody td {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none;
}

.cal table.calendrier tbody td.empty {
	color: #aaa;
}

.cal table.calendrier tbody td:not(.empty):hover {
	background-color: #ddd;
	border-radius: 100%;
	cursor: pointer;
}

.cal table.calendrier tbody td.ajd {
	font-weight: bold;
	background-color: #6bd6ff;
}

.cal table.calendrier tbody td.ajd:hover {
	background-color: #a0e4ff;
}

.cal table.calendrier tbody td.evenement {
	background-color: rgba(255,0,0,0.5);
}

.cal table.calendrier tbody td.evenement:hover {
	background-color: rgba(255,0,0,0.3);
}

.cal table.calendrier tbody td#ajdevenement {
	font-weight: bold;
	background-color: #ffd000;
}

.cal table.calendrier tbody td#ajdevenement:hover {
	font-weight: bold;
	background-color: #ffe000;
}

.cal-infos, .cal-infos > h4 {
	text-align: center !important;
}


/* ==================== FOOTER ==================== */


.footer {
	padding: 20px 0px;
}

.footer > a {
	display: inline-block;
	width: 20%;
	vertical-align: middle;
}

.footer > a > img {
	display: block;
	margin: auto;
	max-width: 100%;
}










/* ==================== */
/* ==================== */
/*     MEDIAQUERIES     */
/* ==================== */
/* ==================== */


/* ==================== XS - SM - MD ==================== */


@media screen and (max-width: 1199px) {


	a.suppr {
		right: 8px;
		top: -13px;
	}
	
	/* ==================== CALENDRIER ==================== */


	.cal table.calendrier thead th, .cal table.calendrier tbody td {
		width: 25px;
		height: 25px;
		font-size: 12px;
	}
	
	.cal table.calendrier thead th, .cal table.calendrier tbody td .event {
		height: 25px;
		line-height: 25px;
	}

	
	/* ==================== ASIDE ==================== */


	aside > h2 {
		font-size: 22px;
	}

	aside > h3 {
		font-size: 18px;
	}
}


/* ==================== XS - SM ==================== */


@media screen and (max-width: 991px) {

	
	a.suppr {
		right: 10px;
		top: -13px;
	}
	
	/* ==================== NAV ==================== */


	.navbar-stmaur .navbar-nav > li > a, .navbar-stmaur .navbar-text {
		font-size: 11px;
	}
}


/* ==================== XS ==================== */


@media screen and (max-width: 767px) {

	
	/* ==================== CALENDRIER ==================== */

	.cal table.calendrier thead th, .cal table.calendrier tbody td {
		width: 34px;
		height: 34px;
		font-size: 14px;
	}

	.cal table.calendrier thead th, .cal table.calendrier tbody td .event {
		height: 34px;
		line-height: 34px;
	}
	
	/* ==================== MAIN ==================== */

	
	html.fancybox-enabled nav.navbar-stmaur .container {
		position: initial;
		left: 0;
	}
	
	body > .container > .row > section.shadowed {
		box-shadow: none;
	}
	
	.timeline dl dd.pos-left .events:before {
		border-color: transparent #eee transparent transparent;
	}
	
	.timeline dl dd .time {
		width: 50px;
	}

	.timeline dl dd.pos-right .time {
		margin-left: -100px;
	}


	/* ==================== NAV ==================== */

	
	body > .container > .row > aside {
		margin-top: 0;
	}

	body > .container > .row > section {
		margin-top: 0;
	}
	
	.navbar-stmaur {
		z-index: 1;
	}
	
	.navbar-stmaur .navbar-nav > li > a, .navbar-stmaur .navbar-text {
		font-size: 14px;
		text-align: center;
	}

	.navbar-nav .open .dropdown-menu {
	    background-color: #222933;
	}

	.navbar-stmaur > .container, .navbar-nav:first-of-type {
		padding-right: 0px;
	}


	/* ==================== ASIDE ==================== */


	aside {
		text-align: center;
	}

	aside > h2:nth-of-type(2) {
		margin-top: 0px;
	}
	
	
	/* ==================== FOOTER ==================== */
	
	
	.footer > a {
		width: 50%;
		margin: 20px auto;
	}
	
	.footer > a:last-of-type {
		display: block;
		width: 50%;
	}
}