/*
 * Homepage finishing layer for template-fullwidth.php.
 *
 * Temporary bridge until Salient's global container/boxed settings are migrated.
 * Background rows remain full bleed; only their CONTENT is inset on the same
 * horizontal axis as the dedicated header.
 *
 * Desktop rhythm follows the supplied HTML mockup:
 * - Intro: py-36 = 144px
 * - Expertises: py-32 = 128px, with Missions separated by 64px
 * - Realisations: py-36 = 144px, portfolio grid 64px below heading
 * - CTA: 78vh desktop / 60vh mobile
 */

body.bd-fullwidth {
	--bd-home-muted: #746d67;
	--bd-home-soft: #f4f1ec;
	--bd-home-rule: rgba(26, 22, 19, .13);
	--bd-home-gutter: clamp(24px, 6vw, 96px);
}

/*
 * Horizontal alignment.
 * Apply the gutter to the OUTER full-width rows. This is reliable with Salient's
 * nested #fws_* row markup and does not alter the native Portfolio row width.
 */
body.bd-fullwidth .bd-home-intro,
body.bd-fullwidth .bd-home-services,
body.bd-fullwidth .bd-home-work,
body.bd-fullwidth .bd-project-cta {
	box-sizing: border-box !important;
	padding-left: var(--bd-home-gutter) !important;
	padding-right: var(--bd-home-gutter) !important;
}

/* Introduction: exact vertical breathing room from the mockup. */
body.bd-fullwidth .bd-home-intro {
	padding-top: 144px !important;
	padding-bottom: 144px !important;
}

body.bd-fullwidth .bd-home-intro :is(h1, h2, h3) {
	margin: 0;
	color: var(--bd-ink);
	/*font-family: var(--bd-serif);*/
	font-family: Raleway;
	font-size: 3.6rem;
	font-weight: 300;
	line-height: 1.06;
	letter-spacing: -.025em;
}

body.bd-fullwidth .bd-home-intro .wpb_text_column p {
	color: var(--bd-home-muted);
	font-family: var(--bd-sans);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7;
}

body.bd-fullwidth .bd-home-intro .wpb_text_column a {
	color: var(--bd-ink);
	font-family: var(--bd-sans);
	font-size: .7rem;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-underline-offset: 5px;
}

/* Places section: same page rhythm, with a single responsive spacing variable. */
body.bd-fullwidth .bd-home-places {
	--bd-home-places-spacing: 9rem;
	padding-top: var(--bd-home-places-spacing) !important;
	padding-bottom: var(--bd-home-places-spacing) !important;
}
body.bd-fullwidth .bd-home-places p{
	margin-bottom: 0;
    color: var(--bd-home-muted);
	font-family: var(--bd-sans);
	font-size: inherit;
	font-weight: 300;
	line-height: 1.65;
	text-align: justify;
}

/* Expertises. The Missions row is a separate WPBakery row on this page. */
body.bd-fullwidth .bd-home-services {
	padding-top: 128px !important;
	padding-bottom: 0 !important;
	border-top: 1px solid var(--bd-home-rule);
	border-bottom: 0;
}

body.bd-fullwidth .bd-home-services .wpb_column {
	border-top: 1px solid var(--bd-home-rule);
	padding-top: 17px;
}

body.bd-fullwidth .bd-home-services :is(h2, h3, h4) {
	margin: 6px 0 10px;
	color: var(--bd-ink);
	/*font-family: var(--bd-serif);*/
	font-family: Raleway;
	font-size: 3rem;
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -.015em;
}

body.bd-fullwidth .bd-home-services .wpb_text_column p {
	margin-bottom: 0;
	color: var(--bd-home-muted);
	font-family: var(--bd-sans);
	font-size: inherit;
	font-weight: 300;
	line-height: 1.65;
}

body.bd-fullwidth .bd-home-services a {
	font-family: var(--bd-sans);
	font-size: .7rem;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
}

/* Standalone Missions row: same full-width band, same horizontal axis. */
body.bd-fullwidth .bd-home-services + .wpb_row {
	box-sizing: border-box !important;
	padding: 64px var(--bd-home-gutter) 128px !important;
	background: var(--bd-home-soft);
	border-bottom: 1px solid var(--bd-home-rule);
}

body.bd-fullwidth .bd-home-services + .wpb_row a {
	font-family: var(--bd-sans);
	font-size: .7rem;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
}

/* Realisations heading row. */
body.bd-fullwidth .bd-home-work {
	padding-top: 144px !important;
	padding-bottom: 0 !important;
}

body.bd-fullwidth .bd-home-work :is(h1, h2, h3):not(.title) {
	margin: 0;
	color: var(--bd-ink);
	/*font-family: var(--bd-serif);*/
	font-family: Raleway;
	font-size: 3rem;
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -.02em;
}

