/* =========================================================
   POPUP OVERLAY
========================================================= */

.besoin-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}

.besoin-popup-overlay.active {
    display: flex;
}


/* =========================================================
   CONTAINER
========================================================= */

.besoin-popup-container {

    width: 100%;
    max-width: 850px;

    background:
        radial-gradient(circle at top,
        #42114a 0%,
        #1d071d 65%,
        #050505 100%);

    border: 1px solid rgba(197,160,89,0.4);

    padding: 60px;

    position: relative;

    box-shadow:
        0 25px 70px rgba(0,0,0,0.7);

    overflow: hidden;

}


/* =========================================================
   CLOSE
========================================================= */

.close-besoin {

    position: absolute;
    top: 15px;
    right: 20px;

    background: transparent;
    border: none;

    color: #c5a059;

    font-size: 2rem;

    cursor: pointer;

}


/* =========================================================
   HEADER
========================================================= */

.besoin-header h2 {

    font-family: 'Cinzel', serif;

    color: #c5a059;

    font-size: 2rem;

    margin-bottom: 15px;

    letter-spacing: 3px;

}

.besoin-header p {

    color: rgba(255,255,255,0.85);

    line-height: 1.8;

    margin-bottom: 35px;

}


/* =========================================================
   PROGRESS BAR
========================================================= */

.progress-bar {

    width: 100%;
    height: 10px;

    background: rgba(255,255,255,0.08);

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 40px;

}

.progress-fill {

    width: 0%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #c5a059,
            #e2c179
        );

    transition: 0.4s ease;

}


/* =========================================================
   QUESTIONS
========================================================= */

.question-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-step h3 {

    color: white;

    font-size: 1.2rem;

    margin-bottom: 15px;

}


/* =========================================================
   ANSWERS
========================================================= */

.answer-btn {

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(197,160,89,0.25);

    color: white;

    padding: 16px 20px;

    text-align: left;

    cursor: pointer;

    transition: 0.3s ease;

    font-size: 0.95rem;

}

.answer-btn:hover {

    background: rgba(197,160,89,0.15);

    border-color: #c5a059;

    transform: translateX(5px);

}


/* =========================================================
   RESULTATS
========================================================= */

#result-container {
    display: none;
}

.result-box h3 {

    font-family: 'Cinzel', serif;

    color: #c5a059;

    font-size: 1.8rem;

    margin-bottom: 25px;

}

.result-box p {

    color: rgba(255,255,255,0.88);

    line-height: 1.9;

    margin-bottom: 20px;

}

.result-offer {

    margin-top: 35px;

    padding: 25px;

    border: 1px solid rgba(197,160,89,0.3);

    background: rgba(255,255,255,0.03);

}

.result-offer span {

    display: block;

    color: #c5a059;

    font-size: 0.8rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 10px;

}

.result-offer strong {

    color: white;

    font-size: 1.1rem;

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    .besoin-popup-container{

        padding: 40px 25px;

        max-height: 90vh;

        overflow-y: auto;

    }

    .besoin-header h2{
        font-size: 1.5rem;
    }

}
