/**
 * Sticky header, full-screen mobile drawer, announcement bar. Reference:
 * design mockup Fidel shared 2026-09-19 (purple/gold, bold uppercase
 * nav). Order bar (components.css) owns the bottom of the viewport on
 * mobile, so this owns the top instead -- no z-index collision.
 *
 * Hiding the old header (2026-09-20): staging showed the theme's own
 * default header (logo/CTA stacked, its own hamburger opening a
 * completely different menu -- "À propos / Contact / Franchise", pages
 * this plugin knows nothing about) rendering alongside this one, because
 * nobody had gone into Elementor to hide it yet. Rather than leave that
 * as a manual step someone has to remember, this CSS rule hides it
 * automatically -- purely visual (display:none), nothing in the theme
 * or Elementor is touched or edited. Targets Hello Elementor's default
 * header markup (#masthead, .site-header) and an Elementor Pro header
 * template (data-elementor-type="header"), covering both possibilities
 * without knowing which one this site actually uses.
 */
body > header#masthead,
body > .site-header,
[data-elementor-type="header"] {
	display: none !important;
}

/**
 * color: !important -- AUDIT_DESIGN_FUNNEL_Comptoir.md flagged a
 * non-palette magenta (#cc3366) on this element; live measurement
 * confirmed it, computed instead of the purple set below. Same
 * Elementor-collision pattern already fixed elsewhere in this file
 * (.bcc-menu-toggle) and across the plugin -- this anchor's color was
 * simply never audited for it since it isn't a heading/button/select.
 */
.bcc-announce {
	display: block;
	background: var(--bcc-gold-400);
	color: var(--bcc-purple-900) !important;
	font-family: var(--bcc-font-mono);
	font-size: 13px;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	padding: 9px 16px;
}

a.bcc-announce:hover {
	text-decoration: underline;
}

.bcc-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--bcc-purple-900);
	color: var(--bcc-cream);
	padding: calc(env(safe-area-inset-top, 0px) + 90px) 28px 40px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bcc-drawer[hidden] {
	display: none;
}

.bcc-drawer.is-open {
	animation: bcc-drawer-in .25s ease;
}

@keyframes bcc-drawer-in {
	from { opacity: 0; }
}

.bcc-drawer__nav {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bcc-drawer__nav a {
	font-family: var(--bcc-font-display);
	font-weight: 900;
	font-size: 46px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--bcc-cream);
	text-decoration: none;
}

.bcc-drawer__close {
	position: absolute;
	top: calc(env(safe-area-inset-top, 0px) + 18px);
	right: 20px;
	width: 46px;
	height: 46px;
	background: none !important;
	border: var(--bcc-border-width) solid var(--bcc-cream);
	border-radius: var(--bcc-radius-sm);
	color: var(--bcc-cream) !important;
	font-size: 22px;
	cursor: pointer;
}

.bcc-drawer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	margin-top: 10px;
	padding: 0 26px;
	background: var(--bcc-gold-400) !important;
	color: var(--bcc-purple-900) !important;
	font-family: var(--bcc-font-display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--bcc-radius-pill);
	box-shadow: 0 6px 0 -1px rgb(0 0 0 / .18);
	align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
	.bcc-drawer.is-open {
		animation: none;
	}
}

.bcc-top {
	position: sticky;
	top: env(safe-area-inset-top, 0);
	z-index: 120;
	background: var(--bcc-purple-900);
	color: var(--bcc-cream);
	box-shadow: none;
	transition: box-shadow .3s, transform .3s ease;
}

.bcc-top.bcc-top--scrolled {
	box-shadow: 0 10px 30px rgb(21 18 29 / .25);
}

/**
 * Hide-on-scroll-down / reveal-on-scroll-up, per the reference mockup
 * ("the top ... are sticky pretty much or disappear from time to time").
 * header.js toggles this class; disabled outright for reduced-motion so
 * the header just stays put rather than snapping.
 */
