/*!
 * CEFRAN v0.0.1 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  NAVIGATION
\* ˍˍˍˍˍˍˍˍˍ */
.cefran-nav {
  --underline-img: none;
  --ul-type: none;
  --ol-type: none;
  --ul-start: 0;
  --ol-start: 0;
  --xl-block: 0;
  --li-bottom: 0;
  --ol-content: none;
  --text-spacing: 0;
  --title-spacing: 0;
  margin: 0 auto;
  width: fit-content;
}

.cefran-nav__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 2rem;
  margin: 0 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: var(--background-contrast-cefran-secondary);

  --idle: transparent;
  --hover: var(--background-contrast-cefran-secondary-hover);
  --active: var(--background-contrast-cefran-secondary-active);
}

.cefran-nav__list > .cefran-nav__link,
.cefran-nav__list > .cefran-nav__btn,
.cefran-nav__list > * > .cefran-nav__link,
.cefran-nav__list > * > .cefran-nav__btn {
  font-weight: bold;
}

.cefran-nav__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 1 auto;
  position: relative;
}

.cefran-nav__item::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: 0 -1px 0 0 var(--border-default-grey), inset 0 -1px 0 0 var(--border-default-grey);
}

.cefran-nav__item .cefran-btn,
.cefran-nav__item .cefran-link {
  min-height: 3rem;
}

.cefran-nav__link,
.cefran-nav__btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;

  --hover-tint: var(--hover);
  --active-tint: var(--active);
  color: var(--text-action-high-grey);
}

.cefran-nav__link[aria-current]:not([aria-current=false]),
.cefran-nav__btn[aria-current]:not([aria-current=false]) {
  position: relative;
  color: var(--text-active-cefran-primary);
}

.cefran-nav__link[aria-current]:not([aria-current=false])::before,
.cefran-nav__btn[aria-current]:not([aria-current=false])::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 1.5rem;
  margin-top: -0.75rem;
  background-color: var(--background-active-cefran-primary);

  --idle: transparent;
  --hover: var(--background-active-cefran-primary-hover);
  --active: var(--background-active-cefran-primary-active);
}

.cefran-nav__link {
  display: block;
}

.cefran-nav__link:not([href])[aria-current]:not([aria-current=false]) {
  pointer-events: none;
  cursor: default;
}

.cefran-nav__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.cefran-nav__btn::after {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/system/arrow-down-s-line.svg");
  mask-image: url("../../icons/system/arrow-down-s-line.svg");
  --icon-size: 1rem;
  content: "";
  margin-left: 0.5rem;
  margin-right: 0;
  transition: transform 0.3s;
}

.cefran-nav__btn[aria-expanded=true]::after {
  transform: rotate(-180deg);
}

.cefran-menu {
  margin: -4px -1rem;
  padding: 4px 1rem;
  width: auto;
}

.cefran-menu.cefran-collapsing {
  margin-top: 0;
  padding-top: 0;
}

.cefran-menu__list {
  margin: 0;
  padding: 0 1rem 1rem;
}

.cefran-menu .cefran-nav__link {
  padding-left: 1rem;
  padding-right: 1rem;
}

.cefran-menu .cefran-nav__link::before {
  left: 0;
}

.cefran-mega-menu:focus {
  outline: none;
}

.cefran-mega-menu > .cefran-container {
  padding: 0.5rem 1rem 0;
}

.cefran-mega-menu .cefran-btn--close {
  display: none;
}

.cefran-mega-menu .cefran-nav__link {
  padding-left: 1rem;
  padding-right: 1rem;
}

.cefran-mega-menu .cefran-nav__link::before {
  left: 0;
}

.cefran-mega-menu__leader {
  --underline-img: linear-gradient(0deg, currentColor, currentColor);
  padding-top: 0.5rem;

  --text-spacing: 0 0 0.5rem;
  --title-spacing: 0 0 0.5rem;
}

.cefran-mega-menu__leader .cefran-link {
  font-size: 0.875rem;
  line-height: 1.5rem;
  padding: 0 0;
}

.cefran-mega-menu__leader .cefran-link::before,
.cefran-mega-menu__leader .cefran-link::after {
  --icon-size: 1rem;
}

.cefran-mega-menu__leader p {
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.cefran-mega-menu__category {
  font-weight: 700;
}

.cefran-mega-menu__list {
  padding-bottom: 1rem;
  position: relative;
}

.cefran-mega-menu__list::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: 0 1px 0 0 var(--border-default-grey);
}

