/* Pied de page — styles front */

.hsafo {
	max-width: 100%;
	padding: 48px 0;
}

.hsafo__inner,
.hsafo__cols,
.hsafo__col {
	max-width: 100%;
}

/* Une adresse e-mail ou une URL longue ne doit pas élargir la page. */
.hsafo__col,
.hsafo__col a {
	overflow-wrap: anywhere;
}

.hsafo__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 44px;
}

/* --- Marque -------------------------------------------------------------- */

.hsafo__brand {
	display: flex;
	/* Largeur explicite plutôt que flex-basis : en colonne, flex-basis
	   contrôlerait la hauteur et créerait un vide sous la marque. */
	flex: 0 1 auto;
	flex-direction: column;
	align-items: center;
	width: 300px;
	max-width: 100%;
	min-width: 0;
}

.hsafo__logo {
	display: block;
	line-height: 0;
}

.hsafo__logo img {
	width: 230px;
	max-width: 100%;
	height: auto;
}

.hsafo__tagline {
	margin: 8px 0 0;
	color: #333;
	font-size: 13px;
	text-align: center;
}

.hsafo__rule {
	display: block;
	width: 100%;
	height: 1px;
	margin: 18px 0;
	background-color: rgba(0, 0, 0, 0.35);
}

.hsafo__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsafo__social li {
	margin: 0;
}

.hsafo__social a {
	--hsafo-social: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hsafo-social);
	height: var(--hsafo-social);
	border-radius: 50%;
	background-color: #111;
	transition: background-color 180ms ease;
}

.hsafo__social svg {
	width: 52%;
	height: 52%;
	fill: #fff;
}

.hsafo__social a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* --- Colonnes ------------------------------------------------------------ */

.hsafo__cols {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 40px;
}

.hsafo__col {
	min-width: 0;
	color: #111;
	font-size: 15px;
	line-height: 1.7;
}

.hsafo__col-title {
	margin: 0 0 10px;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hsafo__col p {
	margin: 0 0 4px;
}

.hsafo__col a {
	color: inherit;
	transition: color 180ms ease;
}

.hsafo__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsafo__list li {
	margin: 0;
}

.hsafo__list a {
	text-decoration: none;
}

.hsafo__list a:hover,
.hsafo__list a:focus-visible {
	text-decoration: underline;
}

/* --- Boutons -------------------------------------------------------------- */

.hsafo__actions {
	flex: 0 0 auto;
}

/* Les boutons du pied de page s'empilent, contrairement à ceux de l'en-tête. */
.hsaab--stacked .hsaab__group {
	flex-direction: column;
	align-items: stretch;
}

.hsafo .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --- Tablettes et mobiles : tout est centré et empilé --------------------- */

@media (max-width: 1024px) {
	.hsafo__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hsafo__brand {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.hsafo__rule {
		max-width: 260px;
	}

	.hsafo__cols {
		flex: 0 0 auto;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.hsafo__actions {
		width: 100%;
		max-width: 260px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsafo__social a,
	.hsafo__col a {
		transition: none;
	}
}
