/* ==========================================================================
   BATICAD 3D - Menu compact en enfilade au-dessus du footer
   Fichier : realisations/menu-enfilade-realisations.css
   ========================================================================== */

.bc3d-footer-links-section {
    padding: 22px 0;
    background: #f8fafc;
    border-top: 1px solid rgba(12, 27, 50, 0.08);
}

.bc3d-footer-links-container {
    /*width: min(1120px, calc(100% - 40px));*/
    width: calc(100% - 40px);
    margin: 0 auto;
}

.bc3d-footer-links-details {
    background: #ffffff;
    border: 1px solid rgba(12, 27, 50, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(12, 27, 50, 0.055);
    overflow: hidden;
}

.bc3d-footer-links-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 16px 18px;

    cursor: pointer;
    list-style: none;
}

.bc3d-footer-links-details summary::-webkit-details-marker {
    display: none;
}

.bc3d-footer-links-details summary span {
    flex: 0 0 auto;

    padding: 6px 10px;

    background: var(--bc-accent, #a3e635);
    color: var(--bc-primary-dark, #0c1b32);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bc3d-footer-links-details summary strong {
    flex: 1;

    color: var(--bc-primary-dark, #0c1b32);

    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
}

.bc3d-footer-links-details summary::after {
    content: "+";

    flex: 0 0 26px;

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

    width: 26px;
    height: 26px;

    background: #f1f5f9;
    color: var(--bc-primary-dark, #0c1b32);

    border-radius: 999px;

    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.bc3d-footer-links-details[open] summary::after {
    content: "−";
}

.bc3d-footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    padding: 0 18px 18px 18px;
}

.bc3d-footer-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    max-width: 100%;

    padding: 7px 10px;

    background: #f8fafc;
    color: var(--bc-primary-dark, #0c1b32) !important;

    border: 1px solid rgba(12, 27, 50, 0.08);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.bc3d-footer-links-list a small {
    flex: 0 0 auto;

    color: var(--bc-accent-dark, #007ca8);

    font-size: 9.5px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bc3d-footer-links-list a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc3d-footer-links-list a:hover {
    transform: translateY(-2px);
    background: var(--bc-primary-dark, #0c1b32);
    color: #ffffff !important;
    border-color: var(--bc-primary-dark, #0c1b32);
}

.bc3d-footer-links-list a:hover small {
    color: var(--bc-accent, #a3e635);
}

/* Variante ouverte par défaut si tu ajoutes l’attribut open au <details> */

.bc3d-footer-links-details[open] {
    box-shadow: 0 14px 34px rgba(12, 27, 50, 0.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .bc3d-footer-links-section {
        padding: 18px 0;
    }

    .bc3d-footer-links-container {
        width: min(100% - 28px, 520px);
    }

    .bc3d-footer-links-details summary {
        align-items: flex-start;
        padding: 15px;
    }

    .bc3d-footer-links-details summary strong {
        font-size: 14px;
    }

    .bc3d-footer-links-list {
        padding: 0 15px 15px 15px;
    }

    .bc3d-footer-links-list a {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .bc3d-footer-links-details summary {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    .bc3d-footer-links-list a {
        width: 100%;
        border-radius: 14px;
    }

    .bc3d-footer-links-list a span {
        white-space: normal;
    }
}