@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
@keyframes animLogo {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}
@keyframes changement {
	0% {
		transform: rotate3d(1,0,0,0deg);
	}
	50% {
		transform: rotate3d(1,0,0,180deg);
	}
	100% {
		transform: rotate3d(1,0,0,180deg);
	}
}

:root {
	--or: #d8b647;
	--orC: #efe1b3;
	--bleuF: #00385d;
	--bleuC: #12edff;
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	text-align: center;
	height: 100vh;
	overflow: hidden;
	background: linear-gradient(-45deg, #1d59fe, #0131b4);
	background-size: 400% 400%;
	animation: gradient 10s ease infinite;
}

body #coffre > p {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	font-family: LexendM;
	color: white;
}

/* DÉBUT */

#menu {
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	flex-wrap: wrap;
	background: linear-gradient(135deg,var(--or) 20%,var(--orC),var(--bleuC) 70%,var(--bleuC));
	background-size: 300% 300%;
	animation: gradient 7s ease infinite;
	overflow: hidden;
	position: relative;
}

#illustration {
	position: relative;
	width: 30%;
}

#illustration img {
	position: absolute;
	top: 60%;
	width: 50%;
}

svg path {
	transform-origin: center;
}

#menu article {
	width: 30%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#menu article > *:not(#menu article:last-child) {
	width: 100%;
	margin-bottom: 20px;
}

#menu #sonDiv, #menu #expressDiv {
	width: 30%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	font-family: LexendM;
	font-size: 1.5rem;
}

#menu #express {
	transform: scale(1.5);
}

#menu button {
	width: 100%;
	font-size: 2rem;
	font-family: Agency_Gras;
	border: 3px solid white;
	background: black;
	color: white;
	transition: color 0.5s, background 0.5s, border-color 0.5s;
	padding: 10px 0;
	cursor: pointer;
}

#menu button.retour {
	background: #03224c;
	border-color: white;
}

#menu button:hover {
	color: black;
	background: white;
	border-color: black;
}

#menu button.retour:hover {
	color: #03224c;
	background: white;
	border-color: #03224c;
}

.aspiration {
	transform: scale(0);
	opacity: 0;
	transition: all 1s;
}

.aspiration > article:last-child {
	display: none;
}

.cache {
	display: none;
}

/* BOITE */

#petit img, #grand img {
	width: 10px;
}

/* Ludos Imperium */

#confirm {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

#confirm > a > button {
    position: static;
    width: auto;
}

#confirm > a > button:hover {
	background: white;
}

.choose {
	background: var(--or);
	color: black;
}

aside div#option button {
	box-shadow: none;
}

	/* BODY */

p > span {
	font-family: LexendM;
}

p > span:not(#tabScore span) {
	color: #ffee92;
}

main {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#petit, #grand {
	width: 25%;
}

article {
	padding: 10px;
	font-family: LexendM;
	color: white;
	border-radius: 7px;
	width: 70%;
	margin: auto;
	font-size: 1.5rem;
}
main article {
	display: flex;
	justify-content: center;
	align-items: center;
}

#petit p, #grand p {
	margin-right: 4px;
}

main article:not(article:last-child) {
	margin-bottom: 15px;
}

#petit article, .petit, main article.petit {
	background: linear-gradient(-34deg, #00385d, #12edff 50%, #00385d);
	color: black;
}/*12edff*/
/*00385d*/
#grand article, .grand, main article.grand {
	background: linear-gradient(-34deg, #efe1b3 9.5%, #d8b647 29%, #efe1b3 52.8%, #d8b647 80.2%, #efe1b3);
	color: black;
}

#grand article.joker, .joker, main article.joker {
	background: linear-gradient(-34deg, #850007, #ff0010 50%,#850007);
	color: #e8d3a4;
}

#boite {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	width: 50%;
}

#boite > button, #switch button {
	width: clamp(50px,11vw,100000px);
	height: 75px;
	background: black;
	color: white;
	margin: 0 0 30px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: Agency_Gras;
	font-size: 1.5rem;
	border: none;
	border-radius: 15px;
	box-shadow: 0 10px 0 #555;
}

#boite > button:active {
	box-shadow: none;
	transform: translateY(10px);
}

#offreBanque {
	width: 50%;
	height: 100%;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    display: none;
    font-family: LexendM;
    color: white;
}

#offreBanque h1 {
	font-size: clamp(1.5rem,3vw,3rem);
}

#offreBanque #banqueBtn, #boite div {
	width: 100%;
	display: flex;
	justify-content: space-around;
}

