/* CSS for this widget */

.carousel-card
{
	width: 100%;
	height: auto;
}

.text-wrapper
{
	position: absolute;
    top: 30%;
    /*background: rgba(55,55,55,0.5);*/
    padding: 0 10px 25px 11px;
    margin: 0px 10px;
    left: 0;
    color: #fff;
}

.button-1
{
	background-color: #ff0000;
	color: #fff;
	padding: 15px 20px;
}

.button-1-border
{
	border-radius: 5px;
}

.card-image
{
	padding: 0px 15px;
}
/*
.blog-posts-carousel {

	width: 100%;
	margin-bottom: rem(200px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 400ms linear, visibility 400ms linear;
	.flickity-viewport {
		overflow: visible;
	}

	&.enabled {
		opacity: 1;
		visibility: visible;
	}

	.car-post {

		&:hover {
			opacity: .2;
		}

		a:hover .car-title {
			background-size: 100% 1px;
		}
	
		width: 64%;
        padding: 0 11%;
		@include at-query($max, $portable) {
			width: 72%;
		}
		@include at-query($max, '1180px') {
			width: 82%;
		}
		@include at-query($max, $lap) {
			width: 92%;
			padding: 0 5%;
		}
		@include at-query($max, $palm) {
			width: 100%;
			padding: 0 2%;
		}

		opacity: .1;
		overflow: hidden;
		transition: opacity 400ms $easeInOutSine;

		.car-header {
			
			margin-bottom: 0;
			height: 0;
			width: 100%;
			position: relative;

			.car-info {
		    position: absolute;
		    top: 0;
		    left: -2.5%;
		    transform: rotate(270deg) translate3d(-100%, -100%, 0);
		    font-size: 0.9130434783rem;
		    text-transform: uppercase;
		    opacity: .25;
		    line-height: 1;
		    transform-origin: top left;
		    font-size: rem(13px);
			}

		}

		.car-image {
			width: 100%;
			height: 100%;
			max-width: none;
			position: absolute;
			top: 0;
			left: 0;
			opacity: 0;
			object-fit: contain;
			font-family: "object-fit: contain";
			transition: transform 800ms $easeInOutSine, opacity 300ms linear;

			&.lazyloaded { opacity: 1; }
			&.native-lz { opacity: 1; }
		}

		.car-content {
			@include clft-anim-regular(20px, 200ms);
			text-align: left;
    		margin: 50px 9% 0;

    		@include at-query($max, '768px') {
				margin: 50px 5% 0;
			}
		}

		.car-meta {

			font-size: rem(18px);
			opacity: .35;
			display: block;
			margin-top: 20px;

			@include at-query($max, $lap) {
				opacity: 1;
			}

		}

		.car-title {

			@include artisize(1.139vw, 1.4915vw, 2.0171vw, 2.9375vw, 5.5015vw, 39px);
			font-weight: 600;
			line-height: 1.3;
			margin: 25px 0 0 0;

			display: inline;
			transition: all 150ms linear;

			background-size: 0% 1px;
			background-position: 0 calc(100% + -1px);
			background-repeat: no-repeat;

			&:after {
				content: ".";
			}

		}

		.car-excerpt {
			@include artisize(1.0579vw, 1.36991vw, 1.6915vw, 2.535vw, 4.73791vw, 27px);
			font-weight: 300;
			margin: 25px 0 0 0;
			display: inline;
			margin-left: 10px;
		}
	
		&.is-selected {

			opacity: 1;

			.car-content {
				@include clft-anim-hover;
			}
	
			.car-image {
				transform: translate3d(0, 0, 0);
			}

		}

		&.after-selected .car-image {
			transform: translate3d(-100px, 0, 0);
		}
		&.before-selected .car-image {
			transform: translate3d(100px, 0, 0);
		}

	}

	+ .entry-title {
		display: none;
	}

}

*/

.blog-posts-carousel {
    width: 100%;
    margin-bottom: 200px; /* Remplacé rem() par une valeur fixe */
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms linear, visibility 400ms linear;
}

.blog-posts-carousel .flickity-viewport {
    overflow: visible;
}

.blog-posts-carousel.enabled {
    opacity: 1;
    visibility: visible;
}

.blog-posts-carousel .car-post {
    width: 64%;
    padding: 0 11%;
    opacity: 0.1;
    overflow: hidden;
    transition: opacity 400ms ease-in-out;
}

.blog-posts-carousel .car-post:hover {
    opacity: 0.2;
}

.blog-posts-carousel .car-post a:hover .car-title {
    background-size: 100% 1px;
}

@media (max-width: 1180px) {
    .blog-posts-carousel .car-post {
        width: 82%;
    }
}

@media (max-width: 1024px) {
    .blog-posts-carousel .car-post {
        width: 92%;
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .blog-posts-carousel .car-post {
        width: 100%;
        padding: 0 2%;
    }
}

.blog-posts-carousel .car-header {
    margin-bottom: 0;
    height: 0;
    width: 100%;
    position: relative;
}

.blog-posts-carousel .car-header .car-info {
    position: absolute;
    top: 0;
    left: -2.5%;
    transform: rotate(270deg) translate3d(-100%, -100%, 0);
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.25;
    line-height: 1;
    transform-origin: top left;
}

.blog-posts-carousel .car-image {
    width: 100%;
    height: 100%;
    max-width: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    object-fit: contain;
    transition: transform 800ms ease-in-out, opacity 300ms linear;
}

.blog-posts-carousel .car-image.lazyloaded,
.blog-posts-carousel .car-image.native-lz {
    opacity: 1;
}

.blog-posts-carousel .car-content {
    text-align: left;
    margin: 50px 9% 0;
}

@media (max-width: 768px) {
    .blog-posts-carousel .car-content {
        margin: 50px 5% 0;
    }
}

.blog-posts-carousel .car-meta {
    font-size: 18px;
    opacity: 0.35;
    display: block;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .blog-posts-carousel .car-meta {
        opacity: 1;
    }
}

.blog-posts-carousel .car-title {
    font-weight: 600;
    line-height: 1.3;
    margin: 25px 0 0 0;
    display: inline;
    transition: all 150ms linear;
    background-size: 0% 1px;
    background-position: 0 calc(100% + -1px);
    background-repeat: no-repeat;
}

.blog-posts-carousel .car-title:after {
    content: ".";
}

.blog-posts-carousel .car-excerpt {
    font-weight: 300;
    margin: 25px 0 0 10px;
    display: inline;
}

.blog-posts-carousel .car-post.is-selected {
    opacity: 1;
}

.blog-posts-carousel .car-post.is-selected .car-image {
    transform: translate3d(0, 0, 0);
}

.blog-posts-carousel .car-post.after-selected .car-image {
    transform: translate3d(-100px, 0, 0);
}

.blog-posts-carousel .car-post.before-selected .car-image {
    transform: translate3d(100px, 0, 0);
}

.blog-posts-carousel + .entry-title {
    display: none;
}

.flickity-button:hover {
  color: black !important;
}