/*
Theme Name: X &ndash; Défi Max
Version: 1.0.0
Template: x
*/

body {
	line-height: 1.5;
}

p {
    margin: 0 0 1em;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

.accent-color {
	color: #D1103B !important;
}

.x-content-band.marginless-columns.vaBottom  .x-container .x-column {
	vertical-align: bottom !important;
}

.paddingExt {
	padding: 0 2%;
}

.small-margin {
	margin-right: 2%;
}
.x-column.small-margin.x-1-4 {
    width: 23.5%;
}
.x-column.small-margin.x-1-3 {
    width: 32%;
}
.x-column.small-margin.x-1-2 {
    width: 49%;
}
.x-column.small-margin.last, .x-column.small-margin:last-of-type {
    margin-right: 0;
}

.x-btn {
	position: relative;
	text-transform: uppercase;
	text-shadow: none !important;
	border: none !important;
	z-index: 1;
}
.x-btn:before {
	content: '';
	display: block;
	width: 0;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: #5b3b2a;
	transition: width 0.3s cubic-bezier(0.860, 0.000, 0.070, 1.000);
	z-index: -1;
	pointer-events: none;
}
.x-btn.x-btn-regular {
	padding: 0.813em 1.125em 0.813em;
}
.x-btn:hover {
	border: none !important;
}
.x-btn:hover:before {
	width: 100%;
}

.x-brand {
    position: relative;
    width: 284px;
    height: 80px;
}
.x-brand img {
	display: block;
	margin-top: 10px;
}

/*Menu*/
.x-navbar .x-nav > li > a {
	-webkit-font-smoothing: antialiased;
}
.x-navbar .desktop .x-nav > li > a:hover > span, .x-navbar .desktop .x-nav > li.x-active > a > span, .x-navbar .desktop .x-nav > li.current-menu-item > a > span {
	box-shadow: none !important;
}
.x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > li.x-active > a, .x-navbar .desktop .x-nav > li.current-menu-item > a {
	background-color: #5b3b2a;
}
.x-navbar .desktop .x-nav > li.neverActive.current-menu-item > a {
	background-color: transparent;
}
.x-navbar .desktop .x-nav > li.neverActive > a:hover {
	background-color: #5b3b2a;
}
.x-navbar-static-active .masthead-inline .desktop .x-nav>li:last-child>a, .x-navbar-fixed-top-active .masthead-inline .desktop .x-nav>li:last-child>a {
	padding-right: 20px;
}

.x-navbar .mobile .x-nav {
    margin: 100px 0 25px;
}
.x-btn-navbar [data-x-icon] {
	transition: all 0.15s linear;
}
.x-btn-navbar:not(.collapsed) [data-x-icon] {
	transform: rotate(90deg);
}
.x-btn-navbar:not(.collapsed) [data-x-icon]:before {
	content: '\f00d';
}
.x-navbar .mobile .x-nav li.current-menu-item:not(.neverActive) > a {
	color: #5b3b2a !important;
	background-color: #FFF;
	border-color: #FFF;
}

.img-vedette {
	display: block;
	width: 100%;
	padding: 85px;
}

.entete-photovedette {
	text-align: center;
}

.img-header {
	padding-bottom: 30px;
	width: 75%;
}

.conteneur-img-fond {
	background: url(img/background-2.png) no-repeat center;
	height: 16em;
	background-size: cover;
}

.conteneur-invitation-partage {
	width: 65%;
	margin: 0 auto;
	text-align: center;
	margin-top: -13%;
	background: url(img/max.png) no-repeat;
	background-size: 43%;
	background-position: 93% 90%;
	background-color: #fff;
	box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.19);
	transition: margin-top 0.5s;
}

.logo-fb-invitation-partage {
	width: 55px;
	margin-bottom: 15px;
	margin-top: 40px;
}

.texte-invitation-partage {
	color: #D1103B;
	font-family: 'Rubik', sans-serif;
	font-weight: bold;
	font-size: 36px;
	line-height: 37px;
}

.ballon-defimax {
	padding: 15px;
	margin: 0;
}

h2.titre-section-defis {
	color: #5b3b2a;
	font-size: 26px;
	padding-bottom: 20px;
	text-align: center;
}

/*Pour la carte contenant les deux colones au milieu*/
.smallMargin > .wpb_row > .x-column {
	margin-right: 2%;
}
.smallMargin > .wpb_row > .x-1-4 {
	width: 23.5%;
}

.smallMargin > .wpb_row > .x-1-3 {
	width: 32%;
}
.smallMargin > .wpb_row > .x-1-2 {
	width: 49%;
}
.smallMargin > .wpb_row > .last, .smallMargin > .wpb_row > .x-column:last-of-type {
	margin-right: 0;
	padding-right: 15px;
}

