/*
 * Barre du portail GeoRezo, commune à tous les thèmes.
 *
 * Feuille autonome : tailles en px (les anciens thèmes modifient la taille de police
 * de html), propriétés remises à zéro pour ne pas hériter des styles du thème.
 */

.georezo-bar {
	all: initial;
	display: block;
	position: relative;
	z-index: 9990;
	width: 100%;
	background: #fff;
	border-bottom: 3px solid #ef7103;
	color: #24303d;
	font: 600 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.georezo-bar *, .georezo-bar *::before, .georezo-bar *::after {
	box-sizing: border-box;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-indent: 0;
	text-shadow: none;
	width: auto;
	height: auto;
	min-height: 0;
	max-width: none;
	line-height: inherit;
}
.georezo-bar ul, .georezo-bar li { display: block; list-style: none; }
.georezo-bar li::before, .georezo-bar li::after { content: none; }
.georezo-bar a { text-decoration: none; cursor: pointer; }
.georezo-bar a:focus-visible, .georezo-bar button:focus-visible {
	outline: 3px solid #ef7103;
	outline-offset: 2px;
	border-radius: 4px;
}
.georezo-bar__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.georezo-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 5px 16px;
}

.georezo-bar__brand { display: flex; align-items: center; gap: 13px; }
.georezo-bar .georezo-logo { display: block; width: 85px; height: 28px; max-width: none; }
.georezo-bar__tagline {
	padding-left: 13px;
	border-left: 1px solid #dfe5ec;
	color: #2c4a7e;
	font-size: 13px;
	line-height: 1.2;
}

/* Spécificité .georezo-bar .x : doit l'emporter sur la remise à zéro « .georezo-bar ul ». */
.georezo-bar .georezo-bar__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.georezo-bar .georezo-bar__item, .georezo-bar .georezo-bar__blogs { display: block; }
.georezo-bar__nav a {
	display: block;
	padding: 3px 10px;
	border-radius: 999px;
	color: #2c4a7e;
	font-weight: 600;
	transition: background-color .15s ease;
}
.georezo-bar__nav a:hover { background: #eef2f9; color: #2c4a7e; }
.georezo-bar .georezo-bar__blogs a { background: #ef7103; color: #fff; }
.georezo-bar .georezo-bar__blogs a:hover { background: #c25a00; color: #fff; }
.georezo-bar .georezo-bar__sub { display: none; }

/* Bouton « Portail » (petits écrans) : pastille orange, barres décalées. */
.georezo-bar .georezo-bar__toggle {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 5px 14px 5px 6px;
	border-radius: 999px;
	background: #fff;
	color: #2c4a7e;
	box-shadow: inset 0 0 0 2px #ef7103;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.georezo-bar .georezo-bar__toggle:hover { background: #fff7ef; }
.georezo-bar .georezo-bar__toggle-icon {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #ef7103;
}
.georezo-bar .georezo-bar__toggle-icon::before,
.georezo-bar .georezo-bar__toggle-icon::after,
.georezo-bar .georezo-bar__toggle-icon span {
	content: "";
	position: absolute;
	left: 8px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .2s ease, width .2s ease, opacity .2s ease, top .2s ease;
}
.georezo-bar .georezo-bar__toggle-icon::before { top: 10px; width: 14px; }
.georezo-bar .georezo-bar__toggle-icon span    { top: 14px; width: 10px; }
.georezo-bar .georezo-bar__toggle-icon::after  { top: 18px; width: 7px; }
.georezo-bar.is-open .georezo-bar__toggle-icon::before { top: 14px; width: 14px; transform: rotate(45deg); }
.georezo-bar.is-open .georezo-bar__toggle-icon::after  { top: 14px; width: 14px; transform: rotate(-45deg); }
.georezo-bar.is-open .georezo-bar__toggle-icon span    { opacity: 0; }

@media (max-width: 860px) {
	.georezo-bar__tagline { display: none; }
	.georezo-bar .georezo-bar__toggle { display: inline-flex; }
	.georezo-bar__inner { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; }

	/* Panneau déroulant sous la barre */
	.georezo-bar .georezo-bar__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
		padding: 16px 16px 19px;
		background: #fff;
		border-bottom: 3px solid #ef7103;
		box-shadow: 0 14px 28px rgba(28, 46, 80, .22);
	}
	.georezo-bar.is-open .georezo-bar__nav { display: block; }
	.georezo-bar .georezo-bar__menu {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 16px 19px;
	}
	.georezo-bar .georezo-bar__section {
		margin-bottom: 5px;
		padding: 0 0 5px;
		border-radius: 0;
		border-bottom: 2px solid #ef7103;
		font-size: 15px;
		font-weight: 800;
	}
	.georezo-bar .georezo-bar__section:hover { background: none; color: #c25a00; }
	.georezo-bar .georezo-bar__sub { display: block; }
	.georezo-bar .georezo-bar__sub a {
		padding: 5px 0;
		border-radius: 0;
		color: #24303d;
		font-weight: 500;
	}
	.georezo-bar .georezo-bar__sub a:hover { background: none; color: #2c4a7e; text-decoration: underline; }
	.georezo-bar .georezo-bar__blogs { grid-column: 1 / -1; }
	.georezo-bar .georezo-bar__blogs a { padding: 10px 16px; text-align: center; }
}

@media print {
	.georezo-bar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.georezo-bar *, .georezo-bar *::before, .georezo-bar *::after { transition: none !important; }
}
