.line,
.line1 {
	display: flex;
	justify-content: center;
	height: 300px;
	margin: 30px 0;
}

.square,
.multiSquare {
	height: 300px;
	width: 445px;
	margin: 0 25px;
}

.square p,
.miniSquare p {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	height: 100%;
	width: 100%;
	padding: 20px;
	text-align: justify;
	z-index: 2;
	color: white;
	font-size: 1.5em;
	font-weight: bold;
	visibility: hidden;
	overflow-y: scroll;
	overflow-x: hidden;
}

.square p::-webkit-scrollbar,
.miniSquare p::-webkit-scrollbar {
	width: 5px;
	border-radius: 5px;
	background-color: transparent;
	margin-left: 10px;
}

.square p::-webkit-scrollbar-thumb,
.miniSquare p::-webkit-scrollbar-thumb {
	background-color: white;
	border: 1px solid black;
	border-radius: 5px;
}

.square p {
	top: -305px;
}

.miniSquare p {
	top: -143px;
}

.square:hover p,
.miniSquare:hover p {
	visibility: visible;
}

.square > img {
	/* width minisquare : = Taille grande image * 2 + marge centrale de 28px
	soit 208,3 * 2 + 28 = 444,6 px */
	height: 300px;
	width: 445px;
}

.multiSquare {
	display: flex;
	align-content: flex-start;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.lineImg {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.miniSquare,
.miniSquare > img {
	height: 138px;
	width: 208px;
}

.square::after,
.miniSquare::after {
	display: flex;
	align-items: center;
	position: relative;
	background-image: linear-gradient(transparent, black);
	height: 0;
	font-family: Helvetica, sans-serif;
	font-size: 20px;
	content: '';
	text-align: center;
	word-wrap: normal;
	left: 0;
	transition: all ease-out 0.3s;
	bottom: 4px;
}

.square::after {
	width: 445px;
}

.miniSquare::after {
	width: 208px;
}

.lineImg:first-child {
	margin-right: 14px;
}

.lineImg:last-child {
	margin-left: 14px;
}

.square:hover::after,
.miniSquare:hover::after {
	height: 100%;
	color: white;
	transition: all ease-out 0.3s;
}

.square:hover::after {
	bottom: 304px;
}

.miniSquare:hover::after {
	bottom: 142px;
}

/* NOTE : if background 350px on left and right use next media queries : */
@media (max-width: 1600px) {
	main {
		background: none;
	}
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
	/* Width : Toutes les mesures trouvées se sont faite grâce à la règle de proportionnalité */
	.line, .line1 {
		height: 250px;
		margin-bottom: 50px;
	}

	.multiSquare {
		height: 250px;
		width: 371px;
	}

	.line1 .square > img,
	.line .square > img {
		height: 250px;
		width: 371px;
	}

	.line .miniSquare > img,
	.line1 .miniSquare > img,
	.miniSquare {
		height: 120px;
		width: 180px;
	}

	.lineImg:last-child {
		margin-left: 0;
	}

	.lineImg:first-child {
		margin-right: 10px;
	}

	.square {
		height: 250px;
		width: 371px;
	}

	.square p {
		height: 250px;
		width: 371px;
		top: -250px;
	}

	.miniSquare p {
		top: -120px;
	}

	.square::after {
		width: 371px;
	}

	.square:hover::after {
		content: '';
		height: 250px;
		bottom: 255px;
	}

	.miniSquare::after {
		width: 181px;
	}

	.miniSquare:hover::after {
		content: '';
		height: 120px;
		color: white;
		transition: all ease-out 0.3s;
		bottom: 120px;
	}
}

@media screen and (min-width: 480px) and (max-width: 767px) {
	.line,
	.line1 {
		align-items: center;
		height: 661px;
		margin:0;
	}

	.line {
		flex-direction: column;
	}

	.line1 {
		flex-direction: column-reverse;
	}

	.square {
		font-size: 0;
		margin: 0 0 30px;
	}

	.square p {
		top: -306px;
	}

	.lineImg:last-child {
		height: 306px;
		margin-left: 0;
	}

	.multiSquare,
	.square > img {
		height: 306px;
		width: 445px;
	}

	.multiSquare {
		justify-content: space-between;
		margin:0;
	}

	.miniSquare:first-child {
		margin-top: 0;
		margin-bottom: 30px;
	}

	.square::after {
		height: 0;
		width: 445px;
		bottom: 0;
	}

	.square:hover::after {
		height: 306px;
		margin-bottom: -306px;
		bottom: 306px;
	}

	.miniSquare:hover::after {
		height: 100%;
	}
}

@media screen and (min-width: 100px) and (max-width: 479px) {
	.line1,
	.line {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: fit-content;
		margin-top: 5px;
		margin-bottom: 5px;
	}

	.line .square,
	.line1 .square {
		height: 270px;
		width: 400px;
		margin-left: 0;
		margin-right: 0;
		font-size: 0;
	}

	.lineImg:first-child {
		margin-right: 0;
	}

	.lineImg:last-child {
		margin-left: 0;
	}

	.miniSquare,
	.miniSquare > img {
		height: 271px;
		width: 400px;
		font-size: 0;
		margin-top: 5px;
		margin-bottom: 5px;
	}

	.multiSquare {
		flex-direction: column;
		width: 400px;
		justify-content: space-between;
		margin: 5px 0;
	}

	.square > img {
		height: 100%;
		width: 100%;
	}

	.lineImg {
		margin-top: 0;
		margin-bottom: 0;
	}

	.square::after {
		height: 0;
		width: 400px;
	}

	.square:hover::after {
		height: 300px;
		margin-bottom: -300px;
		content: '';
	}

	.miniSquare::after {
		width: 400px;
	}

	.miniSquare:hover::after {
		content: '';
		height: 100%;
		bottom: 271px;
	}
}
