/* -------------
    SOMMAIRE
------------- */

/* @AUTHOR : Nicolas BOUDOT */

/*
    00 - GÉNÉRAL
    01 - BOUTONS
    02 - BOUTONS ICONS
	03 - BOUTONS SPÉCIFIQUES
            Navigation secondaire
            Retour en haut de page
    04 - LIENS
*/



/* -----------------
  00 - GÉNÉRAL
----------------- */

/*
  Infos :
    .like_btn est utilisée sur un élement parent pour ciblée un <a> enfant.
    On utilise un préfixe like_ pour mieux identifier son utilité.
*/

/* Bouton */
.woocommerce button[type="submit"],
.gform_button_select_files,
.gform_button,
.gform-button,
input[type="file"]::-webkit-file-upload-button,
.btn,
.like_btn a,
.btn-consent {
    cursor: pointer;
    display: inline-flex;
	justify-content: center;
	align-items: center;
    background-color: var(--color-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .24);
    font-size: 1.6rem;
    font-weight: 700;
	text-align: center;
    text-decoration: none;
	padding: 8px 24px;
    transition: background-color .4s, color .4s, border-color .4s;
}

    /* Hover */
    .woocommerce button[type="submit"]:hover,
    .gform_button_select_files:hover,
    .gform_button:hover,
    .gform-button:hover,
    input[type="file"]::file-selector-button:hover,
    .btn:hover,
    .like_btn a:hover,
    .btn-consent:hover {
        background-color: var(--color-quaternary);
        box-shadow: none;
    }

/* Bouton icon */
.btn-icon,
.like_btn-icon {
    position: relative;
    background-color: var(--color-primary);
    color: var(--white);
    font-family: var(--font-primary);
}

    .btn-icon:hover,
    .like_btn-icon:hover {
        background-color: var(--red-dark);
        color: var(--white);
    }

    .btn-icon::after,
    .like_btn-icon::after {
        content: "";
        position: absolute;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--red-dark);
        color: var(--white);
        font-family: 'icomoon';
        font-size: 2.5rem;
        font-weight: 400;
        text-align: center;
        height: 100%;
        aspect-ratio: 1/1;
        transition: background-color .4s;
    }

        .btn-icon:hover::after,
        .like_btn-icon:hover::after {
            background: var(--red);
        }



/* ---------------
  01 - BOUTONS
--------------- */

/*
  Infos :
    Selon la méthodologie BEM, on vient compléter le style d'une classe avec un Modifier,
    on nomme donc nos classes .btn--secondary. Il n'y a pas de btn--primary car c'est le style par défaut.
*/

/* Bouton secondaire */
.btn--secondary,
.like-btn--secondary a {
    background: linear-gradient(90deg, rgba(244, 242, 242, 1) 0%, rgba(228, 227, 227, 1) 50%, rgba(212, 211, 212, 1) 100%);
    color: var(--gray-700);
}

    .btn--secondary:hover,
    .like-btn--secondary a:hover{
        background: linear-gradient(90deg, rgba(212, 211, 212, 1) 0%, rgba(244, 242, 242, 1) 100%);
        box-shadow: none;
    }

/* Bouton tertiaire */
.btn--tertiary,
.like-btn--tertiary a {
    background-color: var(--white);
    border: 1px solid var(--gray-900);
    color: var(--gray-700);
    text-transform: uppercase;
    box-shadow: none;
    font-size: 1.8rem;
}

    .btn--tertiary:hover,
    .like-btn--tertiary a:hover{
        background-color: var(--black);
        color: var(--white);
    }

/* Bouton quaternary */
.btn--quaternary,
.like-btn--quaternary a {
    background-color: var(--color-secondary);
    color: var(--gray-700);
    box-shadow: none;
}

    .btn--quaternary:hover,
    .like-btn--quaternary a:hover{
        background-color: var(--red-dark);
        color: var(--color-secondary);
    }

/* Bouton quinary */
.btn--quinary,
.like-btn--quinary a {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

    .btn--quinary:hover,
    .like-btn--quinary a:hover{
        border-color: var(--gray-700);
        background-color: transparent;
        color: var(--gray-700);
    }



/* ---------------------------------
  02 - BOUTONS ICONS
--------------------------------- */

/* Exemple :

    // Bouton Icon - Plus
    .btn-icon--plus::after {
        content: "\e92c";
    }

    // Bouton Icon - Caddie
    .btn-icon--cart::after {
        content: "\e90b";
    }
*/



/* -----------------------------
    03 - BOUTONS SPÉCIFIQUES
----------------------------- */

/*
  Infos :
    On stylise ici les boutons unique
*/

/* Bouton Mobile */
.btn-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: auto;
    width: 24px;
}

    @media (min-width: 992px) {
        .btn-mobile {
            display: none;
        }
    }

.btn-mobile::before,
.btn-mobile::after,
.btn-mobile span {
    background-color: var(--gray-900);
    height: 2px;
    width: 100%;
}

.btn-mobile span {
    display: block;
    margin: 6px 0;
}

.btn-mobile::before,
.btn-mobile::after {
    content: "";
}

.btn-mobile.active::before {
    transform: rotate(45deg) translate(4px, 4px);
    transform-style: preserve-3d;
    transition: transform .3s ease-in;

}
.btn-mobile.active::after {
    transform: rotate(-45deg) translate(7px, -7px);
    transform-style: preserve-3d;
    transition: transform .3s ease-in;

}
.btn-mobile.active span {
    opacity: 0;
    transition: .3s ease-in;
}

/* Bouton Lien */
.btn-link {
    position: relative;
    color: var(--gray-700);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

    .btn-link::before {
        content: "\e921";
        font-family: icomoon;
        font-size: 19px;
        line-height: 1;
        color: var(--color-primary);
        margin-right: 6px;
        transition: all .2s;
    }

    /* Hover */
    .btn-link:hover::before {
        margin-right: 12px;
    }

.btn-link--underline {
    position: relative;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gray-700);
    padding-bottom: 5px;
}
.btn-link--underline::after {
    content: '';
    width: 28%;
    height: 1px;
    background-color: #D1D1D1;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width .3s ease-in-out;
}
.btn-link--underline:hover::after {
    width: 100%;
}


/* Retour en haut de page */
.btn-scrollTop {
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-400);
    border: 3px solid var(--gray-400);
    border-radius: 50%;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    padding: 15px;
    transform: rotate(-90deg);
    z-index: 1;
}

    @media (max-width: 991px) {
        .btn-scrollTop {
            right: 20px;
            bottom: 70px;
        }
    }

    /* Before */
    .btn-scrollTop::before {
        content: "\e90d";
        font-family: 'icomoon';
        font-size: 2.5rem;
        transition: color .4s, transform .4s;
    }

    /* Hover */
    .btn-scrollTop:hover::before {
        content: "\e90d";
        color: var(--color-primary);
        transform: translateX(6px);
    }



/* -----------------------------
    04 - LIENS
----------------------------- */

/* Exemple :

    // Lien sur fond sombre
    .link-white {
        color: var(--white);
    }

    // Lien à la couleur différente du <a> par défaut
    .link-secondary {
        color: var(--color-secondary);
    }
*/
