/* Hero défilant : défilement horizontal natif avec accroche (scroll-snap).
   Sans JavaScript, le visiteur peut déjà balayer ou faire défiler les slides. */
.mayte-hero {
	position: relative;
	isolation: isolate;
}

.mayte-hero__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.mayte-hero__track::-webkit-scrollbar {
	display: none;
}

.mayte-hero__slide {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	margin: 0;
}

.mayte-hero__controls {
	position: absolute;
	inset: auto 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	z-index: 3;
	pointer-events: none;
}

.mayte-hero__controls > * {
	pointer-events: auto;
}

.mayte-hero__dots {
	display: flex;
	gap: 0.6rem;
}

.mayte-hero__dot,
.mayte-hero__arrow,
.mayte-hero__toggle {
	appearance: none;
	border: 0;
	cursor: pointer;
	color: var(--wp--preset--color--white);
}

.mayte-hero__dot {
	width: 0.75rem;
	height: 0.75rem;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--white);
}

.mayte-hero__dot[aria-current="true"] {
	background: var(--wp--preset--color--white);
}

.mayte-hero__arrow,
.mayte-hero__toggle {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border-radius: 50%;
	background: rgb(43 36 26 / 0.55);
	transition: background-color 0.2s ease;
}

.mayte-hero__arrow {
	position: absolute;
	top: 50%;
	translate: 0 -50%;
	z-index: 3;
	pointer-events: auto;
}

.mayte-hero__arrow--prev {
	left: clamp(0.75rem, 2vw, 2rem);
}

.mayte-hero__arrow--next {
	right: clamp(0.75rem, 2vw, 2rem);
}

.mayte-hero__arrow:hover,
.mayte-hero__toggle:hover {
	background: var(--wp--preset--color--red);
}

.mayte-hero__dot:focus-visible,
.mayte-hero__arrow:focus-visible,
.mayte-hero__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--white);
	outline-offset: 3px;
}

.mayte-hero svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 781px) {
	.mayte-hero__arrow {
		display: none;
	}
}

/* Dans l'éditeur, les slides restent accessibles et modifiables côte à côte. */
.editor-styles-wrapper .mayte-hero__track {
	scroll-snap-type: none;
}

/* Lisibilité du texte manuscrit vert sur les photos sombres. */
.mayte-hero .is-style-script {
	text-shadow: 0 0 18px rgb(0 0 0 / 0.75), 0 1px 3px rgb(0 0 0 / 0.6);
}
