/**
 * Header Chapitre — Forced CSS Styling (Aggressive Overrides)
 */

/* ========================================================
   GLOBAL RESETS FOR HEADER & DRAWER (Strip Theme Overrides)
   ======================================================== */
html body .hc-header,
html body .hc-header *,
html body .hc-drawer,
html body .hc-drawer * {
    box-sizing: border-box !important;
}

/* Strip borders & text decoration from ALL links in header */
html body div.elementor-element .hc-header a,
html body .hc-header a,
html body .hc-drawer a {
    border: 0 !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Strip list styles & bullets from ALL ul & li in header */
html body div.elementor-element .hc-header ul,
html body div.elementor-element .hc-header li,
html body .hc-header ul,
html body .hc-header li,
html body .hc-drawer ul,
html body .hc-drawer li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html body div.elementor-element .hc-header li::before,
html body div.elementor-element .hc-header li::after,
html body .hc-header li::before,
html body .hc-header li::after {
    display: none !important;
    content: none !important;
}

/* Strip default button styles */
html body .hc-header button,
html body .hc-drawer button {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ========================================================
   MAIN HEADER CONTAINER
   ======================================================== */
html body div.elementor-element .hc-header,
html body .hc-header {
    width: 100% !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #eaeaea !important;
    position: relative !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body div.elementor-element .hc-header__container,
html body .hc-header__container {
    width: 100% !important;
    max-width: 1450px !important;
    margin: 0 auto !important;
    padding: 10px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* ========================================================
   LOGO STYLING
   ======================================================== */
html body div.elementor-element .hc-header .hc-logo,
html body .hc-header .hc-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

html body div.elementor-element .hc-header .hc-logo__link,
html body .hc-header .hc-logo__link {
    display: inline-flex !important;
    align-items: center !important;
}

html body div.elementor-element .hc-header .hc-logo__img,
html body .hc-header .hc-logo__img {
    max-height: 50px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

html body div.elementor-element .hc-header .hc-logo__text,
html body .hc-header .hc-logo__text {
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #1a2e3b !important;
    text-transform: uppercase !important;
}

/* ========================================================
   DESKTOP NAVIGATION (Forced Single Row)
   ======================================================== */
html body div.elementor-element .hc-header .hc-nav,
html body .hc-header .hc-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 auto !important;
}

html body div.elementor-element .hc-header .hc-nav__list,
html body .hc-header .hc-nav__list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body div.elementor-element .hc-header .hc-nav__item,
html body .hc-header .hc-nav__item {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body div.elementor-element .hc-header .hc-nav__link,
html body .hc-header .hc-nav__link {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    color: #1a2e3b !important;
    text-decoration: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
    padding: 4px 0 !important;
    position: relative !important;
}

html body div.elementor-element .hc-header .hc-nav__link:hover {
    color: #b8292f !important;
    text-decoration: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
}

html body div.elementor-element .hc-header .hc-nav__link--active,
html body .hc-header .hc-nav__link--active {
    color: #b8292f !important;
    text-decoration: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
}

/* Red Dot Under Active Item Only */
html body div.elementor-element .hc-header .hc-nav__link--active::after,
html body .hc-header .hc-nav__link--active::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    background-color: #b8292f !important;
    border-radius: 50% !important;
    border: 0 !important;
}

html body div.elementor-element .hc-header .hc-account-nav-link,
html body .hc-header .hc-account-nav-link {
    gap: 5px !important;
}

html body div.elementor-element .hc-header .hc-account__icon,
html body .hc-header .hc-account__icon {
    display: inline-flex !important;
    align-items: center !important;
}

/* ========================================================
   RIGHT ACTIONS SECTION
   ======================================================== */
html body div.elementor-element .hc-header .hc-actions,
html body .hc-header .hc-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

html body div.elementor-element .hc-header .hc-actions__divider,
html body .hc-header .hc-actions__divider {
    color: #dddddd !important;
    font-size: 14px !important;
    margin: 0 2px !important;
}

/* SVG Flags */
html body .hc-flag-svg {
    display: inline-block !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    vertical-align: middle !important;
    object-fit: cover !important;
}

/* ========================================================
   LANGUAGE DROPDOWN (FORCED STYLES)
   ======================================================== */
html body div.elementor-element .hc-header .hc-lang-dropdown,
html body .hc-header .hc-lang-dropdown {
    position: relative !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown__btn,
html body .hc-header .hc-lang-dropdown__btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a2e3b !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown__btn:hover,
html body .hc-header .hc-lang-dropdown__btn:hover {
    background-color: #ffffff !important;
    border-color: #b8292f !important;
    color: #b8292f !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown__arrow,
html body .hc-header .hc-lang-dropdown__arrow {
    transition: transform 0.2s ease !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown:hover .hc-lang-dropdown__arrow,
html body .hc-header .hc-lang-dropdown:hover .hc-lang-dropdown__arrow {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu List */
html body div.elementor-element .hc-header .hc-lang-dropdown__menu,
html body .hc-header .hc-lang-dropdown__menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 4px !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 4px 0 !important;
    min-width: 145px !important;
    z-index: 99999 !important;
    display: none !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown:hover .hc-lang-dropdown__menu,
html body div.elementor-element .hc-header .hc-lang-dropdown--open .hc-lang-dropdown__menu,
html body .hc-header .hc-lang-dropdown:hover .hc-lang-dropdown__menu,
html body .hc-header .hc-lang-dropdown--open .hc-lang-dropdown__menu {
    display: block !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown__item,
html body .hc-header .hc-lang-dropdown__item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown__link,
html body .hc-header .hc-lang-dropdown__link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a2e3b !important;
    text-decoration: none !important;
    border: 0 !important;
    background: transparent !important;
}

html body div.elementor-element .hc-header .hc-lang-dropdown__link:hover,
html body .hc-header .hc-lang-dropdown__link:hover {
    background-color: #f3f4f6 !important;
    color: #b8292f !important;
}

/* Fallback Inline Text Language Switcher */
html body div.elementor-element .hc-header .hc-lang,
html body .hc-header .hc-lang {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

html body div.elementor-element .hc-header .hc-lang__divider,
html body .hc-header .hc-lang__divider {
    color: #cccccc !important;
    margin-right: 4px !important;
}

html body div.elementor-element .hc-header .hc-lang__link,
html body .hc-header .hc-lang__link {
    text-decoration: none !important;
    color: #1a2e3b !important;
    font-weight: 600 !important;
    border: 0 !important;
}

html body div.elementor-element .hc-header .hc-lang__link:hover,
html body div.elementor-element .hc-header .hc-lang__link--active,
html body .hc-header .hc-lang__link:hover,
html body .hc-header .hc-lang__link--active {
    color: #b8292f !important;
    font-weight: 700 !important;
    border: 0 !important;
}

/* Action Icon Buttons (Heart & Cart) */
html body div.elementor-element .hc-header .hc-icon-btn,
html body .hc-header .hc-icon-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1a2e3b !important;
    text-decoration: none !important;
    background: none !important;
    border: 0 !important;
    padding: 6px !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

html body div.elementor-element .hc-header .hc-icon-btn:hover,
html body .hc-header .hc-icon-btn:hover {
    color: #b8292f !important;
}

html body div.elementor-element .hc-header .hc-svg-icon,
html body .hc-header .hc-svg-icon {
    display: block !important;
}

/* Badges */
html body div.elementor-element .hc-header .hc-badge,
html body .hc-header .hc-badge {
    position: absolute !important;
    top: 0px !important;
    right: -3px !important;
    background-color: #b8292f !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
    border: 0 !important;
}

/* Mobile Trigger Button */
html body div.elementor-element .hc-header .hc-mobile-trigger-wrap,
html body .hc-header .hc-mobile-trigger-wrap {
    display: none !important;
}

html body div.elementor-element .hc-header .hc-mobile-trigger,
html body .hc-header .hc-mobile-trigger {
    background: none !important;
    border: 0 !important;
    padding: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    color: #1a2e3b !important;
}

html body div.elementor-element .hc-header .hc-mobile-trigger__text,
html body .hc-header .hc-mobile-trigger__text {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

html body div.elementor-element .hc-header .hc-mobile-only,
html body .hc-header .hc-mobile-only {
    display: none !important;
}

/* ========================================================
   OFF-CANVAS MOBILE DRAWER (Forced Fixed Position)
   ======================================================== */
html body .hc-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    visibility: hidden !important;
    transition: visibility 0.3s ease !important;
}

html body .hc-drawer--open {
    visibility: visible !important;
}

html body .hc-drawer__backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.45) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

html body .hc-drawer--open .hc-drawer__backdrop {
    opacity: 1 !important;
}

html body .hc-drawer__panel {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 85vw !important;
    background-color: #ffffff !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

html body .hc-drawer--left .hc-drawer__panel {
    left: 0 !important;
    transform: translateX(-100%) !important;
}

html body .hc-drawer--right .hc-drawer__panel {
    right: 0 !important;
    transform: translateX(100%) !important;
}

html body .hc-drawer--open.hc-drawer--left .hc-drawer__panel,
html body .hc-drawer--open.hc-drawer--right .hc-drawer__panel {
    transform: translateX(0) !important;
}

/* Drawer Header */
html body .hc-drawer__header {
    padding: 16px 20px !important;
    background-color: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #eeeeee !important;
}

html body .hc-drawer__header-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2e3b !important;
    position: relative !important;
    padding-bottom: 6px !important;
}

html body .hc-drawer__header-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 32px !important;
    height: 3px !important;
    background-color: #b8292f !important;
}

html body .hc-drawer__close {
    background: none !important;
    border: 0 !important;
    font-size: 18px !important;
    color: #666666 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Drawer Nav Menu */
html body .hc-drawer__nav {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 10px 0 !important;
}

html body .hc-drawer__menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .hc-drawer__menu-item {
    border-bottom: 1px solid #eeeeee !important;
    list-style: none !important;
}

html body .hc-drawer__menu-link {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a2e3b !important;
    text-decoration: none !important;
    border: 0 !important;
}

html body .hc-drawer__menu-link:hover,
html body .hc-drawer__menu-link--active {
    background-color: #f9f9f9 !important;
    color: #b8292f !important;
    border: 0 !important;
}

/* Drawer Footer */
html body .hc-drawer__footer {
    padding: 16px 20px !important;
    background-color: #fafafa !important;
    border-top: 1px solid #eeeeee !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

html body .hc-drawer__lang {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
}

html body .hc-drawer__lang-label {
    font-weight: 600 !important;
    color: #666666 !important;
}

html body .hc-drawer__lang-links {
    display: flex !important;
    gap: 8px !important;
}

html body .hc-drawer__lang-link {
    font-weight: 700 !important;
    color: #1a2e3b !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html body .hc-drawer__lang-link--active {
    background-color: #b8292f !important;
    color: #ffffff !important;
    border-color: #b8292f !important;
}

html body .hc-drawer__account-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a2e3b !important;
    text-decoration: none !important;
    border: 0 !important;
}

/* ========================================================
   FORCED MOBILE STYLES (< 1024px)
   ======================================================== */
@media screen and (max-width: 1023px) {
    html body div.elementor-element .hc-header .hc-desktop-only,
    html body .hc-desktop-only {
        display: none !important;
    }

    html body div.elementor-element .hc-header .hc-mobile-only,
    html body .hc-mobile-only {
        display: inline-flex !important;
    }

    html body div.elementor-element .hc-header .hc-mobile-trigger-wrap,
    html body .hc-mobile-trigger-wrap {
        display: flex !important;
        align-items: center !important;
    }

    html body div.elementor-element .hc-header .hc-header__container,
    html body .hc-header__container {
        padding: 10px 16px !important;
        position: relative !important;
    }

    html body div.elementor-element .hc-header .hc-logo,
    html body .hc-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }

    html body div.elementor-element .hc-header .hc-logo__img,
    html body .hc-logo__img {
        max-height: 42px !important;
    }

    html body div.elementor-element .hc-header .hc-actions,
    html body .hc-actions {
        gap: 10px !important;
        margin-left: auto !important;
    }
}
