/**
 * Bloc marque + plan de site (footer)
 */

.brand-sitemap {
    background-color: var(--bs-green);
    color: var(--bs-surface);
    padding: 100px 50px 50px 50px;
}

/* ---------- Top row ---------- */

.brand-sitemap__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    padding-bottom: 60px;
}

.brand-sitemap__intro {
    flex: 1 1 auto;
    max-width: 750px;
}

.brand-sitemap__title {
    font: 500 45px/48px "ABC Prophet", serif;
    color: #FFF;
    margin: 0 0 24px;
}

.brand-sitemap__text {
    font: 400 15px/20px "Inter", sans-serif;
    color: #FFF;
    margin: 0 0 28px;
}

/* ---------- Menus ---------- */

.brand-sitemap__menus-block {
    flex: 1 1 520px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.brand-sitemap__menus {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-sitemap__menu {
    min-width: 140px;
}

.brand-sitemap__menu-title {
    font: 600 17px/100% "Inter", sans-serif;
    color: var(--bs-surface);
    margin: 0 0 18px;
}

.brand-sitemap__menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-sitemap__menu-list li {
    margin: 0 0 10px;
}

.brand-sitemap__menu-list a {
    font: 400 15px/20px "Inter", sans-serif;
    color: var(--bs-surface);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand-sitemap__menu-list a:hover,
.brand-sitemap__menu-list a:focus {
    opacity: 0.7;
    text-decoration: none;
}

/* ---------- Certifications ---------- */

.brand-sitemap__certifications {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand-sitemap__certification-img {
    height: 44px;
    width: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-sitemap__certification-img:hover {
    filter: grayscale(0%);
}

/* ---------- Bottom row ---------- */

.brand-sitemap__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    gap: 24px;
    flex-wrap: wrap;
}

.brand-sitemap__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--bs-surface);
}

.brand-sitemap__brand:hover,
.brand-sitemap__brand:focus {
    text-decoration: none;
    color: var(--bs-surface);
}

.brand-sitemap__brand-logo {
    height: 54px;
    width: auto;
    display: block;
    filter: grayscale(100%) brightness(1000%);
}

.brand-sitemap__socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.brand-sitemap__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-surface);
    font-size: 22px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.brand-sitemap__social a:hover,
.brand-sitemap__social a:focus {
    color: var(--bs-surface);
    opacity: 0.7;
    text-decoration: none;
}

.brand-sitemap__social i {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ---------- Contact row ---------- */

.brand-sitemap__contact {
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-sitemap__contact-line {
    font: 400 15px/20px "Inter", sans-serif;
    color: var(--bs-surface);
    margin: 0;
}

.brand-sitemap__contact-link {
    color: var(--bs-surface);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.brand-sitemap__contact-link:hover,
.brand-sitemap__contact-link:focus {
    color: var(--bs-surface);
    opacity: 0.7;
    text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media ( max-width: 991px ) {
    .brand-sitemap__title {
        font-size: 38px;
        line-height: 42px;
    }

    .brand-sitemap__top {
        gap: 40px;
        padding-bottom: 40px;
    }

    .brand-sitemap__menus {
        justify-content: flex-start;
        gap: 40px;
    }

    .brand-sitemap__certifications {
        justify-content: flex-start;
    }
}

@media ( max-width: 767px ) {
    .brand-sitemap {
        padding: 50px 10px;
    }

    .brand-sitemap__title {
        font-size: 30px;
        line-height: 34px;
    }

    .brand-sitemap__text {
        font-size: 13px;
        line-height: 18px;
    }

    /* Menus en accordéon : empilés sur toute la largeur */
    .brand-sitemap__menus {
        flex-direction: column;
        gap: 0;
    }

    .brand-sitemap__menus-block {
        border-top: 1px solid #FFFFFF4D;
    }

    .brand-sitemap__menu {
        width: 100%;
        min-width: 0;
    }

    .brand-sitemap__certification-img {
        height: 30px;
    }

    .brand-sitemap__menu-title {
        cursor: pointer;
        margin: 0;
        padding: 18px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        user-select: none;
    }

    /* Chevron CSS (pas de dépendance FA) */
    .brand-sitemap__menu-title::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--bs-surface);
        border-bottom: 2px solid var(--bs-surface);
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .brand-sitemap__menu.is-open .brand-sitemap__menu-title::after {
        transform: rotate(-135deg);
        margin-bottom: -4px;
    }

    .brand-sitemap__menu-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .brand-sitemap__menu.is-open .brand-sitemap__menu-list {
        max-height: 600px;
        padding-bottom: 18px;
    }
}

@media ( max-width: 575px ) {
    .brand-sitemap__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
