/* Le bloc compte remonte sur le hero : il garde son bord haut collé malgré le rythme compact. */
body.page-template-page-community #main > .community-account-section {
	position: relative;
	z-index: 3;
	margin-top: -58px;
	padding-top: 0;
}

.community-account-card {
	--az-cut: 14px;
	--az-border-start: rgba(118, 77, 255, .82);
	--az-border-end: rgba(220, 35, 151, .78);
	--az-frame-fill:
		radial-gradient(circle at 88% 0, rgba(225, 29, 135, .13), transparent 35%),
		linear-gradient(125deg, rgba(9, 13, 43, .99), rgba(18, 10, 49, .985));
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
	gap: clamp(28px, 5vw, 68px);
	padding: clamp(28px, 4vw, 52px);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .32), 0 0 34px rgba(116, 81, 244, .09);
}

.community-account-card__glow {
	position: absolute;
	z-index: 0;
	top: -170px;
	right: -130px;
	width: 430px;
	height: 430px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(225, 29, 135, .22), rgba(112, 63, 232, .08) 38%, transparent 70%);
}

.community-account-card > *:not(.community-account-card__glow) {
	position: relative;
	z-index: 1;
}

.community-account-intro,
.community-account-identity {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.community-account-intro__icon,
.community-account-identity__avatar {
	display: grid;
	width: 68px;
	height: 68px;
	flex: 0 0 68px;
	border: 1px solid rgba(200, 174, 255, .35);
	border-radius: 18px;
	color: #e2d5ff;
	background: linear-gradient(145deg, rgba(116, 81, 244, .32), rgba(225, 29, 135, .18));
	box-shadow: inset 0 0 18px rgba(166, 118, 255, .11), 0 0 22px rgba(116, 81, 244, .14);
	place-items: center;
}

.community-account-intro__icon .icon {
	width: 30px;
	height: 30px;
}

.community-account-intro h2,
.community-account-identity h2 {
	margin: 8px 0 12px;
	font-size: clamp(1.8rem, 3vw, 2.75rem);
	line-height: 1.05;
}

.community-account-intro p,
.community-account-identity p {
	margin: 0;
	color: #bfc3d5;
}

.community-account-benefits,
.community-account-assurances {
	display: grid;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.community-account-benefits li,
.community-account-assurances li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #dfe1ec;
	font-size: .82rem;
}

.community-account-benefits .icon,
.community-account-assurances .icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	color: #ff8a3d;
}

.community-account-auth,
.community-account-ready {
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid rgba(168, 137, 245, .25);
	border-radius: 15px;
	background: rgba(4, 7, 28, .66);
	box-shadow: inset 0 0 24px rgba(91, 48, 196, .08);
}

.community-account-auth__heading,
.community-account-ready__heading {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.community-account-auth__heading > span,
.community-account-ready__heading > span {
	display: grid;
	width: 39px;
	height: 39px;
	flex: 0 0 39px;
	border-radius: 10px;
	color: #ffad6e;
	background: rgba(233, 91, 32, .12);
	place-items: center;
}

.community-account-auth__heading .icon,
.community-account-ready__heading .icon {
	width: 19px;
	height: 19px;
}

.community-account-auth__heading strong,
.community-account-ready__heading strong {
	color: #fff;
	font-family: var(--az-font-display);
	font-size: 1.12rem;
}

.community-account-auth__heading p,
.community-account-ready__heading p {
	margin: 4px 0 0;
	color: #9fa5ba;
	font-size: .76rem;
}

.community-account-auth .aze-social-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 20px;
}

.community-account-auth .aze-social.button {
	min-height: 48px;
	padding-inline: 14px;
	border-color: rgba(152, 122, 230, .28);
	background: rgba(255, 255, 255, .035);
	font-size: .68rem;
}

.community-account-auth .aze-social.button:hover,
.community-account-auth .aze-social.button:focus-visible {
	border-color: rgba(255, 152, 78, .65);
	background: rgba(233, 91, 32, .1);
}

.community-account-auth__privacy {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 17px;
	color: #898fa5;
	font-size: .65rem;
	line-height: 1.4;
}

.community-account-auth__privacy .icon {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	color: #a787f5;
}

.community-account-auth__unavailable {
	margin: 20px 0;
	color: #bfc3d5;
}

