/* globals */

/* *,
*::before,
*::after {
	background-color: rgba(0, 150, 0, 0.1);
} */


@font-face {
	font-family: 'Avenir Next LT Pro';
	font-display: auto;
	src: url('../fonts/avenir-next-lt-pro.ttf') format('truetype');
}

@font-face {
	font-family: 'Avenir Next LT Pro Bold';
	font-display: auto;
	src: url('../fonts/avenir-next-lt-pro-bold.ttf') format('truetype');
}

.avenir-bold {
	font-family: 'Avenir Next LT Pro Bold';
	font-weight: normal;
}

:root {
	--blanc: #fff;
	--noir: #000;
	--rouge: #c20e1a;
	--jaune: #f9f722;
	--bleu: #1f3765;
	--vert: #0a0;
	--orange: #F49E00;
	--font-family: 'Avenir Next LT Pro', sans-serif;
	--font-size: 16px;
}

@media (max-width: 767px) {
	:root {
		--font-size: 16px;
	}
}

@media (max-width: 480px) {
	:root {
		--font-size: 15px;
	}
}

.noir {
	color: var(--noir);
}

.jaune {
	color: var(--jaune);
}

.blanc {
	color: var(--blanc);
}

.bg-blanc {
	background-color: var(--blanc);
}

.rouge {
	color: var(--rouge);
}

.bg-rouge {
	background-color: var(--rouge);
}


@media (max-width: 767px) {
	.mobile-noir {
		color: var(--noir);
	}

	.mobile-jaune {
		color: var(--jaune);
	}

	.mobile-blanc {
		color: var(--blanc);
	}

	.mobile-rouge {
		color: var(--rouge);
	}
}

/* layout */
@media (min-width: 768px) {
	.page-column {
		display: flex;
		flex-direction: column;
		flex: 1 1 600px;
	}
}

.desktop-hidden {
	display: none !important;
}

@media (max-width: 767px) {
	.mobile-hidden {
		display: none !important;
	}

	.desktop-hidden {
		display: block !important;
	}
}

.container {
	max-width: 980px;
}

/* custom : à supprimer d'un site à l'autre */

@media (min-width: 1500px) {
	body {
		background-image: url(../images/carambar-brule.webp), url(../images/carambar-pompier.webp);
		background-repeat: no-repeat;
		background-position: calc(50% - 660px) 100px, calc(50% + 720px) 250px;
	}
}

@media (min-width: 769px) {
	#section-home {
		background-image: url(/custom/images/polaroid-pompier.png);
		background-repeat: no-repeat;
		background-position: 95% 50px;
		background-size: 50%;
	}

	#section-home .col-droite {
		padding-top: 68%;
	}
}

#form-inscription fieldset {
	border: 5px solid var(--jaune);
	padding: 1rem;
	border-radius: 20px;
	margin-bottom: 1rem;
}

#form-inscription fieldset legend {
	font-size: 1.2rem;
	width: max-content;
	padding: 0.2rem 2rem;
	margin: 0 auto;
	background: var(--jaune);
	color: var(--bleu);
	border-radius: 50px;
}

#section-footer li:not(:last-child) {
	border-right: 2px solid var(--rouge);
}

#form-inscription .quizz-question-group {
	gap: 0.5rem;
}

#form-inscription .quizz-numero {
	min-width: 28px;
	aspect-ratio: 1/1;
	border-radius: 15px;
	background: var(--jaune);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bleu);
	font-size: 1.3rem;
}

#form-inscription .quizz-question {
	background: var(--blanc);
	color: var(--bleu);
	line-height: 1.3rem;
	padding: 0.2rem .75rem;
	text-transform: uppercase;
	flex-grow: 1;
}

#section-resultat h2 {
	font-size: 2rem;
}

#section-resultat strong {
	font-weight: inherit;
	color: var(--jaune);
}

#section-resultat .animation {
	max-width: 80%;
	margin: 0 auto;
}

#section-resultat .animation .img-animation {
	margin-left: 30px;
	object-fit: contain;
	width: 100%;
	aspect-ratio: 841/439;
	display: block;
}