.cefran-nav__btn[aria-expanded=true]:not(:disabled) {
  background-color: var(--background-open-cefran-primary);

  --idle: transparent;
  --hover: var(--background-open-cefran-primary-hover);
  --active: var(--background-open-cefran-primary-active);
  color: var(--text-action-high-cefran-primary);
}

.cefran-nav__item:first-child::before {
  box-shadow: inset 0 -1px 0 0 var(--border-default-grey);
}

.cefran-nav__item:last-child::before {
  box-shadow: 0 -1px 0 0 var(--border-default-grey);
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */

  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */
  .cefran-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .cefran-nav__list > *:first-child:nth-last-child(2) ~ *,
  .cefran-nav__list > *:first-child:nth-last-child(3) ~ *,
  .cefran-nav__list > *:first-child:nth-last-child(4) ~ * {
    margin-left: 1.25rem;
  }

  .cefran-nav__list > .cefran-nav__link,
  .cefran-nav__list > .cefran-nav__btn,
  .cefran-nav__list > * > .cefran-nav__link,
  .cefran-nav__list > * > .cefran-nav__btn {
    padding: 1rem;
    margin: 0;
    width: auto;
    height: 100%;
    min-height: 3.5rem;
    font-weight: normal;
  }

  .cefran-nav__list > .cefran-nav__link[aria-current]:not([aria-current=false])::before,
  .cefran-nav__list > .cefran-nav__btn[aria-current]:not([aria-current=false])::before,
  .cefran-nav__list > * > .cefran-nav__link[aria-current]:not([aria-current=false])::before,
  .cefran-nav__list > * > .cefran-nav__btn[aria-current]:not([aria-current=false])::before {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: 0;
  }

  .cefran-nav__item .cefran-btn,
  .cefran-nav__item .cefran-link {
    min-height: auto;
  }

  .cefran-nav__item {
    position: initial;
    align-items: flex-start;
  }

  .cefran-nav__item::before {
    content: none;
  }

  .cefran-nav__item--align-right {
    align-items: flex-end;
  }

  .cefran-nav__link,
  .cefran-nav__btn {
    font-size: 0.875rem;
    line-height: 1.5rem;
  }

  .cefran-nav__btn {
    padding: 1rem 0.75rem 1rem 1rem;
    justify-content: flex-start;
  }

  .cefran-menu {
    pointer-events: none;
    position: absolute;
    top: 100%;
    z-index: calc(var(--ground) + 1000);
    filter: drop-shadow(var(--overlap-shadow));
  }

  .cefran-menu__list {
    width: 20rem;
    pointer-events: auto;
    padding: 0;
    margin-bottom: 2rem;
    background-color: var(--background-overlap-grey);

    --idle: transparent;
    --hover: var(--background-overlap-grey-hover);
    --active: var(--background-overlap-grey-active);
    box-shadow: inset 0 1px 0 0 var(--border-open-cefran-primary);
  }

  .cefran-menu .cefran-nav__link {
    padding: 0.75rem 1rem;
    box-shadow: 0 calc(-1rem - 1px) 0 -1rem var(--border-default-grey);
  }

  .cefran-menu .cefran-nav__link::before {
    left: 0;
  }

  .cefran-mega-menu {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: calc(var(--ground) + 1000);
    background-color: var(--background-overlap-grey);

    --idle: transparent;
    --hover: var(--background-overlap-grey-hover);
    --active: var(--background-overlap-grey-active);
    filter: drop-shadow(var(--overlap-shadow));
    box-shadow: inset 0 1px 0 0 var(--border-open-cefran-primary);
  }

  .cefran-mega-menu::after {
    content: "";
    display: block;
    padding-bottom: 1.5rem;
  }

  .cefran-mega-menu > .cefran-container {
    padding: 0 1.5rem;
  }

  .cefran-mega-menu > .cefran-container::before {
    content: "";
    display: block;
    padding-top: 1rem;
  }

  .cefran-mega-menu .cefran-btn--close {
    display: flex;
  }

  .cefran-mega-menu .cefran-nav__link {
    padding: 0.75rem 1rem;
  }

  .cefran-mega-menu__leader {
    margin-top: 0.25rem;
    padding-top: 0;
  }

  .cefran-mega-menu__list::before {
    content: none;
  }

  .cefran-menu__list > *:first-child,
  .cefran-menu__list > *:first-child > .cefran-nav__link,
  .cefran-menu__list > *:hover,
  .cefran-menu__list > *:hover > .cefran-nav__link,
  .cefran-menu__list > *:hover + *,
  .cefran-menu__list > *:hover + * > .cefran-nav__link {
    box-shadow: none;
  }

  .cefran-mega-menu__category {
    box-shadow: 0 calc(1rem + 1px) 0 -1rem var(--border-default-grey);
  }

  /*! media lg */
}
@media (min-width: 78em) {
  /*! media xl */

  /*! media xl */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /**
  * reset liste à puce
  */
  .cefran-nav [href] {
    text-decoration: none;
  }

  .cefran-nav ul {
    list-style-type: none;
  }

  .cefran-nav ol {
    list-style-type: none;
  }

  .cefran-nav ul,
  .cefran-nav ol {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  /**
  * reset margin
  */
  .cefran-nav__btn::after {
    background-color: transparent;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/arrow-down-s-line.svg");
    width: 1rem;
    height: 1rem;
  }

  .cefran-mega-menu__category {
    margin: 0;
  }

  .cefran-nav__list {
    background-color: hsl(270, 80%, 96%);
  }

  .cefran-nav__link,
  .cefran-nav__btn {
    color: #161616;
  }

  .cefran-nav__link[aria-current]:not([aria-current=false]),
  .cefran-nav__btn[aria-current]:not([aria-current=false]) {
    color: hsl(180, 75%, 25%);
  }

  .cefran-nav__link[aria-current]:not([aria-current=false])::before,
  .cefran-nav__btn[aria-current]:not([aria-current=false])::before {
    background-color: hsl(180, 75%, 25%);
  }

  .cefran-nav__btn[aria-expanded=true]:not(:disabled) {
    background-color: hsl(180, 80%, 93%);
    color: hsl(180, 75%, 25%);
  }

  .cefran-nav__item::before {
    box-shadow: 0 -1px 0 0 #ddd, inset 0 -1px 0 0 #ddd;
  }

  .cefran-nav__item:first-child::before {
    box-shadow: inset 0 -1px 0 0 #ddd;
  }

  .cefran-nav__item:last-child::before {
    box-shadow: 0 -1px 0 0 #ddd;
  }

  .cefran-mega-menu__list::before {
    box-shadow: 0 1px 0 0 #ddd;
  }
}
@media all and (-ms-high-contrast: none) and (-ms-high-contrast: none), (-ms-high-contrast: none) and (-ms-high-contrast: active), (-ms-high-contrast: active) and (-ms-high-contrast: none), (-ms-high-contrast: active) and (-ms-high-contrast: active) {
  .cefran-nav__link,
  .cefran-nav__btn {
    background-color: transparent;
  }

  .cefran-nav__link:hover,
  .cefran-nav__btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .cefran-nav__link:active,
  .cefran-nav__btn:active {
    background-color: rgba(0, 0, 0, 0.1);
  }
}
@media (min-width: 62em) and (-ms-high-contrast: none), (min-width: 62em) and (-ms-high-contrast: active) {
  /**
  * Correctif de l'alignement des menus sur la droite
  */
  .cefran-nav__item {
    position: static;
  }

  .cefran-nav__item--align-right .cefran-collapse {
    transform: translateX(-100%);
  }

  /**
  * Override du reset des marges des ul
  **/
  .cefran-menu .cefran-menu__list {
    margin-bottom: 2rem;
  }

  .cefran-menu {
    z-index: 1000;
  }

  .cefran-menu__list {
    background-color: #fff;
    box-shadow: inset 0 1px 0 0 hsl(180, 80%, 93%);
  }

  .cefran-menu__list > *:first-child,
  .cefran-menu__list > *:first-child > .cefran-nav__link,
  .cefran-menu__list > *:hover,
  .cefran-menu__list > *:hover > .cefran-nav__link,
  .cefran-menu__list > *:hover + *,
  .cefran-menu__list > *:hover + * > .cefran-nav__link {
    box-shadow: none;
  }

  .cefran-menu .cefran-nav__link {
    box-shadow: 0 calc(-1rem - 1px) 0 -1rem #ddd;
  }

  .cefran-mega-menu {
    z-index: 1000;
    background-color: #fff;
    box-shadow: inset 0 1px 0 0 hsl(180, 80%, 93%);
  }

  .cefran-mega-menu__category {
    box-shadow: 0 calc(1rem + 1px) 0 -1rem #ddd;
  }
}
@media print {
  .cefran-navigation {
    display: none;
  }
}