.community-account-card--connected {
	--az-border-start: rgba(40, 211, 156, .86);
	--az-border-end: rgba(74, 137, 242, .78);
	--az-frame-fill:
		radial-gradient(circle at 88% 0, rgba(28, 198, 139, .13), transparent 36%),
		linear-gradient(125deg, rgba(7, 24, 38, .99), rgba(12, 24, 48, .985));
	grid-template-columns: minmax(0, .88fr) minmax(400px, 1.12fr);
}

.community-account-card--connected .community-account-card__glow {
	background: radial-gradient(circle, rgba(28, 198, 139, .2), rgba(55, 121, 230, .08) 40%, transparent 70%);
}

.community-account-identity__avatar {
	overflow: hidden;
	border-color: rgba(57, 220, 165, .45);
	background: rgba(28, 198, 139, .12);
}

.community-account-identity__avatar img,
.community-account-identity__avatar .aze-avatar-fallback {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.community-account-identity__avatar .aze-avatar-fallback {
	display: grid;
	place-items: center;
	color: #8ff0ce;
	font-family: var(--az-font-display);
	font-size: 1.6rem;
	font-weight: 700;
}

.community-account-identity__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 19px;
	padding: 8px 11px;
	border: 1px solid rgba(49, 214, 159, .35);
	border-radius: 999px;
	color: #8ff0ce;
	background: rgba(28, 198, 139, .09);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.community-account-identity__status .icon {
	width: 15px;
	height: 15px;
}

.community-account-ready {
	border-color: rgba(49, 214, 159, .2);
}

.community-account-ready__heading > span {
	color: #79e7c0;
	background: rgba(28, 198, 139, .11);
}

.community-account-assurances {
	margin-top: 20px;
}

.community-account-assurances .icon {
	color: #54d8a9;
}

.community-account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.community-account-actions .button {
	min-height: 46px;
}

.community-benefits-section {
	position: relative;
	overflow: hidden;
}

.community-benefit-grid {
	position: relative;
	gap: clamp(14px, 2vw, 24px);
}

.community-benefit-card {
	--benefit-accent: #ff7627;
	--benefit-accent-end: #e51b78;
	--benefit-glow-x: 92%;
	--az-border-start: rgba(255, 118, 39, .76);
	--az-border-end: rgba(229, 27, 120, .7);
	position: relative;
	overflow: hidden;
	display: grid;
	min-height: 320px;
	grid-template-rows: auto minmax(3.7rem, auto) 1fr;
	align-content: start;
	padding: clamp(25px, 3vw, 36px);
	background:
		radial-gradient(circle at var(--benefit-glow-x) 0, rgba(229, 27, 120, .12), transparent 39%),
		linear-gradient(150deg, rgba(12, 14, 36, .99), rgba(4, 6, 20, .98));
	box-shadow:
		0 18px 44px rgba(0, 0, 0, .2),
		inset 0 0 34px rgba(229, 27, 120, .035);
	transition: transform .32s cubic-bezier(.2, .75, .25, 1), box-shadow .32s ease;
}

.community-benefit-card:nth-child(2) {
	--benefit-glow-x: 50%;
}

.community-benefit-card:nth-child(3) {
	--benefit-glow-x: 8%;
}

.community-benefit-card::after {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
	background:
		linear-gradient(115deg, transparent 30%, rgba(255, 107, 37, .07) 44%, rgba(229, 27, 120, .075) 52%, transparent 68%);
	opacity: 0;
	transform: translateX(-42%);
	transition: opacity .35s ease, transform .65s ease;
}

.community-benefit-card:hover {
	z-index: 2;
	transform: translateY(-9px);
	box-shadow:
		0 24px 52px rgba(0, 0, 0, .3),
		0 0 22px rgba(229, 27, 120, .13),
		inset 0 0 36px rgba(255, 103, 33, .045);
}

.community-benefit-card:hover::after {
	opacity: 1;
	transform: translateX(42%);
}

.community-benefit-card__top {
	display: flex;
	min-height: 110px;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	gap: 13px;
	margin-bottom: 22px;
	text-align: center;
}

.community-benefit-card .community-benefit-card__number {
	color: #ff8a42;
	font-family: var(--az-font-display);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-shadow: 0 0 14px rgba(255, 105, 33, .52);
}

.community-benefit-card__icon {
	--emblem-cut: 12px;
	position: relative;
	display: grid;
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	border: 0;
	color: #ff9a54;
	background:
		linear-gradient(135deg, rgba(255, 118, 39, .8), rgba(229, 27, 120, .72));
	box-shadow:
		0 0 20px rgba(229, 27, 120, .13);
	clip-path: polygon(var(--emblem-cut) 0, calc(100% - var(--emblem-cut)) 0, 100% var(--emblem-cut), 100% calc(100% - var(--emblem-cut)), calc(100% - var(--emblem-cut)) 100%, var(--emblem-cut) 100%, 0 calc(100% - var(--emblem-cut)), 0 var(--emblem-cut));
	isolation: isolate;
	place-items: center;
	transition: transform .32s ease, box-shadow .32s ease;
}

.community-benefit-card__icon::before {
	position: absolute;
	z-index: -1;
	inset: 1px;
	content: "";
	background:
		radial-gradient(circle, rgba(229, 27, 120, .16), transparent 62%),
		linear-gradient(145deg, #171326, #080a18);
	clip-path: polygon(calc(var(--emblem-cut) - 1px) 0, calc(100% - var(--emblem-cut) + 1px) 0, 100% calc(var(--emblem-cut) - 1px), 100% calc(100% - var(--emblem-cut) + 1px), calc(100% - var(--emblem-cut) + 1px) 100%, calc(var(--emblem-cut) - 1px) 100%, 0 calc(100% - var(--emblem-cut) + 1px), 0 calc(var(--emblem-cut) - 1px));
}

.community-benefit-card__icon::after {
	position: absolute;
	z-index: -1;
	inset: 11px;
	border: 1px solid rgba(255, 129, 55, .17);
	border-radius: 50%;
	content: "";
	box-shadow: 0 0 12px rgba(229, 27, 120, .11), inset 0 0 10px rgba(255, 118, 39, .05);
	transition: transform .55s ease, border-color .32s ease;
}

.community-benefit-card__icon .icon {
	width: 36px;
	height: 36px;
	stroke-width: 1.55;
	filter: drop-shadow(0 0 5px rgba(255, 91, 35, .28));
}

.community-benefit-card:hover .community-benefit-card__icon {
	transform: translateY(-3px);
	box-shadow:
		0 0 26px rgba(229, 27, 120, .22);
}

.community-benefit-card:hover .community-benefit-card__icon::after {
	border-color: rgba(255, 137, 69, .36);
	transform: rotate(135deg) scale(.94);
}

.community-benefit-grid .community-benefit-card h2 {
	display: flex;
	max-width: 290px;
	min-height: 3.7rem;
	align-items: flex-start;
	justify-content: center;
	margin: 0 auto 14px;
	color: #fff;
	font-size: clamp(1.3rem, 1.7vw, 1.65rem);
	font-weight: 600;
	line-height: 1.18;
	text-align: center;
}

.community-benefit-card p {
	position: relative;
	z-index: 1;
	align-self: start;
	margin: 0;
	color: #bac0d3;
	font-size: clamp(.8rem, .9vw, .9rem);
	line-height: 1.75;
	text-align: center;
}

.community-benefit-grid.is-enhanced .community-benefit-card {
	opacity: 0;
	transform: translateY(34px) scale(.975);
}

.community-benefit-grid.is-enhanced.is-visible .community-benefit-card {
	opacity: 1;
	transform: none;
	transition:
		opacity .65s ease,
		transform .65s cubic-bezier(.2, .75, .25, 1),
		box-shadow .32s ease;
}

.community-benefit-grid.is-enhanced.is-visible .community-benefit-card:nth-child(2) {
	transition-delay: .12s;
}

.community-benefit-grid.is-enhanced.is-visible .community-benefit-card:nth-child(3) {
	transition-delay: .24s;
}

.community-benefit-grid.is-enhanced.is-visible .community-benefit-card:hover {
	transform: translateY(-9px);
	transition-delay: 0s;
}


.community-open-card {
	--az-cut: 13px;
	--az-border-start: rgba(123, 77, 255, .72);
	--az-border-end: rgba(187, 44, 224, .66);
	--az-frame-fill:
		radial-gradient(circle at 86% 38%, rgba(169, 116, 238, .13), transparent 29%),
		linear-gradient(125deg, rgba(18, 15, 39, .99), rgba(10, 10, 29, .99));
	position: relative;
	overflow: hidden;
	display: grid;
	min-height: 330px;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
	padding: clamp(28px, 3.7vw, 46px);
	box-shadow: 0 20px 52px rgba(0, 0, 0, .24), 0 0 24px rgba(151, 100, 231, .055);
}

.community-open-card__copy,
.community-open-visual {
	position: relative;
	z-index: 1;
}

.community-open-card h2 {
	margin: 8px 0 13px;
	font-size: clamp(2rem, 3.5vw, 3.35rem);
	line-height: 1.02;
}

.community-open-card__copy > p {
	max-width: 760px;
	margin: 0;
	color: #c8c6d8;
	font-size: clamp(.86rem, 1vw, .98rem);
	line-height: 1.65;
}

.community-open-card__copy .community-open-card__welcome {
	margin-top: 9px;
	color: #eeeaf7;
	font-weight: 600;
}

.community-open-card__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 19px 0 0;
	padding: 0;
	list-style: none;
}

.community-open-card__points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 11px;
	border: 1px solid rgba(170, 128, 235, .2);
	border-radius: 999px;
	color: #d9d5e5;
	background: rgba(164, 119, 229, .045);
	font-size: .65rem;
	font-weight: 650;
	letter-spacing: .025em;
}

