/* ============================================
   Nova TITLE WIDGET (Elementor + Visual Composer)
   ============================================ */

.nova-title-widget .nova-title-overlay-content,
.elementor-widget-nova-title .nova-title-overlay-content {
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.nova-stacking-card-2__inner.nova-stacking-card-2__inner--nova-title,
.nova-stacking-card-2__inner.nova-stacking-card-2__inner--nova-title > div {
	padding: 0 !important;
	height: auto !important;
}

.nova-title-widget .nova-title-overlay-content .nova-title-text-left,
.elementor-widget-nova-title .nova-title-overlay-content .nova-title-text-left {
	max-width: 100%;
}

.nova-title-widget .nova-title-overlay-content .nova-title-text-right,
.elementor-widget-nova-title .nova-title-overlay-content .nova-title-text-right {
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.nova-title-widget .nova-title-text-2 > *:first-child,
.elementor-widget-nova-title .nova-title-text-2 > *:first-child {
	margin-top: 0;
	margin-bottom: 0;
}

/* Badge */
.nova-title-widget .nova-title-badge,
.elementor-widget-nova-title .nova-title-badge {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.nova-title-widget .nova-title-badge-icon,
.elementor-widget-nova-title .nova-title-badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.nova-title-widget .nova-title-badge-icon svg,
.elementor-widget-nova-title .nova-title-badge-icon svg {
	width: 16px;
	height: 16px;
}

.nova-title-widget .nova-title-badge-text,
.elementor-widget-nova-title .nova-title-badge-text {
	display: inline-block;
}

span.nova-title-badge-text * {
    margin: 0;
    color: inherit;
}

.nova-title-text-1 * {
	margin: 0;
}

/* Styled words */
.nova-title-widget .nova-title-text-1 .nova-styled-word,
.elementor-widget-nova-title .nova-title-text-1 .nova-styled-word {
	display: inline-block !important;
	transform-origin: center center;
	will-change: transform;
	transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
	line-height: 1;
	background-color: var(--nova-sw-bg, transparent);
	color: var(--nova-sw-fg, currentColor) !important;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* Ne jamais forcer la couleur du titre sur un mot stylé */
.nova-title-widget .nova-title-text.has-nova-color .nova-styled-word,
.elementor-widget-nova-title .nova-title-text.has-nova-color .nova-styled-word {
	color: var(--nova-sw-fg, currentColor) !important;
}

.nova-title-widget .nova-title-text-1 .nova-styled-word-animated,
.elementor-widget-nova-title .nova-title-text-1 .nova-styled-word-animated {
	will-change: background-color, color, padding, border-radius, transform;
}

.nova-title-widget .nova-title-text-1 .nova-styled-word-animate-on-load,
.elementor-widget-nova-title .nova-title-text-1 .nova-styled-word-animate-on-load {
	opacity: 1;
}

.nova-title-widget .nova-title-text-1 .nova-styled-word-animate-on-hover,
.elementor-widget-nova-title .nova-title-text-1 .nova-styled-word-animate-on-hover {
	cursor: pointer;
}

/* Button */
.nova-title-widget .nova-title-button-wrapper,
.elementor-widget-nova-title .nova-title-button-wrapper {
	width: 100%;
	display: block;
	position: relative;
	z-index: 1;
}

.nova-title-widget .nova-title-button,
.elementor-widget-nova-title .nova-title-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nova-title-widget .nova-title-button:hover,
.elementor-widget-nova-title .nova-title-button:hover {
	opacity: 1 !important;
	transform: none !important;
}

.nova-title-widget .nova-title-button:hover span.nova-title-button-icon.icon-before,
.elementor-widget-nova-title .nova-title-button:hover span.nova-title-button-icon.icon-before {
	transform: translateX(-4px);
}

.nova-title-widget .nova-title-button-icon,
.elementor-widget-nova-title .nova-title-button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: transform 0.3s ease;
}

.nova-title-widget .nova-title-button-icon svg,
.elementor-widget-nova-title .nova-title-button-icon svg {
	width: 16px;
	height: 16px;
}

.nova-title-widget .nova-title-button-text,
.elementor-widget-nova-title .nova-title-button-text {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}

/* Decorative icons */
.nova-title-widget .nova-title-icons-wrapper,
.elementor-widget-nova-title .nova-title-icons-wrapper {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
	z-index: 0;
}

.nova-title-widget .nova-title-decoration-icon,
.elementor-widget-nova-title .nova-title-decoration-icon {
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	will-change: transform;
	backface-visibility: hidden;
	transition: transform 0.8s ease;
}

.nova-title-widget .nova-title-decoration-icon-inner,
.elementor-widget-nova-title .nova-title-decoration-icon-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.nova-title-widget .nova-title-decoration-icon-inner svg,
.elementor-widget-nova-title .nova-title-decoration-icon-inner svg {
	flex-shrink: 0;
}

.nova-title-widget .nova-title-decoration-icon-inner img,
.elementor-widget-nova-title .nova-title-decoration-icon-inner img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	flex-shrink: 0;
}

/* Dynamic segments */
.nova-title-widget .nova-title-dynamic,
.elementor-widget-nova-title .nova-title-dynamic {
	width: 100%;
}

.nova-title-widget .nova-title-dynamic--align-left,
.elementor-widget-nova-title .nova-title-dynamic--align-left {
	text-align: left;
}

.nova-title-widget .nova-title-dynamic--align-center,
.elementor-widget-nova-title .nova-title-dynamic--align-center {
	text-align: center;
}

.nova-title-widget .nova-title-dynamic--align-right,
.elementor-widget-nova-title .nova-title-dynamic--align-right {
	text-align: right;
}

.nova-title-widget .nova-title-segments,
.elementor-widget-nova-title .nova-title-segments {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	max-width: 100%;
}

.nova-title-widget .nova-title-dynamic--align-left .nova-title-segments,
.elementor-widget-nova-title .nova-title-dynamic--align-left .nova-title-segments {
	justify-content: flex-start;
}

.nova-title-widget .nova-title-dynamic--align-center .nova-title-segments,
.elementor-widget-nova-title .nova-title-dynamic--align-center .nova-title-segments {
	justify-content: center;
}

.nova-title-widget .nova-title-dynamic--align-right .nova-title-segments,
.elementor-widget-nova-title .nova-title-dynamic--align-right .nova-title-segments {
	justify-content: flex-end;
}

.nova-title-widget .nova-title-segment-sep,
.elementor-widget-nova-title .nova-title-segment-sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.nova-title-widget .nova-title-segment-sep svg,
.nova-title-widget .nova-title-segment-sep__img,
.elementor-widget-nova-title .nova-title-segment-sep svg,
.elementor-widget-nova-title .nova-title-segment-sep__img {
	display: block;
	width: 14px;
	height: 14px;
}

.nova-title-widget .nova-title-dynamic-inner,
.nova-title-widget .nova-title-dynamic h1,
.nova-title-widget .nova-title-dynamic h2,
.nova-title-widget .nova-title-dynamic h3,
.nova-title-widget .nova-title-dynamic h4,
.nova-title-widget .nova-title-dynamic h5,
.nova-title-widget .nova-title-dynamic h6,
.nova-title-widget .nova-title-dynamic p,
.elementor-widget-nova-title .nova-title-dynamic-inner,
.elementor-widget-nova-title .nova-title-dynamic h1,
.elementor-widget-nova-title .nova-title-dynamic h2,
.elementor-widget-nova-title .nova-title-dynamic h3,
.elementor-widget-nova-title .nova-title-dynamic h4,
.elementor-widget-nova-title .nova-title-dynamic h5,
.elementor-widget-nova-title .nova-title-dynamic h6,
.elementor-widget-nova-title .nova-title-dynamic p {
	margin: 0;
}

/* Force couleur / taille / max-width sur enfants TinyMCE (Essentials, Luxenta, etc.) */
.nova-title-widget .nova-title-text.has-nova-color,
.nova-title-widget .nova-title-text.has-nova-color :where(h1, h2, h3, h4, h5, h6, p, span, li, a, strong, em, b, i, div, label):not(.nova-styled-word),
.elementor-widget-nova-title .nova-title-text.has-nova-color,
.elementor-widget-nova-title .nova-title-text.has-nova-color :where(h1, h2, h3, h4, h5, h6, p, span, li, a, strong, em, b, i, div, label):not(.nova-styled-word) {
	color: var(--nova-title-color) !important;
}

.nova-title-widget .nova-title-text.has-nova-size,
.nova-title-widget .nova-title-text.has-nova-size :where(h1, h2, h3, h4, h5, h6, p, span, li, a, div, label):not(.nova-styled-word),
.elementor-widget-nova-title .nova-title-text.has-nova-size,
.elementor-widget-nova-title .nova-title-text.has-nova-size :where(h1, h2, h3, h4, h5, h6, p, span, li, a, div, label):not(.nova-styled-word) {
	font-size: var(--nova-title-font-size) !important;
	line-height: 1.25;
}

.nova-title-widget .nova-title-text.has-nova-max-width,
.elementor-widget-nova-title .nova-title-text.has-nova-max-width {
	max-width: var(--nova-title-max-width) !important;
}

.nova-title-widget .nova-title-text :where(h1, h2, h3, h4, h5, h6, p),
.elementor-widget-nova-title .nova-title-text :where(h1, h2, h3, h4, h5, h6, p) {
	margin-top: 0;
	margin-bottom: 0.35em;
}

.nova-title-widget .nova-title-text :where(h1, h2, h3, h4, h5, h6, p):last-child,
.elementor-widget-nova-title .nova-title-text :where(h1, h2, h3, h4, h5, h6, p):last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.nova-title-widget .nova-title-overlay-content,
	.elementor-widget-nova-title .nova-title-overlay-content {
		flex-direction: column;
	}
}

@media (max-width: 1024px) {
	.nova-title-widget .nova-title-decoration-icon,
	.elementor-widget-nova-title .nova-title-decoration-icon {
		--nova-icon-w-current: var(--nova-icon-w-tablet);
		--nova-icon-h-current: var(--nova-icon-h-tablet);
	}
}

@media (max-width: 767px) {
	.nova-title-widget .nova-title-decoration-icon,
	.elementor-widget-nova-title .nova-title-decoration-icon {
		--nova-icon-w-current: var(--nova-icon-w-mobile);
		--nova-icon-h-current: var(--nova-icon-h-mobile);
	}
}