#offreBanque #banqueBtn {
	flex-wrap: wrap;
}

#offreBanque #sommeBanque {
	display: flex;
	justify-content: center;
	align-items: center;
}

#offreBanque #sommeBanque img {
	width: 23px;
}

#offreBanque p {
	font-size: 4rem;
	margin-right: 20px;
}

#offreBanque button, button#accord, button#desaccord {
	transition: transform 0.5s;
	font-family: Agency_Gras;
	border: none;
	border-radius: 15px;
	font-size: clamp(2rem,3vw,3rem);
	padding: 15px;
}

#offreBanque button:hover, button#accord:hover, button#desaccord:hover {
	transform: scale(1.2);
}

button#accord {
	background: var(--or);
	color: black;
}

button#desaccord {
	background: black;
	color: var(--or);
}

#suspensParent {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	transition: all 0s;
	background: black;
	padding: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#suspens {
	width: 100%;
	height: 100%;
	background: black;
	transform-style: preserve-3d;
	padding: 0;
}

#suspens > * {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	backface-visibility: hidden;
}

#devant {
	font-family: Agency_Gras;
}

#derriere {
	transform: rotate3d(1,0,0,180deg);
	font-family: LexendM;
}

#derriere > h1 {
	margin-right: clamp(15px,3vw,50px);
}

#derriere > img {
	width: clamp(25px,4vw,75px);
}

#suspens h1 {
	text-transform: uppercase;
	font-size: clamp(50px,10vw,10000000px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#boite button.disabledChoix {
	background: #ffee92;
	color: black;
	box-shadow: 0 10px 0 #c49f47;
	font-family: Agency_black;
	font-size: 1.75rem;
}

#boite button.disabledChoix:active {
    box-shadow: none;
    transform: translateY(10px);
}

.tournant {
	animation: tournant 5s ease-in-out;
	animation-delay: 0.5s;
}

.changement {
	animation: changement 5s ease-in-out;
	animation-delay: 0.5s;
}

.trouve {
	opacity: 0.2;
}

	/* Finale */

#finale > button {
	box-shadow: none;
	width: auto;
}

div#switch {
	display: none;
	flex-direction: column;
}

#switch > h1 {
	font-size: 1.5rem;
	font-family: LexendM;
	color: white;
}

	/* Résultat */

#fin {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	color: white;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

#fin > h1 {
	font-family: LexendM;
}

#fin #gainAffiche {
	width: 75%;
}

#fin #gainDiv {
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
    border-radius: 25px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
}

#fin #boiteReveal {
	width: max-content;
    margin: auto;
}

#fin p {
	font-family: LexendM;
    font-size: clamp(4rem,7vw,7.5rem);
    margin-right: 20px;
}

#fin #gainDiv img {
	width: clamp(26px,2.5vw,45px);
}

#fin #boiteChoix {
	transform-style: preserve-3d;
}

#fin #boiteChoix div {
	background: black;
	backface-visibility: hidden;
	position: relative;
	padding: 10px;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#finDos {
	transform: rotate3d(1,0,0,180deg);
}

#finDos img {
	width: 15px;
}

#fin div h1 {
	font-family: LexendM;
    font-size: 2rem;
    margin-right: 10px;
}

/* PIVOT */

#pivot {
	transform-style: preserve-3d;
}

#pivot * {
	backface-visibility: hidden;
}

.rotation {
	transition: transform 0.5s;
	transform: rotate3d(0, 1, 0, 180deg);
}

#resultatSection {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	transform: rotate3d(0, 1, 0, 180deg);
	background: linear-gradient(-45deg, #0131b4, #03224c);
	background-size: 300% 300%;
	animation: gradient 10s ease infinite;
}

#resultatSection img {
	height: clamp(30px,4.5vw,76px);
	margin-left: clamp(5px,2vw,15px);
}

	/* Page Résultat */

#finBtn button {
	cursor: pointer;
    font-family: "Agency_Gras";
    padding: clamp(2px,2vw,17px);
    border: clamp(2px,1vw,5px) solid black;
    color: black;
    background: var(--or);
    transition: background 0.5s, color 0.5s, border-color 0.5s;
    font-size: clamp(1rem,3vw,2rem);
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5)
}

#finBtn button:hover {
	background: black;
	color: var(--or);
	border-color: var(--or);
}

article#resultat {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 100%;
}

article#resultat h1 {
	font-family: "Agency_Black";
	color: white;
}

#pointsNet {
	transform: scale(0.7);
}

