/* ============================================================
   VALISEOFILMS — megamenu.css
   Mega menu "Nos offres" — desktop 2 colonnes + mobile accordéon
   Déclenché par .vs-megamenu-parent sur le <li> Astra
   Version : 1.0.0
============================================================ */

/* ---------------------------------------------------------------
   TRIGGER — Indicateur ▾ sur le lien parent
--------------------------------------------------------------- */
.vs-megamenu-parent > a {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.vs-megamenu-parent > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left:  4px solid transparent;
    border-right: 4px solid transparent;
    border-top:   5px solid currentColor;
    transition: transform 0.22s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.vs-megamenu-parent.is-open > a::after {
    transform: rotate(180deg);
}

/* ---------------------------------------------------------------
   PANEL — Position fixe, JS-positionné en desktop
--------------------------------------------------------------- */
.vs-megamenu {
    position: fixed;
    z-index: 99999;
    width: 600px;
    background: #1a1a1a;
    border-top: 2px solid #fb8500;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6);
    padding: 28px 32px 32px;
    box-sizing: border-box;

    /* Initialement masqué */
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Transition d'entrée — classe ajoutée par JS après display:flex */
.vs-megamenu.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------
   INNER — 2 colonnes côte à côte
--------------------------------------------------------------- */
.vs-megamenu__inner {
    display: flex;
    gap: 36px;
    width: 100%;
}

.vs-megamenu__col {
    flex: 1;
    min-width: 0;
}

/* ---------------------------------------------------------------
   TITRES DE COLONNE
--------------------------------------------------------------- */
.vs-megamenu__col-title {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fb8500;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1;
}

/* ---------------------------------------------------------------
   LIENS
--------------------------------------------------------------- */
.vs-megamenu__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vs-megamenu__list li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.vs-megamenu__link {
    display: block;
    color: #d4d4d4 !important;
    text-decoration: none !important;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: color 0.18s ease, padding-left 0.18s ease;
    background: none !important;
}

.vs-megamenu__list li:last-child .vs-megamenu__link {
    border-bottom: none !important;
}

.vs-megamenu__link:hover,
.vs-megamenu__link:focus {
    color: #fb8500 !important;
    padding-left: 8px;
    background: none !important;
    text-decoration: none !important;
    outline: none;
}

/* ---------------------------------------------------------------
   MOBILE (≤ 768px) — accordéon inline dans le menu hamburger
--------------------------------------------------------------- */
@media (max-width: 768px) {
    .vs-megamenu {
        position: static !important;
        display: none;
        width: 100% !important;
        border-top: none !important;
        border-left: 2px solid #fb8500;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 8px 16px 16px 20px !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        background: rgba(0, 0, 0, 0.25) !important;
        margin-top: 4px;
        box-sizing: border-box !important;
    }

    .vs-megamenu.is-mobile-open {
        display: block;
    }

    .vs-megamenu__inner {
        flex-direction: column;
        gap: 20px;
    }

    .vs-megamenu__col-title {
        font-size: 10px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .vs-megamenu__link {
        font-size: 13px;
        padding: 7px 0 !important;
    }
}
