/* ==========================================================================
   PDL Méga Menu — front office
   ========================================================================== */

.pdlmm {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.pdlmm-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.pdlmm-item {
    position: relative;
}

.pdlmm-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: color .15s ease;
}

.pdlmm-link:hover,
.pdlmm-item.pdlmm-open > .pdlmm-link {
    color: #d1013a;
}

.pdlmm-caret {
    font-style: normal;
    font-size: 10px;
    transition: transform .15s ease;
}

.pdlmm-item.pdlmm-open .pdlmm-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.pdlmm-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    border-top: 3px solid #d1013a;
    z-index: 900;
}

.pdlmm-item.pdlmm-open .pdlmm-dropdown {
    display: block;
}

.pdlmm-dropdown-inner {
    display: flex;
    padding: 24px;
    gap: 32px;
}

.pdlmm-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 180px;
}

.pdlmm-column li a {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.pdlmm-column li a:hover {
    color: #d1013a;
    padding-left: 4px;
}

.pdlmm-promo {
    max-width: 220px;
}

.pdlmm-promo a {
    display: block;
    text-decoration: none;
    color: #222;
}

.pdlmm-promo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.pdlmm-promo-title {
    display: block;
    font-weight: 700;
    margin-top: 8px;
}

.pdlmm-promo-text {
    display: block;
    font-size: 13px;
    color: #666;
}

/* Mobile toggle button (hidden on desktop) */
.pdlmm-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.pdlmm-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    margin: 5px 0;
}

/* ==========================================================================
   Responsive — accordéon mobile
   ========================================================================== */
@media (max-width: 1199.98px) {
    .pdlmm-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .pdlmm.pdlmm-mobile-open .pdlmm-list {
        display: flex;
    }

    .pdlmm-mobile-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
    }

    .pdlmm-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .pdlmm-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 8px;
    }

    .pdlmm-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background: #fafafa;
    }

    .pdlmm-dropdown-inner {
        flex-direction: column;
        padding: 10px 16px;
        gap: 12px;
    }

    .pdlmm-promo {
        max-width: 100%;
    }
}
