/* ===================================
   BUTTONS
   =================================== */

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover:not(:disabled)::before {
    left: 100%;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
    color: white;
    box-shadow: 0 4px 20px rgba(15, 157, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 157, 102, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-dark);
}

.btn-ghost:hover {
    background: var(--gray-dark);
    border-color: var(--green-primary);
    color: var(--white) !important;
}

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

.btn-outline:hover {
    border-color: var(--green-primary);
    background: rgba(15, 157, 102, 0.1);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-light);
    border: 1px solid rgba(233, 233, 233, 0.2);
}

.btn-outline-secondary:hover {
    background: rgba(233, 233, 233, 0.1);
    border-color: var(--green-primary);
    color: var(--green-accent);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffb700);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.4);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(233, 233, 233, 0.2);
    color: var(--gray-light);
}

.btn-secondary:hover {
    background: rgba(233, 233, 233, 0.1);
    border-color: var(--green-primary);
    color: var(--green-accent);
}

/* Toggle Button (pour modules) */
.toggle-btn {
    background: transparent;
    border: 1px solid rgba(233, 233, 233, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.toggle-btn:hover {
    background: rgba(15, 157, 102, 0.1);
    border-color: var(--green-primary);
    color: var(--green-accent);
    transform: scale(1.1);
}

.toggle-btn.btn-enable {
    color: var(--gray-light);
}

.toggle-btn.btn-disable {
    color: var(--green-accent);
}

/* Popup Button */
.btn-popUp {
    background: transparent;
    border: 1px solid rgba(233, 233, 233, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.btn-popUp:hover {
    background: rgba(15, 157, 102, 0.1);
    border-color: var(--green-primary);
    color: var(--green-accent);
    transform: scale(1.1);
}

/* Filter Button */
.filter-btn {
    height: 48px !important;
    padding: 0.75rem 1.25rem;
    background: rgba(249, 249, 249, 0.05);
    border: 1px solid rgba(233, 233, 233, 0.2);
    border-radius: 8px;
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: rgba(15, 157, 102, 0.1);
    border-color: var(--green-primary);
    color: var(--green-accent);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(15, 157, 102, 0.2), rgba(16, 185, 129, 0.1));
    border-color: var(--green-primary);
    color: var(--green-accent);
    box-shadow: 0 4px 15px rgba(15, 157, 102, 0.3);
}

/* Social Button */
.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(249, 249, 249, 0.05);
    border: 1px solid rgba(233, 233, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-light);
    font-weight: 600;
}

.social-btn:hover {
    border-color: var(--green-primary);
    background: rgba(15, 157, 102, 0.1);
    transform: translateY(-2px);
}

/* Close Button */
.btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close-white {
    filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}