/* Temoignages video, vignettes en arche */

.tem {
	box-sizing: border-box;
	padding: clamp(28px, 3vw, 48px) 0 clamp(40px, 5vw, 72px);
	font-family: 'Source Sans 3', system-ui, sans-serif;
	color: #121212;
}

.tem *,
.tem *::before,
.tem *::after {
	box-sizing: border-box;
}

.tem a[href] {
	text-decoration: none;
	color: #121212;
}

.tem a[href]:hover {
	color: #121212;
}

/* En-tete */

.tem__entete {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 680px;
	margin: 0 0 clamp(28px, 3vw, 44px);
}

.tem__sur {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: #e2001a;
}

.tem__trait {
	flex: 0 0 40px;
	width: 40px;
	height: 3px;
	background: #e2001a;
}

.tem .tem__titre {
	margin: 0;
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 2.8vw, 36px);
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: #121212;
}

.tem__chapo {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #55554f;
}

/* La grille */

.tem__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(24px, 3vw, 56px);
	align-items: start;
}

.tem-carte {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

/* L'arche */

.tem-carte__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 999px 999px 0 0;
	background-color: #d8d8d2;
	background-size: cover;
	background-position: center 30%;
	background-repeat: no-repeat;
	overflow: hidden;
}

.tem-carte__voile {
	position: absolute;
	inset: 0;
	border-radius: 999px 999px 0 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 46%);
}

.tem-carte__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.tem-carte:hover .tem-carte__play,
.tem-carte:focus-visible .tem-carte__play {
	background: #ffffff;
	transform: translate(-50%, -50%) scale(1.07);
}

.tem-carte__duree {
	position: absolute;
	right: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(18, 18, 18, 0.84);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
}

/* Le texte */

.tem-carte__texte {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tem-carte__titre {
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(20px, 1.8vw, 26px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #121212;
}

.tem-carte:hover .tem-carte__titre {
	color: #b00014;
}

.tem-carte__qui {
	font-size: 16px;
	line-height: 1.5;
	color: #55554f;
}

/* Le decalage, seulement quand il y a plusieurs colonnes */

@media (min-width: 760px) {
	.tem-carte:nth-child(even) {
		margin-top: clamp(40px, 5vw, 80px);
	}
}

/* Ajustement de taille */

.tem__grille {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(20px, 2.5vw, 44px);
	max-width: 880px;
}

.tem-carte__media {
	background-position: center 35%;
}

.tem-carte__play {
	width: 64px;
	height: 64px;
}

@media (min-width: 760px) {
	.tem-carte:nth-child(even) {
		margin-top: clamp(32px, 4vw, 64px);
	}
}

/* Arche un peu plus large que haute, pour moins rogner les cotes */

.tem-carte__media {
	aspect-ratio: 5 / 4;
	background-position: center 40%;
}

/* Arche un peu plus large que haute, pour moins rogner les cotes */

.tem-carte__media {
        aspect-ratio: 5 / 4;
        background-position: center 40%;
}

/* Deux par rangee, pour que le decalage reste regulier */

@media (min-width: 760px) {
	.tem__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
