/* Panneau desktop pleine largeur : catégories équilibrées en colonnes. */

#arbree-header .mx-dropdown {
  position: fixed;
  top: var(--mx-top, 76px);
  left: 0;
  z-index: 1300 !important;
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  max-height: min(680px, calc(100vh - var(--mx-top, 76px) - 12px));
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 22, 22, 0.22) transparent;
  border: 1px solid #e4dfd6;
  border-radius: 0 0 18px 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
}

#arbree-header .arbree-nav-group--main {
  margin: 0;
  padding: 0;
  list-style: none;
}

#arbree-header .mx-dropdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

#arbree-header :where(.mx-dropdown) *,
#arbree-header :where(.mx-dropdown) *::before,
#arbree-header :where(.mx-dropdown) *::after {
  box-sizing: border-box;
}

#arbree-header :where(.mx-dropdown) :where(p, h3) {
  margin: 0;
  padding: 0;
}

#arbree-header :where(.mx-dropdown) :where(a, a:hover, a:focus, a:focus-visible, p, h3, span) {
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-align: left !important;
  hyphens: manual !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

#arbree-header .mx-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  min-height: 0;
  padding: 22px 28px 18px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 22, 22, 0.28) transparent;
}

#arbree-header .mx-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#arbree-header .mx-sheet::-webkit-scrollbar {
  width: 8px;
}

#arbree-header .mx-sheet::-webkit-scrollbar-thumb {
  background: rgba(22, 22, 22, 0.28);
  border-radius: 8px;
}

#arbree-header .mx-dropdown--compact .mx-sheet {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 18px;
}

#arbree-header .mx-col {
  min-width: 0;
}

#arbree-header .mx-col__title {
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 2px solid #e4dfd6;
  font: 700 14px/1.35 "Inter", system-ui, sans-serif !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

#arbree-header .mx-block + .mx-block {
  margin-top: 16px;
}

#arbree-header .mx-block__label {
  margin: 0 0 5px !important;
  padding: 3px 7px !important;
  border-left: 2px solid #ed5f54;
  background: #faf9fc;
  font: 600 12px/1.4 "Inter", system-ui, sans-serif !important;
  letter-spacing: 0.035em !important;
  color: #6f6c66 !important;
  -webkit-text-fill-color: #6f6c66 !important;
}

#arbree-header .mx-dropdown .mx-link {
  display: block;
  margin: 2px 0;
  padding: 5px 8px;
  border-radius: 8px;
  background: transparent;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

#arbree-header .mx-dropdown .mx-link:hover,
#arbree-header .mx-dropdown .mx-link:focus-visible {
  background: #faf9fc;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

#arbree-header .mx-dropdown .mx-link:focus-visible {
  outline: 2px solid #ed5f54;
  outline-offset: 1px;
}

#arbree-header .arbree-nav .mx-dropdown .mx-link,
#arbree-header .arbree-nav .mx-dropdown .mx-link__title,
#arbree-header .arbree-nav .mx-dropdown .mx-col__title,
#arbree-header .arbree-nav .mx-dropdown .mx-block__label {
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

#arbree-header .mx-link__title {
  font: 450 14px/1.4 "Inter", system-ui, sans-serif !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

#arbree-header .mx-link__desc {
  grid-column: 1 / -1;
  font: 400 13px/1.35 "Inter", system-ui, sans-serif !important;
  color: #6f6c66 !important;
  -webkit-text-fill-color: #6f6c66 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#arbree-header .mx-dropdown--dense .mx-link {
  padding: 5px 8px;
}

#arbree-header .mx-dropdown--dense .mx-link__desc {
  display: none !important;
}

#arbree-header .mx-bar {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin-top: auto;
  padding: 10px 16px 12px;
  border-top: 1px solid #e4dfd6;
  background: #ffffff;
}

#arbree-header .mx-dropdown .mx-bar__link + .mx-bar__link {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #e4dfd6;
}

#arbree-header .mx-dropdown .mx-bar__link {
  font: 500 13px/1.4 "Inter", system-ui, sans-serif !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

#arbree-header .mx-dropdown .mx-col__title,
#arbree-header .mx-dropdown .mx-block__label,
#arbree-header .mx-dropdown .mx-link__title,
#arbree-header .mx-dropdown .mx-link__desc,
#arbree-header .mx-dropdown .mx-bar__link {
  text-transform: uppercase !important;
}

