/*
<ul>
<li>
	<a href="<?= $url ?>">
		<article>
			<div class="media">
				<?= $this->getImage(...(array)$image)?>
			</div>
			
			<div class="txts">
				<header>
					<div class="tag"><?= $tag ?></div>
					<div class="info"><?= $info ?></div>
				</header>
				<div class="main">
					<<?= $hn ?>><?= $titre ?></<?= $hn ?>>
					<?= $this->getContenu($texte)?>
				</div>
			</div>
		</article>
	</a>
</li>
</ul
*/
[data-composant="RealisationsComposant"][data-theme="bento"]{
	&
	{
		width: var(--maxWidth);
		margin: auto;
		padding: 20px 0;
	}	
	
	ul{
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 1rem;
		padding: 0;
		overflow: hidden;
	}
	
	li{
		position: relative;
		list-style: none;
		min-width: 0;
		transition: opacity .5s ease;
	}
	
	li:nth-child(6n + 1){ grid-column: span 3; }
	li:nth-child(6n + 2){ grid-column: span 2; }
	li:nth-child(6n + 3){ grid-column: 1 / -1; }
	
	li:nth-child(6n + 4){ grid-column: span 2; }
	li:nth-child(6n + 5){ grid-column: span 3; }
	li:nth-child(6n){ grid-column: 1 / -1; }
	
	.media{
		position: relative;
		z-index: 1;
		width: 100%;
		height: 70dvh;
		margin-bottom: 20px;
	}
	
	
	li:nth-child(3n) 
	{
		&{
			margin: 100px 0;
		}
		
		.media{height: 60dvh;}
		
	}
	
	img{
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: var(--borderRadius);
	}
	
	
	
	
	
	
	.media{
		height: 70dvh;
		margin-bottom: 20px;
	}
	
	/* Éléments seuls sur une ligne : 3, 6, 9, 12... */
	li:nth-child(3n) .media{
		height: 80dvh;
	}
	
	li a{
		text-decoration: none;
		color: initial;
	}
	
	
	
	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
		border-radius: var(--borderRadius);
	}
	
	
	
	.txts
	{
		&{
		}
		
		header{
			display: flex;
			gap: 1em;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 10px;
		}
		
		.tag
		{
			background: rgb(51, 51, 51);
			color: white;
			border: 1px solid;
			font-size: 0.6em;
			padding: 10px 20px;
			border-radius: var(--borderRadius);
		}
		
		p
		{
			margin:0;
		}
	}
	
	
	
}

[data-composant="footer"]
{
	&{
		background: var(--couleurDegrader1);
		color: white;
		padding: 20px;
		padding-top:40px;
		position: sticky;
		bottom: 0;
		margin-top: -20px;
		
	}
	
	@media (max-width: 820px)
	{
		h2, h3{
			font-size: 1.5em!important;
		}
	}
	
	& > div {
		display: flex;
		justify-content: space-between;
		gap: 1em;
	}
	
	@media (max-width: 720px)
	{
		& > div {
			display: block;
		}
	}
	
	
	@media (max-width: 820px)
	{
		& > div > div{
			max-width: 350px;
		}
	}
	
	.txt{
		max-width: 500px;
	}
	#menus{
		display: flex;
		gap: 1em;
	}
	
	@media (max-width: 720px)
	{
		nav {
			font-size: .8em;
		}
	}
	
	
	ul{
		padding-left: 0;
	}
	li{
		list-style: none;
		padding-left: 0;
	}
	
	h2, h3, h4{
		color: white !important;
	}
	
	
	a{
		color: white;
	}
	
	li a{
		text-decoration: none;
	}
	
	[data-composant="bouton"]
	{
		color: var(--couleurBTNTexte);
	}
	
	
	#copyright
	{
		&{
			font-size: .8em;
			
		}
		
		p{
		}
	}
	
	
}

.balise
{
	&{
		background: white;
		padding: 5px 30px;
		border-radius: var(--borderRadiusS);
		width: fit-content;
		font-size: .8em;
		position: relative;
		padding-right: 20px;
		margin-bottom: 20px
	}
	
	&:before
	{
		content: " ";
		aspect-ratio: 1/1;
		width: 10px;
		background: var(--couleurTexte);
		border-radius: 50%;
		position: absolute;
		left: 10px;
		top: 50%;
		transform: translateY(-50%);
	}
}


main{
	padding-bottom: 20px;
}


#_accueil main > section:not(#banniere)
, #_realisations-enfant main > section:not([data-composant="avant-apres"])
{
	margin: 100px auto;
}

#contact > div{
	background: var(--couleurBTN2);
}

#_accueil
{
	#agence
	{
		.txts{ 
			order: 2;
			background: rgba(255, 255, 255, 1);
			border-radius: var(--borderRadiusXS);
			padding: 10px 20px;
			color: black;
			transform: translate(-20%,-20%);
		}
		
		& > div
		{
			align-items: end;
		}
	}
}
