/* BUTTON 1 - STYLE */


.ancrages-button-1 {
    height: 42px;
    width: fit-content!important;
    display: inline-flex;
}

.ancrages-button-1 a{
    background: #000;
    color: #fff!important;
    text-decoration: none!important;
    font-size: 20px;
    line-height: 24px;
    padding: 9px 20px;
    border-radius: 42px;
}

.ancrages-button-1::after {
    content: '';
    display: block;
    height: 42px;
    width: 42px;
    background-color: #000;
    background-image: url('/wp-content/themes/astra-child/assets/button/button-1-arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 42px;
    margin-left: -3px;
    transition: transform 0.3s ease;
}

.ancrages-button-1:hover::after {
    transform: rotate(-45deg);
}

/* RESPONSIVE */

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

    .ancrages-button-1 {
        height: 38px;
    }
    
    .ancrages-button-1 a {
        font-size: 15px;
        line-height: 22px;
        padding: 8px 20px;
    }

    .ancrages-button-1::after {
        height: 38px;
        width: 38px;
        border-radius: 38px;
    }

}

/* FOOTER BUTTON */

footer .ancrages-button-1 a{
    background: #fff;
    color: #000!important;
}

footer .ancrages-button-1::after {
    background-color: #fff;
    background-image: url('/wp-content/themes/astra-child/assets/button/button-1-arrow.svg');
    background-blend-mode: difference;
}


/* BUTTON 2 - STYLE */

.ancrages-button-2 {
    width: fit-content;
    display: inline-flex;
    align-items: center;
}

.ancrages-button-2 a {
    color: #000!important;
    font-size: 24px;
    line-height: 24px;
    position: relative;
    text-decoration: none !important;
}

.ancrages-button-2 a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

.ancrages-button-2::after {
    content: '';
    display: block;
    height: 24px;
    width: 24px;
    background-image: url('/wp-content/themes/astra-child/assets/button/button-2-arrow.svg');
    background-repeat: no-repeat;
    background-position: center bottom 4px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.ancrages-button-2:hover a::before {
    transform: scaleX(1);
}

.ancrages-button-2:hover::after {
    transform: translate(3px, -3px);
}

/* RESPONSIVE */

@media screen and (max-width: 980px){
    .ancrages-button-2 a {
        font-size: 16px;
        line-height: 16px;
    }

    .ancrages-button-2::after {
        height: 16px;
        width: 16px;
        background-position: center bottom 1px;
    }
}

/* BUTTON 3 - STYLE */


.ancrages-button-3 {
    width: fit-content;
    display: inline-flex;
    align-items: center;
}

.ancrages-button-3 a {
    color: #000!important;
    font-size: 24px;
    line-height: 24px;
    position: relative; 
    text-decoration: none !important; 
}

.ancrages-button-3 a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

.ancrages-button-3::after {
    content: '';
    display: block;
    height: 24px;
    width: 24px;
    background-image: url('/wp-content/themes/astra-child/assets/button/button-3-arrow.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    margin-left: 10px;
    transition: transform 0.3s ease; 
}

.ancrages-button-3:hover a::before {
    transform: scaleX(1);
}

.ancrages-button-3:hover::after {
    transform: translateX(5px);
}


/* ANCRAGES SIMPLE BUTTON */


.ancrages-simple-button {
    width: 32px!important;
    height: 32px!important;
    background-color: #fff;
    border-radius: 16px;
    background-image: url('/wp-content/themes/astra-child/assets/button/button-3-arrow.svg');
    filter: invert(1);
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #000;
    
}

.ancrages-simple-button a {
    width: 100%;
    height: 100%;
    text-decoration: none!important;
}

.ancrages-simple-button:hover {
    transition: filter 0.3s ease;
    filter: invert(0);
}


/* ANCRAGES BACK BUTTON */

.ancrages-back-button .ancrages-simple-button {
    transform: rotate(180deg);
}

.ancrages-back-button {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ancrages-back-button p {
    font-size: 18px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.ancrages-back-button a {
    width: 100%;
    height: 100%;
    display: flex;
    text-decoration: none!important;
}