[data-composant="PresentationProjet"]
{
	&{
		width: var(--maxWidth);
		margin: auto;
		border-radius: var(--borderRadius);
		padding: var(--padding);
	}
	
	article
	{
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1em;
	}
	
	.img {
		width: 100%;
		height: 300px;
		border-radius: var(--borderRadius);
	}
	
	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: var(--borderRadius);
	}
	
}


[data-composant="PresentationProjet"][data-theme="image-height-100"]
{
	&{
	}
	
	article
	{
		min-height: calc(100dvh - var(--headerHeight) - var(--headerHeight));
		align-items: center;
	}	
	
	.img{
		height: 100%;
	}
	img{
		height: 100%;	
	}
}

[data-composant="PresentationProjet"][data-theme="image-height-50"]
{
	&{
	}
	
	article
	{
		min-height: calc(50dvh - var(--headerHeight) - var(--headerHeight));
		align-items: center;
	}	
	
	.img{
		height: 100%;
	}
	img{
		height: 100%;	
	}
}
[data-composant="ImageStickyEtTextes"]
{
	&{
		width: var(--maxWidth);
		margin: auto;
		border-radius: var(--borderRadius);
		padding: var(--padding);
		
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2em;
		
		timeline-scope: --article-0, --article-1, --article-2, --article-3;
	}
	
	article:not(:last-child)
	{
		margin-bottom: 100dvh;
	}
	
	.img {
		width: 100%;
		height: 70dvh;
		border-radius: var(--borderRadius);
		position: sticky;
		top: 20px;
	}
	
	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: var(--borderRadius);
		
		
		
	}
	
	.img .image
	{
		position: absolute;
		top: 0;
		left: 0;
		opacity: 0;
		height: 100%;
	}
	.img .image:not(:nth-child(1))
	{
		animation: ImageStickyEtTextes--afficherImage linear both;
		animation-range: entry 0% entry 40%;
		
	}
	
	.img .image:nth-child(1)
	{
		opacity: 1;
	}
	
}


@keyframes ImageStickyEtTextes--afficherImage
{
	
	from
	
	{
		opacity: 0;
	}
	to
	{
		opacity: 1;
	}
}
[data-composant="membre-equipe"]
{
	&{
		width: var(--maxWidth);
		display: grid;
		grid-template-columns: 1fr 2fr;
		align-items: start;
		margin: auto;
	}
	
	
	.tag{
		background: #f7f7f7;
		font-size: .8em;
		padding: 10px 20px;
		border-radius: var(--borderRadius);
	}
	
	
	.liste{
		&{
			scroll-snap-type: x mandatory;
			overflow-x: scroll;
			gap: 1em;
			padding: 0;
			margin:0;
			display: flex;			
			border-radius: var(--borderRadius);
		}
		
		& > li
		{
			&{
				list-style: none;
				background-size: cover;
				background-position: right;
				padding: 0 20px;
				border-radius: var(--borderRadius);
				scroll-snap-align: start;
				min-width: 45%;
				position: relative;
				overflow: hidden;
				font-size: 1.2em;
				display: grid;
			}
			
			@media (max-width: 820px) 
			{
				&{
					min-width: 80%;
				}
			}
			
			
			header
			{
				width: 100%;
				aspect-ratio: 4/3;
				position: relative;
			}
			
			header .tag
			{
				position: absolute;
				top: 20px;
				left: 20px;
				
			}
			
			a{
				text-decoration: none;
				color: initial;
			}
			img{
				width: 100%;
				height: 500px;
				object-fit: cover;
				border-radius: var(--borderRadius);
				border:1px solid var(--couleurborderImageRessourcesSlider);
				display: block;
				transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1);
				transform: scale(1);	
				
			}
			
			
			
			&:hover img{
				transform: scale(1.01);
			}
			
			.main
			{
				h3{
					font-size: 1.3em;
					margin-top: 20px;
				}
				
				.txt{
					overflow: hidden;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 3;
					line-clamp: 3;
				}
			}
			
			footer
			{
				&{
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-top:20px;
				}
				
				[data-composant="tags"]
				{
					&{
						margin: 0;
						padding: 0;
						display: flex;
						align-items: center;
					}
					
					li{
						list-style: none;
					}
				}
			}
			
			
			
			&.cta {
				&{
					background-position: center;
					background-size: cover;
					background-color: var(--couleurBTN);
			
									
				}
				& > div{
					width: 100%;
					display: flex;
					height: 100%;
					color: var(--couleurTexte);
			
				}
				
				.cta-rdv{
					border-radius:var(--borderRadius);
					padding:var(--padding);
					display:flex;
					align-items:center;
				}
				
				@media (max-width: 768px) 
				{
					.cta-rdv{
						padding:calc(var(--padding) / 2);
					}
				}
				.icone{
					width:80px;
					height:80px;
					border-radius:50%;
					background:rgba(255,255,255,.4);
				
					display:grid;
					place-items:center;
				
					font-size:2rem;
					margin-bottom:30px;
				}
				
				.cta-rdv h2{
					line-height:.9;
				}
				
				.cta-rdv p{
					line-height:1.6;
					color: var(--couleurTexte);
				}
				
				[data-composant="bouton"]{
					display:flex;
					align-items:center;
					justify-content:space-between;
					gap:1em;
					flex-direction: row-reverse;
					width:100%;					
					padding:25px 35px;
				
					background:white;
					border-radius:24px;
					font-size: .8em;
					text-decoration:none;
					color:inherit;
				
					box-shadow:0 10px 30px rgba(0,0,0,.08);
				}
				
				@media (max-width: 768px) 
				{
					.btn-rdv{
						padding:15px 15px;
					}
				}
				
				
			}
			
			&:not(.cta)
			{
				i, svg{
					position: absolute;
					right: 20px;
					bottom: 20px;
					font-size: 3em;
					opacity: .5;
					color: rgba(37, 75, 59, 1);
				}
			}
			strong{
				color: white;
			}
		}
		
	}
	
}


[data-composant="membre-equipe"][data-theme="membres"]
{
	&{
		display: block;
		background: #f7f7f7;
		padding: var(--padding);
		border-radius: var(--borderRadius);
	}
	
	.txts h2{
		font-size: 2.5em!important;
		text-align: center;
		margin-bottom: 50px;
	}
	
	.liste > li 
	{
		&{
			width: 50%;
		}
		.main
		{		
			.txt{
				display: block;
			}
		}
	}
}
[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);
}

@keyframes masquerTxtsBanniere {
	to{opacity: 0}
}

#_accueil
{
	&{
		  
	}
	#banniere{
		&{
			position: sticky;
			top: 0;
		}
		
		.txts
		{
			animation-timeline: --agence;
			animation: masquerTxtsBanniere linear forwards;
			/* Débute quand #agence entre dans la vue
			   Termine quand #agence est entièrement visible */
			animation-range: entry 0% contain 100%;
		}
	}
	
	#agence
	{
		&{
			view-timeline-name: --agence;
			background: #f7f7f7;
			border-radius: var(--borderRadius);
			margin-top: -20px;
			z-index: 2;
			position: relative;
			width: 100%;
			height: 100dvh;
			display: grid;
			place-content: center;
		}
		.txts{ 
			order: 2;
			background: rgba(255, 255, 255, 1);
			border-radius: var(--borderRadius);
			padding: 10px 20px;
			color: black;
			transform: translate(-10%,-20%);
			box-shadow: var(--boxShadow);
			z-index: 1
			
		}
		
		.media{
			translate: 10%;
		}
		
		& > div
		{
			align-items: end;
			width: var(--maxWidth);
			margin: 0px auto;
		}
	}
}