/*Cadre vidéo*/
.cadre {
	position: relative;
	margin-bottom: 0;
	z-index: 1;
}

.cadre:before {
	content: '';
	display: block;
	padding-top: 15%;
	background: url(img/photovedette.png) no-repeat center bottom;
	background-size: 100%;
}

.x-video.cadre .x-video-inner {
	background-color: #D1103B ;
	border: 15px solid #D1103B ;
	border-top: 0;
	border-bottom: 0;
}

.x-video .x-video-inner img {
	height: auto;
}

.videoTitle {
	position: relative;
	font-family: 'Rubik', sans-serif;
	font-size: 24px;
	font-weight: 400;
	color: #FFF;
	margin: 0;
	padding: 5px 15px 0;
	background-color: #D1103B;
	z-index: 1;
	-webkit-font-smoothing: antialiased;
}
.videoTitle:after {
	content: '';
	display: block;
	position: absolute;
	top: 98%;
	left: 0;
	width: 100%;
	padding-top: 11%;
	background: url(img/video_bas-3.png) no-repeat center bottom;
	background-size: 100% 100%;
	z-index: -1;
}

.x-content-band.bg-image.description-band {
	background-size: inherit;
	background-position: 2% center;
}

.tablette-band {
	position: relative;
	overflow: hidden;
	margin-bottom: 20px !important;
	z-index: 1;
}
.tablette-band:before, .tablette-band:after {
	content: '';
	position: absolute;
	width: 101%;
	height: 304px;
	background: white;
	z-index: 0;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	outline: 1px solid transparent;
}
.tablette-band:before {
	top: 0;
	-webkit-transform: skewY(9deg);
	transform: skewY(9deg);
	-webkit-transform-origin: right bottom;
	transform-origin: right bottom;
}
.tablette-band:after {
	bottom: -304px;
	-webkit-transform: skewY(8deg);
	transform: skewY(8deg);
	-webkit-transform-origin: right bottom;
	transform-origin: right bottom;
}

.tablette-container-desktop {
	position: relative;
}

.tablette-img {
	position: absolute;
	max-width: 100%;
	z-index: 9;
}

.step {
	position: relative;
	background-color: #FFF;
	border: 4px solid #5b3b2a;
	padding: 15px 25px 15px 48px;
	margin-bottom: 25px;
}
.step:after {
	content: '';
	position: absolute;
	top: 6px;
	left: -32px;
	display: block;
	width: 64px;
	height: 64px;
	background-color: #FFF;
	border: 4px solid #5b3b2a;
	border-radius: 50%;
	text-align: center;
	color: #5b3b2a;
	font-weight: 700;
	font-size: 30px;
	line-height: 56px;
}
.step.step-1:after { content: '1'; }
.step.step-2:after { content: '2'; }
.step.step-3:after { content: '3'; }

.step h2 {
	margin: 0;
	text-transform: none;
}
.step .x-btn {
	margin-top: 10px;
}

.partage {
	margin-top: -10px;
}

.titre-photos-defis {
	margin-top: 4px;
}

/*VIDEOS*/
.defi {
	margin-bottom: 30px;
}
.defi .x-video {
	margin-bottom: 5px;
}

.defi .infos {
	margin-top: 10px;
}

.defi .infos .title, .defi .infos .partage {
	display: inline-block;
	vertical-align: top;
}
.defi .infos .title {
	color: #5b3b2a;
	font-size: 18px;
	margin-bottom: 0;
	width: calc(100% - 115px);
}
.defi .infos .partage {
	width: 110px;
	text-align: right;
	text-transform: uppercase;
	color: #b3b3b3;
	font-size: 14px;
	font-weight: 700;
	line-height: 45px;
}
.defi .infos .partage i {
	font-size: 30px;
	padding-left: 15px;
}
.defi .infos .partage:hover {
	color: #D1103B;
	cursor: pointer;
}
.defi .infos .partage:focus {
	outline: 0;
}

.no-defi {
	text-align: center;
	margin-bottom: 0;
}


.single-defi .x-main.full {
	margin: 0 auto;
	max-width: 853px;
}
.single-defi .defi .intro {
	color: #5b3b2a;
	font-weight: 400;
	margin: 0 0 15px;
}
.single-defi .defi .infos .title {
	font-size: 24px;
}
.single-defi .defi .x-video {
	margin-bottom: 10px;
}

.single-defi .participer {
	padding-top: 60px;
}

.end-message {
	text-align: center;
	z-index: 1;
}

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

