
/* grid flex */

/* 
 * Box home
 */ 
.box-container {
	display:grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 40px;
    padding: 0px 40px 0px 40px;
	margin-bottom: 40px;
}

.box-container .box {
    position: relative;
    display: block;
	grid-column: span 4 / span 4;
    overflow: hidden;
}

.box-container .box:before {
    content: '';
    display: block;
    height: 0;
    padding-bottom: 155%;
}
.box-container a {
    background-color: #ffffff;
}
.box-container .box .box__cover {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;

}

.box-container .box .box__cover.box__cover--video {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: all 2.4s ease-out;
}



.box-container .box .box__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    text-align: center;
    color: #fff;
}
.box__logo_blog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    text-align: center;
    max-height: 80%;
    height: auto;
}
.box-container p {
    line-height: initial;
    font-weight: 300;
    letter-spacing: 1.8px;
    z-index: 9;
    position: relative;
    text-align: center;
    background-color: #fff;
    bottom: 0;
    margin: 0;
    padding: 10px 5px 5px 5px;
}
.box-journal p {
	text-align: center;
	color: #ffffff;

}
.box__logo p {
    color: #ffffff;
    text-align: center;
}

.box-container  .box__cover{
	transform: scale(1);
	opacity: 1;
    transition: all 0.5s;
}

.box__cover:hover{
    transform: scale(1.03);
}


/* Resolution au dessus ipad" */
@media screen and (min-width:768px) {


	.box-container .box {
		grid-column: span 1 / span 1;
	}


}




@media screen and (max-width:768px) {
	
	.box-container .box .box__logo {
		padding: 20px 7px 35px 5px;
         margin-bottom: 40px;


}
    .box-container {
grid-template-columns: repeat(2, 1fr);
    padding: 0px 20px 0px 20px;
}
	
	.box-container {

grid-gap: 20px;

margin-bottom: 20px;
}
	
	
		.box-container .box {
		grid-column: span 2 / span 2;
	}
	
	
    


}
