html {
	height: 100%;
	margin: 0;
}

body {
	height: 100%;
	margin: 0;
}

body:not(.ready)>*:not(#splash) {
	display: none;
}

#splash {
	width: 100%;
	height: 100%;
}

header {
	position: fixed;
	top: 0;
	width: 100%;
}

#content {
	position: fixed;
	overflow-y: scroll;
	text-align: center;
	width: 100%;
}

/*
#sub-content {
	margin-left: auto;
	margin-right: auto;
}
*/

#sub-content {
	display: block;
	/* block pour que margin:auto fonctionne */
	width: 100%;
	/* prend 98% du parent #content */
	max-width: 1000px;
	/* limite sur très grands écrans */
	margin-left: auto;
	margin-right: auto;
	/* centre horizontalement */
}

footer {
	position: fixed;
	bottom: 0;
	width: 100%;
	left: 0;
	right: 0;
}

#competitions {
	display: none;
}

.dialog {
	display: none;
	z-index: 1000;
}

:root {
	--nb-messages-bandeau: 1;
}


/*
#bandeau {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 35px;
	overflow: hidden;
	position: relative;
}
#contenu-bandeau {
	position: absolute;
	height: 100%;
	animation: scroll calc(var(--nb-messages-bandeau) * 3s) linear infinite;
}
#bandeau .message {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-wrap: nowrap;
	color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
}
#bandeau .message-content {
	font-size: small;
}
#bandeau .message-info {
	font-size: xx-small; color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
}
@keyframes scroll {
    0% {
        top: 0;
    }
    50% {
        top: calc((var(--nb-messages-bandeau) - 1) * -100%);
    }
    100% {
        top: 0%;
    }
}
	*/

/* GESTION DU DEFILEMENT VERTICAL DES MESSAGES DU BANDEAU */
/*
	#bandeau {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 35px;
		overflow: hidden;
		position: relative;
	}
	
	#contenu-bandeau {
		position: absolute;
		height: calc(35px * var(--nb-messages-bandeau));
		animation: scrollAnimation calc(var(--nb-messages-bandeau) * 3s) linear infinite;
	}
	
	#bandeau .message {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 35px;
		text-wrap: nowrap;
		color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
	}
	
	#bandeau .message-content {
		font-size: small;
		font-weight: bold;
	}
	
	#bandeau .message-info {
		font-size: xx-small;
		color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
	}
	
	@keyframes scrollAnimation {
		0% { top: 0; }
		10% { top: 0; }
		20% { top: -35px; }
		30% { top: -35px; }
		40% { top: -70px; }
		50% { top: -70px; }
		60% { top: -105px; }
		70% { top: -105px; }
		80% { top: -140px; }
		90% { top: -140px; }
		100% { top: 0; }
	}
	
	*/

/* GESTION DU DEFILEMENT VERTICAL ET HORIZONTAL DES MESSAGES DU BANDEAU */
#bandeau {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 35px;
	/* Hauteur pour un seul message */
	overflow: hidden;
	position: relative;
}

#contenu-bandeau {
	position: absolute;
	height: calc(35px * var(--nb-messages-bandeau));
	/* Mettre à jour pour la hauteur d'un message */
	animation: scrollVertical calc(var(--nb-messages-bandeau) * 6s) linear infinite;
}

.message {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 35px;
	/* Hauteur pour un seul message */
	overflow: hidden;
	width: 100%;
}

.message-content {
	font-size: small;
	font-weight: bold;
	white-space: nowrap;
	/* Pour éviter que le texte se wrappe */
	overflow: hidden;
	position: relative;
}

.message-info {
	font-size: xx-small;
	color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
}

.message-content span {
	display: inline-block;
	position: absolute;
	animation: scrollHorizontal 2s linear infinite paused;
	/* Animation de défilement horizontal */
}

@keyframes scrollVertical {
	0% {
		top: 0;
	}

	10% {
		top: 0;
	}

	20% {
		top: -35px;
	}

	30% {
		top: -35px;
	}

	40% {
		top: -70px;
	}

	50% {
		top: -70px;
	}

	60% {
		top: -105px;
	}

	70% {
		top: -105px;
	}

	80% {
		top: -140px;
	}

	90% {
		top: -140px;
	}

	100% {
		top: 0;
	}
}

@keyframes scrollHorizontal {
	0% {
		left: 100%;
	}

	10% {
		left: 0;
	}

	90% {
		left: 0;
	}

	100% {
		left: -100%;
	}
}