/* ============================================================
   Newsletter
   ============================================================ */

#mailpro {
	width: 100% !important;
	max-width: 450px !important;
	margin: 50px auto !important;
	padding: 35px 30px !important;
	background: linear-gradient(145deg, #fff5f7 0%, #f9f9f9 100%) !important;
	border: 1px solid rgba(141, 10, 49, 0.12) !important;
	border-radius: 15px !important;
	box-shadow: 0 4px 20px rgba(141, 10, 49, 0.08) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
}

#aw_subscribe_form {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: 100% !important;
	gap: 12px !important;
}

#awEmail {
	width: 100%;
	max-width: 360px;
	padding: 12px 16px;
	border: 2px solid #8D0A31;
	border-radius: 10px;
	font-size: 16px;
	outline: none;
	text-align: center;
	transition: all 0.3s ease;
}

#awEmail:focus {
	border-color: #700A20;
	box-shadow: 0 0 8px rgba(144, 13, 41, 0.4);
}

label[for="awEmail"] {
	font-weight: bold;
	color: #8D0A31;
	font-size: 18px;
	margin-bottom: 4px;
	display: block;
}

#btnSubmit {
	background-color: #8D0A31;
	color: white;
	font-size: 16px;
	padding: 12px 32px;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	text-align: center;
	margin-top: 8px;
}

#btnSubmit:hover {
	background-color: #700A20;
	transform: scale(1.03);
}

.g-recaptcha {
	margin: 10px 0;
	display: flex;
	justify-content: center;
}

img[src*="mailpro"] {
	display: block;
	max-width: 120px;
	margin: 15px auto 0;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

img[src*="mailpro"]:hover {
	opacity: 0.85;
}

@media (max-width: 768px) {
	img[src*="mailpro"] {
		max-width: 80px !important;
	}
}


/* ============================================================
   Newsletter CTA (homepage) — centrage sur mobile
   Assignez la classe "newsletter-cta" au bloc Groupe parent
   dans l'éditeur WordPress (Paramètres avancés > Classe CSS).
   ============================================================ */

@media (max-width: 768px) {
	.newsletter-cta {
		text-align: center !important;
		align-items: center !important;
	}

	.newsletter-cta p,
	.newsletter-cta a,
	.newsletter-cta h2,
	.newsletter-cta h3 {
		text-align: center !important;
	}

	/* Centrage du bloc bouton WordPress */
	.newsletter-cta .wp-block-buttons {
		justify-content: center !important;
		width: 100% !important;
	}

	.newsletter-cta .wp-block-button {
		width: auto !important;
	}

	/* Centrage du bouton S'inscrire ciblé par son lien (sans classe manuelle) */
	.wp-block-buttons:has(a[href*="newsletter"]) {
		justify-content: center !important;
		width: 100% !important;
	}
}


/* ============================================================
   Footer newsletter — centrage sur mobile
   Assignez la classe "footer-newsletter" au bloc Groupe/Colonne
   contenant le logo, le texte et le bouton S'inscrire dans le footer.
   ============================================================ */

@media (max-width: 768px) {
	.footer-newsletter {
		text-align: center !important;
		align-items: center !important;
	}

	.footer-newsletter p,
	.footer-newsletter a,
	.footer-newsletter h2,
	.footer-newsletter h3 {
		text-align: center !important;
	}

	.footer-newsletter .wp-block-image,
	.footer-newsletter figure {
		margin-left: auto !important;
		margin-right: auto !important;
		display: flex !important;
		justify-content: center !important;
	}

	.footer-newsletter .wp-block-buttons {
		justify-content: center !important;
		width: 100% !important;
	}

	.footer-newsletter .wp-block-button {
		width: auto !important;
	}
}
