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

/* ¯¯¯¯¯¯¯¯¯ *\
  BREADCRUMB
\* ˍˍˍˍˍˍˍˍˍ */

/**
un padding de 4px et une marge négative en compensation sont mis en place afin d'éviter de couper le focus.
 */
.village-breadcrumb {
  margin: 1rem 0 2rem;
  font-size: 0.75rem;
  line-height: 1.25rem;

  --text-spacing: 0 0 0.5rem;
  position: relative;
  color: var(--text-mention-grey);
}

.village-breadcrumb__button {
  background-image: var(--underline-img), var(--underline-img);
  background-position: var(--underline-x) 100%, var(--underline-x) calc(100% - var(--underline-thickness));
  background-repeat: no-repeat, no-repeat;
  transition: background-size 0s;
  background-size: var(--underline-hover-width) calc(var(--underline-thickness) * 2), var(--underline-idle-width) var(--underline-thickness);
  font-size: 0.75rem;
  line-height: 1.25rem;
  margin: 0;
  padding: 0;

  --hover-tint: var(--idle);
  --active-tint: var(--idle);
  color: inherit;
}

.village-breadcrumb__button:hover,
.village-breadcrumb__button:active {
  --underline-hover-width: var(--underline-max-width);
}

.village-breadcrumb__button[aria-expanded=true] {
  display: none;
}

.village-breadcrumb .village-collapse {
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
  transform: translateY(-4px);
}

.village-breadcrumb__list {
  --ul-type: none;
  --ol-type: none;
  --ul-start: 0;
  --ol-start: 0;
  --xl-block: 0;
  --li-bottom: 0;
  --ol-content: none;
  transform: translateY(4px);
}

.village-breadcrumb__list li {
  display: inline;
  line-height: 1.75rem;

  /**
  * flèche séparatrice en font-icon
  */
}

.village-breadcrumb__list li:not(:first-child)::before {
  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-right-s-line.svg");
  mask-image: url("../../icons/system/arrow-right-s-line.svg");
  --icon-size: 1rem;
  content: "";
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  vertical-align: -0.0625em;
}

.village-breadcrumb__link {
  vertical-align: top;
  position: relative;
  background-image: var(--underline-img), var(--underline-img);
  background-position: var(--underline-x) 100%, var(--underline-x) calc(100% - var(--underline-thickness));
  background-repeat: no-repeat, no-repeat;
  transition: background-size 0s;
  background-size: var(--underline-hover-width) calc(var(--underline-thickness) * 2), var(--underline-idle-width) var(--underline-thickness);

  --hover-tint: var(--idle);
  --active-tint: var(--idle);
  font-size: 0.75rem;
  line-height: 1.25rem;
  padding: 0;
}

.village-breadcrumb__link:hover,
.village-breadcrumb__link:active {
  --underline-hover-width: var(--underline-max-width);
}

.village-breadcrumb__link[aria-current]:not([aria-current=false]) {
  pointer-events: none;
  cursor: default;

  --underline-img: none;
  color: var(--text-default-grey);
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */
  .village-breadcrumb {
    margin-bottom: 2.5rem;
  }

  .village-breadcrumb__button {
    display: none;
  }

  .village-breadcrumb .village-collapse {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    transform: none;
    visibility: inherit;
    overflow: visible;
    max-height: none;
  }

  .village-breadcrumb .village-collapse::before {
    content: none;
  }

  .village-breadcrumb__list {
    transform: none;
  }

  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */

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

  /*! media xl */
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /**
  * reset liste à puce
  */
  .village-breadcrumb ul {
    list-style-type: none;
  }

  .village-breadcrumb ol {
    list-style-type: none;
  }

  .village-breadcrumb ul,
  .village-breadcrumb ol {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .village-breadcrumb__link:not([aria-current])::after,
  .village-breadcrumb__link[aria-current=false]::after {
    background-color: transparent;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/arrow-right-s-line.svg");
    width: 1rem;
    height: 1rem;
  }

  .village-breadcrumb {
    color: #666;
  }

  .village-breadcrumb__link[aria-current]:not([aria-current=false]) {
    color: #3a3a3a;
  }
}
@media print {
  .village-breadcrumb {
    color: #666;
    display: none;
  }

  .village-breadcrumb__link[aria-current]:not([aria-current=false]) {
    color: #3a3a3a;
  }
}
