/* ==========================================================================
   Footer Préfal - intégration de la maquette Figma "footer"
   Template : sidebar-footer.php
   ========================================================================== */

:root {
	--prefal-footer-bg: #545454;        /* colors/neutral/500 */
	--prefal-footer-line: #757575;      /* Neutral/400 (maquette footer) */
	--prefal-footer-text: #ffffff;
	--prefal-footer-font: "Nunito Sans", Helvetica, Arial, sans-serif;
	--prefal-footer-width: 1360px;
	--prefal-footer-gutter: 50px;
}

#footer.prefal-footer,
#footer.prefal-footer.solid-bg {
	background: var(--prefal-footer-bg) !important;
	padding: 0;
	font-family: var(--prefal-footer-font);
	font-size: 14px;
	line-height: 16px;
	color: var(--prefal-footer-text);
}

.prefal-footer__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--prefal-footer-width) + 2 * var(--prefal-footer-gutter));
	margin: 0 auto;
	padding: 30px var(--prefal-footer-gutter) 18px;
}

.prefal-footer a,
.prefal-footer a:visited {
	color: var(--prefal-footer-text);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.prefal-footer a:hover,
.prefal-footer a:focus-visible {
	color: var(--prefal-footer-text);
	opacity: 0.75;
}

.prefal-footer p {
	margin: 0;
}

.prefal-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.prefal-footer li {
	margin: 0;
	padding: 0;
	border: 0;
}

/* --- Ligne 1 : logo, texte d'intro, réseaux sociaux ---------------------- */
.prefal-footer__line1 {
	display: flex;
	align-items: flex-start;
	gap: 42px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--prefal-footer-line);
}

/* Logo 150 x 92 : image (ratio 192x130) recadrée verticalement comme la maquette */
.prefal-footer__logo {
	flex: 0 0 150px;
	display: block;
	width: 150px;
	height: 92px;
	overflow: hidden;
}

.prefal-footer__logo img {
	display: block;
	width: 150px;
	height: auto;
	max-width: none;
	margin-top: calc(92px * -0.102);
}

.prefal-footer__intro {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	line-height: 16px;
}

.prefal-footer__intro h3 {
	margin: 0 0 8px;
	font-family: var(--prefal-footer-font);
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--prefal-footer-text);
}

.prefal-footer__intro .prefal-footer-text {
	margin: 0;
	font-size: 14px;
	line-height: 16px;
	color: var(--prefal-footer-text);
}

/* Icônes issues du sprite Figma 149 x 24 : largeurs réelles (13 / 24 / 24 / 28), gap 20 */
.prefal-footer__social {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
}

.prefal-footer__social a {
	display: block;
	height: 24px;
}

.prefal-footer__social img {
	display: block;
	width: auto;
	height: 24px;
}

/* --- Colonnes de liens --------------------------------------------------- */
.prefal-footer__columns {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px 32px;
	padding: 24px 0 26px;
	border-bottom: 1px solid var(--prefal-footer-line);
}

.prefal-footer__column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.prefal-footer__title {
	margin: 0;
	font-family: var(--prefal-footer-font);
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--prefal-footer-text);
}

.prefal-footer__column ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prefal-footer__column li a {
	display: block;
	font-size: 14px;
	line-height: 16px;
}

/* Colonne contact */
.prefal-footer__contact-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
}

.prefal-footer__contact-row img {
	display: block;
	flex: 0 0 auto;
}

.prefal-footer__contact-row--phone {
	align-items: center;
}

.prefal-footer__contact-row--phone img {
	width: 14px;
	height: 14px;
}

.prefal-footer__contact-row--address img {
	width: 16px;
	height: 20px;
}

.prefal-footer__address {
	font-style: normal;
}

/* --- Ligne basse : copyright, menu légal, crédits ------------------------ */
.prefal-footer__bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 20px;
	font-size: 14px;
	line-height: 16px;
}

.prefal-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
}

.prefal-footer__legal li + li::before,
.prefal-footer__legal .prefal-footer__copyright + li::before {
	content: "-";
	padding: 0 4px;
}

.prefal-footer__legal .menu-item-text,
.prefal-footer__legal .menu-text {
	font: inherit;
	color: inherit;
}

.prefal-footer__credits {
	flex: 0 0 auto;
	text-align: right;
	white-space: nowrap;
}

/* --- Responsive ---------------------------------------------------------- */
@media screen and (max-width: 1200px) {
	.prefal-footer__columns {
		justify-content: flex-start;
		gap: 32px 48px;
	}

	.prefal-footer__column {
		flex: 0 0 calc(33.333% - 32px);
	}
}

@media screen and (max-width: 992px) {
	:root {
		--prefal-footer-gutter: 30px;
	}

	.prefal-footer__line1 {
		flex-wrap: wrap;
		gap: 24px;
	}

	.prefal-footer__intro {
		flex-basis: 100%;
		order: 3;
	}

	.prefal-footer__social {
		margin-left: auto;
		align-self: center;
	}
}

@media screen and (max-width: 768px) {
	:root {
		--prefal-footer-gutter: 20px;
	}

	.prefal-footer__column {
		flex: 0 0 calc(50% - 24px);
	}

	.prefal-footer__bottom {
		flex-direction: column;
	}

	.prefal-footer__credits {
		text-align: left;
	}
}

@media screen and (max-width: 480px) {
	.prefal-footer__column {
		flex: 0 0 100%;
	}

	.prefal-footer__legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.prefal-footer__legal li + li::before,
	.prefal-footer__legal .prefal-footer__copyright + li::before {
		content: none;
	}
}
