#footer {
  clear: both;
  width: 100%;
  margin-top: 36px;
  background: #1c2430 !important;
  color: #d5dde6;
  border-top: 4px solid #c23b3b;
}
#footer #footer_top {
  display: none;
}
#footer #footer_middle {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 22px 18px;
  overflow: visible;
  background: none;
}
#footer .menu_bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
  float: none !important;
  width: 100% !important;
  overflow: visible;
  padding: 0;
}
#footer .menu_bottom > .clr {
  display: none;
}

/* Rangée 1 : colonnes Emploi / Formation / Recruteurs / À propos */
#footer .footer_cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
  width: 100%;
}
#footer .menu_rubrique {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0 !important;
  order: 1;
}
#footer .footer_about {
  order: 4;
}
#footer .nos_offres {
  display: inline-block;
  margin: 0 0 14px !important;
  padding: 0 0 8px;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
  border-bottom: 2px solid #c23b3b;
}
#footer .menu_rubrique ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer .menu_rubrique ul li {
  float: none !important;
  display: block !important;
  width: auto !important;
  margin: 0 0 8px;
  padding: 0 !important;
  border: 0;
}
#footer .menu_rubrique ul li a,
#footer .menu_rubrique ul li a span {
  color: #c5d0dc !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none !important;
}
#footer .menu_rubrique ul li a:hover,
#footer .menu_rubrique ul li a:hover span {
  color: #fff !important;
  text-decoration: none !important;
}
#footer .footer_about_text {
  margin: 0 0 14px;
  color: #aeb9c6;
  font-size: 13px;
  line-height: 1.55;
}

/* Rangée 2 : régions */
#footer .footer_seo {
  width: 100%;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-sizing: border-box;
}
#footer .footer_seo_nav {
  margin: 0;
}
#footer .footer_seo_regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 18px;
}
#footer .footer_seo_regions li {
  float: none !important;
  display: block !important;
  width: auto !important;
  margin: 0;
  padding: 0;
}
#footer .footer_seo_regions a {
  display: block;
  padding: 4px 0;
  color: #c5d0dc !important;
  font-size: 13px !important;
  line-height: 1.4;
  text-decoration: none !important;
}
#footer .footer_seo_regions a:hover {
  color: #fff !important;
}

/* Rangée 3 : liens légaux */
#footer ul.footer_menu_bas_plus {
  width: 100% !important;
  float: none !important;
  margin: 22px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  list-style: none;
  text-align: center;
  overflow: visible;
  order: unset;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
}
#footer ul.footer_menu_bas_plus li {
  float: none !important;
  display: inline-block !important;
  width: auto !important;
  margin: 0;
  padding: 0;
}
#footer ul.footer_menu_bas_plus li a,
#footer ul.footer_menu_bas_plus li a span {
  display: inline-block;
  padding: 6px 12px !important;
  color: #9aabbd !important;
  font-size: 13px !important;
  text-decoration: none !important;
}
#footer ul.footer_menu_bas_plus li a:hover,
#footer ul.footer_menu_bas_plus li a:hover span {
  color: #fff !important;
}

/* Copyright */
#footer .footer_seo_copy {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8a98a8;
  font-size: 12px;
  text-align: center;
  order: 99;
}

/* Le copyright est après FOOTER_SEO dans le flux ; on le place après les liens légaux */
#footer .menu_bottom {
  display: grid;
  grid-template-columns: 1fr;
}
#footer .footer_cols { grid-row: 1; }
#footer .footer_seo { grid-row: 2; }
#footer ul.footer_menu_bas_plus { grid-row: 3; }
#footer .footer_seo_copy { grid-row: 4; }

@media (max-width: 991px) {
  #footer .footer_cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #footer .footer_seo_regions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #footer #footer_middle {
    padding: 28px 16px 14px;
  }
  #footer .footer_cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  #footer .footer_seo_regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
