section#about-1 {
	display: flex;
	align-items: flex-start;
	justify-content: center;

	&::before {
		background-image: url('../images/couple-sur-un-ponton-360.webp');
		background-position: center bottom;
		filter: brightness(0.9) contrast(1.1);
		top: calc(var(--currentScroll) * -0.5);
	}

	& div.titre {
		margin-top: max(5.5rem, 27%);
		margin-left: unset;
		width: unset;
	}
}

section#about-2 {
	padding: 2rem 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--background);

	& h1 {
		font-size: 20px;
		line-height: 30px;
	}
}

section:is(#about-3, #about-5) {
	background: var(--background);
	display: flex;
	flex-direction: column;
	align-items: center;
}

section#about-3 {
	padding: 0 0 2rem 0;

	& div.encart {
		--encart-img-max-width: 320px;
		margin-top: calc(min(100%, var(--encart-img-max-width)) * 0.75);

		& > img {
			max-width: var(--encart-img-max-width);
			margin-top: calc(min(100%, var(--encart-img-max-width)) * -0.75);
			max-height: 400px;
			object-fit: cover;
		}
	}

	& h2 {
		text-decoration: underline;
		text-decoration-color: var(--wyg-blue-alt);
		text-decoration-thickness: 4px;
		text-underline-offset: .3em;
	}
}

section#about-4 {
	background-image: url('../images/balade-a-velo-couple-720.webp');
	background-size: cover;
	background-position: center 10%;
	background-repeat: no-repeat;
	overflow: hidden;
	position: relative;
	margin: 0;
	padding: 0;
	height: 420px;
}

section#about-5 {
	padding: 2rem 0;

	& > h2 {
		display: block;
		color: var(--wyg-blue-alt);
		opacity: 0.5;
		text-transform: uppercase;
		font: normal normal bold 48px/64px Playfair Display;
		letter-spacing: 0.72px;
		text-align: center;
		margin-inline: 20px;
	}

	& > p {
		max-width: 760px;
		margin-inline: 20px;
	}

	& div.encart-container h2 {
		font-size: 24px;
		line-height: 32px;
		letter-spacing: 0.12px;
		margin-bottom: 20px;
	}
}

div.encart {
	--encart-img-max-width: 480px;

	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	border-radius: 4px;
	margin-top: calc(min(100%, var(--encart-img-max-width)) * 0.75 + 2rem);

	& > img {
		width: 100%;
		max-width: var(--encart-img-max-width);
		border-radius: 4px;
		box-shadow: 0px 0 6px 2px #1B335F33;
		margin-top: calc(min(100%, var(--encart-img-max-width)) * -0.75);
	}

	& > div {
		margin: 28px 20px 32px 20px;
		max-width: 640px;
	}
}

@media only screen and (min-width: 360px) {

	section#about-1::before {
		background-image: url('../images/couple-sur-un-ponton-720.webp');
	}
}

@media only screen and (min-width: 480px) {

	section#about-2 h1 {
		font-size: 24px;
		line-height: 32px;
	}
}

@media only screen and (min-width: 640px) {

	section#about-2 h1 {
		font-size: 28px;
		line-height: 36px;
	}

	section#about-3 {
		padding: 0 2rem 2rem 2rem;
	}

	section#about-5 {
		padding: 4rem 2rem;
	}

	div.destination {
		margin-inline: 2rem;
		padding-inline: 2rem;
	}
}

@media only screen and (min-width: 720px) {

	section#about-1::before {
		background-image: url('../images/couple-sur-un-ponton-1440.webp');
	}

	section#about-1 div.titre {
		margin-top: 20dvh;
	}

	section#about-3 div.encart {
		--encart-img-max-width: 400px;

		& > img {
			max-height: 480px;
		}
	}

	section#about-4 {
		background-image: url('../images/balade-a-velo-couple-2880.webp');
		background-position: left 10%;
		background-size: cover;
	}
}

@media only screen and (min-width: 1024px) {

	section#about-2 h1 {
		font-size: 32px;
		line-height: 40px;
	}

	section#about-3 {
		padding: 0 4rem 6rem 4rem;

		& div.encart-container {
			height: 640px;
		}

		& div.encart {
			flex-direction: row;
			margin: 0;

			& > img {
				height: 600px;
				min-width: 480px;
				max-width: unset;
				max-height: unset;
				object-fit: cover;
			}
		}

		& h2 {
			font-size: 48px;
			line-height: 64px;
			letter-spacing: 0.72px;
		}
	}

	section#about-5 {

		& > h2 {
			font-size: 100px;
			line-height: 140px;
			letter-spacing: 1.5px;
		}

		& > p:last-of-type {
			margin-bottom: 2rem;
		}

		& div.encart-container {
    		margin-top: 84px;

    		& h2 {
				font-size: 36px;
				line-height: 48px;
			}
		}

	}

	div.encart-container {
    	display: flex;
    	align-items: center;
	}

	div.encart-container, div.encart > img {
	    height: 600px;
	}

	div.encart {
		flex-direction: row;
		max-height: 100%;
		margin: 0;
		padding: 0;

		& > div {
			margin: 2.5rem;
		}

		& > img {
			margin-top: -5rem !important;
			margin-bottom: -5rem;
			width: min(50vw, 720px);
			max-width: unset !important;
			object-fit: cover;
			z-index: 1;
		}

		& h2 {
			opacity: 0;
			transition: opacity .3s ease-in, transform .6s ease-out;
		}

		& p {
			opacity: 0;
			transition: opacity .3s .3s ease-in, transform .6s ease-out;
		}
	}

	div.encart-container:nth-of-type(2n+1) > div.encart {
		flex-direction: row-reverse;
	}

}

@media only screen and (min-width: 1280px) {

	div.encart {

		& > div {
			margin: 4rem;
		}

		& > img {
			width: unset;
		}

	}
}


@media only screen and (min-width: 720px) and ((min-height: 644px) or (min-width: 1440px)) {

	section#about-1::before {
		background-image: url('../images/couple-sur-un-ponton-2880.webp');
	}
}