/**
 * @file
 * The footer components.
 */


/**
 * Global footer
 */

footer,
.after-footer {
  background-color: var(--color-primary--3);
}

.region-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  padding: 2rem 20px;
  margin: 0 auto;
  gap: 2rem;
  border-bottom: 1px solid #404040;
}

@media screen and (min-width: 900px) {
  .region-footer {
    flex-direction: row;
    align-items: flex-end;
    padding: 1rem 0 2rem;
  }
}


/**
 * Blocs communs
 */

.region-footer,
.bloc-adresse a {
  color: #fff;
}

.bloc-adresse a:hover {
  text-decoration: underline;
}

.bloc-adresse .field--name-body {
  display: flex;
  flex-direction: column;
}

.bloc-adresse .field--name-body > p:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bloc-partenaire,
.bloc-adresse {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

@media screen and (min-width: 1024px) {
  .bloc-partenaire,
  .bloc-adresse {
    max-width: 500px;
  }
  .bloc-adresse .field--name-body > p:first-child {
    font-size: 1.875rem;
  }
}

.bloc-partenaire {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bloc-partenaire h2 {
  font-size: var(--heading-size-m);
  max-width: 300px;
}

/**
 * Bloc footer logo
 */

.bloc-logo-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
}

.bloc-logo-footer__text p {
  font-size: var(--heading-size-m);
  font-weight: 500;
  line-height: 120%;
}

.bloc-logo-footer__logos .field--name-field-image-logos .field__items {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.bloc-logo-footer__logos .field--name-field-image-logos .field__item {
  flex-shrink: 0;
}


/**
 * Copyright
 */

.footer-copyright {
  text-align: center;
  padding: 1rem 0;
}

.footer-copyright a {
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}

.footer-copyright a:hover {
  background-size: 100% 1px;
}


/**
 * Bloc remerciement
 */

.bloc-remerciement {
  text-align: center;
  background-color: #fff;
  padding: 2rem 1rem;
}

.bloc-remerciement .field--type-image .field__item {
  display: inline-block;
  vertical-align: middle;
  margin: 0 1rem;
}

@media all and (min-width: 1000px) {
  .region-highlighted {
    display: flex;
    justify-content: center;
  }
}


/**
 * After Footer
 */

.after-footer {
  padding: 1rem 0 1rem 0;
}

.after-footer,
.after-footer a {
  color: var(--color-neutral--4);
}

