/* Elementor Add-on — widgets */

.ea-loop-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ea-loop-grid__item {
	min-width: 0;
}

.ea-loop-grid__pagination {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.ea-loop-grid__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid currentColor;
	border-radius: 6px;
	text-decoration: none;
	opacity: .75;
}

.ea-loop-grid__pagination .page-numbers.current {
	opacity: 1;
	font-weight: 600;
}

/* Publications */
.ea-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ea-posts__item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ea-posts__thumb {
	display: block;
}

.ea-posts__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.ea-posts__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 0;
}

.ea-posts__title {
	margin: 0;
	font-size: 1.15em;
	line-height: 1.3;
}

.ea-posts__title a {
	text-decoration: none;
	color: inherit;
}

.ea-posts__meta {
	font-size: .85em;
	opacity: .7;
}

.ea-posts__excerpt {
	font-size: .95em;
}

.ea-posts__more {
	align-self: flex-start;
	margin-top: 4px;
	text-decoration: none;
	font-weight: 600;
}

/* Gallery */
.ea-gallery--grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ea-gallery--masonry {
	column-count: 3;
	column-gap: 12px;
}

.ea-gallery__item {
	margin: 0;
	overflow: hidden;
	position: relative;
}

.ea-gallery--masonry .ea-gallery__item {
	break-inside: avoid;
	margin-bottom: 12px;
	display: inline-block;
	width: 100%;
}

.ea-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
}

.ea-gallery--zoom .ea-gallery__item img {
	transition: transform .4s ease;
}

.ea-gallery--zoom .ea-gallery__item:hover img {
	transform: scale(1.08);
}

.ea-gallery__caption {
	font-size: .85em;
	padding: 6px 2px;
	opacity: .8;
}

/* Gallery — mode slider */
.ea-gallery--slider {
	position: relative;
	padding-left: 46px;
	padding-right: 46px;
}

.ea-gallery--slider .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
}

/* Logos/images : pas d'etirement, taille uniforme, centres */
.ea-gallery--slider .ea-gallery__item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ea-gallery--slider .ea-gallery__item img {
	width: auto;
	max-width: 100%;
	max-height: 90px;
	margin: 0 auto;
	object-fit: contain;
}

/* Fleches dans la gouttiere laterale, pas par-dessus les images */
.ea-gallery--slider .swiper-button-prev,
.ea-gallery--slider .swiper-button-next {
	color: inherit;
	width: 36px;
	height: 36px;
	margin-top: -18px;
}

.ea-gallery--slider .swiper-button-prev { left: 2px; }
.ea-gallery--slider .swiper-button-next { right: 2px; }

/* Points sous le carrousel */
.ea-gallery--slider .swiper-pagination {
	position: static;
	margin-top: 14px;
}

/* Off-Canvas */
.ea-offcanvas__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
}

.ea-offcanvas__overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .5 );
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
	z-index: 9998;
}

.ea-offcanvas.is-open .ea-offcanvas__overlay {
	opacity: 1;
	visibility: visible;
}

.ea-offcanvas__panel {
	position: fixed;
	z-index: 9999;
	max-width: 100%;
	max-height: 100%;
	background: #fff;
	overflow: auto;
	transition: transform .3s ease;
	box-shadow: 0 0 40px rgba( 0, 0, 0, .15 );
}

.ea-offcanvas[data-position="right"] .ea-offcanvas__panel { top: 0; bottom: 0; right: 0; transform: translateX( 100% ); }
.ea-offcanvas[data-position="left"]  .ea-offcanvas__panel { top: 0; bottom: 0; left: 0;  transform: translateX( -100% ); }
.ea-offcanvas[data-position="top"]    .ea-offcanvas__panel { left: 0; right: 0; top: 0;    width: 100% !important; transform: translateY( -100% ); }
.ea-offcanvas[data-position="bottom"] .ea-offcanvas__panel { left: 0; right: 0; bottom: 0; width: 100% !important; transform: translateY( 100% ); }

.ea-offcanvas.is-open .ea-offcanvas__panel { transform: none; }

.ea-offcanvas__close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.ea-offcanvas__content { padding: 48px 24px 24px; }

body.ea-offcanvas-lock { overflow: hidden; }

/* Loop Carousel */
.ea-loop-carousel {
	position: relative;
	overflow: hidden;
}

.ea-loop-carousel .swiper-slide {
	height: auto;
}

.ea-loop-carousel .swiper-button-prev,
.ea-loop-carousel .swiper-button-next {
	color: currentColor;
}

.ea-loop-grid__notice {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #50575e;
	background: #f6f7f7;
	text-align: center;
}
