#realisations {
	flex-wrap: wrap;
	margin-top: 100px;
}

#realisations h1 {
	width: 100%;
	text-align: center;
	font-size: 40px;
	font-family: "Shining Monday", sans-serif;
	color: #95c6a9;
	letter-spacing: 2px;
}

#realisations div#logos h2 {
	color: #333333;
}

#realisations nav {
	width: 100%;
	margin-top: 30px;
}

#realisations nav ul {
	display: flex;
	justify-content: center;
	gap: 50px;
	list-style: none;
	width: 100%;
	flex-wrap: wrap;
}

#realisations nav ul li {
	width: calc(100% / 3.5);
	text-align: center;
	padding: 10px;
}

#realisations nav ul li a {
	display: block;
	padding: 10px;
	color: #333333;
	width: 50%;
	margin: auto;
	border-radius: 25px;
	font-size: 20px;
	transition: 0.3s ease-in;
	font-family: "Shining Monday", sans-serif;
}

#realisations nav ul li:hover a {
	transform: rotate(5deg);
	color: #000;
}

#realisations nav ul li:nth-child(1) a {
	background-color: #95c6a9;
}

#realisations nav ul li:nth-child(2) a {
	background-color: #fff7d4;
}

#realisations nav ul li:nth-child(3) a {
	background-color: #f4d0e9;
}

@media (max-width: 767px) {
	#realisations nav ul li {
		width: 100%;
	}
	#realisations nav ul li a {
		width: 100%;
	}
}

#realisations div {
	width: 100%;
}

#realisations div div.grid-real {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	justify-content: center;
	align-items: center;
	padding: 30px;
	text-align: center;
	gap: 30px;
}

#realisations div div.grid-real .real {
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 45px;
	background: #f1f1f1;
	position: relative;
}

#realisations div div.grid-real .real h3 {
	opacity: 0;
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.4);
	border-radius: 45px;
	color: #f1f1f1;
	transition: 0.5s ease-in-out;
}

#realisations div div.grid-real .real:hover h3 {
	opacity: 1;
}

#realisations div#logos div.grid-real .real.real-1 {
	background-image: url(../img/realisations/logos/real-1.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

#realisations div#logos div.grid-real .real.real-2 {
	background-image: url(../img/realisations/logos/real-2.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
#realisations div#logos div.grid-real .real.real-3 {
	background-image: url(../img/realisations/logos/real-3.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
#realisations div#logos div.grid-real .real.real-4 {
	background-image: url(../img/realisations/logos/real-4.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#realisations div#illustrations div.grid-real .real.real-1 {
	background-image: url(../img/realisations/illustrations/real-1.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#realisations div#illustrations div.grid-real .real.real-2 {
	background-image: url(../img/realisations/illustrations/real-2.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
#realisations div#illustrations div.grid-real .real.real-3 {
	background-image: url(../img/realisations/illustrations/real-3.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
#realisations div#illustrations div.grid-real .real.real-4 {
	background-image: url(../img/realisations/illustrations/real-4.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#realisations div#autre div.grid-real .real.real-1 {
	background-image: url(../img/realisations/autre/real-1.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#realisations div#autre div.grid-real .real.real-2 {
	background-image: url(../img/realisations/autre/real-2.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
#realisations div#autre div.grid-real .real.real-3 {
	background-image: url(../img/realisations/autre/real-3.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
#realisations div#autre div.grid-real .real.real-4 {
	background-image: url(../img/realisations/autre/real-4.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
}

/* Modal Content */
.modal-content {
	background-color: white;
	margin: 15% auto;
	padding: 20px;
	width: 80%;
	max-width: 900px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.modal-body {
	width: 100%;
	display: flex;
}

/* Modal image */
.modal-image {
	width: 50%;
	margin-right: 20px;
	object-fit: contain;
}

/* Modal text */
.modal-text {
	max-width: 50%;
}

/* Close button */
.close {
	position: absolute;
	width: 20%;
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-position: center;
	top: -10%;
	right: -10%;
	color: #aaa;
	font-weight: bold;
	color: #555555;
	font-size: 20px;
	background-image: url(../img/btn-nuage2.svg);
	background-repeat: no-repeat;
	background-size: contain;
}

.close:hover,
.close:focus {
	color: black;
	cursor: pointer;
}

@media (max-width: 767px) {
	.modal {
		overflow: scroll;
	}
	.modal-content {
		position: relative;
		top: 20%;
		width: 90%;
		margin: 0 auto;
	}
	.modal-body {
		flex-direction: column;
		align-items: center;
	}
	.modal-text {
		max-width: none;
		align-self: flex-start;
	}

	.modal-image {
		width: 100%;
	}

	.close {
		width: 40%;
		top: 0;
		right: 0;
	}
}

/* Disable scroll when modal is open */
body.modal-open {
	overflow: hidden;
}
