.leaflet-popup-content {
	min-width: 250px;
	margin: 0;
}

.leaflet-popup-content-wrapper {
	overflow: hidden;
	border: 1px solid var(--game-card-border);
	border-radius: 22px;
	box-shadow: 0 18px 42px rgb(var(--game-shadow-rgb) / .28);
}

.map-popup {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 18px;
}

.map-popup--without-image {
	grid-template-columns: minmax(0, 1fr);
}

.leaflet-popup-content-text {
	min-width: 0;
}

.map-popup-level {
	display: inline-flex;
	min-height: 24px;
	align-items: center;
	margin-bottom: 7px;
	padding: 3px 9px;
	border: 1px solid var(--game-gold-border);
	border-radius: 999px;
	background: var(--game-gold-gradient);
	color: var(--game-gold-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.map-popup-level.is-complete {
	border-color: #24713b;
	background: #24713b;
	color: #fff;
}

.leaflet-popup-content-wrapper h2,
.leaflet-popup-content-wrapper h3 {
	font-family: 'Fredoka', system-ui, sans-serif;
	margin: 0;
}

.leaflet-popup-content-wrapper h2 {
	color: var(--game-map-popup-text);
	font-size: 19px;
	font-weight: 750;
	line-height: 1.18;
}

.leaflet-popup-content-wrapper h3 {
	margin-top: 4px;
	color: var(--game-map-popup-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.leaflet-popup-content-wrapper img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.leaflet-container a.leaflet-popup-close-button {
	z-index: 2;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--game-map-popup-muted);
	font-size: 25px;
	line-height: 28px;
}

.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus-visible {
	background: var(--game-action-control-background);
	color: var(--game-map-popup-text);
}

.leaflet-popup-content-circle {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	border: 3px solid var(--game-gold-border);
	border-radius: 50%;
	background: var(--game-action-control-background);
}

.leaflet-popup-content-text .map-popup-directions {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 13px;
	padding: 8px 13px;
	border: 1px solid var(--game-gold-border);
	border-radius: 999px;
	background: var(--game-button-background);
	box-shadow: var(--game-button-theme-shadow);
	color: var(--game-button-text);
	font-family: 'Fredoka', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.leaflet-popup-content-text .map-popup-directions:hover,
.leaflet-popup-content-text .map-popup-directions:focus-visible {
	background: var(--game-button-background-hover);
	color: var(--game-button-text);
}

.map-popup-directions-arrow {
	font-size: 19px;
	line-height: 1;
}

.full-height{
height: 100%
}

/*Accueil*/
html.game-background,
#game {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--game-page-background);
	background-attachment: fixed;
	background-repeat: no-repeat;
}

#home {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--color-background);
}

#home::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	background: var(--game-page-background);
	opacity: 0;
	pointer-events: none;
}

#home > .container,
#home > footer {
	position: relative;
	z-index: 1;
}

#home.is-leaving-for-level::before {
	animation: homeBackgroundToGame .5s cubic-bezier(.7, 0, .3, 1) forwards;
}

@keyframes homeBackgroundToGame {
	to { opacity: 1; }
}

@media (max-width: 767px) {
	html.game-background,
	#game {
		background-attachment: scroll;
		background-position: center top;
		background-size: 100% 100vh;
		background-size: 100% 100svh;
	}

	#home::before {
		background-position: center top;
		background-size: 100% 100vh;
		background-size: 100% 100svh;
		background-repeat: no-repeat;
	}
}

#home .container {
	width: min(100%, 560px) !important;
	height: auto;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.bg-snow{
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}

/* En-tête et progression de l'accueil */
.home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0 -20px;
	padding: calc(20px + env(safe-area-inset-top)) 20px 38px;
	border-radius: 0 0 50% 50% / 0 0 38px 38px;
	background: var(--game-hero-background);
	box-shadow: var(--game-hero-shadow);
}

.home-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--game-hero-overlay);
	pointer-events: none;
}

.home-hero::after {
	content: none;
}

.home-hero > * {
	position: relative;
	z-index: 2;
}

.home-hero-lights {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.home-light {
	position: absolute;
	width: 5px;
	height: 5px;
	background: var(--game-gold-light);
	box-shadow: var(--game-light-shadow);
	opacity: var(--game-light-opacity);
}

.home-light--dot {
	border-radius: 50%;
}

.home-hero-lights span:nth-child(1) { top: 18%; left: 12%; width: 4px; height: 4px; }
.home-hero-lights span:nth-child(2) { top: 25%; right: 14%; width: 3px; height: 3px; }
.home-hero-lights span:nth-child(3) { top: 47%; left: 18%; width: 4px; height: 4px; }
.home-hero-lights span:nth-child(4) { top: 50%; right: 16%; width: 4px; height: 4px; }
.home-hero-lights span:nth-child(5) { top: 70%; left: 9%; width: 3px; height: 3px; }
.home-hero-lights span:nth-child(6) { top: 72%; right: 8%; width: 4px; height: 4px; }
.home-hero-lights span:nth-child(7) { top: 36%; right: 31%; width: 3px; height: 3px; }

.home-brand-logo {
	display: block;
	width: 180px;
	height: auto;
	margin: 0 auto;
}

.home-location {
	margin: 0 0 18px;
	color: var(--game-surface-text);
	font-size: clamp(20px, 5vw, 24px);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
}

.home-player {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.home-player--with-actions {
	position: relative;
	display: flex;
	width: min(100%, 328px);
	height: 92px;
	margin: 0 auto;
	justify-content: space-between;
}

.home-player--with-actions .home-player-avatar {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

.home-player--with-actions .home-hero-action {
	width: 76px;
	flex: 0 0 76px;
}

.home-player--with-actions.home-player--without-mascot {
	width: min(100%, 190px);
	height: auto;
}

.home-hero-action {
	display: inline-flex;
	min-width: 64px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: var(--game-surface-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-shadow: 0 2px 6px rgb(var(--game-shadow-rgb) / .46);
}

.home-hero-action-icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 2px solid var(--game-gold-border);
	border-radius: 50%;
	background: var(--game-action-control-background);
	box-shadow: var(--game-action-control-shadow);
}

.home-hero-action svg {
	width: 26px;
	height: 26px;
	fill: var(--game-gold);
}

.home-hero-action-symbol {
	display: block;
	color: var(--game-gold);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.home-hero-action:active .home-hero-action-icon {
	transform: scale(.96);
}

.home-player-avatar {
	display: block;
	width: 92px;
	height: 92px;
	overflow: hidden;
	flex: 0 0 auto;
	border: 3px solid var(--game-gold-border);
	border-radius: 50%;
	background: linear-gradient(145deg, var(--color-primary), var(--color-notif));
	box-shadow: 0 0 7px rgb(var(--game-gold-rgb) / .5), 0 8px 18px rgb(var(--game-shadow-rgb) / .28);
}

.home-player-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 34%;
	transform: scale(1.18);
}

.level-overview {
	width: min(70%, 294px);
	margin: 20px auto 0;
}

.level-overview--single {
	width: min(35%, 147px);
}

.level-overview--extended {
	width: min(100%, 390px);
}

.level-overview-track {
	position: relative;
	height: 38px;
}

.level-overview-track ol {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.level-overview-track li {
	position: relative;
	display: flex;
	min-width: 0;
	flex: 1 1 0;
	align-items: center;
}

.level-overview-track li::before {
	content: '';
	height: 4px;
	min-width: 4px;
	flex: 1 1 auto;
	border-radius: 999px;
	background: var(--game-progress-idle-connector);
}

.level-overview-track li:first-child {
	flex: 0 0 36px;
}

.level-overview-track li:first-child::before {
	display: none;
}

.level-overview-track li.is-complete::before {
	background: var(--game-progress-fill);
	box-shadow: var(--game-progress-glow), var(--game-progress-depth-shadow);
}

.level-overview-track li.is-complete:not(.is-reward)::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -8px;
	z-index: 0;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(var(--game-gold-rgb) / .72) 0, rgb(var(--game-gold-rgb) / .4) 34%, rgb(var(--game-gold-rgb) / .16) 54%, transparent 74%);
	transform: translateY(-50%);
	filter: blur(4px);
	pointer-events: none;
}

.level-progress-node {
	position: relative;
	z-index: 1;
	display: grid;
	width: 36px;
	height: 38px;
	flex: 0 0 36px;
	place-items: center;
	background: var(--game-progress-idle-node);
	clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
	color: var(--game-progress-idle-text);
	font-size: 17px;
	font-weight: 800;
	filter: var(--game-progress-idle-filter);
}

.level-progress-node::before {
	content: '';
	position: absolute;
	inset: 2px;
	background: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .08));
	clip-path: inherit;
}

