/* ============================================================
   EN-TÊTE « à l'identique de mantes-sud-insoumis.fr » :
   bandeau blanc pleine largeur (80px), ombre douce,
   logo 125px à gauche, filet vertical, liens Inter 15px,
   à droite : pastille jaune « Action populaire » (logo + texte)
   + bouton violet « FAIRE UN DON »,
   et un carré violet 80×80 collé au bord droit (burger sur mobile).
   ============================================================ */

/* --- Conteneur principal : hauteur 80px, pleine largeur, ombre douce --- */
.msi-header {
	background-color: #ffffff !important;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
	position: sticky;
	top: 0;
	z-index: 999;
	border-top: none;
	border-image: none;
	display: flex !important;
	flex-direction: column;
}

/* Le bandeau (inner) et le burger sur la MÊME ligne : le burger chevauche
   le coin droit (comme la source, le carré violet fait 80px de haut sur
   les 80px du bandeau). Le menu déroulant reste en dessous. */
.msi-header-inner {
	flex: 1 1 auto;
	width: 100%;
}

.msi-burger {
	flex: 0 0 auto;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1000;
}

.msi-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	height: 80px;
	padding: 0 20px;
	gap: 20px;
}

/* --- Logo à gauche : contenu dans la barre 80px (112px large, 64px haut max) --- */
.msi-logo {
	margin: 0 !important;
	width: 112px;
	height: 64px;
	display: flex;
	align-items: center;
}

.msi-logo img {
	width: 112px !important;
	height: 64px !important;
	max-height: 64px;
	object-fit: contain;
	display: block;
}

/* --- Filet vertical entre logo et nav (comme l'original) --- */
.msi-header-sep {
	flex: 1 0 0px;
	height: 80px;
	width: 1px !important;
	max-width: 1px;
	background: transparent;
	border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
	margin: 0 !important;
	opacity: 1;
}

/* --- Liens de navigation : Inter 15px medium, sombre, underline au survol/courant --- */
.msi-nav-links {
	gap: 25px;
	height: 80px;
}

.msi-nav-item {
	margin: 0 !important;
	white-space: nowrap;
}

.msi-nav-item a {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.5em;
	color: #111111;
	text-transform: capitalize;
	text-decoration: none;
}

.msi-nav-item a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Zone d'actions à droite : pastille Action Populaire + bouton don --- */
.msi-header-actions {
	gap: 10px;
	height: 80px;
}

/* Pastille « Action populaire » : fond jaune #ffec00, radius 8px, 44px de haut */
.msi-btn-ap {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 5px 10px;
	background-color: rgb(255, 236, 0);
	border-radius: 8px;
	text-decoration: none;
	transition: filter 0.15s ease;
	white-space: nowrap;
}

.msi-btn-ap:hover {
	filter: brightness(0.94);
}

.msi-btn-ap img {
	width: 24px;
	height: 28px;
	object-fit: contain;
}

.msi-btn-ap-text {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: rgb(0, 35, 44);
	text-align: left;
}

/* Bouton « FAIRE UN DON » : même gabarit que la pastille jaune
   (44px de haut, radius 8px), fond violet, texte blanc gras 14px */
.msi-btn-don {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 5px 10px;
	background-color: rgb(123, 19, 214);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 16.8px;
	letter-spacing: 0.01em;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.msi-btn-don:hover {
	background-color: rgb(104, 16, 182);
	color: #ffffff;
}

/* --- Mobile : burger carré violet affiché, liens et pastille AP masqués --- */
@media (max-width: 900px) {
	.msi-header-sep,
	.msi-nav-links,
	.msi-btn-ap {
		display: none;
	}

	.msi-header-actions {
		margin-left: auto;
	}

	.msi-btn-don {
		font-size: 14px;
		padding: 8px 12px;
	}
}

@media (max-width: 480px) {
	.msi-logo img {
		width: 84px !important;
		height: 48px !important;
	}
}
/* ============================================================
   BOUTON BURGER : carré violet 80×80 collé à droite du header,
   TOUJOURS visible (desktop inclus), comme la source.
   ============================================================ */

.msi-burger {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	margin: 0 !important;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	background-color: rgb(123, 19, 214);
	transition: background-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.msi-burger:hover,
.msi-burger:focus-visible {
	background-color: rgb(104, 16, 182);
}

.msi-burger svg {
	width: 28px;
	height: 32px;
	display: block;
}

/* Le carré violet occupe le coin droit pleine hauteur : le conteneur interne
   (msi-header-inner) ne doit PAS avoir de padding droit. */
.msi-header-inner {
	padding-right: 0;
}

/* Les boutons AP + DON ne doivent pas passer sous le burger (80px) :
   on réserve la place à droite. */
.msi-header-inner {
	padding-right: 80px;
}

/* --- Menu mobile déroulant --- */
.msi-mobile-menu {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);
}

.msi-mobile-menu[hidden] {
	display: none;
}

.msi-mobile-menu a {
	display: flex;
	align-items: center;
	height: 60px;
	padding: 0 20px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: #111111;
	text-transform: capitalize;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.msi-mobile-menu a:hover {
	background: rgba(123, 19, 214, 0.05);
}

.msi-mobile-menu a.msi-mobile-don {
	background-color: rgb(123, 19, 214);
	color: #ffffff;
	font-weight: 700;
	justify-content: center;
	border-bottom: none;
}

/* --- Ancien comportement mobile supprimé : le header reste complet --- */
@media (max-width: 900px) {
	.msi-header-sep,
	.msi-nav-links {
		display: none;
	}

	.msi-header-actions {
		margin-left: auto;
	}

	.msi-btn-ap {
		display: flex;
	}

	.msi-btn-don {
		font-size: 14px;
		padding: 5px 10px;
	}
}

@media (max-width: 480px) {
	.msi-btn-ap-text {
		display: none;
	}

	.msi-btn-ap {
		padding: 5px 8px;
	}
}
