/* =========================================================
   E42 Custom Carousel
   Styles de base (les contrôles Elementor surchargent)
   ========================================================= */

.e42-cc {
	position: relative;
	background-color: #ffffff;
	overflow: hidden;
}

.e42-cc__viewport {
	position: relative;
	transition: height .6s cubic-bezier(.22, .61, .36, 1);
}

/* --- Slides : transitions --- */
.e42-cc__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 0;
	transition: opacity var(--e42cc-tdur, 700ms) ease;
}

.e42-cc__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.e42-cc__slide.is-leaving {
	opacity: 0;
	visibility: visible;
	z-index: 1;
}

.e42-cc-reverse-yes .e42-cc__slide {
	flex-direction: row-reverse;
}

/* Mode "Fondu image seulement" :
   le contenu change instantanément, seule l'image fait un fondu enchaîné. */
.e42-cc.is-fade-image .e42-cc__slide {
	transition: none;
}

.e42-cc.is-fade-image .e42-cc__slide.is-active,
.e42-cc.is-fade-image .e42-cc__slide.is-leaving {
	opacity: 1;
	visibility: visible;
}

.e42-cc.is-fade-image .e42-cc__slide.is-leaving .e42-cc__content {
	opacity: 0;
}

.e42-cc.is-fade-image .e42-cc__media {
	opacity: 0;
	transition: opacity var(--e42cc-tdur, 700ms) ease;
}

.e42-cc.is-fade-image .e42-cc__slide.is-active .e42-cc__media {
	opacity: 1;
}

.e42-cc.is-fade-image .e42-cc__slide.is-leaving .e42-cc__media {
	opacity: 1;
	transition: none;
}

/* Mode "Glissement" : les slides glissent horizontalement (image + contenu).
   Les positions de départ/arrivée sont posées en JS (translateX). */
.e42-cc.is-slide {
	overflow: hidden;
}

.e42-cc.is-slide .e42-cc__viewport {
	overflow: hidden;
}

.e42-cc.is-slide .e42-cc__slide {
	opacity: 1;
	visibility: hidden;
	transition: transform var(--e42cc-tdur, 700ms) cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.e42-cc.is-slide .e42-cc__slide.is-active {
	position: relative;
	visibility: visible;
	z-index: 2;
	transform: translateX(0);
}

.e42-cc.is-slide .e42-cc__slide.is-leaving {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	visibility: visible;
	z-index: 1;
}

/* --- Média --- */
.e42-cc__media {
	position: relative;
	flex: 0 0 auto;
	width: 50%;
	max-width: 50%;
	align-self: stretch;
	overflow: hidden;
	min-height: 520px;
}

.e42-cc__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Contenu --- */
.e42-cc__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 72px;
}

.e42-cc__eyebrow {
	display: block;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #a8a6a3;
	margin-bottom: 20px;
}

.e42-cc__title {
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: 44px;
	line-height: 1.1;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #555b5e;
	margin: 0 0 28px;
}

.e42-cc__text {
	font-family: 'Jost', sans-serif;
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.85;
	color: #8a8a8a;
	margin-bottom: 36px;
}

.e42-cc__text p {
	margin: 0 0 16px;
}

.e42-cc__text p:last-child {
	margin-bottom: 0;
}

/* --- Tableau : UNIQUEMENT une bordure basse par ligne (reset anti-thème) --- */
.e42-cc__table {
	width: 100%;
	max-width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0 0 40px;
}

/* On efface TOUTES les bordures/fonds/ombres que le thème pourrait ajouter.
   Sélecteur préfixé .elementor-widget-container pour gagner en spécificité. */