.level-progress-node > span {
	position: relative;
	z-index: 1;
}

.level-overview-track li.is-complete .level-progress-node {
	background: var(--game-gold-gradient);
	color: var(--game-gold-text);
	filter: var(--game-gold-glow) var(--game-gold-depth-filter);
}

.level-overview-track li.is-complete .level-progress-node::before {
	background: var(--game-gold-gradient);
}

.level-overview-track li.is-newly-complete::before {
	animation: level-connector-reveal .48s ease-out both;
}

.level-overview-track li.is-newly-complete::after {
	animation: level-halo-reveal .86s .38s ease-out both;
}

.level-overview-track li.is-newly-complete .level-progress-node {
	animation: level-node-reveal .86s .38s ease-out both;
}

.level-overview-track li.is-newly-complete .level-progress-node::before {
	animation: level-node-fill .86s .38s ease-out both;
}

.level-overview-track li.is-newly-reward::before {
	animation: level-connector-reveal .48s 1.15s ease-out both;
}

.level-overview-track li.is-newly-reward img {
	animation: level-gift-reveal 1.05s 1.53s ease-out both;
}

@keyframes level-connector-reveal {
	0% {
		background: rgba(255, 255, 255, .28);
		box-shadow: none;
		transform: scaleX(0);
		transform-origin: left center;
	}
	100% {
		background: var(--game-progress-fill);
		box-shadow: var(--game-progress-glow);
		transform: scaleX(1);
		transform-origin: left center;
	}
}

@keyframes level-node-reveal {
	0%, 22% {
		background: rgba(255, 255, 255, .34);
		color: rgba(255, 255, 255, .5);
		filter: drop-shadow(0 0 4px rgba(255, 255, 255, .28));
		transform: scale(.78) rotate(-3deg);
	}
	52% {
		background: var(--game-gold-gradient);
		color: var(--game-gold-text);
		filter: var(--game-gold-glow);
		transform: scale(1.25) rotate(3deg);
	}
	68% {
		background: var(--game-gold-gradient);
		color: var(--game-gold-text);
		filter: var(--game-gold-glow);
		transform: scale(.9) rotate(-2deg);
	}
	84% {
		background: var(--game-gold-gradient);
		color: var(--game-gold-text);
		filter: var(--game-gold-glow);
		transform: scale(1.09) rotate(1deg);
	}
	100% {
		background: var(--game-gold-gradient);
		color: var(--game-gold-text);
		filter: var(--game-gold-glow);
		transform: scale(1) rotate(0);
	}
}

@keyframes level-node-fill {
	0%, 30% {
		background: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .08));
	}
	100% {
		background: var(--game-gold-gradient);
	}
}

@keyframes level-halo-reveal {
	0%, 30% {
		opacity: 0;
		transform: translateY(-50%) scale(.55);
	}
	70% {
		opacity: 1;
		transform: translateY(-50%) scale(1.2);
	}
	100% {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

@keyframes level-gift-reveal {
	0%, 18% {
		opacity: .38;
		transform: translate(-50%, -50%) scale(.84) rotate(0);
		filter:
			saturate(.4)
			brightness(.88)
			contrast(1)
			drop-shadow(0 3px 4px rgb(var(--game-shadow-rgb) / .2));
	}
	34% {
		opacity: 1;
		transform: translate(-50%, -67%) scale(1.08) rotate(-6deg);
		filter:
			saturate(1.22)
			brightness(1.16)
			contrast(1.05)
			drop-shadow(0 4px 5px rgb(var(--game-shadow-rgb) / .3));
	}
	48% {
		transform: translate(-50%, -48%) scale(.98) rotate(5deg);
	}
	61% {
		transform: translate(-50%, -57%) scale(1.04) rotate(-3deg);
	}
	74% {
		transform: translate(-50%, -50%) scale(1) rotate(2deg);
	}
	87% {
		transform: translate(-50%, -53%) scale(1.01) rotate(-1deg);
	}
	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1) rotate(0);
		filter:
			saturate(1.16)
			brightness(1.08)
			contrast(1.04)
			drop-shadow(0 3px 5px rgb(var(--game-shadow-rgb) / .34));
	}
}

.level-reward-node {
	position: relative;
	display: block;
	width: 36px;
	height: 38px;
	flex: 0 0 36px;
}

.level-reward-trigger {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	cursor: pointer;
}

.level-reward-trigger:focus-visible {
	outline: 2px solid var(--game-focus-ring);
	outline-offset: 7px;
}

.level-reward-trigger.is-reward-attention {
	transform-origin: center;
	animation: level-gift-attention 8s ease-in-out infinite;
}

@keyframes level-gift-attention {
	0%, 88%, 100% {
		transform: translate3d(0, 0, 0) rotate(0) scale(1);
	}
	90% {
		transform: translate3d(-2px, 0, 0) rotate(-9deg) scale(1.06);
	}
	92% {
		transform: translate3d(2px, 0, 0) rotate(8deg) scale(1.06);
	}
	94% {
		transform: translate3d(-1px, 0, 0) rotate(-6deg) scale(1.04);
	}
	96% {
		transform: translate3d(1px, 0, 0) rotate(5deg) scale(1.03);
	}
	98% {
		transform: translate3d(0, 0, 0) rotate(-3deg) scale(1.01);
	}
}

.level-reward-node img {
	position: absolute;
	top: 42%;
	left: 50%;
	z-index: 2;
	display: block;
	width: 48px;
	height: 48px;
	max-width: none;
	opacity: .58;
	transform: translate(-50%, -50%);
	filter: saturate(.9) brightness(.98) drop-shadow(0 3px 4px rgba(75, 0, 4, .2));
}

.level-overview-track li.is-reward.is-complete .level-reward-node img {
	opacity: 1;
	filter:
		saturate(1.16)
		brightness(1.08)
		contrast(1.04)
		drop-shadow(0 3px 5px rgba(75, 0, 4, .34));
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	border: 0 !important;
	margin: -1px !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

/* Le fond reste immobile ; seul le contenu de la modale peut défiler. */
html:has(.reward-dialog[open]),
html:has(.reward-dialog[open]) body {
	overflow: hidden !important;
}

.reward-dialog {
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	width: min(390px, calc(100% - 32px));
	padding: 34px 28px 30px;
	border: 1px solid var(--game-accent-border);
	border-radius: 26px;
	background: var(--game-dialog-background);
	color: var(--game-dialog-text);
	box-shadow: 0 24px 70px rgb(var(--game-shadow-rgb) / .42), inset 0 1px #fff;
	text-align: center;
}

.reward-dialog::backdrop {
	background: var(--game-dialog-overlay);
	backdrop-filter: blur(3px);
}

.reward-dialog form {
	margin: 0;
}

.reward-dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgb(var(--game-primary-rgb) / .09);
	color: var(--game-dialog-text);
	font-size: 29px;
	font-weight: 400;
	line-height: 1;
}

.reward-dialog-close span {
	transform: translateY(-1px);
}

.reward-dialog-gift {
	display: block;
	width: 62px;
	height: 62px;
	margin: 0 auto 12px;
	filter: drop-shadow(0 6px 8px rgba(98, 12, 15, .22)) drop-shadow(0 0 12px rgba(255, 193, 46, .42));
}

.reward-dialog h2 {
	margin: 0 34px 12px;
	color: var(--game-dialog-text);
	font-size: 25px;
	line-height: 1.15;
}

.reward-dialog p {
	margin: 0;
	color: var(--game-dialog-muted);
	font-size: 17px;
	line-height: 1.5;
}

.reward-dialog strong {
	color: var(--game-dialog-text);
}

.recovery-success {
	position: fixed;
	top: calc(18px + env(safe-area-inset-top));
	left: 50%;
	z-index: 80;
	width: min(calc(100% - 32px), 390px);
	transform: translateX(-50%);
	opacity: 1;
	pointer-events: none;
	transition: opacity 240ms ease, transform 240ms ease;
}

.recovery-success.is-leaving {
	transform: translate(-50%, -8px);
	opacity: 0;
}

.recovery-success-card {
	display: flex;
	align-items: center;
	gap: 13px;
	box-sizing: border-box;
	padding: 13px 16px;
	border: 1px solid rgb(var(--game-gold-rgb) / .58);
	border-radius: 18px;
	background: var(--game-card-background);
	box-shadow: 0 12px 30px rgb(var(--game-shadow-rgb) / .3), 0 0 18px rgb(var(--game-gold-rgb) / .2);
	color: var(--game-card-text);
	animation: recovery-success-card-in 520ms cubic-bezier(.2, .85, .3, 1.16) both;
}

