.lec-promo[hidden] { display: none; }

.lec-promo {
	--lec-navy: #2A2A5C;
	--lec-cream: #EFE8D8;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.lec-promo__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 45, .35);
}

.lec-promo__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 2.75rem 2.25rem 1.75rem;
	background: var(--lec-cream);
	color: var(--lec-navy);
	text-align: center;
	border-top: 4px solid var(--lec-navy);
	border-radius: 4px;
	box-shadow: 0 14px 48px rgba(0, 0, 0, .35);
	animation: lec-promo-in .3s ease-out;
	font-family: 'LEC Jost', 'Jost', 'Roboto', Arial, sans-serif;
	font-weight: 300;
}
.lec-promo__box:focus { outline: none; }

.lec-promo__box p { margin: 0; color: var(--lec-navy); }

.lec-promo__close {
	position: absolute;
	top: .6rem;
	right: .6rem;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(42, 42, 92, .4);
	border-radius: 50%;
	color: var(--lec-navy);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.lec-promo__kicker {
	font-family: 'LEC Crimson Pro', 'Crimson Pro', Georgia, serif;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.3;
	opacity: .85;
}

.lec-promo__title {
	margin-top: .35rem !important;
	font-family: 'LEC Crimson Pro', 'Crimson Pro', Georgia, serif;
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1.05;
}

.lec-promo__text {
	margin-top: 1.1rem !important;
	font-size: 1rem;
	line-height: 1.55;
}

.lec-promo__code {
	display: flex;
	align-items: stretch;
	justify-content: center;
	margin-top: .8rem !important;
}

.lec-promo__code-value {
	display: inline-flex;
	align-items: center;
	padding: .45rem 1rem;
	border: 1px dashed var(--lec-navy);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	font-family: 'LEC Crimson Pro', 'Crimson Pro', Georgia, serif;
	font-weight: 700;
	font-size: 1.45rem;
	letter-spacing: .08em;
}

.lec-promo__copy {
	padding: .45rem .9rem;
	background: var(--lec-navy);
	border: 1px solid var(--lec-navy);
	border-radius: 0 3px 3px 0;
	color: var(--lec-cream);
	font-family: inherit;
	font-weight: 300;
	font-size: .9rem;
	cursor: pointer;
}

.lec-promo__validity {
	margin-top: .6rem !important;
	font-size: .85rem;
	opacity: .8;
}

.lec-promo__cta,
.lec-promo__cta:visited {
	display: block;
	margin-top: 1.4rem;
	padding: .85rem 1.25rem;
	border: 1px solid var(--lec-navy);
	border-radius: 2px;
	background: var(--lec-navy);
	color: var(--lec-cream);
	font-size: 1.05rem;
	letter-spacing: .02em;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.lec-promo__cta:hover,
.lec-promo__cta:focus {
	background: transparent;
	color: var(--lec-navy);
	text-decoration: none;
}

.lec-promo__later {
	margin-top: .9rem;
	padding: .25rem .5rem;
	background: none;
	border: 0;
	color: var(--lec-navy);
	font-family: inherit;
	font-weight: 300;
	font-size: .9rem;
	text-decoration: underline;
	opacity: .8;
	cursor: pointer;
}

.lec-promo button:focus-visible,
.lec-promo a:focus-visible {
	outline: 2px solid var(--lec-navy);
	outline-offset: 3px;
}

@keyframes lec-promo-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

/* Mobile : panneau en bas d'écran, la page reste visible au-dessus. */
@media (max-width: 600px) {
	.lec-promo {
		inset: auto 0 0 0;
		padding: 0;
		align-items: flex-end;
	}
	.lec-promo__backdrop { display: none; }
	.lec-promo__box {
		max-width: none;
		max-height: 60vh;
		padding: 1.6rem 1.25rem 1rem;
		border-radius: 10px 10px 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
		animation-name: lec-promo-up;
	}
	.lec-promo__kicker { font-size: 1rem; padding: 0 2rem; }
	.lec-promo__title { font-size: 1.9rem; }
	.lec-promo__text { margin-top: .7rem !important; font-size: .92rem; }
	.lec-promo__code-value { font-size: 1.2rem; }
	.lec-promo__cta { margin-top: 1rem; }
	.lec-promo__later { margin-top: .5rem; }
}

@keyframes lec-promo-up {
	from { transform: translateY(100%); }
	to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.lec-promo__box { animation: none; }
}
