/**
 * Liens transformés en boutons dans les descriptions d'évènements EventON.
 * Cible : class="stella-btn", ou liens vers /reserver ou doinsport.
 * Remplace le CSS personnalisé d'EventON, qui supprime { } [ ] et les guillemets à l'enregistrement.
 *
 * @package StellaEvent
 */

/* Base commune : Spritz */
.eventon_desc_in a.stella-btn,
.eventon_desc_in a[href*="/reserver"]:not(.stella-bouton),
.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton) {
	display: inline-flex !important;
	align-items: center;
	gap: 0.55em;
	margin: 0.6em 0.4em 0.2em 0;
	padding: 0.45em 1.4em 0.42em 1.05em !important;
	border: 2px solid #FF4300 !important;
	border-radius: 999px !important;
	background: #FF4300 !important;
	color: #FFF3DE !important;
	font-family: 'Acumin Variable Concept', 'Acumin Pro', 'Inter', sans-serif !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Étoile Stella à 4 branches (prend la couleur du texte) */
.eventon_desc_in a.stella-btn::before,
.eventon_desc_in a[href*="/reserver"]:not(.stella-bouton)::before,
.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton)::before {
	content: "";
	width: 0.85em;
	height: 0.85em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 8 16 11 24 12 16 13 13 16 12 24 11 16 8 13 0 12 8 11 11 8 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.35s ease;
}

/* Survol : fond Crème, étoile qui pivote */
.eventon_desc_in a.stella-btn:hover,
.eventon_desc_in a[href*="/reserver"]:not(.stella-bouton):hover,
.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton):hover {
	background: #FFF3DE !important;
	color: #FF4300 !important;
}

.eventon_desc_in a.stella-btn:hover::before,
.eventon_desc_in a[href*="/reserver"]:not(.stella-bouton):hover::before,
.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton):hover::before {
	transform: rotate(45deg);
}

/* Variante Spritz : automatique pour Doinsport, ou class="stella-btn stella-btn--spritz" */
.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton),
.eventon_desc_in a.stella-btn--spritz {
	border-color: #FF4300 !important;
	background: #FF4300 !important;
}

.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton):hover,
.eventon_desc_in a.stella-btn--spritz:hover {
	background: #FFF3DE !important;
	color: #FF4300 !important;
}

/* Focus clavier visible */
.eventon_desc_in a.stella-btn:focus-visible,
.eventon_desc_in a[href*="/reserver"]:not(.stella-bouton):focus-visible,
.eventon_desc_in a[href*="doinsport"]:not(.stella-bouton):focus-visible {
	outline: 2px solid #003F2D !important;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.eventon_desc_in a::before {
		transition: none;
	}
}
