/* ============================================================
   Webkraft Video Carousel – Frontend Styles
   Author: Webkraft (https://www.webkraft.fr)
   ============================================================ */

/* ---------- Wrapper global ---------- */
.wkt-carousel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	overflow: hidden;
	background: transparent;
	/* Garantit pleine largeur même dans Kadence */
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
}

/* ---------- Navigation gauche ---------- */
.wkt-nav {
	position: absolute;
	left: 10vw;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 20;
}

.wkt-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	transition: background 0.25s ease, transform 0.2s ease;
	padding: 0;
}

.wkt-nav-btn svg {
	width: 30px;
	height: 30px;
}

.wkt-nav-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.08);
}

.wkt-nav-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* ---------- Track outer ---------- */
.wkt-track-outer {
	/*width: 100%;*/
	width: 80vw;
	margin: auto 0 auto auto;
	overflow: hidden;
	/*max-width: 1600px;
    margin: auto 0 auto auto;*/
}

/* ---------- Track (flex row) ---------- */
.wkt-track {
	display: flex;
	gap: 20px;
	padding: 40px 80px 40px 90px; /* espace gauche pour la nav */
	will-change: transform;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	width: max-content;
}

/* ---------- Item ---------- */
.wkt-item {
	position: relative;
	width: 300px;
	height: 580px;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #1a1a1a;
}

.wkt-item:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.wkt-item:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

/* ---------- Thumbnail ---------- */
.wkt-item-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.5s ease;
}

.wkt-item:hover .wkt-item-thumb {
	transform: scale(1.05);
}

/* ---------- Gradient overlay (multiply) ---------- */
.wkt-item-overlay {
	position: absolute;
	inset: 0;
	/*mix-blend-mode: multiply;*/
	border-radius: 20px;
	/* Dégradé supplémentaire sombre en bas pour lisibilité du titre */
	z-index: 1;
}

/* Dégradé sombre fixe pour le bas (lisibilité titre) */
.wkt-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
	z-index: 2;
	border-radius: 0 0 20px 20px;
	pointer-events: none;
}

/* ---------- Item info (titre) ---------- */
.wkt-item-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 20px 22px;
	z-index: 3;
}

.wkt-item-overlay .picto {
	position: absolute;
	top: 50%;
	left: calc(50% - 30px);
	width: 40px;
	height: 40px;
}

.picto g {
	width: 40px;
	height: 40px;
}

.wkt-item-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: #ffffff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

/* ---------- Modale ---------- */
.wkt-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999999 !important;
	align-items: center;
	justify-content: center;
}

.wkt-modal.is-open {
	display: flex;
}

.wkt-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.96);
	animation: wkt-fade-in 0.25s ease forwards;
}

.wkt-modal-inner {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 1100px;
	animation: wkt-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wkt-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.wkt-modal-close svg {
	width: 18px;
	height: 18px;
}

.wkt-modal-close:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: rotate(90deg);
}

.wkt-modal-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.wkt-modal-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.wkt-modal-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ---------- Animations ---------- */
@keyframes wkt-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes wkt-scale-in {
	from { opacity: 0; transform: scale(0.9); }
	to   { opacity: 1; transform: scale(1); }
}

/* ---------- No videos ---------- */
.wkt-no-videos {
	text-align: center;
	color: #666;
	padding: 40px;
	font-family: 'Inter', sans-serif;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.wkt-item {
		width: 280px;
		height: 500px;
	}

	.wkt-track {
		padding: 30px 20px 30px 75px;
		gap: 14px;
	}

	.wkt-nav {
		left: 12px;
	}

	.wkt-nav-btn {
		width: 36px;
		height: 36px;
	}

	.wkt-modal-inner {
		width: 95vw;
	}

	.wkt-modal-close {
		top: -44px;
	}
}

@media (max-width: 480px) {
	.wkt-item {
		width: 240px;
		height: 440px;
	}

	.wkt-item-title {
		font-size: 15px;
	}
}