body.bd-fullwidth .bd-home-work a {
	font-family: var(--bd-sans);
}

/* Keep the right-hand link on the same container edge when WPBakery uses 3 columns. */
body.bd-fullwidth .bd-home-work .row_col_wrap_12 > .wpb_column:last-child,
body.bd-fullwidth .bd-home-work .row_col_wrap_12_inner > .wpb_column:last-child {
	text-align: right;
}

/*
 * Portfolio row is deliberately NOT given horizontal margins/padding here.
 * Its native Salient geometry was correct before V8. Only restore the mockup's
 * vertical rhythm around the grid.
 */
body.bd-fullwidth .bd-home-work + .wpb_row {
	box-sizing: border-box !important;
	padding-top: 64px !important;
	padding-bottom: 144px !important;
}

body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-meta {
	width: 100%;
	padding-top: 12px;
}

body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-meta h4.title {
	margin: 0;
	color: var(--bd-home-muted);
	font-family: var(--bd-sans);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -.01em;
}

/* Final project CTA: background remains full bleed; content is inset by the row gutter. */
body.bd-fullwidth .bd-project-cta .row_col_wrap_12,
body.bd-fullwidth .bd-project-cta .row_col_wrap_12_inner {
	display: flex;
	min-height: 78vh;
	align-items: center;
}

body.bd-fullwidth .bd-project-cta .row_col_wrap_12 > .wpb_column,
body.bd-fullwidth .bd-project-cta .row_col_wrap_12_inner > .wpb_column {
	width: 100%;
}

body.bd-fullwidth .bd-project-cta :is(h1, h2, h3) {
	max-width: 576px;
	margin: 24px 0 40px;
	color: #fff;
	/*font-family: var(--bd-serif);*/
	font-family: Raleway;
	font-size: 3rem;
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -.025em;
}

3body.bd-fullwidth .bd-project-cta .wpb_text_column p {
	color: rgba(255, 255, 255, .88);
}

body.bd-fullwidth .bd-project-cta a {
	display: inline-block;
	padding: 0 0 5px;
	border-bottom: 1px solid rgba(255, 255, 255, .58);
	color: #fff;
	font-family: var(--bd-sans);
	font-size: .7rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .24em;
	text-decoration: none;
	text-transform: uppercase;
}

body.bd-fullwidth .bd-project-cta a:hover,
body.bd-fullwidth .bd-project-cta a:focus-visible {
	border-bottom-color: #fff;
}

@media (max-width: 999px) {
	body.bd-fullwidth .bd-home-places {
		--bd-home-places-spacing: 6rem;
	}

	body.bd-fullwidth .bd-home-intro {
		padding-top: 96px !important;
		padding-bottom: 96px !important;
	}

	body.bd-fullwidth .bd-home-services {
		padding-top: 96px !important;
	}

	body.bd-fullwidth .bd-home-services + .wpb_row {
		padding-top: 48px !important;
		padding-bottom: 96px !important;
	}

	body.bd-fullwidth .bd-home-work {
		padding-top: 96px !important;
	}

	body.bd-fullwidth .bd-home-work + .wpb_row {
		padding-top: 48px !important;
		padding-bottom: 96px !important;
	}

	body.bd-fullwidth .bd-project-cta .row_col_wrap_12,
	body.bd-fullwidth .bd-project-cta .row_col_wrap_12_inner {
		min-height: 60vh;
	}
}

@media (max-width: 767px) {
	body.bd-fullwidth {
		--bd-home-gutter: 24px;
	}

	body.bd-fullwidth .bd-home-intro :is(h1, h2, h3) {
		font-size: 2.4rem;
	}

	body.bd-fullwidth .bd-home-intro .wpb_text_column p {
		font-size: 16px;
	}

	body.bd-fullwidth .bd-home-services .wpb_column + .wpb_column {
		margin-top: 30px;
	}

	body.bd-fullwidth .bd-home-services :is(h1, h2, h3):not(.title),
	body.bd-fullwidth .bd-home-work :is(h1, h2, h3):not(.title) {
		font-size: 2rem;
	}

	body.bd-fullwidth .bd-home-work .row_col_wrap_12 > .wpb_column:last-child,
	body.bd-fullwidth .bd-home-work .row_col_wrap_12_inner > .wpb_column:last-child {
		text-align: left;
	}

	body.bd-fullwidth .bd-project-cta :is(h1, h2, h3) {
		font-size: 1.9rem;
	}
}

/* ===== Homepage action links: unified style + hover underline =====
 * Reference: "VOIR TOUS LES PROJETS".
 * Neutralises Salient/WPBakery native underline effects and replaces them with
 * a single background rule animated from left to right.
 */
