/**
 * NOVA Carousel Widget Styles
 * Complete and Professional Configuration
 */

/* ============================================
   MAIN WIDGET CONTAINER
   ============================================ */

.nova-carousel-widget {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* ============================================
   CONTAINER LAYOUT
   ============================================ */

.nova-carousel-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	box-sizing: border-box;
}
.nova-carousel-container > * {
	height: auto !important;
}
.nova-carousel-content {
	flex: 0 0 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 0;
	max-width: 400px;
	min-width: 0;
	width: auto;
	box-sizing: border-box;
}

.nova-carousel-title {
	margin: 0 0 20px 0;
	padding: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	width: 100%;
}
.nova-carousel-item-text {
    margin: 0;
}
.nova-carousel-navigation > button {
    position: initial !important;
    margin: 0 !important;
	background: #fff !important;
}
.nova-carousel-navigation .swiper-button-prev:after, .nova-carousel-navigation .swiper-button-next:after {
    font-size: 20px;
}
.nova-carousel-description {
	margin: 0 0 0 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
	width: 100%;
}
.nova-carousel-item-date {
    margin: 0 !important;
}
.nova-carousel-button {
	display: inline-block;
	padding: 12px 24px;
	background-color: #0073aa;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.nova-carousel-button:hover {
	background-color: #005a87;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nova-carousel-navigation {
	display: flex;
	flex-direction: row;
	gap: 4px;
	align-items: center;
	justify-content: flex-start;
}

.nova-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	background-color: #ffffff;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	pointer-events: auto !important;
}

.nova-carousel-nav:hover {
	background-color: #f5f5f5;
	border-color: #0073aa;
}

.nova-carousel-nav svg {
	width: 24px;
	height: 24px;
}

.nova-carousel-nav.swiper-button-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */

.nova-carousel-slider {
	width: 100%;
	position: relative;
	overflow: hidden;
	/* Optimisations pour drag and drop fluide */
	touch-action: pan-y pinch-zoom;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	will-change: transform;
}

.nova-carousel-track {
	display: flex;
	width: 100%;
}

/* ============================================
   ITEM
   ============================================ */

.nova-carousel-item {
	/* Flex Properties */
	flex: 0 0 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 0;
	
	/* Layout Properties */
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	align-content: flex-start;
	justify-content: flex-start;
	
	/* Size Properties */
	width: 100%;
	min-width: 0;
	min-height: 0;
	
	/* Position Properties */
	position: relative;
	
	/* Box Model */
	padding: 0;
	box-sizing: border-box;
	margin: 0;
	
	/* Optimisations pour drag and drop fluide */
	will-change: transform;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.nova-carousel-item.has-background-image {
	position: relative;
}

.nova-carousel-item.has-background-image .nova-carousel-item-content {
	position: relative;
	z-index: 3;
	pointer-events: none;
}

.nova-carousel-item.has-background-image .nova-carousel-item-content * {
	pointer-events: auto;
}

/* Background créatif avec masque */
.nova-carousel-item.has-creative-background {
	position: relative;
}

/* ============================================
   ITEM IMAGE
   ============================================ */

.nova-carousel-item-image {
	/* Flex Properties */
	flex: 0 0 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 0;
	
	/* Layout Properties */
	display: block;
	width: 100%;
	
	/* Box Model */
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	position: relative;
}

.nova-carousel-item-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Image Overlay */
.nova-carousel-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
}

.nova-carousel-item.has-background-image .nova-carousel-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
}

.nova-carousel-item.has-creative-background .nova-carousel-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
}

.nova-carousel-item.has-background-image.has-creative-background .nova-carousel-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
}

.nova-carousel-item-image {
	position: relative;
}

.nova-carousel-item-image .nova-carousel-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	box-sizing: border-box;
}

/* ============================================
   ITEM CONTENT
   ============================================ */

