/*
  This code comes from IAM; it is exactly the same until next comment.
  If you change something, it should be changed also in IAM to be maintainable
 */

/*** STYLE BASE FROM IAM FOOTER ***/

footer {
  position: relative;
  margin-top: 2rem;
}

footer .refs-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

footer .refs-container {
  max-width: 86rem;
  display: flex;
  row-gap: 1.5rem;
  column-gap: normal;
  flex-wrap: wrap;
  justify-content: center;
}

@media only screen and (min-width: 1024px) {
  footer .refs-container {
    gap: 2.25rem;
  }
}

footer .zoneutile {
  text-align:center;
  margin: 0;
}

@media only screen and (min-width: 1024px) {
  footer .zoneutile {
    margin: 0 auto 3rem;
  }
}

@media only screen and (min-width: 1440px) {
  footer .zoneutile {
    width: calc(1325 / 16 * 1rem)
  }
}

@media (min-resolution: 1.5x), only screen and (-webkit-min-device-pixel-ratio: 2) {
  .textInput {
    border: 1.5px solid #4D4A46
  }
}

footer .ref {
  align-items: center;
  display: inline-block;
  width: calc(164 / 16  * 1rem);
  padding: 0;
}

@media (min-width: 1024px) {
  footer .ref {
    width: calc(220 / 16  * 1rem)
  }
}

footer .ref a {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: normal;
  line-height: 1.5;
  text-align: center;
}

footer .ref img {
  display: block;
  width: 5rem;
  height: 5rem;
}

footer .ref h3 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
}

footer .ref .hint {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: #ffffff;
}

footer .links {
  background: #3f3d3a;
  display: flex;
  justify-content: center;
  font-size: 14px;
}

footer .container {
  align-items: flex-start;
  justify-content: space-between;
  flex-flow: row wrap;
  padding: 2rem;
  gap: 0.5rem;
  width: 100%;
}

@media only screen and (min-width: 1440px) {
  footer .container {
    max-width: 86rem;
  }
}

footer .links .zoneutile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media only screen and (min-width: 1024px) {
  footer .links .zoneutile {
    justify-content: space-around;
    flex-direction: row;
    gap: 0;
    align-items: normal;
  }
}

footer .links .group {
  padding: 0;
  vertical-align: top;
  text-align: left;
}

footer .links .group.map {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 21rem;
  max-width: 18.8rem;
}

footer .links .group.map a {
  width: 8.75rem;
  max-height: 17.7rem;
  justify-content: center;
  color: #fff;
}

@media only screen and (min-width: 1024px) {
  footer .links .group.map a {
    width: 100%;
  }
}

footer .links .group.map a svg {
  max-height: inherit;
}

footer .links .group.list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media only screen and (min-width: 1024px) {
  footer .links .group.list {
    flex-direction: row;
    gap: 4rem;
    width: auto;
  }
}

footer .links .group.list .group{
  display: flex;
  flex-direction: column;
}

@media only screen and (min-width: 1024px) {
  footer .links .group.list .group{
    gap: 3rem;
  }
}

footer .links .group.list .group .categories:last-child{
  margin-top: auto;
}

footer .links .group .categories:before {
  content: '';
  border-top: .0625rem solid #ffffff;
  height: 1px;
  width: 100%;
  display: block;
  opacity: 0.2;
  margin-bottom: 0.5rem;
}

@media only screen and (min-width: 1024px) {
  footer .links .group .categories:before {
    display: none;
  }
}

footer .links .group h3 {
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  font-size: inherit;
  padding: 0.5rem;
  margin: 0.5rem 0;
}

@media only screen and (min-width: 1024px) {
  footer .links .group h3 {
    margin-bottom: 1rem;
    padding: 0;
  }
}

footer .links .group ul {
  list-style: none;
  margin-bottom: 2rem;
}

@media only screen and (min-width: 1024px) {
  footer .links .group ul {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }
}

footer .links .group ul a {
  color: #ffffff;
  font-weight: 400;
  padding: 0.25rem 0;
  line-height: calc(20 / 16 * 1rem);
}

footer .links .group button {
  display: flex;
  justify-content: center;
  height: 3rem;
  width: 100%;
  flex: 0 0 3rem;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-full);
  border: none;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

footer .links .group button img {
  width: 1rem;
}

footer .links .group form {
  width: auto;
  padding: 0;
  color: #ffffff;
  text-align: center;
  margin-top: 2rem;
  gap: 0;
}

footer .links .group form > * {
  line-height: 1.5;
}

footer .links .group form .question {
  margin-bottom: 0.25rem;
}

footer .links .group form .description {
  margin-bottom: 1rem;
}

.footer-legal {
  margin: 0 auto;
  background-color: #3f3d3a;
}
.footer-legal:before {
  content: '';
  border-top: .0625rem solid #ffffff;
  height: 1px;
  width: 100%;
  display: block;
  opacity: 0.2;
  margin-bottom: 1.5rem;
}

.legal-mentions {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  line-height: 1.43;
  color: #fff;
}

@media only screen and (min-width: 1024px) {
  .legal-mentions {
    justify-content: center;
  }
}

.legal-mentions >.mention-link {
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1.75;
}

.legal-mentions >.mention-link a {
  font-weight: 400;
  color: currentColor;
}

/*** ADAPTATION OF THE IAM FOOTER ***/

footer {
  font-size: 0.875rem;
}

footer a {
  display: flex;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .refs-list {
  background: var(--color-secondary);
  border-top-left-radius: var(--radius-m);
  border-top-right-radius: var(--radius-m);
}

footer .ref a {
  align-items: center;
}

footer .container {
  max-width: none;
}

@media only screen and (min-width: 1024px) {
  footer .links .group h3 {
    margin-top: 0;
  }
}

footer .links .group ul {
  padding: 0;
}

footer .links .group ul a {
  display: block;
}

footer .links .group form {
  display: flex;
  flex-direction: column;
}

footer .links .group button i {
  font-size: 1rem;
  border-radius: var(--radius-full);
}

/*** ACCORDIONS FROM IAM ***/

@media only screen and (max-width: 1023px) {
  [data-js-accordion].accordion-opened [data-js-accordion-title] {
    margin-bottom: 0;
  }

  [data-js-accordion].accordion-opened [data-js-accordion-content] {
    display: block;
    margin: 1rem 0 1rem 0.5rem;
  }

  [data-js-accordion-content] {
    display: none;
  }

  [data-js-accordion-title] {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  [data-js-accordion].accordion-opened [data-js-accordion-title]:after {
    transform: rotateZ(180deg);
  }

  [data-js-accordion-title]:after {
    content: '';
    display: block;
    width: calc(25 / 16 * 1rem);
    height: calc(26 / 16 * 1rem);
    background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2237%22%20height%3D%2236%22%20viewBox%3D%220%200%2037%2036%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20id%3D%22Icons/chevron-down%22%3E%3Cpath%20id%3D%22Vector%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.78553%2012.4393C9.37132%2011.8536%2010.3211%2011.8536%2010.9069%2012.4393L18.8462%2020.3787L26.7855%2012.4393C27.3713%2011.8536%2028.3211%2011.8536%2028.9069%2012.4393C29.4926%2013.0251%2029.4926%2013.9749%2028.9069%2014.5607L19.9069%2023.5607C19.3211%2024.1464%2018.3713%2024.1464%2017.7855%2023.5607L8.78553%2014.5607C8.19974%2013.9749%208.19974%2013.0251%208.78553%2012.4393Z%22%20fill%3D%22%23D9D9D9%22/%3E%3C/g%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotateZ(0deg);
    transition: transform .15s;
  }
}