/* =========================================================
 * Pop-up newsletter
 * Vert du site : #223F15 (survol : #355B26) — fond crème : #F8F4F1
 * ========================================================= */

html.pnl-ouverte,
html.pnl-ouverte body {
	overflow: hidden; /* la page derrière ne défile plus */
}

.pnl-fond {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 35, 12, .55);
	opacity: 0;
	transition: opacity .25s ease;
	box-sizing: border-box;
}
.pnl-fond[hidden] {
	display: none !important;
}
.pnl-fond.pnl-visible {
	opacity: 1;
}

.pnl-boite {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 40px 34px 30px;
	text-align: center;
	color: #223F15;
	background: #F8F4F1;
	border: 2px solid #223F15;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	transform: translateY(16px) scale(.98);
	transition: transform .25s ease;
}
.pnl-visible .pnl-boite {
	transform: none;
}

.pnl-etape[hidden] {
	display: none !important;
}

.pnl-fermer {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #223F15;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
}
.pnl-fermer:hover,
.pnl-fermer:focus-visible {
	background: rgba(34, 63, 21, .1);
}

.pnl-sur-titre {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #355B26;
}
.pnl-boite .pnl-titre {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: #223F15 !important;
}
.pnl-boite .pnl-texte {
	margin: 0 0 22px !important;
	padding: 0 !important;
	font-size: 16px;
	line-height: 1.5;
	color: #223F15;
}

/* Bouton principal, comme « Ajouter au panier » */
.pnl-boite .pnl-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
	color: #ffffff;
	background: #223F15;
	border: 2px solid #223F15;
	border-radius: 100px;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.pnl-boite .pnl-btn:hover,
.pnl-boite .pnl-btn:focus-visible {
	background: #355B26;
	border-color: #355B26;
}
.pnl-boite .pnl-btn:disabled {
	opacity: .6;
	cursor: wait;
}

.pnl-non-merci {
	display: inline-block;
	margin: 14px 0 0;
	padding: 4px 8px;
	font-family: inherit;
	font-size: 14px;
	color: #223F15;
	text-decoration: underline;
	background: none;
	border: none;
	cursor: pointer;
}

/* Formulaire */
.pnl-form {
	margin: 0;
	text-align: left;
}
.pnl-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}
html body .pnl-boite input.pnl-champ {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 12px 18px;
	font-family: inherit;
	font-size: 16px; /* 16 px minimum : évite le zoom automatique sur iPhone */
	line-height: 1.3;
	color: #223F15;
	background: #ffffff;
	border: 1px solid #223F15;
	border-radius: 100px;
	box-shadow: none;
	box-sizing: border-box;
}
html body .pnl-boite input.pnl-champ:focus {
	outline: 2px solid #355B26;
	outline-offset: 1px;
}
.pnl-piege {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}
.pnl-erreur {
	margin: -6px 0 12px !important;
	padding: 0 !important;
	font-size: 14px;
	color: #A3261B;
}
.pnl-erreur[hidden] {
	display: none !important;
}
.pnl-mentions {
	margin: 14px 0 0 !important;
	padding: 0 !important;
	font-size: 12px;
	line-height: 1.45;
	color: #4a5a42;
	text-align: center;
}
.pnl-mentions a {
	color: #223F15;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.pnl-boite {
		padding: 36px 20px 24px;
	}
	.pnl-boite .pnl-titre {
		font-size: 22px;
	}
	.pnl-boite .pnl-btn {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pnl-fond,
	.pnl-boite {
		transition: none;
	}
}
