/**
 * Styles communs pour le header de navigation
 * Thème: Mariage RSVP
 */

/* ============================================
   HEADER NAVIGATION
   ============================================ */

.hero-header {
	position: relative;
	z-index: 1000;
	padding: 20px 0;
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
}

.hero-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
	padding: 0 20px;
}

.nav-link {
	color: #fbbf24;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	padding: 10px 15px;
	border-radius: 8px;
	transition: all 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	transform: translateY(-2px);
}

/* Bouton d'accueil spécial */
.home-link {
	background: rgba(251, 191, 36, 0.2);
	font-weight: 700;
}

.home-link:hover {
	background: rgba(251, 191, 36, 0.3);
	transform: translateY(-2px);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

.nav-dropdown {
	position: relative;
}

.dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 5px;
}

.chevron {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	padding: 10px 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	z-index: 99999;
	pointer-events: none;
}

.dropdown-menu a {
	display: block;
	padding: 12px 20px;
	color: #2d3748;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border-radius: 0;
	text-shadow: none;
}

.dropdown-menu a:hover {
	background: rgba(251, 191, 36, 0.1);
	color: #fbbf24;
	transform: none;
}

.nav-dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.nav-dropdown:hover {
	z-index: 100000;
}

.nav-dropdown:hover .chevron {
	transform: rotate(180deg);
}

/* ============================================
   MOBILE MENU HAMBURGER
   ============================================ */

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 30px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1001;
	position: relative;
}

.mobile-menu-toggle span {
	width: 25px;
	height: 3px;
	background: #fbbf24;
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}
	
	.hero-nav {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100vh;
		background: rgba(0, 0, 0, 0.95);
		backdrop-filter: blur(20px);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 30px;
		padding: 0;
		transition: left 0.3s ease;
		z-index: 1000;
	}
	
	.hero-nav.mobile-open {
		left: 0;
	}
	
	.nav-link {
		font-size: 18px;
		padding: 15px 25px;
		width: 80%;
		text-align: center;
		border-radius: 10px;
	}
	
	.dropdown-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: rgba(255, 255, 255, 0.1);
		margin-top: 10px;
		box-shadow: none;
	}
	
	.dropdown-menu a {
		padding: 10px 20px;
		text-align: center;
		display: block;
	}
}

@media (max-width: 480px) {
	.hero-nav {
		flex-direction: column;
		gap: 15px;
	}
	
	.nav-link {
		font-size: 13px;
		padding: 6px 10px;
	}
}
