/*
Theme Name:  Club CABOT 2019
Author:      Benjamin Hoyez
Version:     1.2.0
Text Domain: clubcabot
*/


body {
	font-family: 'Muli', sans-serif;
	color: #04507A;
}

a {
	color: #fff;
}
a:hover {
	color: #04507A;
	text-decoration: none;
}


.wp-block-media-text {
	margin-bottom: 1rem;
}

	.wp-block-media-text .wp-block-media-text__content {
		padding-right: 0;
		padding-left: 1rem;
	}

	.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
		padding-right: 1rem;
		padding-left: 0;
	}

.wp-block-button__link {
    border-radius: 14px;
	padding: 6px 12px;
	background-color: #0875b2;
	transition: background-color 150ms, box-shadow 150ms, transform 150ms;
}

	.wp-block-button__link:hover {
		background-color: #ff9200;
		box-shadow: 0 0 1rem rgba(0,0,0,0.5);
		transform: scale(1.05);
	}

.container-fluid.movable {
	padding-top: 1rem;
}


header.main {
	position: relative;
	z-index: 3;
	width: 285px;
	max-width: 100%;
	height: calc( 100vh - 1rem - 52px );
	margin: 1rem 1rem 0 0;
	color: #fff;
	text-align: center;
}

	header.main .logo {
		position: relative;
		z-index: 2;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		height: 30%;
		padding-bottom: 1rem;
		text-align: center;
	}

	header.main.ui-draggable-disabled .logo {
		cursor: pointer;
	}

		header.main .logo img {
			position: relative;
			z-index: 2;
			max-width: 80%;
			height: auto;
			max-height: 100%;
		}

		header.main .logo::after {
			position: absolute;
			z-index: 1;
			bottom: 0;
			right: 0;
			left: 0;
			content: ' ';
			height: 0;
			border-right: 30px solid transparent;
			border-bottom: 30px solid #359edb;
			border-left: 30px solid transparent;
		}

	.header-tabs {
		width: inherit;
		height: 70%;
		padding-right: 0;
		padding-left: 0;
		transform: rotateY(0);
		transform-style: preserve-3d;
		transition: transform 400ms;
		backface-visibility: hidden;
	}

	.header-tabs.contact {
		transform: rotateY(-90deg);
	}

		.header-tab {
			position: absolute;
			width: 100%;
		}

		.header-tabs .tab-menu {
			transform: rotateY(0) translateZ(143px);
		}
		
		.header-tabs .tab-contact {
			transform: rotateY(90deg) translateZ(143px);
		}

/** **** **/
/*  MENU  */
/** **** **/
.navbar-primary-container {
	margin-top: 0;
	padding: 1rem 1.5rem 2rem;
	background-color: #3fb9ff;
}

.navbar-primary-container .navbar-collapse {
	width: 100%;
}

.navbar-primary {
	position: relative;
	flex-direction: column;
	margin-bottom: 0;
	padding: 0 0;
	background-color: #3fb9ff;
}

.navbar-primary .navbar-nav {
	flex-direction: column;
	width: 100%;
}

	.navbar-primary .navbar-nav .nav-link {
		display: inline-block;
		width: 100%;
		padding: 0.5rem;
		font-size: 1rem;
		vertical-align: top;
		transition: background-color 150ms;
		border-radius: 0;
		vertical-align: middle;
	}

	.navbar-primary .navbar-nav .nav-link::before {
		display: inline-block;
		content: ' ';
		width: 20px;
		height: 30px;
		margin-right: 0.5rem;
		background-image: url(assets/img/puce.png);
		background-position: center center;
		background-repeat: no-repeat;
		background-size: auto 70%;
		vertical-align: middle;
	}

	.navbar-primary .navbar-nav a.has-submenu {
		padding-right: 0;
	}

	.navbar-primary a.highlighted,
	.navbar-primary a:focus,
	.navbar-primary a:active,
	.navbar-primary a:hover,
	.navbar-primary .current-menu-item > a {
		background-color: #0875b2;
		color: #fff;
		text-decoration: none;
		transition: background-color 150ms;
		outline: 0;
	}
	
	.navbar-primary .sub-arrow {
		float: right;
		width: 20px;
		height: 20px;
		margin-top: 0.3rem;
		margin-right: 0.5rem;
		padding: 0.15rem;
		font-size: 0.8rem;
		text-align: center;
		border-radius: 15px;
		vertical-align: middle;
	}

	.navbar-primary .current-menu-ancestor > a > .sub-arrow {
		background-color: #0875b2;
	}

	.navbar-primary a.highlighted > .sub-arrow,
	.navbar-primary a:focus > .sub-arrow,
	.navbar-primary a:active > .sub-arrow,
	.navbar-primary a:hover > .sub-arrow,
	.navbar-primary .current-menu-item > a > .sub-arrow {
		background-color: white;
		color: #0875b2;
	}

	.navbar-primary .dropdown-menu {
		min-width: 15rem !important;
		max-width: 100% !important;
		border-radius: 0;
	}

		.navbar-primary .dropdown-menu .dropdown-item {
			padding: 0.5rem 1.5rem;
			background-image: none;
			font-size: 0.9rem;
			border-radius: 0;
		}


