.theoasso-alain{
	position: relative;
	padding: 127px 32px;
	background: url("../../assets/images/bg_nuage.png") no-repeat center / cover;

	box-sizing: border-box;
	text-align: center;
}

/* Keep the block aligned with page padding (32px) even when alignfull is used */
.theoasso-alain.alignfull,
.wp-block-theoasso-alain.alignfull{
	width: calc(100vw - 64px);
	max-width: calc(100vw - 64px);
	margin-left: calc(50% - 50vw + 32px);
	margin-right: calc(50% - 50vw + 32px);
}

.theoasso-alain::before{
	content: "";
	position: absolute;
	inset: 0;

	opacity: 0.55;
	z-index: 0;
}

.theoasso-alain__inner{
	position: relative;
	z-index: 1;
	max-width: 920px;
	margin: 0 auto;
}

.theoasso-alain__kicker,
.theoasso-alain__title{
	margin: 0;
	font-family: var(--wp--preset--font-family--google-sans-flex);
	font-weight: 400;
	font-size: 48px;
	line-height: 48px;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}

.theoasso-alain__arrow{
	display: inline-block;
	transform: translateY(-0.04em);
	width: 32px;
	height: 32px;
	background: url("../../assets/images/arrow-white.svg") no-repeat center / contain;
	/* Hide legacy text arrow (older saved content) */
	font-size: 0;
	line-height: 0;
	color: transparent;
	overflow: hidden;
}

.theoasso-alain__byline{
	margin: 14px 0 0;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 70%, transparent);
	font-size: 20px;
	line-height: 1.4;
}

.theoasso-alain__card{
	position: relative;
	margin: 98px auto 0;
	max-width: 820px;
	background: var(--wp--preset--color--off-white);
	border: 1px solid var(--wp--preset--color--accent-6);
	--theoasso-alain-linkwrap-height: 100px;
	padding: 88px 111px 0px;
	padding-bottom: 0;
	text-align: left;
	box-sizing: border-box;
}

.theoasso-alain__dot{
	position: absolute;
	left: 35px;
	top: 48px;
	z-index: 2;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	opacity: 0.6;
}

.theoasso-alain__avatar{
	position: absolute;
	left: 110px;
	top: -54px;
	z-index: 2;
	width: 110px;
	height: 120px;
	object-fit: cover;
	/* border-radius: 6px; */
	transform: rotate(-7deg);
	/* border: 4px solid var(--wp--preset--color--main-bg); */
	/* background: var(--wp--preset--color--main-bg); */
}

/* Letter: collapsed by default */
.theoasso-alain__letter{
	margin-top: 10px;
	font-family: "Google Sans Code", var(--wp--preset--font-family--fira-code);
	font-weight: 400;
	font-style: normal;
	font-size: 17px;
	line-height: 22px;
	letter-spacing: 0;
	color: var(--wp--preset--color--contrast);
	max-width: 620px;
	max-height: 150px;
	overflow: hidden;
}

.theoasso-alain__letter p{
	margin: 0 0 16px;
}

.theoasso-alain__letter p:not(:first-child):not(:last-child){
	text-indent: 16px;
}

.theoasso-alain__letter p:first-child,
.theoasso-alain__letter p:last-child{
	font-weight: 700;
}

.theoasso-alain__letter p:last-child{
	margin-bottom: 0;
}

/* Expanded state */
.theoasso-alain__card.is-expanded .theoasso-alain__letter{
	max-height: none;
	overflow: visible;
}

.theoasso-alain__card.is-expanded{
	padding-bottom: 50px;
}

.theoasso-alain__linkWrap{
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100%;
	height: var(--theoasso-alain-linkwrap-height);
	margin: 0;
	padding: 0 26px 20px 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	box-sizing: border-box;
	z-index: 1;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.theoasso-alain__linkWrap::before{
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: var(--wp--preset--color--main-bg);
}

.theoasso-alain__linkWrap::after{
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* Soft diagonal shadow across the clipped area (bottom-left -> top-right) */
	background: linear-gradient(to top right, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 60%);
}

.theoasso-alain__link{
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
    cursor: pointer;
	position: relative;
	z-index: 1;
}

.theoasso-alain__link:hover{
	text-decoration: underline;
}

@media (max-width: 720px){
	.theoasso-alain{
		padding: 48px 32px;
	}
	.theoasso-alain__kicker{
		font-size: 26px;
	}
	.theoasso-alain__title{
		font-size: 36px;
		line-height: 40px;
	}
	.theoasso-alain__card{
		--theoasso-alain-linkwrap-height: 120px;
		padding: 34px 24px 0;
		padding-bottom: 0;
	}
	.theoasso-alain__linkWrap{
		width: 100%;
		height: var(--theoasso-alain-linkwrap-height);
		padding: 0 18px 16px 0;
	}
	.theoasso-alain__avatar{
		left: 76px;
		width: 72px;
		height: 72px;
	}
}
