/* Globinfoo — Vidéos d'événements */

.gi-ev-wrap {
	--gi-blue: #0066bf;
	--gi-red: #dd3333;
	--gi-cols: 3;
	max-width: 100%;
	margin: 0 auto;
}

/* Onglets de filtre */
.gi-ev-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	justify-content: center;
}
.gi-ev-filter {
	appearance: none;
	border: 1px solid #d6dde4;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: all .18s ease;
	line-height: 1;
}
.gi-ev-filter:hover {
	border-color: var(--gi-blue);
	color: var(--gi-blue);
}
.gi-ev-filter.is-active {
	background: var(--gi-blue);
	border-color: var(--gi-blue);
	color: #fff;
}

/* Grille */
.gi-ev-grid {
	display: grid;
	grid-template-columns: repeat(var(--gi-cols), 1fr);
	gap: 24px;
}

/* Carte */
.gi-ev-card {
	background: #fff;
	border: 1px solid #e6eaee;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}
.gi-ev-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}
.gi-ev-card.is-hidden { display: none; }

.gi-ev-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0a1622;
	overflow: hidden;
}
.gi-ev-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.gi-ev-card:hover .gi-ev-thumb img { transform: scale(1.05); }

.gi-ev-thumb-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 46px;
	opacity: .5;
}

/* Bouton play */
.gi-ev-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(221, 51, 51, .92);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	padding-left: 4px;
	transition: transform .18s ease, background .18s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.gi-ev-card:hover .gi-ev-play {
	transform: translate(-50%, -50%) scale(1.12);
	background: var(--gi-red);
}

/* Badge type */
.gi-ev-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--gi-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 4px 10px;
	border-radius: 4px;
}

/* Corps */
.gi-ev-body { padding: 14px 16px 18px; }
.gi-ev-title {
	font-size: 17px;
	line-height: 1.3;
	margin: 0 0 6px;
	color: #16202b;
}
.gi-ev-date {
	font-size: 12px;
	color: var(--gi-red);
	font-weight: 600;
	margin-bottom: 8px;
}
.gi-ev-desc {
	font-size: 14px;
	line-height: 1.5;
	color: #5a6b7b;
	margin: 0;
}
.gi-ev-empty {
	text-align: center;
	color: #888;
	padding: 40px 0;
}

/* Lightbox */
.gi-ev-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .85);
	z-index: 2147483000; /* au-dessus du header sticky du thème */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.gi-ev-lightbox[hidden] { display: none; }
.gi-ev-lightbox-inner {
	width: 100%;
	max-width: 900px;
}
.gi-ev-lightbox-title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	padding-right: 40px;
}
.gi-ev-lightbox-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
.gi-ev-lightbox-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.gi-ev-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.gi-ev-lightbox-close:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1023px) {
	.gi-ev-wrap { --gi-cols: 2 !important; }
}
@media (max-width: 600px) {
	.gi-ev-wrap { --gi-cols: 1 !important; }
	.gi-ev-filters { justify-content: flex-start; }
}
