/* Header */
/* Header toujours visible */
header#masthead,
#masthead,
.site-header,
.sheader {
    /* position: fixed !important; */
    top: 10px !important;
    left: 0 !important;
    width: 100% !important;
    /*z-index: 9999 !important;*/
    background-color: #e5e5e5 !important;
}
/* Décalage du contenu pour éviter qu'il passe sous le header */
body {
    padding-top: 0px !important;
}
/* Fond du menu supérieur */
#primary-site-navigation,
.main-navigation,
.top-nav-wrapper {
    background-color: #e5e5e5 !important;
}
/* Image supérieure */
/* .header-widget .wp-block-cover__image-background {
    object-fit: cover;
} */





/* ===== MENU PRINCIPAL (#primary-menu) : Hover + Actif ===== */
/* Couleur des liens (normal) */
#primary-menu a {
  color: #005fb6 !important;
  font-weight: bold !important;
}
/* Augmenter la taille du menu supérieur */
.main-navigation a,
.primary-menu a,
.menu a,
nav a {
    font-size: 17px !important;
}
/* Survol (hover + focus clavier) */
#primary-menu li:hover > a,
#primary-menu a:hover,
#primary-menu a:focus {
  color: #ee7203 !important;
}
/* Élément actif (page courante + parent/ancêtre si sous-menu) */
#primary-menu li.current-menu-item > a,
#primary-menu li.current_page_item > a,
#primary-menu li.current-menu-ancestor > a,
#primary-menu li.current-menu-parent > a {
  color: #ee7203 !important;
}

/* Couleur normale de la flèche */
.main-navigation .sub-arrow i {
    color: #005fb6 !important;
}
/* Couleur au survol */
.main-navigation .menu-item-has-children:hover .sub-arrow i {
    color: #ee7203 !important;
}


/* Publications */
/* Titre */
.posts-entry .entry-title a {
    transition: color 0.2s ease;
}
.posts-entry .entry-title a:hover {
    color: #ee7203 !important;
}
/* Bloc publication */
 .posts-entry {
    transition: all 0.2s ease;
}
/*.posts-entry:hover { 
    background-color: #fff7ed !important;
    box-shadow: 0 2px 8px rgba(238, 114, 3, 0.75);
}*/
/* Badge catégorie */
/*.posts-entry:hover .featured-img-category {
    background-color: #ee7203 !important;
    color: #fff !important;
}
/* desactive le lien sur la date */
.posts-entry .posted-on a,
.posts-entry .posted-on a:hover,
.posts-entry .posted-on a:focus {
    pointer-events: none;
    cursor: default;
    text-decoration: none !important;
    color: inherit !important;
}

/* Rend toute la boite cliquable */
.posts-entry {
    cursor: pointer;
    transition: all 0.25s ease;
}

.posts-entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* Liens dans les publications */
.posts-entry .entry-content a {
		color: #005fb6 !important;
    text-decoration: none !important;
}
.posts-entry .entry-content a:hover {
    color: #ee7203 !important;
}


/* Menu latéral */
/* Couleur au survol */
#secondary a:hover,
.featured-sidebar a:hover,
.blog-sidebar-wrapper a:hover,
.widget a:hover {
    color: #ee7203 !important;
}
/* Supprimer le soulignement des liens du menu latéral */
#secondary a,
.featured-sidebar a,
.blog-sidebar-wrapper a,
.widget a {
    text-decoration: none !important;
}


/* TITRE Site */
/* Empêche le logo de rétrécir quand le menu prend de la place */
.site-branding,
.custom-logo-link {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

/* Taille stable du logo (ajuste la hauteur) */
.custom-logo-link img {
  max-height: 100px;
  width: auto !important;
  height: auto !important;
}

/* Le menu peut prendre l'espace restant */
.main-navigation {
  flex: 1 1 auto !important;
}


/* Augmenter le titre à côté du logo */
.logofont.site-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 600;
}

/* Augmenter le sous-titre sous le titre */
.logodescription.site-description {
    font-size: 16px !important;
    line-height: 1.3 !important;
}







/* ===== Posts Table / DataTables - Couleurs ACF (Fond blanc) ===== */

/* Fond + texte du tableau */
table.dataTable,
.dataTables_wrapper table,
.posts-data-table,
.posts-data-table table {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #e5e5e5 !important;
}

/* En-têtes */
table.dataTable thead th,
.dataTables_wrapper thead th {
  background: #005FB6 !important; /* Bleu ACF */
  color: #ffffff !important;
  border-bottom: 2px solid #e5e5e5 !important;
}