body.bd-fullwidth .bd-home-intro a,
body.bd-fullwidth .bd-home-places a,
body.bd-fullwidth .bd-home-services + .wpb_row a,
body.bd-fullwidth .bd-home-work a,
body.bd-fullwidth .bd-project-cta a {
	position: relative;
	display: inline-block;
	padding: 0 0 5px !important;
	border: 0 !important;
	box-shadow: none !important;
	font-family: var(--bd-sans) !important;
	font-size: .7rem !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: .24em !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	background-color: transparent !important;
	background-image: linear-gradient(currentColor, currentColor) !important;
	background-repeat: no-repeat !important;
	background-position: 0 100% !important;
	background-size: 0 1px !important;
	transition: background-size .38s cubic-bezier(.22, 1, .36, 1) !important;
}
body.bd-fullwidth .bd-home-intro a{
	display: block !important;
}

body.bd-fullwidth .bd-home-intro a,
body.bd-fullwidth .bd-home-places a,
body.bd-fullwidth .bd-home-services + .wpb_row a,
body.bd-fullwidth .bd-home-work a {
	color: var(--bd-ink) !important;
}

body.bd-fullwidth .bd-project-cta a {
	color: #fff !important;
}

/* Make inner Salient/WPBakery spans inherit the reference typography. */
body.bd-fullwidth .bd-home-intro a span,
body.bd-fullwidth .bd-home-places a span,
body.bd-fullwidth .bd-home-services + .wpb_row a span,
body.bd-fullwidth .bd-home-work a span,
body.bd-fullwidth .bd-project-cta a span {
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

/* Kill every native Salient underline/pseudo-element in these four zones. */
body.bd-fullwidth .bd-home-intro a::before,
body.bd-fullwidth .bd-home-intro a::after,
body.bd-fullwidth .bd-home-intro a span::before,
body.bd-fullwidth .bd-home-intro a span::after,
body.bd-fullwidth .bd-home-places a::before,
body.bd-fullwidth .bd-home-places a::after,
body.bd-fullwidth .bd-home-places a span::before,
body.bd-fullwidth .bd-home-places a span::after,
body.bd-fullwidth .bd-home-services + .wpb_row a::before,
body.bd-fullwidth .bd-home-services + .wpb_row a::after,
body.bd-fullwidth .bd-home-services + .wpb_row a span::before,
body.bd-fullwidth .bd-home-services + .wpb_row a span::after,
body.bd-fullwidth .bd-home-work a::before,
body.bd-fullwidth .bd-home-work a::after,
body.bd-fullwidth .bd-home-work a span::before,
body.bd-fullwidth .bd-home-work a span::after,
body.bd-fullwidth .bd-project-cta a::before,
body.bd-fullwidth .bd-project-cta a::after,
body.bd-fullwidth .bd-project-cta a span::before,
body.bd-fullwidth .bd-project-cta a span::after {
	content: none !important;
	display: none !important;
}

/*body.bd-fullwidth .bd-home-intro a:hover,
body.bd-fullwidth .bd-home-intro a:focus-visible,*/
body.bd-fullwidth .bd-home-places a:hover,
body.bd-fullwidth .bd-home-places a:focus-visible,
body.bd-fullwidth .bd-home-services + .wpb_row a:hover,
body.bd-fullwidth .bd-home-services + .wpb_row a:focus-visible,
body.bd-fullwidth .bd-home-work a:hover,
body.bd-fullwidth .bd-home-work a:focus-visible,
body.bd-fullwidth .bd-project-cta a:hover,
body.bd-fullwidth .bd-project-cta a:focus-visible {
	background-size: 100% 1px !important;
}


/* V9 patch P1 — portfolio interaction only: thumb zoom, direct project link.
 * Applied only when the JS has identified a real project permalink.
 * Do not change the portfolio grid, image dimensions or caption layout.
 */
body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready {
    position: relative;
    overflow: hidden;
}

body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready img {
    transform: scale(1) !important;
    transform-origin: center center;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
    body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready:hover img {
        transform: scale(1.035) !important;
    }
}

/* Hide Salient's colored hover overlay, lightbox and details controls only
 * on cards for which our direct project link was successfully installed. */
body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready .work-info,
body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready .work-info-bg {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready > a.bd-home-portfolio-link {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    cursor: pointer;
}

body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready > a.bd-home-portfolio-link:focus-visible {
    outline: 2px solid #14100d !important;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready img {
        transition: none !important;
    }
    body.bd-fullwidth .bd-home-work + .wpb_row .portfolio-items .work-item.bd-home-portfolio-ready:hover img {
        transform: none !important;
    }
}
