
:root {
 /* --header-height: 85px;*/
  --header-height: 190px;
}


html, body {
	height: 100%;
	margin: 0;
	background-color: black;
}

body {
	font-size: 1.1rem;
	font-family: proxima-nova, sans-serif;
	font-weight: 400;
	font-style: normal;
}

body:after{
	content:"";
	position:fixed;
	top:0;
	height:100vh;
	left:0;
	right:0;
	z-index:-1;
	/*background: url('../img/bg-body-v2.jpg') center center white;*/
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

body#page-questionnaire:after{
	/*background: none;*/
}

.slice {
    margin-top: 108px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.fancybox-bg {
    background: #ffffff;
}

.fancybox-is-open .fancybox-bg {
	opacity: 1;
}

.fancybox-slide--image {
	padding: 0;
}


/*---------- COLORS ----------*/

section {
    background-color: transparent;
}

.footer-dark {
    background-color: black!important;;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	color: white;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.h1, h1 {
	font-size: 1.8rem;
}

.h2, h2 {
	font-size: 1.5rem;
}

#page-questionnaire h4 {
	margin-bottom:  20px;
	text-align: center;
}

#page-questionnaire h5 {
	font-size: 1.1em;
	text-align: center;
}

p {
	color: white;
	line-height: 1.3em;
}

p a {
	color: white;
	text-decoration: underline;
}

p a:hover {
	color: white;
}

p a.link-blue {
	color: #0867ff;
	text-decoration: underline;
	font-style: italic;
}

p a.link-blue:hover {
	color: #0867ff;
}

h1.bienvenue {
	font-size: 2.2rem;
}

ul li {
	color: white;
}

.text-sm {
	font-size: .9rem!important;
}

label a {
	color: white;
	text-decoration: underline;
}

label a:hover {
	color: white;
}

label {
	color: white;
}

.color-pink {
	color: #ff0050;
}

.color-blue {
	color: #00f2ea;
}

.btn-link {
	color: white;
}

.btn-link:hover {
	color: white;
}

.btn-group-lg>.btn, .btn-lg {
	font-size: 1.5rem;
}


.btn-primary {
	color: #fff;
	border-color: #ff0050;
	background: #ff0050;
	border-radius: 0.15rem;
	transition: all .3s ease;
	font-size: 1.3em;
	border-radius: 22px;
	padding: .5rem 2.2rem;
}

.btn-primary:hover:after {
	top: 0px;
	left: 0px;
	border: 1px solid transparent;
}

.btn-primary:hover {
	color: #ff0050;
	border-color: #ff0050;
	background: #fff;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
	color: #ff0050;
	border-color: #ff0050;
	background: #fff;
}


.btn-secondary {
	color: black;
	border-color: #00f2ea;
	background: #00f2ea;
	border-radius: 0.15rem;
	transition: all .3s ease;
	font-size: 1.3em;
	border-radius: 22px;
	padding: .5rem 2.2rem;
}

.btn-secondary:hover:after {
	top: 0px;
	left: 0px;
	border: 1px solid transparent;
}

.btn-secondary:hover {
	color: #00f2ea;
	border-color: #00f2ea;
	background: white;
}

.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
	color: #00f2ea;
	border-color: #00f2ea;
	background: white;
}

.btn-answer {
	font-size: 0.95em;
	line-height: 1.1em;
	font-weight: normal;
	position: relative;
	overflow: visible;
}


.swal2-popup .swal2-title {
	letter-spacing: normal;
}

.asterisque {
	font-size: 0.9em;
	font-weight: 300;
}


#titre-quiz {
	width: 250px;
}

.quiz-swiper{
	position: fixed;
	top: var(--header-height);
	left: 0; right: 0;
	height: calc(100dvh - var(--header-height));
	overflow: hidden;
	z-index: 1;
	/*padding-bottom:  var(--header-height);*/
}

.swiper-slide{
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
}

.slide-inner {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	padding: 16px;
	padding-bottom: var(--header-height);
	box-sizing: border-box;
}


.quiz-nav {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	
	display: flex;
	gap: 20px;
}

.quiz-nav button {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	
	background: #000;
	color: #fff;
	
	display: flex;
	align-items: center;
	justify-content: center;
	
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.2s, transform 0.2s;
}

.quiz-nav button:hover {
	opacity: 1;
	transform: scale(1.08);
}

.quiz-nav button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	transform: none;
}

.page-center {
	min-height: calc(100vh - var(--header-height));
	padding-top: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: center;
}



/*---------- HEADER/FOOTER ----------*/

.header {
	position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
	padding: 10px;
	text-align: center;
	background-color: black;
	box-sizing: border-box;
}

