/**
 * Nouyouin Adhésions — parcours d'adhésion moderne.
 */

.nym {
	--nym-green: #184d47;
	--nym-orange: #c14426;
	--nym-yellow: #d4a019;
	--nym-brown: #3a2d1c;
	--nym-ink: #2b2b2b;
	--nym-muted: #6d6a63;
	--nym-line: #e8e2d6;
	--nym-soft: #faf8f4;

	max-width: 1000px;
	margin: 0 auto;
	color: var(--nym-ink);
	font-size: 16px;
	line-height: 1.6;
}

.nym *,
.nym *::before,
.nym *::after {
	box-sizing: border-box;
}

/* ---------- En-tête ---------- */
.nym-head {
	text-align: center;
	position: relative;
	padding: 8px 0 26px;
}

.nym-title {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	color: var(--nym-green);
	letter-spacing: -0.01em;
}

.nym-sub {
	margin: 0 auto;
	max-width: 560px;
	color: var(--nym-muted);
	font-size: 17px;
}

.nym-lang {
	display: inline-flex;
	gap: 4px;
	margin-top: 14px;
	border: 1px solid var(--nym-line);
	border-radius: 999px;
	padding: 3px;
}

.nym-lang a {
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nym-muted);
	text-decoration: none;
}

.nym-lang a.is-active {
	background: var(--nym-green);
	color: #fff;
}

/* ---------- Indicateur d'étapes ---------- */
.nym-steps {
	display: flex;
	justify-content: center;
	gap: 0;
	list-style: none;
	margin: 10px auto 34px;
	padding: 0;
	max-width: 560px;
}

.nym-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	position: relative;
	font-size: 13px;
	font-weight: 600;
	color: var(--nym-muted);
}

.nym-step::before {
	content: "";
	position: absolute;
	top: 17px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--nym-line);
	z-index: 0;
}

.nym-step:first-child::before {
	display: none;
}

.nym-step-n {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--nym-line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: var(--nym-muted);
}

.nym-step-current .nym-step-n {
	border-color: var(--nym-green);
	background: var(--nym-green);
	color: #fff;
}

.nym-step-current .nym-step-l {
	color: var(--nym-green);
}

.nym-step-done .nym-step-n {
	border-color: var(--nym-green);
	background: #fff;
	color: var(--nym-green);
}

.nym-step-done::before {
	background: var(--nym-green);
}

/* ---------- Titres ---------- */
.nym-h2 {
	margin: 0 0 18px;
	font-size: 21px;
	font-weight: 800;
	color: var(--nym-brown);
}

/* ---------- Formules ---------- */
.nym-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	align-items: stretch;
}

.nym-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--nym-line);
	border-radius: 16px;
	padding: 28px 24px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nym-plan:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(24, 77, 71, 0.1);
	border-color: var(--nym-green);
}

.nym-plan-featured {
	border-color: var(--nym-green);
	border-width: 2px;
	box-shadow: 0 14px 34px rgba(24, 77, 71, 0.12);
}

.nym-plan-tag {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--nym-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 5px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

.nym-plan-name {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
	color: var(--nym-green);
}

.nym-plan-price {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--nym-line);
}

.nym-price {
	font-size: 30px;
	font-weight: 800;
	color: var(--nym-ink);
}

.nym-plan-per {
	display: block;
	font-size: 13px;
	color: var(--nym-muted);
	margin-top: 2px;
}

.nym-plan-desc {
	margin: 0 0 16px;
	color: var(--nym-muted);
	font-size: 14.5px;
}

.nym-plan-features {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	flex: 1;
}

.nym-plan-features li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
	font-size: 15px;
}

.nym-plan-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--nym-green);
	font-weight: 800;
}

/* ---------- Boutons ---------- */
.nym-btn,
.nym-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	font-family: inherit;
}

.nym-btn {
	background: var(--nym-green);
	color: #fff !important;
}

.nym-btn:hover,
.nym-btn:focus-visible {
	background: var(--nym-orange);
	color: #fff !important;
}

.nym-btn-ghost {
	background: transparent;
	color: var(--nym-green) !important;
	border-color: var(--nym-line);
}

.nym-btn-ghost:hover {
	border-color: var(--nym-green);
	background: var(--nym-soft);
}

.nym-plan .nym-btn,
.nym-plan .nym-btn-ghost {
	width: 100%;
}

/* ---------- Cartes / formulaires ---------- */
.nym-card {
	background: #fff;
	border: 1px solid var(--nym-line);
	border-radius: 16px;
	padding: 28px;
	max-width: 620px;
	margin: 0 auto;
}

.nym-form {
	margin-top: 8px;
}

.nym-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.nym-field {
	display: block;
	margin-bottom: 16px;
}

.nym-field span {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: var(--nym-brown);
}

.nym-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nym-line);
	border-radius: 10px;
	font-size: 16px; /* >=16px : pas de zoom auto sur iPhone. */
	font-family: inherit;
	background: #fff;
	color: var(--nym-ink);
}

