/* ============================================================
   BOUTON DE BASE — VERSION PLUS GRANDE
   ============================================================ */
.btn-animated {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* plus large */
    gap: 0.75rem;
    height: 60px; /* plus haut */
    font-weight: 500;
    font-size: 1rem; /* texte plus grand */
    line-height: 18px;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--color-light);
    text-decoration: none;
    overflow: hidden;
    transition: 0.3s ease;
    position: relative; /* nécessaire pour les repères */
    overflow: visible;  /* pour que les barres dépassent */
}

.btn-animated svg {
    width: 26px; /* icône plus grande */
    height: 26px;
    transition: 0.3s ease;
    stroke: var(--color-light);
}

.btn-animated:hover {
    padding-left: 45px;
    padding-right: 45px;
    transition: all 0.3s ease-in;
}

/* ============================================================
   VARIANTES DE COULEUR
   ============================================================ */
.btn-animated--primary {
    background-image: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: var(--color-light);
}

.btn-animated--primary:hover {
    background-color: #fff;
}

.btn-animated--primary svg {
    stroke: var(--color-light);
}

.btn-animated--secondary {
    background-image: linear-gradient(90deg, var(--color-dark), var(--color-secondary));
    color: var(--color-light);
}

.btn-animated--secondary:hover {
    background-color: var(--color-primary);
}

.btn-animated--secondary svg {
    stroke: var(--color-light);
}

.btn-animated--outline {
    background-image: linear-gradient(90deg, transparent, transparent);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-animated--outline:hover {
    background-image: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: var(--color-light);
}


.btn-animated--outline:hover svg {
    stroke: var(--color-light);
}

.btn-animated--negative {
    color: var(--color-primary);

}

.btn-animated--negative:hover {
        color: var(--color-primary);

}

.btn-animated--negative svg {
    stroke: var(--color-primary);
}

.btn-animated--negative:hover svg {
        color: var(--color-primary);

}

/* ============================================================
   EFFET REPÈRES / ENCADREMENT DES BOUTONS
   ============================================================ */



/* Barre verticale gauche */
.btn-animated::before {
    top: 0;
    left: 0;
    width: 2px;       /* épaisseur verticale */
    height: 100%;     /* hauteur du bouton */
}

/* Barre horizontale haute */
.btn-animated::after {
    top: 0;
    left: 0;
    width: 100%;      /* largeur du bouton */
    height: 2px;      /* épaisseur horizontale */
}

/* Coin inférieur droit */
.btn-animated span {
    position: relative;
    display: inline-block;
}

.btn-animated span::before,
.btn-animated span::after {
    content: "";
    position: absolute;
    border-radius: 2px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Barre verticale droite */
.btn-animated span::before {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 100%;    /* hauteur du bouton */
}

/* Barre horizontale basse */
.btn-animated span::after {
    bottom: 0;
    right: 0;
    width: 100%;     /* largeur du bouton */
    height: 2px;
}

/* Hover — changer la couleur des repères */
.btn-animated:hover::before,
.btn-animated:hover::after,
.btn-animated:hover span::before,
.btn-animated:hover span::after {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .btn-animated {
        width: 100%;
        justify-content: center;
        height: 55px;
        font-size: 0.9rem;
    }

    .btn-animated svg {
        width: 22px;
        height: 22px;
    }
}
