/* @override 
	http://projets.cayzac.info/m-n/assets/css/bonneannee2024.css 
	https://bonneannee2024-preprod.m-n.fr/assets/css/bonneannee2024.css
	https://bonneannee2024-upcoop.m-n.fr/assets/css/bonneannee2024.css 
	
*/

@font-face {
    font-family: Choplin SemiBold;
    src: url(../fonts/Choplin-SemiBold.woff2) format("woff2"), 
    	 url(../fonts/Choplin-SemiBold.woff) format("woff"),
    	 url(../fonts/Choplin-SemiBold.otf) format("opentype");
    font-style: normal;
    font-weight: 400;
}
* {
	box-sizing: border-box;
}
body {
	position: relative;
	background-color: black;
	color: white;

	font-family: Choplin SemiBold, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	text-align: center;
	
	margin: 0;
	padding: 0;
	
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	height: 100dvh;
	max-height: -webkit-fill-available;
}
p {
	margin: 5px;
}
video {
    width: 100%;
/*    object-fit: cover;*/
	max-height: 100vh;
	position: relative;
	z-index: 2;
	cursor: pointer;
}
/* Le bouton */
#goVideo {
	cursor: pointer;
	position: relative;
	z-index: 10;
	width: 150px;
	height: 150px;
	padding-top: 50px;
	
	position: absolute;
	
	background-color: black;
	border-radius: 100%;

	transition: opacity 1s ease-in-out 0s, transform 1s ease-in-out 0s;
	opacity: 0;
	transform: scale(0.9);
}

#goVideo.paused {
	opacity: 1;
}
#goVideo.played {
	opacity: 0;
}
#goVideo:hover {
	transform: scale(1);
	text-decoration: underline;
}
/* Le texte du bouton */
#goVideo.paused .lire { display: block; }
#goVideo.played .lire { display: none; }
#goVideo.paused .arreter { display: none; }
#goVideo.played .arreter { display: block; }


/* L'icone du bouton */
span.play.pause {
	background-color: white;
	width: 30px;
	height: 30px;
	display: block;
	margin: auto;
}
.paused span.play.pause {
	clip-path: polygon(10% 0, 100% 50%, 10% 100%);
	transition: clip-path .3s ease .8s;
}

.played span.play.pause {
	clip-path: polygon(0 0, 33% 0, 33% 100%, 66% 100%, 66% 0%, 100% 0, 100% 100%, 0 100%);
	transition: clip-path .3s ease 0s;
}
/* Chargement en cours */
.loading {
	position: absolute;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
	
	width: 100vw;
	height: 100vh;
	
	/* */
/*	z-index: 1000;*/
}
.loading-inner {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	
	aspect-ratio: 16/9;
	width: 100vw;
	
	/* 	*/
/*	display: flex !important;
	opacity: 1 !important;*/
}
.loading img {
	margin: 15px auto 0px;
	width: 60px;
	display: block;
	opacity: 0;
}

/* Points de suspensions animés… */

.suspension,
.suspension::before,
.suspension::after {
	background-color: white;
	width: 3px;
	height: 3px;
	border-radius: .5px;
	transition-property: background-color;
}
.suspension {
	display: inline-block;
	position: relative;
	
	animation: points 1.0s ease-in-out 0s infinite;
	animation-delay: 0.33s;
	margin-left: 7px;
}
.suspension::before,
.suspension::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
}
.suspension::before {
	left: calc(0% - 6px);
	animation: points 1.0s ease-in-out 0s infinite;
	animation-delay: 0s;
	
}
.suspension::after {
	left: calc(100% + 3px);
	animation: points 1.0s ease-in-out 0s infinite;
	animation-delay: 0.66s;
	
}

@keyframes points {
    0% {
        background-color: white;
    }
    30% {
        background-color: white;
    }
    100% {
        background-color: black;
    }
}

/* Debug */
ul.debug {
	text-align: left;
	border-top: 3px dashed #fff;
	padding: 20px;
	position: absolute;
	bottom: 0;
	z-index: 100;
	margin-top: -140px;
	
	background-color: rgba(0,0,0,0.5);
	border-radius: 10px;
	
	font-size: 14px;
}
ul.debug img {
	margin: -47px auto auto;
	display: block;
	width: 50px;
}
ul.debug p {
	font-size: 24px;
	margin: 0 0 20px;
	text-align: center;
}
ul.debug p small {
	font-size: 9px;
}

ul.debug li strong {
	display: block;
	margin-bottom: 10px;
	letter-spacing: 1px;
}