/* Popup newsletter East Design — front
   Sélecteurs préfixés par #pned-popup pour passer devant les styles du thème. */

#pned-popup {
	--pned-accent: #f0822b;
	--pned-bg: #ffffff;
	--pned-text: #1d1d1b;
	--pned-muted: #5f5f5f;
	--pned-border: #d9d9d9;
	--pned-radius: 16px;
	--pned-overlay: rgba(30, 30, 30, 0.6);

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
	box-sizing: border-box;
	font-family: inherit;
	text-align: center;
}

#pned-popup *,
#pned-popup *::before,
#pned-popup *::after {
	box-sizing: border-box;
}

#pned-popup.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.25s ease;
}

#pned-popup .pned__overlay {
	position: absolute;
	inset: 0;
	background: var(--pned-overlay);
}

#pned-popup .pned__dialog {
	position: relative;
	width: 100%;
	max-width: 880px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	background: var(--pned-bg);
	color: var(--pned-text);
	border-radius: var(--pned-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#pned-popup.is-open .pned__dialog {
	transform: translateY(0) scale(1);
}

#pned-popup .pned__content {
	padding: 44px 64px 40px;
}

/* ---------- Croix ---------- */

#pned-popup .pned__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	z-index: 1;
}

#pned-popup .pned__close:hover,
#pned-popup .pned__close:focus-visible {
	background: rgba(0, 0, 0, 0.05);
	outline: none;
}

#pned-popup .pned__close:focus-visible {
	box-shadow: 0 0 0 2px var(--pned-accent);
}

#pned-popup .pned__close span {
	position: absolute;
	width: 20px;
	height: 1.5px;
	background: #6b6b6b;
	border-radius: 2px;
}

#pned-popup .pned__close span:first-child {
	transform: rotate(45deg);
}

#pned-popup .pned__close span:last-child {
	transform: rotate(-45deg);
}

/* ---------- Logo + textes ---------- */

#pned-popup .pned__logo {
	margin: 0 auto 26px;
}

#pned-popup .pned__logo-img {
	display: block;
	width: auto;
	max-width: 200px;
	max-height: 130px;
	height: auto;
	margin: 0 auto;
}

#pned-popup .pned__title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 38px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--pned-text);
	text-transform: none;
}

#pned-popup .pned__body {
	max-width: 560px;
	margin: 0 auto 32px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--pned-muted);
}

#pned-popup .pned__body p {
	margin: 0 0 8px;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

#pned-popup .pned__body p:last-child {
	margin-bottom: 0;
}

/* ---------- Formulaire ---------- */

#pned-popup .pned__form {
	max-width: 740px;
	margin: 0 auto;
	padding: 0;
}

#pned-popup .pned__field {
	display: flex;
	gap: 14px;
	margin: 0 0 16px;
}

#pned-popup .pned__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 58px;
	padding: 0 24px;
	margin: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 58px;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: var(--pned-text);
	background: #fff;
	background-image: none;
	border: 1px solid var(--pned-border);
	border-radius: 999px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

#pned-popup .pned__input::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

#pned-popup .pned__input:focus,
#pned-popup .pned__input:focus-visible {
	border-color: var(--pned-accent);
	box-shadow: 0 0 0 3px rgba(240, 130, 43, 0.18);
	outline: none;
}

#pned-popup .pned__input.is-invalid {
	border-color: #c62828;
}

#pned-popup .pned__button {
	position: relative;
	flex: 0 0 auto;
	height: 58px;
	min-width: 190px;
	padding: 0 34px;
	margin: 0;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: #fff;
	background: var(--pned-accent);
	background-image: none;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.15s ease, transform 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

#pned-popup .pned__button:hover {
	color: #fff;
	background: var(--pned-accent);
	filter: brightness(0.94);
}

#pned-popup .pned__button:active {
	transform: scale(0.98);
}

#pned-popup .pned__button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(240, 130, 43, 0.35);
}

#pned-popup .pned__button:disabled {
	cursor: default;
	opacity: 0.7;
}

#pned-popup .pned__button--ghost {
	color: var(--pned-text);
	background: transparent;
	border: 1px solid var(--pned-border);
}

#pned-popup .pned__button--ghost:hover {
	color: var(--pned-text);
	background: rgba(0, 0, 0, 0.03);
	filter: none;
}

#pned-popup .pned__button.is-loading .pned__button-label {
	visibility: hidden;
}

#pned-popup .pned__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	animation: pned-spin 0.7s linear infinite;
}

#pned-popup .pned__button.is-loading .pned__spinner {
	opacity: 1;
}

@keyframes pned-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Honeypot ---------- */

#pned-popup .pned__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* ---------- Messages ---------- */

#pned-popup .pned__message {
	margin: 14px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
}

#pned-popup .pned__message--error {
	color: #c62828;
}

#pned-popup .pned__message[hidden],
#pned-popup .pned__success[hidden],
#pned-popup .pned__form[hidden] {
	display: none;
}

/* ---------- Succès ---------- */

#pned-popup .pned__success {
	max-width: 560px;
	margin: 0 auto;
	padding: 8px 0 4px;
}

#pned-popup .pned__success-text {
	margin: 0 0 22px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--pned-text);
}

#pned-popup .pned__success-text p {
	margin: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

/* ---------- Image des meubles ---------- */

#pned-popup .pned__image {
	max-width: 780px;
	margin: 36px auto 0;
}

#pned-popup .pned__image-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
	border: 0;
	box-shadow: none;
}

/* ---------- Séparateur + mention ---------- */

#pned-popup .pned__separator {
	width: 66%;
	height: 1px;
	margin: 16px auto 18px;
	background: var(--pned-accent);
}

#pned-popup .pned__footer {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pned-muted);
}

#pned-popup .pned__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.pned-lock {
	overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	#pned-popup .pned__content {
		padding: 40px 36px 32px;
	}

	#pned-popup .pned__title {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	#pned-popup {
		padding: 12px;
	}

	#pned-popup .pned__dialog {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: 14px;
	}

	#pned-popup .pned__content {
		padding: 40px 22px 28px;
	}

	#pned-popup .pned__close {
		top: 10px;
		right: 10px;
	}

	#pned-popup .pned__logo {
		margin-bottom: 18px;
	}

	#pned-popup .pned__logo-img {
		max-width: 150px;
		max-height: 96px;
	}

	#pned-popup .pned__title {
		font-size: 26px;
		padding: 0 8px;
	}

	#pned-popup .pned__body {
		font-size: 15px;
		margin-bottom: 22px;
	}

	#pned-popup .pned__field {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 0;
	}

	#pned-popup .pned__input,
	#pned-popup .pned__button {
		width: 100%;
		height: 54px;
		line-height: 54px;
		min-width: 0;
	}

	#pned-popup .pned__image {
		margin-top: 26px;
	}

	#pned-popup .pned__separator {
		width: 80%;
		margin: 26px auto 14px;
	}

	#pned-popup .pned__footer {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#pned-popup,
	#pned-popup .pned__dialog {
		transition: none;
	}
}
