@media only screen and (min-width: 1024px) {
    /* anything we need to cancel/hide here */
    .sub-menu-toggle { display: none; }
}

@media only screen and (max-width: 1023px) {
    /* --- #006E55 ~ #008D6F --- */
    
    body#commercants #content { padding-top: 0; }
    body#commercants div.aside { margin-right: 0 !important; }
    /* body#commercants #content h2 { margin: 0; } */
    
    body#commercants #carrousel-consommateurs { margin-left: auto !important; }

    body#commercants ul.liste-commercant li {
        display: block;
        margin-right: 2px;
        margin-top: 2px;
        box-shadow: 0 0 4px -1px rgba(0,0,0,.25);
    }
    body#commercants ul.liste-commercant li:first-child {
        margin-top: 0;
    }
    
    body#commercants #content div.section .ruban,
    /*body#commercants #content div.aside .ruban,
    body#commercants #content div.aside h1.ruban,
    body#commercants #content div.aside h2.ruban,
    body#commercants #content div.left h2.ruban,
    body#commercants #content div.right h2.ruban,*/
    body#commercants #content div.section #entete_de_page span.ruban {
        background: #006E55; /* Old browsers */
        background: -moz-linear-gradient(left, #006E55 0%, #006E55 12%, #008D6F 23%, #008D6F 34%, #006E55 45%, #006E55 99%); /* FF3.6-15 */
        background: -webkit-linear-gradient(left, #006E55 0%,#006E55 12%,#008D6F 23%,#008D6F 34%,#006E55 45%,#006E55 99%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right, #006E55 0%,#006E55 12%,#008D6F 23%,#008D6F 34%,#006E55 45%,#006E55 99%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#006E55', endColorstr='#006E55',GradientType=1 ); /* IE6-9 */
    }

    /*body#commercants #content div.right h2.ruban span { background-image: none !important; }
    
    body#commercants #content div.section .ruban span:after, 
    body#commercants #content div.aside .ruban span:after, 
    body#commercants #content div.aside h1.ruban span:after, 
    body#commercants #content div.aside h2.ruban span:after {
        background: #008D6F;
    }*/
    body#commercants #content div.twocolumns div.section.right {
        padding-bottom: 20px !important;
        box-shadow: 0 0 8px 0 rgba(0,0,0,.3);
    }

    body#commercants #content div.twocolumns div.section.left {
        margin-left: 0;
        padding: 0 !important;
    }

    #content div.section form.verifiez-un-permis {
        margin-left: 0;
        margin-right: 0;
    }

    #content div.section form.verifiez-un-permis p button,
    #content div.section form.verifiez-un-permis-accueil p button {
        top: 2px;
    }
}


@media only screen and (max-width: 767px) {
    body#commercants #content div.sousmenu_page ul > li > div,
    body#commercants #content div.sousmenu_page ul > li.last > div { padding: 15px 0 13px; }
    
    body#commercants #content #carrousel-consommateurs .menuCarrousel ul,
    body#commercants #content #carrousel-consommateurs .menuCarrousel ul li.selected {
        background: #007B6C;
    }
    body#commercants #content #carrousel-consommateurs .menuCarrousel ul:before {
        border-bottom-color: #007B6C;
    }

    body#commercants #content div.twocolumns div.section.left,
    body#commercants #content div.twocolumns div.section.right {
        margin-top: 15px !important;
    }
    
    #c7180 div.sousmenu_page ul.cols-2 li.last a, 
    #c348 div.sousmenu_page ul.cols-2 li.last a, 
    #c363 div.sousmenu_page ul.cols-2 li.last a, 
    #c362 div.sousmenu_page ul.cols-2 li.last a, 
    #c364 div.sousmenu_page ul.cols-2 li.last a, 
    #c365 div.sousmenu_page ul.cols-2 li.last a, 
    #c366 div.sousmenu_page ul.cols-2 li.last a, 
    #c367 div.sousmenu_page ul.cols-2 li.last a {
        width: 100%;
        box-sizing: border-box;
    }
    
    body#commercants .sidebar-flexible .csc-default { margin: 16px 0; }
    body#commercants .sidebar-flexible .csc-default img {
        width: calc(100% - 32px);
        display: block;
        padding: 16px !important;
    }
}