/* =====================================================
   BOUTONS ÉCOSYSTÈME VIPLE - Animations
   ===================================================== */

/* Container en haut de page - Page d'accueil */
.ecosystem-button-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bouton Header - Page d'accueil */
.btn-ecosystem-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-ecosystem-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-ecosystem-header:hover::before {
    left: 100%;
}

.btn-ecosystem-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-ecosystem-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0;
    }
}

.btn-ecosystem-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Bouton Présentation - Page SitesAccess */
.btn-ecosystem-presentation {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(245, 87, 108, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

.btn-ecosystem-presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-ecosystem-presentation:hover::before {
    opacity: 1;
}

.btn-ecosystem-presentation:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
    color: white;
}

.btn-ecosystem-icon {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-ecosystem-text {
    position: relative;
    z-index: 2;
}

.btn-ecosystem-arrow {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-ecosystem-presentation:hover .btn-ecosystem-arrow {
    transform: translateX(5px);
}

/* Effet de brillance */
.btn-ecosystem-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ecosystem-button-container {
        top: 70px;
        right: 10px;
    }
    
    .btn-ecosystem-header {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-ecosystem-presentation {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .ecosystem-button-container {
        position: static;
        text-align: center;
        margin: 20px 0;
    }
    
    .btn-ecosystem-header {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-ecosystem-presentation {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
