/* ===========================
   STYLES AFFILIATION & FEATURED
   =========================== */

/* Carte Featured (mise en avant partenaire) */
.tool-card.featured {
    border: 2px solid #10b981;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.tool-card.featured::before {
    content: "⭐ PARTENAIRE OFFICIEL";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wrapper actions + badge */
.tool-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Badge affiliation */
.affiliate-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.affiliate-badge i {
    font-size: 1rem;
    color: #78350f;
}

/* Badge affiliation cliquable */
.affiliate-badge-link:hover,
a.affiliate-badge:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Badge affiliation cliquable */
.affiliate-badge-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.affiliate-badge-link:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.affiliate-badge-link:active {
    transform: translateY(0);
}

/* Lien affiliation avec effet */
.btn-tool-primary.affiliate-link {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-tool-primary.affiliate-link:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Bouton Code Promo (prêt pour activation) */
.btn-tool-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-tool-promo:hover {
    background: linear-gradient(135deg, #db2777, #be185d);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.btn-tool-promo i {
    font-size: 1rem;
}

/* ===========================
   RESPONSIVE MOBILE
   =========================== */

@media (max-width: 768px) {
    .tool-card.featured::before {
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
        top: -10px;
        left: 15px;
    }

    .affiliate-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .btn-tool-promo {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .tool-card.featured::before {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
        top: -8px;
        left: 10px;
    }

    .affiliate-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}
