/* ===== Bouton ===== */
.hidecopyright-toggle {
	display: block;
	margin: 0 auto 6px;
	padding: 2px 10px;
	font: inherit;
	font-size: 11px;
	line-height: 1.6;
	color: inherit;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	opacity: .7;
	cursor: pointer;
}

/* Aucun changement visuel au survol ni au clic */
.hidecopyright-toggle:hover,
.hidecopyright-toggle:active {
	background: transparent;
	color: inherit;
	opacity: .7;
	box-shadow: none;
}

/* Pas de contour au clic souris, mais un repère visible au clavier */
.hidecopyright-toggle:focus {
	outline: none;
}
.hidecopyright-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Libellés : "Masquer" par défaut, "Afficher le copyright" une fois replié */
.hidecopyright-toggle .hidecopyright-label-show,
.hidecopyright-toggle.is-collapsed .hidecopyright-label-hide {
	display: none;
}

.hidecopyright-toggle.is-collapsed .hidecopyright-label-show {
	display: inline;
}

/* Flèche qui pivote */
.hidecopyright-toggle::after {
	content: "";
	display: inline-block;
	width: .45em;
	height: .45em;
	margin-left: .6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-135deg);
	transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.hidecopyright-toggle.is-collapsed::after {
	transform: rotate(45deg);
}

/* ===== Bloc copyright ===== */
.hidecopyright-content {
	overflow: hidden;
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
	transition:
		max-height .4s cubic-bezier(.4, 0, .2, 1),
		opacity .4s ease,
		transform .4s cubic-bezier(.4, 0, .2, 1),
		filter .4s ease;
}

.hidecopyright-content.is-collapsed {
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	filter: blur(4px);
	/* visibility bascule à la fin de l'animation */
	transition:
		max-height .4s cubic-bezier(.4, 0, .2, 1),
		opacity .4s ease,
		transform .4s cubic-bezier(.4, 0, .2, 1),
		filter .4s ease,
		visibility 0s linear .4s;
}

/* Appliqué par le JS au chargement pour éviter l'animation initiale */
.hidecopyright-content.hidecopyright-no-anim {
	transition: none !important;
}

/* ===== Accessibilité : réduction des animations ===== */
@media (prefers-reduced-motion: reduce) {
	.hidecopyright-content,
	.hidecopyright-content.is-collapsed,
	.hidecopyright-toggle::after {
		transition: none;
	}
}