.open-contact,
.close-contact {
	display: inline-block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.7rem 0;
	background-color: #3fb9ff;
	font-size: 1.3rem;
	text-transform: uppercase;
	transition: background-color 150ms;
}

.open-contact:hover,
.close-contact:hover {
	color: #fff;
	text-decoration: none;
	background-color: #0875b2;
	transition: background-color 150ms;
}

.link-contact {
	display: none;
}

.form-contact {
	position: relative;
	height: auto;
	padding: 1.5rem 1rem;
	background-color: #3fb9ff;
}

	.form-contact .form-group {
		margin-bottom: 0.5rem;
	}
	
	.form-contact .form-control {
		max-width: 100%;
		min-width: 100%;
		background-color: #0875b2;
		color: #fff;
		border: 0;
		border-radius: 0;
		cursor: pointer;
	}

	.form-contact .form-control:hover,
	.form-contact .form-control:focus {
		background-color: #0A98E7;
	}

	.form-contact .form-control:focus {
		cursor: text;
	}

		.form-contact .form-control::-webkit-input-placeholder {
			color: #96b8d4;
		}

		.form-contact .form-control::-moz-placeholder {
			color: #96b8d4;
			opacity: 1;
		}

		.form-contact .form-control:-ms-input-placeholder {
			color: #96b8d4;
		}

		.form-contact .form-control:placeholder-shown {
			color: #96b8d4;
		}

		.form-contact .form-control:hover::-webkit-input-placeholder,
		.form-contact .form-control:focus::-webkit-input-placeholder {
			color: #fff;
		}

		.form-contact .form-control:hover::-moz-placeholder,
		.form-contact .form-control:focus::-moz-placeholder {
			color: #fff;
			opacity: 1;
		}

		.form-contact .form-control:hover:-ms-input-placeholder,
		.form-contact .form-control:focus:-ms-input-placeholder {
			color: #fff;
		}

		.form-contact .form-control:hover:placeholder-shown,
		.form-contact .form-control:focus:placeholder-shown {
			color: #fff;
		}

	.form-contact textarea.form-control {
		max-height: 7rem;
		min-height: 7rem;
	}

	.form-contact .form-check-label {
		line-height: 1.1;
	}

	.form-contact .btn-default {
		width: 100%;
		background: none transparent;
		color: #fff;
		font-weight: bold;
		font-size: 1.1rem;
		text-transform: uppercase;
		border: 0;
		border-radius: 0;
		box-shadow: 0 0 0 transparent;
		transition: background-color 200ms;
	}

	.form-contact .btn-default:hover {
		background-color: #0875b2;
		transition: background-color 200ms;
	}

	.form-contact .loading {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		background-color: rgba(0,0,0,0.5);
		color: #fff;
		font-weight: bold;
		text-align: center;
	}

	.form-contact .loading img {
		margin-top: 20rem;
		margin-bottom: 1rem;
		border: 1px solid #1575AB;
	}

	.form-contact .loading .done {
		margin-top: 20rem;
	}

	.form-contact .loading .close {
		width: auto;
		opacity: 1;
		float: none;
		border: 1px solid #fff;
		background-color: transparent;
		transition: background-color 200ms;
	}

	.form-contact .loading .close:hover {
		background-color: #fff;
		color: rgba(0,0,0,0.7);
		transition: background-color 200ms;
	}

:root {
	--section-main-margin-top: 1rem;
}