.recovery-success-icon {
	display: grid;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	place-items: center;
	border: 2px solid var(--game-gold-border);
	border-radius: 50%;
	background: var(--game-gold-gradient);
	box-shadow: 0 0 16px rgb(var(--game-gold-rgb) / .55);
	color: var(--game-gold-text);
	animation: recovery-success-check-in 720ms cubic-bezier(.2, .85, .3, 1.25) 80ms both;
}

.recovery-success-icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.recovery-success-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.recovery-success-copy strong {
	font-size: 17px;
	line-height: 1.2;
}

.recovery-success-copy span {
	color: var(--game-dialog-muted);
	font-size: 14px;
	line-height: 1.3;
}

@keyframes recovery-success-card-in {
	0% { transform: translateY(-14px) scale(.94); opacity: 0; }
	70% { transform: translateY(2px) scale(1.01); opacity: 1; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes recovery-success-check-in {
	0% { transform: scale(.35) rotate(-12deg); opacity: 0; }
	48% { transform: scale(1.14) rotate(3deg); opacity: 1; }
	68% { transform: scale(.92) rotate(-1deg); }
	84% { transform: scale(1.05); }
	100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.recovery-success,
	.recovery-success-card,
	.recovery-success-icon {
		animation: none;
		transition: none;
	}
}

.header{
	padding: 22px;
	margin: 0 0 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 24px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.header h1,
.header h2 {
	color: var(--game-surface-text);
	font-size: clamp(26px, 7vw, 32px);
}

.header > p {
	margin: 12px 0 0;
	color: var(--game-surface-text);
	font-size: 17px;
	line-height: 1.48;
}

.recovery-link {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 14px auto 0;
	color: var(--color-text-contrast);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: .82;
}

.demo-privacy-notice {
	max-width: 330px;
	margin: 14px auto 0;
	color: var(--color-text-contrast);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	opacity: .86;
}

#mascotte{
	position: absolute;
	top:300px;
	text-align: center;
	width: 100%;
	display: none;
	filter: drop-shadow(3px 0 0.25rem #00000044);
}

#mascotte-end {
    position: absolute;
    top: 340px;
    text-align: center;
    filter: drop-shadow(3px 0 0.25rem #00000044);
    left: -55px;
    transform: rotate(45deg);
}

.warning{
	display: none;
}

#cookies-disabled {
	padding-left: 10px;
    font-size: 16px;
}

.block-reglement{
    display: block;
	max-width: 720px;
	margin: 0 auto;
	padding: calc(24px + env(safe-area-inset-top)) 0 calc(38px + env(safe-area-inset-bottom));
}

.block-reglement > h2 {
    margin: 0 0 28px;
}


.rules-section {
	margin: 0 0 28px;
}

.rules-section h3 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
}

.rules-section p {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.55;
}

.rules-note {
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
}

.game-page-back {
	display: inline-block;
	width: 50px;
	height: 50px;
	margin: 0 0 24px;
}

.game-page-back img {
	display: block;
}

.rules-document-link {
	display: flex;
	width: fit-content;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 34px auto 0;
	padding: 10px 18px;
	border: 1px solid var(--game-button-border);
	border-radius: 999px;
	background: var(--game-button-background);
	box-shadow: var(--game-button-theme-shadow);
	color: var(--game-button-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rules-document-link:hover,
.rules-document-link:focus-visible {
	background: var(--game-button-background-hover);
	color: var(--game-button-text);
}

/* Règlement public */
.regulation-page {
	min-height: 100%;
	background: var(--color-background);
	color: var(--game-card-text);
}

.regulation-background {
	min-height: 100vh;
	padding: max(18px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
	background: var(--color-background);
}

.legal-regulation {
	position: relative;
	width: min(100%, 820px);
	margin: 0 auto;
}

.legal-regulation-back {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	margin: 0;
}

.legal-regulation-header {
	padding: 18px 64px 28px;
	color: var(--game-on-dark);
	text-align: center;
}

.legal-regulation-header img {
	display: block;
	width: min(190px, 55vw);
	height: auto;
	margin: 0 auto 20px;
}

.legal-regulation-header p,
.legal-regulation-header h1,
.legal-regulation-header span {
	margin: 0;
}

.legal-regulation-header p {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.legal-regulation-header h1 {
	margin-top: 5px;
	font-size: clamp(30px, 8vw, 46px);
	line-height: 1.05;
}

.legal-regulation-header span {
	display: block;
	margin-top: 8px;
	color: var(--game-surface-muted);
	font-size: 17px;
}

.legal-regulation-content {
	padding: clamp(22px, 6vw, 50px);
	border: 1px solid var(--game-card-border);
	border-radius: 28px;
	background: var(--game-card-background);
	box-shadow: var(--game-card-shadow);
}

.legal-regulation-content section + section {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid color-mix(in srgb, var(--game-card-text) 14%, transparent);
}

.legal-regulation-content h2 {
	margin: 0 0 12px;
	color: var(--game-card-text);
	font-size: clamp(20px, 5vw, 25px);
	line-height: 1.2;
}

.legal-regulation-content p,
.legal-regulation-content li,
.legal-regulation-content address {
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-style: normal;
	line-height: 1.65;
}

.legal-regulation-content p {
	margin: 0 0 13px;
}

.legal-prize-list {
	margin: 14px 0 22px;
	padding: 0;
	list-style: none;
}

.legal-prize-list li {
	position: relative;
	padding: 10px 12px 10px 34px;
	border-radius: 12px;
	background: rgb(var(--game-accent-rgb) / .1);
}

.legal-prize-list li + li {
	margin-top: 7px;
}

.legal-prize-list li::before {
	position: absolute;
	top: 17px;
	left: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--game-gold);
	box-shadow: 0 0 8px rgb(var(--game-gold-rgb) / .65);
	content: "";
}

.legal-regulation-print {
	display: block;
	min-height: 54px;
	margin: 26px auto 0;
	padding: 12px 24px;
	border: 1px solid var(--game-button-border);
	border-radius: 18px;
	background: var(--game-button-background);
	color: var(--game-button-text);
	font: 700 17px/1.2 "Fredoka", sans-serif;
	cursor: pointer;
}

@media print {
	.regulation-page,
	.regulation-background {
		background: #fff !important;
	}

	.regulation-background {
		padding: 0;
	}

	.legal-regulation-back,
	.legal-regulation-print {
		display: none;
	}

	.legal-regulation-header {
		margin: 0 0 28px;
		padding: 0;
		background: none;
		box-shadow: none;
		color: #751016;
	}

	.legal-regulation-header span {
		color: #751016;
	}

	.legal-regulation-content {
		padding: 0;
		border: 0;
		background: #fff;
		box-shadow: none;
	}
}

.rules-document-link:active {
	transform: translateY(1px);
	box-shadow: 0 4px 10px rgb(var(--game-shadow-rgb) / .22);
}

.rules-document-link svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rules-document-link small {
	padding: 3px 7px;
	border-radius: 999px;
	background: rgb(var(--game-primary-rgb) / .12);
	color: inherit;
	font-size: 11px;
	font-weight: 800;
}

/*MAP*/
#map {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--game-page-background);
	background-color: var(--color-background);
}

#map > .container {
	width: min(100%, 1100px) !important;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
}

#mapid {
	height: clamp(480px, calc(100dvh - 174px), 760px);
	min-height: 0;
	border-radius: 20px;
	background: var(--game-map-control-background);
}

.block-map {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	padding: calc(24px + env(safe-area-inset-top)) 0 calc(32px + env(safe-area-inset-bottom));
}

.plan-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.plan-header .game-page-back {
	flex: 0 0 auto;
	margin: 0;
}

.plan-header h1 {
	margin: 0;
	color: var(--game-surface-text);
	font-size: clamp(27px, 6vw, 34px);
	line-height: 1.05;
}

.plan-header p {
	margin: 5px 0 0;
	color: var(--game-surface-muted);
	font-size: 15px;
	line-height: 1.25;
}

.map-shell {
	position: relative;
	min-height: 0;
	padding: 4px;
	border: 1px solid var(--game-map-frame-border);
	border-radius: 24px;
	background: rgb(255 255 255 / 12%);
	box-shadow: 0 20px 48px rgb(var(--game-shadow-rgb) / .24), inset 0 1px 0 rgb(255 255 255 / .26);
}

.map-status {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 500;
	width: max-content;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 10px 14px;
	transform: translateX(-50%);
	border-radius: 12px;
	background: rgb(0 0 0 / 72%);
	color: #fff;
	font-size: 16px;
	line-height: 1.35;
	text-align: center;
}

.map-status[hidden] {
	display: none;
}

#mapid .leaflet-bar {
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgb(var(--game-shadow-rgb) / .22);
}

