/*
 Theme Name:   plumbers child
 Description:  Thème enfant de plumbers
 Author:       Ton Nom
 Template:     plumbers
 Version:      1.0.0
*/
.zone-fixe {
    position: sticky;
    top: 160px;
    /* Distance depuis le haut de la fenêtre */
    align-self: flex-start;
    /* Important pour que sticky fonctionne correctement */
    max-height: calc(100vh - 180px);
    /* Optionnel : évite que le contenu dépasse la hauteur de l'écran */
    overflow-y: auto;
    /* Optionnel : ajoute un scroll si le contenu est trop long */
}


/* Menu de catégories WooCommerce - Visible uniquement sur desktop */
.woocommerce-categories-menu {
    background-color: #4d8bac;
    /* Bleu - ajustez selon vos couleurs */
    padding: 0 !important;
    position: relative;
    z-index: 999;
    text-transform: uppercase;
    font-size: 18px;
    font-family: "Roboto Condensed", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
}

/* Wrapper pour aligner à droite */
.categories-menu-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

/* Menu principal des catégories */
.categories-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.categories-main-menu .category-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.categories-main-menu .category-item>a {
    display: block;
    padding: 20px 20px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
        font-size: 18px;
        font-family: "Roboto Condensed", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}



.categories-main-menu .category-item>a:hover {
    background-color: #ffffff;
    color: #333333;
}

/* Sous-menu horizontal blanc */
.sub-categories-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.category-item:hover .sub-categories-menu {
    display: flex;
}


.sub-categories-menu li {
    margin: 0;
    padding: 0;
}

.sub-categories-menu li a {
    display: block;
    padding: 10px 25px;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.sub-categories-menu li a:hover {
    color: #4d8bac;
}

/* Section de recherche */
.categories-search {
    padding: 10px 0;
    margin-right: 20px;
}

.woocommerce-product-search {
    margin: 0;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #4d8bac;
}

.search-icon {
    display: flex;
    align-items: center;
    color: #ffffff;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-field {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    outline: none;
    font-size: 18px;
    width: 200px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) ;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Masquer sur mobile */
@media (max-width: 991px) {
    .woocommerce-categories-menu {
        display: none !important;
    }
}

/* Ajustements pour tablette */
@media (min-width: 992px) and (max-width: 1199px) {
    .categories-main-menu .category-item>a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-field {
        width: 150px;
    }

    .categories-menu-wrapper {
        gap: 20px;
    }
}

/* Ajustements pour grands écrans */
@media (min-width: 1400px) {
    .search-field {
        width: 250px;
    }
}

/* Autres styles */
.woocommerce-info::before {
    color: #4d8bac;
}

.woocommerce-info,
.woocommerce-message {
    border-top: 3px solid #4d8bac !important;
}

/* Ajout Dix-Onze */

.accueil-normes {
    text-align: center;
}

#contact {
    padding: 60px 0;
}

.reseaux-sociaux a {
    padding-right: 15px;
    display: inline-block;
}
.reseaux-sociaux a:last-child {
    padding-right: 0;
}
.reseaux-sociaux a i {
    font-size: 1.6rem;
}


.copyright {
    padding: 20px 0;
    background-color: black;
    font-size: 0.9rem;
    color: white;
}
.copyright .container {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .footer-addresses .col-md-4 {
        padding-top: 30px;
    }
    .copyright .container {
        flex-direction: column;
        align-items: center;
    }
}