/* ===== SFR Solutions · bloc « Nos solutions » =====
   Every selector is scoped under .sfr-sol so theme rules
   (Divi's .entry-content ul, h3 padding, p padding…) cannot leak in. */

.sfr-sol {
	--sfr-navy: #0D2950;
	--sfr-navy-2: #002E6D;
	--sfr-red: #E70000;
	--sfr-ink: #313B43;
	--sfr-text: #5B6470;
	--sfr-mist: #EEF2F7;
	--sfr-line: #DCE3EC;
	--sfr-ease: cubic-bezier(.2, .7, .2, 1);
	position: relative;
	overflow: hidden;
	background: var(--sfr-navy);
	border-radius: 20px;
	padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px);
	color: #fff;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	text-align: left;
}
.sfr-sol,
.sfr-sol *,
.sfr-sol *::before,
.sfr-sol *::after {
	box-sizing: border-box;
}
.sfr-sol h2,
.sfr-sol h3,
.sfr-sol p,
.sfr-sol ul,
.sfr-sol li {
	margin: 0;
	padding: 0;
	border: 0;
}
.sfr-sol ul,
.sfr-sol li {
	list-style: none;
}
.sfr-sol li::before,
.sfr-sol li::marker {
	content: none;
}

/* Isometric blueprint grid, fading out downwards */
.sfr-sol::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .5;
	background-image:
		linear-gradient(30deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(150deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 56px 32px;
	-webkit-mask-image: linear-gradient(180deg, #000 0, transparent 60%);
	mask-image: linear-gradient(180deg, #000 0, transparent 60%);
}

/* ---------- Header ---------- */
.sfr-sol .sfr-sol__head {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 16px 56px;
	align-items: end;
	margin-bottom: clamp(28px, 4vw, 48px);
}
.sfr-sol .sfr-sol__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
}
.sfr-sol .sfr-sol__eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background: var(--sfr-red);
}
.sfr-sol .sfr-sol__title {
	margin: 0;
	font-family: Barlow, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	text-wrap: balance;
}
.sfr-sol .sfr-sol__intro {
	margin: 0;
	max-width: 56ch;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .78);
}
.sfr-sol .sfr-sol__intro strong {
	color: #fff;
	font-weight: 600;
}
.sfr-sol .sfr-sol__intro a {
	color: #fff;
}

/* ---------- Grid ---------- */
.sfr-sol .sfr-sol__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}
.sfr-sol .sfr-sol__grid[data-count="1"] { grid-template-columns: minmax(0, 360px); }
.sfr-sol .sfr-sol__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfr-sol .sfr-sol__grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Card ---------- */
.sfr-sol .sfr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	color: var(--sfr-ink);
	box-shadow: 0 1px 0 rgba(13, 41, 80, .04), 0 18px 40px -24px rgba(0, 0, 0, .55);
	transition: transform .35s var(--sfr-ease), box-shadow .35s;
}
.sfr-sol .sfr-card__visual {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / .86;
	max-width: 100%;
	background:
		radial-gradient(120% 80% at 50% 110%, #fff 0, rgba(255, 255, 255, 0) 60%),
		linear-gradient(30deg, rgba(13, 41, 80, .07) 1px, transparent 1px) 0 0 / 28px 16px,
		linear-gradient(150deg, rgba(13, 41, 80, .07) 1px, transparent 1px) 0 0 / 28px 16px,
		var(--sfr-mist);
}
.sfr-sol .sfr-card__visual img {
	display: block;
	width: 88%;
	height: 88%;
	max-width: 88%;
	margin: 0;
	object-fit: contain;
	filter: drop-shadow(0 14px 14px rgba(13, 41, 80, .12));
	transition: transform .5s var(--sfr-ease);
}
.sfr-sol .sfr-card__tag {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px 6px 8px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(13, 41, 80, .08);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sfr-navy);
}
.sfr-sol .sfr-card__dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sfr-red);
}
.sfr-sol .sfr-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	padding: 22px 22px 0;
}
.sfr-sol .sfr-card__title {
	margin: 0;
	padding: 0;
	font-family: Barlow, Helvetica, Arial, sans-serif;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sfr-navy);
}
.sfr-sol .sfr-card__title strong {
	display: block;
	font-weight: 700;
	font-size: 25px;
	letter-spacing: -.005em;
	color: var(--sfr-navy);
}
.sfr-sol .sfr-card__title span {
	display: block;
	margin-top: 6px;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.3;
	color: var(--sfr-navy-2);
	opacity: .75;
}
.sfr-sol .sfr-card__text {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--sfr-text);
}
.sfr-sol .sfr-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--sfr-line);
}
.sfr-sol .sfr-card__specs li {
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--sfr-mist);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--sfr-navy);
	font-variant-numeric: tabular-nums;
}
.sfr-sol .sfr-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 12px 12px;
	padding: 12px 8px 12px 16px;
	border-radius: 10px;
	background: var(--sfr-mist);
	color: var(--sfr-navy);
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
	transition: background .25s, color .25s;
}
/* Whole card clickable through a single link */
.sfr-sol .sfr-card__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 16px;
}
.sfr-sol .sfr-card__arrow {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sfr-red);
	transition: background .25s, transform .25s;
}
.sfr-sol .sfr-card__arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .25s;
}
.sfr-sol .sfr-card__cta:focus-visible {
	outline: 3px solid var(--sfr-red);
	outline-offset: 3px;
}

/* ---------- Hover / keyboard focus ---------- */
@media (hover: hover) {
	.sfr-sol .sfr-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 1px 0 rgba(13, 41, 80, .04), 0 30px 60px -28px rgba(0, 0, 0, .7);
	}
	.sfr-sol .sfr-card:hover .sfr-card__visual img {
		transform: translateY(-6px) scale(1.03);
	}
	.sfr-sol .sfr-card:hover .sfr-card__cta {
		background: var(--sfr-red);
		color: #fff;
	}
	.sfr-sol .sfr-card:hover .sfr-card__arrow {
		background: #fff;
		transform: translateX(3px);
	}
	.sfr-sol .sfr-card:hover .sfr-card__arrow svg {
		stroke: var(--sfr-red);
	}
}
.sfr-sol .sfr-card:focus-within .sfr-card__cta {
	background: var(--sfr-red);
	color: #fff;
}
.sfr-sol .sfr-card:focus-within .sfr-card__arrow {
	background: #fff;
}
.sfr-sol .sfr-card:focus-within .sfr-card__arrow svg {
	stroke: var(--sfr-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.sfr-sol .sfr-sol__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 860px) {
	/* 3 cards would leave one alone on a 2-column row: stack them. */
	.sfr-sol .sfr-sol__grid[data-count="3"] {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 760px) {
	.sfr-sol .sfr-sol__head {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.sfr-sol .sfr-sol__grid,
	.sfr-sol .sfr-sol__grid[data-count] {
		grid-template-columns: 1fr;
	}
	.sfr-sol .sfr-card__visual {
		aspect-ratio: 1 / .7;
	}
	.sfr-sol .sfr-card__title strong {
		font-size: 23px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sfr-sol .sfr-card,
	.sfr-sol .sfr-card * {
		transition: none !important;
	}
	.sfr-sol .sfr-card:hover,
	.sfr-sol .sfr-card:hover .sfr-card__visual img,
	.sfr-sol .sfr-card:hover .sfr-card__arrow {
		transform: none;
	}
}
