/* Espace Gold Change : carrousel tablette et mobile posé par classe sur un conteneur natif.
   Dans Elementor : classe « egc-carrousel » sur le conteneur des cartes (Avancé > Classes CSS).
   Direction, largeur des cartes et écarts : contrôles natifs du conteneur (ligne + largeurs tablette/mobile).
   Ici seulement ce qu'Elementor n'a pas : défilement aimanté, barre masquée, points. */

@media (max-width: 1024px) {
	.e-con.egc-carrousel {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--padding-left, 0px) var(--padding-right, 0px);
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.e-con.egc-carrousel::-webkit-scrollbar {
		display: none;
	}
	.e-con.egc-carrousel > .e-con {
		flex-shrink: 0;
		scroll-snap-align: start;
	}
}

.egc-carrousel__points {
	display: none;
	justify-content: center;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
}

.egc-carrousel__points.est-actif {
	display: flex;
}

/* Zone tactile de 24 px (accessibilité), rond visible de 12 px dessiné par ::before. */
.egc-carrousel__points .egc-carrousel__point {
	position: relative;
	width: 24px !important;
	min-width: 0 !important;
	height: 24px !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	cursor: pointer;
}

.egc-carrousel__points .egc-carrousel__point::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 6px;
	width: 12px;
	height: 12px;
	border: 2px solid #C59956;
	border-radius: 50%;
	box-sizing: border-box;
	background: transparent;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.egc-carrousel__points .egc-carrousel__point[aria-current="true"]::before {
	background: #C59956;
	transform: scale(1.15);
}

.egc-carrousel__points .egc-carrousel__point:focus-visible {
	outline: 2px solid #85622E;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.e-con.egc-carrousel {
		scroll-behavior: auto;
	}
}

/* Variante sur fond doré (haut de l'accueil) : points blancs pour rester visibles (02/12/2026). */
.egc-carrousel--clair + .egc-carrousel__points .egc-carrousel__point::before {
	border-color: #FFFFFF;
}

.egc-carrousel--clair + .egc-carrousel__points .egc-carrousel__point[aria-current="true"]::before {
	background: #FFFFFF;
}
