/* Carrousel 1 ligne avec style du carrousel 2 lignes */

.slider-wrapper {
	position: relative;
	width: 85%;
	height: 190px;
	overflow: hidden;
	box-sizing: border-box;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	margin: 20px auto;
	border: 5px solid #0099FF;
	padding: 0;
}

/* Flèches */
.btn-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: #0099FF;
	color: #FFFFFF;
}
.btn-arrow:hover {
	background-color: #CCCCCC;
	color: #000000;
}
.arrow-left { left: 6px; }
.arrow-right { right: 6px; }

/* Container */
.slider-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	padding: 5px 0;
	width: 100%;
	position: relative;
}

.row {
	display: flex;
	gap: 10px;
	overflow: hidden;
	scroll-behavior: smooth;
	height: 165px;
	padding-left: 10px;
}

/* Cartes */
.card-item {
	flex: 0 0 auto;
	width: 176px;
	height: 165px;
	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-item a { display:block; }
.card-item img {
	width: 176px;
	height: 130px;
	object-fit: cover;
	cursor: pointer;
	display:block;
}
.card-item img:hover { animation: vibrer 0.15s linear infinite; }
.card-label {
	height: 22px;
	line-height: 12px;
	font-weight: bold;
	font-size: 13px;
	text-align: center;
	user-select: none;
	padding-top: 3px;
	padding-right: 4px;
	padding-bottom: 0;
	padding-left: 4px;
}

/* Barre de défilement */
.slider-scrollbar { width: 90%; margin: 10px auto 8px; }
#rangeSlider {
	width: 93%;
	height: 8px;
	-webkit-appearance: none;
	background: #eee;
	border-radius: 4px;
	cursor: pointer;
}
#rangeSlider::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	background: #0099FF;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	margin-top: -4px;
}
#rangeSlider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: #0099FF;
	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); }
}



/* carrousel 3 */

.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 #FF0000;
	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: #FF0000;
	color: #FFFFFF;
}
.arrow:hover {
	background-color: #CCCCCC;
	color: #000000;
}
.arrow-left { left: 5px; }
.arrow-right { right: 5px; }

/* Conteneur des lignes - masque élargi */
.carousel-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	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: 5px;
	overflow: hidden;
	scroll-behavior: smooth;
	height: 160px;
}

/* Cartes */
.card {
	flex: 0 0 auto;
	width: 176px;
	height: 160px;
	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: 15px;
	font-weight: bold;
	font-size: 13px;
	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: #FF0000;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	margin-top: -4px;
}
#scrollRange::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: #FF0000;
	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); }
}



/* Carrousel 1 ligne avec style du carrousel 2 lignes (noms cZ) */

.cadre-defilement {
	position: relative;
	width: 85%;
	height: 190px;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	margin: 20px auto;
	border: 5px solid #FF33FF;
}

/* Flèches */
.bouton-fleche {
	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;
	background-color: #FF33FF;
	transition: background 0.2s;
	color: #FFFFFF;
}
.bouton-fleche:hover {
	background-color: #CCCCCC;
	color: #000000;
}
.fleche-gauche { left: 6px; }
.fleche-droite { right: 6px; }

/* Container */
.conteneur-cartes {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	padding: 5px 0;
	width: 100%;
	position: relative;
}

.ligne-cartes {
	display: flex;
	gap: 10px;
	overflow: hidden;
	scroll-behavior: smooth;
	height: 160px;
	padding-left: 10px;
}

/* Cartes */
.carte {
	flex: 0 0 auto;
	width: 176px;
	height: 160px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
	opacity: 0;
	transform: translateX(50px);
	animation: entreeCarte 0.6s ease forwards;
	display: flex;
	flex-direction: column;
}
.carte a { display:block; }
.carte img {
	width: 176px;
	height: 130px;
	object-fit: cover;
	cursor: pointer;
}
.carte img:hover { animation: vibration 0.15s linear infinite; }
.etiquette-carte {
	height: 22px;
	line-height: 11px;
	font-weight: bold;
	font-size: 13px;
	text-align: center;
	user-select: none;
	padding-top: 3px;
	padding-right: 4px;
	padding-bottom: 0;
	padding-left: 4px;
}

/* Barre */
.zone-barre { width: 90%; margin: 10px auto 8px; }
#curseurDefilement {
	width: 93%;
	height: 8px;
	-webkit-appearance: none;
	background: #eee;
	border-radius: 4px;
	cursor: pointer;
}
#curseurDefilement::-webkit-slider-thumb,
#curseurDefilement::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: #FF33FF;
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

/* Animations */
@keyframes entreeCarte { to { transform: translateX(0); opacity: 1; } }
@keyframes vibration {
	0% { transform: translateX(0); }
	25% { transform: translateX(-2px); }
	50% { transform: translateX(2px); }
	75% { transform: translateX(-2px); }
	100% { transform: translateX(0); }
}


