/* Module LOVALANCHE : accordéon des créateurs [lv_createurs]. */

.lv-createurs {
	display: flex;
	gap: 10px;
	height: 560px;
	width: 100%;
}

.lv-createurs__carte {
	position: relative;
	flex: 0 0 104px;
	min-width: 0;
	overflow: hidden;
	border-radius: 20px;
	background-color: #222222;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	transition: flex-grow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lv-createurs__carte.est-ouverte {
	flex: 1 1 104px;
}
.lv-createurs__carte:hover,
.lv-createurs__carte:focus-visible {
	color: #fff;
}

.lv-createurs__voile {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
}

/* Nom vertical des cartes fermées. */
.lv-createurs__vertical {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) rotate(180deg);
	writing-mode: vertical-rl;
	white-space: nowrap;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 24px;
	line-height: 30px;
	font-weight: 400;
	transition: opacity 0.3s ease;
}
.lv-createurs__carte.est-ouverte .lv-createurs__vertical {
	opacity: 0;
}

/* Contenu de la carte ouverte. */
.lv-createurs__contenu {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 28px;
	max-width: 440px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.4s ease 0s, transform 0.4s ease 0s;
	pointer-events: none;
}
.lv-createurs__carte.est-ouverte .lv-createurs__contenu {
	opacity: 1;
	transform: none;
	transition-delay: 0.25s;
}
.lv-createurs__nom {
	display: block;
	margin-bottom: 8px;
	font-family: Georgia, serif;
	font-size: 26px;
	line-height: 32px;
}
.lv-createurs__texte {
	display: block;
	font-family: Georgia, serif;
	font-size: 14px;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.92);
}

/* Tablette : cartes fermées un peu plus larges, carte ouverte réduite. */
@media (max-width: 1024px) {
	.lv-createurs {
		height: 480px;
	}
	.lv-createurs__carte {
		flex-basis: 64px;
	}
}

