/* ==========================================================================
   FOOTER -  LIEN HOVER
   ========================================================================== */
.footer__link-repeater {
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    width: 70%;
    justify-content: flex-end;
}

.footer__link-item {
    position: relative;
    list-style: none;
    border-bottom: solid 2px var(--first-color);
    padding: var(--gap-s) var(--gap-xs);
}

.footer__link-item a {
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
}

.footer__link-item a {
    font-family: 'Poppins Black';
}

.footer__link-base-content,
.footer__link-hover-content {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.footer__link-hover-container {
    position: absolute;
    bottom: 0;
    left: 0;
    transition: clip-path .5s cubic-bezier(0.25, 0.1, 0, 0.91);
    height: 100%;
    width: 100%;
    padding: var(--gap-s) var(--gap-xs);
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    overflow: hidden;
    background-color: var(--second-color);
}

.footer__link-repeater-fifth .footer__link-hover-container {
    background-color: var(--fifth-color);
}

.footer__link-item:hover .footer__link-hover-container {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.footer__link-hover-content {
    width: 100%;
}

.footer__link-hover-content * {
    color: white;
}

/*  Icône du lien */
.footer__link-icon {
    aspect-ratio: 1;
    padding: 14px;
    border-radius: var(--circle-radius);
    background-color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__link-hover-container .footer__link-icon {
    background-color: var(--third-color);
}

.footer__link-icon svg,
.footer__link-icon img {
    width: 24px;
    object-fit: contain;
}

.footer__link-hover-container .footer__link-icon path {
    stroke: var(--second-color);
}

.footer__link-repeater-fifth .footer__link-hover-container .footer__link-icon path {
    stroke: var(--fifth-color);
}

/*  contenu du liens */
.footer__link-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer__link-content span {
    margin-bottom: 3px;
    line-height: var(--line-height-m);
    font-family: var(--font-italic);
    text-transform: uppercase;
    font-size: var(--font-h3);
}

.footer__link-title {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-extra-bold);
    font-size: var(--font-h3);
    line-height: var(--line-height-xs);
    text-transform: uppercase;
}

/* Fond cliquable (à animer au hover si nécessaire) */
.footer__link-title a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    height: 100%;
    width: 100%;
}

.footer__link-title a {
    font-family: var(--font-extra-bold);
}

/*  Flèche à droite du lien  */
.footer__link-base-content::after,
.footer__link-hover-content::after {
    content: url(/wp-content/themes/webline/assets/arrow-cta.svg);
}

.footer__link-base-container .footer__link-base-content::after {
    filter: invert(1) brightness(0);
}

@media (max-width:768px) {
    .footer__link-repeater {
        width: 100%;
    }
}
