/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
 #header { 
    background: #135c9d !important;
}

#footer_before {
    background: linear-gradient(180deg, #0f5c90 -73.72%, #008 -73.7%, #369f8b 124.62%), linear-gradient(0deg, #4f9cd0, #4f9cd0) !important;
}

body #header .header-top {
    background-color: #08090aff !important;
}

#wrapper .breadcrumb-wrapper {
    background: #08090aff !important;
}

.bon-link-overlay {
    background-color: #135c9dff !important;
}
a {
    color: #4d5252;
    transition: all 0.3s ease;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none !important;
}

img, svg {
    vertical-align: middle;
    max-width: 100%;
}
/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
/* 03.06.19 - Webbax - TUTO 78 */
#attachements_custom .nav-tabs {
    margin-bottom: 20px;
    text-align: center;
}
#attachements_custom .li_pdf {
    margin-bottom: 20px;
    text-align: center;
}
#attachements_custom .li_pdf iframe {
    width: 50%;
    height: 500px;
    margin: 0 auto;
    display: block;
}
#attachements_custom .li_img {
    margin-bottom: 20px;
    text-align: center;
}
#attachements_custom .li_img img {
    max-width: 50%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1023px) {
    #attachements_custom .li_pdf {
        margin-bottom: 0;
    }
    #attachements_custom .li_pdf iframe {
        display: none;
    } 
}
#header #menu-icon .bonicon-lines7 {
    font-size: inherit !important; /* Remet la taille par défaut du parent, le '!important' assure que cette règle prend la priorité sur l'originale */
    color: transparent !important; /* Remet la couleur par défaut du parent, avec '!important' pour assurer la priorité */
}
#custom-menu-open {
    background: none !important; /* Désactive la couleur de fond */
    width: auto !important; /* Rétablit la largeur à sa valeur par défaut */
    left: auto !important; /* Annule la position gauche */
    z-index: auto !important; /* Annule la superposition */
    height: auto !important; /* Rétablit la hauteur à sa valeur par défaut */
    transition: none !important; /* Désactive la transition */
    box-shadow: none !important; /* Supprime l'ombre */
    border-top-right-radius: 0 !important; /* Désactive le rayon de la bordure en haut à droite */
    border-bottom-right-radius: 0 !important; /* Désactive le rayon de la bordure en bas à droite */
}
@media (max-width: 1260px) {
  body #header .header-top {
    border-bottom: 1px solid black !important; /* Change la bordure inférieure en noir avec `!important` pour assurer la priorité */
  }
}
/* Styles de base du chat (desktop) */
#floating-chat-window {
    position: fixed !important;
    bottom: 120px !important;
    right: 20px !important;
    width: 350px !important;
    height: 500px !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16) !important;
    display: none !important;
    overflow: hidden !important;
}

#floating-chat-window.active {
    display: flex !important;
    flex-direction: column !important;
}

#floating-chat-window .bon-chat-header {
    flex: 0 0 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    background: white !important;
    border-bottom: 1px solid #eee !important;
}

#floating-chat-window .chat-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 15px !important;
}

/* Desktop version */
#floating-chat-window .chat-input-container {
    padding: 15px !important;
    background: white !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile version */
@media screen and (max-width: 768px) {
    #floating-chat-window.active .chat-input-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 10px 15px !important;
        background: white !important;
        border-top: 1px solid #eee !important;
        z-index: 999999 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    }
}

#floating-chat-window #chat-input {
    flex: 1 !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: 1px solid #eee !important;
    border-radius: 20px !important;
    background: #f8f9fa !important;
    margin-right: 8px !important;
}

#floating-chat-window #chat-input,
#floating-chat-window #chat-send {
    display: none !important;
}

#floating-chat-window.topic-selected #chat-input,
#floating-chat-window.topic-selected #chat-send {
    display: flex !important;
}

#floating-chat-window #chat-send {
    height: 40px !important;
    width: 40px !important;
    padding: 8px !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    background: #135c9d !important;
    border: none !important;
}

