/* Header navigation: keep the project CTA beside the menu without overlap. */
@media (min-width: 768px) {
  #header .header-top .col-md-10.position-static.hidden-sm-down {
    display: flex;
    align-items: center;
  }

  #_desktop_top_menu.menu {
    float: none;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    display: flex;
  }

  #_desktop_top_menu .top-menu {
    float: none;
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
  }

  .bloc_conseil {
    float: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bloc_conseil .contact-cta {
    width: max-content;
    max-width: 100%;
  }

  #_desktop_cart {
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  #header .header-top .col-md-10.position-static.hidden-sm-down {
    padding-left: 6px;
    padding-right: 6px;
  }

  #_desktop_top_menu .top-menu {
    justify-content: flex-start;
  }

  #header .header-top a[data-depth="0"] {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 10px;
    white-space: nowrap;
  }

  #_desktop_top_menu #lnk-home a {
    padding-left: 4px;
    padding-right: 6px;
  }

  #_desktop_top_menu #lnk-home img {
    width: 18px;
    height: auto;
  }

  .bloc_conseil .contact-camera {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    background-size: 32px 32px !important;
  }

  .bloc_conseil .contact-cta {
    gap: 5px;
    font-size: 10px;
    line-height: 13px;
  }

  .bloc_conseil .contact-cta strong {
    font-size: 10.5px;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  #_desktop_top_menu #lnk-home {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  #header .header-top a[data-depth="0"] {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 9.5px;
  }

  .bloc_conseil .contact-cta {
    font-size: 9.5px;
    line-height: 12.5px;
  }

  .bloc_conseil .contact-cta strong {
    font-size: 10px;
  }
}

@media (min-width: 768px) and (max-width: 790px) {
  #header .header-top a[data-depth="0"] {
    font-size: 9px;
  }

}

@media (min-width: 768px) and (max-width: 800px) {
  .bloc_conseil .contact-camera {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
    background-size: 28px 28px !important;
  }

  .bloc_conseil .contact-cta {
    gap: 4px;
    font-size: 8.75px;
    line-height: 11.5px;
  }

  .bloc_conseil .contact-cta strong {
    font-size: 9.25px;
  }
}

/* Use the approved camera icon in the contact CTA (desktop and mobile). */
.bloc_conseil .contact-camera {
  background-image: url('/modules/dgo_headerfix/views/img/ico_header-01-contact.png') !important;
}

.bloc_conseil a.hidden-md-up img[src*="ico_header-01-contact"] {
  content: url('/modules/dgo_headerfix/views/img/ico_header-01-contact.png');
}
