/* Menu principal : texte en gras, couleur des titres */
.main-menu > li {
	font-family: var(--font_title);
}

.main-menu > li > a {
	font-weight: bold;
	color: var(--primary_color);
	border-bottom: 4px solid transparent;
	border-radius: 0.3rem;
	transition: 0.2s ease-in-out;
}

/* Survol : soulignement noir, sans fond */
.main-menu > li > a:hover,
.main-menu > li > a:focus {
	color: var(--primary_color);
	border-bottom-color: var(--primary_color);
}

/* Item sélectionné : fond jaune + soulignement noir */
.main-menu > li.current-menu-item > a,
.main-menu > li.current_page_parent > a,
.main-menu > li.current-menu-item > a:hover,
.main-menu > li.current_page_parent > a:hover,
.main-menu > li.current-menu-item > a:focus,
.main-menu > li.current_page_parent > a:focus {
	background-color: #ffd800;
	color: var(--primary_color);
	border-bottom-color: var(--primary_color);
}

/* Titre de page : centré, ornement en vague dessous */
.page-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}


/* Image après le dernier item du menu principal (grands écrans) */
@media only screen and (min-width: 75em) {
	.main-menu > li {
		position: relative;
	}

	.main-menu > li:last-child:after {
		content: "";
		display: block;
		position: absolute;
		top: 1.5rem;
		right: -11rem;
		width: 9.7rem;
		height: 2.3rem;
		background: url(../img/nav-after.svg) 0 0 no-repeat;
		background-size: contain;
	}
}

/* En-tête : le bloc toolbar + menu reste collé en haut (au lieu d'être centré verticalement) */
#site_head > .row {
	align-items: flex-start;
}

/* Bande de la barre d'outils sur toute la largeur (couleur d'arrière-plan du thème, #ddecf3) */
@media only screen and (min-width: 60em) {
	#site_head {
		background-image: linear-gradient(to bottom, var(--bg_color, #ddecf3) 0, var(--bg_color, #ddecf3) 4.4rem, #fff 4.4rem, #fff 10.8rem);
	}

	/* Logo : dans la zone blanche (4,4rem -> 10,8rem), à hauteur du menu principal */
	.site-brand {
		margin: 0;
		padding-top: 5.4rem !important;
	}

	/* !important : la hauteur est aussi imposée en style en ligne par le thème parent */
	.site-brand .site-title img {
		height: 11rem !important;
		width: auto;
		max-width: none;
	}

	.site-nav {
		padding-top: 5.4rem;
	}

	/* Barre d'outils : remontée dans la bande (sans déplacer le menu principal) */
	.site-toolbar {
		position: relative;
		top: -1.8rem;
	}
}