.elementor-widget-container .e42-cc__table,
.elementor-widget-container .e42-cc__table thead,
.elementor-widget-container .e42-cc__table tbody,
.elementor-widget-container .e42-cc__table tr,
.elementor-widget-container .e42-cc__table th,
.elementor-widget-container .e42-cc__table td {
	border-width: 0 !important;
	border-style: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* La SEULE bordure : un trait bas sous chaque ligne du corps (largeur/style forcés ;
   la couleur reste pilotable par le contrôle "séparateurs"). */
.elementor-widget-container .e42-cc__table tbody td {
	border-bottom-width: 1px !important;
	border-bottom-style: solid !important;
}

.e42-cc__table tbody td {
	border-bottom-color: #cccccc;
}

.e42-cc__table th,
.e42-cc__table td {
	vertical-align: middle;
}

.e42-cc__table th {
	padding: 0 0 15px;
	font-weight: 400;
	vertical-align: bottom;
}

.e42-cc__th-label {
	width: 100%;
}

.e42-cc__th-icon {
	width: 1%;
	text-align: right;
	white-space: nowrap;
	padding-left: 30px;
}

.e42-cc__th-icon svg {
	width: 20px;
	height: 20px;
	fill: #8f7d64;
	display: inline-block;
	vertical-align: middle;
}

.e42-cc__th-icon i {
	font-size: 20px;
	color: #8f7d64;
}

.e42-cc__table td {
	padding: 13px 0;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.3;
}

.e42-cc__td-label {
	text-align: left;
	color: #9c9892;
	letter-spacing: .2px;
}

.e42-cc__td-val {
	width: 1%;
	text-align: right;
	white-space: nowrap;
	color: #9c9892;
	padding-left: 30px;
}

/* --- Bouton (lien) ---
   Spec design : Red Hat Display 14px / 500 / 2.52px / uppercase / #A99884.
   Bouton statique, sans aucune animation ni transition.
   Couleurs, fond, bordure, padding, gap, classe et ID sont pilotés par Elementor. */
.e42-cc .e42-cc__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: auto;
	max-width: max-content;
	font-family: 'Red Hat Display', 'Jost', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 2.52px;
	text-transform: uppercase;
	text-align: center;
	color: #A99884;
	text-decoration: none;
	transition: none;
}

.e42-cc__btn-text {
	display: block;
	line-height: 1.4;
	border: 0 !important;
	text-decoration: none !important;
}

.e42-cc__link-arrow {
	width: 18px;
	height: 9px;
	flex: 0 0 auto;
	stroke: currentColor;
	fill: none;
	transition: none;
}

/* --- Flèches (chevrons fins, sans cadre) --- */
.e42-cc__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 6;
	color: #ffffff;
}

.e42-cc__arrow--prev {
	left: 22px;
}

.e42-cc__arrow--next {
	right: 22px;
}

.e42-cc__arrow svg {
	width: 26px;
	height: 26px;
	display: block;
	stroke: currentColor;
	stroke-width: 1.3;
	fill: none;
	opacity: .9;
	transition: opacity .3s ease, color .3s ease;
}

.e42-cc__arrow:hover svg {
	opacity: 1;
}

/* --- Compteur --- */
.e42-cc__counter {
	position: absolute;
	bottom: 24px;
	left: 26px;
	z-index: 6;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	letter-spacing: 2px;
	color: #ffffff;
}

.e42-cc__counter-current {
	font-weight: 500;
}

.e42-cc__counter-sep,
.e42-cc__counter-total {
	opacity: .65;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {

	.e42-cc__slide,
	.e42-cc-reverse-yes .e42-cc__slide {
		flex-direction: column !important;
	}

	.e42-cc__media {
		min-height: 0;
		order: 0; /* Image en premier (en haut) par défaut */
	}

	.e42-cc__content {
		order: 1; /* Contenu en dessous */
	}

	/* Option : contenu en premier sur mobile */
	.e42-cc.is-mobile-content-first .e42-cc__media {
		order: 1;
	}

	.e42-cc.is-mobile-content-first .e42-cc__content {
		order: 0;
	}

	/* En colonne, l'image reprend une hauteur naturelle (sauf si une hauteur est définie via le contrôle) */
	.e42-cc__media img {
		height: auto;
	}
}

@media (max-width: 600px) {

	.e42-cc__title {
		font-size: 27px;
	}

	.e42-cc__eyebrow {
		margin-bottom: 16px;
	}

	.e42-cc__arrow {
		padding: 8px;
	}

	.e42-cc__arrow svg {
		width: 22px;
		height: 22px;
	}
}