@media screen and (max-width: 576px) {
    /* Masquer le popup de recherche sur mobile */
    #search_popup,
    #search_popup .wrap_item {
        display: none !important;
    }

    /* Masquer le toggle AI sur mobile */
    .bonsearch-ai-toggle {
        display: none !important;
    }

    #header .header-banner .header-contact-info {
        -webkit-box-orient: initial !important;
        -webkit-box-direction: initial !important;
        -ms-flex-direction: initial !important;
        flex-direction: initial !important;
    }

        /* Désactiver tous les scrolls quand le chat est ouvert */
        html.chat-open,
        html.chat-open body {
            position: fixed !important;
            width: 100% !important;
            height: 100% !important;
            overflow: hidden !important;
            overscroll-behavior: none !important;
            -webkit-overflow-scrolling: none !important;
            touch-action: none !important;
        }

        /* Fix pour iOS quand le clavier se ferme */
        html.chat-open.keyboard-closed,
        html.chat-open.keyboard-closed body {
            height: 100% !important;
            position: fixed !important;
            overflow: hidden !important;
            touch-action: none !important;
            -webkit-overflow-scrolling: none !important;
        }

        /* Ajustements quand le clavier est ouvert */
        html.chat-open.keyboard-open,
        html.chat-open.keyboard-open body {
            position: static !important;
            height: auto !important;
            overflow: hidden !important;
        }

        /* Réinitialiser les styles desktop pour mobile */
        #floating-chat-window {
            bottom: auto !important;
            right: auto !important;
            width: auto !important;
            height: auto !important;
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        /* Style plein écran pour mobile */
        #floating-chat-window.active {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 999999 !important;
        }

        /* Ajustements pour le clavier mobile */
        #floating-chat-window.active.keyboard-open {
            height: -webkit-fill-available !important; /* Pour iOS */
            height: fill-available !important; /* Standard */
        }

        #floating-chat-window.active.keyboard-open .chat-messages {
            height: auto !important;
            flex: 1 1 0 !important;
            min-height: 0 !important; /* Important pour Firefox */
        }

        /* Fix spécifique pour Android Chrome */
        @supports (-webkit-touch-callout: none) {
            #floating-chat-window.active.keyboard-open {
                height: 100% !important;
            }
        }

        /* Empêcher le zoom sur mobile */
        #floating-chat-window.active input,
        #floating-chat-window.active textarea,
        #floating-chat-window.active button {
            font-size: 16px !important;
            touch-action: manipulation !important;
        }
    }

    /* Zone de saisie en bas fixe */
    

    /* Désactiver le zoom sur les éléments du chat */
    #floating-chat-window input,
    #floating-chat-window textarea,
    #floating-chat-window select,
    #floating-chat-window .topic-button,
    #floating-chat-window button {
        font-size: 16px !important; /* Empêche le zoom iOS */
        max-height: 100% !important;
        touch-action: manipulation !important;
    }

    /* Style du bouton de fermeture */
    #floating-chat-window .chat-close {
        font-size: 24px !important;
        color: #666 !important;
    }
    #floating-chat-window.active .close-chat {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        padding: 10px !important;
        font-size: 24px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 50% !important;
    }

    /* Masquer le scroll de la page quand le chat est ouvert */
    body.chat-open {
        overflow: hidden !important;
    }
}
#header .header-banner .user-info-text {
    font-size: 10px !important;
}
/* Masquer la bannière de livraison sur mobile */
@media (max-width: 576px) {
    #bon_ship.bon_ship_version_1_7,
    .bon_free_ship {
        display: none !important;
    }
}

