/* ============================================================
   WPMove — En-tête et pied de page du site (Ollie Child v3)
   Chargée partout. Balisage : patterns/site-header.php (.w3h-) et
   patterns/site-footer.php (.w3f-, plus bas).
   Toujours sombre, identique en clair et en sombre (--wp-header-bg).
   ============================================================ */

.wpmove-header.w3h {
	padding: 0;
	background: rgba(15, 17, 23, 0.92);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--wp-font-sans);
	color: #E2E8F0;
}

.w3h *,
.w3h *::before,
.w3h *::after {
	box-sizing: border-box;
}

.w3h a {
	text-decoration: none;
}

.w3h__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px;
	min-height: 72px;
	display: flex;
	align-items: center;
	gap: 32px;
}

/* ---------- Marque ---------- */
.w3h__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #FFFFFF !important;
	flex: none;
}

.w3h__logo {
	width: 32px;
	height: 32px;
}

.w3h__name {
	font-family: 'Outfit', var(--wp-font-sans);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.w3h__beta {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 99px;
	color: #C7D2FE;
	background: rgba(129, 140, 248, 0.16);
	border: 1px solid rgba(129, 140, 248, 0.35);
}

/* ---------- Navigation ---------- */
.w3h__nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
}

.w3h__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	color: #CBD5E1 !important;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.w3h__link::-webkit-details-marker {
	display: none;
}

.w3h__link:hover,
.w3h-dd[open] > .w3h__link {
	color: #FFFFFF !important;
	background: rgba(255, 255, 255, 0.06);
}

.w3h__link[aria-current="page"] {
	color: #FFFFFF !important;
}

.w3h-chev {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.15s ease;
}

.w3h-dd[open] .w3h-chev {
	transform: rotate(180deg);
}

/* ---------- Menus déroulants ---------- */
.w3h-dd {
	position: relative;
}

.w3h-dd > summary {
	list-style: none;
}

.w3h-dd > summary::-webkit-details-marker {
	display: none;
}

.w3h-dd__panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 10;
	min-width: 300px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #161B26;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}

.w3h-dd--right .w3h-dd__panel {
	left: auto;
	right: 0;
}

.w3h-dd__panel--sm {
	min-width: 220px;
}

.w3h-dd__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #F1F5F9 !important;
}

.w3h-dd__item strong {
	font-size: 14px;
	font-weight: 600;
}

.w3h-dd__item span {
	font-size: 13px;
	color: #94A3B8;
}

.w3h-dd__item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.w3h-dd__item--muted strong {
	color: #94A3B8;
	font-weight: 500;
}

.w3h-dd__who {
	padding: 8px 12px 10px;
	margin-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12px;
	color: #94A3B8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Côté droit ---------- */
.w3h__right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.w3h__lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 36px;
	padding: 0 8px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #CBD5E1 !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.w3h__lang:hover {
	color: #FFFFFF !important;
	border-color: rgba(255, 255, 255, 0.4);
}

.w3h__icon,
#wp-theme-toggle.w3h__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: #CBD5E1;
	cursor: pointer;
	list-style: none;
}

.w3h__icon:hover {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.4);
}

.w3h__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.w3h-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.w3h-btn--primary {
	background: #4F46E5;
	color: #FFFFFF !important;
}

.w3h-btn--primary:hover {
	background: #6366F1;
}

.w3h__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #312E81;
	color: #E0E7FF;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid rgba(165, 180, 252, 0.4);
}

/* ---------- Menu mobile ---------- */
.w3h-burger {
	display: none;
}

.w3h-burger > summary::-webkit-details-marker {
	display: none;
}

.w3h-burger__close,
.w3h-burger[open] .w3h-burger__open {
	display: none;
}

.w3h-burger[open] .w3h-burger__close {
	display: block;
}

.w3h-burger__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #0F1117;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6);
}

.w3h-burger__panel a:not(.w3h-btn) {
	display: block;
	padding: 12px 8px;
	color: #E2E8F0 !important;
	font-size: 16px;
	font-weight: 500;
	border-radius: 8px;
}

.w3h-burger__panel a:not(.w3h-btn):hover {
	background: rgba(255, 255, 255, 0.06);
}

.w3h-burger__panel .w3h-btn {
	margin-top: 8px;
	min-height: 48px;
}

.w3h-burger__label {
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748B;
}

.w3h-burger__sep {
	height: 1px;
	margin: 8px 0;
	background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Pied de page (patterns/site-footer.php). Préfixe .w3f-.
   ============================================================ */
.w3f {
	background: #0B0D12;
	color: #94A3B8;
	font-family: var(--wp-font-sans);
	font-size: 14px;
	line-height: 1.6;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.w3f *,
.w3f *::before,
.w3f *::after {
	box-sizing: border-box;
}

.w3f a {
	color: #94A3B8;
	text-decoration: none;
	transition: color 0.15s ease;
}

.w3f a:hover {
	color: #FFFFFF;
}

.w3f__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 72px 32px 32px;
}

.w3f__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
}

.w3f__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 340px;
}

.w3f .w3f__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	font-family: 'Outfit', var(--wp-font-sans);
	font-size: 20px;
	font-weight: 700;
}

.w3f__logo svg {
	width: 30px;
	height: 30px;
}

.w3f__tagline {
	margin: 0;
	font-size: 15px;
	color: #94A3B8;
}

.w3f .w3f__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 9px;
	border: 1px solid rgba(129, 140, 248, 0.45);
	color: #C7D2FE;
	font-weight: 600;
}

.w3f .w3f__cta:hover {
	color: #FFFFFF;
	border-color: #818CF8;
	background: rgba(129, 140, 248, 0.1);
}

.w3f__title {
	display: block;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #E2E8F0;
}

.w3f__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.w3f__col a {
	display: inline-block;
	padding: 6px 0;
	font-size: 15px;
}

.w3f__bottom {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #64748B;
}

.w3f__langs {
	display: flex;
	gap: 4px;
}

.w3f__langs a,
.w3f__langs span {
	padding: 6px 10px;
	border-radius: 7px;
	font-size: 13px;
}

.w3f__langs .is-current {
	color: #E2E8F0;
	background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
	.w3f__inner {
		padding: 56px 16px 28px;
	}

	.w3f__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 24px;
	}

	.w3f__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.w3h__inner {
		padding: 0 16px;
		gap: 12px;
		position: relative;
	}

	.w3h__nav,
	.w3h-hide-sm {
		display: none;
	}

	.w3h-burger {
		display: block;
	}

	.w3h-burger[open] {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	.w3h-chev,
	.w3h__link {
		transition: none;
	}
}