.message-nombre-posts-atteint {
	opacity: 0;
	margin-bottom: 0;
}
.message-nombre-posts-atteint {
	color: #5b3b2a;
	font-size: 20px;
	height: 0;
}
.js-voir-plus {
	display: block;
	position: relative;
	margin-right: 38px;
	margin-left: 42px;
}
.js-voir-plus:after {
	content: '';
	display: block;
	width: 32px;
	height: 32px;
	position: absolute;
	top: 7px;
	left: -42px;
	background: url(img/ajax-loader.gif) no-repeat center center;
	background-size: contain;
	opacity: 0;
}
.defis-tous-affiches .js-voir-plus {
	opacity: 0;
}

.js-voir-plus.loader-affiche:after, .defis-tous-affiches .message-nombre-posts-atteint {
	opacity: 1;
}
.defis-tous-affiches .message-nombre-posts-atteint {
	height: inherit;
}
/*INSCRIPTION*/
.ap-pro-front-form-wrapper > .ap-pro-front-form-title {
	display: none;
}
.ap-pro-front-form-title, .merci-titre {
	margin-top: 0;
	color: #5b3b2a !important;
	font-size: 180%;
}
.label-wrap {
	color: #5b3b2a;
	font-size: 18px;
}
.ap-pro-form-field input[type="text"] {
	border-radius: 0;
	box-shadow: none;
	border: 1px solid #5b3b2a;
	height: 50px;
	font-size: 18px;
}
.ap-pro-form-field input[type="text"]:focus {
	border: 1px solid #D1103B;
}
.ap-agreement-text {
	color: #5b3b2a;
}
.ap-agreement-text a {
	color: #D1103B;
}
.ap-agreement-text a:hover, .ap-agreement-text a:focus {
	color: #5b3b2a;
}
.ap-pro-form-field-wrapper input[type="submit"] {
	border-radius: 0;
	border: none;
	box-shadow: none;
	text-shadow: none;
	background: #D1103B;
	text-transform: uppercase;
	padding: 0.813em 1.125em 0.813em;
	font-size: 16px;
	height: inherit;
	line-height: inherit;
}
.ap-pro-form-field-wrapper input[type="submit"]:hover {
	background: #5b3b2a;
}
.ap-form-error, .ap-form-error-message {
	color: #D1103B;
}


.x-colophon.top {
	position: relative;
	overflow: hidden;
	background: url(img/bg-footer.jpg) no-repeat center center;
	background-size: cover;
	z-index: 1;

	height: 676px;
	padding: 0;
}
.x-colophon.top:before, .x-colophon.top:after {
	content: '';
	position: absolute;
	width: 101%;
	height: 304px;
	z-index: 0;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	outline: 1px solid transparent;
}
.x-colophon.top:before {
	top: 0px;
	background: #FFF;
	-webkit-transform: skewY(9deg);
	transform: skewY(9deg);
	-webkit-transform-origin: right bottom;
	transform-origin: right bottom;
}
.x-colophon.top:after {
	bottom: -304px;
	background: #D1103B;
	-webkit-transform: skewY(8deg);
	transform: skewY(8deg);
	-webkit-transform-origin: right bottom;
	transform-origin: right bottom;
}
.logo-choco-footer, .logo-barre-tendre {
	display: block;
	margin: 0 auto;
}
.logo-choco-footer {
	display: block;
	margin: 0 auto;
	padding-top: 250px;
}
.logo-barre-tendre {
	position: absolute;
	left: 50%;
	-ms-transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	margin-top: 40px;
	max-width: 100%;
	z-index: 9;
}

.x-colophon.bottom {
	-webkit-font-smoothing: antialiased;
}
.x-colophon.bottom a:hover, .x-colophon.bottom a:focus {
	color: #5b3b2a;
}
.x-colophon.bottom a:hover img, .x-colophon.bottom a:focus img {
	opacity: 0.9;
}
.credit-column {
	text-align: left;
	font-size: 12px;
}

.partenaire-column {
	font-size: 18px;
}
.partenaire-column p {
	margin-bottom: 0.4em;
	margin-right: 15px;
}

.social-column {
	text-align: right;
}
.social-column p {
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
}
.x-colophon.bottom .x-social-global a {
	background-color: transparent;
	border: 4px solid #FFF;
	width: 48px;
	height: 48px;
	line-height: 41px;
	font-size: 23px;
}
.x-colophon.bottom .x-social-global a:hover, .x-colophon.bottom .x-social-global a:focus {
	background-color: transparent;
	color: #5b3b2a;
	border: 4px solid #5b3b2a;
}
.x-colophon.bottom .x-social-global i:before {
	line-height: inherit;
}

@media (max-width: 1500px) {
	.conteneur-img-fond {
		height: 14em;
	}
}

@media (max-width: 1333px) {
	.texte-invitation-partage {
		font-size: 30px;

	}

	.logo-fb-invitation-partage {
		margin-top: 20px;
	}

	.conteneur-img-fond {
		height: 12em;
	}

	.conteneur-invitation-partage {
		margin-top: -13%;
	}
}