.nym-field input:focus {
	outline: none;
	border-color: var(--nym-green);
	box-shadow: 0 0 0 3px rgba(24, 77, 71, 0.12);
}

.nym-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: var(--nym-muted);
	margin: 6px 0 20px;
}

.nym-consent input {
	margin-top: 3px;
}

.nym-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	overflow: hidden;
}

.nym-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.nym-login-link {
	margin: 0 0 18px;
	font-size: 14px;
}

.nym-loggedin {
	background: var(--nym-soft);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 20px;
}

/* ---------- Paiement ---------- */
.nym-pay {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 20px;
	align-items: start;
}

.nym-summary {
	position: sticky;
	top: 20px;
}

.nym-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--nym-line);
	font-size: 15px;
}

.nym-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 16px;
	font-size: 15px;
}

.nym-summary-total strong {
	font-size: 26px;
	color: var(--nym-green);
}

.nym-note {
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--nym-muted);
}

.nym-soon {
	padding: 16px;
	border-radius: 10px;
	background: var(--nym-soft);
	color: var(--nym-brown);
	font-size: 14.5px;
}

/* ---------- Espace membre ---------- */
.nym-badge-active {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: #1a7f5a;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	margin: 0 0 14px;
}

.nym-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.nym-table td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--nym-line);
}

.nym-logout {
	display: inline-block;
	margin-top: 16px;
	color: var(--nym-muted);
	font-size: 14px;
}

/* ---------- Divers ---------- */
.nym-notice {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 22px;
	font-size: 15px;
}

.nym-notice-ok {
	background: #eef6f2;
	border: 1px solid #cfe5da;
	color: #14503f;
}

.nym-notice-error {
	background: #fdf0ed;
	border: 1px solid #f3d2c9;
	color: #8f2f18;
}

.nym-empty {
	color: var(--nym-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	.nym-pay {
		grid-template-columns: 1fr;
	}
	.nym-summary {
		position: static;
	}
}

@media (max-width: 560px) {
	.nym-grid2 {
		grid-template-columns: 1fr;
	}
	.nym-step-l {
		font-size: 11px;
	}
	.nym-card {
		padding: 20px;
	}
	.nym-actions .nym-btn,
	.nym-actions .nym-btn-ghost {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nym-plan,
	.nym-btn,
	.nym-btn-ghost {
		transition: none;
	}
}

/* ---------- Moyens de paiement ---------- */
.nym-methods { display: grid; gap: 12px; margin-bottom: 22px; }

.nym-method {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 16px 18px; border: 1px solid var(--nym-line, #e8e2d6);
	border-radius: 12px; cursor: pointer; background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.nym-method:hover { border-color: var(--nym-green, #184d47); }
.nym-method input { margin-top: 4px; flex: 0 0 auto; }
.nym-method input:checked ~ .nym-method-body .nym-method-name { color: var(--nym-green, #184d47); }
.nym-method:focus-within { border-color: var(--nym-green, #184d47); box-shadow: 0 0 0 3px rgba(24,77,71,.12); }
.nym-method-body { display: flex; flex-direction: column; gap: 3px; }
.nym-method-name { font-weight: 700; font-size: 15.5px; }
.nym-method-desc { font-size: 13.5px; color: var(--nym-muted, #6d6a63); }

.nym-secure { margin-top: 14px; font-size: 13px; color: var(--nym-muted, #6d6a63); text-align: center; }

/* ---------- Page de retour ---------- */
.nym-return { text-align: center; padding: 40px 24px; }
.nym-return-icon {
	width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px;
	display: flex; align-items: center; justify-content: center;
	font-size: 32px; font-weight: 700; color: #fff;
}
.nym-ok { background: #1a7f5a; }
.nym-ko { background: #c14426; }
.nym-wait { background: #d4a019; }
.nym-ref { margin-top: 14px; font-size: 13px; color: var(--nym-muted, #6d6a63); }

/* Équivalents de prix dans les autres devises */
.nym-price-alt {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--nym-muted, #6d6a63);
	letter-spacing: 0;
}

.nym-summary-alt {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--nym-muted, #6d6a63);
	text-align: right;
}

/* ---------- Contenu réservé aux membres ---------- */
.nym-paywall {
	margin: 28px 0;
	border: 1px dashed var(--nym-line, #e8e2d6);
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, var(--nym-soft, #faf8f4) 100%);
}

.nym-paywall-inner {
	padding: 40px 28px;
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
}

.nym-paywall-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--nym-green, #184d47);
	font-size: 26px;
	margin-bottom: 16px;
}

.nym-paywall-title {
	margin: 0 0 10px;
	font-size: clamp(20px, 2.6vw, 26px);
	font-weight: 800;
	color: var(--nym-green, #184d47);
}

.nym-paywall-text {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--nym-muted, #6d6a63);
}

.nym-paywall-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.nym-paywall-inner { padding: 30px 18px; }
	.nym-paywall-actions .nym-btn,
	.nym-paywall-actions .nym-btn-ghost { width: 100%; justify-content: center; }
}
