/* Ancestrologie - Hauteur du header */
#sp-header {
    height: 45px!important;
}

/* Colonne et contenu du menu */
#sp-header #sp-menu,
#sp-header #sp-menu > .sp-column {
    height: 45px;
}

/* Liens du menu horizontal */
#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
    line-height: 45px!important;
}

/* Ancestrologie - Couleurs du menu principal */

/* Texte normal */
#sp-header .sp-megamenu-parent > li > a {
    color: #6E552D !important;
    transition: color 0.2s ease;
}

/* Rubrique active */
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current-item > a {
    /*color: #8C6E4A !important;*/
    color: #b3711f !important;
    font-weight: 600;
}

/* Ancestrologie - Survol du menu principal */

/* Transition douce */
#sp-header .sp-megamenu-parent > li > a {
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 5px;
}

/* Survol et navigation au clavier */
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li > a:focus-visible {
    color: #81551D !important;
    background-color: #EDE5D6;
    text-decoration: none !important;
}

/* Hamburger en affichage réduit */
#sp-header #offcanvas-toggler {
    height: 45px!important;
    line-height: 45px!important;
}

/* Ancestrologie - Centrage du menu sur ordinateur */
@media (min-width: 992px) {
    #sp-header #sp-menu > .sp-column {
        justify-content: center !important;
    }
}

/* Ancestrologie - Logo superposé au bandeau */
.ancestro-bandeau {
    position: relative;
    width: 100%;
}

.ancestro-bandeau-image {
    display: block;
    width: 100%;
    height: auto;
}

.ancestro-bandeau-logo {
    position: absolute;
    top: 20px;
    left: 25px;
/* clamp(larg mini, %vs fenetre,larg maxi) */
    width: clamp(150px, 30vw, 400px);
    z-index: 2;

    /* Effet de verre légèrement dépoli */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(247, 243, 234, 0.20);
    border-radius: 8px;
}

/* Ancestrologie - Pied de page */
#sp-footer .container-inner {
    padding: 0 !important;
    text-align: center;
}

#sp-footer .sp-copyright {
    font-size: 13px;
}

/* jDownloads - Compteurs des cartes catégories */
.category-card .badge {
    color: #8A7964 !important;
    background-color: #F3EFE7 !important;
    font-weight: 400 !important;
    font-size: 13px;
}
