.brevo-footer-container h3 {
    text-transform: uppercase;
}

.brevo-footer-container {
    align-items: center;
    background-color: #0F00A2;
    color: white;
    display: flex;
    justify-content: center;
    width: 100%;
}

.brevo-footer-container .container {
    align-items: center;
    background-image: url('/modules/iplnbrevo/views/img/ipln-brevo.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    gap: 32px;
    height: 100%;
    justify-content: end;
    min-height: 300px;
}

.span-brevo-footer-green {
    color: #8dffb3;
    font-weight: bold;
}

.brevo-footer-content {
    backdrop-filter: blur(10px);
    background-color: rgba(3, 18, 155, 0.13);
    border: solid 2px white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: 32px;
    width: fit-content;
}

.brevo-footer-content form {
    display: grid;
    grid-template-columns: 70% auto;
}

.brevo-footer-content form input {
    backdrop-filter: blur(10px);
    background-color: #8882C9;
    border: none;
}

.brevo-footer-content form input::placeholder {
    color: white;
}

.brevo-footer-content form button {
    border: solid 1px white;
}


.brevo-footer-content span {
    max-width: 500px;
}

.brevo-footer-content p {
    color: white;
}

.social-media-brevo {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-media-brevo .btn-round {
    align-items: center;
    border-color: white;
    color: white;
    display: flex;
    justify-content: center;
    padding: unset;
}

.brevo-footer-content .subscription-success {
    animation: fadeIn 0.5s ease-in-out;
    background-color: rgba(141, 255, 179, 0.1);
    border: 1px solid #8DFFB3;
    border-radius: 4px;
    color: #8DFFB3;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px 12px;
}

.callback {
    border-radius: 4px;
    display: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 15px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.callback.error {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    color: #d32f2f;
}

.callback.success {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.callback {
    animation: fadeIn 0.3s ease-out forwards;
}

.error ~ .emailNewsletter {
    border-color: #d32f2f !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roller-container {
    display: inline-block;
    height: 1.4rem;
    overflow: hidden;
    vertical-align: middle;
}

#rolltext {
    animation: slide 8s infinite ease-out;
    animation-delay: 1s;
    display: inline-block;
    position: relative;
}

@keyframes slide {
    0%, 10% {
        transform: translateY(0rem);
    }
    20%, 30% {
        transform: translateY(-1.2rem);
    }
    40%, 50% {
        transform: translateY(-2.45rem);
    }
    60%, 70% {
        transform: translateY(-3.7rem);
    }
    80%, 100% {
        transform: translateY(0rem);
    }
}

@media screen and (max-width: 900px) {
    @keyframes slide {
        0% {
            transform: translateY(0);
        }
        20% {
            transform: translateY(-1.3rem);
        }
        40% {
            transform: translateY(-2.6rem);
        }
        60% {
            transform: translateY(-3.9rem);
        }
        80% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(0);
        }
    }
    .brevo-footer-container .container:after {
        content: unset;
    }

    .brevo-footer-container .container {
        background: unset;
        flex-direction: column-reverse;
        gap: 15px;
        padding-bottom: 15px;
    }

    .brevo-footer-content {
        padding: 16px;
        width: 100%;
    }

    .social-media-brevo {
        flex-direction: row;
    }
}

@media screen and (max-width: 475px) {

    .brevo-footer-container h3 {
        text-align: center;
    }

    .brevo-footer-container {
        text-align: center;
    }

    .brevo-footer-content > span {
        font-size: 12px;
    }

    .roller-container {
        text-align: center; /* Force le centrage sur mobile */
    }

    #rolltext {
        width: 100%;
    }

    .roller-container {
        width: 100%;
    }

    .roller {
        width: 100%;
    }
}