/*MEGA MENU*/


.ets_prmn_megamenu .prmn_columns_ul {

    box-shadow: none !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}
 

/**PARTIE MATÉRIEL NEUF :BLEU **/
/* .prmn_menus_li:has(a[href$="/3-neuf"]) .prmn_columns_ul{
    background-color: #0d89c3 !important;
} */
.prmn_menus_li:has(a[href$="/3-neuf"]){
  color: #0d89c3!important;
}
.prmn_menu_content_title img{
    width: 50% !important;
}
.prmn_menus_li:has(a[href$="/3-neuf"]):hover,
.prmn_menus_li:has(a[href$="/3-neuf"]):active,
.prmn_menus_li:has(a[href$="/3-neuf"]):focus{
    background-color: #0d89c3 !important;
    color:white !important;
}
.prmn_menus_li:has(a[href$="/3-neuf"]) .h4,
.prmn_menus_li:has(a[href$="/3-neuf"]) h4{
    color: #0d89c3 !important;
}
a[href$="/3-neuf"]:has(.prmn_menu_content_title):hover,
a[href$="/3-neuf"]:has(.prmn_menu_content_title):active,
a[href$="/3-neuf"]:has(.prmn_menu_content_title):focus
{
    color: white !important;
}


/**PARTIE OCCASION :ROUGE **/

.prmn_menu_content_title img{
    width: 50% !important;
}
.prmn_menus_li:has(a[href$="/4-occasion"]){
  color:#a72d38 !important;
}

.prmn_menus_li:has(a[href$="/4-occasion"]):hover,
.prmn_menus_li:has(a[href$="/4-occasion"]):active,
.prmn_menus_li:has(a[href$="/4-occasion"]):focus {
    background-color: #a72d38 !important;
    color:white !important;
}

.prmn_menus_li:has(a[href$="/4-occasion"]):hover > a,
.prmn_menus_li:has(a[href$="/4-occasion"]):active > a,
.prmn_menus_li:has(a[href$="/4-occasion"]):focus > a{
    color: white !important;
}

.prmn_menus_li:has(a[href$="/4-occasion"]) .h4{
   color:#a72d38 !important; 
}

/**PARTIE EXPORT :gris **/

/* .prmn_menus_li:has(a[href$="/3-neuf"]) .prmn_columns_ul{
    background-color: #0d89c3 !important;
} */
.prmn_menus_li:has(a[href$="/3-neuf"]){
  color: #0d89c3!important;
}
.prmn_menu_content_title img{
    width: 50% !important;
}
.prmn_menus_li:has(a[href$="/3-neuf"]):hover,
.prmn_menus_li:has(a[href$="/3-neuf"]):active,
.prmn_menus_li:has(a[href$="/3-neuf"]):focus {
    background-color: #0d89c3 !important;
    color:white !important;
}

.prmn_menus_li:has(a[href$="/3-neuf"]):hover > a,
.prmn_menus_li:has(a[href$="/3-neuf"]):active > a,
.prmn_menus_li:has(a[href$="/3-neuf"]):focus > a{
    color: white !important;
}


/**PARTIE EXPORT**/

.prmn_menu_content_title img{
    width: 50% !important;
}
.prmn_menus_li:has(a[href$="/200-export"]){
  color: #484848!important;
}

.prmn_menus_li:has(a[href$="/200-export"]):hover,
.prmn_menus_li:has(a[href$="/200-export"]):active,
.prmn_menus_li:has(a[href$="/200-export"]):focus {
    background-color: #484848!important;
    color:white !important;
}

.prmn_menus_li:has(a[href$="/200-export"]):hover > a,
.prmn_menus_li:has(a[href$="/200-export"]):active > a,
.prmn_menus_li:has(a[href$="/200-export"]):focus > a{
    color: white !important;
}

/**PARTIE magasins, marques, contacts**/

 .prmn_menu_content_title img{
    width: 50% !important;
}
.prmn_menus_li:has(a[href="#"]){
  color: #484848!important;
} 

 .prmn_menus_li:has(a[href="#"]):hover,
.prmn_menus_li:has(a[href="#"]):active {
    color:#a72d38 !important;
}

