@charset "utf-8";

/* ======================================================================
   ERI SLIDER — News / Events / Insights
   ----------------------------------------------------------------------
   Composant actuel :
   #SlideTab* > .colPrev / .Grid3x3 / .colNext
   .et_pb_code_inner reçoit .slider.blog-carousel via eri-slider.js
   Moteur : Slick

   IMPORTANT :
   - .Grid4x3 n'est pas inclus ici (legacy à auditer séparément)
   - .colSlick n'est pas inclus ici (legacy à auditer séparément)
   - .GRID3x3 (majuscule) n'est pas ce composant : ancien DICA/Swiper
   ====================================================================== */


/* ----------------------------------------------------------------------
   Structure générale
   ---------------------------------------------------------------------- */

#SlideTab1,
#SlideTab2,
#SlideTab3,
#SlideTab4 {
	justify-content: center;
}

.colPrev,
.colNext {
	width: 50px !important;
}

.Grid3x3 {
	width: 100% !important;
	max-width: 1280px;
}

.Grid3x3 article {
    min-width: 0;
}
/* ----------------------------------------------------------------------
   Cartes
   ---------------------------------------------------------------------- */

.Grid3x3 article {
	width: auto !important;
	padding: 22px;
	margin: 30px;
	display: inline-grid !important;
	grid-template-rows: 75px 95px auto;
	height: 400px;

	background-color: #f5f5f5;
	border-radius: 5px;
	border: 1px solid #f0f0f0;
}

.Grid3x3 article h5.entry-title {
	font-size: 16px;
	line-height: 14px;
}

.Grid3x3 article .entry-title,
.Grid3x3 article .entry-title a {
	font-size: 14px !important;
	font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 500 !important;
	color: #12a8c0 !important;
	text-transform: uppercase;
	line-height: 14px;

	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

.Grid3x3 article .post-content .post-content-inner p,
.Grid3x3 article .EventInfo {
	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.Grid3x3 article .post-content .EventInfo,
.Grid3x3 article .post-content p {
	font-size: 16px;
	color: #343a40 !important;
}

.Grid3x3 article .post-content .EventInfo b,
.Grid3x3 article .post-content .EventInfo date {
	font-weight: 500;
}

.Grid3x3 .thumbnail-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.Grid3x3 .thumbnail-wrapper > a {
    display: flex;
    width: 100%;
    align-items: center;
}

.Grid3x3 .thumbnail-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}


.Grid3x3 article > div.image,
.Grid3x3 article > a {
	margin-top: 0 !important;
	grid-row-start: 3;
	overflow: hidden;
	margin-bottom: 0 !important;
	display: flex !important;
	align-items: center;
}

.Grid3x3 article > div.EventReg {
	display: grid;
	grid-template-rows: 40% 60%;
}

.Grid3x3 article > div.EventReg > div {
	justify-content: center;
	display: flex;
	align-items: center;
}

.Grid3x3 .post-meta {
	display: none;
}


/* Events : le titre n'est volontairement pas cliquable */
#EventsBlog article .entry-title a {
	pointer-events: none;
}


/* ----------------------------------------------------------------------
   Slick
   ---------------------------------------------------------------------- */

.Grid3x3 .slick-slide > div {
    display: grid;
}

.Grid3x3 .slick-dots {
	height: 50px;
	bottom: -50px !important;
}


/* ----------------------------------------------------------------------
   Flèches externes
   ---------------------------------------------------------------------- */

.prev-button,
.next-button {
	background-color: white;
	width: 50px;
	height: 100px;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: 50% 50%;
	mask-position: 50% 50%;
	-webkit-mask-size: contain;
	mask-size: contain;
	cursor: pointer;
}

.prev-button {
	-webkit-mask-image: url(/wp-content/uploads/2021/01/Arrow_leftDark.svg);
	mask-image: url(/wp-content/uploads/2021/01/Arrow_leftDark.svg);
}

