/*
 * kp-typologies.css — Section "Typologies d'Événements" (Nos Expertises bloc 5).
 *
 * Figma : 10132:381. Header (eyebrow + heading 48px 2 lignes — 2e en blanc 50%)
 * + grid 5×2 (10 cards typologies) avec damier dark / glass et bordures internes
 * 2px rgba(255,255,255,.2). Chaque card : icône 24px glass bg 40x40 + titre
 * 32px Light + para 16px tracking 2.304px. Height card = 190px (380/2).
 *
 * Cards : Convention, Spectacle, Prestation technique, Soirée, Kick Off &
 * Lancement, Concert, Road-Show, Séminaire, Assemblée Générale, Cérémonie.
 *
 * Auto-enqueué (kp-pattern-typologies, dep kp-tokens).
 */

.kp-typologies {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--kp-section-padding-y, 9.375rem) 0;
	background: var(--kp-color-surface-deep);
}

.kp-typologies__inner {
	display: flex;
	flex-direction: column;
	gap: 5rem; /* 80 */
	width: 100%;
	padding: 0 var(--kp-section-padding-x, 4.5rem);
}

.kp-typologies__header {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

.kp-typologies__heading {
	margin: 0;
	max-width: 63.5rem; /* 1016 */
	font-family: var(--kp-font-sans);
	font-size: 3rem; /* 48 */
	font-weight: var(--kp-font-weight-regular);
	line-height: 1.2;
	letter-spacing: -0.06em;
	color: var(--kp-color-text-inverse);
	text-align: center;
}

.kp-typologies__heading-muted {
	color: var(--kp-color-text-faint);
}

/* Grid 5 colonnes × 2 lignes, bordures internes 2px rgba(255,255,255,.2). */
.kp-typologies__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(2, 23.75rem); /* 380 */
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.kp-typologies__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2rem 1.5rem; /* 32 / 24 */
	border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.kp-typologies__card:first-child {
	border-left: 0;
}

.kp-typologies__card:nth-child(6) {
	border-left: 0;
}

/* Damier alternance : 1+3+5+7+9 transparent, 2+4+6+8+10 dark #121212. */
.kp-typologies__card:nth-child(even) {
	background: #121212;
}

/* Bordure horizontale entre les 2 lignes. */
.kp-typologies__card:nth-child(n+6) {
	border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.kp-typologies__card-head {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24 */
}

.kp-typologies__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem; /* 40 */
	height: 2.5rem;
	padding: 0.5rem; /* 8 */
	border-radius: var(--kp-radius-sm, 4px);
	background: rgba(255, 255, 255, 0.1);
}

.kp-typologies__icon svg {
	width: 1.5rem; /* 24 */
	height: 1.5rem;
	color: #fff;
	display: block;
}

.kp-typologies__title {
	margin: 0;
	min-height: 3.5rem; /* 56 ≈ 2 lignes 32px line-height 1 + petit buffer ; titres de 1 à 2 lignes selon le label */
	font-family: var(--kp-font-sans);
	font-size: 2rem; /* 32 */
	font-weight: 300; /* Light */
	line-height: 1;
	letter-spacing: -0.07em;
	color: var(--kp-color-text-inverse);
}

.kp-typologies__copy {
	margin: 0;
	min-height: 6.5rem; /* 105 figma */
	font-family: var(--kp-font-sans);
	font-size: 1rem; /* 16 */
	font-weight: var(--kp-font-weight-regular);
	line-height: 1.3;
	letter-spacing: 0.005em;
	color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 980px) {
	.kp-typologies__grid {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
	}
	.kp-typologies__card {
		min-height: 16rem;
		height: auto;
		border-left: 2px solid rgba(255, 255, 255, 0.2);
		border-top: 2px solid rgba(255, 255, 255, 0.2);
	}
	.kp-typologies__card:nth-child(odd) {
		border-left: 0;
	}
	.kp-typologies__card:nth-child(-n+2) {
		border-top: 0;
	}
	.kp-typologies__heading {
		font-size: clamp(1.75rem, 5vw, 2.5rem);
	}
}

@media (max-width: 560px) {
	.kp-typologies__grid {
		grid-template-columns: 1fr;
	}
	.kp-typologies__card {
		border-left: 0;
		border-top: 2px solid rgba(255, 255, 255, 0.2);
	}
	.kp-typologies__card:first-child {
		border-top: 0;
	}
}