.community-open-card__points .icon {
	width: 16px;
	height: 16px;
	color: #b79aef;
}

.community-open-visual {
	--az-cut: 14px;
	--az-border-start: #ff7918;
	--az-border-end: #f20f78;
	--az-frame-media-fill: #09081c;
	width: min(100%, 400px);
	aspect-ratio: 3 / 2;
	justify-self: end;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .34), 0 0 26px rgba(242, 15, 120, .11);
}

.community-open-visual__media::after {
	position: absolute;
	z-index: 2;
	inset: 0;
	content: "";
	pointer-events: none;
	background:
		linear-gradient(125deg, rgba(24, 8, 54, .08), transparent 48%),
		linear-gradient(0deg, rgba(8, 6, 27, .22), transparent 42%);
}

.community-open-visual__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(.94) contrast(1.04);
}

.community-open-card.is-enhanced {
	opacity: 0;
	transform: translateY(30px);
}

.community-open-card.is-enhanced.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1);
}

@media (max-width: 980px) {
	.community-account-card,
	.community-account-card--connected {
		grid-template-columns: minmax(0, 1fr);
	}

	.community-open-card {
		min-height: 0;
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.community-open-card__copy > p {
		margin-inline: auto;
	}

	.community-open-card__points {
		justify-content: center;
	}

	.community-open-visual {
		width: min(100%, 560px);
		justify-self: center;
	}
}

@media (max-width: 640px) {
	body.page-template-page-community #main > .community-account-section {
		margin-top: -28px;
	}

	.community-account-card {
		padding: 22px;
	}

	.community-account-intro,
	.community-account-identity {
		flex-direction: column;
	}

	.community-account-auth .aze-social-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.community-account-actions {
		display: grid;
	}

	.community-account-actions .button {
		width: 100%;
	}

	.community-benefit-card {
		min-height: 290px;
	}

	.community-open-card {
		min-height: 0;
		padding: 28px 22px;
	}

	.community-open-card h2 {
		font-size: clamp(2rem, 10vw, 2.75rem);
	}

	.community-open-card__points {
		display: grid;
	}

	.community-open-card__points li {
		justify-content: center;
	}

	.community-open-visual {
		--az-cut: 10px;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.community-account-card *,
	.community-account-card *::before,
	.community-account-card *::after {
		transition-duration: .01ms !important;
	}

	.community-benefit-grid.is-enhanced .community-benefit-card {
		opacity: 1;
		transform: none;
	}

	.community-benefit-card,
	.community-benefit-card::after,
	.community-benefit-card__icon {
		animation: none !important;
		transition-duration: .01ms !important;
	}

	.community-open-card.is-enhanced {
		opacity: 1;
		transform: none;
	}

}
