@import '../common/project.css';

.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	padding-top: 5rem;
	padding-bottom: 8rem;
	box-shadow: 0 10px 8px -5px #000 inset, 0 -12px 8px -5px #000 inset;
}

.banner {
	width: 100%;
	background-color: #ff8147;
	outline: 10px solid #ff8147;
}

.content-text-w-illu {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8rem;
	margin: 7rem 0;
	padding: 0 20rem;
	max-width: 1250px;
}

.content-text-w-illu span {
	font-weight: 600;
}

.content-text h2 {
	margin-bottom: 2rem;
	font-size: 3.5rem;
	line-height: 3.8rem;
}

.content-illu-1 {
	height: 500px;
	width: 370px;
	object-fit: cover;
	border-radius: 1rem;

}

.picture-credits {
	font-size: 0.8rem;
	font-style: italic;
	text-align: center;
}

.badge-banner-wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 5rem;
}

.badge-banner {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 5rem;
	margin: 1rem 0 0.3rem;
	padding: 0 20rem;
	max-width: 1250px;
	width: 100%;
}

.badge {
	height: 150px;
}

.badge-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100px;
}

.badge-text span {
	font-weight: 600;
	text-decoration: underline;
}

.badge-text p {
	margin: 0;
}

.badge-text ul {
	margin: 0.5rem 0 0 0;
	padding-left: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	row-gap: 0.6rem;
	column-gap: 7rem;
	height: 75px;
}

.badge-text li {
	line-height: 1.5rem;
}

.patchwork {
	position: relative;
	width: 100%;
	height: 1500px;
	margin-top: -8rem;
}

.patchwork img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 100%;
}

.content-illu-2 {
	height: 315px;
}

.align-left {
	margin-left: 20rem;
	margin-right: 20rem;
	padding-right: 20rem;
	max-width: calc(1250px - 20rem);
}

.align-right {
	margin-left: 20rem;
	margin-right: 20rem;
	padding-left: 20rem;
	max-width: calc(1250px - 20rem);
}

.centered {
	margin: 0 20rem;
	max-width: 1250px;
}

.logo-section {
	width: 100%;
	margin: 10rem 0;
}

.logo-1,
.logo-2 {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 800px;
	margin: -5% 0;
	z-index: 1;
}

.logo-1 {
	background-color: #ff8147;
}

.logo-2 {
	background-color: #86acf3;
}

.logo-1::before,
.logo-2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0px 0px 20px 15px rgba(133, 46, 46, 0.6);
	mix-blend-mode: multiply;
}

.logo-1 img {
	height: 500px;
}

.logo-2 img {
	height: 400px;
}

.border-pattern-top,
.border-pattern-bottom {
	height: 300px;
	background-repeat: repeat-x;
}

.border-pattern-top {
	background-image: url('../../assets/bravache/009.motif-bordure-bravache.svg');
}

.border-pattern-bottom {
	background-image: url('../../assets/bravache/011.motif-bordure-bravache-reverse.svg');
}

.illu-w-legend {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	margin-top: 12rem;
	
}

.content-illu {
	width: 100%;
	border-radius: 1rem;
}

.palette-section {
	padding: 0 20rem;
	max-width: 1250px;
}

.palette-section div {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.palette-intro {
	margin-bottom: 2rem;
}

.palette {
	width: 47%;
}

.palette-text {
	width: 47%;
}

.full-width-images {
	display: flex;
	width: 100%;
	max-width: 1800px;
	margin: 10rem 0;
}

.crayons {
	width: 66%;
	object-fit: cover;
}

.cartes {
	width: 34%;
	object-fit: cover;
}

.mockup-web {
	margin-top: 15rem !important;
}

.content-text-5 {
	margin-top: 15rem !important;
}

.pattern-section-wrapper {
	width: 100%;
	margin-top: 12rem;
	margin-bottom: 12rem;
}

.pattern-section {
	position: relative;
	display: flex;
	width: 100%;
	height: 90vh;
	margin: -5rem 0;
	z-index: 1;
}

.pattern-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0px 0px 20px 15px rgba(133, 46, 46, 0.6);
	mix-blend-mode: multiply;
}

.bravache-pattern {
	flex: 1;
	background-size: 400px;
}

.bravache-pattern:nth-child(1) {
	/* background-image: url(../../assets/bravache/018.motif-bravache.png); */ /* A remettre pour enlever le rotate */
	background-color: #ff8147;
	position: relative; /* A supprimer pour enlever le rotate */
	overflow: hidden; /* A supprimer pour enlever le rotate */
}

