/* dateka-header.css — Styles structurels du widget Header Dateka. */

.dateka-header {
	background-color: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 100;
}
.dateka-header__inner {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ---- Logo ---- */
.dateka-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}
.dateka-header__logo img {
	max-width: 170px;
	width: auto;
	max-height: 70px;
	height: auto;
	display: block;
	object-fit: contain;
}

/* ---- Desktop Navigation ---- */
.dateka-header__nav {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}
.dateka-header__nav-link {
	color: var(--dateka-navy, #002755);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	transition: color 0.25s ease;
}
.dateka-header__nav-link:hover,
.dateka-header__nav-link:focus {
	color: var(--dateka-gold, #C99048);
}
.dateka-header__nav-link:focus-visible {
	outline: 2px solid var(--dateka-gold, #C99048);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---- Nav item wrapper (for dropdown) ---- */
.dateka-header__nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.dateka-header__nav-item--has-sub {
	padding-bottom: 12px;
	margin-bottom: -12px;
}

/* ---- Chevron ---- */
.dateka-header__nav-chevron {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: 5px;
	transition: transform 0.25s ease;
	vertical-align: middle;
	position: relative;
	top: -1px;
}
.dateka-header__nav-link--parent {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font: inherit;
	color: inherit;
}

/* ---- Desktop Dropdown ---- */
.dateka-header__dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 260px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 39, 85, 0.12);
	padding: 8px 0;
	z-index: 200;
}
.dateka-header__nav-item--has-sub:hover > .dateka-header__dropdown,
.dateka-header__nav-item--has-sub:focus-within > .dateka-header__dropdown {
	display: block;
}
.dateka-header__nav-item--has-sub:hover > .dateka-header__nav-link--parent .dateka-header__nav-chevron {
	transform: rotate(-135deg);
}
.dateka-header__dropdown-link {
	display: block;
	padding: 10px 20px;
	color: var(--dateka-navy, #002755);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.dateka-header__dropdown-link:hover {
	background-color: rgba(201, 144, 72, 0.08);
	color: var(--dateka-gold, #C99048);
}
.dateka-header__dropdown-link:focus-visible {
	outline: 2px solid var(--dateka-gold, #C99048);
	outline-offset: -2px;
}

/* ---- CTA Button ---- */
.dateka-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--dateka-gold, #C99048);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 6px;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease;
	flex-shrink: 0;
}
.dateka-header__cta:hover {
	background-color: #b07c3a;
	color: #fff;
}
.dateka-header__cta:focus-visible {
	outline: 2px solid var(--dateka-navy, #002755);
	outline-offset: 2px;
}

/* ---- Hamburger ---- */
.dateka-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	cursor: pointer;
	padding: 8px;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.dateka-header__burger:hover {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--dateka-gold, #C99048);
}
.dateka-header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--dateka-header-burger-color, #ffffff);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}

/* Burger open state */
.dateka-header--open .dateka-header__burger {
	border-color: var(--dateka-gold, #C99048);
}
.dateka-header--open .dateka-header__burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.dateka-header--open .dateka-header__burger span:nth-child(2) {
	opacity: 0;
}
.dateka-header--open .dateka-header__burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Panel ---- */
.dateka-header__mobile-panel {
	display: none;
	flex-direction: column;
	padding: 24px;
	background-color: var(--dateka-header-mobile-bg, #ffffff);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 12px 32px rgba(0, 39, 85, 0.12);
	position: relative;
	z-index: 99;
	width: 100%;
	box-sizing: border-box;
}
.dateka-header--open .dateka-header__mobile-panel {
	display: flex;
}
.dateka-header__mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}
.dateka-header__mobile-link {
	display: block;
	padding: 14px 0;
	color: var(--dateka-header-mobile-link-color, var(--dateka-navy, #002755));
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: color 0.25s ease, padding-left 0.2s ease;
}
.dateka-header__mobile-link:hover,
.dateka-header__mobile-link:focus {
	color: var(--dateka-gold, #C99048);
	padding-left: 4px;
}
.dateka-header__mobile-link:focus-visible {
	outline: 2px solid var(--dateka-gold, #C99048);
	outline-offset: -2px;
}
.dateka-header__cta--mobile {
	margin-top: 20px;
	text-align: center;
	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

/* ---- Mobile submenu accordion ---- */
.dateka-header__mobile-item--has-sub {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dateka-header__mobile-link--parent {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	font: inherit;
	text-align: left;
	color: var(--dateka-header-mobile-link-color, var(--dateka-navy, #002755));
	padding: 14px 0;
	transition: color 0.25s ease;
}
.dateka-header__mobile-link--parent:hover {
	color: var(--dateka-gold, #C99048);
}
.dateka-header__mobile-link--parent .dateka-header__nav-chevron {
	transition: transform 0.25s ease;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}
.dateka-header__mobile-link--parent[aria-expanded="true"] .dateka-header__nav-chevron {
	transform: rotate(-135deg);
}
.dateka-header__mobile-dropdown {
	padding-left: 16px;
	padding-bottom: 10px;
}
.dateka-header__mobile-sublink {
	display: block;
	padding: 10px 0;
	color: var(--dateka-header-mobile-sublink-color, #456183);
	font-size: 14px;
	font-weight: 400;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.dateka-header__mobile-sublink:last-child {
	border-bottom: none;
}
.dateka-header__mobile-sublink:hover {
	color: var(--dateka-gold, #C99048);
	padding-left: 4px;
}

/* ---- Responsive: Tablet & Mobile ---- */
@media (max-width: 1024px) {
	.dateka-header__inner {
		padding: 0 16px;
	}
	.dateka-header__nav {
		gap: 16px;
	}
	.dateka-header__nav-link {
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.dateka-header__nav {
		display: none;
	}
	.dateka-header__cta:not(.dateka-header__cta--mobile) {
		display: none;
	}
	.dateka-header__burger {
		display: flex;
	}
	.dateka-header__logo img {
		max-width: 140px;
	}
}

@media (max-width: 480px) {
	.dateka-header__inner {
		min-height: 64px;
		padding: 0 12px;
	}
	.dateka-header__logo img {
		max-width: 125px;
	}
	.dateka-header__mobile-panel {
		padding: 18px 16px;
	}
}
