/* FLM Carrousel — styles publics */
.flmc {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--flmc-dark, #0b2545);
	color: #fff;
	box-sizing: border-box;
}
.flmc *,
.flmc *::before,
.flmc *::after {
	box-sizing: border-box;
}

.flmc__viewport {
	position: relative;
	height: var(--flmc-h, 520px);
	overflow: hidden;
}
@media (max-width: 768px) {
	.flmc__viewport {
		height: var(--flmc-hm, 360px);
	}
}

.flmc__track {
	height: 100%;
	display: flex;
	transition: transform var(--flmc-speed, 700ms) ease;
}
.flmc__slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	overflow: hidden;
}

/* Pleine largeur : sort du conteneur du thème (affinée par le script) */
.flmc.flmc--full {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

/* Effet fondu */
.flmc--fade .flmc__track {
	display: block;
	position: relative;
}
.flmc--fade .flmc__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--flmc-speed, 700ms) ease, visibility 0s linear var(--flmc-speed, 700ms);
}
.flmc--fade .flmc__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition-delay: 0s;
}

/* Image */
.flmc .flmc__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	display: block;
}
.flmc__overlay {
	position: absolute;
	inset: 0;
	background: var(--flmc-dark, #0b2545);
	opacity: var(--flmc-overlay, 0.45);
	pointer-events: none;
}

/* Texte */
.flmc__caption {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	padding: 0 clamp(56px, 9vw, 130px);
}
.flmc--align-left .flmc__caption { justify-content: flex-start; text-align: left; }
.flmc--align-center .flmc__caption { justify-content: center; text-align: center; }
.flmc--align-right .flmc__caption { justify-content: flex-end; text-align: right; }

.flmc__inner {
	max-width: 44rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.flmc .flmc__title {
	margin: 0 0 0.5em;
	font-size: clamp(1.6rem, 3.6vw, 3rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
}
.flmc .flmc__text {
	margin: 0 0 1.3em;
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	line-height: 1.6;
	color: #fff;
}
.flmc .flmc__btn {
	display: inline-block;
	padding: 0.7em 1.5em;
	border-radius: 3px;
	background: var(--flmc-accent, #c8a24a);
	color: var(--flmc-dark, #0b2545);
	font-weight: 700;
	text-decoration: none;
	text-shadow: none;
	transition: filter 0.2s ease;
}
.flmc .flmc__btn:hover {
	filter: brightness(1.08);
	color: var(--flmc-dark, #0b2545);
}

/* Flèches */
.flmc .flmc__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 44px;
	height: 44px;
	margin: -22px 0 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}
.flmc .flmc__arrow:hover {
	background: var(--flmc-accent, #c8a24a);
	color: var(--flmc-dark, #0b2545);
}
.flmc__arrow--prev { left: 14px; }
.flmc__arrow--next { right: 14px; }
@media (max-width: 600px) {
	.flmc .flmc__arrow { width: 36px; height: 36px; margin-top: -18px; }
	.flmc__arrow--prev { left: 6px; }
	.flmc__arrow--next { right: 6px; }
	.flmc__caption { padding: 0 52px; }
}

/* Points + pause */
.flmc__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	pointer-events: none;
}
.flmc__dots {
	display: flex;
	gap: 8px;
	pointer-events: auto;
}
.flmc .flmc__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.flmc .flmc__dot.is-active {
	background: var(--flmc-accent, #c8a24a);
	border-color: var(--flmc-accent, #c8a24a);
	transform: scale(1.2);
}
.flmc .flmc__toggle {
	position: absolute;
	right: 14px;
	bottom: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
}
.flmc .flmc__toggle:hover {
	background: var(--flmc-accent, #c8a24a);
	color: var(--flmc-dark, #0b2545);
}
.flmc__ico-play { display: none; }
.flmc.is-paused .flmc__ico-play { display: block; }
.flmc.is-paused .flmc__ico-pause { display: none; }

/* Focus clavier visible */
.flmc button:focus-visible,
.flmc a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--flmc-dark, #0b2545);
}

/* Respect de « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
	.flmc__track,
	.flmc--fade .flmc__slide,
	.flmc .flmc__dot,
	.flmc .flmc__btn {
		transition: none !important;
	}
}
