/*
 * Sweet Corner: centred-logo header (staging, 2026-11-21).
 *
 * Header template 213 (Elementor / WeDesignTech), nav row = inner section e638496:
 *   a4f2222 search box | e986379 menu | 94cd841 LOGO | d8f79e9 menu | 46aac00 [d063026 search icon, ab0ca04 cart+wishlist, a6f1d88 hamburger]
 *
 * Desktop (>1540px): five equal 20% columns, logo already centred, left as is.
 * Laptop (1281-1540px): Elementor sets 25/25/10/25/15%, which pushed the logo ~60px left of
 *   centre; the four side columns are balanced to 22.5% each so the 10% logo column is centred.
 * Tablet-extra and below (<=1280px): the row becomes a 3-cell grid
 *   [hamburger + search] [logo] [cart + wishlist]
 * with two equal 1fr side cells, so the logo sits in the exact centre whatever the icon widths.
 * The icons column is flattened with display:contents so its widgets become grid items.
 * The separate search-box column is hidden here (the icon search in 46aac00 replaces it),
 * which removes the duplicate search icon on tablets.
 *
 * Side margins: the page content uses Neytri's `.container { max-width: 90vw }` (centred), so its
 * side margin is (viewport - 90vw) / 2 at every width (12px at 390, 61px at 1366, 88px at 1920).
 * The nav row used fixed 20px / 50px padding; it now uses the same formula, and the cart/wishlist
 * list's 10px inner inset is cancelled so the visible icons line up with the content edges.
 */

.wdt-header-tpl .elementor-element-e638496 {
	padding-left: calc((100% - 90vw) / 2) !important;
	padding-right: calc((100% - 90vw) / 2) !important;
}

@media (min-width: 1281px) {
	/* The icons widget is a full-width, right-aligned block here, so shift the list itself. */
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-ab0ca04 .wdt-header-icons-list {
		position: relative;
		left: 10px;
	}
}

@media (min-width: 1281px) and (max-width: 1540px) {
	.wdt-header-tpl .elementor-element-e638496 > .elementor-container > .elementor-element-a4f2222,
	.wdt-header-tpl .elementor-element-e638496 > .elementor-container > .elementor-element-e986379,
	.wdt-header-tpl .elementor-element-e638496 > .elementor-container > .elementor-element-d8f79e9,
	.wdt-header-tpl .elementor-element-e638496 > .elementor-container > .elementor-element-46aac00 {
		width: 22.5% !important;
	}

	.wdt-header-tpl .elementor-element-e638496 > .elementor-container > .elementor-element-94cd841 {
		width: 10% !important;
	}
}

@media (max-width: 1280px) {
	.wdt-header-tpl .elementor-element-e638496 > .elementor-container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		column-gap: 12px;
	}

	.wdt-header-tpl .elementor-element-e638496 .elementor-element-a4f2222 {
		display: none !important;
	}

	.wdt-header-tpl .elementor-element-46aac00,
	.wdt-header-tpl .elementor-element-46aac00 > .elementor-widget-wrap {
		display: contents !important;
	}

	/* Logo: centre cell. */
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-94cd841 {
		grid-column: 2;
		grid-row: 1;
		width: auto !important;
		max-width: none;
		justify-content: center;
	}

	/* Left cell: hamburger first, search icon after it. */
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-a6f1d88,
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-d063026 {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		width: auto !important;
		max-width: none;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 0;
	}

	.wdt-header-tpl .elementor-element-e638496 .elementor-element-a6f1d88 > .elementor-widget-container,
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-d063026 > .elementor-widget-container {
		margin: 0 !important;
		padding: 0 !important;
	}

	/*
	 * Both widgets share cell 1. Offsets mirror the right side so the bar is symmetric:
	 * the hamburger glyph starts on the content edge, the wishlist glyph ends on it (the icon list's
	 * 10px inset is cancelled below), and glyphs are 25px apart like cart/wishlist.
	 * Hamburger glyph (18px) sits 3px inside its 24px tap box; the search icon is a bare 20px glyph.
	 *   hamburger box at -3px -> glyph 0..18
	 *   search at 43px        -> glyph 43..63  (25px after the hamburger glyph)
	 * FiboSearch ("icon-flexible") swaps the icon for a ~280px search bar on wider tablets
	 * (about 993-1280px); the bar starts at the same 43px and fits the left cell.
	 */
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-a6f1d88 {
		margin-left: -3px !important;
	}

	.wdt-header-tpl .elementor-element-e638496 .elementor-element-d063026 {
		margin-left: 43px !important;
	}

	/* Right cell: cart + wishlist. */
	.wdt-header-tpl .elementor-element-e638496 .elementor-element-ab0ca04 {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		width: auto !important;
		max-width: none;
		margin: 0 -10px 0 0 !important;
	}

	/* FiboSearch gives the 16px magnifier a -3.2px bottom margin, which drops it 3px below the other icons. */
	.wdt-header-tpl .elementor-element-d063026 .dgwt-wcas-search-icon svg {
		margin: 0 !important;
	}

	/* Comfortable tap target for the hamburger (the search icon is left to FiboSearch). */
	.wdt-header-tpl .elementor-element-a6f1d88 .menu-trigger {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 24px;
		min-height: 24px;
	}
}