/* A supprimer pour enlever le rotate */
/*  | */
/* \/ */
.bravache-pattern:nth-child(1)::before {
	content: '';
	position: absolute;
	width: 200%;
	height: 200%;
	top: -50%;
	left: -50%;
	background-image: url(../../assets/bravache/018.motif-bravache.png);
	background-size: 400px;
	transform: rotate(45deg);
}
/* /\ */
/*  | */
/* A supprimer pour enlever le rotate */

.bravache-pattern:nth-child(2) {
	background-image: url(../../assets/bravache/019.motif-empreinte.png);
	background-color: #fff4d4;
}

.bravache-pattern:nth-child(3) {
	background-image: url(../../assets/bravache/020.motif-rue.png);
	background-color: #ff8147;
}

.content-text-7 {
	margin-top: 15rem !important;
}

.presentation {
	margin-top: 15rem !important;
	margin-bottom: 15rem !important;
}

@media screen and (max-width: 1600px) {
	.content-text-w-illu {
		padding: 0 12rem;
	}

	.badge-banner {
		padding: 0 12rem;
	}

	.align-left,
	.align-right {
		margin-left: 12rem;
		margin-right: 12rem;
	}

	.centered {
		margin: 0 12rem;
	}

	.palette-section {
		padding: 0 12rem;
	}
}

@media screen and (max-width: 1400px) {
	.content-text-w-illu {
		padding: 0 8rem;
	}

	.badge-banner {
		padding: 0 8rem;
	}

	.align-left,
	.align-right {
		margin-left: 8rem;
		margin-right: 8rem;
	}

	.centered {
		margin: 0 8rem;
	}

	.palette-section {
		padding: 0 8rem;
	}
}

@media screen and (max-width: 1300px) {
	.content {
		padding-top: 4rem;
	}

	.content-text-w-illu {
		gap: 5rem;
		padding: 0 7rem;
	}

	.badge-banner {
		padding: 0 7rem;
		gap: 3rem;
	}

	.badge-text ul {
		column-gap: 4rem;
	}

	.align-left,
	.align-right {
		margin-left: 7rem;
		margin-right: 7rem;
	}

	.centered {
		margin: 0 7rem;
	}

	.logo-1,
	.logo-2 {
		height: 700px;
	}

	.logo-1 img {
		height: 400px;
	}

	.logo-2 img {
		height: 300px;
	}

	.border-pattern-top,
	.border-pattern-bottom {
		height: 250px;
	}

	.palette-section {
		padding: 0 7rem;
	}
}

@media screen and (max-width: 1100px) {
	.content-text-w-illu {
		padding: 0 5rem;
	}

	.content-text h2 {
		margin-bottom: 1.5rem;
		font-size: 2.8rem;
		line-height: 3rem;
	}

	.badge-banner {
		padding: 0 5rem;
	}

	.badge-text ul {
		row-gap: 0.5rem;
		column-gap: 8rem;
		height: 100px;
	}

	.patchwork {
		height: 1100px;
		margin-top: -4rem;
	}

	.align-left {
		margin-left: 5rem;
		margin-right: 5rem;
		padding-right: 15rem;
	}

	.align-right {
		margin-left: 5rem;
		margin-right: 5rem;
		padding-left: 15rem;
	}

	.centered {
		margin: 0 5rem;
	}

	.palette-section {
		padding: 0 5rem;
	}
}

@media screen and (max-width: 900px) {
	.content {
		padding-top: 3rem;
	}

	.content-text-w-illu {
		flex-direction: column-reverse;
		gap: 3rem;
		padding: 0 3rem;
	}

	.content-illu-1 {
		height: 100%;
		width: 370px;
		object-fit: cover;
		border-radius: 1rem;
	
	}

	.content-text-w-illu-2 {
		flex-direction: column;
	}

	.content-illu-2 {
		height: 220px;
	}

	.badge-banner {
		padding: 0 3rem;
		gap: 3rem;
	}

	.badge-text ul {
		column-gap: 3rem;
	}

	.align-left {
		margin-left: 3rem;
		margin-right: 3rem;
		padding-right: 10rem;
	}

	.align-right {
		margin-left: 3rem;
		margin-right: 3rem;
		padding-left: 10rem;
	}

	.centered {
		margin: 0 3rem;
	}

	.logo-1,
	.logo-2 {
		height: 550px;
	}

	.logo-1 img {
		height: 300px;
	}

	.logo-2 img {
		height: 215px;
	}

	.border-pattern-top,
	.border-pattern-bottom {
		height: 200px;
	}

	.palette-section {
		padding: 0 3rem;
	}

	.palette-section div {
		flex-direction: column;
	}

	.palette {
		width: 60%;
		margin-bottom: 2rem;
	}

	.palette-text {
		width: 100%;
	}

	.pattern-section {
		flex-direction: column;
		height: 260vh;
	}
}

