.footer {
    position: relative;

    background: #CEFF3F url('/img/background/grid_footer.svg');

    overflow: hidden;
}

.footer .container {
    padding: 180px 105px 50px 105px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.footer .container .winning {

    display: flex;
    flex-direction: column;
    gap: 50px;

}

.footer .container .winning .img {
    display: flex;
    justify-content: center;
    align-items: center;
}


.footer .high-arch {
    position: absolute;
    top: -5px;

    width: 100%;
    
    pointer-events: none;

    display: block;
}

.footer .chapter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer .chapter h2 {
    font-size: 2.5rem;
    color: #5F36F5;
}

.footer .chapter p {
    font-size: 1rem;
    color: #767676;
}

.footer button {
    position: relative;
    height: 63px; width: 276px;
    overflow: hidden;
    cursor: pointer;
}

.footer button svg {
    position: absolute;
    transform: translate(-50%,-50%);
    z-index: 0;
}

.footer button p {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
    color: white;
}


.footer .faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer .faq-container .faq {
    display: flex;
    flex-direction: column;
}

.footer .faq-container .faq .question {
    padding: 20px 25px;
    
    background: linear-gradient(
        to right, #5F36F5 0%, #290F8B 100% 
    );

    border: 1px solid black;

    color: rgb(220, 220, 220);
}

/* Media Queries pour le footer */

/* Tablette en mode paysage */
@media (max-width: 1024px) {
    .footer .container {
        padding: 120px 60px 40px 60px;
        gap: 40px;
    }
    
    .footer .container .winning {
        gap: 40px;
    }
    
    .footer .chapter h2 {
        font-size: 2.2rem;
    }
}

/* Tablette en mode portrait */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        padding: 100px 40px 30px 40px;
        text-align: center;
    }
    
    .footer .container .winning {
        align-items: center;
        gap: 30px;
    }
    
    .footer .chapter {
        align-items: center;
    }
    
    .footer .chapter h2 {
        font-size: 2rem;
    }
    
    .footer button {
        margin: 0 auto;
    }
    
    .footer .high-arch {
        top: -2px;
    }
}

/* Téléphone */
@media (max-width: 480px) {
    .footer .container {
        padding: 80px 20px 25px 20px;
        gap: 30px;
    }
    
    .footer .chapter h2 {
        font-size: 1.8rem;
    }
    
    .footer .chapter p {
        font-size: 0.9rem;
    }
    
    .footer button {
        width: 100%;
        max-width: 276px;
        height: 56px;
    }
    
    .footer .faq-container .faq .question {
        padding: 16px 20px;
    }
    
    .footer .high-arch {
        top: -1px;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .footer .container {
        padding: 60px 15px 20px 15px;
    }
    
    .footer .chapter h2 {
        font-size: 1.6rem;
    }
    
    .footer .chapter p {
        font-size: 0.85rem;
    }
    
    .footer button p {
        font-size: 0.9rem;
    }
    
    .footer .faq-container .faq .question {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

/* Mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .footer .container {
        padding: 40px 20px;
    }
    
    .footer .chapter h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .footer .chapter p {
        margin: 5px 0;
    }
    
    .footer button {
        height: 50px;
    }
}
