/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #000;
}

/* Animation burger */
.burger span {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* état ouvert */
.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 968px) {
    .burger {
        display: flex;
        z-index: 3;
    }
    .e-flexbox-base, .e-tabs-base {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .breadcrumb-wrapper {
        align-items: flex-start;
    }
}

/* MENU MOBILE FULLSCREEN */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    overflow-y: auto; 
    padding: 150px 0 0 50px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 2;
}

/* ACTIF */
.mobile-navigation.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* UL */
.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* LI */
.mobile-navigation li {
    margin: 15px 0;
}

/* LIENS */
.mobile-navigation a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s ease;
}

.mobile-navigation .btn-top a {
    color: white;
    padding: 10px;
    margin-top: 25px !important;
    background-color: var(--blue);
}

.mobile-navigation .btn-top {
    margin-top: 25px !important;
}

@media (max-width: 968px) {
    #chosentables {
        flex-direction: column;
    }
}

/* SOUS-MENUS MOBILE */
@media (max-width: 768px) {
    /* Parent avec enfants */
    .mobile-navigation .menu-item-has-children {
        position: relative;
        width: 100%;
    }
    
    /* Lien principal en flexbox */
    .mobile-navigation .menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Toggle (chevron) */
    .mobile-navigation .menu-item-has-children .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    /* Chevron */
    .mobile-navigation .menu-item-has-children .submenu-toggle::before {
        content: "";
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid #000;
        transition: transform 0.3s ease;
    }
    
    /* Chevron rotation */
    .mobile-navigation .menu-item-has-children.open .submenu-toggle::before {
        transform: rotate(180deg);
    }
    
    /* Sous-menu fermé */
    .mobile-navigation .sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    /* Sous-menu ouvert */
    .mobile-navigation .menu-item-has-children.open .sub-menu {
        max-height: 1000px;
    }
    
    /* Items du sous-menu */
    .mobile-navigation .sub-menu .menu-item {
        margin: 0;
        text-align: left;
        padding-left: 20px;
    }
    
    .mobile-navigation .sub-menu .menu-item a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 400;
        border-top: 1px solid #f0f0f0;
    }
}

#plasmatable, #chosentables {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#plasmatable table, #chosentables table {
    min-width: 700px;
}

.wp-block-paragraph a {
    display: inline-block; 
    max-width: 100%;       
    overflow-wrap: break-word;
    word-break: break-all;
}