/* globals */

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

:root {
	--blanc: #f7f7f7;
	--noir: #56413c;
	--rouge: #f74448;
	--jaune: #fece52;
	--bleu: blue;
	--vert: green;
	--font-family: 'Cabin', 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;
	}
}

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

.padding-footer {
	padding-bottom: 3rem;
}

@media (max-width: 1200px) {
	.padding-footer {
		padding-bottom: 11rem;
	}
}

.boite-message h2 {
	font-size: 2em;
	line-height: 1em;
}

.boite-message p {
	font-size: 1.4em;
}

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

.bouton {
	display: block;
	max-width: fit-content;
	background: var(--jaune);
	padding: 10px 15px;
	border: none;
	border-radius: 15px;
	font-weight: 600;
}

.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%)
	}
}

/* --- */

/* intro */
/* merci */

body.home #section-intro,
body.merci #section-intro {
	background: url(../images/fond.webp) no-repeat;
	background-size: cover;
	background-position: top right;
	text-align: center;
}

body.home #section-intro .img-banniere,
body.merci #section-intro .img-banniere {
	margin-bottom: -10%;
}

body.home #section-intro .img-gains,
body.merci #section-intro .img-gains {
	padding-bottom: 3rem;
}

#section-merci { min-height: 100vh; }

/* header */

/* popup */

#section-popup {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(10, 10, 10, 0.3);
	cursor: pointer;
}

#section-popup.closed {
	display: none;
}

/* --- */

/* 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);
}

.form-check-input {
	margin-left: -1.75rem;
}

.form-check {
	padding-left: 1.75rem;
}

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

@media (max-width: 767px) {
	input[type=file] {
		font-size: 80%;
	}
}

/* --- */

/* page texte */
.page-content {
	word-wrap: break-word;
	background: #fff;
	border-radius: 0 0 20px 20px;
}


/* footer */
#section-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;
	max-width: 1530px;
	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: 10px;
	background: var(--rouge);
	color: var(--blanc);
}

#footer-cookieconsent-toogle {
	/* position: fixed;
	z-index: 90;
	bottom: 0;
	right: 1rem; */
	padding: 0.3rem 1rem;
	border: 1px solid #fff;
	border-bottom: 0;
	border-radius: 10px;
	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: #95c23d;
}

#cookieconsent-deny {
	background: #ec6726;
}

/* --- */

/* --- */
html,
body {
	font-family: var(--font-family);
	font-weight: 400;
	font-style: normal;
	font-size: var(--font-size);
	font-optical-sizing: auto;
	background-color: var(--blanc);
	margin: 0;
	box-sizing: border-box;
	/* 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 {
	line-height: 1.6em;
	font-size: 1.6em;
	margin: 1em 0;
}

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

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

h4 {
	line-height: 1.2em;
	font-size: 1em;
	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: normal;
}

.jmenu li:not(:last-child) {
	border-right: 2px solid var(--noir);
}

@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;
	}
}