.carousel{
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	overflow: hidden;
}

.carousel ul{
	display: flex;
	padding:0;
	position:relative;
	transition: left 0.5s ease-in-out;
	left:0;
}
.carousel.no-transition ul {
    transition:none;
}

.carousel li {
	display:flex;
	flex: 1 0 100%;
	overflow: hidden;
	justify-content: center;
	top:0;
	left:0;	
}

.carousel li a {
	width: 100%;
}

.carousel figure{
	margin:0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.carousel .image-container{
	overflow: hidden;
	width: calc(100vw - 40px);
	height: 50vh;
	margin-bottom: 4vh;
	overflow: hidden;
	display:flex;
	justify-content: center;
	align-items: center; /* ici on peut agir sur la déformation des images*/
}

.carousel .counter {
	display: none;
}
.carousel li img{
	max-height:100%;
	max-width: 100%; 
}

.carousel figcaption{
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	align-items: flex-start;
	height: 32vh;
}

.carousel figcaption h2, .carousel figcaption h3{
	font-weight: normal;
	font-size:20px;
	line-height: 24px;
	margin:0;
	text-align: left;
}

[class$=-one] .carousel li {
	flex: 1 0 auto;
}

[class$=-one] .carousel figcaption {
	display: none;
}
[class$=-one] .carousel .puces{
	top:0;
}

[class$=-one] .carousel figcaption, [class$=-one] .carousel figcaption {
	display: none;
}

.carousel .puces{
	position:relative;
	top:-35vh;
	height: 12px;
	margin: 20px;
	display:flex;
	justify-content: center;
	gap: 5px;
}

.carousel .puce{
	height: 5px;
	width: 5px;
	box-sizing: border-box;
	border: 1px solid black;
	background-color: white;
	cursor: pointer;
}

.carousel .puce.active{
	background-color: black;
}

.carousel .fleche {
	display: none;
	cursor: pointer;
}

/* ----- FULLSCREEN MODE ------- */
[class$=-one] .carousel.fullscreen{
	position: fixed;
	top: calc(100px - 1.5em);
	left:0;
	height: 100vh;
	max-height: 100vh;
	background-color: white;
	z-index:10;
	margin:0;
}

[class$=-one] .carousel.fullscreen li{
	flex: 0 0 100%;
	margin:0;
	display: flex;
	justify-content: center;
	align-items: center;
}

[class$=-one] .carousel.fullscreen figure{
	min-height: 554px;
}

[class$=-one] .carousel.fullscreen div.image-container{
	height: auto;
	max-height: 69vh;
}

[class$=-one] .carousel.fullscreen div.image-container img{
	height: inherit;
	max-width:1125px;
	max-height: 69vh;
}

[class$=-one] .carousel.fullscreen .fleche {
	left:calc(50% - 562.5px);
	display: flex;
	height: inherit;
	max-height: 69vh;
	min-height: 554px;
	max-width: 1125px;
	z-index: 11;
}

[class$=-one] .carousel.fullscreen div.flechedroite {
	left: calc(50% + 562.5px - 20%);
}

[class$=-one] .carousel.fullscreen .fleche {
	background:none;
	background-color: transparent;
}

.closecross{
	display: none;
	z-index: 12;
}

[class$=-one] .carousel.fullscreen .closecross{
	display: block;
	position: fixed;
	top:89.7px;
	width:100%;
	max-width:1125px;
	right:calc(50% - 562.5px);
	width:30px;
	height:30px;
	background: url("../images/cross.c8bcc4436e68.svg");
	background-size:cover;
	cursor: pointer;
}

@media screen and (min-width: 1125px){
	/* ----------------- -CAROUSEL DESKTOP ----------- */
	.carousel div.image-container{
		height: auto;
		max-height: 69vh;
		min-height: 554px;
		margin:0;
	}
	
	.carousel figure figcaption, [class$=-one] .carousel.fullscreen figcaption{
		align-items: center;
		width: 100%;
		height:217px;
		display: block;
		margin-top: 40px;
	}
	.carousel figure figcaption h2, .carousel figure figcaption h3{
		text-align: center;
		font-weight: normal;
		font-size: 1rem;
	}

	.carousel div.puces{
		position: relative;
		top: -258px;
		z-index: 4;
	}

	.carousel div.fleche {
		height: auto;
		max-height: 69vh;
		min-height: 554px;
		width:20%;
		position: absolute;
		cursor: pointer;
	}

	.fleche:before {
		content: "";
		width: 100%;
		height: 100%;
		opacity: 0;
		background: url("../images/arrow.525a83c347a7.svg") no-repeat 0 50%;
		background-size:30px 30px;
		transition: opacity .3s;
	}


	.fleche:hover:before, .fleche:hover:after {
		opacity:1;
	}

	.flechegauche {
		visibility: hidden;
	}

	.flechedroite {
		right:0;
		transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-moz-transform: rotate(180deg);
		-o-transform: rotate(180deg);
	}

}


@media screen and (max-width: 1124px){

	[class$="-one"] .carousel.fullscreen {
		top: 62px;
	}
	
	[class$=-one] .carousel.fullscreen .fleche {
		display: none;
	}
	
	.carousel.fullscreen .puces {
		display: none;
	}
	
	[class$="-one"] .carousel.fullscreen div.image-container img {
		max-width: 100%;
	}
	
	.carousel.fullscreen ul,
	.carousel.fullscreen li a,
	.carousel.fullscreen figure
	{
		height: 100%;
	}
	
	[class$="-one"] .carousel.fullscreen div.image-container {
		max-height: initial;
		min-height: initial;
	}
	
	[class$="-one"] .carousel.fullscreen figcaption {
		display: flex;
	}

	.carousel figure figcaption h2, .carousel figure figcaption h3{
		text-align: center;
		font-weight: normal;
		font-size: 1rem;
	}
}
