/**
 * Styles des compositions Header/Footer du site Un caillou dans la chaussure.
 * Tous les sélecteurs sont limités aux classes .ucdlc-hf.
 */

.ucdlc-hf {
	--ucdlc-hf-magenta: #9d487f;
	--ucdlc-hf-magenta-dark: #78325f;
	--ucdlc-hf-green: #879d6a;
	--ucdlc-hf-green-light: #b9c9a3;
	--ucdlc-hf-footer: #34402d;
	--ucdlc-hf-paper: #fcfbf8;
	--ucdlc-hf-white: #fff;
	--ucdlc-hf-ink: #353735;
	--ucdlc-hf-line: #e7e4de;

	box-sizing: border-box;
	margin-block: 0 !important;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ucdlc-hf,
.ucdlc-hf * {
	box-sizing: border-box;
}

.ucdlc-hf :where(p, h2, h3, ul) {
	margin-block: 0;
}

.ucdlc-hf a {
	color: inherit;
}

.ucdlc-hf .ucdlc-hf-logo {
	flex: 0 0 auto;
	margin: 0 !important;
}

.ucdlc-hf .ucdlc-hf-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ucdlc-hf a:focus-visible,
.ucdlc-hf button:focus-visible {
	outline: 3px solid var(--ucdlc-hf-magenta);
	outline-offset: 4px;
}

.ucdlc-hf-container {
	width: min(1180px, calc(100% - 48px)) !important;
	max-width: none !important;
	margin-inline: auto !important;
}

/* Header */
.ucdlc-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	color: var(--ucdlc-hf-ink);
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--ucdlc-hf-line);
	box-shadow: 0 8px 28px rgba(41, 47, 39, 0.04);
}

body.admin-bar .ucdlc-site-header {
	top: 32px;
}

.ucdlc-site-header .ucdlc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	min-height: 78px;
	padding: 0 !important;
	gap: 30px;
}

.ucdlc-site-header .ucdlc-header-brand-lockup {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 10px;
}

.ucdlc-site-header .ucdlc-hf-logo--header {
	width: 44px;
	height: 44px;
}

.ucdlc-site-header .ucdlc-hf-brand {
	flex: 0 1 auto;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.025em;
	white-space: nowrap;
}

.ucdlc-site-header .ucdlc-hf-brand a {
	text-decoration: none;
}

.ucdlc-site-header .ucdlc-hf-brand strong {
	color: var(--ucdlc-hf-green);
	font-weight: 750;
}

.ucdlc-site-header .ucdlc-hf-nav {
	font-size: 14px;
	font-weight: 550;
}

.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__container {
	gap: 18px;
}

.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation-item__content {
	padding-block: 27px 25px;
	border-bottom: 2px solid transparent;
	text-decoration: none;
}

.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation-item:not(.ucdlc-hf-nav-cta) > .wp-block-navigation-item__content:hover,
.ucdlc-site-header .ucdlc-hf-nav .current-menu-item:not(.ucdlc-hf-nav-cta) > .wp-block-navigation-item__content {
	color: var(--ucdlc-hf-magenta-dark);
	border-color: var(--ucdlc-hf-magenta);
}

.ucdlc-site-header .ucdlc-hf-nav .ucdlc-hf-nav-cta > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	color: var(--ucdlc-hf-white);
	background: var(--ucdlc-hf-magenta);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(120, 50, 95, 0.16);
	font-weight: 700;
}

.ucdlc-site-header .ucdlc-hf-nav .ucdlc-hf-nav-cta > .wp-block-navigation-item__content:hover {
	background: var(--ucdlc-hf-magenta-dark);
	transform: translateY(-1px);
}

.ucdlc-site-header .wp-block-navigation__responsive-container-open,
.ucdlc-site-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 10px;
	color: var(--ucdlc-hf-ink);
	background: var(--ucdlc-hf-white);
	border: 1px solid var(--ucdlc-hf-line);
	border-radius: 10px;
}

