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

/* ¯¯¯¯¯¯¯¯¯ *\
  ACCORDION
\* ˍˍˍˍˍˍˍˍˍ */
.village-accordion {
  position: relative;
}

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

.village-accordion__title {
  margin: 0;
  display: block;
  font-size: unset;
  line-height: unset;
}

.village-accordion:focus-within {
  z-index: 1;
}

.village-accordion__btn {
  --text-spacing: 0;
  --title-spacing: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  overflow: initial;
  max-width: 100%;
  max-height: none;
  width: 100%;
  text-align: left;
  margin: 0;
  color: var(--text-action-high-village-primary);
}

.village-accordion__btn::before,
.village-accordion__btn::after {
  display: block;
}

.village-accordion__btn::after {

  --icon-size: 1rem;
  margin-right: -0.125rem;
  margin-left: 0.25rem;
  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");
  content: "";
  transition: transform 0.3s;
  margin-right: 0;
  margin-left: auto;
}

.village-accordion__btn::before {
  content: none;
}

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

.village-accordion .village-collapse {
  --ul-type: disc;
  --ol-type: decimal;
  --ul-start: 1rem;
  --ol-start: 1.5rem;
  --xl-block: 0.5rem;
  --li-bottom: 0.25rem;
  --xl-base: 1em;
  --ol-content: counters(li-counter, ".") ".  ";
  transition: visibility 0.3s, padding 0.3s;
}

.village-accordion .village-collapse--expanded {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.village-accordions-group {
  --ul-type: none;
  --ol-type: none;
  --ul-start: 0;
  --ol-start: 0;
  --xl-block: 0;
  --li-bottom: 0;
  --ol-content: none;
}

.village-accordion__btn[aria-expanded=true] {
  background-color: var(--background-open-village-primary);

  --idle: transparent;
  --hover: var(--background-open-village-primary-hover);
  --active: var(--background-open-village-primary-active);
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */
  .village-accordion .village-collapse {
    margin: 0 -0.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /*! 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-accordions-group ul {
    list-style-type: none;
  }

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

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

  ul {
    list-style-type: disc;
  }

  ol {
    list-style-type: decimal;
  }

  ul,
  ol {
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .village-accordion__btn::before,
  .village-accordion__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;
  }

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

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

  .village-accordion__btn {
    color: hsl(180, 75%, 25%);
  }

  .village-accordion__btn[aria-expanded=true] {
    background-color: hsl(180, 80%, 93%);
  }
}
@media print {
  .village-accordion::before {
    box-shadow: inset 0 1px 0 0 #ddd, 0 1px 0 0 #ddd;
  }

  .village-accordion__btn {
    color: hsl(180, 75%, 25%);
  }

  .village-accordion__btn[aria-expanded=true] {
    background-color: hsl(180, 80%, 93%);
  }

  .village-accordion__btn::after {
    transform: rotate(-180deg);
  }

  .village-accordion .village-collapse:not(.village-collapse--expanded) {
    --collapse-max-height: none !important;
    --collapse: inherit !important;
    visibility: visible;
    padding: 1rem;
  }
}
