
/* ==========================================
   STYLES DE BASE
========================================== */
.crat-header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	position: relative;
}

.crat-logo-container {
	z-index: 1001;
}

.crat-logo-img {
	max-width: 180px;
	height: auto;
	display: block;
}

/* ==========================================
   BOUTON HAMBURGER
========================================== */
.crat-hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 32px;
	height: 28px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1001;
	position: relative;
}

.crat-hamburger-line {
	width: 100%;
	height: 3px;
	background: #1a1a2e;
	border-radius: 3px;
	transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	transform-origin: center;
}

.crat-hamburger.active .crat-hamburger-line:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.crat-hamburger.active .crat-hamburger-line:nth-child(2) {
	opacity: 0;
	transform: translateX(-20px);
}

.crat-hamburger.active .crat-hamburger-line:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================
   NAVIGATION DESKTOP
========================================== */
.crat-navigation {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: flex-end;
}

.crat-nav-overlay {
	display: none;
}

.crat-nav-content {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.crat-nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
	align-items: center;
}

.crat-nav-item {
	position: relative;
}

.crat-nav-link {
	color: #1a1a2e;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
}

.crat-nav-link:hover {
	color: #ff6b35;
}

.crat-arrow {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.crat-nav-item:hover .crat-arrow {
	transform: rotate(180deg);
}

/* ==========================================
   SOUS-MENUS DESKTOP
========================================== */
.crat-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	min-width: 250px;
	list-style: none;
	padding: 1rem 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	z-index: 1000;
}

.crat-has-submenu:hover > .crat-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.crat-submenu li {
	position: relative;
}

.crat-submenu a {
	display: block;
	padding: 0.75rem 1.5rem;
	color: #1a1a2e;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.3s ease;
	position: relative;
}

.crat-submenu a:hover {
	background: #f8f9fa;
	color: #ff6b35;
	padding-left: 2rem;
}

/* Sous-menus imbriqués */
.crat-submenu-nested {
	position: absolute;
	left: 100%;
	top: 0;
	background: #ffffff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	min-width: 250px;
	list-style: none;
	padding: 1rem 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.crat-has-submenu-nested:hover > .crat-submenu-nested {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.crat-arrow-right {
	float: right;
	font-size: 12px;
}

/* ==========================================
   BOUTON ESPACE MEMBRE
========================================== */
.crat-nav-cta {
	margin-left: 1rem;
}

.crat-btn-member {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	padding: 0.75rem 1.5rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.crat-btn-member:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ==========================================
   RESPONSIVE TABLETTE (max-width: 1024px)
========================================== */
@media (max-width: 1024px) {
	.crat-hamburger {
		display: flex;
	}

	.crat-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 400px;
		height: 100vh;
		background: #ffffff;
		transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
		z-index: 1000;
		overflow-y: auto;
	}

	.crat-navigation.active {
		right: 0;
		box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
	}

	.crat-nav-overlay {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: all 0.4s ease;
		z-index: 999;
		backdrop-filter: blur(5px);
	}

	.crat-nav-overlay.active {
		opacity: 1;
		visibility: visible;
	}

	.crat-nav-content {
		flex-direction: column;
		align-items: stretch;
		padding: 5rem 2rem 2rem;
		gap: 0;
	}

	.crat-nav-list {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	.crat-nav-item {
		border-bottom: 1px solid #e9ecef;
		width: 100%;
	}

	.crat-nav-link {
		padding: 1.25rem 1rem;
		font-size: 16px;
		justify-content: space-between;
		width: 100%;
		display: flex;
	}

	.crat-arrow {
		transition: transform 0.3s ease;
	}

	.crat-nav-item.active > .crat-nav-link .crat-arrow {
		transform: rotate(180deg);
	}

	/* Sous-menus mobile */
	.crat-submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: #f8f9fa;
		border-radius: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
		padding: 0;
	}

	.crat-nav-item.active > .crat-submenu {
		max-height: 1000px;
		padding: 0.5rem 0;
	}

	.crat-submenu a {
		padding: 0.875rem 1.5rem;
		font-size: 15px;
	}

	.crat-submenu a:hover {
		padding-left: 2rem;
		background: #e9ecef;
	}

	/* Sous-menus imbriqués mobile */
	.crat-submenu-nested {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: #e9ecef;
		border-radius: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
		padding: 0;
	}

	.crat-has-submenu-nested.active > .crat-submenu-nested {
		max-height: 1000px;
		padding: 0.5rem 0;
	}

	.crat-submenu-nested a {
		padding-left: 2.5rem;
		background: #e9ecef;
	}

	.crat-submenu-nested a:hover {
		padding-left: 3rem;
		background: #dee2e6;
	}

	.crat-nav-cta {
		margin: 2rem 0 0;
	}

	.crat-btn-member {
		display: block;
		text-align: center;
		padding: 1rem;
		font-size: 16px;
	}
}

/* ==========================================
   RESPONSIVE MOBILE (max-width: 480px)
========================================== */
@media (max-width: 480px) {
	.crat-navigation {
		width: 90%;
	}

	.crat-logo-img {
		max-width: 140px;
	}

	.crat-nav-content {
		padding: 4rem 1.5rem 1.5rem;
	}

	.crat-nav-link {
		font-size: 15px;
	}

	.crat-submenu a {
		font-size: 14px;
		padding: 0.75rem 1.25rem;
	}
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.crat-navigation.active {
	animation: slideInRight 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