.next-button {
	-webkit-mask-image: url(/wp-content/uploads/2021/01/Arrow_rightDark.svg);
	mask-image: url(/wp-content/uploads/2021/01/Arrow_rightDark.svg);
}


/* ======================================================================
   DESKTOP XL — 1381px+
   ====================================================================== */

@media only screen and (min-width: 1381px) {
	  .Grid3x3 .slick-slide > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

	.Grid3x3 .slick-dots {
		display: none;
	}

	.Grid3x3 article .entry-title,
	.Grid3x3 article .entry-title a {
		font-size: 13px !important;
		line-height: 12px !important;
	}
}


/* ======================================================================
   DESKTOP — 981px à 1380px
   ====================================================================== */

@media only screen and (max-width: 1380px) and (min-width: 981px) {

	.Grid3x3 {
		width: 80% !important;
	}


	.Grid3x3 article {
		padding: 11px;
		margin: 20px;
		grid-template-rows: 60px 60px auto;
		height: 300px;
	}

	.Grid3x3 article .post-content .post-content-inner p {
		-webkit-line-clamp: 3;
		font-size: 14px !important;
	}

	.Grid3x3 article .entry-title a {
		font-size: 12px !important;
		line-height: 12px;
		-webkit-line-clamp: 4;
	}
}


/* ======================================================================
   TABLET — 768px à 980px
   ====================================================================== */

@media only screen and (max-width: 980px) and (min-width: 768px) {

	#SlideTab1,
	#SlideTab2,
	#SlideTab3,
	#SlideTab4 {
		display: flex;
		width: 100%;
	}

	.Grid3x3 article {
		padding: 14px;
		margin: 14px;
		grid-template-rows: 60px 60px auto 0;
		height: 320px;
	}

	.Grid3x3 article .entry-title,
	.Grid3x3 article .entry-title a {
		-webkit-line-clamp: 4;
	}

	.Grid3x3 article .entry-title {
		line-height: 0.8;
	}

	.Grid3x3 article .post-content .post-content-inner p {
		-webkit-line-clamp: 3;
		font-size: 14px !important;
	}
}


/* ======================================================================
   MOBILE — jusqu'à 767px
   Slick reste actif de 426px à 767px.
   ====================================================================== */

@media only screen and (max-width: 767px) {

	#SlideTab1,
	#SlideTab2,
	#SlideTab3,
	#SlideTab4 {
		display: flex;
		width: 100%;
	}

	.Grid3x3 article .entry-title {
		line-height: 0.8;
	}
	
	.Grid3x3 .slick-slide > div {
        grid-template-columns: minmax(0, 1fr);
		grid-gap: 50px;
	}

	.Grid3x3 article {
		width: auto !important;
		padding: 0;
		margin: 25px 0;
		display: grid !important;
		grid-template-rows: 80px 80px auto;
		border: none;
		border-bottom: 1px solid #AAA;
		border-radius: 0;
		background: none;
		height: auto;
	}

	.Grid3x3 article > a {
		margin-bottom: 25px !important;
	}
}


/* ======================================================================
   MOBILE XS — jusqu'à 425px
   eri-slider.js détruit Slick : la liste redevient verticale naturellement.
   Aucun override supplémentaire nécessaire ici.
   ====================================================================== */

@media only screen and (max-width: 425px) {

}


@media only screen and (max-width: 1380px) and (min-width: 768px) {
    .Grid3x3 .slick-slide > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   TABLET + MOBILE : pas de navigation latérale
   ========================================================= */
@media only screen and (max-width: 980px) {

    .colPrev,
    .colNext {
        display: none !important;
    }

    .prev-button,
    .next-button {
        display: none !important;
    }

    .Grid3x3 {
        width: 100% !important;
        max-width: 80%;
    }

    #SlideTab1,
    #SlideTab2,
    #SlideTab3,
    #SlideTab4 {
        width: 100%;
        justify-content: center;
    }
}
