.ltr-head {
  --head-bg: #faf9ff;
  --head-ink: #231836;
  --head-soft: #655877;
  --head-line: #e5dfee;
  --head-surface: #f0ebf8;
  --head-action: #542799;
  --head-on-action: #fff;
  --head-height: 72px;
  position: sticky;
  inset-block-start: 0;
  z-index: 1300;
  isolation: isolate;
  color: var(--head-ink);
  background: var(--head-bg);
  border-block-end: 1px solid var(--head-line);
  font: 500 14px/1.2 Inter, system-ui, sans-serif;
}
.ltr-head[data-theme="energie"] {
  --head-bg: #101211;
  --head-ink: #f7f5ee;
  --head-soft: #bbbdb4;
  --head-line: #37372d;
  --head-surface: #23251f;
  --head-action: #f5d548;
  --head-on-action: #211b08;
}
.ltr-head[data-theme="muse"] {
  --head-bg: #110e17;
  --head-ink: #f5f2ff;
  --head-soft: #c8bfd8;
  --head-line: #383142;
  --head-surface: #241d2b;
  --head-action: #c8b5ff;
  --head-on-action: #1a102b;
}
.ltr-head[data-theme="fiduciaire"] {
  --head-bg: #faf7f0;
  --head-ink: #40291c;
  --head-soft: #74594a;
  --head-line: #e9ddd0;
  --head-surface: #f1e7db;
  --head-action: #84451f;
  --head-on-action: #fff7ed;
}
.ltr-head:is([data-theme="hub"], [data-theme="ai"]) {
  --head-bg: #241143;
  --head-ink: #fff8ff;
  --head-soft: #d0c2e4;
  --head-line: #513b72;
  --head-surface: #39245a;
  --head-action: #eee2ff;
  --head-on-action: #301559;
}
.ltr-head *, .ltr-head *::before, .ltr-head *::after { box-sizing: border-box; }
.ltr-head a, .ltr-head button, .ltr-head summary { color: inherit; }
.ltr-head a { text-decoration: none; }
.ltr-head button { font: inherit; }
.ltr-head :is(a, button, summary):focus-visible { outline: 2px solid var(--head-action); outline-offset: 3px; }
.ltr-head__inner {
  width: min(100% - clamp(2rem, 7vw, 7rem), 82rem);
  min-height: var(--head-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
}
.ltr-head__brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; width: fit-content; white-space: nowrap; }
.ltr-head__brand img { flex: none; display: block; width: 38px; height: 38px; object-fit: contain; }
.ltr-head__brand strong { display: block; font-size: .83rem; letter-spacing: .09em; font-weight: 800; line-height: 1.1; }
.ltr-head__brand small { display: block; font-size: .73rem; color: var(--head-soft); margin-block-start: .2rem; }
.ltr-head__nav { display: flex; align-items: center; gap: clamp(.25rem, 1vw, .9rem); }
.ltr-head__link, .ltr-head__group > summary {
  display: flex;
  align-items: center;
  gap: .47rem;
  min-height: 44px;
  padding: .55rem .8rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}
