/* ════════════════════════════════════════════════
   FOOTER — MyProd
   Fixed en fond + effet "rideau" (INCHANGÉ) : #page doit
   avoir un margin-bottom: var(--footer-h) posé en JS
   (voir footer.js) pour révéler ce footer au scroll.
   Le glow (2 ronds qui suivent la souris) est remplacé
   par des stickers qui apparaissent au clic — voir
   .footer-stickers plus bas et footer.js.
   ════════════════════════════════════════════════ */

.site-footer {
	position: relative; /* mobile/tablette : flux normal, pas de reveal */
	overflow: hidden;
	padding: 64px 0 24px;
	background-color: #792C3E;
	color: #fff;
}

/* 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: 80px 0 32px;
	}
}

.footer-inner {
	position: relative;
	z-index: 1;
	min-height: 350px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* ── Stickers cliqués (remplace le glow) ──
   Conteneur vide au départ, rempli/vidé dynamiquement par footer.js.
   pointer-events: none partout : les stickers sont purement décoratifs,
   ils ne doivent jamais bloquer un clic sur les liens du footer. */

.footer-stickers {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
}

.footer-sticker {
	position: absolute;
	pointer-events: none;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.footer-sticker img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── 1. Logo / Menu / Contact ─────────────────── */

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

.footer-logo img {
	display: block;
	height: 64px;
	width: auto;
}

.footer-logo__fallback {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
}

.footer-col-title {
	font-size: 18px;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	margin: 0 0 20px;
	color: #fff;
}

/* Menu */

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

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

.footer-menu a {
	position: relative;
	display: inline-block;
	font-family: "Poppins", sans-serif;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	line-height: 1.3;
	font-size: 16px;
	transition: color 0.25s ease;
}

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

/* Élément avec sous-menu (ex : "Solutions de marquage") : chevron
   cliquable ajouté en JS juste après le lien (voir footer.js), pour ne
   pas empêcher le lien principal de naviguer normalement. */
.footer-menu .menu-item-has-children {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.footer-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	transition: transform 0.3s ease;
}

.footer-menu__toggle svg {
	width: 14px;
	height: 14px;
	display: block;
}

.footer-menu .menu-item-has-children.is-open .footer-menu__toggle {
	transform: rotate(180deg);
}

.footer-menu .sub-menu {
	flex-basis: 100%;
	max-height: 0;
	overflow: hidden;
	margin: 0;
	padding-left: 16px;
	transition: max-height 0.35s ease;
}

.footer-menu .menu-item-has-children.is-open .sub-menu {
	max-height: 400px; /* large marge, le contenu réel est toujours plus court */
}

.footer-menu .sub-menu li {
	margin-top: 8px;
}

.footer-menu .sub-menu a {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	transition: 0.3s all ease;
}

.footer-menu .sub-menu a:hover {
	opacity: 0.6;
	transition: 0.3s all ease;
}

/* Contact */

.footer-contact__adresse,
.footer-contact__line {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.footer-contact__line:last-child,
.footer-contact__adresse:last-child {
	margin-bottom: 0;
}

.footer-contact__line a {
	color: inherit;
	text-decoration: none !important;
	transition: color 0.25s ease;
}

.footer-contact__line a:hover {
	color: #fff;
	opacity: 0.6;
	text-decoration: underline;
}

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

.footer-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 24px;
}

.footer-bottom__mentions-line {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
}

.footer-bottom__link {
	color: inherit;
	text-decoration: underline 1px solid white !important;
	transition: color 0.25s ease;
}

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

.footer-bottom__sep {
	opacity: 0.6;
}

.footer-bottom__credit img {
	display: block;
	height: 32px;
	width: auto;
}

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

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

	.footer-col-menu,
	.footer-col-contact {
		margin-top: 8px;
	}

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