html body header a:hover,
html body header .menu-item span:hover {
    cursor: pointer;
    color: #0260A2 !important;
}

/* Bannière above-header : bouton fermeture */
.ast-above-header-wrap {
    position: relative;
}

.ast-above-header-wrap .ast-above-header-bar {
    padding: 5px 60px !important;
    text-align: center;
}

.above-header-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 10;
    background: none !important;
    border: none;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0 4px;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.above-header-close:hover,
.above-header-close:focus,
.above-header-close:active {
    background: none !important;
    box-shadow: none;
    outline: none;
    opacity: 1;
}

/* Layout header */
.main-header-bar {
    padding: 6px 0;
    background: #FFF;
}

.site-primary-header-wrap {
    max-width: 1280px !important;
    padding: 0;
}

/* Header left */
.site-header-primary-section-left {
    transform: translateY(10px);
}

.site-header-primary-section-left .main-header-menu {
    column-gap: 10px;
}

.ast-hfb-header.ast-desktop .ast-builder-menu-1 .main-header-menu .menu-item.menu-item-heading > .menu-link {
    font-weight: 450;
    font-size: 0.75rem;
}

.ast-hfb-header.ast-desktop .ast-builder-menu-1 .main-header-menu .menu-item.menu-item-special > .menu-link  {
    background: #CADCF340;
    border: 1px solid #CADCF3;
    border-radius: 8px;
    margin-bottom: 0;
}

/* Header logo */
header .custom-logo-link img {
    max-width: 100px;
    width: 100px;
    height: auto;
}

/* Header right */
.widget.widget_block {
    display: flex;
    align-items: center;
}

.site-header-primary-section-right {
    font-size: 0.75rem;
    transform: translateY(10px);
}

.site-header-primary-section-right .menu-text {
    font-size: 0.75rem;
}

/* Injecter le nouveau SVG via pseudo-élément */
.fkcart-shortcode-icon-wrap::before {
    content: url("data:image/svg+xml,%3Csvg width='28' height='30' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 7.67V6.7C7.5 4.45 9.31 2.24 11.56 2.03C14.24 1.77 16.5 3.88 16.5 6.51V7.89' stroke='%23494D55' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.99995 22H14.9999C19.0199 22 19.7399 20.39 19.9499 18.43L20.6999 12.43C20.9699 9.99 20.2699 8 15.9999 8H7.99995C3.72995 8 3.02995 9.99 3.29995 12.43L4.04995 18.43C4.25995 20.39 4.97995 22 8.99995 22Z' stroke='%23494D55' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.4955 12H15.5045' stroke='%23494D55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.49451 12H8.50349' stroke='%23494D55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.fkcart-shortcode-count.fkcart-item-count {
    margin-top: 36px;
}

.fkcart-shortcode-icon-wrap svg {
    display: none;
}

/* Picto devant les items de menu de premier niveau */
.menu-nav-picto {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    position: relative;
    top: -1px;
}

/* Mega menu  */

.ast-builder-menu-1 .main-header-menu.submenu-with-border .astra-megamenu, .ast-builder-menu-1 .main-header-menu.submenu-with-border .astra-full-megamenu-wrapper  {
    border: none;
    transform: translateY(10px);
    box-shadow: none !important;
    overflow: hidden;
    min-height: 300px;
}

html body .menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children {
    font-size: 1rem;
    font-weight: 450;
}

.astra-megamenu.sub-menu .nav-item-categ > a.menu-link,
.astra-megamenu.sub-menu .nav-item-categ > a.menu-link .menu-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Operetta-12', operetta-12, serif;
}

#ast-hf-menu-1 .nav-item-categ .sub-menu .menu-link .menu-text {
    font-size: 1rem !important;
    font-weight: 450 !important;
}

.astra-megamenu.sub-menu.astra-mega-menu-width-full {
    max-width: 100vw;
}


/* Megamenu : ouverture au clic uniquement */

/* Caché par défaut — couvre CSS hover natif + classes JS d'Astra (ast-menu-hover, astra-megamenu-wrapper-focus) */
/* display:none seul suffit ; on n'ajoute pas opacity/visibility pour ne pas bloquer l'animation */
.ast-desktop .main-header-menu > .menu-item > .astra-full-megamenu-wrapper,
.ast-desktop .main-header-menu > .menu-item > .sub-menu.astra-megamenu,
.ast-desktop .main-header-menu > .menu-item:hover > .astra-full-megamenu-wrapper,
.ast-desktop .main-header-menu > .menu-item:hover > .sub-menu.astra-megamenu,
.ast-desktop .main-header-menu > .menu-item.ast-menu-hover > .astra-full-megamenu-wrapper,
.ast-desktop .main-header-menu > .menu-item.ast-menu-hover > .sub-menu.astra-megamenu,
.ast-desktop .main-header-menu > .menu-item > .astra-full-megamenu-wrapper.astra-megamenu-wrapper-focus {
    display: none !important;
    pointer-events: none !important;
}

/* Ouvert au clic uniquement — l'animation hauteur est gérée par le JS (max-height inline) */
/* opacity/visibility forcés pour contrer la transition fade d'Astra au mouseleave */
.ast-desktop .main-header-menu > .menu-item.ast-click-open > .astra-full-megamenu-wrapper {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ast-desktop .main-header-menu > .menu-item.ast-click-open > .sub-menu.astra-megamenu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Sub-menus internes — neutraliser visibility:hidden + opacity:0 d'Astra */
.ast-desktop .main-header-menu .astra-full-megamenu-wrapper .sub-menu,
.ast-desktop .main-header-menu .sub-menu.astra-megamenu .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

/* ul.astra-megamenu → flex row : catégories + push */
html body .astra-megamenu.sub-menu.astra-mega-menu-width-full {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
}

/* Intro panel (gauche) */
.megamenu-intro-panel {
    display: flex;
    height: inherit !important;
    flex-direction: column;
    gap: 12px;
    margin-right: 40px;
    align-self: stretch;
    background: #F5F6F6;
    padding: 60px 40px 60px 140px;
    width: 33%;
}

.intro-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Operetta-12', operetta-12, serif;
    color: #0260A2;
    line-height: 1.2;
}