/*
 * Mobile off-canvas menu opens from the LEFT (the hamburger now sits on the left).
 * Neytri (themes/neytri/modules/header/assets/css/header.css) pins every .mobile-menu with
 * `left:auto !important; right:0 !important`, hides it with translateX(100%) and slides in with
 * `anime-slidein-right`. On click, custom.js clones the menu into `body > .mobile-menu`,
 * toggles .nav-is-visible on every .mobile-menu and adds .mobile-menu-overlay; close removes them.
 * Here the panel is mirrored: left:0, hidden at -100%, own slide-in keyframe.
 * Sub-menus keep the theme's drill-down direction for a left panel: they wait off to the right
 * (translateX(100%)), slide in from the right when opened and back out to the right on "back".
 * The panel and its lists clip horizontally so a waiting sub-menu never shows beside the panel.
 * "Navigation" label: printed in the top row (li.close-nav), left of the close X.
 */
@media (max-width: 1280px) {
	body .mobile-menu {
		left: 0 !important;
		right: auto !important;
		-webkit-transform: translateX(-100%);
		transform: translateX(-100%);
	}

	body .mobile-menu.nav-is-visible {
		-webkit-transform: translateX(0);
		transform: translateX(0);
		-webkit-animation-name: sc-slidein-left;
		animation-name: sc-slidein-left;
		-webkit-animation-duration: 0.35s;
		animation-duration: 0.35s;
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	body .mobile-menu,
	body .mobile-menu > ul,
	body .mobile-menu ul.sub-menu {
		overflow-x: hidden !important;
	}

	body .mobile-menu ul > li.close-nav::before {
		content: "Navigation";
		position: absolute;
		left: 15px;
		top: 0;
		color: #777;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 0.04em;
		line-height: 50px;
		pointer-events: none;
	}

	/* A bit roomier (2026-11-21): 300px instead of the theme's 260px (never more than 85% of
	   the screen, so some page stays visible), links 16px instead of 14px, label 13px. */
	body .mobile-menu {
		width: 300px !important;
		max-width: 85vw !important;
	}

	body .mobile-menu ul > li > a {
		font-size: 16px !important;
		line-height: 46px !important;
	}

	body .mobile-menu ul > li.close-nav::before {
		font-size: 13px;
	}

	/* Open menu above everything (2026-11-22). The theme gives the panel z-index 999 and its
	   overlay 98, so the Roue de Chance button (9997), the cart drawer (999992) and the WhatsApp
	   badge (2147483000) sat on top of it. Both are direct children of body, so a higher
	   z-index is enough; the overlay also covers (and blocks) the floating buttons. */
	body .mobile-menu.nav-is-visible {
		z-index: 2147483647 !important;
	}

	body .mobile-menu-overlay.is-visible {
		z-index: 2147483646 !important;
	}
}

/*
 * Social icons pinned at the bottom of the mobile menu panel. The row (.sc-menu-social) is added by
 * js/sc-header.js, which copies the links/icons from the footer social list. The menu lists get
 * bottom padding to clear the row and scroll when long (the 17-item Boutique list was cut off
 * on short phones even before this change).
 */
@media (max-width: 1280px) {
	body .mobile-menu .sc-menu-social {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 6;
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 28px;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}

	body .mobile-menu .sc-menu-social a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 50%;
		color: #111;
		font-size: 18px;
		line-height: 1;
		text-decoration: none;
	}

	body .mobile-menu .sc-menu-social a i {
		line-height: 1;
	}

	body .mobile-menu.sc-has-social > ul,
	body .mobile-menu.sc-has-social ul.sub-menu {
		overflow-y: auto !important;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 84px !important;
		box-sizing: border-box;
	}
}

