/**
 * Overrides Elementor pour utiliser les styles du thème.
 * Chargé après Elementor pour avoir la priorité.
 * 
 * Boutons : ajoute "btn-default" ou "btn-default btn-highlighted" dans
 * Elementor > Bouton > Avancé > Classes CSS.
 * (Les classes sont sur le wrapper du widget, le bouton est ciblé via .btn-default .elementor-button)
 */

/* Reset des styles Elementor sur le bouton — forcer le design du thème */
.btn-default .elementor-button,
.btn-default .elementor-button:hover,
.btn-default .elementor-button:focus,
.btn-default .elementor-button:active,
.btn-default.btn-highlighted .elementor-button,
.btn-default.btn-highlighted .elementor-button:hover,
.btn-default.btn-highlighted .elementor-button:focus,
.btn-default.btn-highlighted .elementor-button:active {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	line-height: 1.2em !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 2px 25px 2px 2px !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-decoration: none !important;
	text-transform: capitalize !important;
	border-radius: 100px !important;
	overflow: hidden !important;
	transition: all 0.5s ease-in-out !important;
	cursor: pointer !important;
	min-height: auto !important;
}

.btn-default .elementor-button {
	background-color: var(--secondary-color) !important;
}

.btn-default .elementor-button:hover {
	background-color: transparent !important;
}

.btn-default.btn-highlighted .elementor-button {
	background-color: var(--primary-color) !important;
}

.btn-default.btn-highlighted .elementor-button:hover {
	background-color: transparent !important;
}

/* Flèche ::before sur le bouton */
.btn-default .elementor-button::before,
.btn-default.btn-highlighted .elementor-button::before {
	content: '' !important;
	position: absolute !important;
	top: 50% !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 10px !important;
	height: 10px !important;
	background-image: url('../images/arrow-blue.svg') !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: auto !important;
	transform: translate(-10px, -50%) !important;
	transition: all 0.4s ease-in-out !important;
	z-index: 1 !important;
}

.btn-default .elementor-button:hover::before {
	filter: brightness(0) invert(1) !important;
}

.btn-default.btn-highlighted .elementor-button::before {
	background-image: url('../images/arrow-white.svg') !important;
}

.btn-default.btn-highlighted .elementor-button:hover::before {
	filter: brightness(0.1) invert(0) !important;
}

/* ::after pour effet hover sur le bouton */
.btn-default .elementor-button::after,
.btn-default.btn-highlighted .elementor-button::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 0 !important;
	height: 100% !important;
	border-radius: 100px !important;
	background: var(--primary-color) !important;
	transition: all 0.4s ease-in-out !important;
	z-index: 0 !important;
}

.btn-default .elementor-button:hover::after {
	width: 100% !important;
}

.btn-default.btn-highlighted .elementor-button::after {
	background: var(--secondary-color) !important;
}

.btn-default.btn-highlighted .elementor-button:hover::after {
	width: 100% !important;
}

/* Content wrapper = équivalent du span du thème */
.btn-default .elementor-button .elementor-button-content-wrapper,
.btn-default.btn-highlighted .elementor-button .elementor-button-content-wrapper {
	position: relative !important;
	display: inline-block !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1.2em !important;
	background-color: var(--primary-color) !important;
	color: var(--secondary-color) !important;
	border-radius: 100px !important;
	padding: 15px 20px !important;
	overflow: hidden !important;
	z-index: 1 !important;
	transition: all 0.5s ease-in-out !important;
	border: none !important;
	box-shadow: none !important;
}

.btn-default .elementor-button:hover .elementor-button-content-wrapper {
	background-color: transparent !important;
	color: var(--primary-color) !important;
}

.btn-default.btn-highlighted .elementor-button .elementor-button-content-wrapper {
	background-color: var(--secondary-color) !important;
	color: var(--primary-color) !important;
}

.btn-default.btn-highlighted .elementor-button:hover .elementor-button-content-wrapper {
	background-color: transparent !important;
	color: var(--secondary-color) !important;
}

/* ::after sur le content-wrapper */
.btn-default .elementor-button .elementor-button-content-wrapper::after,
.btn-default.btn-highlighted .elementor-button .elementor-button-content-wrapper::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 0 !important;
	height: 100% !important;
	border-radius: 100px !important;
	background: var(--secondary-color) !important;
	transition: all 0.4s ease-in-out !important;
	z-index: -1 !important;
}

.btn-default .elementor-button:hover .elementor-button-content-wrapper::after,
.btn-default.btn-highlighted .elementor-button:hover .elementor-button-content-wrapper::after {
	width: 100% !important;
}

.btn-default.btn-highlighted .elementor-button .elementor-button-content-wrapper::after {
	background: var(--primary-color) !important;
}

/* Texte à l'intérieur */
.btn-default .elementor-button .elementor-button-text,
.btn-default.btn-highlighted .elementor-button .elementor-button-text {
	background: none !important;
	border: none !important;
	color: inherit !important;
}

/* Masquer l'icône Elementor (chevron etc.) — le thème a sa propre flèche via ::before */
.btn-default .elementor-button .elementor-button-icon,
.btn-default.btn-highlighted .elementor-button .elementor-button-icon {
	display: none !important;
}