a[href="#"]:has(.prmn_menu_content_title):hover,
a[href="#"]:has(.prmn_menu_content_title):active{
    color: #a72d38 !important;
} 




 .prmn_menus_li:hover > a, 
.prmn_menus_li:has(a[href="#"]):hover .click_open_submenu.open > a, 
#header .prmn_menus_li:has(a[href="#"]):hover> a,
.prmn_menus_li:has(a[href$="/content/category/5-services"]):hover > a, 
.prmn_menus_li:has(a[href$="/content/category/5-services"]):hover .click_open_submenu.open > a, 
#header .prmn_menus_li:has(a[href$="/content/category/5-services"]):hover> a,
.prmn_menus_li:has(a[href$="/magasins"]):hover > a, 
.prmn_menus_li:has(a[href$="/magasins"]):hover .click_open_submenu.open > a, 
#header .prmn_menus_li:has(a[href$="/magasins"]):hover> a,
.prmn_menus_li:has(a[href$="/nous-contacter"]):hover > a, 
.prmn_menus_li:has(a[href$="/nous-contacter"]):hover .click_open_submenu.open > a, 
#header .prmn_menus_li:has(a[href$="/nous-contacter"]):hover> a,
.prmn_menus_li:has(a[href$="/94_altendorf"]):hover > a, 
.prmn_menus_li:has(a[href$="/94_altendorf"]):hover .click_open_submenu.open > a, 
#header .prmn_menus_li:has(a[href$="/94_altendorf"]):hover> a,
.prmn_menus_li:has(a[href$="/nous-contacter"]):hover > a, 
.prmn_menus_li:has(a[href$="/nous-contacter"]):hover .click_open_submenu.open > a, 
#header .prmn_menus_li:has(a[href$="/nous-contacter"]):hover> a
{
    color:#a72d38;
} 


 /*Partie demande sav et pièces détachées */


/* Direct child only: the "Contact" item also holds these links in its submenu */
.prmn_menus_li:has(> a:is([href$="/contact/sav"], [href$="/contact/pieces-detachees"]))
{
    background-color: #f74040 !important;
    border-radius: 6px;
    color:white !important;
    transition: transform 0.4s ease;
}

.prmn_menus_li > a:is([href$="/contact/sav"], [href$="/contact/pieces-detachees"]),
#header .prmn_menus_li > a:is([href$="/contact/sav"], [href$="/contact/pieces-detachees"])
{
    color: white !important;
    fill: white !important;
}

.prmn_menus_li:has(> a:is([href$="/contact/sav"], [href$="/contact/pieces-detachees"])):hover
{
    transform: scale(1.06);
}

/* Marques, Formation, Keloutils and Contact (empty href): red title on hover, over the module inline color */
.prmn_menus_li:hover > a:is([href$="/fabricants"], [href$="/21-nos-formations"], [href=""]),
.click_open_submenu.open > a:is([href$="/fabricants"], [href$="/21-nos-formations"], [href=""]),
#header .prmn_menus_li:hover > a:is([href$="/fabricants"], [href$="/21-nos-formations"], [href=""]),
#header .click_open_submenu.open > a:is([href$="/fabricants"], [href$="/21-nos-formations"], [href=""])
{
  color: #a72d38 !important;
  fill: #a72d38 !important;
}


.item_has_img .ets_item_img {
    border: none !important;
    
}
.prmn_columns_li.column_size_12.prmn_has_sub img{
    max-width: 130px;
    text-align: center !important;
    vertical-align: middle;
}
.item_has_img .ets_item_img img{ 
    text-align: center !important;
    vertical-align: middle;
}

.prmn_columns_li.column_size_2 {
max-height: 290px !important;
}
.prmn_menus_li:has(a[href$="/3-neuf"]) .prmn_img_content,
.prmn_menus_li:has(a[href$="/4-occasion"]) .prmn_img_content,
.prmn_menus_li:has(a[href$="/94_altendorf"]) .prmn_img_content{
  align-content: center;
  text-align: center;
  vertical-align: middle;
  margin-top: 29px;
 }

 /* .prmn_img_content img{
    width: 70% !important;
}
  */

.prmn_block_type_image .ets_prmn_block_content img {
    max-width: min-content;
}