@media (max-width: 1166px) {
	.texte-invitation-partage {
		font-size: 25px;
		line-height: 30px;
	}

	.conteneur-invitation-partage {
		margin-top: -14%;
	}
}

@media (max-width: 979px) and (min-width: 768px) {
	.defi .infos .title {
		width: calc(100% - 50px);
	}
	.defi .infos .partage {
		width: 45px;
	}
	.defi .infos .partage span {
		display: none;
	}
}
@media (max-width: 440px) {
	.defi .infos .title {
		width: calc(100% - 50px);
	}
	.defi .infos .partage {
		width: 45px;
	}
	.defi .infos .partage span {
		display: none;
	}
}

@media (max-width: 979px) {

	.tablette-band:before, .tablette-band:after {
		height: 175px;
	}
	.tablette-band:after {
		bottom: -175px;
	}
	.x-colophon.top {
		/*margin-top: -5%;*/
		z-index: 0;
	}

	.texte-invitation-partage {
		font-size: 20px;
		line-height: 25px;
	}

	.conteneur-img-fond {
		height: 10em;
	}

	.img-vedette {
		padding: 70px;
	}
	/* Masquer le hamburger menu car il n'y a plus d'autres pages */
	.x-nav-wrap.mobile.collapse {
		 display: block;
	 }
	a.x-btn-navbar {
		display: none !important;
	}
}

@media (max-width: 890px) {
	.texte-invitation-partage {
		font-size: 18px;
		line-height: 21px;
	}
}

@media (max-width: 835px) {
	.texte-invitation-partage {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.x-1-3.small-margin.defi {
		float: none;
		width: 100%;
		margin-right: 0;
	}
	.more-video {
		margin-top: 40px;
	}
	.texte-invitation-partage {
		font-size: 16px;
	}

	.conteneur-img-fond {
		 height: 8em;
	}

	.conteneur-invitation-partage {
		margin-top: -16%;
	}
}

@media (max-width: 767px) {
	.x-column.small-margin.x-sm, .smallMargin > .wpb_row > .x-column {
	    float: none;
	    width: 100%;
	    margin-right: 0;
	}
	.img-vedette {
		margin: 0 auto;
		width: 85%;
	}
	.cadre {
		margin-top: -10%;
	}

	.texte-invitation-partage {
		padding: 0 45px 20px 45px;
	}

	.logo-fb-invitation-partage {
		margin-top: 20px;
	}

	.conteneur-invitation-partage {
		background-position: 50% 97%;
	}

	.description-band .x-column:first-of-type {
		margin-bottom: 30px;
	}

	.tablette-container-desktop > .h-custom-headline {
		margin-top: 10% !important;
	}
	.tablette-img {
		position: static;
		margin: 0 auto 15px;
		display: block;
		width: 70%;
	}
	.step h2 {
		font-size: 120%;
	}

	.single-defi .defi .infos .title {
		font-size: 20px;
	}

	.x-colophon.top:before {
		height: 150px;
	}
	.logo-choco-footer {
		padding-top: 175px;
	}
	.logo-barre-tendre {
		width: 60%;
		margin-top: 50px;
	}
	.x-colophon.bottom {
		padding: 30px 0;
	}
	.credit-column, .social-column {
		text-align: center;
	}
	.credit-column, .partenaire-column {
		margin-bottom: 30px;
	}
	.x-colophon.bottom .x-social-global {
		margin-top: 0;
	}

	.img-vedette {
		padding-top: 10px;
	}
}

@media (max-width: 600px) {
	.conteneur-img-fond {
		height: 6em;
	}

	.conteneur-invitation-partage {
		margin-top: -14%;
	}
}

@media (max-width: 500px) {
	.conteneur-invitation-partage {
		margin-top: -20%;
	}
}

@media (max-width: 460px) {
	.x-brand {
	    width: 117px;
	}
	.x-navbar .mobile .x-nav {
	    margin: 15px 0 25px;
	}
	#x-content-band-1 {
		padding-top: 20px !important;
	}
	.single-defi #x-content-band-1, .inscription #x-content-band-1, .page-template-template-tempo #x-content-band-1 {
		padding-bottom: 20px !important;
	}
	.tablette-container-desktop > .h3 {
		font-size: 180%;
	}
	.step h2 {
		font-size: 105%;
	}

	.single-defi .x-main.full {
		padding-top: 0;
	}

	.conteneur-invitation-partage {
		margin-top: -25%;
	}
}

@media (max-width: 360px) {
	h5, .h5 {
	    font-size: 120%;
	}

	.conteneur-invitation-partage {
		margin-top: -30%;
	}
}