/*** Responsive ***/
@media screen and (min-width: 1800px) {
    .modal.new-feature,
    .modal.product-of-week,
    .modal.new-supplier {
        padding-top: 20vh;
    }
    .modal.product-of-week .modal-content, 
    .modal.new-supplier .modal-content {
        min-height: 50vh !important;
        max-height: 50vh !important;
        margin-top: 0vh;
    }
}
/*** < 1800px ***/
@media screen and (max-width: 1800px) {
    .contributeursList {
        max-height: 600px;
    }

    .aboutUs .headerIngredient {
        flex-wrap: wrap;
    }

    .aboutUs .headerIngredient .titleHeader {
        min-width: 100%;
    }

    .aboutUs .headerIngredient .chiffresBloc {
        padding-left: 24px;
    }
}

/*** < 1630px ***/
@media screen and (max-width: 1630px) {
    .contributeursList {
        max-height: 800px;
    }
}

/*** < 1280px ***/
@media screen and (max-width: 1280px) {
    .contributeursList {
        max-height: 920px;
    }
    #popup_new_products {
    margin-top: 20px!important;
    }
    .clash-card__image {
        margin-top: 10px;
        margin-bottom: 0px;
        height: 150px;
    }
    .clash-card__show_product{
      padding-bottom: 10px;
    }
    .clash-card__unit-description{
        padding-bottom: 0px;
    }

}

/*** < 1145px ***/
@media screen and (max-width: 1145px) {
    .contributeursList {
        max-height: 1050px;
    }
}

/*** < 1080px ***/
@media screen and (max-width: 1080px) {
    .openMenu {
        margin-left: 0px;
    }

    aside.tabAnchorNav {
        display: none;
    }
    
    .imageIngredient {
        display: none !important;
    }

    .imageIngredientMobile {
        display: flex !important;
        margin-bottom: 8px;
    }

    .headerTop {
        flex-direction: column;
    }

    .headerTop button {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    #partners {
        display: none;
    }

    #partnersMobile {
        display: block;
    }
    .modal.new-feature,
    .modal.product-of-week,
    .modal.new-supplier {
        padding-top: 0vh;
    }
    .modal.product-of-week .modal-content, 
    .modal.new-supplier .modal-content {
        min-height: 85vh !important;
        max-height: 85vh !important;
        min-width: 80vw !important;
        max-width: 80vw !important;
    }
    .modal.product-of-week img.potw-img {
        height: 50px;
    }
    .modal.product-of-week .modal-body {
        display: none;
    }
    .modal-footer{
        justify-content: center;
    }
}

/*** < 992px ***/
@media screen and (max-width: 992px) {
    .contributeursList {
        max-height: 1300px;
    }
    .tabListElement li {
        height: 45px;
    }
    .modal.product-of-week .modal-header {
        text-align: center;
    }
    .modal.new-feature,
    .modal.product-of-week,
    .modal.new-supplier {
        padding-top: 0vh;
        margin-left: 12vh;
    }
}

/*** < 800px ***/
@media screen and (max-width: 800px) {  
    .searchBar .searchBarInput {
        min-width: 400px;
    }

    .searchBar .changeMap {
        min-width: 362px;
    }

    .contactBloc {
        flex-wrap: wrap;
    }

    .contactBloc .contactBlocDiv {
        width: 100%;
        margin-bottom: 16px;
    }
    
    .partnerIngrdientTable {
        max-width: 80vw;
    }
}

