/* Blocs Highlight — homepage (après hero, avant intro)
 * Dégradé aligné sur les CTA jaunes du site (.iwt-yellow-gradient / blocs type overzicht)
 * Ligne Lottie hero : .iwt-fixed-img a z-index: 3 — cette section reste au-dessus */

.iwt-home-highlight-sec {
	position: relative;
	z-index: 10;
	/* Espace sous les blocs avant le paragraphe d’intro (réduit vs avant) */
	padding: 0 0 2.75rem;
	margin-top: 2rem;
}

@media screen and (min-width: 640px) and (max-width: 1023px) {
	.iwt-home-highlight-sec {
		padding: 0 0 3.25rem;
		margin-top: 2.75rem;
	}
}

@media screen and (min-width: 1024px) {
	.iwt-home-highlight-sec {
		padding: 0 0 4.5rem;
		margin-top: 5rem;
	}
}

.iwt-home-highlight-row {
	margin-bottom: 0;
}

/* Desktop : deux colonnes — même hauteur (cellule étirée + carte en flex) */
@media screen and (min-width: 1024px) {
	.iwt-home-highlight-row {
		align-items: stretch;
	}

	.iwt-home-highlight-cell {
		display: flex;
		flex-direction: column;
	}

	.iwt-home-highlight-cell .iwt-home-highlight-card {
		flex: 1 1 auto;
		min-height: 100%;
		width: 100%;
	}
}

/* Entre les deux cartes : uniquement en pile (mobile + tablette < large) */
.iwt-home-highlight-cell {
	margin-bottom: 0;
}

@media screen and (max-width: 1023px) {
	.iwt-home-highlight-cell:not(:last-child) {
		margin-bottom: 1.125rem;
	}
}

@media screen and (min-width: 640px) and (max-width: 1023px) {
	.iwt-home-highlight-cell:not(:last-child) {
		margin-bottom: 1.25rem;
	}
}

.iwt-home-highlight-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	/* Mobile : 30 px tout autour, texte poussé en bas (maquette) */
	padding: 30px;
	justify-content: flex-end;
	min-height: 280px;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	color: #fff;
	/* #D11317 → #F39100 : le rouge reste surtout en « coin » (stops), visuel plutôt orange-rouge */
	background: linear-gradient(
		59deg,
		#d11317 0%,
		#d82a18 12%,
		#e85a1a 38%,
		#ef8a12 62%,
		#f39100 100%
	);
	box-shadow: none;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

@media screen and (min-width: 640px) and (max-width: 1023px) {
	/* Tablette : 50 px de chaque côté, texte plus étroit (maquette) */
	.iwt-home-highlight-card {
		padding: 50px;
		justify-content: flex-start;
		min-height: 0;
	}
}

@media screen and (min-width: 1024px) {
	.iwt-home-highlight-card {
		padding: 50px;
		justify-content: flex-start;
		min-height: 240px;
	}
}

/* Lien : éviter bleu/violet (:visited) et styles navigateur sur :active — texte toujours blanc */
.iwt-home-highlight-card:link,
.iwt-home-highlight-card:visited,
.iwt-home-highlight-card:hover,
.iwt-home-highlight-card:active,
.iwt-home-highlight-card:focus {
	color: #fff;
}

.iwt-home-highlight-card:hover,
.iwt-home-highlight-card:focus-visible {
	text-decoration: none;
	box-shadow: 0 14px 40px rgba(14, 57, 105, 0.2);
	transform: translateY(-2px);
}

/* Avec photo ACF : image en fond (droite), dégradé bleu type CTA .iwt-dark-blue-gradient (voir overzicht / flex CTA) */
.iwt-home-highlight-card--has-image {
	background-color: #143969;
	background-image: none;
}

.iwt-home-highlight-card__photo {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.iwt-home-highlight-card__photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

.iwt-home-highlight-card--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	z-index: 1;
	/* Même logique que .iwt-gradient-style.iwt-dark-blue-gradient .iwt-cta .iwt-cta-content — bleu #143969 → transparent vers la droite */
	background: linear-gradient(
		90deg,
		rgba(20, 57, 105, 0.98) 0%,
		rgba(20, 57, 105, 0.82) 28%,
		rgba(20, 57, 105, 0.45) 52%,
		rgba(20, 57, 105, 0.12) 72%,
		transparent 100%
	);
}

/* Avec photo : pas de filigrane logo (lisibilité + maquette) */
.iwt-home-highlight-card--has-image .iwt-home-highlight-card__symbol {
	display: none;
}

/* Logo symbole blanc — 20 % opacité ; mobile : haut droit, ~250 px de large, plus haut (maquette) */
.iwt-home-highlight-card__symbol {
	position: absolute;
	z-index: 2;
	top: -30%;
	right: -16%;
	bottom: auto;
	width: 250px;
	max-width: min(250px, 88vw);
	max-height: none;
	pointer-events: none;
	opacity: 0.2;
	line-height: 0;
}

.iwt-home-highlight-card__symbol img {
	display: block;
	width: 250px;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: right top;
}

/* Tablette + desktop : largeur native SVG 371px, filigrane un peu plus bas (maquette) */
@media screen and (min-width: 640px) {
	.iwt-home-highlight-card__symbol {
		top: auto;
		right: -14%;
		bottom: -80%;
		width: 371px;
		max-width: min(371px, 92vw);
		max-height: none;
		transform: translateY(28px);
	}

	.iwt-home-highlight-card__symbol img {
		display: block;
		width: 371px;
		max-width: 100%;
		height: auto;
		object-fit: contain;
		object-position: right bottom;
	}
}

@media screen and (min-width: 1024px) {
	.iwt-home-highlight-card__symbol {
		right: -16%;
		bottom: -60%;
		transform: translateY(36px);
	}
}

.iwt-home-highlight-card__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 88%;
	width: 100%;
}

/* Tablette : colonne texte plus étroite (comme maquette, moins « loin » sur les côtés) */
@media screen and (min-width: 640px) and (max-width: 1023px) {
	.iwt-home-highlight-card__inner {
		max-width: 68%;
	}
}

@media screen and (min-width: 1024px) {
	.iwt-home-highlight-card__inner {
		max-width: 62%;
	}
}

.iwt-home-highlight-card__title {
	margin: 0;
	padding: 0;
	font-family: "neue-haas-grotesk-display", "neue-haas-grotesk-text", sans-serif;
	font-size: 28px;
	line-height: 32px;
	font-weight: bold;
	font-style: normal;
	letter-spacing: 0.02em;
	color: #fff;
	/* Retours à la ligne sur les espaces ; pas de césure auto ni coupure agressive des mots */
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	-webkit-hyphens: none;
}

@media screen and (min-width: 768px) {
	.iwt-home-highlight-card__title {
		font-size: 40px;
		line-height: 45px;
	}
}

.iwt-home-highlight-card__intro {
	margin: 0;
	padding: 0;
	font-family: "neue-haas-grotesk-text", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 400;
	color: #fff;
	opacity: 0.98;
	max-width: 100%;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	-webkit-hyphens: none;
}

/* Bouton flèche : 20 px des bords (titre / intro gardent le padding carte 30 / 50 px) */
.iwt-home-highlight-card__btn {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 57px;
	height: 57px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	pointer-events: none;
}

.iwt-home-highlight-card__btn svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Avec photo : flèche bleu foncé (aligné sur #143969) au lieu d’orange */
.iwt-home-highlight-card--has-image .iwt-home-highlight-card__btn path {
	stroke: #143969;
}

@media screen and (min-width: 640px) {
	.iwt-home-highlight-card__btn {
		top: 20px;
		right: 20px;
	}
}
