/* Structure principale du header */
header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
	height: 78px;
	width: 100%;
	background-color: var(--colorEtape3);
	color: #fff;
	gap: 15px;
	padding: 0 20px;
}

header a,
header a:visited,
header a:link,
header a:hover {
	color: #fff;
	text-decoration: none;
}

/* Menu et logo - taille fixe */
.menu-logo {
	width: 300px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

#header-logo-rabbit-immo {
	width: 100%;
	max-width: 300px;
	height: auto;
}

#btnMenuIntermediaire {
	color: #fff;
	border: none;
	background: transparent;
	font-size: 24px;
	padding: 5px;
	cursor: pointer;
}

/* Logo de la page en cours - taille fixe */
.logo-page-en-cours {
	width: 60px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-page-en-cours img {
	width: 40px;
	height: auto;
}

.logo-page-en-cours i.bi {
	font-size: 40px;
	line-height: 1;
}

/* Liens immobiliers - taille fixe */
#lien-immo {
	width: 180px;
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

#lien-immo img {
	width: 41px;
	height: auto;
	transition: transform 0.2s ease;
}

#lien-immo img:hover {
	transform: scale(1.1);
}

/* Info offre - taille fixe */
#info-offre {
	width: 150px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: center;
	gap: 5px;
}

#dateMiseAjour {
	font-size: 1em;
	cursor: help;
	font-weight: bold;
}

#info-offre img {
	width: 50px;
	height: auto;
	transition: transform 0.2s ease;
}

#info-offre .btn-abonnement:hover img {
	transform: scale(1.05);
}

/* Section header-simulateur - taille variable */
#header-simulateur {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#header-simulateur img {
	width: 40px;
	height: auto;
	transition: transform 0.2s ease;
}

#header-simulateur img:hover {
	transform: scale(1.1);
}

/* Crédits */
#credit {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 5px 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	font-size: 1.3em;
	font-weight: bold;
}

#credit .logo {
	width: 30px;
	height: auto;
}

/* Séparateur vertical */
.separatorV {
	border-left: 2px solid var(--colorEtape4);
	height: 50px;
	flex-shrink: 0;
	opacity: 0.8;
}

#logo-principal {
	margin-top: 10px;
}


#simulateur-titre-sous-logo-principal {
	font-size: 0.9em;
	font-weight: bold;
	text-align: center;
	margin-top: -2px;
}

.section-connexion {
	position: relative;
}

.admin-alert {
	position: absolute;
	top: 0;
	right: 0;
}

#nav-Navigation {
	position: absolute;
	top: 78px;
	left: 0;
	z-index: 1000;
	background-color: var(--colorEtape3);
	width: 300px;
	padding: 20px;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

#nav-Navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#nav-Navigation a {
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: 5px 0;
}

#nav-Navigation a:hover {
	color: #ddd;
}

#nav-Navigation .logo {
	width: 25px;
	margin-right: 10px;
}

#nav-Navigation i {
	margin-right: 10px;
}



.nav-link img {
	display: inline-block;
}

.nav-link:hover {
	background-color: var(--colorEtape4);
}


li.nav-item>a>i.bi {
	font-size: 1.7em;
	line-height: 0.6;
	margin-left: -2px;
}

@media screen and (max-width: 1100px) {
	#lien-immo,
	#info-offre,
	#header-simulateur,
	#section-connexion,
	.separatorV {
		display: none !important;
	}

	header {
		padding: 0 10px;
		gap: 5px;
		justify-content: flex-start;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
	}

	body {
		padding-top: 78px; /* Correspond à la hauteur du header pour éviter que le contenu ne soit caché */
	}

	.menu-logo {
		width: auto;
		gap: 10px;
		flex: 1;
	}

	#logo-principal {
		margin-top: 10px;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
	}

	#header-logo-rabbit-immo {
		max-width: 255px;
	}

	#simulateur-titre-sous-logo-principal {
		font-size: 0.85em;
		margin-top: -2px;
		white-space: nowrap;
	}

	#btnMenuIntermediaire {
		font-size: 24px;
		padding: 5px;
	}

	.logo-page-en-cours {
		width: auto;
	}

	.logo-page-en-cours img {
		width: 30px;
	}

	.logo-page-en-cours i.bi {
		font-size: 30px;
	}

	#credit {
		font-size: 1.25em;
		padding: 5px 0 5px 10px;
		background: transparent;
		gap: 8px;
		border-radius: 0;
		border-left: 2px solid var(--colorEtape4);
		flex-direction: row-reverse !important;
	}

	#credit .logo {
		width: 28px;
		margin-right: 0;
	}

	.hide-on-mobile {
		display: none !important;
	}
}