/* =============================================================================
   BUTTONS - MHB Theme
   ============================================================================= */

/* =============================================================================
   BASE BUTTON
   ============================================================================= */

.mhb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--mhb-font-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
    padding: 12px 24px;
    border-radius: var(--mhb-radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--mhb-transition-base),
        color var(--mhb-transition-base),
        transform var(--mhb-transition-base),
        box-shadow var(--mhb-transition-base);
}

.mhb-btn,
.mhb-btn:visited,
.mhb-btn:hover,
.mhb-btn:focus {
    text-decoration: none;
}

.mhb-btn .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 1.05em;
    line-height: 1;
    flex: 0 0 auto;
    color: currentColor;
    text-decoration: none;
}

.mhb-btn:hover {
    transform: translateY(-2px);
}

.mhb-btn:active {
    transform: translateY(0);
}

/* =============================================================================
   BUTTON VARIANTS
   ============================================================================= */

/* Primary (orange) */
.mhb-btn--primary {
    background: var(--mhb-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(233, 83, 35, 0.3);
}

.mhb-btn--primary:hover {
    background: var(--mhb-accent-hover);
    box-shadow: 0 8px 24px rgba(233, 83, 35, 0.4);
    color: #fff;
}

/* Secondary (blue) */
.mhb-btn--secondary {
    background: var(--mhb-secondary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 122, 193, 0.3);
}

.mhb-btn--secondary:hover {
    background: #0088d4;
    box-shadow: 0 8px 24px rgba(0, 122, 193, 0.4);
    color: #fff;
}

/* Outline */
.mhb-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.mhb-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Outline dark */
.mhb-btn--outline-dark {
    background: transparent;
    color: var(--mhb-text-dark);
    border: 2px solid var(--mhb-text-dark);
}

.mhb-btn--outline-dark:hover {
    background: var(--mhb-text-dark);
    color: #fff;
}

/* Ghost */
.mhb-btn--ghost {
    background: transparent;
    color: #fff;
    padding: 8px 0;
}

.mhb-content__inner .mhb-btn--primary,
.mhb-content__inner .mhb-btn--primary:visited,
.mhb-content__inner .mhb-btn--primary:hover,
.mhb-content__inner .mhb-btn--primary:focus,
.mhb-content__inner .mhb-btn--secondary,
.mhb-content__inner .mhb-btn--secondary:visited,
.mhb-content__inner .mhb-btn--secondary:hover,
.mhb-content__inner .mhb-btn--secondary:focus,
.mhb-content__inner .mhb-btn--outline,
.mhb-content__inner .mhb-btn--outline:visited,
.mhb-content__inner .mhb-btn--outline:hover,
.mhb-content__inner .mhb-btn--outline:focus,
.mhb-content__inner .mhb-btn--ghost,
.mhb-content__inner .mhb-btn--ghost:visited,
.mhb-content__inner .mhb-btn--ghost:hover,
.mhb-content__inner .mhb-btn--ghost:focus {
    color: #fff;
}

.mhb-content__inner .mhb-btn--outline-dark,
.mhb-content__inner .mhb-btn--outline-dark:visited,
.mhb-content__inner .mhb-btn--outline-dark:hover,
.mhb-content__inner .mhb-btn--outline-dark:focus {
    color: var(--mhb-text-dark);
}

.mhb-btn--ghost:hover {
    color: var(--mhb-accent);
    transform: none;
}

/* =============================================================================
   BUTTON SIZES
   ============================================================================= */

.mhb-btn--sm {
    font-size: 14px;
    padding: 8px 16px;
}

.mhb-btn--lg {
    font-size: 18px;
    padding: 16px 32px;
}

/* =============================================================================
   BUTTON WITH ARROW (slider-btn style)
   ============================================================================= */

.mhb-btn--arrow {
    display: inline-flex;
    align-items: center;
    background: var(--mhb-accent);
    color: #fff;
    font-family: var(--mhb-font-display);
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 55px 4px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
    position: relative;
    text-transform: uppercase;
}

.mhb-btn--arrow::after {
    content: '';
    display: inline-block;
    background: url('../../images/arrow-right.svg') no-repeat center/contain;
    width: 45px;
    height: 28px;
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    transition: transform 0.3s cubic-bezier(.77, 0, .18, 1);
}

.mhb-btn--arrow:hover {
    background: #e55a2b;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.mhb-btn--arrow:hover::after {
    transform: translateY(-50%) translateX(10px);
}

/* =============================================================================
   BOUTON VOIR TOUT (style carrousel - bleu sans flèche)
   ============================================================================= */

.mhb-btn--voir-tout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--mhb-secondary);
    color: #fff;
    font-family: var(--mhb-font-display);
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 30px 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 122, 193, 0.3);
}

.mhb-btn--voir-tout:hover {
    background: #0088d4;
    box-shadow: 0 8px 24px rgba(0, 122, 193, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.mhb-btn--voir-tout svg,
.mhb-btn--voir-tout img {
    width: 20px;
    height: 20px;
}

/* =============================================================================
   CTA WRAPPER (Bouton voir tout)
   ============================================================================= */

.mhb-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    z-index: 2;
    position: relative;
}

.mhb-cta-wrapper--absolute {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    margin-top: 0;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .mhb-btn {
        font-size: 14px;
        padding: 8px 20px 6px;
    }

    .mhb-cta-wrapper--classement {
        margin-bottom: 28px;
    }

    .mhb-btn--lg {
        font-size: 16px;
        padding: 12px 24px 10px;
    }

    .mhb-btn--arrow {
        padding-right: 40px;
    }

    .mhb-btn--arrow::after {
        width: 35px;
        height: 22px;
        right: -12px;
    }
}
