/* ===== Tokens (valeurs approchées d'après la maquette) ===== */
body.bd-fullwidth {
	--bd-cream: #f9f7f3;
	--bd-sand:  #f4f1ec;
	--bd-ink:   #1a1613;
	--bd-dark:  #14100d;
	--bd-line:  rgba(26, 22, 19, .12);
	--bd-serif: "Cormorant Garamond", Georgia, serif;
	--bd-sans:  "Jost", system-ui, sans-serif;
	background: var(--bd-cream);
}

/* ===== 1. Neutralise le boxed (spécificité > règles Salient) ===== */
html body.bd-fullwidth #boxed,
html body.bd-fullwidth #boxed #ajax-content-wrap,
html body.bd-fullwidth #boxed #footer-outer {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	left: 0 !important;
	box-shadow: none !important;
}

/* ===== 2. Contenu pleine largeur ===== */
body.bd-fullwidth .container-wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	background: transparent;
}

/* ===== 3. Header Salient masqué sur ce modèle ===== */
html body.bd-fullwidth #header-outer,
html body.bd-fullwidth #header-space,
html body.bd-fullwidth #search-outer,
html body.bd-fullwidth #slide-out-widget-area-bg,
html body.bd-fullwidth #slide-out-widget-area {
	display: none !important;
}

/* ===== 4. Header dédié ===== */
.bd-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30px clamp(24px, 6vw, 96px);
	color: #fff;
	transition: background .4s ease, color .4s ease, padding .4s ease, box-shadow .4s ease;
}
/* Admin-bar offset is calculated in header.js so it also works below 600px,
 * where WordPress stops fixing the admin bar. */

.bd-header__logo {
	color: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s ease;
}
.bd-header__logo img {
	display: block;
	height: 44px;
	width: auto;
}

.bd-header .bd-menu {
	display: flex;
	gap: clamp(20px, 3vw, 44px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bd-header .bd-menu li {
  list-style: none;
  list-style-position: outside;
}

.bd-header .bd-menu a {
	color: inherit;
	font: 400 11px/1 var(--bd-sans);
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: .85;
	transition: opacity .3s ease;
}
.bd-header .bd-menu a:hover { opacity: 1; }

/* Après défilement : barre crème translucide + logo visible */
.bd-header.is-scrolled {
	padding-top: 16px;
	padding-bottom: 16px;
	color: var(--bd-ink);
	background: rgba(249, 247, 243, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--bd-line);
}
.bd-header.is-scrolled .bd-header__logo {
	opacity: 1;
	visibility: visible;
}

/* Burger (mobile) */
.bd-header__burger {
	display: none;
	padding: 12px 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.bd-header__bars,
.bd-header__bars::before,
.bd-header__bars::after {
	display: block;
	width: 26px;
	height: 1px;
	background: currentColor;
}
.bd-header__bars { position: relative; }
.bd-header__bars::before,
.bd-header__bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.bd-header__bars::before { top: -7px; }
.bd-header__bars::after  { top: 7px; }
.bd-header .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 900px) {
	.bd-header {
		min-height: 80px;
		padding: 0 24px;
		gap: 18px;
	}

	.bd-header.is-scrolled {
		min-height: 80px;
		padding: 0 24px;
	}

	/* At the top of the hero, mobile shows only the burger. The hidden desktop
	 * logo must not keep its 300px-wide flex footprint. */
	.bd-header:not(.is-scrolled):not(.is-open) {
		justify-content: flex-end;
	}

	.bd-header:not(.is-scrolled):not(.is-open) .bd-header__logo {
		width: 0;
		max-width: 0;
		overflow: hidden;
	}

	.bd-header__logo {
		min-width: 0;
		max-width: calc(100% - 58px);
	}

	.bd-header__logo img {
		height: 28px;
		width: auto;
		max-width: 100%;
	}

	.bd-header.is-open .bd-header__logo {
		opacity: 1;
		visibility: visible;
	}

	.bd-header__burger {
		display: block;
		flex: 0 0 auto;
	}

	.bd-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 24px 24px 32px;
		background: var(--bd-cream);
		color: var(--bd-ink);
		box-shadow: 0 1px 0 var(--bd-line);
	}

	.bd-header.is-open .bd-header__nav { display: block; }
	.bd-header.is-open {
		color: var(--bd-ink);
		background: var(--bd-cream);
	}
	.bd-header .bd-menu {
		flex-direction: column;
		gap: 22px;
	}
}

/* ===== 5. Fond pleine largeur : recentrage en CSS (remplace le calcul JS de Salient) ===== */
html body.bd-fullwidth .main-content .full-width-section,
html body.bd-fullwidth .main-content .full-width-content {
	position: relative !important;
	left: 50% !important;
	right: auto !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: -50vw !important;
	margin-right: 0 !important;
}

/* 100vw inclut la barre de défilement : on évite l'apparition d'un scroll horizontal */
body.bd-fullwidth,
body.bd-fullwidth #ajax-content-wrap {
	overflow-x: hidden;
	overflow-x: clip;
}