#section-resultat .animation.gagne .img-animation,
#section-resultat .animation.perdu .img-animation {
	margin-left: 0;
	filter: drop-shadow(20px 20px 20px rgba(10,10,10,0.8));
}

.screen-reader {
	text-indent: -9999px;
	height: 0;
}

.bouton {
	display: block;
	background: url(../images/bonbon.png) center center no-repeat;
	background-size: contain;
	color: var(--bleu);
	max-width: 327px;
	aspect-ratio: 327/74;
	width: 100%;
	border: none;
	font-size: 2em;
}

@media (max-width: 769px) {
	.bouton {
		font-size: 1.5em;
	}
}

a.bouton {
	text-decoration: none;
}

a.bouton:hover {
	color: var(--bleu);
}

.animation-pop {
	animation: pop 2s ease-in forwards;
	transform: scale(100%);
	opacity: 1;
}

@keyframes pop {
	0% {
		transform: scale(0);
		opacity: 0;
	}

	60% {
		transform: scale(105%);
		opacity: 1;
	}

	70% {
		transform: scale(95%);
	}

	80% {
		transform: scale(102%);
		opacity: 1;
	}

	90% {
		transform: scale(98%);
	}

	100% {
		transform: scale(100%);
	}
}

.animation-vibe {
	animation: vibe 0.8s cubic-bezier(.36, .07, .19, .77) both;
	transform: translate3d(0, 0, 0);
	animation-iteration-count: infinite;
}

@keyframes vibe {

	10%,
	90% {
		transform: translate3d(1px, -1px, 0);
	}

	20%,
	80% {
		transform: translate3d(0, 1px, 0);
	}

	30%,
	50%,
	70% {
		transform: translate3d(-1px, -1px, 0);
	}

	40%,
	60% {
		transform: translate3d(0, 2px, 0);
	}
}

.animation-wobble {
	animation: wobble 2s cubic-bezier(.36, .07, .19, .77) both;
	transform: rotate(0);
	animation-iteration-count: infinite;
}

@keyframes wobble {

	5%,
	15% {
		transform: rotate(-5deg);
	}

	10%,
	20% {
		transform: rotate(5deg);
	}

	25%,
	100% {
		transform: rotate(0);
	}
}

.animation-heartbeat {
	animation: heartbeat 2s cubic-bezier(.36, .07, .19, .77) both;
	transform: rotate(0);
	animation-iteration-count: infinite;
}

@keyframes heartbeat {
	5% {
		transform: scale(95%)
	}

	10% {
		transform: scale(105%)
	}

	15% {
		transform: scale(100%)
	}

	20% {
		transform: scale(110%)
	}

	25% {
		transform: scale(100%)
	}

	100% {
		transform: scale(100%)
	}
}


/* --- */

/* formulaire */
.form-control {
	border-radius: 0;
	height: calc(1.1em + .4rem + 2px);
	padding: .2rem .75rem;
}

select.form-control [multiple],
select.form-control [size] {
	height: calc(1.1em + .4rem + 2px);
}

input[type=radio],
input[type=checkbox] {
	width: 1rem;
	height: 1rem;
}

.quizz-reponse {
	margin-bottom: 0;
}

.form-check-label {
	cursor: pointer;
}


/* --- */


/* blocs */
.bloc-bleu {
	background: var(--bleu);
	color: var(--blanc);
	border-radius: 80px;
	padding: 20px 40px;
	margin-top: 1rem;
	margin-bottom: 1rem;
	box-shadow: 5px 6px 9px 0px var(--orange);
}

.bloc-message {
	margin: 5rem auto;
}

.bloc-page h1,
.bloc-page h2,
.bloc-page h3 {
	color: var(--jaune);
}

@media (max-width: 768px) {
	.bloc-bleu {
		padding: 20px;
		border-radius: 20px;
	}
}

/* footer */
.fixed-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 1px solid #dedede;
}

#cookieconsent .container {
	background: var(--blanc);
	border-radius: 50px 50px 0 0;
	padding: 0.5rem 1rem;
	box-shadow: 0 0 5px #666;
}

