.carousel-wrapper {
	position: relative;
	width: 380px;          /* 90% de la largeur disponible */
	max-width: none;     /* pas de limite */
	height: 350px;
	overflow: hidden;
	box-sizing: border-box;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	margin-top: 40px;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	border: 5px solid #999999;
	padding: 0;
}

/* Flèches */
.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	user-select: none;
	z-index: 10;
	transition: background 0.2s;
	background-color: #CCCCCC;
}
.arrow:hover {
	background-color: #ddd;
}
.arrow-left { left: 5px; }
.arrow-right { right: 5px; }

/* Conteneur des lignes - masque élargi */
.carousel-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	padding: 5px 0;
	width: 100%;
	position: relative;
}

/* Les deux lignes côte à côte */
.line {
	display: flex;
	gap: 10px;
	overflow: hidden;
	scroll-behavior: smooth;
	height: 152px;
}

/* Cartes */
.card {
	flex: 0 0 auto;
	width: 176px;
	height: 152px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
	opacity: 0;
	transform: translateX(50px);
	animation: slideIn 0.6s ease forwards;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.card img {
	width: 176px;
	height: 130px;
	object-fit: cover;
	cursor: pointer;
}
.card img:hover {
	animation: vibrer 0.15s linear infinite;
}
.card-title {
	height: 22px;
	line-height: 22px;
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	user-select: none;
}

/* Barre de défilement */
.scrollbar-wrapper {
	width: 90%;        /* 90% de largeur pour suivre le carrousel */
	margin: 15px auto 0;
}
#scrollRange {
	width: 100%;
	height: 8px;
	-webkit-appearance: none;
	background: #eee;
	border-radius: 4px;
	cursor: pointer;
}
#scrollRange::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	background: #999;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	margin-top: -4px;
}
#scrollRange::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: #999;
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

/* Animations */
@keyframes slideIn {
	to { transform: translateX(0); opacity: 1; }
}
@keyframes vibrer {
	0% { transform: translateX(0); }
	25% { transform: translateX(-2px); }
	50% { transform: translateX(2px); }
	75% { transform: translateX(-2px); }
	100% { transform: translateX(0); }
}
