/* ==========================================================================
   Variables (surchargées en inline depuis les réglages admin)
   ========================================================================== */

.evt-wrapper {
	--evt-couleur-titre: #70ad2e;
	--evt-couleur-date-lieu: #1c98b9;
	--evt-couleur-accent: #5c8a2c;
	--evt-couleur-badge-fond: #ffffff;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 10px 40px;
	box-sizing: border-box;
}
.evt-wrapper *, .evt-wrapper *::before, .evt-wrapper *::after {
	box-sizing: border-box;
}
img.icon-lieux {
    width: 28px;
}
.evt-swiper .swiper-slide {
	flex-shrink: 0;
	box-sizing: border-box;
}
.evt-swiper .swiper-wrapper {
	width: 100%;
}

/* ==========================================================================
   Filtres
   ========================================================================== */
.evt-modal a {
    color: #4f7820;
}
.evt-filtres {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 30px;
	justify-content: center;
}
.evt-filtre-champ label {
	display: block;
	font-size: 13px;
	color: #888;
	margin-bottom: 4px;
	text-transform: capitalize;
}
.evt-select {
	min-width: 180px;
	padding: 8px 32px 8px 12px;
	border: none;
	border-bottom: 1px solid #ddd;
	background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
	appearance: none;
	-webkit-appearance: none;
	font-size: 15px;
	color: #1a6fc4;
	cursor: pointer;
}
.evt-select:focus {
	outline: none;
	border-bottom-color: var(--evt-couleur-accent);
}

/* ==========================================================================
   Slider / Grille de cartes
   ========================================================================== */
.evt-slider-container {
	position: relative;
	padding: 0 44px;
}
.evt-swiper {
	overflow: hidden;
	padding: 7px;
}
.evt-swiper .swiper-wrapper {
	align-items: stretch;
}

.evt-swiper-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	cursor: pointer;
	z-index: 5;
	transition: background .2s, color .2s;
}
.evt-swiper-nav:hover {
	background: var(--evt-couleur-accent);
	color: #fff;
}
.evt-swiper-prev { left: 0; }
.evt-swiper-next { right: 0; }
.evt-swiper-nav.swiper-button-disabled {
	opacity: .3;
	pointer-events: none;
}

.evt-aucun-resultat {
	text-align: center;
	color: #888;
	padding: 40px 0;
}
p.wp-block-paragraph img {
    width: 15px;
}
/* ==========================================================================
   Carte événement
   ========================================================================== */
.evt-carte .post-content{
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	height: 325px;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s, transform .25s;
	margin-bottom:19px;
	box-shadow: 0px 1px 3px grey;
    margin-top: 19px;
}

.evt-carte-image {
	width: 100%;
	background: #fff;
	overflow: hidden;
}
.evt-carte-img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	display: block;
}
.evt-carte-img--vide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}
.evt-carte-infos {
	padding: 14px 16px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.evt-carte-date {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
	color: #1c98b9;
	text-transform: uppercase;
	text-align:center;
	    padding-bottom: 0;
}
.evt-carte-lieu {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--evt-couleur-date-lieu);
	text-transform: uppercase;
    text-align: center;
}
.evt-carte-titre {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--evt-couleur-titre);
	text-align: center;
}

/* ==========================================================================
   Popup (modal)
   ========================================================================== */
.evt-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20,20,20,.65);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.evt-modal-overlay.evt-actif {
	display: flex;
}
.evt-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 95%;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding: 40px;
    height: 83vh;
}
.evt-modal-fermer {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	z-index: 2;
}
.evt-modal-fermer:hover { color: #333; }

.evt-modal-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}
.evt-modal-loader span {
	width: 34px;
	height: 34px;
	border: 3px solid #ddd;
	border-top-color: var(--evt-couleur-accent);
	border-radius: 50%;
	animation: evt-spin .8s linear infinite;
}
@keyframes evt-spin { to { transform: rotate(360deg); } }

#evt-modal-contenu {
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
}
#evt-modal-contenu.evt-modal-contenu-charge {
	flex-wrap: nowrap;
	align-items: flex-start;
}

.evt-popup-principal { flex: 1; min-width: 0; }

/* En-tête : badge(s) calendrier + titre/sous-titre. */
.evt-popup-entete {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.evt-badges-dates {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	justify-content: center;
}
.evt-badge-calendrier {
	width: 100px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0,0,0,.16);
	overflow: hidden;
	text-align: center;
	font-family: inherit;
	flex-shrink: 0;
	height: 88px;
    margin-bottom: 1px;
}
.evt-badge-mois {
	display: block;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 0;
	text-transform: uppercase;
}
.evt-badge-jour {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #222;
	padding: 3px 0 0;
}
.evt-badge-jour-sem {
	display: block;
	font-size: 11px;
	color: #777;
	padding-bottom: 5px;
}
.evt-badge-connecteur {
	font-size: 13px;
	color: #999;
	font-style: italic;
}

.evt-popup-entete-texte { flex: 1; min-width: 200px; }
.evt-popup-titre {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
	color: #222;
}
.evt-popup-souscription {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color:#565656;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.evt-popup-separateur {
	border: none;
	border-top: 1px solid #eee;
	margin: 20px 0;
}

.evt-popup-corps {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
}
.evt-popup-image {
	flex: 0 0 331px;
}
.evt-popup-image img {
	width: 100%;
	border-radius: 10px;
	cursor: zoom-in;
	display: block;
	object-fit: cover;
}
.evt-popup-description {
	flex: 1;
	min-width: 220px;
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

.evt-popup-droite {
	flex: 0 0 240px;
	border-left: 1px solid #eee;
	padding-left: 30px;
}
.evt-popup-bloc { margin-bottom: 20px; }
.evt-popup-bloc h4 {
	margin: 0 0 4px;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #003057;
	font-family: 'Barlow';
	font-weight:700
}
.evt-popup-bloc p, .evt-popup-bloc a {
	margin: 0;
	font-size: 15px;
	color: #333;
	line-height: 1.5;
	word-break: break-word;
}
.evt-popup-bloc a {
	color: #4f7820;
	text-decoration: none;
	
}
.evt-popup-bloc a:hover { text-decoration: underline; }

/* ==========================================================================
   Lightbox (image en grand)
   ========================================================================== */
.evt-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.9);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 30px;
}
.evt-lightbox.evt-actif { display: flex; }
.evt-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
}
.evt-lightbox-fermer {
	position: absolute;
	top: 20px;
	right: 26px;
	background: none;
	border: none;
	color: #fff;
	font-size: 34px;
	cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 782px) {
	#evt-modal-contenu {
		flex-direction: column;
	}
	.evt-popup-entete { flex-direction: column; align-items: flex-start; gap: 14px; }
	.evt-popup-corps { flex-direction: column; }
	.evt-popup-image { flex: none; max-width: 220px; margin: 0 auto; }
	.evt-popup-droite {
		border-left: none;
		border-top: 1px solid #eee;
		padding-left: 0;
		padding-top: 20px;
	}
	.evt-modal { padding: 26px 20px; }
}

@media (max-width: 600px) {
	.evt-slider-container { padding: 0 34px; }
	.evt-swiper-nav { width: 30px; height: 30px; }
	.evt-popup-titre { font-size: 21px; }
	.evt-badge-calendrier { width: 56px; }
	.evt-badge-jour { font-size: 20px; }
}