#cookieconsent,
#cookieconsent-nojs {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 90%;
	padding: 0;
	display: flex;
	flex-direction: row;
	position: fixed;
	justify-content: center;
	align-items: end;
	z-index: 80;
	bottom: 0;
	left: 0;
	right: 0;
	border: none;
	background: none;
	color: var(--noir);
}

@media (max-width: 1024px) {

	#cookieconsent,
	#cookieconsent-nojs {
		font-size: 80%;
	}
}

@media (max-width: 767px) {

	#cookieconsent,
	#cookieconsent-nojs {
		font-size: 70%;
	}
}

@media (max-width: 640px) {

	#cookieconsent,
	#cookieconsent-nojs {
		font-size: 60%;
	}
}

.cookieconsent-toogle {
	border: none;
	padding: 1rem 2rem;
	border-radius: 15px;
	background: var(--bleu);
	color: var(--blanc);
}

#footer-cookieconsent-toogle {
	padding: 0.3rem 1rem;
	border: none;
	border-bottom: 0;
	border-radius: 15px;
	transition: 0.2s linear;
	min-width: fit-content;
}

@media (max-width: 1024px) {
	#footer-cookieconsent-toogle {
		left: 5rem;
		right: 5rem;
	}
}

#cookieconsent .text {
	padding: 0.5rem;
}

#cookieconsent .buttons {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	padding: 0 1rem;
}

@media (max-width: 1024px) {
	#cookieconsent .buttons {
		gap: 0.4rem;
	}
}

#cookieconsent .buttons button {
	color: var(--blanc);
	border: none;
	border-radius: 20px;
	white-space: nowrap;
	padding: 0.6rem 1.5rem 0.5rem 1.5rem;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	#cookieconsent .buttons button {
		border-radius: 15px;
		padding: 0.3rem 1rem 0.3rem 1rem;
	}
}

#cookieconsent-accept {
	background: var(--vert);
}

#cookieconsent-deny {
	background: var(--rouge);
}

/* --- */

/* --- */
html,
body {
	font-family: var(--font-family);
	font-weight: 600;
	font-style: normal;
	font-size: var(--font-size);
	font-optical-sizing: auto;
	background-color: var(--jaune);
	color: var(--bleu);
	margin: 0;
	box-sizing: border-box;
	min-height: 100vh;
	/* overflow-x: hidden; */
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
}

html {
	scroll-behavior: smooth;
}

/* balises */
a {
	color: inherit;
	text-decoration: underline;
}

a:hover {
	color: inherit;
}

img {
	object-fit: cover;
}

img {
	object-fit: cover;
}

h1 {
	font-size: 2em;
	line-height: 1.2em;
	margin: 0.3em 0;
}

h2 {
	font-size: 1.4em;
	line-height: 1.4em;
	margin: 0.8em auto;
}

h3 {
	font-size: 1.2em;
	line-height: 1.2em;
	margin: 0.8em auto;
	font-weight: normal;
}

h4 {
	font-size: 1em;
	line-height: 1.2em;
	margin: 0.8em auto;
}

p {
	line-height: 1.2em;
}



/* --- */

/* menu */
.jmenu {
	line-height: 1.4em;
}

.jmenu li {
	align-content: center;
}

.jmenu a {
	color: inherit;
	padding: 0rem 1.2rem;
	font-size: 1rem;
	font-weight: inherit;
}

@media (max-width: 767px) {
	.nav-header.jmenu {
		margin: 1em auto;
		text-align: center;
	}

	.jmenu a {
		padding: 3px 10px;
		display: block;
		font-size: 14px;
	}

	.jmenu li {
		border-width: 1px;
	}

	input[type="checkbox"]:checked.jm-menu-btn~.jm-collapse {
		position: fixed;
		left: 0;
		right: 0;
		top: 4rem;
		background: #333;
		border: 5px solid #fff;
		z-index: 99;
	}

	label.jm-menu-btn {
		color: white;
		font-size: 2rem;
	}
}