/* ════════════════════════════════════════════════
   FOOTER — MyProd
   Fixed en fond + effet "rideau" : #page doit avoir
   un margin-bottom: var(--footer-h) posé en JS
   (voir footer-glow.js) pour révéler ce footer au scroll.
   ════════════════════════════════════════════════ */

.site-footer {
	position: relative; /* mobile/tablette : flux normal, pas de reveal */
	overflow: hidden;
	padding: 120px 0 24px;
	background-color: var(--dark-blue, #101820);
	color: #fff;
}

body, main, main section:last-child {
	border-radius: 0 0 40px 40px;
}

/* Le mode "rideau" fixed n'a de sens qu'à partir du breakpoint où
   footer.js calcule le margin-bottom de #page (même seuil : 992px). */
@media (min-width: 992px) {
	.site-footer {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		z-index: 0;
		padding: 120px 0 32px;
	}
}

.footer-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.footer-bg__layer {
	position: absolute;
	inset: 0;
}

/* Grand rond bleu foncé, très diffus — suit le curseur avec plus
   d'inertie (plus lent à rattraper -> sensation de calque "loin") */
.footer-bg__layer--back {
	background: radial-gradient(circle clamp(500px, 70vw, 1100px) at var(--spot-x-back, 50%) var(--spot-y-back, 104%),
		rgba(41, 51, 138, 0.9) 0%,
		rgba(41, 51, 138, 0.5) 40%,
		rgba(41, 51, 138, 0) 75%);
}

/* Petit rond cyan, la zone la plus claire — suit le curseur de plus
   près (rattrape plus vite -> sensation de calque "proche") */
.footer-bg__layer--front {
	background: radial-gradient(circle clamp(350px, 50vw, 850px) at var(--spot-x, 50%) var(--spot-y, 108%),
		rgba(8, 185, 224, 0.55) 0%,
		rgba(8, 185, 224, 0.28) 35%,
		rgba(8, 185, 224, 0) 65%);
}

.footer-inner {
	position: relative;
	z-index: 1;
}

/* ── 1. Menus + CTA ────────────────────────────── */

.footer-main {
	align-items: flex-start;
	margin-bottom: 64px;
}

/* Colonne de menus (voir footer.php) : 2 groupes empilés par colonne */
.footer-menu-col {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.footer-menu-group__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.footer-menu-group__dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent-blue, #08B9E0);
}

.footer-menu-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu-group__list li + li {
	margin-top: 10px;
}

.footer-menu-group__list a {
	position: relative;
	display: inline-block;
	color: #F6F6F6;
	font-size: 1.8rem;
	font-family: "Gilmer";
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* barre bleue au hover, reprise du comportement de l'ancien .footer-menu */
.footer-menu-group__list a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: var(--accent-blue, #08B9E0);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-menu-group__list a:hover,
.footer-menu-group__list a:focus-visible {
	color: #fff;
}

.footer-menu-group__list a:hover::after,
.footer-menu-group__list a:focus-visible::after {
	transform: scaleX(1);
}

/* CTA gauche */

.footer-cta {
	padding-top: 8px;
}

.footer-cta .btn-cta {
	width: fit-content;
	margin: 0;
}

.footer-cta__text {
	font-size: 3.2rem;
    font-family: "Neulis";
    font-weight: 500;
    text-align: left;
	line-height: 1.35;
	margin: 0 0 32px;
	color: #F6F6F6;
}

.footer-cta__text em {
	font-style: italic;
	text-decoration: underline;
	text-decoration-color: #08B9E0;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.footer-cta__btn {
    display: flex;
    justify-content: flex-start;
}

/* ── 2. Barre basse ────────────────────────────── */

.footer-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__rs {
	display: flex;
	gap: 12px;
}

.footer-bottom__rs-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid#FEFEFE;
    text-decoration: none;
	color: #fff;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-bottom__rs-link i {
	font-size: 2.5rem;
}

.footer-bottom__rs-fallback {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.footer-bottom__rs-link:hover {
	background-color: var(--accent-blue, #08B9E0);
	border-color: var(--accent-blue, #08B9E0);
	transform: translateY(-2px);
}

.footer-bottom__mentions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 32px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.footer-bottom__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-bottom__link:hover {
	color: #fff;
}

.footer-bottom__copy {
    font-family: Gilmer;
    font-size: 14px;
    color: var(--white, #FEFEFE);
	white-space: nowrap;
}

.footer-bottom__logo img {
	display: block;
	height: 55px;
	width: auto;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 991px) {
	.footer-main {
		margin-bottom: 40px;
	}

	.footer-cta {
		margin-bottom: 40px;
	}

	.footer-menu-col + .footer-menu-col {
		margin-top: 40px;
	}

	.footer-menu-group__title {
		font-size: 18px;
	}

	.footer-bottom-row {
		justify-content: flex-start;
	}

	.footer-bottom__mentions {
		width: 100%;
		justify-content: space-between;
	}
}