#mapid .leaflet-bar a {
	width: 42px;
	height: 42px;
	border-color: var(--game-map-frame-border);
	background: var(--game-map-control-background);
	color: var(--game-map-control-text);
	font-size: 22px;
	line-height: 42px;
}

#mapid .leaflet-bar a:hover,
#mapid .leaflet-bar a:focus-visible {
	background: var(--game-gold-light);
	color: var(--game-gold-text);
}

#mapid .leaflet-control-attribution {
	margin: 0 5px 5px 0;
	padding: 3px 7px;
	border-radius: 8px;
	background: rgb(255 255 255 / .86);
	font-size: 10px;
}

.game-map-marker {
	border: 0;
	background: transparent;
}

.game-map-marker-pin {
	position: absolute;
	top: 5px;
	left: 5px;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	transform: rotate(-45deg);
	border: 3px solid var(--game-map-marker-border);
	border-radius: 50% 50% 50% 12px;
	background: var(--game-map-marker-background);
	box-shadow: var(--game-map-marker-shadow);
	transition: transform 180ms ease, filter 180ms ease;
}

.game-map-marker-pin::before {
	content: '';
	position: absolute;
	inset: 3px;
	border: 1px solid rgb(255 255 255 / .38);
	border-radius: inherit;
}

.game-map-marker-pin > span {
	position: relative;
	z-index: 1;
	transform: rotate(45deg);
	color: var(--game-map-marker-text);
	font-family: 'Fredoka', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.game-map-marker.is-complete .game-map-marker-pin {
	border-color: var(--game-gold-light);
	background: var(--game-gold-gradient);
	box-shadow: var(--game-map-marker-shadow), var(--game-gold-glow);
}

.game-map-marker.is-complete .game-map-marker-pin > span {
	color: var(--game-gold-text);
	font-size: 21px;
}

.game-map-marker:hover .game-map-marker-pin,
.game-map-marker:focus-visible .game-map-marker-pin,
.game-map-marker.is-active .game-map-marker-pin {
	transform: translateY(-4px) rotate(-45deg) scale(1.1);
	filter: brightness(1.08);
}

@media (max-width: 600px) {
	.block-map {
		padding-top: calc(16px + env(safe-area-inset-top));
		padding-bottom: calc(18px + env(safe-area-inset-bottom));
	}

	.plan-header {
		margin-bottom: 13px;
	}

	.plan-header p {
		display: none;
	}

	#mapid {
		height: calc(100dvh - 126px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		min-height: 420px;
	}

	.map-popup {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
		padding: 12px 13px;
	}

	.map-popup--without-image {
		grid-template-columns: minmax(0, 1fr);
	}

	.leaflet-popup-content {
		min-width: min(286px, calc(100vw - 44px));
	}

	.leaflet-popup-content-circle {
		width: 76px;
		height: 76px;
	}

	.leaflet-popup-content-wrapper img {
		width: 68px;
		height: 68px;
	}

	.leaflet-popup-content-text .map-popup-directions {
		min-height: 38px;
		margin-top: 9px;
		padding: 7px 12px;
	}
}

.game-link {
	position: relative;
	display: grid;
	gap: 20px;
	margin-top: 22px;
	padding: 14px 0px 0px;
}

.home-rules-link {
	display: flex;
	width: fit-content;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 24px auto 0;
	padding: 8px 16px;
	border: 1px solid rgb(var(--game-gold-rgb) / .62);
	border-radius: 999px;
	color: var(--game-surface-text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 7px 18px rgb(var(--game-shadow-rgb) / .16);
}

.home-rules-link svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: var(--game-gold-border);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.level-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 104px;
	padding: 12px 12px 12px 10px;
	border: 1px solid var(--game-card-border);
	border-radius: 22px;
	background: var(--game-card-background);
	color: var(--game-card-text);
	box-shadow: var(--game-card-shadow);
}

.level-card-arrow {
	position: absolute;
	top: 50%;
	right: 20px;
	z-index: 2;
	display: block;
	width: 13px;
	height: 13px;
	border-top: 3px solid var(--game-card-text);
	border-right: 3px solid var(--game-card-text);
	transform: translateY(-50%) rotate(45deg);
}

/* Passage de l'accueil à un niveau : même mouvement vertical que les questions. */
#home.is-leaving-for-level .home-hero,
#home.is-leaving-for-level .home-prizes-button,
#home.is-leaving-for-level .home-rules-link,
#home.is-leaving-for-level .demo-privacy-notice,
#home.is-leaving-for-level .warning,
#home.is-leaving-for-level .recovery-link,
#home.is-leaving-for-level .game-link,
#home.is-leaving-for-level .logo-footer,
#home.is-leaving-for-level > footer,
#home.is-leaving-for-level .recovery-success {
	pointer-events: none;
	animation: homeLeaveForLevel .5s cubic-bezier(.7, 0, .3, 1) forwards;
}

@keyframes homeLeaveForLevel {
	to {
		opacity: 0;
		transform: translate3d(0, -500px, 0);
	}
}

#game .fs-form-wrap.is-entering-from-home .fs-current .fs-anim-upper,
#game .fs-form-wrap.is-entering-from-home .fs-current .fs-anim-lower {
	animation: animShowNext .5s cubic-bezier(.7, 0, .3, 1) both .15s;
}

#game .fs-form-wrap.is-entering-from-home .fs-current .fs-anim-lower {
	animation-delay: .25s;
}

.level-card::before {
	content: '';
	position: absolute;
	top: 1px;
	right: 20px;
	left: 20px;
	z-index: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}

.level-card::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -24px;
	z-index: 0;
	width: 92px;
	height: 104px;
	background: linear-gradient(145deg, rgb(var(--game-primary-rgb) / .07), rgb(var(--game-primary-rgb) / .015));
	clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
	transform: translateY(-50%) rotate(7deg);
	pointer-events: none;
}

.level-card-number {
	position: relative;
	z-index: 1;
	display: grid;
	width: 58px;
	height: 66px;
	place-items: center;
	background: linear-gradient(145deg, var(--game-gold-light), var(--game-gold-dark));
	clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	filter: drop-shadow(0 0 5px rgb(var(--game-gold-rgb) / .62)) drop-shadow(0 5px 9px rgb(var(--game-shadow-rgb) / .24)) var(--game-gold-depth-filter);
}

.level-card-number::before {
	content: '';
	position: absolute;
	inset: 4px;
	background: linear-gradient(145deg, var(--color-primary), var(--color-notif));
	clip-path: inherit;
}

.level-card-number > span {
	position: relative;
	z-index: 1;
}

.level-card-content {
	position: relative;
	z-index: 1;
	display: block;
	min-width: 0;
}

.level-card-title,
.level-card-category {
	display: block;
}

.level-card-title {
	color: var(--game-card-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.level-card-category {
	margin-top: 3px;
	color: var(--game-card-muted);
	font-size: 14px;
	line-height: 1.25;
}

.level-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.level-card-badge {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	justify-content: center;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
}

.level-card-question-count {
	background: rgb(var(--game-primary-rgb) / .11);
	color: var(--game-card-muted);
}

.level-card-status {
	background: var(--game-card-status-background);
	color: var(--game-card-status-text);
}

.level-card-status.is-complete {
	background: #24713b;
	color: #fff;
}

.level-card-status-check {
	margin-right: 5px;
	font-size: 15px;
	line-height: 1;
}

@media (max-width: 360px) {
	.level-overview--extended .level-overview-track {
		height: 34px;
	}

	.level-overview--extended .level-overview-track li:first-child {
		flex-basis: 32px;
	}

	.level-overview--extended .level-progress-node,
	.level-overview--extended .level-reward-node {
		width: 32px;
		height: 34px;
		flex-basis: 32px;
	}

	.level-overview--extended .level-progress-node {
		font-size: 15px;
	}

	.level-overview--extended .level-reward-node img {
		width: 43px;
		height: 43px;
	}

	.level-card {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 10px;
		padding: 12px 44px 12px 10px;
	}

	.level-card-arrow {
		right: 17px;
	}

	.level-card-number {
		width: 50px;
		height: 58px;
		font-size: 17px;
	}

	.level-card-title {
		font-size: 16px;
	}

	.level-card-badge {
		padding-inline: 9px;
		font-size: 12px;
	}
}

.header-game{
position: relative;
height: 50px;
text-align:left;
padding-top:20px; 
}

#game .header-game{
padding-left: 30px;
}

.name-step-mascot {
	position: relative;
	box-sizing: border-box;
	width: 170px;
	height: 170px;
	margin: 0 auto 24px;
}

.name-step-mascot img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 11px rgb(var(--game-shadow-rgb) / .28));
}

.name-step-mascot::before {
	content: '';
	position: absolute;
	inset: 7% 2% 1%;
	z-index: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(var(--game-gold-rgb) / .62) 0, rgb(var(--game-gold-rgb) / .28) 46%, transparent 72%);
	filter: blur(9px);
	pointer-events: none;
}