.ucdlc-site-header .wp-block-navigation__responsive-container-open svg,
.ucdlc-site-header .wp-block-navigation__responsive-container-close svg {
	width: 24px;
	height: 24px;
}

/* Footer */
.ucdlc-site-footer {
	color: #f8f5ef;
	background: var(--ucdlc-hf-footer);
}

.ucdlc-site-footer .ucdlc-footer-inner {
	padding-block: 70px 26px;
}

.ucdlc-site-footer .ucdlc-footer-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.75fr 1fr;
	gap: 72px;
	margin: 0;
}

.ucdlc-site-footer .wp-block-column {
	min-width: 0;
}

.ucdlc-site-footer .ucdlc-footer-brand-lockup {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 16px;
	margin-bottom: 18px;
}

.ucdlc-site-footer .ucdlc-hf-logo--footer {
	width: 66px;
	height: 66px;
}

.ucdlc-site-footer .ucdlc-footer-brand {
	margin-bottom: 0;
	font-size: clamp(24px, 2.2vw, 34px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.ucdlc-site-footer .ucdlc-footer-brand a {
	text-decoration: none;
}

.ucdlc-site-footer .ucdlc-footer-brand strong {
	color: var(--ucdlc-hf-green-light);
	font-weight: 750;
}

.ucdlc-site-footer .ucdlc-footer-intro {
	max-width: 350px;
	color: rgba(248, 245, 239, 0.74);
	font-size: 16px;
	line-height: 1.65;
}

.ucdlc-site-footer .ucdlc-footer-label {
	margin: 4px 0 22px;
	color: var(--ucdlc-hf-green-light);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ucdlc-site-footer .ucdlc-hf-footer-nav .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	gap: 10px;
}

.ucdlc-site-footer .ucdlc-hf-footer-nav .wp-block-navigation-item__content {
	padding: 0;
	color: rgba(248, 245, 239, 0.86);
	font-size: 16px;
	line-height: 1.45;
	text-decoration: none;
}

.ucdlc-site-footer .ucdlc-hf-footer-nav .wp-block-navigation-item__content:hover,
.ucdlc-site-footer .ucdlc-footer-contact a:not(.wp-block-button__link):hover,
.ucdlc-site-footer .ucdlc-footer-bottom a:hover {
	color: var(--ucdlc-hf-white);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ucdlc-site-footer .ucdlc-footer-contact {
	display: grid;
	gap: 10px;
	color: rgba(248, 245, 239, 0.86);
	font-size: 16px;
	line-height: 1.45;
}

.ucdlc-site-footer .ucdlc-footer-contact a:not(.wp-block-button__link) {
	overflow-wrap: anywhere;
	text-decoration: none;
}

.ucdlc-site-footer .ucdlc-footer-actions {
	margin-top: 12px;
}

.ucdlc-site-footer .ucdlc-footer-cta .wp-block-button__link {
	min-height: 46px;
	padding: 11px 18px;
	color: var(--ucdlc-hf-white);
	background: var(--ucdlc-hf-magenta);
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(26, 18, 23, 0.2);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.ucdlc-site-footer .ucdlc-footer-cta .wp-block-button__link:hover {
	background: var(--ucdlc-hf-magenta-dark);
	transform: translateY(-1px);
}

.ucdlc-site-footer .ucdlc-hf-socials {
	gap: 10px;
	margin-top: 22px;
}

.ucdlc-site-footer .ucdlc-hf-socials .wp-social-link {
	color: #f8f5ef !important;
	background: transparent !important;
	border: 1px solid rgba(248, 245, 239, 0.28);
	border-radius: 50%;
}

.ucdlc-site-footer .ucdlc-hf-socials .wp-social-link a {
	width: 44px;
	height: 44px;
	padding: 11px;
}

.ucdlc-site-footer .ucdlc-hf-socials .wp-social-link:hover {
	background: rgba(248, 245, 239, 0.09) !important;
	transform: translateY(-2px);
}

.ucdlc-site-footer .ucdlc-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px 24px;
	margin-top: 54px;
	padding-top: 22px;
	border-top: 1px solid rgba(248, 245, 239, 0.16);
	color: rgba(248, 245, 239, 0.64);
	font-size: 13px;
	line-height: 1.5;
}

.ucdlc-site-footer .ucdlc-footer-legal {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px 24px;
}

.ucdlc-site-footer .ucdlc-footer-bottom a {
	text-decoration: none;
}

/* The sticky behavior is disabled inside the editor to keep blocks easy to select. */
.editor-styles-wrapper .ucdlc-site-header,
body.block-editor-iframe__body .ucdlc-site-header {
	position: relative;
	top: auto;
}

@media (max-width: 1100px) {
	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container.is-menu-open {
		display: flex;
		position: fixed;
		inset: 0;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		height: 100dvh;
		padding: 24px;
		overflow-y: auto;
		color: var(--ucdlc-hf-ink);
		background: var(--ucdlc-hf-white);
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		width: 100%;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
		position: absolute;
		top: 24px;
		right: 24px;
		z-index: 2;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 64px;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__responsive-container-content,
	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__container {
		align-items: stretch;
		width: 100%;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation-item {
		width: 100%;
		border-bottom: 1px solid var(--ucdlc-hf-line);
	}

	.ucdlc-site-header .ucdlc-hf-nav .wp-block-navigation-item__content {
		width: 100%;
		padding-block: 15px;
		border-bottom: 0;
		font-size: 20px;
	}

	.ucdlc-site-header .ucdlc-hf-nav .ucdlc-hf-nav-cta {
		margin-top: 22px;
		border-bottom: 0;
	}

	.ucdlc-site-header .ucdlc-hf-nav .ucdlc-hf-nav-cta > .wp-block-navigation-item__content {
		min-height: 50px;
		padding: 12px 18px;
		font-size: 16px;
	}

	.ucdlc-site-footer .ucdlc-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 54px 72px;
	}

	.ucdlc-site-footer .ucdlc-footer-brand-column {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	body.admin-bar .ucdlc-site-header {
		top: 46px;
	}

	.ucdlc-hf-container {
		width: min(1180px, calc(100% - 32px)) !important;
	}

	.ucdlc-site-header .ucdlc-header-inner {
		min-height: 68px;
		gap: 12px;
	}

	.ucdlc-site-header .ucdlc-header-brand-lockup {
		gap: 7px;
	}

	.ucdlc-site-header .ucdlc-hf-logo--header {
		width: 36px;
		height: 36px;
	}

	.ucdlc-site-header .ucdlc-hf-brand {
		font-size: 14px;
	}

	.ucdlc-site-footer .ucdlc-footer-inner {
		padding-block: 52px 24px;
	}

	.ucdlc-site-footer .ucdlc-footer-grid {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.ucdlc-site-footer .ucdlc-footer-brand-column {
		grid-column: auto;
	}

	.ucdlc-site-footer .ucdlc-hf-logo--footer {
		width: 58px;
		height: 58px;
	}

	.ucdlc-site-footer .ucdlc-footer-actions,
	.ucdlc-site-footer .ucdlc-footer-actions .wp-block-button,
	.ucdlc-site-footer .ucdlc-footer-cta .wp-block-button__link {
		width: 100%;
	}

	.ucdlc-site-footer .ucdlc-footer-cta .wp-block-button__link {
		text-align: center;
	}

	.ucdlc-site-footer .ucdlc-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		margin-top: 42px;
	}

	.ucdlc-site-footer .ucdlc-footer-legal {
		align-items: flex-start;
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ucdlc-hf *,
	.ucdlc-hf *::before,
	.ucdlc-hf *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
