/* Bouton PDF Principal */
.voxf-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    
    padding: 12px 24px;
    margin: 20px 0;
    
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff !important;
    
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    
    border: none;
    border-radius: 8px;
    
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    position: relative;
    overflow: hidden;
}

.voxf-pdf-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Hover Effect */
.voxf-pdf-button:hover,
.voxf-pdf-button.hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Active State */
.voxf-pdf-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

/* Loading State */
.voxf-pdf-button.loading {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: wait;
    pointer-events: none;
}

.voxf-pdf-button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mfb-spinner 0.6s linear infinite;
}

@keyframes mfb-spinner {
    to { transform: rotate(360deg); }
}

/* Effet Ripple au clic */
.voxf-pdf-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.voxf-pdf-button:active::before {
    width: 300px;
    height: 300px;
}

/* Variantes de couleur */
.voxf-pdf-button.blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.voxf-pdf-button.blue:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.voxf-pdf-button.green {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.voxf-pdf-button.green:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .voxf-pdf-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Position alternatives */
.pdf-button-container {
    text-align: center;
    margin: 30px 0;
}

.pdf-button-container .voxf-pdf-button {
    margin: 0 auto;
}

/* Style pour la version sticky (optionnel) */
.voxf-pdf-button.sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.voxf-pdf-button.sticky:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Icône PDF personnalisée (si pas d'image) */
.voxf-pdf-button .pdf-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Badge "Nouveau" (optionnel) */
.voxf-pdf-button .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f39c12;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Animation d'apparition */
@keyframes mfb-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voxf-pdf-button {
    animation: mfb-fade-in 0.5s ease-out;
}

/* Style pour le mode dark (si votre thème le supporte) */
@media (prefers-color-scheme: dark) {
    .voxf-pdf-button {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    }
}

/* Accessibilité */
.voxf-pdf-button:focus {
    outline: 3px solid rgba(231, 76, 60, 0.5);
    outline-offset: 2px;
}

/* Pour les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .voxf-pdf-button,
    .voxf-pdf-button::before,
    .voxf-pdf-button .spinner {
        animation: none;
        transition: none;
    }
}
