/* ExternFlow Newsletter — styles des formulaires
   Palette du thème externflow-mag-2 : bleu nuit #14213D, bleu #1E3055,
   orange #FCA311, texte #23293A, gris clair #F4F4F4, gris #9AA1AD. */

.exf-nl {
	--exf-navy: #14213d;
	--exf-navy-2: #1e3055;
	--exf-orange: #fca311;
	--exf-orange-dark: #e0900a;
	--exf-text: #23293a;
	--exf-muted: #6b7280;
	--exf-light: #f4f4f4;
	--exf-border: #d9dce3;
	--exf-error: #b42318;
	--exf-success: #1a7f4b;
	--exf-radius: 4px;
	--exf-font-title: "Poppins", -apple-system, sans-serif;
	--exf-font-body: "Roboto", Arial, sans-serif;

	box-sizing: border-box;
	font-family: var(--exf-font-body);
	color: var(--exf-text);
	line-height: 1.5;
}
.exf-nl *,
.exf-nl *::before,
.exf-nl *::after {
	box-sizing: inherit;
}

/* Libellés lus par les lecteurs d'écran, invisibles à l'écran (au cas où le thème ne définit pas la classe) */
.exf-nl .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.exf-nl__title {
	font-family: var(--exf-font-title);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 0.5rem;
	color: var(--exf-navy);
}
.exf-nl__text {
	margin: 0 0 1.1rem;
	font-size: 0.97rem;
	color: var(--exf-text);
}

.exf-nl__form {
	margin: 0;
}
.exf-nl__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.exf-nl__label {
	flex: 1 1 160px;
	margin: 0;
	display: block;
}
.exf-nl__label--email {
	flex: 2 1 220px;
}
.exf-nl__input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--exf-text);
	background: #fff;
	border: 1px solid var(--exf-border);
	border-radius: var(--exf-radius);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.exf-nl__input::placeholder {
	color: #8a91a0;
}
.exf-nl__input:focus {
	border-color: var(--exf-orange);
	box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.25);
}
.exf-nl__input[aria-invalid="true"] {
	border-color: var(--exf-error);
}

.exf-nl__button {
	position: relative;
	flex: 0 0 auto;
	height: 46px;
	padding: 0 22px;
	font-family: var(--exf-font-title);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--exf-navy);
	background: var(--exf-orange);
	border: 0;
	border-radius: var(--exf-radius);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, transform 0.1s;
}
.exf-nl__button:hover,
.exf-nl__button:focus-visible {
	background: var(--exf-orange-dark);
}
.exf-nl__button:active {
	transform: translateY(1px);
}
.exf-nl__button[disabled] {
	opacity: 0.7;
	cursor: wait;
}

/* Spinner affiché pendant l'envoi */
.exf-nl__spinner {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(20, 33, 61, 0.25);
	border-top-color: var(--exf-navy);
	border-radius: 50%;
	animation: exf-nl-spin 0.7s linear infinite;
}
.exf-nl--is-sending .exf-nl__button-label {
	visibility: hidden;
}
.exf-nl--is-sending .exf-nl__spinner {
	display: block;
}
@keyframes exf-nl-spin {
	to { transform: rotate(360deg); }
}

.exf-nl__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--exf-muted);
	cursor: pointer;
}
.exf-nl__consent input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--exf-orange);
}
.exf-nl__consent a {
	color: inherit;
	text-decoration: underline;
}
.exf-nl__consent a:hover {
	color: var(--exf-navy);
}

/* Champ piège : hors écran, jamais visible */
.exf-nl__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.exf-nl__message {
	display: none;
	margin: 12px 0 0;
	padding: 10px 14px;
	font-size: 0.9rem;
	border-radius: var(--exf-radius);
}
.exf-nl__message--error {
	display: block;
	color: var(--exf-error);
	background: #fdecea;
}
.exf-nl__message--success {
	display: block;
	color: var(--exf-success);
	background: #e6f4ec;
}
.exf-nl--is-done .exf-nl__fields,
.exf-nl--is-done .exf-nl__consent {
	display: none;
}

/* ------------------------------------------------------------------
   Variante FIN D'ARTICLE : encart clair, liseré orange (dans l'esprit
   de la boîte auteur du thème).
   ------------------------------------------------------------------ */
.exf-nl--article {
	margin: 2.5rem 0 2rem;
	padding: 28px 28px 24px;
	background: var(--exf-light);
	border-left: 4px solid var(--exf-orange);
}
.exf-nl--article .exf-nl__title::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 12px;
	background: var(--exf-orange);
}

