.ms-page,
.ms-page * {
	box-sizing: border-box;
}

.ms-page {
	--ms-ink: #172033;
	--ms-muted: #5f6f86;
	--ms-soft: #f5f8fb;
	--ms-line: #dce5ef;
	--ms-blue: #1c5ed6;
	--ms-blue-dark: #13459d;
	--ms-cyan: #10a6b7;
	--ms-green: #11845b;
	--ms-orange: #d97706;
	--ms-white: #ffffff;
	color: var(--ms-ink);
	background: var(--ms-white);
	font-family: inherit;
}

.ms-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.ms-eyebrow {
	margin: 0 0 12px;
	color: var(--ms-blue);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ms-section-title,
.ms-section-head h2,
.ms-story h2,
.ms-final-cta h2 {
	margin: 0;
	color: var(--ms-ink);
	font-weight: 800;
	line-height: 1.08;
}

.ms-section-head {
	max-width: 760px;
	margin: 0 auto 36px;
	text-align: center;
}

.ms-section-head h2 {
	font-size: clamp(2rem, 3.2vw, 3rem);
}

.ms-section-head p:not(.ms-eyebrow) {
	margin: 14px 0 0;
	color: var(--ms-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ms-btn:focus-visible {
	outline: 3px solid rgba(16, 166, 183, 0.35);
	outline-offset: 3px;
}

.ms-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.ms-btn--primary {
	background: var(--ms-blue);
	color: var(--ms-white);
}

.ms-btn--primary:hover {
	background: var(--ms-blue-dark);
	color: var(--ms-white);
}

.ms-btn--secondary {
	background: #e7f7f9;
	border-color: #b7e7ee;
	color: #075985;
}

.ms-btn--ghost {
	background: var(--ms-white);
	border-color: var(--ms-line);
	color: var(--ms-ink);
}

.ms-hero {
	position: relative;
	overflow: hidden;
	padding: 76px 0 64px;
	background:
		linear-gradient(135deg, rgba(28, 94, 214, 0.1), rgba(16, 166, 183, 0.08) 46%, rgba(17, 132, 91, 0.08)),
		#f8fbff;
}

.ms-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
	gap: 44px;
	align-items: center;
}

.ms-hero h1 {
	margin: 0;
	max-width: 760px;
	color: var(--ms-ink);
	font-size: clamp(2.6rem, 5vw, 5rem);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: 0;
}

.ms-hero__lead {
	margin: 22px 0 0;
	max-width: 720px;
	color: #40516a;
	font-size: 1.2rem;
	line-height: 1.75;
}

.ms-hero__actions,
.ms-final-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.ms-hero__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 34px;
}

.ms-hero__metrics div {
	min-height: 94px;
	padding: 18px;
	border: 1px solid rgba(23, 32, 51, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 18px 50px rgba(27, 52, 95, 0.08);
}

.ms-hero__metrics strong {
	display: block;
	color: var(--ms-blue);
	font-size: 1.5rem;
	line-height: 1;
}

.ms-hero__metrics span {
	display: block;
	margin-top: 8px;
	color: var(--ms-muted);
	font-size: 0.92rem;
	line-height: 1.35;
}

.ms-hero__media {
	position: relative;
}

.ms-hero__image,
.ms-teaser__image,
.ms-gallery__image,
.ms-media-placeholder {
	display: block;
	width: 100%;
	height: auto;
}

.ms-hero__image,
.ms-hero__media .ms-media-placeholder {
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(26, 54, 93, 0.18);
}

.ms-promise,
.ms-demo,
.ms-benefits,
.ms-pricing,
.ms-faq {
	padding: 82px 0;
}

.ms-story,
.ms-features,
.ms-gallery,
.ms-steps,
.ms-final-cta {
	padding: 82px 0;
	background: var(--ms-soft);
}

.ms-section-title {
	margin-bottom: 32px;
	text-align: center;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.ms-promise__grid,
.ms-feature-grid,
.ms-benefits__grid,
.ms-steps__grid {
	display: grid;
	gap: 18px;
}

.ms-promise__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-promise__item,
.ms-feature-card,
.ms-benefit-panel,
.ms-step,
.ms-plan,
.ms-gallery__item,
.ms-faq details {
	border: 1px solid var(--ms-line);
	border-radius: 8px;
	background: var(--ms-white);
	box-shadow: 0 14px 36px rgba(23, 32, 51, 0.06);
}

.ms-promise__item,
.ms-feature-card,
.ms-benefit-panel,
.ms-step {
	padding: 24px;
}

.ms-promise__item h3,
.ms-feature-card h3,
.ms-feature-card h4,
.ms-benefit-panel h3,
.ms-step h3,
.ms-plan h3 {
	margin: 0 0 10px;
	color: var(--ms-ink);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
}

.ms-promise__item p,
.ms-feature-card p,
.ms-benefit-panel p,
.ms-step p,
.ms-story__copy p,
.ms-faq p {
	margin: 0;
	color: var(--ms-muted);
	line-height: 1.7;
}

.ms-demo__caption {
	max-width: 920px;
	margin: 24px auto 0;
	color: var(--ms-muted);
	font-size: 1.04rem;
	line-height: 1.75;
	text-align: center;
}

.ms-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 42px;
	align-items: start;
}

.ms-story h2 {
	font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.ms-story__copy {
	display: grid;
	gap: 18px;
	padding: 28px;
	border-left: 5px solid var(--ms-cyan);
	background: var(--ms-white);
	border-radius: 8px;
}

.ms-video-frame {
	overflow: hidden;
	border-radius: 18px;
	background: #0f172a;
	box-shadow: 0 22px 70px rgba(23, 32, 51, 0.16);
}

.ms-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: #0f172a;
}

.ms-video-placeholder {
	display: grid;
	min-height: 420px;
	place-items: center;
	padding: 32px;
	background: #eef2f7;
	color: #64748b;
	font-size: 1.2rem;
	font-weight: 800;
	text-align: center;
}

.ms-feature-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-universe {
	margin-top: 30px;
}

.ms-universe:first-of-type {
	margin-top: 0;
}

.ms-universe__title {
	margin: 0 0 16px;
	color: var(--ms-ink);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.25;
}

.ms-benefits__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-benefit-panel ul,
.ms-plan__features {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.ms-benefit-panel li,
.ms-plan__features li {
	position: relative;
	padding-left: 26px;
	color: var(--ms-muted);
	line-height: 1.55;
}

.ms-benefit-panel li::before,
.ms-plan__features li::before {
	position: absolute;
	top: 0.15em;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #dff7ee;
	color: var(--ms-green);
	content: "✓";
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 18px;
	text-align: center;
}

.ms-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.ms-gallery__item {
	overflow: hidden;
	margin: 0;
}

.ms-gallery__item figcaption {
	padding: 14px 18px 18px;
	color: var(--ms-ink);
	font-weight: 800;
}

.ms-billing-toggle {
	display: flex;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 28px;
	padding: 5px;
	border: 1px solid var(--ms-line);
	border-radius: 999px;
	background: var(--ms-white);
}

.ms-billing-toggle label {
	position: relative;
	cursor: pointer;
}

.ms-billing-toggle input {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.ms-billing-toggle span {
	display: block;
	min-width: 112px;
	padding: 10px 18px;
	border-radius: 999px;
	color: var(--ms-muted);
	font-weight: 800;
	text-align: center;
}

.ms-billing-toggle input:checked + span {
	background: var(--ms-blue);
	color: var(--ms-white);
}

.ms-billing-toggle input:focus-visible + span {
	outline: 3px solid rgba(16, 166, 183, 0.35);
	outline-offset: 2px;
}

.ms-pricing__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(220px, 1fr));
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 8px;
}

.ms-plan {
	position: relative;
	display: flex;
	min-height: 100%;
	flex-direction: column;
	padding: 24px;
}

.ms-plan--featured {
	border-color: rgba(28, 94, 214, 0.45);
	box-shadow: 0 18px 55px rgba(28, 94, 214, 0.15);
}

.ms-plan__badge {
	align-self: flex-start;
	margin: 0 0 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff3df;
	color: var(--ms-orange);
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
}

.ms-plan__lots {
	margin: 0;
	color: var(--ms-muted);
	font-weight: 700;
}

.ms-plan__price {
	display: grid;
	gap: 5px;
	margin: 22px 0;
}

.ms-price {
	color: var(--ms-blue);
	font-size: 2.35rem;
	font-weight: 900;
	line-height: 1;
}

.ms-period {
	color: var(--ms-ink);
	font-weight: 800;
}

.ms-equivalent,
.ms-saving {
	color: var(--ms-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.ms-saving {
	color: var(--ms-green);
	font-weight: 800;
}

.ms-btn--plan {
	width: 100%;
	margin-top: auto;
	background: #edf5ff;
	color: var(--ms-blue-dark);
}

.ms-pricing__note {
	max-width: 980px;
	margin: 22px auto 0;
	color: var(--ms-muted);
	font-size: 0.96rem;
	line-height: 1.7;
	text-align: center;
}

.ms-plan--featured .ms-btn--plan {
	background: var(--ms-blue);
	color: var(--ms-white);
}

.ms-steps__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-step span {
	display: inline-grid;
	width: 38px;
	height: 38px;
	margin-bottom: 16px;
	place-items: center;
	border-radius: 999px;
	background: var(--ms-blue);
	color: var(--ms-white);
	font-weight: 900;
}

.ms-faq__list {
	display: grid;
	max-width: 900px;
	margin: 0 auto;
	gap: 12px;
}

.ms-faq details {
	padding: 0;
}

.ms-faq summary {
	cursor: pointer;
	padding: 20px 24px;
	color: var(--ms-ink);
	font-weight: 800;
	line-height: 1.4;
}

.ms-faq summary:focus-visible {
	outline: 3px solid rgba(16, 166, 183, 0.35);
	outline-offset: 3px;
}

.ms-faq details p {
	padding: 0 24px 22px;
}

.ms-final-cta__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 42px;
	border-radius: 18px;
	background: var(--ms-white);
	box-shadow: 0 18px 55px rgba(23, 32, 51, 0.08);
}

.ms-final-cta h2 {
	font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.ms-final-cta p:not(.ms-eyebrow) {
	margin: 14px 0 0;
	color: var(--ms-muted);
	line-height: 1.7;
}

.ms-final-cta__actions {
	justify-content: flex-end;
	margin-top: 0;
}

.ms-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

@media (max-width: 1180px) {
	.ms-promise__grid,
	.ms-feature-grid,
	.ms-steps__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ms-pricing__grid {
		grid-template-columns: repeat(5, minmax(260px, 1fr));
	}
}

@media (max-width: 1024px) {
	.ms-container {
		width: min(100% - 32px, 980px);
	}

	.ms-hero {
		padding: 58px 0 54px;
	}

	.ms-hero__grid,
	.ms-story__grid,
	.ms-final-cta__box {
		grid-template-columns: 1fr;
	}

	.ms-final-cta__actions {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.ms-container {
		width: min(100% - 24px, 720px);
	}

	.ms-hero,
	.ms-promise,
	.ms-story,
	.ms-demo,
	.ms-features,
	.ms-benefits,
	.ms-gallery,
	.ms-pricing,
	.ms-steps,
	.ms-faq,
	.ms-final-cta {
		padding: 52px 0;
	}

	.ms-hero h1 {
		font-size: 2.55rem;
		line-height: 1.02;
	}

	.ms-hero__lead {
		font-size: 1.04rem;
	}

	.ms-hero__actions,
	.ms-final-cta__actions {
		flex-direction: column;
	}

	.ms-btn {
		width: 100%;
	}

	.ms-hero__metrics,
	.ms-promise__grid,
	.ms-feature-grid,
	.ms-benefits__grid,
	.ms-gallery__grid,
	.ms-steps__grid {
		grid-template-columns: 1fr;
	}

	.ms-story__copy,
	.ms-final-cta__box {
		padding: 24px;
	}

	.ms-video-placeholder {
		min-height: 250px;
	}

	.ms-billing-toggle {
		width: 100%;
	}

	.ms-billing-toggle label {
		flex: 1;
	}

	.ms-billing-toggle span {
		min-width: 0;
		padding: 10px 12px;
	}

	.ms-pricing__grid {
		grid-template-columns: 1fr;
		overflow-x: visible;
	}
}

/*
 * Alignement visuel avec la page d'accueil Pearl.
 * Les sections MY SYNDIC restent autonomes, mais reprennent le panneau crème
 * encadré utilisé par les blocs WPBakery de l'accueil.
 */
.ms-page {
	--ms-ink: #111111;
	--ms-muted: #3f3f3f;
	--ms-soft: #fff5ea;
	--ms-line: #000000;
	--ms-blue: #111111;
	--ms-blue-dark: #000000;
	--ms-cyan: #111111;
	--ms-green: #217a3b;
	--ms-orange: #b36200;
	--ms-white: #ffffff;
	padding: 30px 3% 60px;
	background: #ffffff;
}

.ms-page > section {
	width: 100%;
	margin: 30px auto 0;
	padding: 50px;
	border: 2px solid #000000;
	border-radius: 10px;
	background: #fff5ea !important;
	box-shadow: none;
}

.ms-page > section:first-child {
	margin-top: 0;
}

.ms-page > .ms-demo {
	width: 70%;
}

.ms-page > section > .ms-container {
	width: 100%;
	max-width: none;
}

.ms-eyebrow {
	color: #111111;
	font-weight: 700;
}

.ms-section-head {
	margin-bottom: 34px;
}

.ms-section-head h2,
.ms-story h2,
.ms-final-cta h2 {
	color: #111111;
	font-weight: 700;
}

.ms-section-head p:not(.ms-eyebrow),
.ms-hero__lead,
.ms-demo__caption,
.ms-pricing__note,
.ms-final-cta p:not(.ms-eyebrow) {
	color: #3f3f3f;
}

.ms-hero {
	overflow: visible;
}

.ms-hero h1 {
	font-size: clamp(2.2rem, 4vw, 3.8rem);
	font-weight: 700;
	line-height: 1.08;
}

.ms-hero__image,
.ms-hero__media .ms-media-placeholder,
.ms-video-frame,
.ms-gallery__item,
.ms-gallery__image,
.ms-media-placeholder {
	border: 1px solid #000000;
	border-radius: 10px;
	box-shadow: none;
}

.ms-btn {
	border-radius: 4px;
	box-shadow: none;
	text-transform: none;
}

.ms-btn:hover {
	transform: none;
}

.ms-btn--primary,
.ms-plan--featured .ms-btn--plan {
	border-color: #111111;
	background: #111111;
	color: #ffffff;
}

.ms-btn--primary:hover,
.ms-plan--featured .ms-btn--plan:hover {
	border-color: #000000;
	background: #000000;
	color: #ffffff;
}

.ms-btn--secondary,
.ms-btn--ghost,
.ms-btn--plan {
	border-color: #111111;
	background: #ffffff;
	color: #111111;
}

.ms-btn--secondary:hover,
.ms-btn--ghost:hover,
.ms-btn--plan:hover {
	border-color: #000000;
	background: #fff5ea;
	color: #000000;
}

.ms-promise__item,
.ms-feature-card,
.ms-benefit-panel,
.ms-step,
.ms-plan,
.ms-gallery__item,
.ms-faq details,
.ms-story__copy,
.ms-final-cta__box {
	border: 1px solid #000000;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: none;
}

.ms-story__copy {
	border-left-width: 1px;
}

.ms-promise__item h3,
.ms-feature-card h3,
.ms-feature-card h4,
.ms-benefit-panel h3,
.ms-step h3,
.ms-plan h3,
.ms-universe__title,
.ms-gallery__item figcaption,
.ms-faq summary {
	color: #111111;
	font-weight: 700;
}

.ms-promise__item p,
.ms-feature-card p,
.ms-benefit-panel p,
.ms-step p,
.ms-story__copy p,
.ms-faq p,
.ms-plan__lots,
.ms-equivalent,
.ms-saving {
	color: #3f3f3f;
}

.ms-billing-toggle {
	border-color: #000000;
	background: #ffffff;
}

.ms-billing-toggle span {
	color: #111111;
}

.ms-billing-toggle input:checked + span {
	background: #111111;
	color: #ffffff;
}

.ms-price {
	color: #111111;
}

.ms-plan--featured {
	border-color: #000000;
	box-shadow: none;
}

.ms-plan__badge {
	border: 1px solid #000000;
	border-radius: 4px;
	background: #fff5ea;
	color: #111111;
}

.ms-step span {
	background: #111111;
	color: #ffffff;
}

.ms-video-frame {
	background: #111111;
}

.ms-video-placeholder {
	background: #ffffff;
	color: #3f3f3f;
}

.ms-final-cta__box {
	padding: 0;
	border: 0;
	background: transparent;
}

@media (min-width: 1025px) {
	.ms-pricing__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		overflow-x: visible;
	}

	.ms-plan {
		padding: 20px 16px;
	}

	.ms-price {
		font-size: 2rem;
	}
}

@media (max-width: 1024px) {
	.ms-page > .ms-demo {
		width: 100%;
	}

	.ms-page > section {
		padding: 42px 32px;
	}
}

@media (max-width: 767px) {
	.ms-page {
		padding: 20px 3% 42px;
	}

	.ms-page > section {
		margin-top: 22px;
		padding: 32px 18px;
	}

	.ms-hero h1 {
		font-size: 2.15rem;
	}
}
