/* Oasis – Affiche : diaporama + logo dévoilé. Couleurs réglables (Apparence > Affiche d'accueil). */
.oa-aff {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 60vh;
	overflow: hidden;
	--oa-haut: 120px;   /* marge en haut pour l'affiche entière (barre du menu) */
	--oa-bas: 3vh;
}
.elementor-widget-shortcode:has(> .elementor-widget-container > .oa-aff),
.elementor-widget-shortcode:has(> .oa-aff) { height: 100%; }
.elementor-widget-shortcode .elementor-shortcode:has(.oa-aff) { height: 100%; }
.oa-slides, .oa-slide, .oa-bands, .oa-logo { position: absolute; inset: 0; margin: 0; }
.oa-slide { opacity: 0; transition: opacity 1.4s ease; z-index: 1; }
.oa-slide.is-on { opacity: 1; z-index: 2; }
.oa-slide img { width: 100% !important; height: 100% !important; max-width: none !important; display: block; }
.oa-cover img { object-fit: cover; object-position: center; transform-origin: 50% 60%; }
.oa-cover.is-on img { animation: oa-zoom calc(var(--oa-duree, 6s) + 1.6s) linear both; }
@keyframes oa-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
/* Affiche verticale : entière, posée sur le fond (dunes et lignes du hero visibles autour) */
.oa-contain { top: var(--oa-haut); bottom: var(--oa-bas); }
.oa-contain img { object-fit: contain; filter: drop-shadow(0 24px 40px rgba(20, 17, 13, .28)); }

.oa-bands { width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.oa-logo {
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--oa-fond, #e4d8c5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.oa-logo img { height: var(--oa-taille, 70%); width: auto; max-width: 86%; object-fit: contain; }

.oa-dots { position: absolute; z-index: 5; right: 22px; bottom: 22px; display: flex; gap: 6px; }
.oa-dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(20, 17, 13, .25); overflow: hidden; position: relative; }
.oa-dots i.is-on::after { content: ""; position: absolute; inset: 0; background: var(--e-global-color-oaorang, #ee6a1e); transform-origin: left; animation: oa-bar var(--oa-duree, 6s) linear both; }
@keyframes oa-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.oa-aff-vide { padding: 20px; background: #fff3cd; }

@media (max-width: 899px) {
	.oa-aff { --oa-haut: 90px; --oa-bas: 2vh; }
	.oa-dots { right: 50%; transform: translateX(50%); bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.oa-cover.is-on img { animation: none; }
	.oa-slide { transition-duration: .01s; }
}
