/* ==========================================================================
   Apex Design : footer
   Identité du site : graphite, orange Apex, Orbitron + Rajdhani, coins coupés.
   Signature : le grand « APEXHEIRLOOM » en contour en bas de page.
   ========================================================================== */

.apxd-footer {
	--o: #ff4d1c;
	--g: #ffb347;
	--t: #f5f5f5;
	--m: #a3a3ad;
	--bg: #0a0a0c;
	--p: #141417;
	--line: rgba(255, 255, 255, 0.07);
	--display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
	--body: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;

	position: relative;
	margin: 0 !important;
	color: var(--t);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.5;
	background: var(--bg);
	border-top: 1px solid var(--line);
	overflow: hidden;
}

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

.apxd-footer p,
.apxd-footer h2,
.apxd-footer ul {
	margin: 0;
}

.apxd-footer a {
	color: inherit;
	text-decoration: none;
}

.apxd-footer a:focus-visible {
	outline: 2px solid var(--g);
	outline-offset: 3px;
}

.apxd-footer .apxd-preview {
	padding: 4px 12px;
	background: rgba(255, 179, 71, 0.12);
	color: var(--g);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.apxd-f-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
}

/* Bande communauté */
.apxd-f-band {
	padding: clamp(28px, 4vw, 44px) 0;
	background:
		radial-gradient(700px 260px at 0% 50%, rgba(255, 77, 28, 0.22), transparent 65%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 48px),
		var(--p);
	border-bottom: 1px solid var(--line);
}

.apxd-f-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
}

.apxd-f-band__title {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(22px, 3vw, 32px);
	line-height: 1.1;
	color: var(--t);
}

.apxd-f-band p {
	margin-top: 6px;
	color: var(--m);
	font-size: 18px;
}

.apxd-f-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.apxd-f-socials a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 20px;
	background: var(--bg);
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	box-shadow: inset 0 0 0 1px #34343c;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.apxd-f-socials a:hover {
	background: var(--o);
	box-shadow: none;
	transform: translateY(-2px);
}

.apxd-f-socials svg {
	width: 22px;
	height: 22px;
}

/* Colonnes */
.apxd-f-main {
	display: grid;
	gap: clamp(28px, 4vw, 48px);
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(36px, 5vw, 56px);
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}

.apxd-f-brand {
	display: grid;
	gap: 14px;
	align-content: start;
	max-width: 380px;
}

.apxd-f-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.apxd-footer .apxd-f-logo img {
	display: block;
	width: auto !important;
	max-width: none !important;
	height: 34px !important;
}

.apxd-f-logo span {
	font-family: var(--display);
	font-weight: 900;
	font-size: 18px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.apxd-f-brand > p {
	color: var(--m);
}

.apxd-f-perks {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 6px;
	font-weight: 600;
	font-size: 15px;
	color: #c9c9d1;
}

.apxd-f-perks li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.apxd-f-perks svg {
	width: 15px;
	height: 15px;
	color: var(--o);
}

.apxd-f-col__title {
	margin-bottom: 14px !important;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--g);
}

.apxd-f-col ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 4px;
}

.apxd-f-col a {
	position: relative;
	display: inline-block;
	padding: 4px 0;
	color: #c9c9d1;
	font-weight: 600;
	transition: color 0.15s ease, transform 0.2s ease;
}

.apxd-f-col a::before {
	content: '';
	position: absolute;
	left: -14px;
	top: 50%;
	width: 8px;
	height: 2px;
	background: var(--o);
	transform: translateY(-50%) scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.apxd-f-col a:hover {
	color: #fff;
	transform: translateX(10px);
}

.apxd-f-col a:hover::before {
	transform: translateY(-50%) scaleX(1);
}

/* Bas de page */
.apxd-f-bottom {
	position: relative;
	border-top: 1px solid var(--line);
}

.apxd-f-bottom__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--m);
}

.apxd-f-copy b {
	color: var(--o);
}

.apxd-f-credit a {
	color: var(--o);
	font-weight: 700;
	transition: color 0.15s ease;
}

.apxd-f-credit a:hover {
	color: #fff;
}

.apxd-f-heart {
	display: inline-block;
	color: #e31b3e;
	animation: apxdHeart 1.5s ease-in-out infinite;
}

@keyframes apxdHeart {
	0%, 28%, 70%, 100% { transform: scale(1); }
	14%, 42% { transform: scale(1.22); }
}

.apxd-f-top {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: var(--p);
	color: var(--t) !important;
	box-shadow: inset 0 0 0 1px #34343c;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.apxd-f-top:hover {
	background: var(--o);
	transform: translateY(-3px);
}

.apxd-f-top svg {
	width: 20px;
	height: 20px;
}

/* Signature : le nom en contour géant */
.apxd-f-ghost {
	margin: 0;
	padding: 0 8px;
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(42px, 12.5vw, 190px);
	line-height: 0.85;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 77, 28, 0.22);
	user-select: none;
	pointer-events: none;
	transform: translateY(18%);
}

/* Responsive */
@media (max-width: 980px) {
	.apxd-f-main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.apxd-f-brand {
		grid-column: 1 / -1;
		max-width: none;
	}
}

@media (max-width: 600px) {
	.apxd-footer {
		font-size: 16px;
	}
	.apxd-f-socials--big {
		width: 100%;
	}
	.apxd-f-socials--big a {
		flex: 1;
		justify-content: center;
	}
	.apxd-f-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 18px;
	}
	.apxd-f-col a:hover {
		transform: none;
	}
	.apxd-f-bottom__inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apxd-f-heart {
		animation: none;
	}
	.apxd-f-socials a,
	.apxd-f-col a,
	.apxd-f-col a::before,
	.apxd-f-top {
		transition: none;
	}
}
