/* globals */
:root {
	--blanc: #fff;
	--noir: #000;
	--rouge: #ba1527;
	--marron: #bd7b25;
	--bleu: #009fe3;
	--vert: #9ebe49;
	--font-family: 'Roboto', sans-serif;
	--font-size: 17px;
}

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

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

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


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

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

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


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

.bouton {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.3rem;
	color: var(--blanc);
	text-decoration: none;
	background: url('../images/bg-bouton.png') no-repeat center top;
	background-size: contain;
	width: 331px;
	max-width: 32%;
	aspect-ratio: 331/153;
	border: none;
}

.bouton:hover {
	color: var(--blanc);
	text-decoration: none;
}

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

body .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);
	}
}

body .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);
	}
}

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

/* header */

/* 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: 1.3rem;
	height: 1.3rem;
}

/* sections */

#section-intro {
	background: url('../images/bg-intro.jpg') no-repeat center top;
}
#section-intro .container {
	max-width: 1920px;
	min-height: 1250px;
}

#section-intro .bouton {
	position: absolute;
	bottom: 15%;
	left: 50%;
	margin-left: -118px;
}

@media (max-width: 1024px) {
	#section-intro {
		background: url('../images/mobile-bg-intro.jpg') no-repeat center top;
		background-size: contain;
	}
	#section-intro .container {
		max-width: none;
		min-height: auto;
		padding-top: 120% !important;
	}
	#section-intro .bouton {
		margin-left: -16%;
		font-size: 4vw;
	}
}


#section-fin {
	background: url('../images/bg-fin.webp') no-repeat center top;
}
#section-fin .container {
	max-width: 1920px;
	min-height: 1080px;
}

@media (max-width: 1024px) {
	#section-fin {
		background: url('../images/bg-fin-mobile.webp') no-repeat center top;
		background-size: contain;
	}
	#section-fin .container {
		max-width: none;
		min-height: auto;
		padding-top: 160% !important;
	}
}


#section-dotations {
	background: url('../images/bg-dotations.jpg') no-repeat center top;
}

#section-dotations .container {
	max-width: 1920px;
	min-height: 969px;
}

#section-dotations .bouton {
	position: absolute;
	bottom: 8%;
	left: 50%;
	margin-left: -118px;
}

@media (max-width: 1024px) {
	#section-dotations {
		background: url('../images/mobile-bg-dotations.jpg') no-repeat center top;
		background-size: contain;
	}
	#section-dotations .container {
		max-width: none;
		min-height: auto;
		padding-top: 94.6% !important;
	}
	#section-dotations .bouton {
		margin-left: -16%;
		font-size: 4vw;
	}
}


#section-inscription .container {
	border-radius: 60px;
	padding: 30px;
	background-color: var(--rouge);
	max-width: 1080px;
}

#section-inscription .cadre {
	padding: 20px;
	border-radius: 30px;
	background-color: var(--marron);
}

#section-inscription .libelle-code {
	font-size: 2em; line-height: 1.1em; font-weight: 600;
}

#section-inscription .input-code {
	font-size: 4em; padding: 10px;
}

@media (max-width: 1024px) {
	#section-inscription .libelle-code {
		font-size: 1.6em;
	}
	#section-inscription .input-code {
		font-size: 3.5em;
	}
	#section-inscription .bouton {
		font-size: 4vw;
	}
}


#section-resultat {
	background: url('../images/bg-resultat.jpg') no-repeat center top;
}

#section-resultat.gagne {
	background: url('../images/bg-resultat-gagne.jpg') no-repeat center top;
}

#section-resultat .container {
	max-width: 1920px;
	padding: 122px 0;
	min-height: 894px;
}

#section-resultat .jackpot {
	position: absolute;
	left: 50%;
	margin-left: -427px;
	top: 285px;
}

#section-resultat .go-js {
	cursor: pointer;
}

#section-resultat .go {
	position: absolute;
	bottom: 100px;
	left: 50%;
	margin-left: -119px;
}

#section-resultat .go.gif {
	width: 256px;
	margin-left: -128px;
	bottom: 90px;
}

#section-resultat .bulle {
	position: absolute;
	bottom: 41px;
	left: 50%;
	margin-left: -520px;
}