.intro-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 450;
    color: #494D55;
    line-height: 1.5;
}

.intro-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.ast-header-break-point .main-header-bar-navigation a {
   line-height: 1.5;
}

.intro-article {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
}

.intro-article-thumbnail {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.intro-article-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Groupe des colonnes catégories */
.megamenu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1 1 auto;
    row-gap:40px;
    padding: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Rétablit les règles Astra (direct-child > .menu-item) pour les items déplacés dans le wrapper */
.astra-megamenu .megamenu-categories > .menu-item {
    display: block;
    flex: 1;
    opacity: 1;
}

.astra-megamenu .megamenu-categories > .menu-item .sub-menu {
    position: static !important;
    left: auto !important;
    width: 300px;
    margin: 0;
    background-color: transparent;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
}

.astra-megamenu .megamenu-categories > .menu-item .sub-menu .menu-item {
    width: 100%;
}

.astra-megamenu .megamenu-categories {
    width: 50%;
}

/* Push panel */
.megamenu-push-panel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    align-self: flex-start;
    margin-left: 40px;
    padding: 60px 60px 120px 0px;
    width: 33%;
}

.push-preview {
    position: relative;
    width: auto;
    height: 380px;
    aspect-ratio: 9 / 11;
    border-radius: 4px;
    overflow: hidden;
}

.push-thumbnail {
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
}

.push-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.push-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Operetta-12', operetta-12, serif;
}

.push-cta-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 16px;
    border: #fff 1px solid;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 450;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease,;
}

html body .push-cta-btn:hover {
    background-color: #ffffff50;
    color: #fff !important;
}

/* Intro + Push panels dans le menu mobile */
.megamenu-intro-li,
.megamenu-push-li {
    list-style: none;
    padding: 16px 20px;
}

.megamenu-intro-li .megamenu-intro-panel {
    width: 100%;
    margin: 0;
    padding: 16px;
    background: #F5F6F6;
    border-radius: 4px;
}

.megamenu-push-li .megamenu-push-panel {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =============================================
   WEGLOT LANGUAGE SWITCHER — DROPDOWN CUSTOM
   ============================================= */

/* Wrapper généré par le JS */
.wg-custom-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Bouton principal (langue courante) */
.wg-custom-switcher .wg-current-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    background: transparent;
    border: none;
    font-family: inherit;
    letter-spacing: 0.05em;
}

/* La petite flèche */
.wg-custom-switcher .wg-current-lang::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.wg-custom-switcher.open .wg-current-lang::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown */
.wg-custom-switcher .wg-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    min-width: 90px;
    z-index: 9999;
    overflow: hidden;
}

.wg-custom-switcher.open .wg-dropdown {
    display: block;
}

/* Items du dropdown */
.wg-custom-switcher .wg-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.wg-custom-switcher .wg-dropdown a:hover {
    background: #f5f5f5;
}

.wg-flag-img {
    width: 18px;
    height: 18px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    transform: scale(.9);
}

/* Cacher les li Weglot originaux */
li.menu-item-weglot {
    display: none !important;
}

.wg-custom-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    list-style: none;
}

.wg-custom-switcher .wg-current-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    background: transparent;
    border: none;
    font-family: inherit;
    letter-spacing: 0.05em;
}

.wg-custom-switcher .wg-current-lang-btn::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.wg-custom-switcher.open .wg-current-lang-btn::after {
    transform: rotate(-135deg) translateY(-2px);
}

.wg-custom-switcher .wg-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    min-width: 90px;
    z-index: 9999;
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wg-custom-switcher.open .wg-dropdown {
    display: block;
}

.wg-custom-switcher .wg-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.wg-custom-switcher .wg-dropdown a:hover {
    background: #f5f5f5;
}
/* Bannières par langue (Weglot) */
p:has(.en-banner) { display: none !important; }

html[lang="en"] p:has(.fr-banner) { display: none !important; }
html[lang="en"] p:has(.en-banner) { display: block !important; }

/* Menu secondaire */
.ast-off-canvas-secondary-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    padding-top: 12px;
}

@media screen and (max-width: 768px) {
    html body .ast-off-canvas-secondary-menu ul.nav-menu {
        margin-left: 0;
    }

    html body .ast-off-canvas-secondary-menu ul.nav-menu li {
        list-style-type: none;
        padding: 6px 22px;
    }

    html body .ast-off-canvas-secondary-menu .wg-current-lang-btn {
        padding: 0 0 0 2px;
    }

    html body [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill {
        background: transparent;
    }

    html body .menu-toggle,
    html body .ast-mobile-popup-header .menu-toggle-close,
    html body  .ast-menu-toggle {
        border: none !important;
        outline: none !important;
    }

    html body  .push-overlay .push-cta-btn {
        padding: 4px 16px;
    }
}
/* Fix header-widget-2 : aligner les widgets de droite en ligne (09/10/2026) */
.header-widget-area[data-section="sidebar-widgets-header-widget-2"] .header-widget-area-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