.slide-name-step.fs-current .name-step-mascot {
	animation: name-mascot-circle-in .68s cubic-bezier(.2, .8, .25, 1.18) both;
}

.slide-name-step.fs-current .name-step-mascot::before {
	animation: name-mascot-glow-in .8s ease-out both;
}

@keyframes name-mascot-circle-in {
	0% {
		opacity: 0;
		transform: translateY(18px) scale(.72);
	}
	62% {
		opacity: 1;
		transform: translateY(-4px) scale(1.08);
	}
	80% {
		transform: translateY(2px) scale(.98);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes name-mascot-glow-in {
	0% {
		opacity: 0;
		transform: scale(.55);
	}
	65% {
		opacity: 1;
		transform: scale(1.14);
	}
	100% {
		opacity: .8;
		transform: scale(1);
	}
}

.name-question-wrap {
	position: relative;
}

.fs-fields > li label.fs-field-label.name-question,
.fs-fields > li .welcome-instruction {
	display: block;
	margin: 0;
	padding: 0 0 18px;
	color: var(--game-surface-text);
	font-size: clamp(20px, 5.4vw, 25px);
	font-weight: 500;
	line-height: 1.3;
	text-shadow: 0 2px 5px rgb(var(--game-shadow-rgb) / .24);
}

@media (max-height: 568px) {
	.name-step-mascot {
		width: 112px;
		height: 112px;
	}

	.fs-fields > li label.fs-field-label.name-question,
	.fs-fields > li .welcome-instruction {
		padding-bottom: 10px;
		font-size: 18px;
	}
}

.return img {
position: relative;
width: 50px;
height: 50px;
box-sizing: border-box;
border-radius: 12px;
padding: 6px;
border: 1px solid var(--game-back-border);
background: var(--game-back-background);
box-shadow:
	0 7px 18px rgb(var(--game-shadow-rgb) / .24),
	inset 0 1px 0 rgba(255, 255, 255, .2);
}

a.begin{
font-size: 17px;
font-family: 'Fredoka', system-ui, sans-serif;
padding: 0.8em 1.5em;
border-radius: 20px;
text-align: center;
color: #FFFFFF;
font-weight: 700;
}

a.back{
position: relative;
font-size: 1.2rem;
color:#FFFFFF;
font-family: 'Fredoka', system-ui, sans-serif;
padding: 0.6em 1.5em;
border-radius: 20px;
}

.logo-footer{
text-align: center;
padding: 70px 0 20px 0;
display: flex;
flex-direction: column;
gap: 20px;
}

footer{
background-color: #00000047;
font-size: 16px;
text-decoration: underline;
display: grid;
gap: 5px;
align-items: center;
justify-content: center;
padding: 15px 0;
text-align: center;
position: relative;
margin-top: 30px;
}

footer span{
margin-right: 20px;
}

footer a{
color:#FFFFFF;
}

/*Alignement*/
.text-center{
	text-align: center;
}

.text-bold{
	font-weight: 700;
}

.text-italic{
	font-style: italic;
}


.text-capitalize{
	text-transform: capitalize;
}

#scroll-wrapper {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
}

/*REPONSE*/
.slide-reponse{
	box-sizing: border-box;
	width: min(100%, 560px);
	margin: 0 auto;
	padding: 3em 1.5em 2em;
	text-align: center;
}

.slide-reponse h1 {
	margin: 24px 0 14px;
	font-size: clamp(30px, 9vw, 48px);
	line-height: 1.1;
}

.confirmation-status,
.confirmation-next {
	margin: 10px auto;
	font-size: 19px;
	line-height: 1.45;
}

a.confirmation-action {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 60px;
	margin: 28px auto 0;
}

.confirmation-mascot {
	display: block;
	width: min(54vw, 220px);
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 14px 16px rgb(var(--game-shadow-rgb) / .28));
}

/* Entrée de la confirmation : le fond reste fixe pour éviter tout clignotement. */
.confirmation-screen .confirmation-mascot {
	opacity: 0;
	transform: translate3d(0, 24px, 0) scale(.84);
	animation: confirmation-mascot-in .52s cubic-bezier(.2, .85, .3, 1.16) .02s both;
}

.confirmation-screen #confirmation-title,
.confirmation-screen .confirmation-status,
.confirmation-screen .confirmation-next,
.confirmation-screen .confirmation-action {
	opacity: 0;
	transform: translate3d(0, 16px, 0);
	animation: confirmation-content-in .38s ease-out both;
}

.confirmation-screen #confirmation-title {
	animation-delay: .14s;
}

.confirmation-screen .confirmation-status {
	animation-delay: .24s;
}

.confirmation-screen .confirmation-next {
	animation-delay: .31s;
}

.confirmation-screen .confirmation-action {
	animation-delay: .36s;
}

@keyframes confirmation-mascot-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 24px, 0) scale(.84);
	}
	68% {
		opacity: 1;
		transform: translate3d(0, -5px, 0) scale(1.035);
	}
	84% {
		transform: translate3d(0, 2px, 0) scale(.99);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes confirmation-content-in {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.confirmation-screen .confirmation-mascot,
	.confirmation-screen #confirmation-title,
	.confirmation-screen .confirmation-status,
	.confirmation-screen .confirmation-next,
	.confirmation-screen .confirmation-action {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

#reglement-page h2 {
	margin-bottom: 20px;
}

/*------------------- pdf ---------------------*/
#pdf-viewer {
	height: 450px;
}

#pdf-viewer.in-game{
	height: 300px;
}

#pdf-viewer iframe {
	border: 10px solid #031c27;
}

#reglement-page {
	margin-top: 40px;
}

.reponse{
font-family: 'Fredoka', system-ui, sans-serif;
font-size: 23px;
}

/* Main form wrapper */
.fs-form-wrap {
	position: relative;
	width: 100%;
	height: 100%;
}

.overview .fs-form-wrap {
	height: auto;
}

/* Form */
.fs-form {
	position: relative;
	text-align: left;
	font-size: 2em;
}

.no-js .fs-form {
	padding: 0 0 6em 0;
}

/* Views (fullscreen and overview)*/
.fs-form-full {
	top: 22%;
	margin: 0 auto;
	width: 100%;
	max-width: 560px;
}

/* En desktop, même zone intérieure que les cartes de l’accueil (560 - 2 × 20 px). */
@media screen and (min-width: 768px) {
	#game > .container {
		padding-inline: 20px;
	}

	#game .header-game {
		padding-left: 0;
	}

	#game .fs-form {
		left: auto;
		right: auto;
	}

	#game .fs-form-full,
	#game .fs-form-overview {
		width: 100%;
		padding-inline: 0;
	}
}

.fs-form-overview {
	padding: 2.5em 20px 6em;
	width: 100%;
	height: 100%;
	background: #fffed8;
	color: #3b3f45;
	font-size: 1.2em;
}

.fs-form-overview .fs-fields::before {
	display: block;
	margin-bottom: 2.5em;
	color: #3b3f45;
	content: 'Review & Submit';
	font-weight: 700;
	font-size: 1.85em;
}

/* Switch view animation (we hide the current view, switch the view class and show it again) */
.fs-form.fs-show {
	-webkit-animation: animFadeIn 0.5s;
	animation: animFadeIn 0.5s;
}

@-webkit-keyframes animFadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes animFadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

.fs-form.fs-show .fs-fields {
	-webkit-animation: animMove 0.5s;
	animation: animMove 0.5s;
}

@-webkit-keyframes animMove {
	from { top: 100px; }
}

@keyframes animMove {
	from { top: 100px; }
} /* we need to use top here because otherwise all our fixed elements will become absolute */

/* Visibility control of elements */
.fs-form-full .fs-fields > li,
.fs-nav-dots, 
.fs-progress,
.fs-numbers,
button.fs-continue,
.fs-message-error {
	visibility: hidden;
}

.no-js .fs-form-full .fs-fields > li {
	visibility: visible;
}

/*Ajout*/
.fs-show {
	visibility: visible !important;
}


/*Ajout*/
.fs-numbers.fs-show, .fs-nav-dots.fs-show, .fs-progress.fs-show{
	visibility: hidden!important;
}

/* Some general styles */
.fs-form-wrap button {
	border: none;
	background: none;
}

.fs-form-wrap button[disabled] {
	opacity: 0.3;
	pointer-events: none;
}

.fs-form-wrap button:focus-visible,
.fs-fields textarea:focus-visible {
	outline: 3px solid var(--game-gold-border);
	outline-offset: 3px;
}