section.main {
	position: relative;
	z-index: 2;
	width: calc( 100% - 40px );
	max-width: 1024px;
	max-height: calc( 100vh - var(--section-main-margin-top) - 1rem - 50px );
	margin-top: var(--section-main-margin-top);
	background-color: #3fb9ff;
}

.admin-bar section.main {
	max-height: calc( 100vh - var(--section-main-margin-top) - 1rem - 50px - 32px );
}

section.main .overflowed {
	overflow: auto;
	max-width: 1024px;
	max-height: calc( 100vh - var(--section-main-margin-top) - 1rem - 50px );
	padding: 1.5rem 3rem;
}

.admin-bar section.main .overflowed {
	max-height: calc( 100vh - var(--section-main-margin-top) - 1rem - 50px - 2px - 32px );
}

	section.main h1 {
		color: #fff;
		margin-bottom: 2rem;
		letter-spacing: 0.2rem;
	}

	section.main h2 small {
		color: #EEE;
	}
	
	section.main iframe {
		max-width: 100%;
	}

	section.main > hr:last-child {
		display: none;
	}

	section.main .close {
		position: absolute;
		top: -1px;
		right: -40px;
		width: 30px;
		height: 30px;
		background-color: #3fb9ff;
		color: #1575ab;
		opacity: 1;
		transition: color 200ms;
		text-shadow: 0 0 0 transparent;
	}

		section.main .close:hover {
			color: #ff9200;
			transition: color 200ms;
		}

	section.main img {
		max-width: 100%;
		height: auto;
	}

	section.main .alignleft {
		float: left;
	}

	section.main .alignright {
		float: right;
	}

	section.main .alignnone {
		float: none;
	}

	section.main iframe {
		max-width: 100%;
	}

article.index {
	padding-bottom: 2rem;
}

.access-map {
	display: block;
	width: calc( 100% + 6rem );
	max-width: none !important;
	height: 400px;
	margin: 2rem -3rem;
	border: 0;
}

footer.main {
	position: fixed;
	z-index: 3;
	display: flex;
	flex-direction: row;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0,0,0,0.5)
}
	footer.main a {
		font-weight: bold;
	}
	footer.main .login a:hover {
		color: #fff;
		text-decoration: underline;
	}

	.footer-menu {
		align-self: center;
		margin-left: auto;
		font-size: 0.8rem;
	}

		.footer-menu a:hover {
			color: #ff9200;
		}

.social-networks {
	display: flex;
	flex-direction: row;
	margin: 0 auto 0 0;
}

	.social-networks a {
		display: block;
		width: 50px;
		height: 50px;
		color: #fff;
		font-size: 1.7rem;
		text-align: center;
		transition: background-color 150ms;
	}

	.social-networks i {
		display: inline-block;
		vertical-align: middle;
	}

	.social-networks-fb:hover {
		background-color: #3B5998;
	}

	.social-networks-gp:hover {
		background-color: #DB4437;
	}

