/* ===== BOUTONS PROFESSIONNELS ===== */

/* Bouton Principal (Primary) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary: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;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Icône dans le bouton primary */
.btn-primary i {
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(2px);
}

/* Bouton Secondaire (Secondary) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: #22c55e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid #22c55e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-secondary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(34, 197, 94, 0.2);
}

.btn-secondary:hover:before {
    width: 100%;
}

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

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Icône dans le bouton secondary */
.btn-secondary i {
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: scale(1.1);
}

/* ===== VARIATIONS DE TAILLE ===== */

/* Boutons Large */
.btn-lg {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 14px;
}

.btn-lg i {
    font-size: 18px;
    margin-right: 10px;
}

/* Boutons Small */
.btn-sm {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-sm i {
    font-size: 14px;
    margin-right: 6px;
}

/* ===== ÉTATS SPÉCIAUX ===== */

/* Bouton Disabled */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Bouton avec loading */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: currentColor;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* ===== BOUTONS SPÉCIALISÉS ===== */

/* Bouton Call-to-Action avec effet pulse */
.btn-cta {
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
    }
    50% {
        box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.4);
    }
    100% {
        box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
    }
}

/* Bouton avec icône à droite */
.btn-icon-right i {
    margin-right: 0;
    margin-left: 8px;
    order: 2;
}

.btn-icon-right:hover i {
    transform: translateX(4px);
}

/* Bouton pleine largeur */
.btn-full-width {
    width: 100%;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .btn-sm {
        padding: 10px 20px;
        font-size: 13px;
    }
}