.fs-form-wrap input:not([type="radio"]):not([type="checkbox"]):focus-visible {
	border-bottom-color: var(--game-focus-ring);
	outline: none;
	box-shadow: 0 3px 0 -1px var(--game-focus-ring);
}

/* Hide the submit button */
.fs-form .fs-submit {
	display: none;
}

/* Fields */
.fs-fields {
	position: relative;
	margin: 0 auto;
	padding: 0;
	top: 20px;
	list-style: none;
}

.fs-fields > li {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: none;
}

.fs-fields > li:hover {
	z-index: 999;
}

.js .fs-form-full .fs-fields > li {
	position: absolute;
	width: 100%;
}

.fs-form-overview .fs-fields > li,
.no-js .fs-form .fs-fields > li {
	margin: 1em 0 2em;
	padding: 0 0 2em 0;
	border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Labels & info */
.fs-fields > li label {
	position: relative;
	line-height: 1.3em;
}

.fs-fields > li label.fs-field-label, .fs-fields > li p.fs-field-label{
	display: inline-block;
	padding: 0 5px 0rem 0;
	pointer-events: none;
	font-family: 'Fredoka', system-ui, sans-serif;
}

.fs-fields #field__prenom {
	margin-top:1rem!important;
}

.fs-form-full .fs-fields > li label[data-info]:hover::before {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* Inputs */
.fs-fields input {
	display: block;
	margin: 0;
	padding: 0 0 0.15em;
	width: 100%;
	border: none;
	border-bottom: 2px solid var(--game-field-border);
	background-color: transparent;
	color: var(--game-field-text);
	text-overflow: ellipsis;
	font-size: 1.2em;
	border-radius: 0;
	transition: box-shadow 0.1s ease-out 0s;
	font-weight: 500;
}

.fs-fields input[type="email"], .fs-fields input[type="tel"], .fs-fields #field__cpostal, .fs-fields #field__ville, .fs-fields #field__fonction {
	font-size: 1em;
	font-weight: 400;
}

.fs-form-overview .fs-fields input {
	border-bottom-color: transparent;
	color: rgba(255,255,255,0.35);
}

.fs-form-overview .fs-fields input:focus {
	background-color: #fffed8; /* Fixes chrome bug with placeholder */
}

input:-webkit-autofill {
	box-shadow: inset 0 0 0px 9999px white;
 	-webkit-box-shadow: inset 0 0 0px 9999px white;
}

.fs-fields .fs-radio-custom input[type="radio"] {
	position: absolute;
	display: block;
	margin: 0 auto 20px;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.fs-fields > li .fs-radio-custom.reglement span {
	margin: 0 8%;
}

.fs-fields > li .fs-radio-custom span {
	display: inline-block;
	position: relative;
	padding: 20px 0;
	text-align: center;
	font-weight: 700;
	font-size: 60%;
}

.fs-fields > li.slide-question .fs-radio-custom span {
	display: block;
	padding: 0;
}

.question-progress {
	margin: 0 0 56px;
	font-family: 'Fredoka', system-ui, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.question-progress-label {
	display: block;
	color: var(--game-surface-text);
}

.question-progress-label > span {
	color: var(--game-surface-muted);
}

.question-progress-track {
	box-sizing: border-box;
	height: 12px;
	margin-top: 10px;
	padding: 2px;
	border: 1px solid var(--game-question-progress-border);
	border-radius: 999px;
	background: var(--game-question-progress-background);
	box-shadow: var(--game-question-progress-shadow);
}

.question-progress-track progress {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	appearance: none;
	-webkit-appearance: none;
	background: var(--game-question-progress-bar);
}

.question-progress-track progress::-webkit-progress-bar {
	border-radius: 999px;
	background: var(--game-question-progress-bar);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.question-progress-track progress::-webkit-progress-value {
	border-radius: 999px;
	background: var(--game-progress-fill);
	box-shadow: inset 0 1px rgba(255, 255, 255, .52), var(--game-progress-glow), var(--game-progress-depth-shadow);
}

.question-progress-track progress::-moz-progress-bar {
	border-radius: 999px;
	background: var(--game-progress-fill);
	box-shadow: inset 0 1px rgba(255, 255, 255, .52), var(--game-progress-glow), var(--game-progress-depth-shadow);
}

.fs-question-title {
	margin: 0 0 26px;
	color: inherit;
	font-family: 'Fredoka', system-ui, sans-serif;
	font-size: clamp(28px, 7vw, 40px);
	font-weight: 600;
	line-height: 1.2;
}

.fs-fields > li.slide-question .fs-radio-group {
	display: grid;
	gap: 24px;
}

.fs-fields > li.slide-question .fs-radio-custom label {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: var(--game-card-background);
	padding: 16px 22px;
	width: auto;
	min-height: 64px;
	height: auto;
	cursor: pointer;
	text-align: center;
	font-size: clamp(20px, 5vw, 22px) !important;
	border: 2px solid var(--game-card-border);
	font-family: 'Fredoka', system-ui, sans-serif;
	border-radius: 20px;
}

.fs-fields > li .fs-radio-custom span label {
	-webkit-transition: color 0.3s;
	transition: color 0.3s;
}

.fs-form-overview .fs-fields > li .fs-radio-custom span {
	max-width: 140px;
}

.fs-form-overview .fs-fields > li .fs-radio-custom span {
	font-size: 75%;
}

.fs-fields > li .fs-radio-custom label {
	display: block;
	padding-top: 100%;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.fs-fields .fs-radio-custom label::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background-position: 50% 0%;
	background-size: 75%;
	background-repeat: no-repeat;
	content: '';
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}

label.radio-conversion::first-letter {
    text-transform: uppercase;
}

.fs-fields .fs-radio-custom label.non::after {
	background-image: url(../img/non.svg);
}

.fs-fields .fs-radio-custom label.oui::after {
	background-image: url(../img/oui.svg);
}

.slide-consent .fs-field-label {
	padding-bottom: 0.5rem;
}

.slide-welcome {
	text-align: center;
}

.welcome-go-mascot {
	width: 180px;
	height: 180px;
	margin: 42px auto 10px;
	opacity: 0;
	transform: translate3d(0, 34px, 0) scale(.72) rotate(-5deg);
	pointer-events: none;
}

.welcome-go-mascot::before {
	content: '';
	position: absolute;
	inset: 12%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(var(--game-gold-rgb) / .62), rgb(var(--game-gold-rgb) / .22) 48%, transparent 72%);
	filter: blur(12px);
}

.welcome-go-mascot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 12px 12px rgb(var(--game-shadow-rgb) / .3));
}

.welcome-go-mascot.is-visible {
	animation: welcome-go-mascot-in .7s cubic-bezier(.2, .85, .3, 1.2) both;
}

.fs-fields > li p.fs-field-label.welcome-player-message {
	display: block;
	margin: 0;
	padding: 0;
	opacity: 0;
	font-size: clamp(24px, 7vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	transform: translate3d(0, 18px, 0);
}

.fs-fields > li p.fs-field-label.welcome-player-message.is-visible,
#game .fs-form-wrap:not(.is-welcome-sequencing) .slide-welcome.fs-current button.fs-continue {
	animation: welcome-player-message-in .42s ease-out both;
}

.fs-form-wrap.is-welcome-sequencing .slide-welcome button.fs-continue {
	visibility: hidden !important;
	opacity: 0;
	pointer-events: none;
}

@keyframes welcome-go-mascot-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 34px, 0) scale(.72) rotate(-5deg);
	}
	65% {
		opacity: 1;
		transform: translate3d(0, -8px, 0) scale(1.06) rotate(2deg);
	}
	82% {
		transform: translate3d(0, 3px, 0) scale(.98) rotate(-1deg);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1) rotate(0);
	}
}

