/* Carousel Vénètes pour Elementor — styles du front */

.vcar-carousel {
	--vcar-per-view: 2;
	width: 100%;
}

.vcar-viewport {
	overflow: hidden;
	width: 100%;
}

.vcar-track {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	will-change: transform;
	touch-action: pan-y;
}

/* Invite au glissement : curseur « main ouverte » au survol du carousel.
   La classe vcar-draggable est ajoutée par le JS uniquement s'il y a de quoi
   défiler (plusieurs slides), pour ne pas afficher grab quand c'est inutile. */
.vcar-draggable .vcar-viewport {
	cursor: grab;
}
.vcar-draggable .vcar-track.is-dragging {
	cursor: grabbing;
}
/* Pendant le drag, on neutralise le curseur pointer des liens pour rester en grabbing */
.vcar-draggable .vcar-track.is-dragging .vcar-slide-link,
.vcar-draggable .vcar-track.is-dragging .vcar-slide a {
	cursor: grabbing;
}

/* Chaque slide occupe 1 / per-view de la largeur, gap compris */
.vcar-slide {
	flex: 0 0 calc((100% - (var(--vcar-per-view) - 1) * var(--vcar-gap, 20px)) / var(--vcar-per-view));
	max-width: calc((100% - (var(--vcar-per-view) - 1) * var(--vcar-gap, 20px)) / var(--vcar-per-view));
	box-sizing: border-box;
	align-self: flex-start;
}

.vcar-slide img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* L'image et son lien remplissent exactement le slide, sans hauteur fantôme
   même si l'image n'est pas encore chargée (lazy load). */
.vcar-slide a {
	display: block;
	width: 100%;
}

.vcar-slide a img {
	margin: 0;
	vertical-align: top;
}

/* Le lien lightbox ne doit pas ajouter de hauteur fantôme sous l'image */
.vcar-slide-link,
.vcar-slide a {
	display: block;
	cursor: pointer;
	line-height: 0;
	font-size: 0;
}

.vcar-slide-link img {
	transition: opacity .25s ease;
}

.vcar-slide-link:hover img {
	opacity: .9;
}

.vcar-slide-caption {
	margin-top: .6rem;
	font-size: .85rem;
	letter-spacing: .04em;
	color: inherit;
}

/* Pendant le glissement, on coupe la transition pour suivre le doigt */
.vcar-track.is-dragging {
	transition: none !important;
	cursor: grabbing;
}

/* --- Navigation / flèches --- */
.vcar-nav--split {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	margin-top: 24px;
}

/* Mode « aux extrémités » : une flèche à chaque bord du bloc */
.vcar-arrows-pos-edges .vcar-nav--split {
	justify-content: space-between;
	gap: 0;
}

.vcar-arrow {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	border-radius: 0 !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	line-height: 0;
	display: inline-flex;
	align-items: center;
}

/* Neutralise aussi les états interactifs ajoutés par le thème */
.vcar-arrow:hover,
.vcar-arrow:focus,
.vcar-arrow:active {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

.vcar-arrow svg {
	width: 48px;
	height: auto;
	fill: #1d1d1b;
	transition: fill .2s ease, opacity .2s ease;
}

.vcar-arrow:disabled {
	opacity: .25;
	cursor: default;
}

/* Contour visible uniquement au clavier (accessibilité), jamais à la souris */
.vcar-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* ================================================================
   POINTS (pagination)
================================================================ */
.vcar-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.vcar-carousel .vcar-dot {
	box-sizing: border-box !important;
	width: 8px;
	height: 8px;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: rgba( 255, 255, 255, 0.6 );
	cursor: pointer;
	transition: background-color .25s ease, transform .25s ease;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	line-height: 0 !important;
	font-size: 0 !important;
	outline: none;
	flex: 0 0 auto;
}

.vcar-carousel .vcar-dot:hover {
	transform: scale( 1.2 );
	background: rgba( 255, 255, 255, 0.85 );
}

.vcar-carousel .vcar-dot.is-active {
	background: #ffffff;
	transform: scale( 1.15 );
}

.vcar-carousel .vcar-dot:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Option « améliorer le contraste » : ombre douce et diffuse qui détache le point
   du fond sans le cercler. Suffisant maintenant que le sélecteur est correct. */
.vcar-dots-contrast-yes .vcar-dot {
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.45 ) !important;
}

/* Position « sous la photo » : les points sont sous le carousel, centrés */
.vcar-dots-pos-below .vcar-dots {
	margin-top: 18px;
}

/* Position « dans la photo » : points en surimpression, bas centré */
.vcar-dots-pos-over {
	position: relative;
}

.vcar-dots-pos-over .vcar-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	pointer-events: auto;
}
