.carousel-container {
	max-width: 555px;
	margin: 0 auto;
	background: white;
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 0 2px 3px rgba(0,0,0,0.2);
	overflow: hidden;
	position: relative;
}

.carousel-header {
	padding: 12px 16px;
	border-bottom: 1px solid #e6e6e6;
}

.carousel-title {
	font-size: 14px;
	font-weight: 600;
	color: #000;
	margin-bottom: 2px;
}

.carousel-subtitle {
	font-size: 12px;
	color: #666;
	font-weight: 400;
}

.carousel-wrapper {
	position: relative;
	overflow: hidden;
	height: 694px;
}

.carousel-track {
	display: flex;
	transition: transform 0.3s ease;
	height: 100%;
}

.carousel-slide {
	min-width: 100%;
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Flèches de navigation sur l'image */
.carousel-nav-overlay {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
}

.carousel-nav-overlay.prev {
	left: 12px;
}

.carousel-nav-overlay.next {
	right: 12px;
}

.nav-overlay-btn {
	width: 32px;
	height: 32px;
	background: rgba(0, 0, 0, 0.7);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-shadow: none;
}

.nav-overlay-btn:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

.nav-overlay-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.nav-overlay-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Compteur sur l'image */
.carousel-counter {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 6px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	z-index: 10;
	backdrop-filter: blur(4px);
}

.slide-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
	padding: 24px 20px 20px;
	color: white;
}

.slide-content h3 {
	font-size: 18px;
	color: white;
	margin-bottom: 8px;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.slide-content p {
	font-size: 15px;
	color: rgba(255,255,255,0.9);
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.carousel-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-top: 1px solid #e6e6e6;
	background: #fafafa;
}

.carousel-dots {
	display: flex;
	gap: 6px;
}

.dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #c4c4c4;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dot.active {
	background-color: #0a66c2;
	width: 8px;
	height: 8px;
}

.carousel-nav {
	display: flex;
	gap: 4px;
}

.nav-btn {
	width: 28px;
	height: 28px;
	border: 1px solid #d0d0d0;
	background: white;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	font-size: 14px;
	color: #666;
	font-weight: bold;
}

.nav-btn:hover:not(:disabled) {
	border-color: #0a66c2;
	color: #0a66c2;
	background: #f3f6f8;
}

.nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: #f8f9fa;
}

.carousel-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 2px;
	background: #0a66c2;
	transition: width 0.3s ease;
}

/* Mobile First - Responsive Design */
@media (max-width: 480px) {
	.carousel-container {
		max-width: 100%;
		margin: 0 4px;
		border-radius: 8px;
	}

	.carousel-wrapper {
		height: 450px;
	}

	.carousel-nav-overlay.prev {
		left: 8px;
	}

	.carousel-nav-overlay.next {
		right: 8px;
	}

	.nav-overlay-btn {
		width: 28px;
		height: 28px;
		font-size: 14px;
		outline: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		box-shadow: none;
	}

	.carousel-counter {
		top: 8px;
		right: 8px;
		padding: 4px 8px;
		font-size: 11px;
	}

	.slide-overlay {
		padding: 16px 12px 12px;
		background: linear-gradient(transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 100%);
	}

	.slide-content h3 {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.slide-content p {
		font-size: 12px;
		line-height: 1.4;
	}

	.carousel-controls {
		padding: 8px 12px;
	}

	.nav-btn {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	/* Ajustement pour petits écrans */
	.slide-image {
		object-position: center center;
	}
}

@media (min-width: 481px) and (max-width: 768px) {
	.carousel-container {
		max-width: 95%;
		margin: 0 auto;
	}

	.carousel-wrapper {
		height: 580px;
	}

	.carousel-nav-overlay.prev {
		left: 10px;
	}

	.carousel-nav-overlay.next {
		right: 10px;
	}

	.nav-overlay-btn {
		width: 30px;
		height: 30px;
		font-size: 15px;
		outline: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		box-shadow: none;
	}

	.carousel-counter {
		top: 10px;
		right: 10px;
		padding: 5px 9px;
		font-size: 11px;
	}

	.slide-overlay {
		padding: 20px 16px 16px;
		background: linear-gradient(transparent 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.8) 100%);
	}

	.slide-content h3 {
		font-size: 16px;
		margin-bottom: 6px;
	}

	.slide-content p {
		font-size: 13px;
	}

	.slide-image {
		object-position: center center;
	}
}

@media (min-width: 769px) {
	.carousel-container {
		max-width: 555px;
	}

	.carousel-wrapper {
		height: 694px;
	}
}

/* Touch gestures for mobile */
.carousel-wrapper {
	touch-action: pan-y pinch-zoom;
	-webkit-overflow-scrolling: touch;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Smooth scrolling for better UX */
.carousel-track {
	will-change: transform;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

/* Empêcher la sélection de texte pendant le swipe */
.carousel-slide {
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
}