@keyframes welcome-player-message-in {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (max-height: 620px) {
	.welcome-go-mascot {
		width: 135px;
		height: 135px;
		margin-top: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slide-name-step.fs-current .name-step-mascot {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.slide-name-step.fs-current .name-step-mascot::before {
		animation: none;
		opacity: .8;
		transform: none;
	}

	.welcome-go-mascot.is-visible,
	.fs-fields > li p.fs-field-label.welcome-player-message.is-visible,
	#game .fs-form-wrap:not(.is-welcome-sequencing) .slide-welcome.fs-current button.fs-continue {
		animation: none;
		opacity: 1;
		transform: none;
	}
}





.consent-question-mascot {
    width: clamp(110px, 34vw, 145px);
    aspect-ratio: 1;
    margin: 0 auto 16px;
    pointer-events: none;
}

.consent-question-mascot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgb(var(--game-shadow-rgb) / .28));
}
.consent-inline-link {
    position: relative;
    z-index: 1;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.consent-inline-link:hover,
.consent-inline-link:focus-visible {
    color: inherit;
    text-decoration-thickness: 2px;
}
.block--checkbox-consent {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.consent-legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*------CHECKBOX*------*/

.fs-checkbox-group {
    display: grid;
	gap: 30px;
}

.fs-checkbox-custom {
	display: flex;
	align-items: flex-start;
	position: relative;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0px 0 5px 50px;
	margin-bottom: 10px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	font-size: 20px !important;
	line-height: 1.35;
}

/* Hide the browser's default checkbox */
.fs-checkbox-custom input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
  
/* Create a custom checkbox */
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 35px;
	width: 35px;
	background-color: #eee;
	border-radius: 10px;
}

/* On mouse-over, add a grey background color */
.fs-checkbox-custom:hover input ~ .checkmark {
	background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.fs-checkbox-custom input:checked ~ .checkmark {
	background-color: #ffffff;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */
.fs-checkbox-custom input:checked ~ .checkmark:after {
	display: block;
}

/* Style the checkmark/indicator */
.fs-checkbox-custom .checkmark:after {
	left: 13px;
    top: 5px;
    width: 10px;
    height: 20px;
    border: solid #00814e;
    border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
  }

/*------FIN CHECKBOX------*/  

.fs-fields .fs-radio-custom label:hover::after,
.fs-fields input[type="radio"]:focus + label::after,
.fs-fields input[type="radio"]:checked + label::after {
	opacity: 1;
}

.fs-fields .fs-radio-custom input[type="radio"]:checked + label {
	color: #fffed8;
}

.fs-form-overview .fs-fields .fs-radio-custom input[type="radio"]:checked + label {
	color: rgba(0,0,0,0.8);
}

.fs-fields textarea {
	padding: 0.25em;
	width: 100%;
	height: 200px;
	border: 2px solid rgba(0,0,0,0.2);
	background-color: transparent;
	color: #fffed8;
	font-weight: 700;
	font-size: 0.85em;
	resize: none;
}

.fs-form-overview .fs-fields textarea {
	height: 100px;
	color: rgba(0,0,0,0.5);
}

.fs-form-overview .fs-fields textarea {
	padding: 0;
	border-color: transparent;
}

.fs-form-overview .fs-fields textarea:focus {
	background: #fffed8;
}

/* placeholder */
.fs-fields input::-webkit-input-placeholder,
.fs-fields textarea::-webkit-input-placeholder {
	color: var(--game-field-placeholder);
}

.fs-fields input:-moz-placeholder,
.fs-fields textarea:-moz-placeholder {
	color: var(--game-field-placeholder);
}

.fs-fields input::-moz-placeholder,
.fs-fields textarea::-moz-placeholder {
	color: var(--game-field-placeholder);
}

.fs-fields input:-ms-input-placeholder,
.fs-fields textarea:-ms-input-placeholder {
	color: var(--game-field-placeholder);
}

/* Hide placeholder when focused in Webkit browsers */
.fs-fields input:focus::-webkit-input-placeholder {
	color: transparent;
}

/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: rgb(255, 255, 255);
  box-shadow: 0 0 0px 1000px #000 inset;
  -webkit-box-shadow: 0 0 0px 1000px #000 inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Animations for numbers */
/* Show next number */
.fs-numbers.fs-show-next .fs-number-new {
	-webkit-animation: animMoveUpFromDown 0.4s both;
	animation: animMoveUpFromDown 0.4s both;
}

@-webkit-keyframes animMoveUpFromDown {
	from { -webkit-transform: translateY(100%); }
	to { -webkit-transform: translateY(0); }
}

@keyframes animMoveUpFromDown {
	from { -webkit-transform: translateY(100%); transform: translateY(100%); }
	to { -webkit-transform: translateY(0); transform: translateY(0); }
}

.fs-numbers.fs-show-next .fs-number-current {
	-webkit-animation: animMoveUp 0.4s both;
	animation: animMoveUp 0.4s both;
}

@-webkit-keyframes animMoveUp {
	to { -webkit-transform: translateY(-100%); }
}

@keyframes animMoveUp {
	to { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
}

/* Show previous number */
.fs-numbers.fs-show-prev .fs-number-new {
	-webkit-animation: animMoveDownFromUp 0.4s both;
	animation: animMoveDownFromUp 0.4s both;
}

@-webkit-keyframes animMoveDownFromUp {
	from { -webkit-transform: translateY(-100%); }
	to { -webkit-transform: translateY(0); }
}

@keyframes animMoveDownFromUp {
	from { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
	to { -webkit-transform: translateY(0); transform: translateY(0); }
}

.fs-numbers.fs-show-prev .fs-number-current {
	-webkit-animation: animMoveDown 0.4s both;
	animation: animMoveDown 0.4s both;
}

@-webkit-keyframes animMoveDown {
	to { -webkit-transform: translateY(100%); }
}

@keyframes animMoveDown {
	to { -webkit-transform: translateY(100%); transform: translateY(100%); }
}

/* Continue button and submit button */
button.fs-continue,
button.fs-submit {
	min-height: 60px;
	padding: 0.6em 1.5em;
	font-weight: 700;
	color:#ffffff;
}

button.fs-continue {
	position: absolute;
	bottom: 0;
	width: 80%;
	margin: 0 40px 60px 0;
	border-radius: 24px;
	font-size: 1.2rem;
	transform: translate(-50%, -50%);
	margin-right: 50%;
	margin-left: 50%;
	transition: background-color .3s ease, color .3s ease, opacity .3s ease;
}

#festilight button.fs-continue {
	margin-bottom: 0;
}

button.fs-submit {
	border-radius: 20px;
	width: 100%;
	position: relative;
	top: 400px;
	font-size: 1.2rem;
}

.fs-form-overview .fs-submit,
.no-js .fs-form .fs-submit  {
	display: block;
	float: right;
}

.fs-form-overview .fs-submit {
	border-color: #232529;
	color: #232529;
}

button.fs-submit:hover,
button.fs-submit:focus,
button.fs-continue:hover {
	color: var(--game-button-text);
	transition: background-color .3s ease, color .3s ease, opacity .3s ease;
}

/* Bouton photo */
.btn-action {
    border-radius: 40px;
    width: 80px;
	height: 80px;
	list-style: 20px;
	display: flex;
    align-items: center;
    justify-content: center;
}

/* Error message */
.fs-message-error {
	position: absolute;
	bottom: 75%;
	left: 50%;
	z-index: 800;
	max-width: 560px;
	width: 100%;
	color: #c6292a;
	font-weight: 700;
	font-size: 1em;
	opacity: 0;
	-webkit-transform: translate3d(-50%,-5px,0);
	transform: translate3d(-50%,-5px,0);
}

.fs-message-error.fs-show {
	opacity: 1;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s;
	-webkit-transform: translate3d(-50%,0,0);
	transform: translate3d(-50%,0,0);
	background: #ffffffa6;
	text-align: center;
}

/* Animation classes & animations */
.fs-form li.fs-current {
	visibility: visible;
}

.fs-form li.fs-hide,
.fs-form li.fs-show {
	pointer-events: none;
}

/* Hide current li when navigating to next question */
.fs-form .fs-display-next .fs-hide {
	visibility: visible;
}

.fs-form .fs-display-next .fs-hide .fs-anim-lower,
.fs-form .fs-display-next .fs-hide .fs-anim-upper {
	-webkit-animation: animHideNext 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
	animation: animHideNext 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
}

.fs-form .fs-display-next .fs-hide .fs-anim-lower {
	-webkit-animation-delay: 0.1s;
	animation-delay: 0.1s;
}

@-webkit-keyframes animHideNext {
	to { opacity: 0; -webkit-transform: translate3d(0,-500px,0); }
}

@keyframes animHideNext {
	to { opacity: 0; -webkit-transform: translate3d(0,-500px,0); transform: translate3d(0,-500px,0); }
}

/* Show new li when navigating to next question */
.fs-form .fs-display-next .fs-show .fs-anim-lower,
.fs-form .fs-display-next .fs-show .fs-anim-upper {
	-webkit-animation: animShowNext .5s cubic-bezier(0.7,0,0.3,1) both 0.15s;
	animation: animShowNext 0.5s cubic-bezier(0.7,0,0.3,1) both 0.15s;
}

.fs-form .fs-display-next .fs-show .fs-anim-lower {
	-webkit-animation-delay: 0.25s;
	animation-delay: 0.25s;
}

@-webkit-keyframes animShowNext {
	from { opacity: 0; -webkit-transform: translate3d(0,500px,0); }
}

@keyframes animShowNext {
	from { opacity: 0; -webkit-transform: translate3d(0,500px,0); transform: translate3d(0,500px,0); }
}

/* Hide current li when navigating to previous question */
.fs-form .fs-display-prev .fs-hide {
	visibility: visible;
}

.fs-form .fs-display-prev .fs-hide .fs-anim-lower,
.fs-form .fs-display-prev .fs-hide .fs-anim-upper {
	-webkit-animation: animHidePrev 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
	animation: animHidePrev 0.5s cubic-bezier(0.7,0,0.3,1) forwards;
}

.fs-form .fs-display-prev .fs-hide .fs-anim-upper {
	-webkit-animation-delay: 0.1s;
	animation-delay: 0.1s;
}

@-webkit-keyframes animHidePrev {
	to { opacity: 0; -webkit-transform: translate3d(0,500px,0); }
}

@keyframes animHidePrev {
	to { opacity: 0; -webkit-transform: translate3d(0,500px,0); transform: translate3d(0,500px,0); }
}

/* Show new li when navigating to previous question */
.fs-form .fs-display-prev .fs-show .fs-anim-lower,
.fs-form .fs-display-prev .fs-show .fs-anim-upper {
	-webkit-animation: animShowPrev 0.5s cubic-bezier(0.7,0,0.3,1) both 0.15s;
	animation: animShowPrev 0.5s cubic-bezier(0.7,0,0.3,1) both 0.15s;
}

.fs-form .fs-display-prev .fs-show .fs-anim-upper {
	-webkit-animation-delay: 0.25s;
	animation-delay: 0.25s;
}

@-webkit-keyframes animShowPrev {
	from { opacity: 0; -webkit-transform: translate3d(0,-500px,0); }
}

@keyframes animShowPrev {
	from { opacity: 0; -webkit-transform: translate3d(0,-500px,0); transform: translate3d(0,-500px,0); }
}

/* Remove IE clear cross */
input[type=text]::-ms-clear {
    display: none;
}

#myform video {
    width: 100%;
}

/*Ajuste pour l'orientation en paysage*/
@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
	h2{
	font-size: 2.5rem;
	}

	.fs-form-wrap{
	height: 100vh;
	}

}

/* Adjust form for smaller screens */
@media screen and (max-width: 52.5em) {
	body {
		min-height: 500px;
	}

	.fs-form-wrap {
		font-size: 65%;
	}

	.fs-form {
		top: 1em;
		right: 2em;
		left: 0;
		padding: 0 1.5em 0 1.5em;
		width: auto;
		font-size: 2em;
	}

	.fs-form.fs-form-overview {
		top: 0;
		right: 0;
		padding: 1.5em 1em 8em 1em;
		font-size: 1.5em;
	}

	.fs-numbers {
		margin: 20px;
	}

	.fs-nav-dots {
		right: 25px;
	}

	button.fs-submit {
		width: 100%;
		font-size: 1.2rem;
		position: relative;
		top: 400px;
	}

	.fs-message-error {
		bottom: 0em;
		left: 0;
		padding: 15px 40px 15px 40px;
		width: 100%;
		font-size: 1rem;
		-webkit-transform: translate3d(0,-5px,0);
		transform: translate3d(0,-5px,0);
	}

	.fs-message-error.fs-show {
		-webkit-transform: translate3d(0,0,0);
		transform: translate3d(0,0,0);
	}
}

@media screen and (min-width: 320px) and (max-width: 480px) {
	body.fixed{
		position: unset;
		overflow: unset;
	}


	.slide-consent .fs-checkbox-group {
		gap: 20px;
	}

    .slide-consent .consent-question-mascot {
        width: 142px;
        margin-bottom: 12px;
    }

	button.fs-continue {
		left: 50%;
		bottom: calc(14px + env(safe-area-inset-bottom));
		margin: 0;
		transform: translateX(-50%);
	}

	body#game label,
	#game .welcome-instruction {
    font-size: 24px;
	}

}

/* Cacher l'image avec l'ID #mascotte sur l'iPhone SE 1ère génération */
@media only screen and (max-height: 568px) {
    #game #mascotte {
        display: none!important;
    }

	.fs-fields > li label.fs-field-label, .fs-fields > li p.fs-field-label {
		padding: 0 5px 1rem 0;
	}

    .slide-consent .consent-question-mascot {
        width: 92px;
        margin-bottom: 8px;
    }

	.fs-checkbox-custom {
		font-size: 18px !important;
	}

	.fs-checkbox-group {
		gap: 8px;
	}

	.fs-checkbox-custom {
		min-height: 38px;
		margin-bottom: 4px;
	}

	.question-progress {
		margin-bottom: 16px;
	}

	.fs-question-title {
		margin-bottom: 18px;
		font-size: clamp(25px, 6vw, 32px);
	}

	.fs-fields > li.slide-question .fs-radio-group {
		gap: 16px;
	}

	.fs-fields > li.slide-question .fs-radio-custom label {
		min-height: 58px;
		padding: 13px 18px;
		font-size: 18px !important;
	}
}

