/**
 * Pied de page BMF (widget .bmf-footer, 6 colonnes).
 * Cibler #footer-widgets (ID OceanWP), pas .footer-widgets (classe absente ici).
 */

#footer-widgets,
#footer-widgets.footer-widgets,
.footer-widgets#footer-widgets {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 0 !important;
	background: #fff;
	border-top: 1px solid #c3d0d6;
}

/* Le wrapper de pied de page OceanWP (#footer) doit également couvrir
   l'image fixed du hero des pages métier / single projet. */
#footer {
	position: relative;
	z-index: 2;
	background: #ffffff;
}

/* Conteneur Ocean : largeur max 1280px centrée (remplace l’ex-max-width: none) */
#footer-widgets .footer-widgets-inner.container,
#footer-widgets .container.footer-widgets-inner,
#footer .footer-widgets-inner.container {
	float: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
	max-width: 1280px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box;
}

#footer-widgets .footer-box.span_1_of_1,
#footer-widgets .footer-one-box,
#footer-widgets .col.col-1,
#footer-widgets .footer-widget,
#footer-widgets .widget_block {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Grille : occupe 100% du conteneur 1280 (pas plus large que le parent) */
#footer-widgets .bmf-footer,
.bmf-footer {
	display: grid;
	/*
	 * Colonnes 1–5 : largeur contenu (max-content bureaux) serrées à gauche avec gap fixe.
	 * Dernière piste 1fr : absorbe tout l’espace restant — les liens s’alignent à droite
	 * (évite d’étaler de l’espace entre logo et contact).
	 */
	grid-template-columns: auto auto max-content max-content max-content minmax(0, 1fr);
	/*
	 * Gap horizontal augmenté (44 px) pour respirer entre les colonnes
	 * .bmf-footer__contact-col et les blocs .bmf-footer__office consécutifs
	 * (Paris / Bordeaux / Toulouse), sans changer la grille existante.
	 */
	gap: 20px 44px;
	align-items: start;
	justify-content: start;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 36px 0;
	font-family: "Inter", sans-serif;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #1d1d1b;
	background: #fff;
	box-sizing: border-box;
}

.bmf-footer__logo {
	height: 52px;
	width: auto;
	max-width: none;
	max-height: 52px;
	object-fit: contain;
	display: block;
}

.bmf-footer__logo-col {
	min-width: 0;
}

.bmf-footer__contact-col p {
	margin: 0 0 3px;
	line-height: 1.4;
}

.bmf-footer__contact-col p:first-child {
	margin-top: 0;
}

.bmf-footer__contact-col p:last-child {
	margin-bottom: 0;
}

.bmf-footer__office {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

/* Titre + adresse : interlignage identique au corps d’adresse, sans marge parasite */
.bmf-footer__office h4 {
	font-family: "Inter", sans-serif;
	font-weight: 300;
	font-style: italic;
	font-size: 12px;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	color: #1d1d1b;
}

.bmf-footer__office p {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.4;
}

.bmf-footer__links {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	white-space: nowrap;
	justify-self: end;
	width: max-content;
	max-width: 100%;
	min-width: 0;
}

.bmf-footer__links a {
	color: #767676;
	font-weight: 200;
	text-decoration: none;
	display: block;
	margin: 0;
	line-height: 1.35;
}

.bmf-footer__logo-col a,
.bmf-footer__contact-col a {
	color: inherit;
	text-decoration: none;
}

.bmf-footer a:hover,
.bmf-footer a:focus {
	text-decoration: underline;
}

.bmf-footer__links a:hover,
.bmf-footer__links a:focus {
	color: #767676;
	text-decoration: underline;
}

@media (max-width: 1023px) {
	#footer-widgets .bmf-footer,
	.bmf-footer {
		grid-template-columns: auto auto repeat(3, max-content);
		justify-content: start;
	}

	.bmf-footer__links {
		grid-column: 1 / -1;
		justify-self: stretch;
		width: auto;
		max-width: none;
		align-items: flex-start;
		text-align: left;
		white-space: normal;
	}
}

@media (max-width: 767px) {
	#footer-widgets .footer-widgets-inner.container,
	#footer-widgets .container.footer-widgets-inner,
	#footer .footer-widgets-inner.container {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	#footer-widgets .bmf-footer,
	.bmf-footer {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 30px 0;
		text-align: left;
	}

	.bmf-footer__links {
		align-items: flex-start;
		text-align: left;
	}
}

/* === Footer multilingue : affiche la bonne version selon la langue active === */
/* Spécificité >= #footer-widgets .bmf-footer { display: grid } (sinon les deux blocs restent visibles). */

/* Par défaut (FR), on cache la version EN */
#footer-widgets .bmf-footer.bmf-footer--en,
.bmf-footer.bmf-footer--en {
	display: none;
}

/* Quand la langue du document est l'anglais, on inverse */
html[lang^="en"] #footer-widgets .bmf-footer.bmf-footer--fr,
html[lang^="en"] .bmf-footer.bmf-footer--fr {
	display: none;
}
html[lang^="en"] #footer-widgets .bmf-footer.bmf-footer--en,
html[lang^="en"] .bmf-footer.bmf-footer--en {
	display: grid;
}

/* === Petit logo LinkedIn devant le lien LinkedIn du footer (toutes les pages) ===
   Le HTML du footer provient d'un widget : on cible le lien par son href pour
   rester indépendant du balisage exact. */
#footer-widgets .bmf-footer a[href*="linkedin" i]::before,
.bmf-footer a[href*="linkedin" i]::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230A66C2'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.225 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
