/**
 * H2JRewards - Front CSS
 * Styles pour le front-office
 */

/* Lien compte client */
.h2jrewards-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

.h2jrewards-account-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.h2jrewards-account-link .icon {
    font-size: 24px;
}

.h2jrewards-account-link .info {
    flex: 1;
}

.h2jrewards-account-link .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.h2jrewards-account-link .credit {
    font-size: 20px;
    font-weight: bold;
}

.h2jrewards-account-link .arrow {
    font-size: 18px;
}

/* Message flash */
.h2jrewards-flash {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.h2jrewards-flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.h2jrewards-flash.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.h2jrewards-flash.info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton copier code */
.h2jrewards-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.h2jrewards-copy-btn:hover {
    background: #5a6fd6;
}

.h2jrewards-copy-btn.copied {
    background: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .h2jrewards-account-link {
        flex-direction: column;
        text-align: center;
    }
    
    .h2jrewards-account-link .arrow {
        display: none;
    }
}

/* Lien Parrainage (Cercle Complice) */
.h2jrewards-referral-link {
    background: linear-gradient(135deg, #9f7aea 0%, #ed64a6 100%);
}

.h2jrewards-referral-link:hover {
    box-shadow: 0 5px 20px rgba(159, 122, 234, 0.4);
}

.h2jrewards-referral-link .credit {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
}
