.footer {
  clear: both;
  background-color: var(--footer-bg);
  color: white;
  padding-top: 45px;
  max-width: var(--largeur-ecran);
  margin: 0 auto;
  margin-bottom: 116px;
}

.sud_footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  margin-left: 15px;
}

.sud_footer .widget_text .textwidget {
display: flex;
justify-content: center;
flex-direction: column;
}

.sud_footer .widget_text .textwidget p {
display: flex;
justify-content: center;
line-height: 1.25;
margin-bottom: 10px;
}
.sud_footer .widget_text .textwidget img {
  max-width: 124px;
  width: 100%;
  margin-bottom: 25px;
}
#sud_footer aside {
  max-width: 230px;
  width: 100%;
}

.sud_footer aside:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
  display: flex;
  justify-content: center;
}
.sud_footer aside:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.sud_footer aside:nth-child(3) { grid-area: 1 / 3 / 3 / 4; }
.sud_footer aside:nth-child(4) { grid-area: 1 / 4 / 2 / 5; }
.sud_footer aside:nth-child(5) { grid-area: 2 / 4 / 3 / 5; }
.sud_footer aside:nth-child(6) { grid-area: 3 / 4 / 4 / 5; }


.sud_footer h5 {
  font-size: var(--taille2);

  margin-bottom: 20px;
  position: relative;
}
.sud_footer h5:after {
  content: "";
  position:absolute;
  height: 2px;
  width:100%;
  max-width: 100%;
  background-color: #fff;
  bottom: -2px;
  left: 0;
}

.menu-footer-actualites-container .menu li {
  width: 50%;
  float: left;
  padding: 2px 0;
}

#menu-menu-footer-partenaires li {
  padding: 2px 0;
  text-transform: lowercase;
}

#menu-menu-footer-partenaires li a::first-letter {
  text-transform: uppercase;
}

.footer a {
    color: var(--footer-lien);
}

#custom_html-14 {
  /*display: none; /* A enlever pour afficher la gestion cookies */
}

@media screen and (max-width:1024px) {

  .sud_footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
  }

  .sud_footer aside:nth-child(1) {
    grid-area: none;
    grid-area: 1 / 1 / 2 / 3;
  }
  .sud_footer aside:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
  .sud_footer aside:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
  .sud_footer aside:nth-child(4) { grid-area: 3 / 1 / 4 / 2; }
  .sud_footer aside:nth-child(5) { grid-area: 3 / 2 / 4 / 3; }
  .sud_footer aside:nth-child(6) { grid-area: 4 / 2 / 4 / 2; }
}

@media screen and (max-width:780px) {
  .footer{
    padding-top: 0;
    margin-bottom: 90px;

  }
  #sud_footer aside {
    max-width: 100%;
  }

  .sud_footer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    place-items: center;
    padding: 20px 10px 0px 10px;
  }

  .sud_footer aside:nth-child(1) {
    grid-area: none;
    grid-area: 1 / 1 / 2 / 2;
  }
  .sud_footer aside:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
  .sud_footer aside:nth-child(3) { grid-area: 3 / 1 / 4 / 2; }
  .sud_footer aside:nth-child(4) { grid-area: 4 / 1 / 5 / 2; }
  .sud_footer aside:nth-child(5) { grid-area: 5 / 1 / 6 / 2; }
  .sud_footer aside:nth-child(6) { grid-area: 6 / 1 / 6 / 2; }
}
