/**
 * Styles responsive pour le header
 * Ces styles assurent que le header est uniforme sur tout le site
 */

/* Styles pour la top-bar - FORCER L'ALIGNEMENT */
.top-bar {
    padding: 10px 0;
}

.top-bar .container {
    max-width: 100%;
}

.top-bar .row {
    display: flex;
    align-items: center;
    margin: 0;
}

.top-bar .col-md-4,
.top-bar .col-sm-2 {
    display: flex;
    align-items: center;
    padding: 0;
}

.top-bar .col-md-8,
.top-bar .col-sm-10 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

.top-bar .language-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: 100%;
}

.box-language, .box-currency {
    margin-right: 5px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.search-area {
    margin: 0;
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.shop-cart {
    margin: 0;
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.shop-cart ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-cart ul li {
    margin-left: 5px;
    margin: 0;
    list-style: none;
    display: inline-block;
    vertical-align: middle;
}

/* Styles pour desktop - alignement vertical */
@media (min-width: 769px) {
    .top-bar .row {
        align-items: center !important;
        min-height: 40px;
    }

    .top-bar .col-md-4,
    .top-bar .col-sm-2 {
        display: flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        height: auto !important;
    }

    .top-bar .col-md-8,
    .top-bar .col-sm-10 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        vertical-align: middle !important;
        height: auto !important;
    }

    .search-area {
        flex: 1;
        margin-right: 20px;
        max-width: 400px;
        height: auto;
    }

    .shop-cart {
        display: flex !important;
        align-items: center !important;
        height: auto;
    }
}

.search-field {
    height: 35px;
    padding: 8px 12px;
    width: calc(100% - 50px);
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.categories-filter {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.categories-filter li {
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

.categories-filter a {
    line-height: 35px;
    margin: 0;
    padding: 0 10px;
}

.control-group {
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
}

.search-area form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

.search-button {
    height: 35px;
    padding: 0 15px;
    width: 40px;
}

/* Réduire la taille des icônes du header */
.shop-cart .cart-icon {
    font-size: 18px;
}

.shop-cart .cart-icon i {
    font-size: 18px;
}

.cart-label {
    font-size: 11px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
}

/* Icônes de téléphone et autres */
.top-bar .icon-phone {
    font-size: 14px;
}

.search-button i {
    font-size: 14px;
}

/* Responsive styles pour mobiles et tablettes */
@media (max-width: 768px) {
    .top-bar .row {
        flex-direction: column;
        align-items: center;
    }

    .top-bar .col-md-4,
    .top-bar .col-sm-2 {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }

    .top-bar .col-md-8,
    .top-bar .col-sm-10 {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .language-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }

    .search-area {
        width: 100%;
        justify-content: center;
        display: flex !important;
        margin-bottom: 15px;
    }

    .search-area form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .control-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .categories-filter {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

    .search-field {
        width: 90%;
        max-width: 300px;
    }

    .search-button {
        width: 30%;
    }

    .shop-cart {
        margin-top: 0;
        width: 100%;
        justify-content: center;
        display: flex !important;
    }

    .shop-cart ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .shop-cart ul li {
        margin: 5px;
    }
}

/* Responsive styles pour petits mobiles */
@media (max-width: 480px) {
    .language-wrapper {
        font-size: 12px;
    }

    .search-field {
        width: 60%;
        font-size: 12px;
    }

    .search-button {
        width: 40%;
    }

    .box-language,
    .box-currency {
        font-size: 11px;
    }
}