.prmn.columns.li.column.size_5 img{
    width: 70% !important;
}

/* Contact submenu: inner padding and more space between its contents */
@media (min-width: 1200px) {
    #header .prmn_menus_li:has(a[href$="/contact/recherche-machine-neuve"]) .prmn_columns_ul {
        box-sizing: border-box;
        padding: 30px 30px 0 !important;
    }
    #header .prmn_menus_li:has(a[href$="/contact/recherche-machine-neuve"]) .prmn_blocks_li {
        padding: 0 20px;
        margin-bottom: 30px;
    }
}
/* boutes demandes pièces et demande sav*/




@media (min-width: 1200px) {
    .prmn_menus_li:has(a[href$="/contact/pieces-detachees"]){
        margin-right: 30px;
    }
    .prmn_menus_li:has(a[href$="/contact/sav"]){
    margin-right: 20px;
    margin-left: 30px;
   
    }
}

@media (max-width: 1200px) {
    .prmn_columns_ul.active{
        top:-7px !important;
        margin:0px !important;
    }
    /* .prmn_menu_content_title{
        color:white !important;
    } */
}
/* 
prmn_columns_ul active */

/* 
.prmn_menus_li:has(a[href$="/contact/sav"]):hover,
.prmn_menus_li:has(a[href$="/contact/pieces-detachees"]):hover{
    transform: scale(1.3);
}

.elementor-element.elementor-element-141e37d{
    top:47px !important;
}

.elementor-element.elementor-element-7f2225e9 img{
    display: none;
}

.elementor-element.elementor-element-d2b98d4 .elementor-widget-container{
    box-shadow: 0px 12px 10px -10px rgba(170, 170, 170, 0.5);
}
.item_has_img.item_inline_6 a{
    height: 150px !important;
}
.item_has_img.item_inline_6{
    vertical-align: middle;
    text-align: center;
} */

/* Conteneur général du mega menu */
.prmn_menus_li:has(a[href$="/3-neuf"]) 
.prmn_columns_ul {
    background: #fff !important;
    padding: 28px 30px 32px !important;
    border: 1px solid #e8e8e8 !important;
    border-top: 3px solid #0d89c3 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.10) !important;
}

/* Titre principal MATÉRIEL NEUF */
.prmn_menus_li:has(a[href$="/3-neuf"])
> a {
    color: #0d89c3 !important;
    font-weight: 700 !important;
}

/* Hover du bouton principal */
.prmn_menus_li:has(a[href$="/3-neuf"]):hover
> a,
.prmn_menus_li:has(a[href$="/3-neuf"]):active
> a,
.prmn_menus_li:has(a[href$="/3-neuf"]):focus
> a {
    color: #fff !important;
}

/* Bloc contenant les colonnes */
/* .prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_ul {
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;
} */

/* Colonnes du mega menu */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li {
    padding: 16px 18px !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
}

/* Effet léger au survol des catégories */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li:hover {
    background: #f6fbfd !important;
    transform: translateY(-2px);
}

/* Titres des catégories */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li h4{
    color: #0d89c3 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li h1 {
    color:black !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

/* Liens des sous-catégories */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li a {
    color: #484848 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
}

/* Hover des sous-catégories */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li a:hover {
    color: #0d89c3 !important;
    padding-left: 4px !important;
}

/* Images */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_menu_content_title img {
    width: auto !important;
    max-width: 130px !important;
    max-height: 85px !important;
    object-fit: contain !important;
    margin: 0 auto 12px !important;
    display: block !important;
}

/* Zone image */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_img_content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 95px !important;
    margin: 5px auto 15px !important;
    text-align: center !important;
}

/* Images dans les blocs */
.prmn_menus_li:has(a[href$="/3-neuf"])
.item_has_img .ets_item_img {
    border: none !important;
    background: transparent !important;
}

/* Taille des images */
.prmn_menus_li:has(a[href$="/3-neuf"])
.item_has_img .ets_item_img img {
    max-width: 125px !important;
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}

/* Espacement entre les éléments */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li li {
    margin-bottom: 5px !important;
}

/* Suppression des hauteurs trop contraignantes */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li.column_size_2 {
    max-height: none !important;
}