@media (max-width: 425px) {
    .btn-primary, .btn-secondary, .btn-tertiary {
        font-size: 100% !important;
    }
}
@media (max-width: 767px) {
    .ybc-menu-toggle, .arrow {
        display: block !important;
        position: absolute !important;
        width: 30% !important;
        z-index: 999 !important;
    }
}
.ybc-menu-toggle {
    color: #fefefe !important;
}
.ybc-menu-toggle .icon-bar {
    background-color: #fcfbfb !important;
}
.ets_prmn_megamenu {
    border-top: 1px solid #060000 !important;
}
@media (min-width: 1261px) {
    #index #header .header-top {
        border-bottom: 1px solid transparent !important; /* Définit la bordure comme transparente */
    }
}
.mb-3, .my-3 {
    margin-bottom: -1rem!important;
}
@media (min-width: 1261px) {
    body #header .header-top {
        border-bottom: 1px solid hsla(0, 89.57%, 0.79%, 0.3) !important; /* Bordure avec priorité */
    }
}
/* Force le style de .icon-text */
body .icon-text {
    transition: all .3s ease !important;
    font-size: 16px !important;
    color: #fff !important;
    width: fit-content !important;
    padding: 2px 15px !important;
    border: 2px solid rgb(9, 63, 107) !important;
    background-color: rgba(1, 104, 175, 1) !important;
    border-radius: 15px !important;
}
/* Styles pour les CGV */
.cgv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cgv-accordion {
    margin-bottom: 10px;
}

.cgv-accordion-header {
    background-color: #f4f4f4;
    padding: 15px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: bold;
    margin-top: 1em;
}

.cgv-accordion-header:hover {
    background-color: #e9e9e9;
}

.cgv-accordion-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

.cgv-accordion-content.active {
    display: block;
}

.cgv-navigation {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.cgv-navigation a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cgv-navigation a:hover {
    background-color: #0056b3;
}

.cgv-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}
.zoomContainer {
    z-index: 4 !important;
}
/* 06.02.25 - Webbax | Barre frais de port gratuit */
/* Style pour la barre standard */
#free-shipping-bar {
    width: calc(100% - 20px); /* Pour compenser les marges */
    background: black;
    padding: 10px;
    top: 0;
    left: 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#free-shipping-progress {
    height: 12px;
    border-radius: 6px;
    width: 0%;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00);
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Style pour la barre des totaux */
#free-shipping-bar-totals {
    width: calc(100% - 20px); /* Pour compenser les marges */
    background: black;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#free-shipping-progress-totals {
    height: 8px;
    border-radius: 4px;
    width: 0%;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00); /* Même dégradé que la barre principale */
    transition: width 3.3s ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    margin-top: 5px;
    background-size: 200% 100%;
    animation: gradientMove 4s linear infinite;
}

/* Animation du dégradé */
@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}
#custom-text 
{
background: #f9f9fa;
border-radius: 2px;
margin-bottom: 0.5rem;
padding: 0.13rem;
text-align: center;
}
/* ============================================================
   1. STYLE DU MESSAGE DE STOCK (VERT OU ORANGE)
   ============================================================ */

/* On cible le container principal pour l'alignement et la couleur */
#product-availability {
    display: flex !important;
    align-items: center !important;
    margin-top: 15px !important;
    font-weight: bold !important;
}

/* SI LE STOCK EST NORMAL (VERT) */
#product-availability:has(.product-available) {
    color: #00a651 !important; /* Ton vert lisible */
}
#product-availability .product-available {
    color: #00a651 !important;
    font-size: 25px !important; /* Taille de la coche */
    margin-right: 10px !important;
}

/* SI LE STOCK EST FAIBLE 1 à 3 (ORANGE) */
#product-availability:has(.product-last-items) {
    color: #ef8a10 !important; /* Orange alerte */
}
#product-availability .product-last-items {
    color: #ef8a10 !important;
    font-size: 25px !important;
    margin-right: 10px !important;
}

/* ============================================================
   2. GESTION DU MESSAGE "STOCK FOURNISSEUR" (MODULE BON)
   ============================================================ */

/* On cache le texte anglais "No product available" quand le stock est à 0 */
#main:not(:has(.product-available)):not(:has(.product-last-items)) .bon-stock-countdown-title span {
    display: none !important;
}

/* On affiche ton texte personnalisé à la place */
#main:not(:has(.product-available)):not(:has(.product-last-items)) .bon-stock-countdown-title::after {
    content: "Sur stock fournisseur - Délai moyen 15 jours. Nous contacter pour un délai précis.";
    display: block;
    color: #e67e22 !important;
    font-weight: bold;
    font-size: 14px;
}