/* ============================================
   TRX PARALLAX - CSS COMPLET
   ============================================ */

/* Structure de base du parallax */
.sc_parallax {
	position: relative;
	overflow: hidden;
	background-repeat: no-repeat;
	min-height: 100px;
}

/* Conteneur de contenu - Compatible avec ThemeREX */
.sc_parallax .sc_parallax_content,
.sc_parallax .sc_parallax_inner {
	position: relative;
	overflow: visible !important; /* IMPORTANT : pas hidden ! */
	z-index: 2;
	background-repeat: no-repeat;
}

/* Overlay et textures */
.sc_parallax .sc_parallax_overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	overflow: hidden;
}

/* Vidéo en arrière-plan */
.sc_parallax .sc_video_bg_wrapper {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.sc_parallax video.sc_video_bg { 
	opacity: 0;
	filter: alpha(opacity=0);
}

/* Mode statique (dans carrousel) */
.sc_parallax.sc_parallax_static {
	min-height: auto;
}

.sc_parallax.sc_parallax_static .sc_parallax_content,
.sc_parallax.sc_parallax_static .sc_parallax_inner {
	transform: none !important;
	-webkit-transform: none !important;
	padding: 20px;
}

/* ============================================
   COMPATIBILITÉ CARROUSEL ULTIMATE
   ============================================ */

/* Force l'affichage des conteneurs dans le carrousel */
.ult-carousel-wrapper .sc_parallax,
.ult-carousel-wrapper .sc_parallax_inner,
.ult-carousel-wrapper .sc_parallax_content,
.ult-carousel-wrapper .sc_parallax .ult-item-wrap,
.ult-carousel-wrapper .sc_parallax figure {
	overflow: visible !important;
	max-height: none !important;
	clip-path: none !important;
	-webkit-clip-path: none !important;
	height: auto !important;
	min-height: 300px !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Force l'affichage des images dans le carrousel */
.ult-carousel-wrapper .sc_parallax img,
.ult-carousel-wrapper .sc_parallax .sc_image img,
.ult-carousel-wrapper .sc_parallax .elegant-video-lightbox-image {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: relative !important;
	z-index: 9999 !important;
	max-width: 180px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 auto 10px auto !important;
	transform: none !important;
	-webkit-transform: none !important;
	top: 0 !important;
	left: 0 !important;
}

/* Force la figure/conteneur d'image */
.ult-carousel-wrapper .sc_parallax .sc_image,
.ult-carousel-wrapper .sc_parallax .elegant-video-lightbox {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	text-align: center !important;
	width: 100% !important;
}

/* Force le texte à être visible */
.ult-carousel-wrapper .sc_parallax .wpb_text_column {
	text-align: center;
	margin-top: 10px;
	color: #000000;
	display: block !important;
	visibility: visible !important;
}

/* Override pour les slides non actifs */
.ult-carousel-wrapper .slick-slide[aria-hidden="true"] .sc_parallax img {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* ============================================
   TEINTES DE FOND
   ============================================ */

.sc_parallax.bg_tint_light {
	color: #000000;
}

.sc_parallax.bg_tint_dark {
	color: #ffffff;
}

.sc_parallax.bg_tint_dark p,
.sc_parallax.bg_tint_dark h1,
.sc_parallax.bg_tint_dark h2,
.sc_parallax.bg_tint_dark h3 {
	color: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.sc_parallax {
		min-height: 200px;
	}
	
	.sc_parallax .sc_parallax_content,
	.sc_parallax .sc_parallax_inner {
		padding: 15px;
	}
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	.sc_parallax {
		background-attachment: scroll !important;
	}
	
	.sc_parallax .sc_parallax_content,
	.sc_parallax .sc_parallax_inner {
		transform: none !important;
	}
}