/*
 * Avocats Wilson
 * Pied de page juridique
 * Indépendant du hero
 */

.awb-site-footer {
    box-sizing: border-box;
    background: #ffffff;
    color: #292626;
    border-top: 1px solid #8A5A3B;

    /* AWB_FOOTER_CYCLE_R3 */
    animation:
        awb-footer-background-cycle
        32s ease-in-out infinite,
        awb-footer-text-cycle
        32s ease-in-out infinite;
    padding: 22px clamp(18px, 4vw, 60px);
    font: 400 12px/1.6 var(--awb-font-body);
}

.awb-site-footer *,
.awb-site-footer *::before,
.awb-site-footer *::after {
    box-sizing: border-box;
}

.awb-site-footer__inner {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    gap: 14px 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.awb-site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}

.awb-site-footer a {
    color: #775038;
    animation:
        awb-footer-link-cycle
        32s ease-in-out infinite;
    text-decoration: none;
    text-underline-offset: 4px;
}

.awb-site-footer a:hover,
.awb-site-footer a:focus-visible {
    text-decoration: underline;
}

.awb-site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.awb-site-footer__pending {
    color: #625b56;
    animation:
        awb-footer-pending-cycle
        32s ease-in-out infinite;
}

.awb-site-footer__meta {
    display: flex;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.awb-site-footer__credit a {
    color: #775038;
}

@media (max-width: 760px) {
    .awb-site-footer {
        padding: 19px 16px;
    }

    .awb-site-footer__inner,
    .awb-site-footer__meta {
        justify-content: center;
        text-align: center;
    }

    .awb-site-footer__links {
        justify-content: center;
        gap: 9px 15px;
    }
}


/*
 * AWB_FOOTER_CYCLE_R3
 * Même séquence chromatique que le hero R16.
 * Durée : 32 secondes.
 */

@keyframes awb-footer-background-cycle {
    0%, 100% {
        background-color: #ffffff;
    }

    18%, 82% {
        background-color: #eeeeed;
    }

    35%, 65% {
        background-color: #8d8887;
    }

    50% {
        background-color: #292626;
    }
}

@keyframes awb-footer-text-cycle {
    0%, 36%, 64%, 100% {
        color: #292626;
    }

    40%, 60% {
        color: #f7f5f2;
    }
}

@keyframes awb-footer-link-cycle {
    0%, 36%, 64%, 100% {
        color: #775038;
    }

    40%, 60% {
        color: #e0b58f;
    }
}

@keyframes awb-footer-pending-cycle {
    0%, 36%, 64%, 100% {
        color: #625b56;
    }

    40%, 60% {
        color: #e3d9d2;
    }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .awb-site-footer,
    .awb-site-footer a,
    .awb-site-footer__pending {
        animation: none !important;
    }

    .awb-site-footer {
        background: #ffffff;
        color: #292626;
    }

    .awb-site-footer a,
    .awb-site-footer__credit a {
        color: #775038;
    }

    .awb-site-footer__pending {
        color: #625b56;
    }
}
