/**
 * Cart Incentives Styles
 * Styles pour les messages d'incitation et la progression des paliers
 */

/* Section principale des incitations - Design doux */
.cart-incentives {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.cart-incentives::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e9ecef 0%, #6c757d 50%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Message d'incitation principal - Style doux */
.incentive-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
    color: #495057;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #6c757d;
}

.incentive-message .icon {
    font-size: 20px;
    color: #6c757d;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Barre de progression - Style minimaliste */
.progress-container {
    position: relative;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #6c757d;
    border-radius: 3px;
    transition: width 0.8s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: progress-shine 3s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Paliers disponibles - Style épuré */
.tiers-preview {
    margin-top: 15px;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
}

.tiers-preview h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.tiers-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tier-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tier-badge:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tier-badge.reached {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.tier-badge.reached::before {
    content: '✓ ';
    font-weight: bold;
}

.tier-badge.next {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    font-weight: 600;
}

@keyframes next-tier-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
}

/* Message de félicitations - Style doux */
.congratulations-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    color: #0c5460;
    text-align: center;
    position: relative;
}

.congratulations-message::before {
    content: '🎉';
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 20px;
}

.congratulations-message h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.congratulations-message p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

/* Options de cadeaux - Design minimaliste */
.gift-options {
    margin-top: 15px;
    background: #ffffff;
    border-radius: 6px;
    padding: 12px;
}

.gift-option {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-option:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.gift-option:last-child {
    margin-bottom: 0;
}

.gift-option input[type="radio"] {
    margin: 0;
    accent-color: #6c757d;
}

.gift-option .gift-icon {
    font-size: 18px;
    color: #6c757d;
}

.gift-option .gift-details {
    flex: 1;
}

.gift-option .gift-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: #495057;
    font-size: 13px;
}

.gift-option .gift-description {
    font-size: 11px;
    color: #6c757d;
}

.gift-option .gift-value {
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-incentives {
        padding: 15px;
        margin: 15px 0;
    }
    
    .incentive-message {
        font-size: 14px;
    }
    
    .tiers-list {
        gap: 6px;
    }
    
    .tier-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Animation d'entrée - Plus douce */
.cart-incentives {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations simplifiées */
@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Message d'upsell dans la section cadeaux */
.gift-upsell-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #856404;
}

.gift-upsell-message .upsell-icon {
    font-size: 16px;
    color: #ffc107;
}

/* Animation pour attirer l'attention */
.gift-upsell-message {
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { 
        background: #fff3cd;
        transform: scale(1);
    }
    50% { 
        background: #fff8e1;
        transform: scale(1.01);
    }
}

/* États spéciaux - Versions douces */
.incentive-urgent {
    border-left-color: #ffc107;
}

.incentive-urgent .incentive-message {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.incentive-close-to-goal {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.incentive-close-to-goal .progress-fill {
    background: #ffc107;
}