.bcc-top.bcc-top--hidden {
	transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
	.bcc-top {
		transition: box-shadow .3s;
	}

	.bcc-top.bcc-top--hidden {
		transform: none;
	}
}

.bcc-top__wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1280px, 100% - 40px);
	margin-inline: auto;
	height: 74px;
}

/**
 * color: !important -- the logo is image-only (no visible text), so
 * this never affected rendering, but live measurement still found
 * Elementor's default link magenta computed here. Fixed anyway per
 * AUDIT_DESIGN_FUNNEL_Comptoir.md A1's "delete every non-palette
 * colour" -- zero tolerance, not just the visible ones.
 */
.bcc-top__logo {
	color: var(--bcc-cream) !important;
}

.bcc-top__logo img {
	height: 44px;
	width: auto;
	display: block;
}

.bcc-top__nav {
	display: flex;
	gap: 24px;
}

.bcc-top__nav a {
	font-family: var(--bcc-font-mono);
	font-size: 13px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--bcc-cream);
	text-decoration: none;
	opacity: .88;
	position: relative;
	padding: 6px 0;
	transition: opacity .2s;
}

.bcc-top__nav a:hover {
	opacity: 1;
}

/**
 * Animated underline (design/BRIEF.md §4.2): grows in from the left on
 * hover, stays filled for the current page (.act, set server-side in
 * bcc_print_nav_links()) or a real WP menu's own "current page" class.
 */
.bcc-top__nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--bcc-gold-400);
	transition: right .25s;
}

.bcc-top__nav a:hover::after,
.bcc-top__nav a.act::after,
.bcc-top__nav .current-menu-item > a::after {
	right: 0;
}

.bcc-top__nav a.act,
.bcc-top__nav .current-menu-item > a {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.bcc-top__nav a::after {
		transition: none;
	}
}

.bcc-top__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bcc-top__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 26px;
	background: var(--bcc-gold-400) !important;
	color: var(--bcc-purple-900) !important;
	font-family: var(--bcc-font-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--bcc-radius-pill);
	box-shadow: 0 6px 0 -1px rgb(0 0 0 / .18);
	transition: transform .2s cubic-bezier(.2,.8,.2,1);
}

.bcc-top__cta:hover {
	transform: translateY(-2px);
}

/**
 * !important throughout: staging showed this button picking up an
 * unidentified fill color from somewhere outside this plugin (not
 * reproducible from any rule in this codebase -- grepped for it,
 * nothing here sets it). Forcing our own values wins regardless of
 * whatever else on the page might be targeting a bare <button>.
 */
.bcc-menu-toggle {
	display: none !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 5px !important;
	width: 46px !important;
	height: 46px !important;
	background: transparent !important;
	border: var(--bcc-border-width) solid var(--bcc-cream) !important;
	border-radius: var(--bcc-radius-sm) !important;
	box-shadow: none !important;
	cursor: pointer;
}

.bcc-menu-toggle span {
	display: block !important;
	width: 20px !important;
	height: 2px !important;
	background: var(--bcc-cream) !important;
	transition: transform .25s, opacity .25s;
}

.bcc-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.bcc-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.bcc-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (width < 1020px) {
	.bcc-top__nav {
		display: none;
	}

	/**
	 * Matches the reference's own .top .btn.hide-m{display:none} at this
	 * same breakpoint: below 1020px the header CTA is dropped entirely,
	 * not shrunk. Live-render testing found this missing rule was the
	 * cause of a real horizontal-overflow bug on phones (the logo + full
	 * CTA + hamburger together don't fit in one row under ~420px) --
	 * not a conversion loss, since the sticky order bar (order-bar.css)
	 * already carries the same "commander" job on small screens.
	 */
	.bcc-top__cta {
		display: none;
	}

	.bcc-menu-toggle {
		display: inline-flex !important;
	}
}
