/* essb.css */
.essb-sticky-btn-wrapper {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
    pointer-events: none; /* Permet aux clics de passer à travers le wrapper */
}

.essb-sticky-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    pointer-events: auto; /* Active les clics sur le bouton lui-même */
    transition: all 0.3s ease; /* Transition par défaut */
}

/* Effets Hover */

/* Fade - Changement d'opacité */
.essb-hover-fade .essb-sticky-btn:hover {
    opacity: 0.8;
}

/* Grow - Agrandissement */
.essb-hover-grow .essb-sticky-btn:hover {
    transform: scale(1.1);
}

/* Shrink - Rétrécissement */
.essb-hover-shrink .essb-sticky-btn:hover {
    transform: scale(0.95);
}

/* Pulse - Pulsation */
.essb-hover-pulse .essb-sticky-btn:hover {
    animation: essb-pulse 0.6s ease-in-out;
}

@keyframes essb-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Lift - Élévation */
.essb-hover-lift .essb-sticky-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sink - Enfoncement */
.essb-hover-sink .essb-sticky-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Classe ajoutée par JavaScript après le scroll */
.essb-visible {
    top: 0 !important;
    opacity: 1 !important;
}

/* === ANIMATIONS D'APPARITION === */

/* Slide Down (par défaut) */
.essb-animation-slide-down {
    animation: none; /* Pas d'animation, juste la transition CSS */
}

/* Fade In */
.essb-animation-fade-in {
    transition: opacity 0.4s ease, top 0.4s ease !important;
}

.essb-animation-fade-in:not(.essb-visible) {
    opacity: 0 !important;
}

/* Bounce */
.essb-animation-bounce.essb-visible {
    animation: essb-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes essb-bounce {
    0% {
        top: -80px;
        opacity: 0;
    }
    60% {
        top: 30px;
        opacity: 1;
    }
    80% {
        top: 15px;
    }
    100% {
        top: 20px;
        opacity: 1;
    }
}

/* Zoom In */
.essb-animation-zoom-in .essb-sticky-btn {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.essb-animation-zoom-in:not(.essb-visible) .essb-sticky-btn {
    transform: scale(0);
}

.essb-animation-zoom-in.essb-visible .essb-sticky-btn {
    transform: scale(1);
}

/* Slide from Right */
.essb-animation-slide-left {
    transition: transform 0.4s ease, opacity 0.4s ease, top 0.4s ease !important;
}

.essb-animation-slide-left:not(.essb-visible) {
    transform: translateX(100%);
}

.essb-animation-slide-left.essb-visible {
    transform: translateX(0);
}

/* Slide from Left */
.essb-animation-slide-right {
    transition: transform 0.4s ease, opacity 0.4s ease, top 0.4s ease !important;
}

.essb-animation-slide-right:not(.essb-visible) {
    transform: translateX(-100%);
}

.essb-animation-slide-right.essb-visible {
    transform: translateX(0);
}

/* === STYLES POUR ICÔNES === */
.essb-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.essb-icon-before,
.essb-icon-after {
    display: inline-flex;
    align-items: center;
}