#arbree-header .mx-dropdown .mx-bar__link:hover,
#arbree-header .mx-dropdown .mx-bar__link:focus-visible {
  color: #ed5f54 !important;
  -webkit-text-fill-color: #ed5f54 !important;
}

#arbree-header .mx-dropdown .mx-bar__link:focus-visible {
  outline: 2px solid #ed5f54;
  outline-offset: 2px;
  border-radius: 4px;
}

html:not(.high-contrast) body:has(.mx-dropdown.active) #mega-overlay.mega-overlay.active {
  background: transparent !important;
}

@media (max-width: 1024px) {
  #arbree-header .mx-dropdown {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #arbree-header .mx-dropdown {
    transition: none !important;
  }
}

html.high-contrast #arbree-header .mx-dropdown {
  background: #161616 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
}

html.high-contrast #arbree-header .mx-col__title,
html.high-contrast #arbree-header .mx-block__label,
html.high-contrast #arbree-header .mx-link__title,
html.high-contrast #arbree-header .mx-link__meta,
html.high-contrast #arbree-header .mx-link__desc,
html.high-contrast #arbree-header .mx-dropdown .mx-bar__link {
  color: #ffff00 !important;
  -webkit-text-fill-color: #ffff00 !important;
}

html.high-contrast #arbree-header .mx-col__title,
html.high-contrast #arbree-header .mx-bar,
html.high-contrast #arbree-header .mx-dropdown .mx-bar__link + .mx-bar__link {
  border-color: #ffff00 !important;
}

html.high-contrast #arbree-header .mx-bar {
  background: #161616 !important;
}

html.high-contrast #arbree-header .mx-dropdown .mx-link:hover,
html.high-contrast #arbree-header .mx-dropdown .mx-link:focus-visible {
  background: #ffff00 !important;
}

html.high-contrast #arbree-header .mx-dropdown .mx-link:hover .mx-link__title,
html.high-contrast #arbree-header .mx-dropdown .mx-link:hover .mx-link__meta,
html.high-contrast #arbree-header .mx-dropdown .mx-link:hover .mx-link__desc,
html.high-contrast #arbree-header .mx-dropdown .mx-link:focus-visible .mx-link__title,
html.high-contrast #arbree-header .mx-dropdown .mx-link:focus-visible .mx-link__meta,
html.high-contrast #arbree-header .mx-dropdown .mx-link:focus-visible .mx-link__desc {
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}

/* Dropdown : titre de bloc plus marque, liens plus petits que le titre */
html body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-block__label {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}
html body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link__title {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* Dropdown : toutes les colonnes sur une seule ligne, alignees en haut (pas de 2e rangee) */
@media (min-width: 1141px) {
  html body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-sheet {
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }
}

/* Dropdown : titres de colonne toujours sur une ligne (filet aligne sous toutes les colonnes) */
@media (min-width: 1141px) {
  html body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-col__title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Dropdown : description sous le lien plus fine et plus petite */
html body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link__desc {
  margin-top: 2px !important;
  font-size: 11.5px !important;
  font-weight: 300 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #8a8794 !important;
  -webkit-text-fill-color: #8a8794 !important;
}

/* Finition sobre : typographie, filets et survol doux. */
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown {
  border: 1px solid rgba(22, 22, 22, 0.1) !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.22) !important;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-sheet {
  padding: 26px 30px 22px;
  column-gap: 28px;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-col__title {
  position: relative;
  border-bottom: 1px solid rgba(22, 22, 22, 0.12) !important;
  padding-bottom: 13px !important;
  margin-bottom: 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.09em !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-col__title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: #ed5f54;
  border-radius: 2px;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link {
  padding: 9px 10px;
  border-radius: 10px;
  transition: background-color 0.18s ease;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link:hover,
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link:focus-visible {
  background: #f5f2f8 !important;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link__title {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: #161616 !important;
  -webkit-text-fill-color: #161616 !important;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-link__desc {
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #777180 !important;
  -webkit-text-fill-color: #777180 !important;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-bar {
  padding: 14px 30px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  background: #faf9fc;
}
html:not(.high-contrast) body #arbree-header:not(#_):not(#_) .mx-dropdown .mx-bar__link {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #arbree-header .mx-dropdown .mx-link { transition: none !important; }
}