/* ------------------------------------------------------------------
   Variante PAGE : carte blanche centrée pour une page /newsletter/.
   ------------------------------------------------------------------ */
.exf-nl--page {
	max-width: 680px;
	margin: 2rem auto;
	padding: 36px 36px 30px;
	background: #fff;
	border: 1px solid var(--exf-border);
	border-top: 4px solid var(--exf-navy);
	box-shadow: 0 8px 30px rgba(20, 33, 61, 0.08);
}
.exf-nl--page .exf-nl__title {
	font-size: 1.7rem;
}
.exf-nl--page .exf-nl__text {
	font-size: 1.05rem;
}

/* ------------------------------------------------------------------
   Variante BARRE LATÉRALE : bloc bleu nuit, champs empilés.
   ------------------------------------------------------------------ */
.widget_exf_newsletter .exf-nl--sidebar,
.exf-nl--sidebar {
	padding: 22px 20px 20px;
	background: var(--exf-navy);
	color: #fff;
}
.exf-nl--sidebar .exf-nl__title {
	color: #fff;
	font-size: 1.15rem;
}
.exf-nl--sidebar .exf-nl__text {
	color: #d5d9e2;
	font-size: 0.9rem;
	margin-bottom: 0.9rem;
}
.exf-nl--sidebar .exf-nl__fields {
	flex-direction: column;
	gap: 8px;
}
.exf-nl--sidebar .exf-nl__label,
.exf-nl--sidebar .exf-nl__button {
	flex: 1 1 auto;
	width: 100%;
}
.exf-nl--sidebar .exf-nl__input {
	border-color: transparent;
}
.exf-nl--sidebar .exf-nl__consent {
	color: #b9bec8;
}
.exf-nl--sidebar .exf-nl__consent a:hover {
	color: #fff;
}
.exf-nl--sidebar .exf-nl__message--success {
	background: rgba(255, 255, 255, 0.1);
	color: #d7f5e3;
}
.exf-nl--sidebar .exf-nl__message--error {
	background: rgba(255, 255, 255, 0.1);
	color: #ffd0cb;
}
/* Le titre du widget est rendu par le thème : on colle le bloc juste dessous */
.widget_exf_newsletter .widget-title + .exf-nl--sidebar,
.widget_exf_newsletter h2 + .exf-nl--sidebar,
.widget_exf_newsletter h3 + .exf-nl--sidebar {
	margin-top: 4px;
}

/* ------------------------------------------------------------------
   Variante PIED DE PAGE : transparente, pensée pour le fond #14213D.
   ------------------------------------------------------------------ */
.exf-nl--footer {
	color: #b9bec8;
}
.exf-nl--footer .exf-nl__title {
	color: #fff;
	font-size: 1rem;
}
.exf-nl--footer .exf-nl__text {
	color: #b9bec8;
	font-size: 0.9rem;
	margin-bottom: 0.8rem;
}
.exf-nl--footer .exf-nl__fields {
	flex-direction: column;
	gap: 8px;
}
.exf-nl--footer .exf-nl__label,
.exf-nl--footer .exf-nl__button {
	flex: 1 1 auto;
	width: 100%;
}
.exf-nl--footer .exf-nl__input {
	height: 42px;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}
.exf-nl--footer .exf-nl__input::placeholder {
	color: #9aa1ad;
}
.exf-nl--footer .exf-nl__input:focus {
	background: rgba(255, 255, 255, 0.12);
}
.exf-nl--footer .exf-nl__button {
	height: 42px;
}
.exf-nl--footer .exf-nl__consent {
	color: #9aa1ad;
	font-size: 0.74rem;
}
.exf-nl--footer .exf-nl__consent a:hover {
	color: #fff;
}
.exf-nl--footer .exf-nl__message--success {
	background: rgba(255, 255, 255, 0.08);
	color: #d7f5e3;
}
.exf-nl--footer .exf-nl__message--error {
	background: rgba(255, 255, 255, 0.08);
	color: #ffd0cb;
}

/* ------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
	.exf-nl--article {
		padding: 22px 18px 18px;
	}
	.exf-nl--page {
		padding: 26px 20px 22px;
	}
	.exf-nl--article .exf-nl__fields,
	.exf-nl--page .exf-nl__fields {
		flex-direction: column;
	}
	.exf-nl--article .exf-nl__label,
	.exf-nl--page .exf-nl__label,
	.exf-nl--article .exf-nl__button,
	.exf-nl--page .exf-nl__button {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.exf-nl__spinner {
		animation: none;
	}
}
