/* Styles du footer (parts/footer.html) — version mobile de la maquette.
   Le desktop est entièrement géré par les réglages des blocs : rien ici
   au-delà du palier hide-on-mobile (style.css). Les paddings des deux bandes
   sont posés en style inline par l'éditeur, d'où les !important. */
@media (width <= 768px) {
	.footer-top,
	.footer-main {
		font-size: 0.9375rem;
	}

	/* Bande du haut : logos côte à côte, puis "Suivez-nous" centré
	   au-dessus des icônes */
	.footer-top {
		padding-top: 2.1875rem !important;
		padding-bottom: 2.125rem !important;
	}

	.footer-top > .alignwide {
		flex-direction: column;
		align-items: stretch;
		gap: 2rem;
	}

	.footer-logos {
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 1.375rem;
	}

	.footer-logos > .wp-block-image {
		flex: 0 1 150px;
		min-width: 0;
		margin: 0 !important;
	}

	.footer-logos > .wp-block-image + .wp-block-image {
		margin-top: 2px !important;
	}

	.footer-logos img {
		width: 100%;
		height: auto;
	}

	.footer-social {
		flex-direction: column;
		gap: 0.75rem;
	}

	/* Bande principale */
	.footer-main {
		padding-top: 2.125rem !important;
		padding-bottom: 2.1875rem !important;
	}

	.footer-main .wp-block-columns {
		row-gap: 1rem;
	}

	/* Coordonnées : les textes ont déjà un padding-top (alignement sur
	   l'icône), l'écart entre lignes est réduit d'autant */
	.footer-main .wp-block-column:first-child > * + * {
		margin-block-start: 0.4375rem;
	}

	/* Coordonnées → "Nos formations" */
	.footer-main .wp-block-column:first-child {
		margin-bottom: 1.625rem;
	}

	/* Titre de rubrique → liste de liens */
	.footer-main .wp-block-column:not(:first-child) .wp-block-group > * + * {
		margin-block-start: 0.375rem;
	}

	/* Rubriques sans liste (Carrière, Entreprises, Actualités, Contact) */
	.footer-main .wp-block-column:not(:first-child) > * + *,
	.footer-main .wp-block-column:last-child .wp-block-group > * + * {
		margin-block-start: 1rem;
	}

	.footer-main .wp-block-buttons {
		margin-top: 2.75rem !important;
	}

	/* Bouton "Candidater" : 60px de haut (bordure 3px comprise) */
	.footer-main .wp-block-button__link {
		padding-top: 0.9375rem;
		padding-bottom: 0.9375rem;
		font-size: 0.9375rem;
		line-height: 1.5rem;
	}

	.footer-main > .alignwide > * + * {
		margin-block-start: 2.625rem;
	}

	/* Copyright : la classe de taille de police du preset est en !important */
	.footer-main .has-s-font-size {
		font-size: 0.8125rem !important;
		line-height: 1.5rem;
	}
}