/*** < 768px ***/
@media screen and (max-width: 768px) {
    .contributeursList {
        max-height: 445px;
    }

    .chiffresBloc {
        flex-wrap: wrap;
    }

    .chiffresBloc div {
        width: 100%;
        margin-top: 8px;
    }
    
    .tabListElement {
        max-width: 100%;
        width: 100%;
    }

    .blocImage .displayDefaultInfos {
        width: 100%;
    }

    .hideOnMobile {
        display: none;
    }

    thead.displayOnMobile {
        display: table-header-group !important;
    }

    tbody.displayOnMobile {
        display: table-row-group !important;
    }

    .new-feature .modal-content {
        background: radial-gradient(80.42% 21.9% at -2.29% 4.72%, #FF795B 0%, rgba(246, 244, 246, 0.55) 90%), #FFF;
    }
}

/*** < 650px ***/
@media screen and (max-width: 650px) {
    .searchBar {
        position: fixed;
        left: 24px;
        right: 24px;
        bottom: 32px;
        display: flex;
        flex-direction: column;
    }

    .searchBar .changeMap {
        border-radius: 12px 12px 0 0;
        position: relative !important;
        z-index: 10 !important;
    }

    .searchBar .changeMap .dropdown .dropdown-menu,
    .searchBar .changeMap .dropdown-menu {
        width: 100% !important;
        position: absolute !important;
        top: auto !important;
        bottom: 100% !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
    .searchBar .changeMap .dropdown .dropdown-menu.show,
    .searchBar .changeMap .dropdown-menu.show {
        top: auto !important;
        bottom: 100% !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }
    .searchBar .changeMap .dropdown-menu .dropdown-item .ingredientName{
        font-size: 14px;
        font-weight: 600;
        color: var(--grey-medium);
        padding-left: 50px;
        line-height: 1.2 !important;
    }
    /* Dropdown map: single column layout */
    .searchBar .changeMap .dropdown-menu {
        max-width: 100% !important;
    }

    .searchBar .changeMap .dropdown-menu > .d-flex {
        flex-direction: column-reverse;
        gap: 0 !important;
        width: 100% !important;
    }

    .searchBar .changeMap .dropdown-menu > .d-flex > .py-2 {
        width: 100% !important;
        flex-shrink: 1 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .searchBar .changeMap .dropdown-menu .suppliers-columns {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        overflow-x: visible !important;
        width: 100% !important;
    }

    .searchBar .changeMap .dropdown-menu .supplier-column {
        width: 100% !important;
        flex-shrink: 1 !important;
    }

    /* Masquer les logos et nombres de produits sur mobile */
    .searchBar .changeMap .dropdown-menu .logoothermaps {
        display: none !important;
    }

    .searchBar .changeMap .dropdown-menu .nbrIngredient {
        display: none !important;
    }

    #barrederesultat {
        top: -66vh !important;
        height: 75vh;
        max-height: 70vh;
    }

    .leaflet-control-container > div:first-of-type {
        bottom: 130px;
    }

    button.openMenu, button.openMenu:hover {
        background-color: transparent;
        box-shadow: none;
    }
    
    button.openMenu svg {
        fill: var(--orange-main);
        width: 24px;
        height: 24px;
    }

    button.openMenu:hover svg {
        fill:  var(--orange-dark);
    }

    .searchBar .searchBarInput {
        min-width: 100%;
    }
}

/*** < 600px ***/
@media screen and (max-width: 600px) {
    .partnerIngrdientTable {
        max-width: 70vw;
    }

    .sectionContentOtherPage .pageContent .headerIngredient {
        padding: 0px 34px 0 34px;
    }

    .sectionContentOtherPage .pageContent .headerIngredient .blockTitle {
        border-left: 0px;
        border-top: 20px solid;
        margin-left: 0px;
        padding-left: 0px;
        padding-top: 24px;
        margin-top: -10px;
    }

    .sectionContentOtherPage .pageContent .headerIngredient .imageIngredientMobile img {
        max-height: 300px;
        margin: auto;
    }

    .modal.product-of-week img.potw-img {
        display: none;
    }
    .modal.new-feature,
    .modal.product-of-week,
    .modal.new-supplier {
        padding-top: 7vh;
        margin-left: 7vh;
    }
    .nbproductsupplier{
        display: none;
    }
}

/*** < 500px ***/
@media screen and (max-width: 500px) {
    .contentOtherPages {
        padding: 0 34px 34px 34px;
    }

    .contentOtherPages a {
        word-break: auto-phrase;
    }

    .aboutUs .headerIngredient .chiffresBloc {
        padding-left: 0px;
    }

    .chiffresBloc div {
        margin-left: 0px;
    }

    .timeLineBloc {
        padding-left: 0px;
        padding-bottom: 16px;
        margin-left: 0px;
        border: none;
    }

    .timeLineBlocImg {
        display: none;
    }
}

/*** < 400px ***/
@media screen and (max-width: 400px) {
    .contentOtherPages {
        padding: 0 16px 16px 16px;
        word-break: auto-phrase;
    }

    .sectionContentOtherPage .pageContent .headerIngredient {
        padding: 0px 16px 0 16px;
    }

    .searchBar .changeMap button {
        justify-content: flex-end;
        padding-right: 8px !important;
    }

    .searchBar .changeMap button span {
        display: none;
    }

    h1 {
        word-break: break-all;
    }

    .PartnersBloc a {
        height: auto;
        width: 44%;
    }
}