/* Respecter le réglage système sans modifier l'expérience standard. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}

}


.cgu-page .legal-regulation-content h3 {
	margin: 22px 0 9px;
	color: var(--game-card-text);
	font: 700 18px/1.25 "Fredoka", sans-serif;
}

.cgu-page .legal-regulation-content ul {
	margin: 0 0 16px;
	padding-left: 24px;
}

.cgu-page .legal-regulation-content a {
	color: var(--game-card-text);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}




/* Lots configurés du jeu : bouton d’accueil et variante du dialogue commun. */
.home-prizes-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 26px 0 0;
	padding: 13px 16px;
	border: 1px solid var(--game-surface-muted);
	border-radius: 14px;
	background: rgb(255 255 255 / .1);
	color: var(--game-surface-text);
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
}

.home-prizes-button:hover {
	background: rgb(255 255 255 / .2);
	color: var(--game-surface-text);
}

.home-prizes-button img {
	flex: 0 0 24px;
}

.home-prizes-dialog[open] {
	display: flex;
	flex-direction: column;
}

.home-prizes-dialog {
	box-sizing: border-box;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: hidden;
	overflow-wrap: anywhere;
	padding: 26px 24px;
	text-align: left;
}

.home-prizes-dialog > :not(.home-prizes-content) {
	flex-shrink: 0;
}

.home-prizes-dialog .reward-dialog-close {
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
}

.home-prizes-dialog .reward-dialog-gift {
	width: 44px;
	height: 44px;
	margin: 0 0 14px;
}

.home-prizes-dialog h2 {
	margin: 0 36px 8px 0;
}

.home-prizes-content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: 22px 0 0;
}

.home-prizes-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* En très faible hauteur, laisser défiler la modale entière. */
@media (max-height: 480px) {
	.home-prizes-dialog[open] {
		display: block;
		overflow-y: auto;
	}

	.home-prizes-content {
		overflow: visible;
	}
}
.home-prizes-list li + li,
.home-prizes-dialog .home-prizes-acknowledgements {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgb(var(--game-primary-rgb) / .15);
}

.home-prize-quantity {
	display: block;
	margin-top: 8px;
	color: var(--game-dialog-muted);
	font-size: 14px;
}

.home-prizes-dialog .home-prizes-conditions {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgb(var(--game-primary-rgb) / .15);
	font-size: 15px;
}

/* Étapes dans le flux : page défilante et bouton après les champs. */
#game:has([data-inline-continue].fs-current) {
	position: relative;
	height: auto;
	overflow: auto;
}

#game:has([data-inline-continue].fs-current) > .container,
#game .fs-form-wrap:has([data-inline-continue].fs-current) {
	height: auto;
}

#game .fs-form-wrap:has([data-inline-continue].fs-current) .fs-form-full {
	top: 0;
	margin-top: 28px;
	padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

#game .fs-form-wrap:has([data-inline-continue].fs-current) .fs-fields {
	top: 0;
}

/* Les étapes invisibles ne doivent pas prolonger la page affichée. */
#game .fs-form-wrap:has([data-inline-continue].fs-current) > .fs-controls,
#game .fs-fields:has(> [data-inline-continue].fs-current) > li:not(.fs-current):not(.fs-hide) {
	display: none;
}

#game .fs-fields > li[data-inline-continue] {
	max-height: none;
	padding: 0 12px;
	overflow: visible;
}

#game .fs-fields > li[data-inline-continue].fs-current {
	position: relative;
}

#game [data-inline-continue] button.fs-continue {
	visibility: inherit;
	position: relative;
	left: auto;
	bottom: auto;
	display: block;
	width: 100%;
	margin: 24px 0 0;
	transform: none;
}

@media (max-width: 480px), (max-height: 600px) {
	#game .slide-consent .fs-field-label {
		font-size: 24px;
		line-height: 1.3;
	}

	#game .slide-consent .consent-question-mascot {
		width: 100px;
		margin-bottom: 12px;
	}
}
