
/* ============================================
   CODES CSS ADDITIONNELS - HEADER & NAVIGATION
   À ajouter à la fin du fichier code.css existant
   ============================================ */

/* ============================================
   FIX : Classes de visibilité responsive
   Pour éviter le double affichage du header
   ============================================ */

/* Cacher sur mobile (< 768px) */
@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Afficher uniquement sur mobile */
.show-on-mobile {
  display: none;
}
@media (max-width: 767px) {
  .show-on-mobile {
    display: block !important;
  }
}

/* Cacher sur tablette */
@media (min-width: 768px) and (max-width: 1024px) {
  .hide-on-tablet {
    display: none !important;
  }
}

/* Header mobile caché par défaut sur desktop */
#header-mobile {
  display: none;
}
@media (max-width: 767px) {
  #header-mobile {
    display: block;
  }
}

/* Header desktop caché sur mobile */
@media (max-width: 767px) {
  #header-page {
    display: none !important;
  }
}

/* ============================================
   AVERTISSEMENT IE
   ============================================ */

#ie-warning {
    display: none;
    background: #ffcccc;
    border-bottom: 1px solid #ff0000;
}

#ie-warning .container,
#ie-warning #business .business-container {
    padding: 15px 10px;
}

/* ============================================
   HEADER MOBILE
   ============================================ */

#header-mobile {
    height: 57px;
    background: #fff;
}

.logo-header-mobile,
#header-mobile #logo-mobile {
    width: 170px;
    height: 30px;
    display: block;
    float: left;
    margin: 14px 0px 0px 10px;
    background: url(convoyeur-logo.svg) no-repeat left center;
    background-size: contain;
}

/* ============================================
   HEADER DESKTOP
   ============================================ */

#header-page {
    background: none;
    width: 100%;
    z-index: 500;
}

#header-page #header-top {
    height: 70px;
    max-width: 1920px;
    margin: 0 auto;
}

#header-page #header-top #header-top-container {
    padding: 5px 10px 5px 15px;
}

#header-page #header-top #menu {
    position: relative;
}

#header-page #header-top #menu .menu-items {
    float: left;
}

#header-page #header-top #menu .menu-item {
    float: right;
    padding: 19px 21px 44px 21px;
    max-height: 60px;
    color: #565a5c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-sizing: border-box;
    position: relative;
}

#header-page #header-top #menu .menu-item-grey {
    color: #777777;
    opacity: 1;
    margin: 0 8px;
}

.logo-header,
#header-flow .logo,
#header-page #header-top .logo {
    display: block;
    width: 230px;
    height: 30px;
    float: left;
    background: url(convoyeur-logo.svg) no-repeat center left;
    background-size: contain;
    margin-top: 15px;
    margin-right: 20px;
}

/* ============================================
   MENU BURGER
   ============================================ */

.menu-trigger {
    cursor: pointer;
    float: right;
    display: block;
    margin: 4px 0 0 0;
    right: 0;
    width: 50px;
    height: 50px;
    opacity: 0.9;
    box-sizing: border-box;
    padding: 10px;
}

.menu-trigger .menu-trigger-line {
    height: 2px;
    width: 26px;
    background: #333333;
    display: block;
    margin: 5px -4px 8px;
    border-radius: 11px;
}

/* ============================================
   MEDIA QUERIES ADDITIONNELLES - RESPONSIVE
   ============================================ */

@media only screen and (max-width: 1100px) {
    #header-page #header-top-container {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 350px) {
    #header-mobile {
        height: 60px;
        background: #fff;
        border-bottom: 1px solid #ccc;
    }
}

/* ============================================
   OVERRIDES POUR HEADER EN MOBILE
   ============================================ */

@media (max-width: 767px) {
    #header-page {
        display: none;
    }
    
    .menu-trigger {
        margin: 2px 0 0 10px;
    }
}
