/* -------------
    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,
input[type="file"]::file-selector-button,
.btn,
.like_btn a {
    cursor: pointer;
    display: inline-flex;
	justify-content: center;
	align-items: center;
    background-color: var(--color-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 700;
	text-align: center;
    text-decoration: none;
	padding: 8px 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .24);
    transition: background-color .4s, color .4s, border-color .4s;
}

    /* Hover */
    .woocommerce button[type="submit"]:hover,
    .gform_button_select_files:hover,
    .gform_button:hover,
    input[type="file"]::file-selector-button:hover,
    .btn:hover,
    .like_btn a:hover {
        background-color: #3C3872;
        color: var(--white);
    }

/* 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-color: var(--color-secondary);
}

    .btn--secondary:hover,
    .like-btn--secondary a:hover{
        background-color: #FF7F2E;
    }

/* Bouton tertiaire */
.btn--tertiary,
.like-btn--tertiary a {
    background-color: var(--gray-400);
    color: var(--gray-800);
    box-shadow: none;
}

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



/* ---------------------------------
  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: 22px;
    width: 30px;
}

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

.btn-mobile::before,
.btn-mobile::after,
.btn-mobile span {
    background-color: var(--color-primary);
    height: 4px;
    width: 100%;
}
.home .btn-mobile::before,
.home .btn-mobile::after,
.home .btn-mobile span {
    background-color: var(--white);
}

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

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

/* Bouton Lien */
.btn-link {
    position: relative;
    color: var(--color-secondary);
    font-size: 1.4rem;
    font-weight: 300;
    text-decoration: none;
}

    .btn-link::after {
        content: "";
        position: absolute;
        top: calc(100% + 3px);
        left: 0;
        background-color: #707070;
        width: 70%;
        height: 1px;
        transition: width .2s;
    }

    /* Hover */
    .btn-link: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);
    }
*/

.menu-button a {
    background-color: var(--color-secondary);
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .24);
    transition: all .2s;
}
.menu-button a:hover {
    background-color: #FF7F2E;
    color: var(--white) !important;
}
@media (max-width: 1199px) {
    .menu-button {
        margin-left: auto;
        list-style: none;
    }
    .widgets-mobile-bottom .menu-button a {
        color: var(--white);
        font-weight: bold;
    }
}