/* Séparation visuelle entre les colonnes */
.prmn_menus_li:has(a[href$="/3-neuf"])
.prmn_columns_li:not(:last-child) {
    border-right: 1px solid #eeeeee !important;
}

/* =========================================================
   BOUTON "NEUF" — MATÉRIEL NEUF
   ========================================================= */

.prmn_menus_li:has(a[href$="/3-neuf"])
a[href$="/3-neuf"]:not(:has(.prmn_menu_content_title)) {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #0d89c3 !important;
    color: #ffffff !important;

    padding: 12px 28px !important;

    border-radius: 30px !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.2 !important;

    text-decoration: none !important;

    margin-top: 12px !important;

    box-shadow: 0 4px 12px rgba(13,137,195,0.18) !important;

    transition: all 0.25s ease !important;
}


/* Flèche */
.prmn_menus_li:has(a[href$="/3-neuf"])
a[href$="/3-neuf"]:not(:has(.prmn_menu_content_title))::after {

    content: "→";

    font-size: 20px !important;

    margin-left: 12px !important;

    line-height: 1 !important;

    transition: transform 0.2s ease !important;
}


/* Hover */
.prmn_menus_li:has(a[href$="/3-neuf"])
a[href$="/3-neuf"]:not(:has(.prmn_menu_content_title)):hover {

    background: #096f9f !important;

    color: #ffffff !important;

    transform: translateY(-2px) !important;

    box-shadow: 0 7px 18px rgba(13,137,195,0.28) !important;
}


/* Animation de la flèche */
.prmn_menus_li:has(a[href$="/3-neuf"])
a[href$="/3-neuf"]:not(:has(.prmn_menu_content_title)):hover::after {

    transform: translateX(4px);
}

/* =========================================================
   MATÉRIEL NEUF + OCCASION — aligned grid, fully visible panel
   ========================================================= */

/* Columns grow with their content (overrides the global 290px cap that made them overlap the next row) */
.prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) .prmn_columns_li.column_size_2 {
    max-height: none !important;
}

/* Each 6-column row starts on the left: prevents the float staircase caused by unequal heights */
@media (min-width: 768px) {
    .prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) > .prmn_columns_ul > .prmn_columns_li.column_size_2:nth-child(6n+1) {
        clear: left;
    }
}

/* Fixed-height image zone: every category title of a row starts at the same height */
.prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) .prmn_img_content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 95px !important;
    min-height: 0 !important;
    margin: 0 auto 15px !important;
}

.prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) .prmn_img_content img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 85px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* Tall panels scroll inside the viewport instead of overflowing below it */
@media (min-width: 1200px) {
    .prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) > .prmn_columns_ul {
        max-height: calc(100vh - 240px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
}

/* "More below" hint: coloured pill pinned to the panel bottom, with a white halo fading the content behind it.
   custom.js toggles .prmn_scroll_more while the panel still has content below the fold. */
@media (min-width: 1200px) {
    .prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) > .prmn_columns_ul::after {
        content: "Faites défiler pour voir la suite";
        /* Cleared float: unlike a cleared block, it keeps the negative margin, so the hint adds no height */
        float: left;
        clear: both;
        position: sticky;
        bottom: 16px;
        height: 42px;
        margin-top: -42px;
        margin-left: 50%;
        transform: translate(-50%, 0);
        padding: 0 44px 0 22px;
        border-radius: 999px;
        background: #484848 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px 18px no-repeat;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        line-height: 42px;
        white-space: nowrap;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 -20px 40px 30px rgba(255, 255, 255, 0.9);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .prmn_menus_li:has(> a[href$="/3-neuf"]) > .prmn_columns_ul::after {
        background-color: #0d89c3;
        /* Sticky offset counts from the padding edge: compensate the 32px bottom padding of this panel */
        bottom: -16px;
    }

    .prmn_menus_li:has(> a[href$="/4-occasion"]) > .prmn_columns_ul::after {
        background-color: #a72d38;
    }

    .prmn_menus_li:has(> a:is([href$="/3-neuf"], [href$="/4-occasion"])) > .prmn_columns_ul.prmn_scroll_more::after {
        opacity: 1;
    }
}