@media screen and (max-width: 800px) {
	.badge-banner-wrapper {
		margin-top: 0;
	}

	.badge-banner {
		flex-direction: column;
		gap: 3rem;
	}

	.palette {
		width: 70%;
	}
}

@media screen and (max-width: 700px) {
	.content-text h2 {
		font-size: 2.3rem;
		line-height: 2.2rem;
	}

	.patchwork {
		height: 900px;
		margin-top: -2rem;
	}

	.align-left {
		padding-right: 0;
	}

	.align-right {
		padding-left: 0;
	}

	.full-width-images {
		flex-direction: column;
		align-items: center;
		gap: 5rem;
	}

	.crayons {
		width: 100%;
	}

	.cartes {
		width: 150%;
	}

	.bravache-pattern {
		background-size: 350px;
	}
}

@media screen and (max-width: 600px) {
	.content-text-w-illu {
		gap: 2rem;
	}

	.badge-banner {
		margin: 1.5rem 0 0;
	}

	.badge-text {
		height: auto;
		text-align: center;
	}

	.badge-text ul {
		flex-wrap: nowrap;
		align-items: center;
		height: auto;
		padding: 0;
	}

	.logo-1,
	.logo-2 {
		height: 500px;
	}

	.logo-1 img {
		height: 200px;
	}

	.logo-2 img {
		height: 150px;
	}

	.border-pattern-top,
	.border-pattern-bottom {
		height: 150px;
	}

	.palette {
		width: 100%;
	}
}

@media screen and (max-width: 450px) {
	.content {
		padding-top: 2rem;
		padding-bottom: 5rem;
	}

	.content-text-w-illu {
		padding: 0 1.5rem;
	}

	.content-text-1 {
		padding: 0 1.5rem;
	}

	.content-illu-1 {
		height: 100%;
		width: 100vw;
		border-radius: 0;

	}

	.badge-banner {
		padding: 0 1.5rem;
	}

	.patchwork {
		height: 750px;
		margin-top: 0;
	}

	.align-left,
	.align-right {
		margin-left: 1.5rem;
		margin-right: 1.5rem;
	}

	.centered {
		margin: 0 1.5rem;
	}

	.palette-section {
		padding: 0 1.5rem;
	}

	.cartes {
		width: 200%;
	}

	.bravache-pattern {
		background-size: 300px;
	}
}
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {

	.wiggle-animation {
		animation: wiggle 4s ease-in-out infinite;
		transform-origin: 45% 70%;
		}
	
	@keyframes wiggle {
	0% {
	  transform: rotate(0deg);
	}
	82% {
	  transform: rotate(0deg);
	}

	85% {
		transform: rotate(-10deg);
	  }

	88% {
	  transform: rotate(8deg);
	}

	90% {
		transform: rotate(-5deg);
	}

	92% {
		transform: rotate(3deg);
	  }
  
	95% {
		transform: rotate(-2deg);
	  }

	97% {
		transform: rotate(1deg);
	  }
	
	100% {
		transform: rotate(0deg);
	}
  }  

}

/* Parallax animations */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
		.patchwork > .parallax-b1 {
			animation: parallaxB1 linear forwards;
			animation-timeline: view(-80%);
		}

		.patchwork > .parallax-b2 {
			animation: parallaxB2 linear forwards;
			animation-timeline: view(-80%);
		}

		.patchwork > .parallax-f1 {
			animation: parallaxF1 linear forwards;
			animation-timeline: view(-80%);
		}

		.patchwork > .parallax-f2 {
			animation: parallaxF2 linear forwards;
			animation-timeline: view(-80%);
		}

		@keyframes parallaxB1 {
			from {
				translate: 0 -50px;
			}

			to {
				translate: 0 50px;
			}
		}

		@keyframes parallaxB2 {
			from {
				translate: 0 -100px;
			}

			to {
				translate: 0 100px;
			}
		}

		@keyframes parallaxF1 {
			from {
				translate: 0 50px;
			}

			to {
				translate: 0 -50px;
			}
		}

		@keyframes parallaxF2 {
			from {
				translate: 0 100px;
			}

			to {
				translate: 0 -100px;
			}
		}
	}
}
