/**
 * Boutons CTA Warein
 *
 * Système unifié : .warein-btn
 * Variantes : --white (fond blanc, texte noir) / --black (fond noir, texte blanc)
 * Décoration : double W monogramme cuivre via ::after (cta-icon-duo.svg)
 */

/* ==========================================================================
   Base
   ========================================================================== */

.warein-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 54px 14px 32px;
    border-radius: 100px;
    overflow: clip;
    position: relative;
    font-family: var(--wp--preset--font-family--body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

/* Texte au-dessus du ::after */
.warein-btn__text {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Variantes de couleur — PAS de changement de fond au hover
   ========================================================================== */

.warein-btn--white {
    background-color: var(--wp--preset--color--white, #fff);
    color: var(--wp--preset--color--black, #000);
}

.warein-btn--black {
    background-color: var(--wp--preset--color--black, #000);
    color: var(--wp--preset--color--white, #fff);
}

.warein-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   Double W monogramme — ::after
   ========================================================================== */

.warein-btn::after {
    content: '';
    position: absolute;
    right: -24px;
    top: -19px;
    width: 130px;
    height: 153px;
    background: url('../images/cta-icon-duo.svg') no-repeat center / contain;
    pointer-events: none;
    transition: translate 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.warein-btn:hover::after {
    translate: 32px -56px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .warein-btn {
        padding: 11px 44px 11px 24px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    .warein-btn::after {
        right: -20px;
        top: -5px;
        width: 100px;
        height: 118px;
    }
}