article#resultat #sommeNet, #pointsNet {
	width: 75%;
	background: black;
	border: 7px solid skyblue;
	border-radius: 10px;
	margin: auto;
	padding: 10px 0;
}

article#resultat span {
	font-size: clamp(2.5rem,6vw,6rem);
	font-family: "Agency_Black";
	background: -webkit-linear-gradient(#b88b33 19.5%, #e8d3a4 45%, #b88b33 72.3%, #e8d3a4 92.7%, #b88b33);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

	/* Tableau des Scores */

#tabScoreAside {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0, 0.5);
/*    display: flex;*/
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: none;
}
#tabScoreAside.cache {
	display: none;
}
#tabScoreAside .fa-times {
	position: absolute;
    padding: 2vh 2vw;
    right: 0;
    top: 0;
    cursor: pointer;
    font-size: 50px;
    color: white;
    transition: transform 0.5s;
}
#tabScoreAside > #tabScore {
	background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
/*    width: 95vw;*/
/*    border-radius: clamp(50px,3vw,0px);*/
}
#tabScore > li {
	width: 100%;
    justify-content: space-between;
    padding: 0 1vw;
    font-size: clamp(25px,3vw,1000000px);
/*    border-radius: clamp(50px,3vw,0px);*/
    margin: auto;
    display: flex;
    align-items: center;
    font-family: LexendM;
}
#moneyScore {
	display: flex;
	align-items: center;
}
.money {
	margin-right: 8px;
}
.deviseScore {
	width: clamp(9px,2vw,23px);
}
#tabScoreAside > #itemLeft > p {
	overflow-wrap: break-word;
}

.affichageScore > #itemLeft {
	display: flex;
}

.rang {
	display: flex;
	align-items: center;
	width: clamp(50px,5.5vw,100px);
	margin-right: clamp(20px,2vw,25px);
}

.pseudo {
	margin-right: clamp(20px,6vw,100px);
}

li.premier{
	color: #C29B0C;
}
li.second {
	color: #a0a0a0;
}
li.troiz {
	color: #C49C48;
}

#tabScore li.conx1{
	background: #C29B0C;
	color: white;
}
#tabScore li.conx2 {
	background: #a0a0a0;
	color: white;
}
#tabScore li.conx3 {
	background: #C49C48;
	color: white;
}
#tabScore li.conxAutre {
	background: #251178;
	color: white;
}

	/* Téléphone */

#pyramidesAOD, #boite #pyramidesAODView {
	display: none;
}

	/* Classe jQuery */

.stop {
	pointer-events: none;
}

@media all and (max-width: 1200px) {
	#buttonMenu {
		display: flex;
		flex-direction: column;
	}
	.btn-classement {
		margin-right: 0;
	}
}

@media all and (max-width: 1157px) {
	#menu article {
		width: 50%;
	}
}

@media all and (max-width: 950px) {
	#chrono {
		transform: scale(0.7);
	}
	#abandonAside > article {
		width: 80%;
		height: 80%;
	}
}

@media all and (max-width: 867px) {
	article {
		width: 100%;
	}
}

@media all and (max-width: 768px) {
	#menu {
		flex-direction: column;
	}

	#illustration {
		width: 70%;
	}

	#menu div {
		flex-direction: column-reverse;
	}

	#menu div > :last-child {
		margin-bottom: 20px;
	}
}

@media all and (max-width: 756px) {
	article#resultat #sommeNet, #pointsNet {
		width: 95%;
	}
}

@media all and (max-width: 606px) {
	#coffre #petit, #coffre #grand {
		display: none;
	}
	#pyramidesAOD {
		z-index: 10000;
		position: absolute;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		display: none;
		justify-content: space-between;
		align-items: center;
		background: rgba(3, 34, 76, .8);
	}
	#pyramidesAOD #petit, #pyramidesAOD #grand {
		width: 45%;
	}
	#pyramidesAOD #petit article, #pyramidesAOD #grand article {
		display: flex;
    	justify-content: center;
    	align-items: center;
    	margin-bottom: 3px;
	}
	#pyramidesAOD i {
		position: absolute;
		top: 15px;
		right: 10px;
		color: white;
	}

	#boite {
		width: 88%;
	}

	#boite > #pyramidesAODView {
		display: block;
		height: 50px;
		width: 50px;
		position: absolute;
		left: 10px;
		top: 15px;
		box-shadow: none;
		border-radius: 0px;
	}

	#boite > #pyramidesAODView:active {
		transform: translateY(0px);
	}

	#offreBanque, #fin #gainAffiche {
		width: 100%;
	}

	#fin #gainDiv {
		border-radius: 0px;
	}
}