/* AFRIPRESSE - Bandeau défilant des engagements */
@media screen and (min-width: 1024px) {

    .bandeau-engagements {
        overflow: hidden !important;
        width: 100% !important;
    }

    /* Conteneur des deux groupes */
    .bandeau-engagements > .wp-block-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        max-width: none !important;
        gap: 70px !important;
        animation: afripresse-defilement 18s linear infinite;
    }

    /* Chaque groupe de deux engagements */
    .bandeau-engagements > .wp-block-group > .wp-block-group {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        gap: 70px !important;
    }

    /* Chaque engagement */
    .bandeau-engagements .wp-block-group .wp-block-group {
        flex: 0 0 auto !important;
        min-width: 320px;
    }

    .bandeau-engagements p {
        white-space: nowrap !important;
    }

    .bandeau-engagements:hover > .wp-block-group {
        animation-play-state: paused;
    }

    @keyframes afripresse-defilement {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-35%);
        }
    }
}

/* Respect des préférences de réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .bandeau-engagements > .wp-block-group {
        animation: none !important;
    }
}