/*
 * Carte « Inscription confirmée » : la .nlc-page/.nlc-card ci-dessous habille
 * la page de secours page-newsletter-confirmation.php (sans JS, ou lien
 * "Modifier mes préférences" ouvert depuis un e-mail), tandis que .nlc-card
 * seule habille aussi le panneau de la modale newsletter (voir
 * .newsletter-modal-panel dans components.css et assets/js/newsletter-modal.js),
 * l'expérience normale une fois inscrit avec JS activé — d'où le chargement
 * de cette feuille sur toutes les pages plutôt que la seule page de secours.
 * Repris de la maquette site internet/newsletter-confirmation.html, dont les
 * :root / reset / nav ont été retirés : le thème fournit déjà les tokens
 * (tokens.css), la base (base.css) et l'en-tête. Les sélecteurs sont préfixés
 * .nlc- pour ne pas entrer en collision avec le bloc .newsletter du pied de
 * page ni avec les formulaires des autres gabarits.
 */

.nlc-page {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px 60px;
}

.nlc-card {
	width: 100%;
	max-width: 560px;
	background: var(--blanc);
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(17, 17, 16, .08);
	padding: 48px 44px 40px;
	position: relative;
	overflow: hidden;
}

.nlc-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--orange), var(--orange-dk));
}

.nlc-icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(59, 109, 17, .1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
}

.nlc-icon svg {
	width: 26px;
	color: var(--vert-badge);
}

.nlc-icon--neutre {
	background: rgba(232, 104, 26, .1);
}

.nlc-icon--neutre svg {
	color: var(--orange);
}

.nlc-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--orange);
	margin-bottom: 10px;
}

.nlc-card h1 {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1;
	letter-spacing: -.005em;
	margin: 0 0 14px;
}

.nlc-intro {
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--gris-mid);
	margin: 0 0 34px;
}

.nlc-intro strong {
	color: var(--noir);
	font-weight: 600;
}

.nlc-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.nlc-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--noir);
	margin-bottom: 16px;
}

.nlc-pref-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 30px;
}

.nlc-pref {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 15px 16px;
	border: 1.5px solid rgba(0, 0, 0, .10);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}

.nlc-pref:hover {
	border-color: rgba(232, 104, 26, .45);
}

/* :has() n'est pas supporté partout : le halo orange de la case cochée est un
   simple agrément, l'état reste lisible grâce à la case elle-même. */
.nlc-pref:has(input:checked) {
	border-color: var(--orange);
	background: rgba(232, 104, 26, .045);
}

.nlc-pref input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 19px;
	height: 19px;
	flex-shrink: 0;
	margin-top: 1px;
	border: 1.5px solid var(--gris-light);
	border-radius: 5px;
	position: relative;
	cursor: pointer;
	transition: background .18s, border-color .18s;
}

.nlc-pref input[type="checkbox"]:checked {
	background: var(--orange);
	border-color: var(--orange);
}

.nlc-pref input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid var(--blanc);
	border-width: 0 2px 2px 0;
	transform: rotate(40deg);
}

.nlc-pref-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nlc-pref-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--noir);
}

.nlc-pref-sub {
	font-size: 12.5px;
	color: var(--gris-mid);
	line-height: 1.5;
}

.nlc-freq {
	margin-bottom: 30px;
}

.nlc-freq-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nlc-freq-pill {
	font-size: 13px;
	font-weight: 500;
	padding: 9px 16px;
	border-radius: 40px;
	border: 1.5px solid rgba(0, 0, 0, .14);
	color: var(--noir);
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}

.nlc-freq-pill:hover {
	border-color: var(--orange);
}

.nlc-freq-pill input {
	display: none;
}

.nlc-freq-pill:has(input:checked) {
	background: var(--noir);
	border-color: var(--noir);
	color: var(--blanc);
}

.nlc-submit {
	background: var(--orange);
	color: var(--blanc);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 15px 22px;
	border-radius: 40px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .2s, transform .2s var(--ease);
	width: 100%;
}

.nlc-submit:hover {
	background: var(--orange-dk);
	color: var(--blanc);
	transform: scale(1.015);
}

.nlc-submit svg {
	width: 15px;
}

.nlc-footnote {
	text-align: center;
	font-size: 12px;
	color: var(--gris-mid);
	margin: 18px 0 0;
	line-height: 1.6;
}

.nlc-footnote a {
	color: var(--gris-mid);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nlc-footnote a:hover {
	color: var(--orange);
}

/* Vue « préférences enregistrées » : même carte, contenu centré. */
.nlc-success {
	text-align: center;
	padding: 20px 0 4px;
}

.nlc-success .nlc-icon {
	margin: 0 auto 20px;
}

.nlc-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 20px;
}

.nlc-chip {
	font-size: 12px;
	font-weight: 600;
	color: var(--noir);
	background: var(--creme);
	border: 1px solid rgba(0, 0, 0, .08);
	padding: 7px 14px;
	border-radius: 40px;
}

.nlc-chip--freq {
	background: var(--noir);
	color: var(--blanc);
	border-color: var(--noir);
}

@media (max-width: 560px) {
	.nlc-card {
		padding: 36px 24px 30px;
	}
}