/* Bordures cellules */
table.dataTable td,
table.dataTable th,
.dataTables_wrapper td,
.dataTables_wrapper th {
  border-color: #e5e5e5 !important;
}

/* Lignes (zebra) */
table.dataTable tbody tr,
.dataTables_wrapper tbody tr {
  background: #ffffff !important;
}
table.dataTable tbody tr:nth-child(even),
.dataTables_wrapper tbody tr:nth-child(even) {
  background: #f0f0f0 !important;
}

/* Survol de ligne (léger orange ACF) */
table.dataTable tbody tr:hover,
.dataTables_wrapper tbody tr:hover {
  background: rgba(0, 95, 182, 0.12) !important; /* Bleu ACF en léger */
}

/* Liens */
table.dataTable a:hover,
.dataTables_wrapper a:hover {
  color: #c85f00 !important; /* Orange plus sombre */
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #111111 !important;
  border: 1px solid #e5e5e5 !important;
  background: #ffffff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f0f0f0 !important;
  border-color: #d9d9d9 !important;
}

/* Page courante */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #52AE32 !important; /* Vert ACF */
  border-color: #52AE32 !important;
  color: #ffffff !important;
}

/* Champ de recherche */
.dataTables_wrapper .dataTables_filter input {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d9d9d9 !important;
}


/* Bouton Seach */
.wp-block-search__button {
    background-color: #005FB6; /* couleur souhaitée */
    color: #ffffff; /* couleur du texte */
    border-radius: 4px; /* optionnel */
		font-weight: bold !important;
}
.wp-block-search__button:hover {
    background-color: #ee7203;
}

/* Newsletter form */
input.es-subscribe-btn.es-custom-button {
    background-color: #005FB6 !important; /* couleur souhaitée */
    color: #ffffff;
    border: none !important;
    border-radius: 4px;
}
input.es-subscribe-btn.es-custom-button:hover {
    background-color: #ee7203 !important;
}


/* Menu lateral */
.widget_nav_menu .menu li a:hover {
    color: #ee7203 !important; /* couleur au survol */
}


/* Subscribe news letter menu */
.es-list-field b {
		color: #7c7c7c !important;
		margin-top: 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 0 !important;
}
/* Augmenter l'espace avant "Inscription à la newsletter" */
#block-19 {
    margin-top: 72px !important;
    margin-bottom: 0px !important;
}
#block-19 .wp-block-heading{
		line-height: 0 !important;
}
#block-14 {
    margin-top: 72px !important;
    margin-bottom: 0px !important;
}
#block-14 .wp-block-heading{
		line-height: 0 !important;
}
/* Changer la couleur des champs */
.es_form_wrapper .es-field-label {
    color: #7c7c7c !important;
}
.es_form_wrapper .ig-es-form-input::placeholder {
    color: #999999 !important;
}



/* Liens dans les articles Knowledge Base */
body.single-wz_knowledgebase a,
body.single-wz_knowledgebase a:hover,
body.single-wz_knowledgebase a:focus,
body.single-wz_knowledgebase a:active,
body.single-wz_knowledgebase a:visited,
body.single-wz_knowledgebase a *,
body.single-wz_knowledgebase a:hover *,
body.single-wz_knowledgebase a:focus *,
body.single-wz_knowledgebase a:active *,
body.single-wz_knowledgebase a:visited * {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Couleur normale */
body.single-wz_knowledgebase a,
body.single-wz_knowledgebase a * {
    color: #005fb6 !important;
}

/* Couleur au survol */
body.single-wz_knowledgebase a:hover,
body.single-wz_knowledgebase a:hover *,
body.single-wz_knowledgebase a:focus,
body.single-wz_knowledgebase a:focus * {
    color: #ee7203 !important;
}



/* Liens des articles Knowledge Base */
.wzkb-article-name a,
.wzkb-article-name a:visited {
    color: #005fb6 !important;
    text-decoration: none !important;
}
/* Survol */
.wzkb-article-name a:hover,
.wzkb-article-name a:focus,
.wzkb-article-name a:active {
    color: #ee7203 !important;
    text-decoration: none !important;
		transition: color 0.1s ease;
}



/* Réduire la hauteur du bloc footer logo */
#block-18 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#block-18 figure {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
#block-18 img {
    width: 150px !important;
    height: auto !important;
    display: block;
    margin: 0 auto !important;
}