/**
 * Styles pour le header MédiaCSE
 * /public/css/header.css
 */

/* Background publicitaire */
.ad-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
	opacity: 0.1;
}

/* Header principal */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Header top */
.header-top {
	background: linear-gradient(135deg, #1a237e, #3949ab);
	color: white;
	padding: 8px 0;
	font-size: 0.9em;
}

.header-top-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.contact-info {
	display: flex;
	gap: 20px;
}

.contact-info span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.auth-links {
	display: flex;
	gap: 15px;
}

.auth-links a {
	color: white;
	text-decoration: none;
	transition: opacity 0.3s;
	font-weight: 500;
}

.auth-links a:hover {
	opacity: 0.8;
}

/* Navbar */
.navbar {
	background: white;
	padding: 15px 0;
}

.nav-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo img {
	height: 45px;
	transition: transform 0.3s ease;
}

.logo:hover img {
	transform: scale(1.05);
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 30px;
}

.nav-menu li a {
	color: #1a237e;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1em;
	transition: color 0.3s ease;
	position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
	color: #3949ab;
}

.nav-menu li a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: #3949ab;
	transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
	width: 100%;
}

/* Menu hamburger */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 4px;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: #1a237e;
	transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

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

/* Container global */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
	.header-top-content {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
	
	.contact-info {
		flex-direction: column;
		gap: 5px;
	}
	
	.nav-content {
		position: relative;
	}
	
	.hamburger {
		display: flex;
	}
	
	.nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
		gap: 15px;
	}
	
	.nav-menu.active {
		display: flex;
	}
	
	.nav-menu li a {
		font-size: 1.2em;
		padding: 10px 0;
		display: block;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 15px;
	}
	
	.logo img {
		height: 35px;
	}
	
	.nav-menu {
		padding: 15px;
	}
}

/* Animations */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.header {
	animation: slideDown 0.6s ease;
}