/* ============================================
   footer.css — Styles spécifiques du pied de page
   Réutilise les tokens du design system :
   - couleurs : var(--color-secondary), var(--color-primary)
   - boutons  : .btn-primary (elements.css)
   - grille   : Bootstrap + .inner (template.css)
   ============================================ */

/* --- Base : typographie et liens --- */
footer * {
	color: white;
}

footer a {
	text-decoration: none;
}

footer li {
	list-style-type: none;
}

/* --- Top footer --- */
footer .top-footer {
	background: var(--color-secondary);
	padding: 50px 0;
}

footer .top-footer .block-logo {
	max-width: 350px;
}

/* --- Logo (colonne 1) --- */
footer .block-logo {
	display: block;
	max-width: 300px;
}

/* --- Colonnes : centrage général --- */
footer [class*="col-"] {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* --- Coordonnées (colonne 2) --- */
.footer-coords__name {
	font-weight: 700;
}

.footer-coords__address,
.footer-coords__city {
	margin-bottom: 0.4rem;
}

.footer-coords__mail a {
	color: inherit;
}

.footer-coords__phones {
	margin: 0.4rem 0 0;
}

.footer-coords__phones li {
	margin-bottom: 0.4rem;
}

.footer-coords__phones a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-coords__phone-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

.footer-coords a:hover {
	opacity: 0.85;
}

/* --- CTA (colonne 3) --- */
.top-footer .col-lg-4:nth-child(3) {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* --- Bottom footer --- */
footer .bottom-footer {
	padding: 10px;
	background-color: black;
}

footer .bottom-footer * {
	color: white;
}

footer .bottom-footer > div {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Menu légal --- */
li.menu-divider {
	color: black !important;
	margin: 0 4px !important;
}

li.menu-divider:not(.self):last-child {
	display: none !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	footer .top-footer .row div {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	.top-footer .col-lg-4:nth-child(3) {
		justify-content: center;
	}

	.footer-coords {
		text-align: center;
	}
}

@media (max-width: 992px) {
	.block-logo {
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.bottom-footer .legal-menu {
		flex-direction: column !important;
		text-align: center;
	}

	.bottom-footer .legal-menu ul,
	.bottom-footer .legal-menu li {
		flex-direction: column !important;
	}

	.bottom-footer .menu-divider {
		display: none;
	}
}