/* togovi-newsletter. Vert de marque #00a651. */
[data-togovi-nl-banner][hidden], .togovi-nl-form[hidden], [data-togovi-nl-toggle][hidden] { display: none !important; }

.togovi-nl-banner {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1000;
	width: 360px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
	padding: 18px 18px 14px;
	background: #fff;
	color: #17251d;
	border-radius: 14px;
	box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
}
.togovi-nl-banner.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .togovi-nl-banner { transition: none; } }

.togovi-nl-close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #5a6a62;
	cursor: pointer;
}
.togovi-nl-banner .togovi-nl-title { margin: 0 32px 8px 0; font-size: 17px; font-weight: 700; color: #17251d; line-height: 1.3; }
.togovi-nl-banner .togovi-nl-perks { margin: 0 0 14px; padding: 0; list-style: none; }
.togovi-nl-banner .togovi-nl-perks li { position: relative; margin: 0 0 4px; padding-left: 22px; color: #17251d; }
.togovi-nl-banner .togovi-nl-perks li::before { content: "✓"; position: absolute; left: 0; color: #00a651; font-weight: 700; }
.togovi-nl-actions { display: flex; flex-direction: column; gap: 8px; }
.togovi-nl-primary {
	display: block;
	text-align: center;
	background: #00a651;
	color: #fff !important;
	font-weight: 700;
	padding: 11px 14px;
	border-radius: 8px;
	text-decoration: none !important;
}
.togovi-nl-secondary {
	border: 0;
	background: transparent;
	color: #00893f;
	font-weight: 600;
	padding: 6px;
	cursor: pointer;
	text-decoration: underline;
}

.togovi-nl-form { margin-top: 10px; }
.togovi-nl-label { display: block; font-weight: 600; margin: 0 0 6px; }
.togovi-nl-row { display: flex; gap: 6px; }
.togovi-nl-row input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #c9d3cd;
	border-radius: 8px;
	font-size: 16px; /* évite le zoom automatique sur iOS */
}
.togovi-nl-row button {
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: #00a651;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.togovi-nl-row button:disabled { opacity: .6; cursor: default; }
.togovi-nl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.togovi-nl-consent { margin: 8px 0 0; font-size: 12px; color: #5a6a62; }
.togovi-nl-consent a { color: #5a6a62; text-decoration: underline; }
.togovi-nl-form .togovi-nl-status { margin: 6px 0 0; font-weight: 600; min-height: 1em; color: #b3261e; font-size: 14px; }
.togovi-nl-form.is-done .togovi-nl-status { color: #00893f; }
.togovi-nl-form .togovi-nl-label { color: #17251d; }
.togovi-nl-inline { max-width: 480px; }

/* Mobile : au-dessus de la barre de navigation du bas (58 px, thème enfant). */
@media (max-width: 900px) {
	.togovi-nl-banner {
		left: 8px;
		right: 8px;
		width: auto;
		max-width: none;
		bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 8px); /* corrigé en JS selon la hauteur réelle */
		padding: 14px 14px 10px;
		font-size: 13px;
	}
	.togovi-nl-banner .togovi-nl-title { font-size: 16px; margin-bottom: 6px; }
	.togovi-nl-banner .togovi-nl-perks { margin-bottom: 10px; }
	.togovi-nl-banner .togovi-nl-perks li { margin-bottom: 2px; }
	.togovi-nl-primary { padding: 10px 12px; }
	.togovi-nl-consent { font-size: 11px; line-height: 1.35; }
}