/* Mobile : accordéon vertical, nom à l'horizontale. */
@media (max-width: 767px) {
	.lv-createurs {
		flex-direction: column;
		height: auto;
		gap: 12px;
	}
	.lv-createurs__carte,
	.lv-createurs__carte.est-ouverte {
		flex: 0 0 auto;
	}
	.lv-createurs__carte {
		height: 124px;
		transition: height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	}
	.lv-createurs__carte.est-ouverte {
		height: 410px;
	}
	.lv-createurs__voile {
		background: rgba(0, 0, 0, 0.3);
	}
	.lv-createurs__vertical {
		left: 20px;
		bottom: auto;
		top: 50%;
		transform: translateY(-50%);
		writing-mode: horizontal-tb;
		font-size: 26px;
		line-height: 32px;
	}
	.lv-createurs__contenu {
		left: 20px;
		right: 20px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lv-createurs__carte,
	.lv-createurs__contenu,
	.lv-createurs__vertical {
		transition: none;
	}
}

/* Onglets de créateurs du catalogue [lv_filtre_createurs]. */
.lv-filtre {
	display: flex;
	justify-content: center;
}
.lv-filtre ul {
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0 0 12px;
	list-style: none;
	border-bottom: 1px solid #505050;
}
.lv-filtre a {
	position: relative;
	display: block;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 16px;
	line-height: 22px;
	font-weight: 300;
	white-space: nowrap;
	color: var(--e-global-color-text, #E7E6E4);
	text-decoration: none;
}
.lv-filtre a:hover,
.lv-filtre a:focus-visible {
	color: var(--e-global-color-accent, #fff);
}
.lv-filtre a.est-courant {
	font-weight: 600;
}
.lv-filtre a.est-courant::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -13px;
	height: 1px;
	background: var(--e-global-color-accent, #fff);
}
/* Tablette et mobile : défilement horizontal plutôt que retour à la ligne. */
@media (max-width: 1024px) {
	.lv-filtre {
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.lv-filtre::-webkit-scrollbar {
		display: none;
	}
	.lv-filtre ul {
		margin: 0 auto;
		gap: 22px;
	}
}
@media (max-width: 767px) {
	.lv-filtre a {
		font-size: 13px;
		line-height: 19px;
	}
}

/* Filtrage en direct (assets/js/lovalanche-filtre.js) : soulignement glissant. */
.lv-filtre ul {
	position: relative;
}
.lv-filtre.est-js a.est-courant::after {
	display: none;
}
.lv-filtre__indicateur {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	background: var(--e-global-color-accent, #fff);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none;
}

/* Cartes : sortie en fondu, entrée décalée. */
.elementor-widget-loop-grid {
	transition: opacity 0.26s ease, transform 0.26s ease;
}
.elementor-widget-loop-grid.lv-grille-sortie {
	opacity: 0;
	transform: translateY(12px);
}
.e-loop-item.lv-carte-entree {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--lv-delai-carte, 0s), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--lv-delai-carte, 0s);
}
.e-loop-item.lv-carte-entree.lv-carte-visible {
	opacity: 1;
	transform: none;
}

/* Pagination du catalogue : page en cours soulignée, flèche inactive estompée. */
.elementor-pagination .page-numbers.current {
	text-decoration: underline;
	text-underline-offset: 6px;
}
.elementor-pagination span.page-numbers.prev,
.elementor-pagination span.page-numbers.next {
	opacity: 0.35;
}

/* Loader du filtrage en direct : pastille centrée sur l'écran. */
.lv-chargement {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: rgba(27, 27, 27, 0.92);
	border: 1px solid #3A3A3A;
	color: var(--e-global-color-text, #E7E6E4);
	font-family: "Roboto", Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
	font-weight: 300;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) scale(0.96);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	pointer-events: none;
}
.lv-chargement.est-actif {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.lv-chargement__rond {
	width: 18px;
	height: 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--e-global-color-accent, #FFFFFF);
	border-radius: 50%;
	animation: lv-chargement 0.8s linear infinite;
}
@keyframes lv-chargement {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lv-chargement__rond {
		animation-duration: 2.4s;
	}
	.lv-filtre__indicateur,
	.elementor-widget-loop-grid,
	.e-loop-item.lv-carte-entree {
		transition: none;
	}
}

/* Ligne de filtre secondaire (silhouettes, matières). */
.lv-filtre--secondaire ul {
	gap: 22px;
	padding-bottom: 8px;
	border-bottom-color: #3A3A3A;
}
.lv-filtre--secondaire a {
	font-size: 14px;
	line-height: 20px;
	color: #9A9A9A;
}
.lv-filtre--secondaire a.est-courant {
	color: var(--e-global-color-text, #E7E6E4);
}
.lv-filtre--secondaire a.est-courant::after {
	bottom: -9px;
}
@media (max-width: 767px) {
	.lv-filtre--secondaire a {
		font-size: 12px;
		line-height: 18px;
	}
}

/* ---------- Index des créateurs (page Nos créateurs) : 3 colonnes, 2 sur tablette, 1 sur mobile ---------- */
.lv-index-createurs {
	--lv-index-texte: var(--e-global-color-text, #E7E6E4);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 60px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lv-index-createurs__carte {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--lv-index-texte);
	text-decoration: none;
}
.lv-index-createurs__carte:hover,
.lv-index-createurs__carte:focus-visible {
	color: var(--lv-index-texte);
}
.lv-index-createurs__photo {
	display: block;
	aspect-ratio: 3 / 4;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: 20px;
	background-color: #222222;
}
.lv-index-createurs .lv-index-createurs__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lv-index-createurs__carte:hover img,
.lv-index-createurs__carte:focus-visible img {
	transform: scale(1.04);
}
.lv-index-createurs__nb {
	font-family: "Roboto", Arial, sans-serif;
	font-size: 13px;
	line-height: 19px;
	font-weight: 400;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #9A9A9A;
}
.lv-index-createurs__nom {
	margin: 0;
	font-family: Georgia, serif;
	font-size: 28px;
	line-height: 34px;
	font-weight: 400;
	color: inherit;
}
.lv-index-createurs__texte {
	font-family: "Roboto", Arial, sans-serif;
	font-size: 15px;
	line-height: 21px;
	font-weight: 300;
}
.lv-index-createurs__lien {
	align-self: flex-start;
	margin-top: 6px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 15px;
	line-height: 21px;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 4px;
}
@media (max-width: 1024px) {
	.lv-index-createurs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 50px 30px;
	}
}
@media (max-width: 767px) {
	.lv-index-createurs {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}
	.lv-index-createurs__nom {
		font-size: 24px;
		line-height: 30px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.lv-index-createurs .lv-index-createurs__photo img {
		transition: none;
	}
}
