/* ════════════════════════════════════════════════════════════
   Topbar unique du site (includes/topbar.php).
   Fond bleu très foncé UNI (lisible sur toutes les pages).
   Charger APRÈS les CSS de page pour primer sur les anciens
   styles .topbar locaux résiduels.
   IMPORTANT : toutes les dimensions sont en PIXELS ABSOLUS —
   les pages ont des tailles de police racine différentes
   (html5up = 16pt responsive, autres = 16px) et des unités rem
   décaleraient la barre de quelques pixels selon la page.
   ════════════════════════════════════════════════════════════ */
.topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--topbar-h, 68px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	background: var(--exp-blue-dark, #18232E);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	transition: box-shadow 0.3s;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.4;
}
.topbar.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.topbar-logo { display: flex; align-items: center; border-bottom: none; padding: 0; }
/* !important : certains resets de page (img{max-width:100%}) compressaient
   le logo dans le conteneur flex => largeur différente selon la page */
.topbar-logo img {
	height: 38px !important;
	width: auto !important;
	max-width: none !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

.topbar nav { display: flex; }
.topbar-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0 !important;
	padding: 0;
}
.topbar-nav li { padding: 0; margin: 0; }
.topbar-nav li a,
.topbar-nav > a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.66);
	text-decoration: none;
	border-bottom: none;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
}
.topbar-nav li a:hover,
.topbar-nav > a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topbar-nav li a.active,
.topbar-nav > a.active { color: var(--exp-accent, #1C93CA); background: rgba(28, 147, 202, 0.14); }

/* ── Menu déroulant « Brochures » (CSS pur : survol + focus clavier) ── */
.topbar-drop { position: relative; }
.topbar-drop-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.66);
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.2s, background 0.2s;
}
.topbar-drop-toggle i { font-size: 9px; transition: transform 0.25s ease; }
.topbar-drop:hover .topbar-drop-toggle,
.topbar-drop:focus-within .topbar-drop-toggle { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topbar-drop:hover .topbar-drop-toggle i,
.topbar-drop:focus-within .topbar-drop-toggle i { transform: rotate(180deg); }
.topbar-drop-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 215px;
	padding: 7px;
	background: var(--exp-blue-dark, #18232E);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.topbar-drop:hover .topbar-drop-menu,
.topbar-drop:focus-within .topbar-drop-menu { display: block; }
.topbar-drop-menu a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 13px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	border-bottom: none;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}
.topbar-drop-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topbar-drop-menu a i { color: var(--exp-accent, #1C93CA); font-size: 12px; }

/* ── Zone CTA (EN + Contact + Évaluer) ── */
.topbar-cta { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
/* !important : la CSS du quiz définit .btn-ghost/.btn-fill avec une autre
   police => largeur du bouton différente sur cette page */
.topbar-cta a {
	padding: 8px 18px !important;
	border-radius: 8px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 20px !important;
	text-decoration: none !important;
	border-bottom: none;
	transition: all 0.2s;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	height: auto !important;
	text-transform: none !important;
}
.topbar-cta .topbar-lang {
	padding: 8px 13px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
}
.topbar-cta .topbar-lang:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topbar-cta .btn-ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; background: transparent; }
.topbar-cta .btn-ghost:hover, .topbar-cta .btn-ghost.active { background: rgba(255, 255, 255, 0.10); }
.topbar-cta .btn-fill { background: var(--exp-accent, #1C93CA); color: #fff; border: 1px solid var(--exp-accent, #1C93CA); }
.topbar-cta .btn-fill:hover { background: var(--exp-accent-dark, #158AB8); }

/* ── Hamburger ── */
.topbar-hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 6px;
	background: none;
	border: none;
}
.topbar-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.topbar-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.topbar-hamburger.open span:nth-child(2) { opacity: 0; }
.topbar-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Tiroir mobile ── */
.topbar-mobile-nav {
	display: none;
	position: fixed;
	top: var(--topbar-h, 68px);
	left: 0; right: 0;
	background: var(--exp-blue-dark, #18232E);
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	z-index: 999;
	padding: 16px 24px 24px;
	flex-direction: column;
	gap: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
}
.topbar-mobile-nav.open { display: flex; }
.topbar-mobile-nav a {
	padding: 11px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #fff;
	text-decoration: none;
	border-bottom: none;
	transition: background 0.2s, color 0.2s;
}
.topbar-mobile-nav a:hover,
.topbar-mobile-nav a.active { background: rgba(28, 147, 202, 0.14); color: var(--exp-accent, #1C93CA); }

.topbar-mobile-lang {
	padding: 11px 16px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	font-family: 'Inter', sans-serif;
	text-align: left;
	cursor: pointer;
}
.topbar-mobile-lang:hover { background: rgba(28, 147, 202, 0.14); color: var(--exp-accent, #1C93CA); }

/* ── Blindage TOTAL anti-héritage des gabarits de page ──
   html5up (main.css) impose aux <button> : height calc(4.75em+2px),
   letter-spacing .25em, padding 0 3.75em, font-size .6em, et surtout
   border/border-color/color en !important + un pseudo ::after de
   survol. Chargé sur la plupart des pages mais pas toutes => la
   topbar différait selon la page. Ici, CHAQUE propriété concernée
   est verrouillée en !important : la barre est identique partout. */
.topbar button,
.topbar-mobile-nav button {
	appearance: none !important;
	-webkit-appearance: none !important;
	height: auto !important;
	min-width: 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	font-family: 'Inter', sans-serif !important;
	line-height: 20px !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	text-align: center !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	white-space: nowrap !important;
	overflow: visible !important;
	position: relative !important;
	transition: background 0.2s, color 0.2s !important;
}
.topbar button::before, .topbar button::after,
.topbar-mobile-nav button::before, .topbar-mobile-nav button::after {
	content: none !important;
	display: none !important;
}
.topbar-cta .topbar-lang {
	padding: 8px 13px !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.75) !important;
}
.topbar-cta .topbar-lang:hover { background: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }
.topbar-hamburger {
	padding: 6px !important;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
}
.topbar-mobile-nav .topbar-mobile-lang {
	padding: 11px 16px !important;
	border: none !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-align: left !important;
}
.topbar-mobile-nav .topbar-mobile-lang:hover { background: rgba(28, 147, 202, 0.14) !important; color: var(--exp-accent, #1C93CA) !important; }
.topbar-cta a { letter-spacing: 0.02em; }
.topbar-nav li { border: none; list-style: none; }
.topbar, .topbar nav, .topbar ul { word-spacing: normal; }

/* ── Responsive ── */
@media (max-width: 1500px) {
	.topbar { padding: 0 24px; }
}
@media (max-width: 1100px) {
	.topbar-nav li a, .topbar-nav > a, .topbar-drop-toggle { padding: 7px 9px; font-size: 12px; }
	.topbar { padding: 0 20px; }
}
@media (max-width: 980px) {
	.topbar nav, .topbar-cta { display: none; }
	.topbar-hamburger { display: flex; }
}
