/* Pied de page (inc/footer.php) : fond nuit, halo bleu et abeille (Figma), 4 colonnes, barre bleue. */
.mpe-footer { --mpe-f-nuit: #000034; --mpe-f-bleu: #1F53F3; color: #fff; letter-spacing: normal; }
.mpe-footer p { letter-spacing: normal; }
.mpe-footer__inner { position: relative; z-index: 1; max-width: 1226px; margin: 0 auto; padding: 0 20px; }

.mpe-footer__haut {
	position: relative; overflow: hidden; padding: 72px 0 64px;
	/* Figma « Navigation/Footer site » : fond nuit + halo bleu radial en haut à gauche (calque « Cercle »). */
	background-color: var(--mpe-f-nuit);
	background-image: radial-gradient(1366px 622px at -53px 57px, var(--mpe-f-bleu) 0%, rgba(31, 83, 243, 0) 100%);
	background-repeat: no-repeat;
}
/* Calque « degrade » : voile nuit qui s'assombrit vers le bas (passe aussi sur l'abeille). */
.mpe-footer__haut::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 52, 0) 0%, rgba(0, 0, 52, .55) 100%); pointer-events: none; }
/* Calque « Groupe » : abeille bleue à 30 %, inclinée de 12,38°. */
.mpe-footer__abeille {
	position: absolute; z-index: 0; right: -125px; top: 23px; width: 576px; height: 506px; transform: rotate(-12.38deg);
	background: var(--mpe-f-bleu); opacity: .3;
	-webkit-mask: url(../img/picto-abeille.svg) center / contain no-repeat; mask: url(../img/picto-abeille.svg) center / contain no-repeat;
	pointer-events: none;
}

.mpe-footer__logo { display: inline-block; margin-bottom: 40px; }
.mpe-footer__logo img { display: block; width: 230px; height: auto; }

.mpe-footer__colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mpe-footer__titre { margin: 0 0 12px !important; font-size: 15px; font-weight: 700; color: #fff; }
.mpe-footer__col ul { margin: 0; padding: 0; list-style: none; }
.mpe-footer__col li { margin: 0 0 6px; line-height: 1.4; }
.mpe-footer__col a { display: inline-block; }
.mpe-footer__col a { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .15s ease; }
.mpe-footer__col a:hover, .mpe-footer__col a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.mpe-footer__reseaux { display: flex; flex-wrap: wrap; gap: 10px; }
.mpe-footer__reseaux li { margin: 0; }
.mpe-footer .mpe-footer__reseaux a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mpe-f-bleu); color: #fff; transition: background-color .15s ease, transform .15s ease; }
.mpe-footer .mpe-footer__reseaux a:hover, .mpe-footer .mpe-footer__reseaux a:focus-visible { background: #fff; color: var(--mpe-f-bleu); text-decoration: none; transform: translateY(-2px); }
.mpe-footer__reseaux svg { width: 17px; height: 17px; }

.mpe-footer__barre { background: var(--mpe-f-bleu); }
/* Barre légale : deux lignes centrées (liens, puis copyright) ; une seule ligne à partir de 1240 px,
   copyright à gauche et liens à droite (liens 13 px : ~780 px + copyright ~390 px dans 1 186 px). */
.mpe-footer__barre .mpe-footer__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px 24px; min-height: 68px; padding-top: 20px; padding-bottom: 20px; text-align: center; }
.mpe-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1240px) {
	.mpe-footer__barre .mpe-footer__inner { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: baseline; text-align: left; } /* baseline : copyright et liens sur la même ligne de texte */
	.mpe-footer__barre .mpe-footer__copy { order: -1; white-space: nowrap; }
	.mpe-footer__legal { flex-wrap: nowrap; justify-content: flex-end; }
}
.mpe-footer__legal li { margin: 0; line-height: 1.65; }
.mpe-footer__barre a { color: #fff; font-size: 13px; text-decoration: none; }
.mpe-footer__barre a:hover, .mpe-footer__barre a:focus-visible { text-decoration: underline; color: #fff; }
.mpe-footer__copy { margin: 0 !important; font-size: 13px; color: rgba(255, 255, 255, .85); }
.mpe-footer__copy a { font-size: inherit; font-weight: 600; white-space: nowrap; } /* semi-gras : lien repérable dans la phrase sans la couleur (RGAA 10.6) */

/* Pré-footer : la grande photo laisse la place au pied de page texturé. */
.mpe-partenaires-bandeau figure.wp-block-image.alignfull:last-child { display: none; }

@media (max-width: 921px) {
	.mpe-footer__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
	.mpe-footer__abeille { width: 320px; height: 280px; right: -90px; top: 30%; }
}
@media (max-width: 544px) {
	.mpe-footer__haut { padding: 56px 0 48px; }
	.mpe-footer__reseaux { flex-wrap: nowrap; gap: 8px; }
	.mpe-footer .mpe-footer__reseaux a { width: 34px; height: 34px; }
	.mpe-footer__reseaux svg { width: 15px; height: 15px; }
}