.nova-carousel-item-content {
	/* Flex Properties */
	flex: 1 1 auto;
	flex-basis: auto;
	flex-grow: 1;
	flex-shrink: 1;
	
	/* Layout Properties */
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	align-content: flex-start;
	justify-content: flex-start;
	
	/* Size Properties */
	width: 100%;
	min-width: 0;
	min-height: 0;
	
	/* Position Properties */
	position: relative;
	z-index: 3;
	pointer-events: none;
	
	/* Box Model */
	padding: 20px;
	box-sizing: border-box;
	margin: 0;
}

.nova-carousel-item-content * {
	pointer-events: auto;
}

/* ============================================
   ITEM TEXT ELEMENTS
   ============================================ */

.nova-carousel-item-text {
	/* Flex Properties */
	flex: 0 1 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 1;
	
	/* Typography */
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
	
	/* Layout Properties */
	display: block;
	width: 100%;
	margin-top: auto;
	
	/* Box Model */
	padding: 0;
	box-sizing: border-box;
}

.nova-carousel-item-date {
	/* Flex Properties */
	flex: 0 0 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 0;
	
	/* Typography */
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	
	/* Layout Properties */
	display: block;
	width: 100%;
	
	/* Box Model */
	margin: 10px 0 0 0;
	padding: 0;
	box-sizing: border-box;
}

.nova-carousel-item-excerpt {
	/* Flex Properties */
	flex: 0 1 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 1;
	
	/* Typography */
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	
	/* Layout Properties */
	display: block;
	width: 100%;
	min-width: 0;
	
	/* Box Model */
	margin: 10px 0 0 0;
	padding: 0;
	box-sizing: border-box;
}

.nova-carousel-item-author {
	/* Flex Properties */
	flex: 0 0 auto;
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 0;
	
	/* Typography */
	font-size: 12px;
	color: #888;
	
	/* Layout Properties */
	display: block;
	width: 100%;
	
	/* Box Model */
	margin: 5px 0 0 0;
	padding: 0;
	box-sizing: border-box;
}

.nova-carousel-item-link {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

/* ============================================
   SWIPER NAVIGATION
   ============================================ */

.swiper-button-next,
.swiper-button-prev {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.nova-carousel-nav.swiper-button-next,
.nova-carousel-nav.swiper-button-prev {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.swiper-pagination {
	position: relative;
	bottom: auto;
	left: auto;
	width: auto;
	margin-top: 20px;
	text-align: center;
}

.swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background-color: #ddd;
	opacity: 1;
	margin: 0 4px;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
	background-color: #0073aa;
}

/* ============================================
   SWIPER PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Optimisations pour swipe fluide et instantané */
.nova-carousel-slider .swiper-wrapper {
	/* Optimisations de performance */
	will-change: transform;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	/* Améliorer la fluidité du swipe */
	transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nova-carousel-slider .swiper-slide {
	/* Optimisations de performance */
	will-change: transform;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	/* Améliorer le rendu pendant le swipe */
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

/* Améliorer la réactivité du touch pour swipe */
.nova-carousel-slider.swiper {
	touch-action: pan-y pinch-zoom;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Optimiser pendant le swipe */
.nova-carousel-slider.swiper.swiper-pointer-events {
	touch-action: pan-y;
}

/* Améliorer la fluidité pendant le mouvement */
.nova-carousel-slider .swiper-wrapper.swiper-wrapper-transitioning {
	transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.nova-carousel-item[data-hover-effect="lift"]:hover {
	transform: translateY(-5px);
	transition: transform 0.3s ease;
}

.nova-carousel-item[data-hover-effect="scale"]:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}

.nova-carousel-item[data-hover-effect="shadow"]:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	transition: box-shadow 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.nova-carousel-container {
		flex-direction: column;
		gap: 20px;
	}
	
	.nova-carousel-content {
		max-width: 100%;
	}
	
	.nova-carousel-title {
		font-size: 32px;
	}
}
