/* Navbar partagée Opendexa — source unique : opendexa-platform/shared/navbar.css (copiée par apply_navbar.py).
   Autonome : ne dépend d'aucune variable du module hôte. Barre sombre identique en thème clair et sombre. */
.odx-bar { --odx-bg: #0f1b3d; --odx-ink: #ffffff; --odx-soft: #c9d4f5; --odx-accent: #8ea7ff; --odx-panel: #ffffff;
  --odx-panel-ink: #0f172a; --odx-panel-muted: #4b5875; --odx-panel-line: #dfe5ee; --odx-hover: #eef2ff; --odx-active: #2346d8;
  position: relative; z-index: 1000; background: var(--odx-bg); color: var(--odx-ink);
  font: 500 14px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
:root:not([data-theme="light"]) .odx-bar { --odx-bg: #060b18; --odx-panel: #131b33; --odx-panel-ink: #e6ebf5;
  --odx-panel-muted: #a3aec6; --odx-panel-line: #26325a; --odx-hover: #1a2550; --odx-active: #8ea7ff; }  /* sombre par défaut */
.odx-bar *, .odx-bar *::before, .odx-bar *::after { box-sizing: border-box; }
/* Neutralise les styles du module hôte (details, summary, listes, titres) */
.odx-bar details, .odx-bar summary, .odx-bar ul, .odx-bar li, .odx-bar p { background: none; border: 0; margin: 0; padding: 0;
  box-shadow: none; border-radius: 0; font: inherit; color: inherit; max-width: none; }
.odx-bar summary::before, .odx-bar li::before, .odx-bar li::marker { content: none; }
.odx-in { max-width: 1160px; margin: 0 auto; padding: 0 16px; min-height: 44px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.odx-bar a { color: var(--odx-ink); text-decoration: none; }
.odx-bar a:hover { text-decoration: underline; text-underline-offset: .2em; }
.odx-bar :focus-visible { outline: 2px solid var(--odx-accent); outline-offset: 2px; border-radius: 4px; }
.odx-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; font-size: 15px; }
.odx-brand svg { width: 22px; height: 22px; flex: none; display: block; }
.odx-current { color: var(--odx-soft); font-weight: 600; white-space: nowrap; }
.odx-current::before { content: "/"; margin-right: 10px; color: var(--odx-soft); opacity: .6; }
.odx-current a { color: var(--odx-soft); }
.odx-links { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.odx-links > a { color: var(--odx-soft); }
.odx-links > a:hover, .odx-links > a[aria-current="page"] { color: var(--odx-ink); }
.odx-links > a.odx-cta { color: var(--odx-bg); background: var(--odx-ink); padding: 5px 12px; border-radius: 8px; font-weight: 700; }
.odx-links > a.odx-cta:hover { text-decoration: none; background: var(--odx-soft); }
.odx-modules { position: relative; margin: 0; padding: 0; border: 0; }
.odx-modules > summary { list-style: none; cursor: pointer; color: var(--odx-soft); display: inline-flex; align-items: center; gap: 6px; padding: 0; font-weight: 500; }
.odx-modules > summary::-webkit-details-marker { display: none; }
.odx-modules > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.odx-modules[open] > summary, .odx-modules > summary:hover { color: var(--odx-ink); }
.odx-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(820px, calc(100vw - 32px)); background: var(--odx-panel);
  color: var(--odx-panel-ink); border: 1px solid var(--odx-panel-line); border-radius: 14px; padding: 16px;
  box-shadow: 0 18px 50px rgba(6, 11, 24, .28); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.odx-panel p.odx-h { margin: 4px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--odx-panel-muted); }
.odx-panel ul { list-style: none; margin: 0; padding: 0; }
.odx-panel li { margin: 0; padding: 0; }
.odx-panel li::before { content: none; }
.odx-bar .odx-panel a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--odx-panel-ink); }
.odx-bar .odx-panel a:hover { background: var(--odx-hover); text-decoration: none; }
.odx-bar .odx-panel a[aria-current="page"] { background: var(--odx-hover); color: var(--odx-active); font-weight: 700; box-shadow: inset 3px 0 0 var(--odx-active); }
.odx-panel .odx-soon { font-size: 11px; font-weight: 700; color: #7a4b00; background: #fff6e0; padding: 1px 7px; border-radius: 999px; align-self: center; white-space: nowrap; }
.odx-panel .odx-all { grid-column: 1 / -1; border-top: 1px solid var(--odx-panel-line); margin-top: 8px; padding-top: 8px; }
/* Menu « Outils » : une colonne par catégorie (build.tools_menu) */
.odx-modules:not([open]) > .odx-panel { display: none; }   /* Chromium met en page le contenu d'un <details> fermé */
.odx-tools { position: static; }   /* panneau placé par rapport à la barre entière : jamais coupé au bord de l'écran */
.odx-tools .odx-panel { left: 0; right: 0; top: 100%; margin: 0 auto; width: min(1000px, calc(100vw - 32px)); grid-template-columns: repeat(4, 1fr); }
.odx-tools .odx-panel p.odx-h { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--odx-panel-ink); }
.odx-bar .odx-tools .odx-panel a { padding: 5px 8px; font-size: 14px; }
/* Icônes Lucide (registry.icon_svg) : contour, 20 px, alignées sur le texte ; indigo en clair, cyan en sombre */
.cat-icon { display: inline-flex; vertical-align: -4px; margin-right: 4px; }
.odx-icon { width: 20px; height: 20px; flex: none; color: #4F46E5; }
:root:not([data-theme="light"]) .odx-icon { color: #22D3EE; }
/* Menu du compte : outils non souscrits d'une catégorie (upsell) */
.odx-bar .odx-panel a.odx-more { color: var(--odx-panel-muted); font-size: 13px; }
.odx-burger { display: none; margin-left: auto; background: transparent; color: var(--odx-ink); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px; padding: 4px 10px; font: inherit; cursor: pointer; }
@media (max-width: 1080px) {
  .odx-panel { position: static; width: 100%; grid-template-columns: 1fr; margin-top: 10px; box-shadow: none; }
  .odx-tools .odx-panel { width: 100%; grid-template-columns: 1fr; }
  .odx-js .odx-burger { display: inline-flex; }
  .odx-js .odx-links { display: none; }
  .odx-js.odx-open .odx-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 12px; padding: 8px 0 14px; margin-left: 0; }
  .odx-links > a.odx-cta { text-align: center; }
  .odx-js.odx-open .odx-links a { min-height: 44px; display: flex; align-items: center; }   /* cible tactile (UX-A31) */
  .odx-js.odx-open .odx-links > a.odx-cta { justify-content: center; }
}
@media print { .odx-bar { display: none; } }
/* Bouton thème (shared/theme.js) : la lune en clair, le soleil en sombre */
.odx-theme { order: 3; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  margin: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--odx-soft); cursor: pointer; }
.odx-theme:hover { color: var(--odx-ink); border-color: var(--odx-soft); }
.odx-theme .odx-sun, .odx-theme[aria-pressed="true"] .odx-moon { display: none; }
.odx-theme[aria-pressed="true"] .odx-sun { display: block; }
.odx-links { order: 2; } .odx-burger { order: 4; }
@media (max-width: 1080px) { .odx-theme { margin-left: auto; } .odx-js .odx-burger { margin-left: 4px; } }
/* Menu du compte (navbar.js, ACCOUNTS.md § 8) : remplace « Espace client » quand le visiteur est connecté */
.odx-account > summary { color: var(--odx-bg); background: var(--odx-ink); padding: 5px 12px; border-radius: 8px; font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odx-account[open] > summary, .odx-account > summary:hover { color: var(--odx-bg); background: var(--odx-soft); }
.odx-account .odx-panel { width: min(320px, calc(100vw - 32px)); grid-template-columns: 1fr; max-height: min(78vh, 640px); overflow-y: auto; }
.odx-account p.odx-cat { margin: 10px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--odx-panel-muted); }
.odx-account .odx-who { margin: 2px 8px 8px; font-size: 13px; color: var(--odx-panel-muted); overflow-wrap: anywhere; }