/*
 * Desktop dropdowns (Boutique and its flyouts), >=1281px where the desktop nav is shown.
 * Neytri made sub-menus 200px wide (about 156px for text), so "✨ Luxury Collection",
 * "Oreillers et coussins décoratifs" and others wrapped. Its hover then set padding-left 15px->0
 * and the dash (a::before) width 5px->0, so a label could fit on one line only while hovered:
 * the row height flipped between 36 and 62px and every item below jumped.
 * Fix: wider menu with no wrapping, fixed padding and dash width, and the same visual effect
 * (dash fades, label slides 15px left) done with opacity/transform only, which never reflows.
 */
@media (min-width: 1281px) {
	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu {
		width: auto !important;
		min-width: 250px !important;
	}

	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a,
	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a:hover,
	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li.current-menu-item > a {
		white-space: nowrap;
		padding-left: 15px !important;
		transition: color 0.3s ease !important;
	}

	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a::before,
	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a:hover::before,
	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li.current-menu-item > a::before {
		width: 5px !important;
		transform-origin: left center;
		transition: opacity 0.3s ease, transform 0.3s ease !important;
	}

	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a:hover::before {
		opacity: 0;
		transform: translateY(-0.5px) scaleX(0) !important;
	}

	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a > span {
		display: inline-block;
		transition: transform 0.3s ease;
	}

	.wdt-header-tpl .wdt-header-menu .menu-container ul.sub-menu > li > a:hover > span {
		transform: translateX(-15px);
	}
}

/*
 * Single announcement marquee on the flower bar (built by js/sc-header.js; see the comment there).
 * html.sc-marquee-on is added only once the marquee exists, then the black bar (section 5e36bc3b) and
 * the original flower widget (1350173) are hidden. A light veil over the flower pattern keeps the text legible.
 */
html.sc-marquee-on .wdt-header-tpl .elementor-element-5e36bc3b,
html.sc-marquee-on .wdt-header-tpl .elementor-element-1350173 {
	display: none !important;
}

/*
 * No flash on first load: inc/sc-header.php adds html.sc-js in <head>, before the first paint.
 * The black bar is then never shown, and the flower widget keeps its box (same 26px line as the
 * marquee) with its old text hidden until the marquee replaces it, so nothing below moves.
 */
html.sc-js .wdt-header-tpl .elementor-element-5e36bc3b {
	display: none !important;
}

html.sc-js:not(.sc-marquee-on) .wdt-header-tpl .elementor-element-1350173 {
	visibility: hidden;
}

.wdt-header-tpl .elementor-element-1350173,
.sc-marquee {
	height: 26px;
}

.wdt-header-tpl .elementor-element-5b384fe {
	position: relative;
}

.wdt-header-tpl .elementor-element-5b384fe::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.62);
	pointer-events: none;
	z-index: 0;
}

.wdt-header-tpl .elementor-element-5b384fe > .elementor-container {
	position: relative;
	z-index: 1;
}

.sc-marquee {
	width: 100%;
	overflow: hidden;
}

.sc-marquee__track {
	display: flex;
	width: max-content;
	-webkit-animation: sc-marquee var(--sc-marquee-duration, 40s) linear infinite;
	animation: sc-marquee var(--sc-marquee-duration, 40s) linear infinite;
	will-change: transform;
}

.sc-marquee:hover .sc-marquee__track,
.sc-marquee:focus-within .sc-marquee__track {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}

.sc-marquee__group {
	display: flex;
	flex: none;
	align-items: center;
}

.sc-marquee__item {
	flex: none;
	padding: 0 26px;
	color: #000;
	font-family: Jost, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	white-space: nowrap;
	text-decoration: none;
}

a.sc-marquee__item:hover {
	color: #000;
	text-decoration: underline;
}

.sc-marquee__sep {
	flex: none;
	color: #c2185b;
	font-size: 11px;
	line-height: 26px;
}