.navbar-brand {
	margin: 0;
}

#navbar-logo {
	width: 140px;
}


/*---------- FORM -----------*/

.container-question {
	position: relative;
	background: white;
	border-radius: 22px;
	padding: 20px;
}

.container-question::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -34px;
  width: 72px;
  height: 72px;
  background: #000;
  border-radius: 50%;
}

.container-question h1,
.container-question h3,
.container-question h5,
.container-question p {
	color: black;
}

.question-num {
	color: #ff0050;
	font-size: 0.85em;
	margin-top: -10px;
}

.form-control {
	color: black;
	border-bottom: 2px solid black;
	border-right: none;
	border-top: none;
	border-left: none;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: .25rem .25rem 0 0;
}

.form-control:focus {
	color: black;
    border-color: black;
}

.form-control-lg {
	border-radius: .375rem .375rem 0 0;
}

.custom-control-label {
	font-size: 1.1em;
}

.custom-control-label:before {
	background: black;
	margin-top: -5px;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label:after {
	margin-top: -5px;
}

.custom-control-input:checked~.custom-control-label:before {
	border-color: black;
	background-color: black;
}

.custom-control-input:not(:disabled):active~.custom-control-label:before {
	border-color: black;
	background-color: black;
}

.swal2-popup .swal2-styled {
	border-radius: 50rem!important;
}

.swal2-popup .swal2-styled:focus {
	box-shadow: none;
}

.form-control::-webkit-input-placeholder {
  color: #727272;
}

.form-control:-ms-input-placeholder {
  color: #727272;
}

.form-control::placeholder {
  color: #727272;
}

.question {
	margin-bottom: 35px;
	line-height: 1.1em;
}

.custom-radio {
	margin-bottom: 20px;
	text-align: center;
}

@media (max-width:576px){
	.custom-radio {
		text-align: left;
	}
}

.custom-control {
	padding-left: 0;
}

.custom-radio .custom-control-label {
	font-size: 1.2em;
	line-height: 1.3em;
	padding-left: 0px;
	transition: 0.1s ease-in-out all;
	color: #2dccd3;
}

.custom-radio .custom-control-input:checked~.custom-control-label {
	color : #2dccd3;
	/*font-size: 1.3em;*/
	-webkit-transform: scale(1.1)!important;
    -ms-transform: scale(1.1)!important;
    transform: scale(1.1)!important;
}

.custom-control-label:before, .custom-control-label:after {
	display: none;
}

@keyframes answer-pop {
  0% {
	transform: scale(1);
	box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  40% {
	transform: scale(1.05);
	box-shadow: 0 0 12px rgba(0,0,0,0.25);
  }
  100% {
	transform: scale(1);
	box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

@keyframes burst-out {
  0% {
	opacity: 1;
	transform: translate(-50%, -50%) scale(0);
  }
  60% {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
  }
  100% {
	opacity: 0;
	transform: translate(-50%, -50%) scale(1.4);
  }
}



.btn-answer.is-correct {
	color: #4CD761 !important;
	border-color: #4CD761 !important;
	background: white !important;
	font-weight: 700;
}

.btn-answer.is-correct.is-select {
	color: white !important;
	border-color: #4CD761 !important;
	background: #4CD761 !important;
	font-weight: 700;
	animation: answer-pop 0.45s ease-out;
}

.btn-answer.is-wrong {
	color: #FE2C56 !important;
	border-color: #FE2C56 !important;
	background: white !important;
	font-weight: 700;
}

.btn-answer.is-wrong.is-select {
	color: white !important;
	border-color: #FE2C56 !important;
	background: #FE2C56 !important;
	font-weight: 700;
	animation: shake 0.35s ease-in-out;
}

.container-question.is-locked .btn-answer:not(.is-correct):not(.is-wrong) {
	background-color: #ededed !important;
	border-color: #ededed !important;
	color: rgb(150, 150, 150) !important;
}

.btn-answer.is-correct.is-select::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4CD761;
	pointer-events: none;
	
	transform: translate(-50%, -50%) scale(0);
	animation: burst-out 0.6s ease-out forwards;
	
	box-shadow:
		0 -36px #4CD761,
		26px -26px #4CD761,
		36px 0 #4CD761,
		26px 26px #4CD761,
		0 36px #4CD761,
		-26px 26px #4CD761,
		-36px 0 #4CD761,
		-26px -26px #4CD761;
}

.btn-margin-over {
	margin-top: -26px;
}

/*
.clicked .custom-radio.right-answer .custom-control-label,
.clicked .custom-radio.right-answer .custom-control-input:checked~.custom-control-label {
	color: #1EA598 !important;
}

.clicked .custom-radio.wrong-answer .custom-control-label,
.clicked .custom-radio.wrong-answer .custom-control-input:checked~.custom-control-label {
	color: #FC4844 !important;
}
*/

/*
.custom-radio .custom-control-label:before {
	height: 30px;
	width: 30px;
	background: url(../img/picto-reponse-off.png?v=2) no-repeat;
	-webkit-background-size: 30px 30px;
	-moz-background-size:  30px 30px;
	-o-background-size:  30px 30px;
	background-size:  30px 30px;
	background-color: transparent;
	border-color: transparent;
	margin-top: -9px;
}
 
.custom-radio .custom-control-input:checked~.custom-control-label:before {
	height: 30px;
	width: 30px;
	background: url(../img/picto-reponse-on.png?v=2) no-repeat;
	-webkit-background-size: 30px 30px;
	-moz-background-size:  30px 30px;
	-o-background-size:  30px 30px;
	background-size:  30px 30px;
	background-color: transparent;
	border-color: transparent;
	margin-top: -9px;
}
*/

.custom-radio .custom-control-label:after {
	background: none;
}

.custom-radio .custom-control-input:checked~.custom-control-label:after {
	background: none;
}

.custom-radio .custom-control-input:focus~.custom-control-label:before{
	-webkit-box-shadow: none;
	box-shadow: none;
}

.custom-control-input:focus:not(:checked)~.custom-control-label:before{
	border-color: transparent;
}

.custom-control-input:not(:disabled):active~.custom-control-label:before{
	background-color: transparent;
	border-color: transparent;
	-webkit-box-shadow:none;
	box-shadow:none
}

.custom-control-input:disabled~.custom-control-label:before{
	background-color: transparent;
}


.score {
 	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 18px;
	line-height: 1;
}

.score_big {
	font-size: 150px;
	font-weight: 700;
	color: #FE2C55;
	margin-bottom: 30px;
	margin-left: 10px;
}

.score_small {
	font-size: 64px;
	font-weight: 700;
	color: #25F4EE;
	margin-bottom: 14px;
	margin-left: -10px;
}

.score_slash {
	width: 8px;
	height: 130px;
	background: #111;
	transform: rotate(33deg);
	transform-origin: center;
	margin-bottom: 10px;
}



/*---------- PRIVACY POLICY ----------*/

.privacy .custom-control-label {
	font-size: 1em;
	line-height: 1.1em;
}

#privacy-policy {
	position: relative;
	text-align: justify;
	max-width: 640px;
}

#privacy-policy p {
	margin-top: 0px;
	margin-bottom: 10px;
	font-size: 0.95em;
	line-height: 16px;
	color: black;
}

#privacy-policy-header {
	background: black;
	padding: 12px 5px 1px 5px;
	text-align: center;
	margin-bottom: 20px;
}