.carousel-back {
	z-index: 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.carousel-controls {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin: 0 1rem 0 auto;
}

	.carousel-controls > i {
		color: white;
	}

	.carousel-back .carousel-inner,
	.carousel-back .carousel-item {
		height: 100%;
	}

		.carousel-back .carousel-item img {
			height: 100%;
			object-fit: cover;
		}

	.carousel-back-indicators {
		margin: 0 0 0 0.5rem;
		padding: 0;
	}

		.carousel-back-indicators li {
			display: inline-block;
			padding: 0.2rem;
			margin: 0 0.1rem;
			color: white;
			cursor: pointer;
			transition: color 150ms, font-size 150ms, font-weight 150ms;
			vertical-align: middle;
		}

		.carousel-back-indicators li.active {
			font-size: 120%;
			font-weight: bold;
		}
		
		.carousel-back-indicators li:hover {
			color: #ff9200;
		}

	.carousel-back-control-prev,
	.carousel-back-control-next {
		transition: color 150ms;
	}

	.carousel-back-control-next {
		margin-left: 0.5rem;
	}
		
	.carousel-back-control-prev:hover,
	.carousel-back-control-next:hover {
		color: #ff9200;
	}


/* Medium devices (desktops, 992px and up) */
@media (max-width: 1199px) {

	header.main {
		width: 100%;
	}

	header.main .tabs {
		height: auto;
	}
}


/* Small devices (tablets, 769px and up) */
@media (max-width: 991px) {
	
	.navbar-primary-container {
		background-color: transparent;
	}

	.navbar-primary {
		background-color: transparent;
	}

	.navbar-toggler {
		background-color: #3fb9ff;
	}

	.navbar-primary .navbar-collapse {
		height: 0;
		transition: height 200ms;
		background-color: #3fb9ff;
	}
	
	.navbar-primary .navbar-collapse.collapsing {
		position: relative;
		height: 0;
		overflow: hidden;
		transition: height .35s ease;
	}

	.navbar-primary .navbar-collapse.show {
		height: auto;
	}
	
}


/* Extra-Small devices (phones, 768px and down) */
@media (max-width: 768px) {

	body {
		background-color: #3fb9ff;
	}

    header.main {
		position: fixed;
        top: 0;
        right: 0;
        left: 0;
		height: 40px;
		margin-top: 0;
		background-color: #0875b2;
	}
	
	h1,
	.h1-like {
		text-align: center;
	}

	.admin-bar header.main {
		top: 46px;
	}

	header.main .logo {
		height: auto;
	}

	header.main .logo::after {
		display: none;
	}

		header.main .logo img {
			max-width: 100%
		}

	.navbar-primary-container {
		padding: 0;
	}

		.navbar-primary {
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
		}

		.navbar-primary .navbar-collapse {
			box-shadow: 0 0.5rem 0.5rem rgba(0,0,0,0.5);
		}

	.navbar-toggler {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		background-color: transparent;
		color: #fff;
	}

		.navbar-toggler-icon {
			height: 1.1em;
			vertical-align: initial;
		}

	.open-contact, .close-contact {
		display: none;
	}

	section.main {
		width: 100vw;
		max-height: none;
		margin-top: calc(40px + 1.5rem);
		margin-right: -15px;
		margin-left: -15px;
	}

	.admin-bar section.main {
		max-height: none;
	}

		section.main .close {
			display: none;
		}

		section.main .overflowed {
			max-height: none;
			padding-top: 2rem;
		}

		.admin-bar section.main .overflowed {
			max-height: none;
		}
		
		article.index {
			padding-bottom: 3.5rem;
		}

	.wp-block-columns.has-3-columns {
		justify-content: space-around;
	}
	
		.wp-block-columns.has-3-columns .wp-block-column {
			flex-basis: auto;
			margin-left: 0;
		}

	.carousel-back {
		display: none;
	}

	.carousel-controls {
		display: none;
	}
}

@media (max-width: 576px) {

	h1,
	.h1,
	.h1-like {
		font-size: 2rem;
	}

	h2,
	.h2,
	.h2-like {
		font-size: 1.7rem;
	}

	h3,
	.h3,
	.h3-like {
		font-size: 1.5rem;
	}

	ul {
		padding-left: 1rem;
	}

	.wp-block-button {
		margin-bottom: 0;
	}

	header.main {
		position: relative;
		top: auto;
		margin-right: 0;
	}

	.admin-bar header.main {
		position: relative;
		top: auto;
	}

	.menu-xs-sticky {
		position: sticky;
		top: 0;
		z-index: 10;
		padding-right: 0;
		padding-left: 0;
	}

	.navbar-primary .navbar-brand {
		margin-left: 1rem;
        font-weight: bold;
		letter-spacing: 2px;
	}

		.navbar-primary .navbar-brand abbr[title] {
			text-decoration: none !important;
			cursor: inherit !important;
			border-bottom: none !important;
		}

	.navbar-primary .navbar-toggler:focus {
		outline: transparent;
	}

    section.main {
        margin-top: 0;
    }

		section.main .overflowed {
			padding: 1.5rem 1rem;
		}

	section.main article.front-page h1 {
		padding: 1rem 1rem 1rem 120px;
		background-image: url(/wp-content/uploads/2015/11/cropped-logo.png);
		background-position: left center;
		background-repeat: no-repeat;
		background-size: 100px auto;
		text-align: left;
	}

	.wp-block-media-text {
		display: block;
	}

		.wp-block-media-text img {
			display: block;
			width: auto;
			max-height: 30vh;
			margin: 1rem auto;
			object-fit: contain;
		}

		.wp-block-media-text .wp-block-media-text__content {
			padding: 0;
		}

	.access-map {
		width: 100vw;
		margin: 2rem -1rem;
	}

	.footer-menu {
		margin-right: 1rem;
	}
}
