/* Header (Alain, 2026-10-29): « Boutik Chic » and « Du Guil » move apart to reveal the menu between them. */
.bcd-topbar {
	background: var(--bcd-blue);
	color: #fff;
	font-family: var(--bcd-sans);
	font-size: 14px;
}
.bcd-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
}
.bcd-topbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.bcd-topbar a:hover { color: #fff; text-decoration: underline; }

.bcd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgb(251 250 248 / .96);
	border-bottom: 1px solid var(--bcd-border);
	transition: background-color .3s, border-color .3s;
}
/* Home page: fixed over the photo, just under the blue band (--bcd-top, set by header.js), and transparent at the top. */
.bcd-header--overlay {
	position: fixed;
	top: var(--bcd-top, 37px);
	left: 0;
	right: 0;
}
.bcd-header--overlay.is-top:not(.is-menu-open, .is-open) {
	background-color: transparent;
	border-color: transparent;
}
/* Over the photo, a white halo keeps the name and the menu legible (the Lovable menu had the same). */
.bcd-header--overlay.is-top:not(.is-menu-open, .is-open) :is(.bcd-word, .bcd-menu > li > a) {
	text-shadow: 0 0 2px rgb(255 255 255 / .95), 0 0 8px rgb(255 255 255 / .9), 0 0 18px rgb(255 255 255 / .8);
}
.bcd-header--overlay.is-top:not(.is-menu-open, .is-open) .bcd-menu-icon { filter: drop-shadow(0 0 4px rgb(255 255 255 / .9)); }
.admin-bar .bcd-header:not(.bcd-header--overlay) { top: 32px; }
@media (max-width: 782px) { .admin-bar .bcd-header:not(.bcd-header--overlay) { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bcd-header:not(.bcd-header--overlay) { top: 0; } }

.bcd-bar {
	position: relative;
	max-width: 1280px;
	height: 80px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: height .4s;
}
/* The logo shrinks as the page scrolls; at the top of the home page it is large and hangs over the photo (Lovable). */
.bcd-logo {
	position: absolute;
	top: 10px;
	left: 24px;
	display: block;
	width: 60px;
	height: 60px;
	transition: width .4s, height .4s, top .4s, opacity .3s, visibility 0s;
}
.bcd-header:not(.is-top) .bcd-logo { top: 16px; width: 48px; height: 48px; }
.bcd-header--overlay.is-top .bcd-logo { top: 8px; width: 144px; height: 144px; }
@media (max-width: 1279px) { .bcd-header--overlay.is-top .bcd-logo { width: 128px; height: 128px; } }
.bcd-logo img { display: block; width: 100%; height: 100%; }
.bcd-header:is(.is-open, .is-menu-open) .bcd-logo {
	opacity: 0;
	visibility: hidden;
	transition: width .4s, height .4s, top .4s, opacity .2s, visibility 0s .2s;
}
.bcd-brand {
	display: flex;
	align-items: center;
	justify-content: center;
}
.bcd-word {
	padding: 12px 0;
	font-family: var(--bcd-serif);
	font-weight: 600;
	font-size: clamp(30px, 3.4vw, 46px);
	letter-spacing: .01em;
	line-height: 1;
	text-decoration: none;
	color: var(--bcd-ink);
	white-space: nowrap;
	transition: font-size .4s;
}
/* Large screens: at the top of the page the bar is taller, so the name sits lower under the blue band;
   once the page scrolls, the bar and the name get smaller (Alain, 2026-10-29). */
@media (min-width: 1024px) and (hover: hover) {
	.bcd-header.is-top .bcd-bar { height: 104px; }
	.bcd-header.is-top:not(.bcd-header--overlay) .bcd-logo { top: 22px; }
	.bcd-header:not(.is-top) .bcd-word { font-size: clamp(26px, 2.5vw, 34px); }
}
/* Closed, the gap between the two halves is one word space: « Boutik Chic Du Guil ». */
.bcd-word--right { margin-left: .27em; color: var(--bcd-coral-text); }
.bcd-word:hover { color: var(--bcd-ink); }
.bcd-word--right:hover { color: var(--bcd-coral-text); }

/* Closed: no width between the two words. Open: the width of the menu, measured by header.js. */
.bcd-nav {
	max-width: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: max-width .5s cubic-bezier(.4, 0, .2, 1), margin .5s cubic-bezier(.4, 0, .2, 1), opacity .25s, visibility 0s .5s;
}
.bcd-header.is-open .bcd-nav {
	max-width: var(--bcd-nav-w, 900px);
	margin: 0 32px;
	opacity: 1;
	visibility: visible;
	transition: max-width .5s cubic-bezier(.4, 0, .2, 1), margin .5s cubic-bezier(.4, 0, .2, 1), opacity .3s .15s, visibility 0s;
}
/* Once open, the submenu may hang below the header. */
.bcd-header.is-settled .bcd-nav { overflow: visible; }

.bcd-menu {
	/* Columns of equal width, as wide as the longest label: the icons fall at regular intervals (Alain, 2026-10-29). */
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	align-items: center;
	gap: 8px;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bcd-menu li { position: relative; margin: 0; }
.bcd-menu a {
	display: block;
	padding: 10px 0;
	font-family: var(--bcd-sans);
	font-weight: 700;
	font-size: 16px;
	color: var(--bcd-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s;
}
.bcd-menu a:hover,
.bcd-menu .current-menu-item > a { color: var(--bcd-blue); }
/* First level: the icon above its label, the signature of koinoborihouse.com (Alain, 2026-10-29). */
.bcd-menu > li > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 6px 2px;
	font-weight: 500;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.bcd-menu-icon { display: block; flex: none; width: 24px; height: 24px; }
/* Kadence adds its own dropdown arrow to every menu; this header draws its own. */
.bcd-menu .dropdown-nav-toggle { display: none; }
.bcd-menu .menu-item-has-children > a .bcd-menu-label::after {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 0 2px 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}
.bcd-menu .is-sub-open > a .bcd-menu-label::after { transform: rotate(-135deg); margin-bottom: -1px; }

.bcd-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 260px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: var(--bcd-radius);
	box-shadow: var(--bcd-shadow-medium);
}
.bcd-menu .sub-menu a { padding: 10px 24px; font-weight: 400; }
.bcd-menu .sub-menu a:hover { background: var(--bcd-muted-bg); }
.bcd-header.is-settled .menu-item-has-children:hover > .sub-menu,
.bcd-header.is-settled .menu-item-has-children:focus-within > .sub-menu,
.bcd-menu .is-sub-open > .sub-menu { display: block; }

/* Three bars alone, on a transparent background (Alain, 2026-10-29); « Menu » stays as the button's label for screen readers. */
.bcd-toggle,
.bcd-toggle:is(:hover, :focus, :active) {
	display: none;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--bcd-ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bcd-toggle-bars,
.bcd-toggle-bars::before,
.bcd-toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform .25s, opacity .25s;
}
.bcd-toggle-bars { position: relative; }
.bcd-toggle-bars::before,
.bcd-toggle-bars::after { content: ''; position: absolute; left: 0; }
.bcd-toggle-bars::before { top: -7px; }
.bcd-toggle-bars::after { top: 7px; }
.bcd-header.is-menu-open .bcd-toggle-bars { background: transparent; }
.bcd-header.is-menu-open .bcd-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.bcd-header.is-menu-open .bcd-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

:is(.bcd-word, .bcd-menu a, .bcd-toggle, .bcd-topbar a):focus-visible {
	outline: 2px solid var(--bcd-blue);
	outline-offset: 4px;
	border-radius: 2px;
}

/* Phone, tablet and touch screens: the name stays whole, the menu drops below the header. */
@media (max-width: 1023px), (hover: none) {
	.bcd-topbar-address { display: none; }
	.bcd-bar { justify-content: space-between; gap: 10px; height: 68px; }
	.bcd-logo,
	.bcd-header:not(.is-top) .bcd-logo,
	.bcd-header--overlay.is-top .bcd-logo { position: static; flex: none; width: 44px; height: 44px; transform-origin: 0 0; transition: transform .4s, opacity .3s, visibility 0s; }
	/* Large at the top of the home page without taking more room in the bar, so the name and « Menu » keep their place. */
	.bcd-header--overlay.is-top .bcd-bar { gap: 14px; }
	.bcd-header--overlay.is-top .bcd-logo { transform: translateY(-2px) scale(1.2); }
	/* Centred between the logo and the three bars, which are the same width (Alain, 2026-10-29). */
	.bcd-brand { flex: 1; min-width: 0; justify-content: center; }
	.bcd-word { font-size: clamp(20px, 6.2vw, 30px); font-weight: 700; }
	.bcd-nav,
	.bcd-header.is-open .bcd-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-width: none;
		max-height: calc(100vh - 110px);
		margin: 0;
		padding: 8px 24px 24px;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
		background: var(--bcd-bg);
		border-bottom: 1px solid var(--bcd-border);
		box-shadow: var(--bcd-shadow-medium);
		transition: none;
	}
	.bcd-header.is-menu-open .bcd-nav { display: block; }
	.bcd-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: auto; }
	.bcd-menu a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--bcd-border); }
	.bcd-menu > li > a { flex-direction: row; gap: 16px; font-size: 15px; letter-spacing: .08em; }
	.bcd-menu .sub-menu { position: static; transform: none; min-width: 0; padding: 0 0 0 16px; background: none; box-shadow: none; border-radius: 0; }
	.bcd-menu .sub-menu a { padding: 12px 0; font-size: 17px; }
	.bcd-menu .sub-menu a:hover { background: none; }
	.bcd-toggle,
	.bcd-toggle:is(:hover, :focus, :active) { display: flex; }
}
@media (max-width: 480px) {
	.bcd-topbar-inner { justify-content: center; }
	.bcd-topbar-inner a:last-child { display: none; }
}

