/*
  menu.css : menu du site (voir menu.php)
  - .barreMenu : barre horizontale (ordinateur), dans l'allure des anciens onglets bleus, sans images ;
  - .side_menu : volet ouvert par le bouton « MENU » (téléphone, moins de 640 px de large).
*/

/* ---------- barre (ordinateur) ---------- */
.barreMenu {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 32px;
	background: linear-gradient(#fdfdfd, #e6e6e6 55%, #cdcdcd);
	border-top: 3px solid #1e6fa8;
	border-bottom: 6px solid #13a7e3;
	font-family: Roboto, Arial, sans-serif;
}
.barreMenu__gauche {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 6px;
}
.barreMenu__gauche img { display: block; border: 0; }
.barreMenu__machinerie {
	font-size: 20px;
	line-height: 24px;
	color: #666;
	text-decoration: none;
}
.barreMenu ul {
	display: flex;
	margin: 0;
	padding: 0 12px 0 30px;
	list-style: none;
	background: linear-gradient(#eef7fd, #b4dff8 60%, #7cc6f0);
	clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%); /* bord gauche en biais, comme l'ancien onglet */
}
.barreMenu li { display: flex; }
.barreMenu a:link, .barreMenu a:visited { color: #2c3e57; }
.barreMenu ul a {
	display: flex;
	align-items: center;
	padding: 0 16px;
	font-family: Georgia, "Century Schoolbook", "Times New Roman", serif;
	font-size: 1rem;
	font-style: italic;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	border-left: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: inset 1px 0 rgba(30, 111, 168, 0.25);
}
.barreMenu li:first-child a { border-left: 0; box-shadow: none; }
.barreMenu ul a:hover, .barreMenu ul a:focus-visible {
	background: rgba(255, 255, 255, 0.5);
	color: #0b3d6b;
}
.barreMenu ul a[aria-current="page"] { /* même fond que les autres onglets */
	color: #0b3d6b;
	font-weight: bold;
	box-shadow: inset 0 -3px #1e6fa8;
}
.barreMenu__langues { padding: 3px 8px; }
.barreMenu__langues img { cursor: pointer; }

/* ---------- volet (téléphone) ---------- */
.header { z-index: 100; } /* bandeau du téléphone (Gustave.css) : au-dessus des images positionnées des pages */
.side_menu {
	position: absolute;
	z-index: 10;
	right: 0;
	top: 60px;
	width: 200px;
	max-height: calc(100vh - 60px);
	overflow-y: auto;
	background-color: #fff;
	background-image: url('img/vichy.webp');
	box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.25);
	transform: translateX(110%);
	visibility: hidden;
	transition: transform 0.2s, visibility 0.2s;
	font-family: Georgia, "Century Schoolbook", "Times New Roman", serif;
	font-style: italic;
	font-size: 1.05rem;
}
.side_menu.visible {
	transform: none;
	visibility: visible;
}
.side_menu ul {
	margin: 0;
	padding: 4px 0;
	list-style: none;
}
.side_menu a {
	display: block;
	padding: 0 16px;
	line-height: 44px;
	text-decoration: none;
}
.side_menu a:link, .side_menu a:visited { color: #222; }
.side_menu a:hover, .side_menu a:focus-visible { background: rgba(255, 255, 255, 0.7); }
.side_menu a[aria-current="page"] { color: #0b3d6b; font-weight: bold; box-shadow: inset 3px 0 #1e6fa8; }