#privacy-policy-header a,
#privacy-policy-header a:hover {
	color: #fff !important;
}

#privacy-policy h1 {
	font-size: 1em;
	color: black;
}

#privacy-policy h2 {
	font-size: 1em;
	color: black;

}

#privacy-policy a,
#privacy-policy a:hover {
	color: black;
}


@media (orientation: portrait) and (min-width: 1000px){
	
	#navbar-logo {
		width: 400px;
	}
	
	.slide-inner {
		max-width: 800px;
	}
	
	body {
		font-size: 2.1rem;
	}
	
	.h1, h1 {
		font-size: 2.8rem;
	}
	
	.h2, h2 {
		font-size: 2.5rem;
	}
	
	.h3, h3 {
		font-size: 2.5rem;
	}
	
	#titre-quiz {
		width: 500px;
	}
	
	.btn-primary, .btn-secondary {
		border-radius: 44px;
		padding: 1rem 4.4rem;
	}
	
	.container-question {
		border-radius: 44px;
		padding: 50px;
	}
	
	.container-question::after {
		top: -68px;
		right: -68px;
		width: 144px;
		height: 144px;
		border-radius: 50%;
	}
	
	.question {
		margin-top: 60px;
		margin-bottom: 60px;
	}
	
	h1.bienvenue {
		font-size: 4.4rem;
	}
	
	.score_big {
		font-size: 300px;
		font-weight: 700;
		color: #FE2C55;
		margin-bottom: 30px;
		margin-left: 10px;
	}
	
	.score_small {
		font-size: 128px;
	}
	
	.score_slash {
		width: 16px;
		height: 260px;
	}
	
	.btn-margin-over {
		margin-top: -50px;
	}
}