@media (max-width: 767px) {
	.sc-marquee__item {
		padding: 0 18px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-marquee__track {
		-webkit-animation: none;
		animation: none;
	}
}

@-webkit-keyframes sc-marquee {
	from { -webkit-transform: translate3d(0, 0, 0); }
	to   { -webkit-transform: translate3d(-50%, 0, 0); }
}

@keyframes sc-marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes sc-slidein-left {
	0%   { -webkit-transform: translateX(-100%); opacity: 0; }
	100% { -webkit-transform: translateX(0); opacity: 1; }
}

@keyframes sc-slidein-left {
	0%   { transform: translateX(-100%); opacity: 0; }
	100% { transform: translateX(0); opacity: 1; }
}

/*
 * Mobile footer (template 232): centre the Contact column (heading, text, social icons)
 * and the "Liens Utiles" column (heading + links), under the already-centred logo.
 * Columns 2c16ab4a and 187746b5 stack full-width below 768px.
 */
@media (max-width: 767px) {
	.elementor-232 .elementor-element-2c16ab4a,
	.elementor-232 .elementor-element-187746b5 {
		text-align: center;
	}

	.elementor-232 .elementor-element-2c16ab4a > .elementor-widget-wrap,
	.elementor-232 .elementor-element-187746b5 > .elementor-widget-wrap {
		justify-content: center;
	}

	.elementor-232 .elementor-element-2c16ab4a .elementor-widget,
	.elementor-232 .elementor-element-187746b5 .elementor-widget {
		margin-left: auto;
		margin-right: auto;
	}

	.elementor-232 .elementor-element-2c16ab4a .elementor-heading-title,
	.elementor-232 .elementor-element-187746b5 .elementor-heading-title,
	.elementor-232 .elementor-element-2c16ab4a .elementor-text-editor,
	.elementor-232 .elementor-element-2c16ab4a .elementor-widget-text-editor,
	.elementor-232 .elementor-element-2c16ab4a .elementor-widget-text-editor p {
		text-align: center !important;
	}

	.elementor-232 .elementor-element-2c16ab4a .elementor-icon-list-items,
	.elementor-232 .elementor-element-187746b5 .elementor-icon-list-items {
		justify-content: center !important;
	}

	.elementor-232 .elementor-element-2c16ab4a .elementor-icon-list-item,
	.elementor-232 .elementor-element-187746b5 .elementor-icon-list-item,
	.elementor-232 .elementor-element-2c16ab4a .elementor-icon-list-item > a,
	.elementor-232 .elementor-element-187746b5 .elementor-icon-list-item > a {
		justify-content: center !important;
		text-align: center;
	}
}

/* ---------------------------------------------------------------------------
 * PROMO badge (menu item label "menu-custom-label", set in the WP menu) (2026-11-21).
 * Desktop: the theme paints it red (#f00); use the brand pink instead, same size and shape.
 * Mobile panel: Neytri's cloned menu keeps the label markup but has no badge styling, so it
 * showed as plain black text. Give it the same 8px pill, inline after "Boutique", vertically
 * centred on the text. The link already has 40px right padding for the submenu arrow, so the
 * badge never reaches it.
 * ------------------------------------------------------------------------- */
.wdt-header-tpl .menu-custom-label,
body .mobile-menu .menu-custom-label {
	background-color: #ac3c77 !important;
	color: #fff !important;
}

body .mobile-menu label.menu-custom-label {
	display: inline-block;
	margin: 0 0 0 8px;
	padding: 4px 6px;
	border-radius: 5px;
	font-family: Jost, sans-serif;
	font-size: 8px;
	font-weight: 500;
	line-height: 8px;
	text-transform: uppercase;
	vertical-align: middle;
	position: relative;
	top: -1px;
	pointer-events: none;
}

body .mobile-menu label.menu-custom-label > span {
	display: block;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* ---------------------------------------------------------------------------
 * Flower bar zoom (2026-11-21). The pattern (Flowezr.webp, 1920x360, tiles left/right) was
 * "cover", i.e. scaled to the bar width: about 0.89x on a 1700px screen and only 0.2x on a phone,
 * where the flowers became specks. A fixed height of 480px (1.33x) at every width shows whole,
 * recognisable sprigs. Only the background changes: the bar keeps its height, and the white veil
 * (::before) stays for legibility.
 * ------------------------------------------------------------------------- */
.wdt-header-tpl .elementor-element-5b384fe {
	background-size: auto 480px !important;
	background-repeat: repeat-x !important;
	background-position: center center !important;
}

/* ---------------------------------------------------------------------------
 * Logo size before first paint (2026-11-21). The header template's own size rule (Elementor
 * post-213.css: 120px, 80px at <=479px) arrives late for logged-in users (guests get it in
 * LiteSpeed's combined head CSS). Until then Neytri's max-width:118px applied, so on phones
 * the header painted 38px taller and then jumped. Same values, available from the start.
 * ------------------------------------------------------------------------- */
.wdt-header-tpl .elementor-element-ffa7bc2 div.wdt-logo-container img {
	max-width: 120px;
	width: 120px;
}

@media (max-width: 479px) {
	.wdt-header-tpl .elementor-element-ffa7bc2 div.wdt-logo-container img {
		max-width: 80px;
		width: 80px;
	}
}

/* ---------------------------------------------------------------------------
 * Popular searches in the FiboSearch mobile overlay (2026-11-21), built by js/sc-header.js.
 * The box sits right under the 45px search bar. FiboSearch's results panel is absolutely
 * positioned over the same area (top:45px, full height), so the box gets its own layer above it.
 * It is hidden (the `hidden` attribute) as soon as the input has text, so it never covers results.
 * ------------------------------------------------------------------------- */
.dgwt-wcas-overlay-mobile .sc-search-popular {
	position: relative;
	z-index: 2;
	padding: 20px 16px 24px;
	background: #fff;
	font-family: Jost, sans-serif;
}

.dgwt-wcas-overlay-mobile .sc-search-popular[hidden] {
	display: none;
}

.dgwt-wcas-overlay-mobile .sc-search-popular__title {
	margin: 0 0 12px;
	padding: 0;
	color: #777;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.dgwt-wcas-overlay-mobile .sc-search-popular__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dgwt-wcas-overlay-mobile button.sc-search-popular__chip,
.dgwt-wcas-overlay-mobile button.sc-search-popular__chip:hover,
.dgwt-wcas-overlay-mobile button.sc-search-popular__chip:focus {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #ecd3e0;
	border-radius: 18px;
	background: #fbf4f8;
	color: #ac3c77;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.dgwt-wcas-overlay-mobile button.sc-search-popular__chip:active {
	background: #ac3c77;
	border-color: #ac3c77;
	color: #fff;
}

.dgwt-wcas-overlay-mobile button.sc-search-popular__chip:focus-visible {
	outline: 2px solid #ac3c77;
	outline-offset: 2px;
}

/*
 * Title band on every page (2026-11-26): the product page's compact breadcrumb
 * (css/sc-product-page.css section 1) everywhere except the home page, and the
 * theme's 100px gap under the header down to 24px (12px on phones).
 * The big generic title is dropped where the page content already says what it
 * is (cart, checkout and order received, account, favourites). Articles,
 * Actualité and policy pages keep their title, which is their real heading.
 */
body:not(.home) .main-title-section-wrapper .main-title-section-container {
	padding: 16px 0 12px;
}

body:not(.home) .main-title-section-wrapper .breadcrumb {
	font-size: 13px;
	line-height: 1.5;
}

body:not(.home) .main-title-section-wrapper .breadcrumb a,
body:not(.home) .main-title-section-wrapper .breadcrumb span {
	font-size: inherit;
}

body:not(.home) #header-wrapper {
	margin-bottom: 24px;
}

/* Hidden on screen only: the page keeps its H1 for screen readers. */
body.woocommerce-cart .main-title-section-wrapper .main-title-section,
body.woocommerce-checkout .main-title-section-wrapper .main-title-section,
body.woocommerce-account .main-title-section-wrapper .main-title-section,
body.woocommerce-wishlist .main-title-section-wrapper .main-title-section,
body.page-id-388 .main-title-section-wrapper .main-title-section {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 767px) {
	body:not(.home) .main-title-section-wrapper .main-title-section-container {
		padding: 10px 0 8px;
	}

	body:not(.home) .main-title-section-wrapper .breadcrumb {
		font-size: 12px;
	}

	body:not(.home) #header-wrapper {
		margin-bottom: 12px;
	}
}
