/* ==================================================
   VISUAL BRANDING ENGINE
   MARKETPLACE CLEAN EDITION
   Inspired by leboncoin.fr philosophy
================================================== */

/* ===============================
   WRAPPER
================================ */
.vbe-wrapper {
    width: 100%;
    display: block;
    clear: both;
    margin: 26px 0;
}

/* ===============================
   MAIN CONTAINER
================================ */
.footer-branding {
    max-width: 1000px;
    margin: 0 auto;
    padding: 26px 32px;

    background: #f7f8f9;
    color: #1f2937;

    border: 1px solid #e6e8eb;
    border-radius: 18px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);

    text-align: center;
    position: relative;
}

/* ===============================
   LOGO
================================ */
.brand-logo img {
    width: 260px;
    max-width: 100%;
    height: auto;
}

/* ===============================
   DIVIDER
================================ */
.brand-divider {
    margin: 18px 0 20px;
    display: flex;
    justify-content: center;
}

.brand-divider span {
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: #f4c430;
}

/* ===============================
   TYPEWRITER TEXT
================================ */
.typewriter {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

.typewriter .line {
    display: block;
    margin-bottom: 8px;
}

.typewriter .question {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.typewriter .answer {
    font-size: 15.5px;
    font-weight: 400;
    color: #4b5563;
}

/* =============================== 
   CATEGORIES (CLS SAFE)
================================ */
.footer-categories {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.9;
    min-height: 52px;

    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .5s ease,
        transform .5s ease;

    text-align: center;
}

.footer-categories.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-categories::before {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 0 auto 14px;
    background: #e5e7eb;
}

/* CATEGORY LINK */
.footer-categories a {
    position: relative;
    display: inline-block;
    margin: 4px 5px;
    padding-left: 12px;

    color: #333;
    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

/* puce triangulaire */
.footer-categories a::before {
    content: "‣";
    position: absolute;
    left: 0;
    top: 0;
    color: #c158dc;
    font-size: 20px;
    line-height: 1.6;
}

/* ===============================
   HOVER UNDERLINE (SAFE ADDITION)
================================ */
.footer-categories a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8e1fad, #c158dc);

    transition: width .25s ease;
}

.footer-categories a:hover {
    color: #8e1fad;
}

.footer-categories a:hover::after {
    width: 100%;
}
/* ===============================
   ROTATING MESSAGE
================================ */
.rotating-message-box {
        margin: 18px auto 22px;
        max-width: 480px;
        height: 48px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
}

.rotating-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.rotating-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14.5px;
    font-weight: 500;
    color: #374151;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity .4s ease,
        transform .4s ease;
}

.rotating-message.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   CTA AREA
================================ */
.footer-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-cta .cta-btn {
    height: 50px;
    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

/* LEFT CTA */
.footer-cta .cta-left {
    background: #ffd700;
    color: #111827;
    border: 2px solid #ddcecec9;
    border-radius: 30px;
    padding: 12px 22px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.footer-cta .cta-left:hover {
    background: linear-gradient(135deg, #8e1fad, #c158dc);
    color: #fff;
}

/* RIGHT CTA (PRIMARY) */
.footer-cta .cta-right {
    background: linear-gradient(135deg, #8e1fad, #c158dc);
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 14px 26px;
    border: none;
    border-radius: 30px;
    box-shadow: none;
    transition: all 0.3s ease;
        }

.footer-cta .cta-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(142, 31, 173, 0.45);
    filter: brightness(1.05);
    }

/* ===============================
   TRUST LINE
================================ */
.cta-sell-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cta-trust {
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7280;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {

    .footer-branding {
        padding: 22px 20px;
    }

    .typewriter .question {
        font-size: 18.5px;
    }

    .typewriter .answer {
        font-size: 15.5px;
    }

    .footer-cta {
        flex-direction: column;
    }

    .footer-cta .cta-btn {
        width: 100%;
    }

    .rotating-message-box {
        max-width: 100%;
        height: 42px;
    }

}
/* ===============================
Hover Animations - 
================================ */
.footer-categories a {
    transition:
        color .2s ease,
        transform .2s ease;
}

.footer-categories a:hover {
    transform: translateY(-2px);
}

.footer-cta .cta-right {
    transition:
        background .2s ease,
        transform .15s ease;
}

.footer-cta .cta-right:hover {
    transform: translateY(-1px);
}

.footer-cta .cta-left {
    transition:
        background .2s ease,
        border-color .2s ease;
}

.ok-icon::before {
    content: "✔";
    /* علامة OK */
    color: #4caf50;
    /* أصفر */
    margin-right: 6px;
    font-weight: bold;
    font-size: 16px;
    vertical-align: middle;
}