/* =======================
   RÉGLAGES GÉNÉRAUX
   ======================= */
.ast-mobile-header-content .ast-builder-layout-element:not(.ast-builder-menu):not(.ast-header-divider-element),
.ast-mobile-popup-content .ast-builder-layout-element:not(.ast-builder-menu):not(.ast-header-divider-element) {
    padding: 0 !important;
}

.ast-header-break-point .ast-header-html-3 {
    display: block !important;
}

/* =======================
   SOUS-MENUS (Drill-Down)
   ======================= */
.drilldown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
    color: var(--ast-global-color-1);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
    display: none;
}

.drilldown-menu.active {
    transform: translateX(-100%);
    z-index: 10;
    display: block;
}

/* =======================
   BOUTON "RETOUR"
   ======================= */
.megamenu-mobile-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--ast-global-color-1);
    color: white;
    padding: 20px 20px;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 5;
}

.back-button {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 !important;
    line-height: 2;
}

.back-button:hover {
    background: none !important;
}

.back-button span {
    margin-left: 10px;
}

.drilldown-menu:not(.active) .back-button {
    display: none;
}

/* =======================
   STYLE DU MENU PRINCIPAL
   ======================= */
.sitenav-mobile-nav .menu-list {
    background: var(--ast-global-color-1);
    margin: 0 !important;
    padding: 0;
}

.sitenav-mobile-nav .menu-list li {
    border-bottom: 4px solid rgba(255, 255, 255, 0.6);
    list-style: none;
    padding: 0px;
    margin: 0;
}

.sitenav-mobile-nav .menu-list .menu-link,
.sitenav-mobile-nav .menu-list .menu-chevron {
    color: white;
}

/*.sitenav-mobile-nav .menu-list .menu-link:hover,
.sitenav-mobile-nav .menu-list .menu-chevron:hover {
    color: #ffcc00;
}*/

/* =======================
   STYLE DES SOUS-MENUS
   ======================= */
.drilldown-menu {
    background: #f3f3f3;
}

.drilldown-menu .menu-link {
    color: var(--ast-global-color-1) !important;
}

.drilldown-menu .menu-link:hover {
    color: var(--ast-global-color-1) !important;
}

.drilldown-menu .menu-chevron{
    color: var(--ast-global-color-1) !important;
}

.drilldown-menu .menu-chevron:hover{
    color: var(--ast-global-color-1) !important;
}

/* =======================
   LISTE DES MENUS
   ======================= */
ul.megamenu-menu-list {
    padding: 0px !important;
    margin: 0 !important;
}

.megamenu-menu-list li {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 0px solid #ddd !important;
}

/* =======================
   CHEVRONS
   ======================= */
.menu-item.has-submenu .menu-chevron {
    margin-left: auto;
    font-weight: bold;
    font-size: 16px;
    padding-right: 20px;
}

.back-button .ast-icon.icon-arrow:before {
    content: "\e900";
    display: inline-block;
    font-family: Astra;
    font-weight: bold;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-right: 10px;
    line-height: normal;
    transform: rotate(-270deg); 
	font-size: 13px;
}


.menu-chevron .ast-icon.icon-arrow:after {
    content: "\e900";
    display: inline-block;
    font-family: Astra;
    font-weight: bold;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 10px;
    line-height: normal;
    transform: rotate(-90deg); 
	font-size: 13px;
}

/* =======================
   ANIMATIONS
   ======================= */
@keyframes slide-chevron {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-10px);
        opacity: 0;
    }
}

@keyframes slide-back-chevron {
    0% {
        transform: translateX(10px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.menu-item.has-submenu .menu-chevron {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-item.has-submenu .menu-chevron.move-left {
    animation: slide-chevron 0.3s forwards;
}

.back-button span {
    display: inline-block;
    animation: slide-back-chevron 0.3s forwards;
}

/* =======================
   TITRES & BOUTONS SPÉCIAUX
   ======================= */
.menu-item.menu-title {
    font-weight: bold;
    padding: 10px 20px;
    background: #f3f3f3;
}

.menu-item.menu-title .menu-title {
    font-size: 16px;
    font-weight: bold;
    display: block;
}

/* Boutons */
/*.menu-item.menu-button {
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: left;
}

.menu-item.menu-button .menu-item-line {
    display: inline-flex;
    justify-content: center;
    width: auto;
}

.menu-item.menu-button .menu-item-line a {
    display: inline-block;
    background: black;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
}

.menu-item.menu-button .menu-item-line a:hover {
    background: #ffcc00;
    color: black;
}*/

/* =======================
   INTERACTIVITÉ DES LIENS
   ======================= */
.menu-item-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 20px; 
    font-weight: 600;
    font-size: 18px;
}

/* Curseur pointer et effet au survol UNIQUEMENT pour les éléments cliquables */
.menu-item:not(.menu-title):not(.menu-button) .menu-item-line {
    cursor: pointer;
}

.menu-item:not(.menu-title):not(.menu-button) .menu-item-line:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Permet au lien <a> de s’étendre sur toute la largeur */
.menu-item-line a {
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

/*mais pas pour les boutons*/
.menu-button .menu-item-line a{
	flex-grow: 0;
}

/* Désactive le survol et le pointer pour menu-title et menu-button */
.menu-item.menu-title .menu-item-line,
.menu-item.menu-button .menu-item-line {
    cursor: default !important;
    background: none !important;
}
