/* Styles for the requested additions only; existing homepage styles are inherited unchanged. */
body.lp-demo-home-preview .lp-demo-watch { display: flex; align-items: center; gap: 14px; width: fit-content; margin: 20px 0 0; color: #202020; text-decoration: none; }
body.lp-demo-home-preview .lp-demo-play { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #fff; color: #5233ff; box-shadow: 0 4px 20px #5233ff18; }
body.lp-demo-home-preview .lp-demo-play svg { width: 20px; height: 20px; fill: currentColor; }
body.lp-demo-home-preview .lp-demo-watch strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.35; }
body.lp-demo-home-preview .lp-demo-watch small { display: block; margin-top: 4px; color: #626071; font-size: 15px; line-height: 1.4; }
body.lp-demo-home-preview .lp-demo-watch:focus-visible { outline: 3px solid #5233ff; outline-offset: 6px; border-radius: 8px; }
body.lp-demo-home-preview .lp-demo-reassurance { display: grid; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; color: #626071; font-size: 16px; line-height: 1.5; }
body.lp-demo-home-preview .lp-demo-reassurance li { display: flex; gap: 10px; }
body.lp-demo-home-preview .lp-demo-reassurance li::before { content: "✓"; color: #5233ff; flex: 0 0 auto; }
body.lp-demo-home-preview .lp-demo-feature-action { margin-top: 24px; }
body.lp-demo-home-preview .lp-demo-feature-cta { max-width: 100%; white-space: normal; }
body.lp-demo-home-preview .lp-demo-feature-cta .tia-btn__label { white-space: normal; text-align: left; line-height: 1.25; }
body.lp-demo-home-preview .lp-feature-pills-more,
body.lp-demo-home-preview .lp-feature-ai-more { display: none !important; }
body.lp-demo-home-preview .lp-demo-migration-action { margin-top: 28px; }
body.lp-demo-home-preview [data-feature-carousel-panel] { scroll-margin-top: 110px; }
body.home.lp-demo-home-preview .lp-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.lp-demo-home-preview button.lp-demo-watch { border: 0; padding: 0; background: transparent; font: inherit; text-align: left; opacity: 1; cursor: pointer; }
body.home.lptia-bridge-active.lp-demo-home-preview #tia-home-hero .lp-hero-highlight { color: #5233ff !important; }
@media (max-width: 767px) {
 body.lp-demo-home-preview .lp-demo-watch { margin-left: 0; }
 body.lp-demo-home-preview .lp-demo-watch strong { font-size: 16px; }
 body.lp-demo-home-preview .lp-demo-watch small { font-size: 14px; }
 body.lp-demo-home-preview .lp-demo-reassurance { margin-top: 26px; font-size: 14px; }
 body.home.lp-demo-home-preview .lp-price-grid { grid-template-columns: 1fr; }
 body.lp-demo-home-preview .lp-demo-feature-cta, body.lp-demo-home-preview .lp-demo-migration-cta { width: 100%; }
}

/* Preserve the security block styling at its requested new position. */
body.home.lptia-bridge-active #lp-demo-trust {
	background: transparent !important;
	overflow: hidden;
}

body.home.lptia-bridge-active #lp-demo-trust :is(.tia-container, .tia-row, .tia-column, .tia-embed) {
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-shell {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0;
	width: 100%;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-heading {
	max-width: 760px;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-eyebrow {
	color: #9791a3;
	font-size: 13px;
	font-weight: 760;
	letter-spacing: 0.035em;
	line-height: 1.2;
	margin: 0 0 24px;
	text-transform: uppercase;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-heading h2 {
	color: #1e1e1e;
	font-size: clamp(48px, 5vw, 68px);
	font-weight: 770;
	letter-spacing: -0.058em;
	line-height: 0.98;
	margin: 0;
	text-align: left;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-heading h2 span {
	display: block;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-grid {
	column-gap: clamp(24px, 3vw, 40px);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(48px, 6vw, 78px);
	width: 100%;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-item {
	min-height: 330px;
	min-width: 0;
	padding: 32px 0 12px;
}

/*
 * Temporary marketing switch: keep the ISO card in the canonical markup and
 * substitute TAC Security without changing the four-card grid. The bridge
 * owns the body class, so re-enabling ISO does not require editing this asset.
 */
body.home.lptia-bridge-active #lp-demo-trust .lp-security-item--tac {
	display: none !important;
}

body.home.lptia-bridge-active.lptia-marketing-iso-27001-hidden #lp-demo-trust .lp-security-item--iso {
	display: none !important;
}

body.home.lptia-bridge-active.lptia-marketing-iso-27001-hidden #lp-demo-trust .lp-security-item--tac {
	display: block !important;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon {
	align-items: center;
	color: #b4b3b8;
	display: flex;
	height: 88px;
	justify-content: flex-start;
	margin-bottom: 35px;
	width: 108px;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon svg {
	display: block;
	fill: none;
	height: auto;
	max-height: 84px;
	max-width: 100%;
	overflow: visible;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 88px;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--iso svg { width: 86px; }
body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--rgpd svg { width: 92px; }
body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--lock svg { width: 76px; }
body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--france svg { width: 76px; }

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--tac::before {
	-webkit-mask: url("/wp-content/uploads/2025/08/esof-shield.png") center / contain no-repeat;
	aspect-ratio: 255 / 206;
	background: currentColor;
	content: "";
	display: block;
	height: auto;
	mask: url("/wp-content/uploads/2025/08/esof-shield.png") center / contain no-repeat;
	width: min(108px, 100%);
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon text {
	fill: currentColor;
	font-family: inherit;
	font-size: 21px;
	font-weight: 820;
	letter-spacing: -0.055em;
	stroke: none;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--iso rect {
	fill: #fbfbfd;
	stroke: none;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-rgpd-stars {
	fill: currentColor;
	stroke: none;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--lock rect,
body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--france path {
	fill: currentColor;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--lock circle,
body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon--lock path:last-child {
	stroke: #fbfbfd;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-item h3 {
	color: #242532;
	font-size: clamp(24px, 2.1vw, 30px);
	font-weight: 570;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin: 0 0 18px;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-item p {
	color: #292a36;
	font-size: 17px;
	font-weight: 430;
	letter-spacing: -0.017em;
	line-height: 1.48;
	margin: 0;
}

body.home.lptia-bridge-active #lp-demo-trust .lp-security-item .lp-security-note {
	color: #9691a5;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	margin-top: 5px;
}

@media (max-width: 980px) {
	body.home.lptia-bridge-active #lp-demo-trust .lp-security-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item {
		min-height: 330px;
	}

}

@media (max-width: 620px) {
	body.home.lptia-bridge-active #lp-demo-trust .lp-security-shell {
		padding-bottom: 0;
		padding-top: 0;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-eyebrow {
		font-size: 11px;
		margin-bottom: 18px;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-heading h2 {
		font-size: clamp(42px, 13vw, 56px);
		line-height: 1;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-grid {
		grid-template-columns: 1fr;
		margin-top: 42px;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item,
	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item:first-child,
	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item:last-child,
	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item:nth-child(3),
	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item:nth-child(4) {
		display: grid;
		gap: 20px;
		grid-template-columns: 70px minmax(0, 1fr);
		min-height: 0;
		padding: 28px 0;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon {
		height: 64px;
		margin: 0;
		width: 68px;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-icon svg {
		height: auto;
		max-height: 60px;
		width: 60px;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item h3 {
		font-size: 24px;
		margin-bottom: 10px;
	}

	body.home.lptia-bridge-active #lp-demo-trust .lp-security-item p {
		font-size: 15px;
	}

	body.home.lptia-bridge-active.lptia-marketing-iso-27001-hidden #lp-demo-trust .lp-security-item--tac {
		display: grid !important;
	}
}

/* Video dialog only; the existing hero typography and layout are unchanged. */
body.lp-demo-home-preview .lp-demo-video-modal { box-sizing: border-box; width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; margin: auto; border: 1px solid #ffffff24; border-radius: 20px; background: #fff; color: #1e1e1e; box-shadow: 0 24px 80px #0006; overflow: auto; }
body.lp-demo-home-preview .lp-demo-video-modal:not([open]) { display: none; }
body.lp-demo-home-preview .lp-demo-video-modal::backdrop { background: #11111ccc; }
body.lp-demo-home-preview .lp-demo-video-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
body.lp-demo-home-preview .lp-demo-video-header h2 { margin: 0; color: #1e1e1e; font: 700 22px/1.3 var(--tia-font-heading, sans-serif); letter-spacing: -.02em; }
body.lp-demo-home-preview .lp-demo-video-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f2efff; color: #5233ff; cursor: pointer; }
body.lp-demo-home-preview .lp-demo-video-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
body.lp-demo-home-preview .lp-demo-video-close:focus-visible { outline: 3px solid #5233ff; outline-offset: 3px; }
body.lp-demo-home-preview .lp-demo-video-stage { display: grid; aspect-ratio: 16 / 9; background: #181622; color: #fff; }
body.lp-demo-home-preview .lp-demo-video-stage video { display: block; width: 100%; height: 100%; max-height: 75dvh; object-fit: contain; }
body.lp-demo-home-preview .lp-demo-video-stage [hidden] { display: none !important; }
body.lp-demo-home-preview .lp-demo-video-pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
body.lp-demo-home-preview .lp-demo-video-pending svg { width: 56px; height: 56px; color: #b6a9ff; fill: none; stroke: currentColor; stroke-width: 1.5; }
body.lp-demo-home-preview .lp-demo-video-pending svg path { fill: currentColor; stroke: none; }
body.lp-demo-home-preview .lp-demo-video-pending p { margin: 0; color: #fff; font-size: 16px; line-height: 1.5; }
@media (max-width: 620px) {
 body.lp-demo-home-preview .lp-demo-video-header { gap: 12px; padding: 16px; }
 body.lp-demo-home-preview .lp-demo-video-header h2 { font-size: 18px; }
 body.lp-demo-home-preview .lp-demo-video-pending { gap: 12px; }
}

/* Demo action beside the existing training tips. */
body.home.lptia-bridge-active.lp-demo-home-preview #tia-home-security .lp-home-training__tips {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}
body.lp-demo-home-preview .lp-demo-training-cta {
    justify-self: end;
    max-width: 100%;
}
@media (max-width: 980px) {
    body.home.lptia-bridge-active.lp-demo-home-preview #tia-home-security .lp-home-training__tips {
        grid-template-columns: 58px minmax(0, 1fr);
    }
    body.lp-demo-home-preview .lp-demo-training-cta {
        grid-column: 2;
        justify-self: start;
    }
}
@media (max-width: 620px) {
    body.home.lptia-bridge-active.lp-demo-home-preview #tia-home-security .lp-home-training__tips {
        grid-template-columns: 46px minmax(0, 1fr);
    }
    body.lp-demo-home-preview .lp-demo-training-cta {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Match all three prices to the existing 79 € typography. */
body.home.lptia-bridge-active.lp-demo-home-preview #tia-home-offers .lp-price strong {
    font-family: var(--tia-font-body);
    font-size: var(--tia-text-3xl);
    font-weight: 700;
    font-style: normal;
    font-synthesis: none;
    line-height: 1;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep text measurements stable while the next feature fades into view. */
body.home.lptia-bridge-active.lp-demo-home-preview .lp-feature-pills-panel.is-switching .lp-feature-pills-panel__inner {
    transform: translateY(12px);
}

/* Use the FAQ's existing width for the three pricing cards. */
body.home.lptia-bridge-active.lp-demo-home-preview #tia-home-offers .lp-offers {
    max-width: 1040px;
}

/* Encart « Commencez à travailler directement » : sources connectées (aperçu uniquement) */
body.lp-demo-home-preview.lptia-bridge-active #tia-home-security .lp-demo-source-icon svg {
	fill: none;
	height: 22px;
	stroke: #5233ff;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 22px;
}
body.lp-demo-home-preview.lptia-bridge-active #tia-home-security .lp-demo-source small { font-size: 12px; }
body.lp-demo-home-preview.lptia-bridge-active #tia-home-security .lp-demo-source-text { display: grid; gap: 6px; min-width: 0; }
body.lp-demo-home-preview.lptia-bridge-active #tia-home-security .lp-demo-source-logos { align-items: center; display: flex; gap: 5px; min-width: 0; }
body.lp-demo-home-preview.lptia-bridge-active #tia-home-security .lp-demo-source-logos img {
	background: #fff;
	border: 1px solid rgba(30, 30, 30, 0.1);
	border-radius: 6px;
	box-sizing: border-box;
	flex: 0 0 auto;
	height: 22px;
	max-width: none;
	object-fit: contain;
	padding: 2px;
	width: 22px;
}
body.lp-demo-home-preview .lp-demo-video-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px 20px; }
body.lp-demo-home-preview .lp-demo-video-footer p { display: flex; flex-direction: column; gap: 2px; margin: 0; color: #1e1e1e; line-height: 1.35; }
body.lp-demo-home-preview .lp-demo-video-footer strong { font-size: 17px; font-weight: 700; }
body.lp-demo-home-preview .lp-demo-video-footer p span { color: #55525f; font-size: 14px; }
body.lp-demo-home-preview .lp-demo-video-footer .tia-btn { flex: 0 0 auto; }
@media (max-width: 640px) { body.lp-demo-home-preview .lp-demo-video-footer { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; } body.lp-demo-home-preview .lp-demo-video-footer .tia-btn { width: 100%; } }
@media (max-width: 360px) { body.lp-demo-home-preview .lp-demo-video-footer { padding: 14px 12px 16px; } body.lp-demo-home-preview .lp-demo-video-footer .tia-btn .tia-btn__label { font-size: 14px; } body.lp-demo-home-preview .lp-demo-video-footer .tia-btn { gap: 24px; } }
