/* G2 Theme — Pop-up affiliation Lustery (DA éditorial doux G2). */

.g2-popup {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.g2-popup[hidden] { display: none; }

.g2-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(81, 22, 25, 0.6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	cursor: pointer;
}

.g2-popup__modal {
	position: relative;
	width: min(500px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	box-sizing: border-box;
	background: var(--g2-paper);
	color: var(--g2-ink-soft);
	border: 1px solid var(--g2-line);
	border-radius: var(--g2-radius-bigcard);
	box-shadow: var(--g2-shadow-soft);
	padding: 38px 34px 28px;
	text-align: center;
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	animation: g2-popup-in 0.34s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}
@keyframes g2-popup-in {
	from { transform: translateY(14px) scale(0.98); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.g2-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--g2-cream);
	color: var(--g2-ink);
	border: none;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.g2-popup__close:hover { background: var(--g2-pink-soft); }

/* <p> (pas de Hn) : le pop-up est global, il ne doit pas polluer le plan de titres. */
.g2-popup__title {
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--g2-ink);
	margin: 6px 0 18px;
	padding-top: 8px;
}

.g2-popup__media {
	border-radius: var(--g2-radius-image);
	overflow: hidden;
	margin-bottom: 18px;
	box-shadow: var(--g2-shadow-image);
}
.g2-popup__media img { width: 100%; height: auto; aspect-ratio: 1024 / 282; display: block; }

.g2-popup__tagline {
	font-family: "Newsreader", Georgia, serif;
	font-style: italic;
	font-size: 17px;
	color: var(--g2-accent);
	margin: 0 0 12px;
}

.g2-popup__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--g2-body);
	margin: 0 0 22px;
}

.g2-popup__cta {
	display: block;
	background: var(--g2-grad);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	padding: 15px 22px;
	border-radius: var(--g2-radius-pill);
	margin-bottom: 14px;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.g2-popup__cta:hover,
.g2-popup__cta:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.g2-popup__free {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 600;
	color: var(--g2-muted);
}
.g2-popup__free li { display: inline-flex; align-items: center; gap: 7px; }
.g2-popup__free li::before {
	content: "\2713";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--g2-pink-soft);
	color: var(--g2-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

.g2-popup__dismiss {
	display: block;
	margin: 14px auto 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: var(--g2-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-family: inherit;
}

@media (max-width: 600px) {
	.g2-popup { padding: 14px; }
	.g2-popup__modal { padding: 32px 20px 22px; }
	.g2-popup__title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
	.g2-popup__modal { animation: none; }
	.g2-popup__cta { transition: none; }
}
