/**
 * CSS pour CTA Sticky
 * À placer dans /modules/votre_module/views/css/cta_sticky.css
 */

#cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    z-index: 1000;
    background-color: #0080c3;
    padding: 15px 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#cta-sticky.visible {
    opacity: 1;
}

#cta-sticky .cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 15px;
    position: relative;
}

#cta-sticky .cta-content {
    margin-right: 20px;
    gap: 50px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#cta-sticky .cta-content .cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#cta-sticky .button {
    width: fit-content;
}

#cta-sticky .cta-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #FFF;
}

#cta-sticky .cta-text {
    margin: 0;
    color: #FFF;
}

#cta-sticky .cta-button {
    margin: 8px 0;
}

#cta-sticky .btn-primary {
    padding: 8px 20px;
    font-weight: bold;
    background-color: #2fb5d2;
    border-color: #2fb5d2;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s;
}

#cta-sticky .btn-primary:hover {
    background-color: #1e93ab;
    border-color: #1e93ab;
}

/* Close button */
#cta-sticky .cta-close {
    cursor: pointer;
    font-size: 25px;
    color: #fff;
}

#cta-sticky .cta-close:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    #cta-sticky .cta-container {
        flex-direction: column;
    }

    #cta-sticky .cta-content {
        margin-right: 0;
        margin-bottom: 10px;
    }

    #product #cta-sticky {
        display: none;
    }
}

/* Hide CTA when closed */
#cta-sticky.hidden {
    display: none;
}

