/* Navigation REDGE : toutes les règles sont limitées au parent de menu #360. */
#mainmenu > li.cvcs-redge-nav-root {
  padding-right: 18px;
}
#mainmenu > li.cvcs-redge-nav-root::after {
  display: none !important;
}
#mainmenu > li.cvcs-redge-nav-root > .cvcs-redge-nav-toggle {
  position: absolute;
  z-index: 22;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
}
header.header-light #mainmenu > li.cvcs-redge-nav-root > .cvcs-redge-nav-toggle {
  color: #0a2540;
}
#mainmenu > li.cvcs-redge-nav-root > .cvcs-redge-nav-toggle:focus-visible {
  outline: 2px solid #678fd5;
  outline-offset: 2px;
}
@media (min-width: 993px) {
  #mainmenu > li.cvcs-redge-nav-root > ul {
    width: 300px;
    max-width: min(90vw, 320px);
    min-height: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(10, 37, 64, .18);
  }
  #mainmenu > li.cvcs-redge-nav-root > ul > li > a.menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #0a2540;
    white-space: normal;
    line-height: 1.35;
  }
  #mainmenu > li.cvcs-redge-nav-root > ul > li:hover > a.menu-item,
  #mainmenu > li.cvcs-redge-nav-root > ul > li > a.menu-item:focus-visible {
    color: #234982;
    background: #f4f7fb;
  }
  #mainmenu > li.cvcs-redge-nav-root:focus-within > ul,
  #mainmenu > li.cvcs-redge-nav-root.cvcs-redge-open > ul {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 992px) {
  header #mainmenu > li.cvcs-redge-nav-root { padding-right: 0; }
  header #mainmenu > li.cvcs-redge-nav-root > a.menu-item { padding-right: 60px; }
  header #mainmenu > li.cvcs-redge-nav-root > .cvcs-redge-nav-toggle {
    top: 0;
    right: 0;
    transform: none;
    width: 46px;
    height: 46px;
    color: #fff;
    font-size: 21px;
  }
  header.header-light #mainmenu > li.cvcs-redge-nav-root > .cvcs-redge-nav-toggle { color: #0a2540; }
  header #mainmenu > li.cvcs-redge-nav-root > ul {
    display: block !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: relative !important;
    margin: 0 !important;
  }
  header #mainmenu > li.cvcs-redge-nav-root.cvcs-redge-open > ul {
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    background: transparent !important;
  }
  header #mainmenu > li.cvcs-redge-nav-root > ul > li { padding-left: 18px; }
  header #mainmenu > li.cvcs-redge-nav-root > ul > li > a.menu-item {
    display: block;
    line-height: 1.35;
    white-space: normal;
  }
  header #mainmenu > li.cvcs-redge-nav-root.cvcs-redge-open > .cvcs-redge-nav-toggle > span {
    transform: rotate(180deg);
  }
}