/* Top of the home page (cover block « bcd-hero »), as on the Lovable site. */
.wp-block-cover.bcd-hero {
	min-height: 100vh !important;
	margin-top: 0;
	padding: 0;
	align-items: center;
}
.bcd-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 96px 24px 0;
}
.bcd-hero h1 {
	max-width: 672px;
	margin: 0 0 48px;
	font-family: var(--bcd-serif);
	font-weight: 600;
	font-size: clamp(30px, 3.4vw, 48px);
	line-height: 1.25;
	color: rgb(29 38 48 / .7);
}
.bcd-hero .wp-block-buttons { gap: 16px; }
.bcd-hero .wp-block-button__link { padding: 12px 32px; font-size: 16px; }
.bcd-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link::after { content: ' \2192'; }
.bcd-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: var(--bcd-bg);
	color: var(--bcd-ink);
	border: 1px solid var(--bcd-border);
	box-shadow: var(--bcd-shadow-soft);
}
.bcd-hero + * { margin-top: 64px; }
@media (max-width: 1023px) { .wp-block-cover.bcd-hero { min-height: 90vh !important; } }
@media (max-width: 767px) {
	.wp-block-cover.bcd-hero { min-height: 80vh !important; }
	.bcd-hero .wp-block-cover__inner-container { padding-top: 128px; }
	/* On a phone the title falls on the busy middle of the photo: full ink and a white halo (Alain, 2026-10-29). */
	.bcd-hero h1 {
		margin-bottom: 32px;
		color: var(--bcd-ink);
		text-shadow: 0 0 2px rgb(255 255 255 / .95), 0 0 10px rgb(255 255 255 / .9), 0 0 24px rgb(255 255 255 / .8);
	}
}
