/* ==========================================================================
   Texte dépliable [vt_read_more]
   ========================================================================== */

.vt-read-more {
	/* Réglages */
	--vt-rm-duration: .4s;
	--vt-rm-color: var(--nectar-accent-color, #0a4f9e);
	--vt-rm-gap: 12px;                /* espace au-dessus du bouton */
}

/* Blocs de texte natifs : suppression des marges de fin de bloc */
.vt-read-more .wpb_text_column {
	margin-bottom: 0;
}

.vt-read-more .wpb_text_column + .wpb_text_column {
	margin-top: 1.5em;
}

.vt-read-more .wpb_wrapper > :last-child,
.vt-read-more__intro > :last-child,
.vt-read-more__inner > :last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Espacement intro / suite quand le texte est déplié */
.vt-read-more.is-open .vt-read-more__inner {
	padding-top: 1.5em;
}

/* Animation de hauteur sans calcul JS (grid 0fr -> 1fr) */
.vt-read-more__more {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows var(--vt-rm-duration) ease, visibility 0s var(--vt-rm-duration);
}

.vt-read-more.is-open .vt-read-more__more {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows var(--vt-rm-duration) ease, visibility 0s;
}

.vt-read-more__inner {
	min-height: 0;
	overflow: hidden;
	transition: padding-top var(--vt-rm-duration) ease;
}

/* Bouton (réinitialisation des styles de bouton Salient) */
.vt-read-more .vt-read-more__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: var(--vt-rm-gap) 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--vt-rm-color);
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

/* Bouton en ligne, à la suite du texte initial */
.vt-read-more--inline .vt-read-more__toggle {
	margin: 0;
	vertical-align: baseline;
}

.vt-read-more .vt-read-more__toggle:hover .vt-read-more__label,
.vt-read-more .vt-read-more__toggle:focus-visible .vt-read-more__label {
	text-decoration: underline;
}

/* Chevron */
.vt-read-more__toggle::after {
	content: "";
	width: .45em;
	height: .45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-.15em) rotate(45deg);
	transition: transform var(--vt-rm-duration) ease;
}

.vt-read-more.is-open .vt-read-more__toggle::after {
	transform: translateY(.1em) rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
	.vt-read-more {
		--vt-rm-duration: 0s;
	}
}
