/* Carousel Images pour Elementor — styles (moteur Slick) */

.cig-carousel-wrapper {
	position: relative;
	width: 100%;
}

.cig-carousel {
	position: relative;
	width: 100%;
	--cig-slide-width: 340px;
	--cig-slide-gap: 16px;
	--cig-box-height: 340px;
}

/* Avant l'initialisation de Slick (chargement de la page, JS retardé par un
   plugin de cache…) : le carrousel s'affiche déjà à sa taille et à sa place
   finales — première image calée à gauche, mêmes largeurs, même espacement.
   La largeur exacte par appareil est fournie par le petit <style> du widget. */
.cig-track:not( .slick-initialized ) {
	display: flex;
	gap: var( --cig-slide-gap );
	overflow: hidden;
}

.cig-track:not( .slick-initialized ) .cig-slide {
	flex: 0 0 var( --cig-slide-width );
	min-width: 0;
}

/* Les flèches ne servent à rien tant que Slick n'est pas prêt. */
.cig-carousel:not( .cig-ready ) .cig-btn {
	visibility: hidden;
}

/* Espacement entre slides : marge de gap/2 de chaque côté, compensée sur la liste. */
.cig-track .slick-list {
	margin: 0 calc( var( --cig-slide-gap ) / -2 );
}

.cig-track .slick-slide {
	margin: 0 calc( var( --cig-slide-gap ) / 2 );
}

.cig-track .slick-list.draggable {
	cursor: grab;
}

.cig-track .slick-list.dragging {
	cursor: grabbing;
}

.cig-slide {
	position: relative;
	height: var( --cig-box-height );
	overflow: hidden;
	border-radius: 16px;
	opacity: 0.4;
	transition: opacity 0.45s ease;
	outline: none;
}

.cig-slide.active {
	opacity: 1;
}

.cig-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
}

.cig-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

/* Flèches */
.cig-btn {
	position: absolute;
	top: calc( var( --cig-box-height ) / 2 );
	transform: translateY( -50% );
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba( 255, 255, 255, 0.92 );
	color: #1a1d24;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.35 );
	transition: transform .15s ease, background .15s ease, opacity .15s ease;
	z-index: 2;
	padding: 0;
}

/* Icône des flèches : icône Elementor (<i>) ou SVG (importé ou par défaut). */
.cig-btn i {
	line-height: 1;
	font-size: inherit;
}

.cig-btn svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
	pointer-events: none;
}

/* Un SVG importé prend la couleur de l'icône réglée dans Elementor,
   sans toucher aux parties volontairement transparentes (fill="none"). */
.cig-btn svg [fill]:not( [fill="none"] ) {
	fill: currentColor;
}

.cig-btn svg [stroke]:not( [stroke="none"] ) {
	stroke: currentColor;
}

.cig-btn svg.cig-arrow-default {
	fill: none;
}

/* .cig-btn:hover {
	transform: translateY( -50% ) scale( 1.06 );
} */

.cig-btn.cig-prev { left: -18px; }
.cig-btn.cig-next { right: -18px; }

.cig-btn.slick-disabled,
.cig-btn[disabled] {
	opacity: 0.3;
	cursor: default;
}

.cig-btn.slick-hidden {
	display: none;
}

/* Dots */
.cig-dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.cig-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3a3f4b;
	border: none;
	cursor: pointer;
	padding: 0;
	font-size: 0;
	transition: background .2s ease, transform .2s ease;
}

.cig-dot.active {
	transform: scale( 1.25 );
}

@media ( max-width: 480px ) {
	.cig-btn.cig-prev { left: 4px; }
	.cig-btn.cig-next { right: 4px; }
}