#section-resultat .hide-when-played {
	height: 894px;
	width: 100%;
	background: url('../images/content-resultat.png') no-repeat center top;
}

#section-resultat .show-when-played {
	height: 894px;
	width: 100%;
	display: none;
}

#section-resultat.gagne .show-when-played {
	background: url('../images/content-resultat-gagne.png') no-repeat center top;
}

#section-resultat.perdu .show-when-played {
	background: url('../images/content-resultat-perdu.png') no-repeat center top;
}

#section-resultat.gagne.played .hide-when-played { display: none; }
#section-resultat.perdu.played .hide-when-played { display: none; }
#section-resultat.gagne.played .show-when-played { display: block; }
#section-resultat.perdu.played .show-when-played { display: block; }

@media (max-width: 1024px) {
	#section-resultat, #section-resultat.gagne {
		background: url('../images/mobile-bg-resultat.jpg') no-repeat center top;
		background-size: contain;
	}
	#section-resultat .container {
		padding: 15% 0;
		max-width: none;
		min-height: auto;
	}
	#section-resultat .bouton {
		margin-left: -16%;
		font-size: 4vw;
	}
	#section-resultat .hide-when-played {
		height: 0;
		padding-top: 82%;
	}
	#section-resultat.gagne .hide-when-played,
	#section-resultat.perdu .hide-when-played {
		background-size: contain;
	}
	#section-resultat.gagne .show-when-played,
	#section-resultat.perdu .show-when-played {
		height: 0;
		padding-top: 82%;
		background-size: contain;
	}
	#section-resultat .jackpot {
		margin-left: -40%;
		top: 33%;
		max-width: 80%;
	}
	#section-resultat .go {
		margin-left: -10%;
		top: 63%;
		max-width: 20%;
	}
	#section-resultat .go.gif {
		margin-left: -11%;
		top: 61%;
		max-width: 22%;
	}
	#section-resultat .bulle {
		width: 40%;
		left: 3%;
		margin-left: 0;
		bottom: -1%;
	}
}

/* page texte */
.page-wrapper {
	margin-top: 5rem;
	padding: 1rem 2rem;
	border-radius: 60px;
	padding: 30px;
	background-color: var(--rouge);
	color: var(--blanc);
	max-width: 1080px;
	min-height: 500px;
}

.page-wrapper a {
	color: var(--blanc);
}


/* footer */
#section-footer {
	padding: 2rem 1rem 5rem 1rem;
}

body.home #section-footer .not-home {
	display: none;
}

#cookieconsent .container {
	max-width: 1530px;
}

#cookieconsent,
#cookieconsent-nojs {
	padding: 0.5rem;
	position: fixed;
	z-index: 80;
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 1px solid var(--blanc);
	background: var(--rouge);
	color: var(--blanc);
}

.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.5rem 1rem;
	border: 1px solid #fff;
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	transition: 0.2s linear;
	height: 2rem;
}

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

#cookieconsent .text {
	padding: 0.5rem;
}

#cookieconsent .buttons {
	width: fit-content;
}

#cookieconsent .buttons button {
	background: var(--blanc);
	color: var(--rouge);
	border: none;
	border-radius: 10px;
	padding: 0.3rem 1rem;
}

/* --- */

/* --- */
html,
body {
	font-family: var(--font-family);
	font-weight: 400;
	font-style: normal;
	font-size: var(--font-size);
	background: var(--blanc);
}

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

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
	width: 100%;
	margin: auto;
	font-size: 1.1rem;
	min-height: 100% !important;
}

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

a:hover {
	color: inherit;
}

h1 {
	line-height: 2rem;
	font-size: 2rem;
	margin: 2rem 0;
}

h2 {
	line-height: 1.8rem;
	font-size: 1.8rem;
	margin: 1.8rem auto;
}

h3 {
	line-height: 1.6rem;
	font-size: 1.6rem;
}

h4 {
	line-height: 1.4rem;
	font-size: 1.4rem;
}

p {
	line-height: 1.2em;
}

/* --- */

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

/* responsive */
@media (max-width: 1024px) {

	.jmenu {
		margin: 0;
	}

	.jmenu a {
		padding: 0px 1rem;
		font-size: 0.6rem;
	}
}
