/**
 * En-tête et pied de page — Djizhub (DEVCON7).
 */

/* -------------------------------------------------------------------------- */
/* Corps : décalage sous header fixe                                           */
/* -------------------------------------------------------------------------- */

body.djizhub-has-custom-header {
	--djizhub-header-pad-y: 1.1rem;
	--djizhub-header-pad-x: clamp(1rem, 4vw, 2rem);
	--djizhub-header-h: 5.5rem;
	padding-top: var(--djizhub-header-h);
}

body.djizhub-has-custom-header.admin-bar {
	--wp-admin--admin-bar--height: 32px;
}

@media screen and (max-width: 782px) {
	body.djizhub-has-custom-header.admin-bar {
		--wp-admin--admin-bar--height: 46px;
	}
}

body.djizhub-has-custom-header.admin-bar .djizhub-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

body.djizhub-header-drawer-open {
	overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

.djizhub-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100050;
	transition:
		box-shadow 0.35s ease,
		border-color 0.35s ease;
}

.djizhub-header__bar {
	background: rgba(3, 17, 26, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid transparent;
	transition:
		padding 0.35s ease,
		background 0.35s ease;
}

.djizhub-header.is-scrolled .djizhub-header__bar {
	padding-top: 0;
	padding-bottom: 0;
	border-bottom-color: rgba(0, 198, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.djizhub-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4, 1rem);
	max-width: var(--container-max, 72rem);
	margin: 0 auto;
	padding: var(--djizhub-header-pad-y) var(--djizhub-header-pad-x);
	transition: padding 0.35s ease;
}

.djizhub-header.is-scrolled .djizhub-header__inner {
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.djizhub-header__logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.12em;
	text-decoration: none;
	color: var(--color-text, #e8f4f8);
	font-family: var(--font-display, "Clash Display", sans-serif);
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
}

.djizhub-header__logo:hover,
.djizhub-header__logo:focus-visible {
	color: #fff;
}

.djizhub-header__logo-dot {
	display: inline-block;
	width: 0.38em;
	height: 0.38em;
	border-radius: 50%;
	background: #00c6ff;
	box-shadow: 0 0 14px rgba(0, 198, 255, 0.55);
	vertical-align: 0.15em;
}

/* Logo image (Apparence → Personnaliser → Identité du site). */
.djizhub-header__logo:has(.djizhub-site-logo__img) {
	align-items: center;
}

.djizhub-site-logo__img--header {
	display: block;
	width: auto;
	height: auto;
	max-height: 2.35rem;
	max-width: min(200px, 42vw);
}

.djizhub-header__nav {
	flex: 1;
	display: none;
	justify-content: center;
}

@media (min-width: 1025px) {
	.djizhub-header__nav {
		display: flex;
	}
}

.djizhub-header__list {
	display: flex;
	align-items: center;
	gap: clamp(0.25rem, 1.5vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.djizhub-header__item {
	position: relative;
}

.djizhub-header__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.65rem;
	font-size: var(--fs-sm, 0.9375rem);
	font-weight: 600;
	color: var(--color-muted, #8baebf);
	text-decoration: none;
	border-radius: var(--radius-sm, 8px);
	transition: color 0.2s ease, background 0.2s ease;
	background: transparent;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.djizhub-header__link:hover,
.djizhub-header__link:focus-visible {
	color: var(--color-text, #e8f4f8);
	background: rgba(0, 198, 255, 0.08);
}

/* Liens navigation (ancres) : soulignement qui glisse depuis la gauche */
.djizhub-header__nav a.djizhub-header__link {
	position: relative;
}

.djizhub-header__nav a.djizhub-header__link::after {
	content: "";
	position: absolute;
	left: 0.65rem;
	right: 0.65rem;
	bottom: 0.35rem;
	height: 2px;
	background: linear-gradient(90deg, #00c6ff, rgba(0, 198, 255, 0.35));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	border-radius: 1px;
}

.djizhub-header__nav a.djizhub-header__link:hover::after,
.djizhub-header__nav a.djizhub-header__link:focus-visible::after {
	transform: scaleX(1);
}

.djizhub-header__caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.7;
}

.djizhub-header__submenu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 14px;
}

.djizhub-header__submenu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	min-width: 240px;
	margin: 0;
	padding: var(--space-2, 0.5rem);
	list-style: none;
	background: rgba(7, 28, 38, 0.95);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(0, 198, 255, 0.15);
	border-radius: var(--radius-md, 12px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		transform 0.25s ease;
	z-index: 2;
}

.djizhub-header__item--dropdown:hover .djizhub-header__submenu,
.djizhub-header__item--dropdown:focus-within .djizhub-header__submenu,
.djizhub-header__item--dropdown.is-open .djizhub-header__submenu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.djizhub-header__submenu-link {
	display: flex;
	align-items: center;
	gap: var(--space-3, 0.75rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	font-size: var(--fs-sm, 0.875rem);
	font-weight: 600;
	color: var(--color-text, #e8f4f8);
	text-decoration: none;
	border-radius: var(--radius-sm, 8px);
	transition: background 0.2s ease;
}

.djizhub-header__submenu-link .dashicons {
	color: #00c6ff;
	font-size: 1.1rem !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
}

.djizhub-header__submenu-link:hover,
.djizhub-header__submenu-link:focus-visible {
	background: rgba(0, 198, 255, 0.1);
}

.djizhub-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-3, 0.75rem);
}

.djizhub-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	font-size: var(--fs-sm, 0.875rem);
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #00597e 0%, #00c6ff 100%);
	background-size: 140% 140%;
	box-shadow: 0 4px 20px rgba(0, 89, 126, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.djizhub-header__cta:hover,
.djizhub-header__cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 198, 255, 0.35);
}

.djizhub-header__cta-secondary {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.15rem;
	font-size: var(--fs-sm, 0.875rem);
	font-weight: 700;
	color: var(--color-text, #e8f4f8);
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid rgba(0, 198, 255, 0.45);
	background: rgba(0, 198, 255, 0.08);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
	white-space: nowrap;
}

@media (min-width: 1025px) {
	.djizhub-header__cta-secondary {
		display: inline-flex;
	}
}

.djizhub-header__cta-secondary:hover,
.djizhub-header__cta-secondary:focus-visible {
	color: #fff;
	border-color: rgba(0, 198, 255, 0.85);
	background: rgba(0, 198, 255, 0.18);
	transform: translateY(-2px);
}

.djizhub-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(0, 198, 255, 0.1);
	border: 1px solid rgba(0, 198, 255, 0.25);
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
}

@media (min-width: 1025px) {
	.djizhub-header__toggle {
		display: none;
	}
}

.djizhub-header__toggle-bar {
	display: block;
	height: 2px;
	width: 22px;
	margin: 0 auto;
	background: var(--color-text, #e8f4f8);
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.djizhub-header__toggle[aria-expanded="true"] .djizhub-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.djizhub-header__toggle[aria-expanded="true"] .djizhub-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.djizhub-header__toggle[aria-expanded="true"] .djizhub-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Drawer mobile */
.djizhub-header__drawer {
	position: fixed;
	inset: 0;
	z-index: 100060;
	background: rgba(3, 17, 26, 0.97);
	backdrop-filter: blur(12px);
	display: flex;
	justify-content: flex-end;
	visibility: hidden;
	pointer-events: none;
}

.djizhub-header__drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.djizhub-header__drawer[hidden] {
	display: none !important;
}

.djizhub-header__drawer-inner {
	position: relative;
	width: min(100%, 420px);
	height: 100%;
	padding: var(--space-10, 2.5rem) var(--space-8, 2rem);
	overflow-y: auto;
	background: linear-gradient(180deg, #051a24 0%, #03111a 100%);
	border-left: 1px solid rgba(0, 198, 255, 0.12);
	box-shadow: -12px 0 48px rgba(0, 0, 0, 0.4);
}

.djizhub-header__drawer-close {
	position: absolute;
	top: var(--space-4, 1rem);
	right: var(--space-4, 1rem);
	width: 44px;
	height: 44px;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--color-text, #e8f4f8);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
}

.djizhub-header__drawer-heading {
	margin: var(--space-8, 2rem) 0 var(--space-3, 0.75rem);
	font-size: var(--fs-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #00c6ff;
}

.djizhub-header__drawer-sub,
.djizhub-header__drawer-list {
	margin: 0 0 var(--space-6, 1.5rem);
	padding: 0;
	list-style: none;
}

.djizhub-header__drawer-sub .djizhub-header__drawer-link {
	font-size: var(--fs-sm, 0.875rem);
	color: var(--color-muted, #8baebf);
	padding: 0.35rem 0;
}

.djizhub-header__drawer-list .djizhub-header__drawer-link {
	font-size: var(--fs-lg, 1.25rem);
	font-weight: 600;
	padding: 0.65rem 0;
}

.djizhub-header__drawer-link {
	display: block;
	color: var(--color-text, #e8f4f8);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.djizhub-header__drawer-link:hover,
.djizhub-header__drawer-link:focus-visible {
	color: #00c6ff;
	padding-left: 6px;
}

.djizhub-header__drawer-marketplace {
	display: block;
	margin-top: var(--space-6, 1.5rem);
	padding: 1rem 1.5rem;
	text-align: center;
	font-weight: 700;
	color: var(--color-text, #e8f4f8);
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid rgba(0, 198, 255, 0.45);
	background: rgba(0, 198, 255, 0.1);
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
}

.djizhub-header__drawer-marketplace:hover,
.djizhub-header__drawer-marketplace:focus-visible {
	color: #fff;
	border-color: rgba(0, 198, 255, 0.85);
	background: rgba(0, 198, 255, 0.2);
}

.djizhub-header__drawer-cta {
	display: block;
	margin-top: var(--space-4, 1rem);
	padding: 1rem 1.5rem;
	text-align: center;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #00597e, #00c6ff);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.djizhub-footer {
	position: relative;
	background: #03111a;
	color: var(--color-text, #e8f4f8);
	font-family: var(--font-body, "DM Sans", sans-serif);
	overflow: hidden;
}

.djizhub-footer__pattern {
	position: absolute;
	inset: -20% -50%;
	opacity: 0.03;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2300C6FF' stroke-width='1'%3E%3Cpath d='M0 60h120M60 0v120M15 15l90 90M105 15L15 105'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Cpath d='M30 30h60v60H30z'/%3E%3Ccircle cx='60' cy='60' r='18'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 120px 120px;
	animation: djizhub-footer-pattern-drift 30s linear infinite;
	will-change: transform;
}

@keyframes djizhub-footer-pattern-drift {
	0% {
		transform: translateX(0) translateY(0);
	}
	100% {
		transform: translateX(-120px) translateY(40px);
	}
}

.djizhub-footer__inner {
	position: relative;
	z-index: 1;
	max-width: var(--container-max, 72rem);
	margin: 0 auto;
	padding: var(--space-16, 4rem) var(--container-pad, 1.5rem) var(--space-8, 2rem);
}

.djizhub-footer__brand {
	text-align: center;
	margin-bottom: var(--space-12, 3rem);
}

.djizhub-footer__logo-wrap {
	margin: 0 0 var(--space-2, 0.5rem);
}

.djizhub-footer__logo {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	margin: 0;
	text-decoration: none;
	color: var(--color-text, #e8f4f8);
	font-family: var(--font-display, "Clash Display", sans-serif);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.djizhub-footer__logo:hover,
.djizhub-footer__logo:focus-visible {
	color: #fff;
}

.djizhub-site-logo__img--footer {
	display: block;
	width: auto;
	height: auto;
	max-height: clamp(2.5rem, 8vw, 3.25rem);
	max-width: min(280px, 85vw);
	margin: 0 auto;
}

.djizhub-footer__logo-dot {
	display: inline-block;
	width: 0.32em;
	height: 0.32em;
	margin-left: 0.08em;
	border-radius: 50%;
	background: #00c6ff;
	vertical-align: 0.2em;
	box-shadow: 0 0 20px rgba(0, 198, 255, 0.45);
}

.djizhub-footer__tagline {
	margin: var(--space-3, 0.75rem) 0 0;
	font-size: var(--fs-md, 1.125rem);
	color: var(--color-muted, #8baebf);
}

.djizhub-footer__cols {
	display: grid;
	gap: var(--space-8, 2rem);
	margin-bottom: var(--space-10, 2.5rem);
}

@media (min-width: 768px) {
	.djizhub-footer__cols {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.djizhub-footer__cols {
		grid-template-columns: repeat(4, 1fr);
	}
}

.djizhub-footer__col-title {
	margin: 0 0 var(--space-4, 1rem);
	font-size: var(--fs-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #00c6ff;
}

.djizhub-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.djizhub-footer__links a {
	display: inline-block;
	padding: 0.35rem 0;
	font-size: var(--fs-sm, 0.9375rem);
	color: var(--color-muted, #8baebf);
	text-decoration: none;
	transition: color 0.2s ease;
}

.djizhub-footer__links a:hover,
.djizhub-footer__links a:focus-visible {
	color: var(--color-text, #e8f4f8);
}

.djizhub-footer__mm-label {
	margin: 0 0 var(--space-2, 0.5rem);
	font-size: var(--fs-xs, 0.75rem);
	color: var(--color-muted, #8baebf);
}

.djizhub-footer__mm {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2, 0.5rem);
	margin-bottom: var(--space-5, 1.25rem);
}

.djizhub-footer__mm-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.35rem 0.85rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	border-radius: var(--radius-sm, 8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.djizhub-footer__mm-badge--wave {
	background: linear-gradient(135deg, #005bf2, #00d4aa);
	color: #fff;
}

.djizhub-footer__mm-badge--om {
	background: #ff7900;
	color: #fff;
}

.djizhub-footer__stores {
	display: flex;
	flex-direction: column;
	gap: var(--space-4, 1rem);
	align-items: flex-start;
}

.djizhub-footer__store-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
	line-height: 0;
	opacity: 0.9;
}

.djizhub-footer__store-badges img {
	height: auto;
	width: auto;
	max-width: 132px;
	max-height: 40px;
	object-fit: contain;
}

.djizhub-footer__store-badges img:last-child {
	max-width: 148px;
	max-height: 46px;
}

.djizhub-footer__app-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.15rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #03111a;
	text-decoration: none;
	background: linear-gradient(135deg, var(--color-accent, #00c6ff), #33d6ff);
	border-radius: 999px;
	box-shadow: 0 4px 20px rgba(0, 198, 255, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.djizhub-footer__app-cta:hover,
.djizhub-footer__app-cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 26px rgba(0, 198, 255, 0.35);
	color: #03111a;
}

.djizhub-footer__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4, 1rem);
	margin-bottom: var(--space-8, 2rem);
}

.djizhub-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--color-muted, #8baebf);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.djizhub-footer__social-link:hover,
.djizhub-footer__social-link:focus-visible {
	color: #00c6ff;
	background: rgba(0, 198, 255, 0.1);
	border-color: rgba(0, 198, 255, 0.35);
}

.djizhub-footer__bar {
	padding-top: var(--space-6, 1.5rem);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
}

.djizhub-footer__legal {
	margin: 0;
	font-size: var(--fs-xs, 0.8125rem);
	color: var(--color-muted, #8baebf);
}

.djizhub-footer__legal a {
	color: var(--color-text, #e8f4f8);
	text-decoration: none;
}

.djizhub-footer__legal a:hover,
.djizhub-footer__legal a:focus-visible {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.djizhub-header__bar,
	.djizhub-header__inner,
	.djizhub-header__toggle-bar {
		transition: none;
	}

	.djizhub-footer__pattern {
		animation: none;
	}
}
