/* Portail parents - header CTA */

.header__parents-portal {
	display: block;
	width: fit-content;
	margin-left: auto;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
}

/* Mobile: plain link before first menu item */
@media (max-width: 1439px) {
	.header__menu {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}

	.header__parents-portal {
		order: -1;
		margin-bottom: 30px;
		font-size: 20px;
		opacity: 0;
		transform: translateY(15px);
		transition: opacity 0.25s cubic-bezier(0.65, 0, 0.35, 1) 0s,
			transform 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0s;
	}

	.header.is-open .header__parents-portal {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s,
			transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0s;
	}
}

@media screen and (max-width: 1439px) and (min-width: 375px) and (max-width: 1919px) {
	.header__parents-portal {
		margin-bottom: calc(30px + -10 * (100vw - 375px) / 1545);
	}
}

@media screen and (max-width: 1439px) and (min-width: 1920px) {
	.header__parents-portal {
		margin-bottom: 20px;
	}
}

/* Desktop: pill button after Contact, before language selector */
@media (min-width: 1440px) {
	.header__parents-portal {
		margin-left: 0;
		padding: 4px 8px 3px;
		font-size: 16px;
		font-weight: 400;
		line-height: 20px;
		text-align: center;
		text-transform: uppercase;
		border: solid 1px #000;
		border-radius: 26px;
		transition: color 0.25s cubic-bezier(0.63, 1, 0.68, 1),
			background-color 0.25s cubic-bezier(0.63, 1, 0.68, 1);
	}

	.header__parents-portal:hover {
		color: #fff;
		background-color: #000;
	}
}
