
.theoasso-projet{
	padding: 38px 32px 28px;
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast);
}

.theoasso-projet.alignfull,
.wp-block-theoasso-projet.alignfull{
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.theoasso-projet__inner{
	max-width: 1200px;
	margin: 0 auto;
}

.theoasso-projet__title{
	margin: 0 0 22px;
	text-align: center;
	font-family: var(--wp--preset--font-family--google-sans-flex);
	font-weight: 500;
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.theoasso-projet__grid{
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 24px;
	align-items: stretch;
	grid-template-areas:
		"video card1"
		"video card2"
		"card3 card4";
}

/* Keep backward compatibility: cards wrapper exists in saved markup */
.theoasso-projet__cards{
	display: contents;
}

.theoasso-projet__video{
	grid-area: video;
	position: relative;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	min-height: 420px;
	cursor: pointer;
}

.theoasso-projet__video--embed{
	min-height: 0;
	aspect-ratio: 16 / 9;
	max-width: -webkit-fill-available;
	cursor: default;
}

.theoasso-projet__frame{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	cursor: auto;
}

.theoasso-projet__poster{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.theoasso-projet__play{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 40px;
	/* border: 1px solid #6FBDEE; */
	border-radius: 2px;
	display: grid;
	place-items: center;
	/* background: rgba(0,0,0,0.35); */
}

.theoasso-projet__playIcon{
	display: block;
	width: 52px;
	height: 52px;
	background: url(../../assets/images/project/play.svg) center / contain no-repeat;
}

.theoasso-projet__card{
	background: #000;
	color: var(--wp--preset--color--main-bg);
	border-radius: 10px;
	padding: 22px 22px 20px;
	box-sizing: border-box;
	min-height: 190px;
}

.theoasso-projet__cards .theoasso-projet__card:nth-child(1){
	grid-area: card1;
}

.theoasso-projet__cards .theoasso-projet__card:nth-child(2){
	grid-area: card2;
}

.theoasso-projet__cards .theoasso-projet__card:nth-child(3){
	grid-area: card3;
}

.theoasso-projet__cards .theoasso-projet__card:nth-child(4){
	grid-area: card4;
}

.theoasso-projet__icon{
	height: 42px;
	margin-bottom: 14px;
	width: 42px;
	background: center / contain no-repeat;
}

.theoasso-projet__icon--earth{ background-image: url(../../assets/images/project/earth.svg); }
.theoasso-projet__icon--node{ background-image: url(../../assets/images/project/node.svg); }
.theoasso-projet__icon--screen{ background-image: url(../../assets/images/project/screen.svg); }
.theoasso-projet__icon--shield{ background-image: url(../../assets/images/project/shield.svg); }

.theoasso-projet__cardTitle{
	margin: 0;
	font-family: var(--wp--preset--font-family--google-sans-flex);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
}

.theoasso-projet__cardText{
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	opacity: 0.85;
}

/* Modal video (kept for possible future use) */
.theoasso-projet__modal{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.7);
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
	box-sizing: border-box;
}

.theoasso-projet__modalInner{
	position: relative;
	width: min(980px, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.theoasso-projet__modalFrame{
	border: 0;
	width: 100%;
	height: 100%;
}

.theoasso-projet__modalClose{
	position: absolute;
	top: 10px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.25);
	background: rgba(0,0,0,0.35);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 920px){
	.theoasso-projet__grid{
		grid-template-columns: 1fr;
		grid-template-areas:
			"video"
			"card1"
			"card2"
			"card3"
			"card4";
	}
	.theoasso-projet__video{
		min-height: 320px;
	}
}

@media (max-width: 640px){
	.theoasso-projet{
		padding: 30px 20px 22px;
	}
	.theoasso-projet__title{
		font-size: 30px;
	}
}

