/* ==============================
   Header full width et sticky
=============================== */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;       
    max-width: 100% !important;
    display: flex;
    justify-content: flex-start;   /* Logo à gauche */
    align-items: center;           /* Centre verticalement */
    padding: 10px 20px;
    background-color: #012340;     /* Fond bleu */
    z-index: 1000;
    box-sizing: border-box;
}

/* Décalage du contenu sous le header */
body {
    padding-top: 80px; /* Ajuste selon la hauteur du header */
}

/* Logo : taille, espacement et décalage facilement modifiables */
header.site-header .site-branding img,
header.site-header .custom-logo {
    max-height: 150px;    /* <-- TAILLE DU LOGO */
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Rend un logo sombre en blanc */
    margin-right: 400px;  /* <-- ESPACEMENT LOGO → MENU */
    position: relative;
    top: 0px;            /* <-- DECALAGE VERTICAL */
    margin-left: 300px;    /* <-- DECALAGE HORIZONTAL */
}

/* Menu */
header.site-header .main-menu {
    margin-left: auto;   /* Pousse le menu à droite */
}

/* Liens du menu */
header.site-header .main-menu a {
    color: #ffffff !important;  /* Texte blanc */
    font-weight: 500;
    text-decoration: none;
    padding: 5px 10px;
}

/* Espacement entre les items du menu */
header.site-header .main-menu ul li {
    margin-left: 20px;
}

/* Menu burger pour mobile */
header.site-header .burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
}

@media(max-width: 768px){
    header.site-header .main-menu ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #012340;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    header.site-header .main-menu.active ul {
        display: flex;
    }
    header.site-header .burger {
        display: block;
    }

    /* Taille du logo sur mobile */
    header.site-header .site-branding img,
    header.site-header .custom-logo {
        max-height: 100px; /* Ajustable pour mobile */
    }
}
#site-navigation a:hover,
#site-navigation .menu-item a:hover,
.primary-menu a:hover {
  color: #ffcc00 !important;
}
@media(max-width: 768px){
  header.site-header .site-branding img,
  header.site-header .custom-logo {
    margin-left: 20px !important;
    margin-right: 60px !important;
  }

  header.site-header .burger {
    right: 20px !important;
  }
}
@media (max-width: 768px) {
  .main-menu {
    background-color: #012340 !important;
  }

  .main-menu ul {
    background-color: transparent !important;
  }

  .main-menu ul li a {
    color: #ffffff !important;
    display: block;
    padding: 12px 16px;
    text-align: center;
  }

  .main-menu ul li a:hover {
    color: #ffcc00 !important;
  }
}