/* —— Profils / raisons —— */

.cns-dom-profils {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 50% at 50% -10%, rgba(200, 240, 0, 0.1), transparent 55%),
		linear-gradient(180deg, #163224 0%, var(--cns-green) 40%, #14261c 100%);
	color: #fff;
	padding: clamp(3.25rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.cns-dom-profils::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.18;
	background-image: repeating-linear-gradient(
		90deg,
		transparent 0,
		transparent 18px,
		rgba(200, 240, 0, 0.07) 18px,
		rgba(200, 240, 0, 0.07) 19px
	);
}

.cns-dom-profils__inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
}

.cns-dom-profils__top {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 1.25rem;
	align-items: start;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.6rem);
}

.cns-dom-profils__title {
	margin: 0;
	max-width: 14em;
	font-size: clamp(1.65rem, 2.8vw, 2.2rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #fff;
}

.cns-dom-profils__title-accent {
	color: var(--cns-lime);
}

.cns-dom-profils__hand {
	justify-self: end;
	max-width: 13rem;
	margin: 0.35rem 0 0;
	font-family: "Caveat", cursive;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.92);
	transform: rotate(-4deg);
	text-align: right;
}

.cns-dom-profils__hand-arrow {
	display: block;
	margin: 0.2rem auto 0;
	color: #fff;
}

.cns-dom-profils__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.95rem;
	margin-bottom: 1.15rem;
}

.cns-dom-profils__card {
	display: grid;
	grid-template-columns: 5.6rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	min-height: 100%;
	padding: 0.85rem;
	background: rgba(8, 16, 12, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 1.1rem;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.cns-dom-profils__photo {
	margin: 0;
	width: 5.6rem;
	height: 7.1rem;
	border-radius: 0.75rem;
	overflow: hidden;
	background: #0d1a12;
	flex-shrink: 0;
}

.cns-dom-profils__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 12%;
}

.cns-dom-profils__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cns-dom-profils__card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #fff;
}

.cns-dom-profils__quote {
	margin: 0;
	padding: 0.7rem 0.8rem;
	background: rgba(8, 16, 12, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.75rem;
}

.cns-dom-profils__quote p {
	margin: 0;
	font-size: 0.82rem;
	font-style: italic;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
}

.cns-dom-profils__more {
	margin: 0 auto 1.5rem;
	max-width: 38rem;
	text-align: center;
	font-size: 0.98rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.cns-dom-profils__actions {
	display: flex;
	justify-content: center;
}

.cns-dom-profils__actions .cns-dom-btn {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
	.cns-dom-profils__top {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.cns-dom-profils__hand {
		justify-self: start;
		text-align: left;
		transform: rotate(-3deg);
		max-width: 14rem;
	}

	.cns-dom-profils__hand-arrow {
		margin-left: 0;
	}

	.cns-dom-profils__cards {
		grid-template-columns: 1fr;
	}

	.cns-dom-profils__card {
		grid-template-columns: 6rem minmax(0, 1fr);
	}

	.cns-dom-profils__photo {
		width: 6rem;
		height: 7.5rem;
	}
}

@media (max-width: 600px) {
	.cns-dom-profils__card {
		grid-template-columns: 5.1rem minmax(0, 1fr);
		gap: 0.7rem;
		padding: 0.75rem;
	}

	.cns-dom-profils__photo {
		width: 5.1rem;
		height: 6.5rem;
	}

	.cns-dom-profils__card-title {
		font-size: 0.95rem;
	}
}

/* Anti-tokens.css — fond sombre */
.wpcursor-component.wpcursor-domicile-profils :is(h1,h2,h3,[class*="__title"],[class*="__name"],[class*="__card-title"]) {
	color: #fff !important;
	text-decoration: none !important;
}
.wpcursor-component.wpcursor-domicile-profils :is(h1,h2,h3) span,
.wpcursor-component.wpcursor-domicile-profils [class*="__title"] span,
.wpcursor-component.wpcursor-domicile-profils [class*="__title-accent"],
.wpcursor-component.wpcursor-domicile-profils [class*="__card-accent"] {
	color: #c8f000 !important;
}
.wpcursor-component.wpcursor-domicile-profils a { text-decoration: none; }
.wpcursor-component.wpcursor-domicile-profils a.cns-dom-btn { text-decoration: none !important; }