.ltr-head__group > summary { list-style: none; }
.ltr-head__group > summary::-webkit-details-marker { display: none; }
.ltr-head__group svg, .ltr-head__link svg { width: 13px; height: 13px; flex: none; }
.ltr-head__group[open] > summary svg { transform: rotate(180deg); }
.ltr-head :is(.ltr-head__link,summary,.ltr-head__icon,.ltr-head__target):hover,
.ltr-head__group[open] > summary, .ltr-head [aria-current="page"].ltr-head__link { background: var(--head-surface); }
.ltr-head__panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(10rem, .72fr) minmax(0, 1.65fr);
  width: min(42rem, calc(100vw - 3rem));
  padding: .6rem;
  gap: .6rem;
  border: 1px solid var(--head-line);
  border-radius: 15px;
  background: var(--head-bg);
  box-shadow: 0 20px 46px #100a253b;
}
.ltr-head__intro { background: var(--head-surface); border-radius: 10px; padding: 1.15rem; }
.ltr-head__intro strong { display: block; font-size: 1.04rem; line-height: 1.2; }
.ltr-head__intro p { margin: .6rem 0 0; color: var(--head-soft); line-height: 1.5; font-size: .81rem; }
.ltr-head__intro a { display: inline-flex; gap: .35rem; align-items: center; margin-top: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.ltr-head__targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; margin: 0; padding: 0; list-style: none; gap: .2rem; }
.ltr-head__target { display: block; height: 100%; min-height: 44px; border-radius: 8px; padding: .6rem .7rem; line-height: 1.28; }
.ltr-head__target strong { display: block; font-size: .83rem; }
.ltr-head__target span { display: block; color: var(--head-soft); margin-top: .23rem; font-size: .76rem; line-height: 1.35; }
.ltr-head__target[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }
.ltr-head__panel--grouped { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ltr-head__panel--grouped > div { padding: .2rem; }
.ltr-head__panel--grouped .ltr-head__targets { grid-template-columns: minmax(0, 1fr); }
.ltr-head__panel-heading { display: block; margin: .35rem .7rem; color: var(--head-action); font-size: .77rem; }
.ltr-head__group--compact { position: relative; }
.ltr-head__group--compact .ltr-head__panel {
  width: min(21rem, calc(100vw - 2rem));
  grid-template-columns: minmax(0, 1fr);
  padding: .35rem;
  border-radius: 10px;
}
.ltr-head__group--compact .ltr-head__targets { grid-template-columns: minmax(0, 1fr); }
.ltr-head__group--compact .ltr-head__target { padding: .7rem .8rem; }
.ltr-head__actions { display: flex; justify-content: flex-end; align-items: center; gap: .45rem; }
.ltr-head__actions button, .ltr-head__actions a { flex: none; }
.ltr-head__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 43px; border-radius: 8px; padding: .65rem .95rem; font-weight: 750; white-space: nowrap;
}
.ltr-head a.ltr-head__cta { color: var(--head-on-action); background: var(--head-action); }
.ltr-head a.ltr-head__cta:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ltr-head__cta svg { flex: none; width: 14px; height: 14px; }
.ltr-head__icon, .ltr-head .nav-search-toggle {
  display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--head-line); border-radius: 9px; cursor: pointer; color: var(--head-ink);
}
.ltr-head__icon svg, .ltr-head .nav-search-toggle svg { width: 19px; height: 19px; }
.ltr-head__search:empty, .ltr-head__menu, .ltr-head__mobile-cta, .ltr-head__short { display: none; }
.ltr-head .nav-search-panel {
  background: var(--head-bg); color: var(--head-ink); border-color: var(--head-line);
  --bg-white: var(--head-bg); --text: var(--head-ink); --text-dark: var(--head-ink);
  --text-light: var(--head-soft); --border-color: var(--head-line); --hub-primary: var(--head-action);
  --bg-light: var(--head-surface); --primary-color: var(--head-ink);
}
.ltr-head .nav-search-toggle[aria-expanded="true"] { background: var(--head-surface); color: var(--head-ink); }
.ltr-head--simple .ltr-head__inner { grid-template-columns: 1fr auto; }
html:has(.ltr-head) { scroll-padding-top: 74px; }

@media (1000px < width <= 1150px) {
  [data-theme="energie"] .ltr-head__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
  }
  [data-theme="energie"] .ltr-head__nav { justify-content: center; gap: .25rem; }
  [data-theme="energie"] .ltr-head__group > summary { padding-inline: .55rem; }
}

@media (max-width: 1000px) {
  .ltr-head { --head-height: 64px; }
  .ltr-head__inner { width: calc(100% - 1.5rem); grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .ltr-head__brand { gap: .45rem; }
  .ltr-head__brand img { width: 32px; height: 32px; }
  .ltr-head__brand strong { font-size: .75rem; }
  .ltr-head__brand small { font-size: .68rem; }
  .ltr-head[data-enhanced] .ltr-head__menu { display: inline-grid; }
  .ltr-head__nav {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    padding-block-end: .75rem;
  }
  .ltr-head[data-enhanced] .ltr-head__nav {
    display: none; position: absolute; inset: 100% 0 auto; z-index: 1;
    max-height: calc(100dvh - var(--head-height) - 12px); overflow-y: auto;
    padding: .7rem .9rem 1rem; overscroll-behavior: contain;
    background: var(--head-bg); border-block: 1px solid var(--head-line);
    box-shadow: 0 16px 30px #100a2538;
  }
  .ltr-head[data-menu-open] .ltr-head__nav { display: flex; }
  .ltr-head__nav > :is(a, details) { position: static; }
  .ltr-head__panel {
    position: static; transform: none; width: auto; box-shadow: none; grid-template-columns: 1fr;
    margin: .25rem 0 .45rem; padding: .4rem;
  }
  .ltr-head__panel--grouped > div + div { border-block-start: 1px solid var(--head-line); }
  .ltr-head__group--compact .ltr-head__panel { width: auto; margin: .1rem .45rem .45rem; }
  .ltr-head__intro { padding: .7rem; }
  .ltr-head__intro p { display: none; }
  .ltr-head__intro a { margin-top: .55rem; min-height: 36px; }
  .ltr-head__link, .ltr-head__group > summary { justify-content: space-between; }
  .ltr-head__mobile-cta { justify-items: stretch; margin-top: .4rem; }
  .ltr-head__actions { grid-column: 2; grid-row: 1; gap: .3rem; }
  .ltr-head__actions .ltr-head__cta { padding-inline: .7rem; }
  .ltr-head__actions .ltr-head__cta svg, .ltr-head__actions .ltr-head__long { display: none; }
  .ltr-head__actions .ltr-head__short { display: inline; }
  .ltr-head .nav-search-panel { z-index: 2; }
}
@media (max-width: 350px) {
  .ltr-head:not(.ltr-head--simple, [data-theme="energie"]) .ltr-head__actions .ltr-head__cta { display: none; }
  .ltr-head:not([data-theme="energie"]) .ltr-head__mobile-cta { display: inline-grid; }
}
