/* Header : méga-menu, menu mobile, recherche, panier — voir inc/header.php */
:root {
	--nika-ink: #17171c;
	--nika-grey: #6b727f;
	--nika-line: #e6e8ec;
	--nika-line-strong: #d1d6dc;
	--nika-accent: #d92027;
	--nika-accent-dark: #b71a20;
}

/* Le panneau s'ancre sur toute la largeur de la section du header (classe ajoutée dans Elementor). */
.nika-header { z-index: 50; }
.nika-header > .elementor-container,
.nika-header .nika-header__nav,
.nika-header .nika-header__nav > .elementor-widget-wrap,
.nika-header .nika-header__nav .elementor-widget-shortcode,
.nika-header .nika-header__nav .elementor-widget-container,
.nika-header .nika-header__nav .elementor-shortcode { position: static; }

.nika-mm a { font-family: inherit; } /* le style global Elementor force Roboto Slab sur les liens */

.nika-mm__list {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nika-mm__item { position: static; }

.nika-mm .nika-mm__link {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 26px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--nika-ink);
	text-decoration: none;
}
.nika-mm__link:hover,
.nika-mm__link:focus-visible,
.nika-mm__item.is-active > .nika-mm__link,
.nika-mm__item.is-open > .nika-mm__link { color: var(--nika-accent); }

.nika-mm__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform .18s ease;
}
.nika-mm__item.has-panel:hover .nika-mm__caret,
.nika-mm__item.is-open .nika-mm__caret { transform: rotate(180deg); }

/* Panneau */
.nika-mm__panel {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-top: 2px solid var(--nika-accent);
	border-bottom: 1px solid var(--nika-line-strong);
	box-shadow: 0 18px 36px rgba(0, 0, 0, .12);
	padding: 30px 48px 34px;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
/* Pont invisible entre le titre et le panneau, pour ne pas perdre le survol en descendant. */
.nika-mm__panel::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 40px;
}
/* :hover / :focus-within = secours si le JS est retardé (option « Delay JS » de WP Rocket). */
.nika-mm__item.has-panel:hover > .nika-mm__panel,
.nika-mm__item.has-panel:focus-within > .nika-mm__panel,
.nika-mm__item.is-open > .nika-mm__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity .16s ease, transform .16s ease, visibility 0s;
}

/* Échap : referme le panneau même si la souris ou le focus sont encore dessus. */
.nika-mm__item.has-panel.is-dismissed > .nika-mm__panel { opacity: 0; visibility: hidden; transition: none; }

.nika-mm__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
}
.nika-mm__col ul { margin: 0; padding: 0; list-style: none; }

.nika-mm .nika-mm__col-title {
	display: block;
	margin: 0;
	padding: 0 4px 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--nika-grey);
	text-decoration: none;
}

.nika-mm .nika-mm__sub {
	display: flex;
	align-items: center;
	padding: 13px 4px;
	border-bottom: 1px solid var(--nika-line);
	color: var(--nika-ink);
	text-decoration: none;
}
.nika-mm__sub:hover .nika-mm__name,
.nika-mm__sub:focus-visible .nika-mm__name,
.nika-mm__sub.is-current .nika-mm__name { color: var(--nika-accent); }

.nika-mm__name { font-size: 14px; font-weight: 700; line-height: 1.25; }

.nika-mm__new {
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 8px;
	background: var(--nika-accent);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .4px;
	vertical-align: middle;
}

@media (max-width: 1366px) {
	.nika-mm__list { gap: 36px; }
	.nika-mm__panel { padding: 26px 32px 30px; }
	.nika-mm__grid { column-gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.nika-mm__panel, .nika-mm__caret { transition: none; }
}

/* ---------- Colonne de droite : recherche, panier, compte ---------- */
.nika-header__actions > .elementor-widget-wrap { align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: nowrap; }
.nika-header__actions .elementor-widget { width: auto; margin: 0 !important; }
.nika-header__actions .elementor-widget-container { margin: 0 !important; }

.nika-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 280px;
	max-width: 100%;
	height: 42px;
	margin: 0;
	border: 1px solid var(--nika-line);
	border-radius: 21px;
	background: #f6f6f8;
	transition: border-color .15s ease, background .15s ease;
}
.nika-search:focus-within { border-color: var(--nika-accent); background: #fff; }
.nika-search__icon { position: absolute; left: 16px; width: 16px; height: 16px; color: var(--nika-grey); pointer-events: none; }
.nika-search .nika-search__input {
	width: 100%;
	height: 100%;
	padding: 0 18px 0 40px;
	border: 0;
	border-radius: 21px;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	color: var(--nika-ink);
	box-shadow: none;
	outline: none;
}
.nika-search .nika-search__input::placeholder { color: var(--nika-grey); opacity: 1; }
.nika-search .nika-search__input::-webkit-search-cancel-button { cursor: pointer; }

/* Panier (Side Cart) : icône + pastille, sans le montant */
.nika-header .xoo-wsc-sc-subt { display: none; }
.nika-header .xoo-wsc-sc-count {
	background: var(--nika-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

@media (max-width: 1366px) {
	.nika-search { width: 220px; }
	.nika-header__actions > .elementor-widget-wrap { gap: 16px; }
}

/* ---------- Menu mobile (popup Elementor « Menu mobile ») ---------- */
.nika-mmm { width: 100%; text-align: left; color: var(--nika-ink); }
.nika-mmm a { font-family: inherit; color: inherit; text-decoration: none; }
.nika-mmm ul { margin: 0; padding: 0; list-style: none; }
.nika-mmm__item { border-bottom: 1px solid var(--nika-line); }
.nika-mmm summary { list-style: none; cursor: pointer; }
.nika-mmm summary::-webkit-details-marker { display: none; }
.nika-mmm .nika-mmm__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 4px;
	font-size: 17px;
	font-weight: 700;
}
.nika-mmm details[open] > .nika-mmm__top { color: var(--nika-accent); }
.nika-mmm details[open] > .nika-mmm__top .nika-mm__caret { transform: rotate(180deg); }
.nika-mmm__panel { padding: 0 4px 16px; }
.nika-mmm .nika-mmm__all { display: inline-block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--nika-accent); }
.nika-mmm .nika-mmm__title {
	display: block;
	margin: 14px 0 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--nika-grey);
}
.nika-mmm .nika-mmm__sub { display: block; padding: 9px 0; font-size: 15px; font-weight: 600; }
.nika-mmm .nika-mmm__sub.is-current { color: var(--nika-accent); }
