/**
 * Zorya Video — v1.0.1 — développé par ICT (https://ict.com.tn/)
 *
 * Bannière vidéo plein écran avec texte et bouton en surimpression.
 * Utilise les polices/couleurs du thème si disponibles
 * (--font-editorial-new, --font-helvetica-now), avec repli sinon.
 */

.zorya-video-banner {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: var(--zvb-height-desktop, 100vh);
	background: #000;
}

.zorya-video-banner__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ---------- Slide ---------- */

.zorya-video-banner__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease;
	pointer-events: none;
}

.zorya-video-banner__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.zorya-video-banner__media {
	position: absolute;
	inset: 0;
}

.zorya-video-banner__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zorya-video-banner__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--zvb-overlay, 0.25));
	pointer-events: none;
}

/* ---------- Contenu (eyebrow + titre + bouton) ---------- */

.zorya-video-banner__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 5vw, 64px);
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.zorya-video-banner__content > * {
	pointer-events: auto;
}

.zorya-video-banner__slide--bottom-left .zorya-video-banner__content {
	justify-content: flex-end;
	align-items: flex-start;
	text-align: left;
}

.zorya-video-banner__slide--bottom-center .zorya-video-banner__content {
	justify-content: flex-end;
	align-items: center;
	text-align: center;
}

.zorya-video-banner__slide--bottom-right .zorya-video-banner__content {
	justify-content: flex-end;
	align-items: flex-end;
	text-align: right;
}

.zorya-video-banner__slide--center .zorya-video-banner__content {
	justify-content: center;
	align-items: center;
	text-align: center;
}

/*
 * Spécificité renforcée (.zorya-video-banner .zorya-video-banner__xxx) sur
 * eyebrow/titre/bouton : le thème Inspiro fixe "h1,h2,h3,h4,h5,h6{color:#000}"
 * et "h1,h2,h3{padding-top:.625em}" directement sur la balise (voir
 * assets/css/unminified/style.css du thème), ce qui gagnait sur nos styles
 * hérités du parent (l'héritage n'entre pas en concurrence dans la cascade).
 * Chaque texte doit donc fixer explicitement sa propre couleur, pas compter
 * sur .zorya-video-banner__content{color:#fff}.
 */
.zorya-video-banner .zorya-video-banner__eyebrow {
	margin: 0 0 12px;
	padding: 0;
	color: #fff;
	font-family: var(--zvb-body-font, var(--font-helvetica-now, inherit));
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	opacity: 0.9;
}

.zorya-video-banner .zorya-video-banner__title {
	margin: 0 0 28px;
	padding: 0;
	max-width: 20ch;
	color: #fff;
	font-family: var(--zvb-title-font, var(--font-editorial-new, inherit));
	font-size: clamp(30px, 5vw, 56px);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.1;
}

.zorya-video-banner__slide--bottom-center .zorya-video-banner__title,
.zorya-video-banner__slide--center .zorya-video-banner__title {
	margin-left: auto;
	margin-right: auto;
}

.zorya-video-banner .zorya-video-banner__button {
	display: inline-block;
	padding: 16px 34px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: #F8F7F4 !important;
	color: #fff;
	font-family: var(--zvb-body-font, var(--font-helvetica-now, inherit));
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.zorya-video-banner .zorya-video-banner__button:hover,
.zorya-video-banner .zorya-video-banner__button:focus-visible {
	background: #fff;
	color: #101010;
}

/* ---------- Flèches précédent/suivant ---------- */

.zorya-video-banner__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.zorya-video-banner__arrow:hover,
.zorya-video-banner__arrow:focus-visible {
	background: rgba(0, 0, 0, 0.5);
}

.zorya-video-banner__arrow--prev {
	left: clamp(12px, 3vw, 32px);
}

.zorya-video-banner__arrow--next {
	right: clamp(12px, 3vw, 32px);
}

/* ---------- Puces de pagination ---------- */

.zorya-video-banner__dots {
	position: absolute;
	left: 50%;
	bottom: clamp(16px, 3vw, 28px);
	z-index: 2;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.zorya-video-banner__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.zorya-video-banner__dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* ---------- Bouton lecture/pause ---------- */

.zorya-video-banner__toggle {
	position: absolute;
	right: clamp(12px, 3vw, 28px);
	bottom: clamp(16px, 3vw, 28px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: #fff;
	font-size: 11px;
	cursor: pointer;
}

.zorya-video-banner__toggle-play {
	display: none;
}

.zorya-video-banner__toggle[aria-pressed="true"] .zorya-video-banner__toggle-pause {
	display: none;
}

.zorya-video-banner__toggle[aria-pressed="true"] .zorya-video-banner__toggle-play {
	display: inline;
}

/* ---------- Réduction de mouvement ---------- */

@media (prefers-reduced-motion: reduce) {
	.zorya-video-banner__slide {
		transition: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
	.zorya-video-banner__content {
		padding: 20px;
	}

	.zorya-video-banner__title {
		max-width: 16ch;
	}

	.zorya-video-banner__arrow {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}
