/* =========================================================
   bootstrap_barrio_giguellerie — 10-footer.css
   Footer, layout, menus
   ========================================================= */

#footer, .site-footer{
  background: linear-gradient(
    to bottom,
    var(--bootstrap_barrio_giguellerie-vert-foret),
    var(--bootstrap_barrio_giguellerie-vert-feuillage)
  ) !important;
  color: var(--bootstrap_barrio_giguellerie-gris-clair);
}

/* Transformer .site-footer__top en "row" Bootstrap */
.site-footer__top{
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--bs-gutter-x, 1.5rem) / 2);
  margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) / 2);
}

/* Gutters sur les colonnes (= tes regions col-*) */
.site-footer__top > .region{
  padding-left: calc(var(--bs-gutter-x, 1.5rem) / 2);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) / 2);
  min-width: 0;
}

.site-footer .block, .site-footer h2 {
  border: none;
}

.site-footer h2 {
  border-bottom: 1px solid #555;
  border-color: rgba(255, 255, 255, 0.15);
  font-size: 1em;
  margin-bottom: 0;
  padding-bottom: 3px;
  text-transform: uppercase;
}

.site-footer nav ul.nav {
  display: flex;
  flex-direction: column;
}

.site-footer a,
.site-footer a.is-active {
  color: var(--bs-link-color) !important;
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--bs-link-hover-color) !important;
}

#block-bootstrap-barrio-giguellerie-footerlogo img{
  opacity: 1;
  filter: opacity(.65);
}

.region-footer-fourth nav.menu--footer ul.nav {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  font-size: .9rem;
}

.region-footer-fourth .block-language nav.links-inline {
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}

/* Menu footer : liens en colonne (bloc spécifique) */
#block-bootstrap-barrio-giguellerie-pieddepage ul.nav {
  display: flex;
  flex-direction: column !important;
  gap: .25rem;
}
#block-bootstrap-barrio-giguellerie-pieddepage .nav-link {
  padding: .125rem 0;
}

.site-footer .block {
  margin: 0;
}

/* Footer Responsive */
@media (max-width: 575.98px) {
  .site-footer .region-footer-second {
    display: none;
  }

  .site-footer .site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 1rem;
    align-items: start;
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer .site-footer__top > .region {
    width: auto;
    max-width: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

  .site-footer .region-footer-first {
    order: 1;
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .site-footer .region-footer-fourth {
    order: 2;
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }
  
  .site-footer .region-footer-fourth ul.nav {
    align-items: end !important;
  }
  
  .site-footer .region-footer-fourth .block {
    padding-right: 0;
  }
  
  .site-footer .region-footer-fourth #social-network {
    -webkit-box-pack: end !important;
    -webkit-justify-content: flex-end !important;
    -ms-flex-pack: end !important;
    justify-content: flex-end !important;
  }

  .site-footer .region-footer-third {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

  .site-footer .region-footer-fourth .content,
  .site-footer .region-footer-fourth .block {
    text-align: right;
  }

  .site-footer .region-footer-fourth #social-network {
    justify-content: flex-end;
  }
}

/* =========================================================
   Footer — Language switcher (Bootstrap dropdown)
   Style: identique aux liens du footer (pas "bouton")
   ========================================================= */

.site-footer .block-language{
  text-align: center;
}

.site-footer .language-dropdown{
  display: inline-flex;
  align-items: center;
}

.site-footer .langicon--solid{ display:inline-block; }

.site-footer .language-dropdown__toggle{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;

  color: var(--bs-link-color) !important;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;

  cursor: pointer;
  text-decoration: none;
  text-decoration-color: color-mix(in srgb, var(--bs-link-color) 45%, transparent);
  text-underline-offset: .15em;
}

.site-footer .language-dropdown__toggle:hover{
  color: var(--bs-link-hover-color) !important;
  text-decoration-color: color-mix(in srgb, var(--bs-link-hover-color) 55%, transparent);
}

.site-footer .language-dropdown .dropdown-menu{
  inset-inline-start: auto;
  inset-inline-end: auto;
  max-width: min(90vw, 20rem);
  min-width: 0;
  text-align: center;
  line-height: 2;
}

.site-footer .language-dropdown .dropdown-menu a.language-link{
  display: block;
  padding: .35rem .75rem;
  color: inherit;
  text-decoration: none;
}

.site-footer .language-dropdown .dropdown-menu a.language-link:hover,
.site-footer .language-dropdown .dropdown-menu a.language-link:focus{
  background: rgba(0,0,0,.06);
}