footer .credits {
  display: none !important;
}

@media (max-width: 991px) {
  #pageFooter > .container > .row:first-child {
    display: flex;
    flex-direction: column;
  }

  #pageFooter > .container > .row:first-child > .col-md-4:nth-child(3) {
    order: 1;
  }

  #pageFooter > .container > .row:first-child > .col-md-4:nth-child(2) {
    order: 2;
  }

  #pageFooter > .container > .row:first-child > .col-md-4:nth-child(1) {
    order: 3;
  }
}

/* Pied de page BB247 */

#pageFooter {
  background: #e7eef6 !important;
  padding-top: 30px !important;
}

/* Encadres des articles */

body.blog article {
  background: #e7eef6 !important;
  border-color: #b6c9df !important;
}

/* Titres des articles */

body.blog article h2,
body.blog article h2 a {
  color: #143258 !important;
}

body.blog article h2 {
  margin-bottom: 15px !important;
}

/* Images des articles */

body.blog article figure img {
  border-radius: 8px;
}

body.blog article figure {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

/* Resume limite a quatre lignes */

body.blog article .entry-summary > p:first-child:not(:has(.readmore)) {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lire la suite */

body.blog article .readmore {
  display: block !important;
  text-align: center !important;
  border-bottom: 1px solid #b6c9df;
  padding-bottom: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

body.blog article .readmore a {
  color: #da041a !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: color 0.25s ease;
}

body.blog article .readmore a::after {
  content: " \2192";
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  margin-left: 5px;
  transition: transform 0.25s ease;
}

/* Effet de survol Lire la suite */

body.blog article .readmore a:hover,
body.blog article .readmore a:focus-visible {
  color: #143258 !important;
}

body.blog article .readmore a:hover::after,
body.blog article .readmore a:focus-visible::after {
  transform: translateX(5px);
}

/* Informations secondaires */

body.blog article small {
  font-size: 90%;
}

body.blog article small:not(.readmore) a {
  color: #53708c !important;
}

/* Masquer les etiquettes sur la page d'accueil */

body.blog article .metas small:has(.fa-tags) {
  display: none !important;
}

/* Navigation entre les pages du blog */

body.blog article#frontpage {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.blog #frontpage nav.row {
  margin: 0 !important;
}

body.blog #frontpage .nav-previous,
body.blog #frontpage .nav-next {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
}

body.blog #frontpage .nav-previous a,
body.blog #frontpage .nav-next a {
  display: block !important;
  position: relative;
  box-sizing: border-box;
  width: 80%;
  margin: 0 auto 12px;
  background: #143258 !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none !important;
  font-size: 0 !important;
  transition: background-color 0.25s ease;
}

body.blog #frontpage .nav-previous a i,
body.blog #frontpage .nav-next a i {
  display: none !important;
}

body.blog #frontpage .nav-previous a::after {
  content: "Plus d\2019 articles \2192";
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

body.blog #frontpage .nav-next a::after {
  content: "\2190 Articles r\00e9 cents";
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

body.blog #frontpage .nav-previous a:hover,
body.blog #frontpage .nav-previous a:focus-visible,
body.blog #frontpage .nav-next a:hover,
body.blog #frontpage .nav-next a:focus-visible {
  background: #da041a !important;
}

/* Menu principal BB247 */

#main-menu {
  background: #143258 !important;
  border-color: #143258 !important;
}

#main-menu #menu-primary > li > a {
  color: #ffffff !important;
  transition: color 0.25s ease;
}

#main-menu #menu-primary > li > a:hover,
#main-menu #menu-primary > li > a:focus,
#main-menu #menu-primary > li.open > a {
  color: #ff5968 !important;
  background: transparent !important;
}

/* Menus deroulants BB247 */

#main-menu .dropdown-menu {
  background: #e7eef6 !important;
  border-color: #b6c9df !important;
  border-radius: 0 0 12px 12px;
}

#main-menu .dropdown-menu > li > a {
  color: #143258 !important;
  transition: color 0.25s ease,
              background-color 0.25s ease;
}

#main-menu .dropdown-menu > li > a:hover,
#main-menu .dropdown-menu > li > a:focus {
  color: #da041a !important;
  background: #ffffff !important;
}

/* Menu mobile BB247 */

#main-menu .navbar-toggle {
  border-color: #ffffff !important;
}

#main-menu .navbar-toggle .icon-bar {
  background: #ffffff !important;
}

#main-menu .navbar-toggle:hover,
#main-menu .navbar-toggle:focus {
  background: #29496f !important;
}

/* Protection de la version ordinateur et tablette */

.bb247-footer-categories,
.bb247-expertise-mobile {
  display: none !important;
}

/* Nouveau pied de page BB247 sur mobile uniquement */

@media (max-width: 767px) {

  #pageFooter > .container > .row:first-child {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 15px;
  }

  #pageFooter > .container > .row:first-child > .col-md-4,
  #pageFooter .sidebar-footer,
  #pageFooter .bb247-footer-contact {
    display: contents !important;
  }

  #pageFooter .bb247-footer-contact > * {
    order: 1;
    width: 100%;
    box-sizing: border-box;
  }

  #pageFooter .bb247-footer-contact > h3:first-child,
  #pageFooter .bb247-footer-contact > p {
    text-align: center;
  }

  #pageFooter .bb247-footer-expertise {
    order: 2;
    width: 100%;
    margin-top: 20px !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #b6c9df !important;
  }

  #pageFooter .bb247-expertise-desktop {
    display: none !important;
  }

  #pageFooter .bb247-expertise-mobile {
    display: block !important;
  }

  #pageFooter .bb247-footer-media {
    order: 3;
    width: 100%;
    margin-top: 20px !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #b6c9df !important;
  }

  /* Trait de separation au-dessus de BB247 */

  #pageFooter .bb247-footer-media > div:last-child {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #b6c9df !important;
  }

  #pageFooter .bb247-footer-categories {
    display: block !important;
    order: 4;
    width: 100%;
    margin-top: 20px !important;
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid #b6c9df !important;
  }

  #pageFooter .bb247-mobile-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #pageFooter .bb247-mobile-links li {
    list-style: none !important;
    padding: 5px 0 !important;
    margin: 0 !important;
  }

  #pageFooter .bb247-mobile-links li a {
    color: #143258 !important;
    text-decoration: none !important;
    font-size: 16px;
    line-height: 1.5;
  }

  #pageFooter .bb247-mobile-links li a::before {
    content: "\276F";
    color: #da041a;
    font-weight: 700;
    margin-right: 10px;
  }

  #pageFooter .bb247-mobile-links li a:hover,
  #pageFooter .bb247-mobile-links li a:focus-visible {
    color: #da041a !important;
  }

  #pageFooter .bb247-footer-contact > .bb247-footer-legal {
    order: 5 !important;
    text-align: left;
  }

  #pageFooter h3.bb247-footer-legal {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #b6c9df !important;
  }

  #pageFooter .bb247-footer-contact > .bb247-footer-signature {
    order: 6 !important;
    text-align: center !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #b6c9df !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
  }
}