/*
 * DSFR v1.0.0-rc1.0 | restricted use
 */
@charset "UTF-8";

/* ------------------------------------ *\
  NAVIGATION
\* ------------------------------------ */

.fr-nav {
  --is-link: false;
  --is-list: false;
  z-index: 3500;
}

.fr-nav *:focus, .fr-nav *:focus-visible {
  z-index: 4000;
}

.fr-nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

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

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

.fr-nav__link, .fr-nav__btn {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: left;
}

.fr-nav__link[aria-current], .fr-nav__btn[aria-current] {
  position: relative;
}

.fr-nav__link[aria-current]::before, .fr-nav__btn[aria-current]::before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: -1rem;
  width: 2px;
  height: 1.5rem;
  margin-top: -0.75rem;
}

.fr-nav__link {
  display: block;
}

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

.fr-nav__btn::after {
  font-family: icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

.fr-nav__btn::after {
  font-size: 1rem;
  content: "";
  margin-left: 0.5rem;
  margin-right: 0;
  transition: transform 0.3s;
}

.fr-nav__btn[aria-expanded="true" i]::before {
  transform: rotate(-180deg);
}

.fr-menu {
  z-index: 2500;
  margin: 0 -1rem;
  padding: 0 1rem;
  width: auto;
}

.fr-menu *:focus, .fr-menu *:focus-visible {
  z-index: 3000;
}

.fr-menu__list {
  margin: 0;
  padding: 0.5rem 0 1.5rem;
}

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

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

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

.fr-mega-menu {
  z-index: 2500;
  margin: 0 -1rem 1px;
  padding: 0 1rem;
}

.fr-mega-menu *:focus, .fr-mega-menu *:focus-visible {
  z-index: 3000;
}

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

.fr-mega-menu .fr-link--close {
  display: none;
}

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

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

.fr-mega-menu__leader {
  padding-left: 1rem;
  padding-right: 1rem;
}

.fr-mega-menu__category {
  margin-bottom: 0;
}

.fr-mega-menu__list {
  padding-bottom: 0.75rem;
}

.fr-nav__link, .fr-nav__btn {
  color: var(--g800);
  background-color: var(--t-plain);
}

:root:not([data-fr-theme="dark" i]) .fr-nav__link,
:root:not([data-fr-theme="dark" i]) .fr-nav__btn {
  --color-hover: var(--block-color-hover);
  --color-active: var(--block-color-active);
}

:root:not([data-fr-theme="dark" i]) [class*="fr-scheme-light"] .fr-nav__link,
:root:not([data-fr-theme="dark" i]) [class*="fr-scheme-light"] .fr-nav__btn,
:root:not([data-fr-theme="dark" i]) [class*="--scheme-light-"] .fr-nav__link,
:root:not([data-fr-theme="dark" i]) [class*="--scheme-light-"] .fr-nav__btn {
  --color-hover: var(--block-color-hover);
  --color-active: var(--block-color-active);
}

:root:not([data-fr-theme="dark" i]) [class*="fr-scheme-dark"] .fr-nav__link,
:root:not([data-fr-theme="dark" i]) [class*="fr-scheme-dark"] .fr-nav__btn,
:root:not([data-fr-theme="dark" i]) [class*="--scheme-dark-"] .fr-nav__link,
:root:not([data-fr-theme="dark" i]) [class*="--scheme-dark-"] .fr-nav__btn {
  --color-hover: var(--block-color-hover);
  --color-active: var(--block-color-active);
}

:root[data-fr-theme="dark" i] .fr-nav__link, .fr-nav__btn {
  --color-hover: var(--block-color-hover);
  --color-active: var(--block-color-active);
}

.fr-nav__link[aria-current], .fr-nav__btn[aria-current] {
  color: var(--bf500);
}

.fr-nav__link[aria-current]::before, .fr-nav__btn[aria-current]::before {
  background-color: var(--bf500);
}

.fr-nav__item {
  box-shadow: inset 0 -1px 0 0 var(--g300);
}

.fr-mega-menu {
  background-color: var(--w-g750);
}

.fr-mega-menu__list {
  box-shadow: 0 1px 0 0 var(--g300);
}

@media (min-width: 62em) {
  .fr-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 -1rem;
  }

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

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

  .fr-nav__list > .fr-nav__link[aria-current],
  .fr-nav__list > .fr-nav__btn[aria-current],
  .fr-nav__list > * > .fr-nav__link[aria-current],
  .fr-nav__list > * > .fr-nav__btn[aria-current] {
    /**
             * Pour conserver le souligné de selection  par dessus la barre de mega-menu
             */
  }

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

  .fr-nav__list > .fr-nav__link[aria-current]:not([aria-expanded="true"]),
  .fr-nav__list > .fr-nav__btn[aria-current]:not([aria-expanded="true"]),
  .fr-nav__list > * > .fr-nav__link[aria-current]:not([aria-expanded="true"]),
  .fr-nav__list > * > .fr-nav__btn[aria-current]:not([aria-expanded="true"]) {
    z-index: 3500;
  }

  .fr-nav__item {
    box-shadow: none;
    align-items: flex-start;
  }

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

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

  .fr-nav__btn {
    padding: 1rem 0.75rem 1rem 1rem;
  }

  .fr-nav__btn {
    justify-content: flex-start;
  }

  .fr-menu {
    position: absolute;
    top: 100%;
    margin-top: -0.25rem;
    padding-top: 0.25rem;
  }

  .fr-menu::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0.25rem 1rem 2rem;
    z-index: -1;
  }

  .fr-menu__list {
    padding: 0 0 2rem;
  }

  .fr-menu__list {
    width: 20rem;
  }

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

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

  .fr-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin: -2px 0 0;
    padding: 0 0 2.25rem;
  }

  .fr-mega-menu > .fr-container::before {
    display: block;
    content: "";
    height: 2px;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 1rem;
  }

  .fr-mega-menu .fr-link--close {
    display: flex;
  }

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

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

  .fr-mega-menu__leader {
    padding-left: 0;
    padding-right: 0;
  }

  .fr-mega-menu__list {
    box-shadow: none;
  }

  .fr-nav__btn[aria-expanded="true" i] {
    color: var(--bf500-plain);
    background-color: var(--bf200-bf300);
  }

  .fr-menu::after {
    background-color: var(--w-g750);
  }

  .fr-menu .fr-nav__link {
    box-shadow: 0 calc(-1rem - 1px) 0 -1rem var(--g300);
  }

  .fr-mega-menu > .fr-container::before {
    background-color: var(--bf200-bf300);
  }

  .fr-mega-menu__category {
    box-shadow: 0 calc(1rem + 1px) 0 -1rem var(--g300);
  }
}

@media (hover: hover) and (pointer: fine) {
  .fr-nav__link:not(a):not(:disabled):hover, a.fr-nav__link[href]:hover,
  a.fr-nav__btn[href]:hover, .fr-nav__btn:not(a):not(:disabled):hover {
    background-image: linear-gradient(0deg, var(--color-hover), var(--color-hover));
  }

  .fr-nav__link:not(a):not(:disabled):active, a.fr-nav__link[href]:active,
  a.fr-nav__btn[href]:active, .fr-nav__btn:not(a):not(:disabled):active {
    background-image: linear-gradient(0deg, var(--color-active), var(--color-active));
  }
}
