/**
 * Quick Coupon - Styles CSS
 * Design inspiré de sites modernes comme novoo.com
 */

/* Container principal */
.quick-coupon-container {
    margin: 10px 0px 25px 0px;
  
}
/* Badge du coupon */
.quick-coupon-badge {
    background: linear-gradient(135deg, #e078df 0%, #90278e 100%);
    border-radius: 5px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(190, 102, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-coupon-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

/* Variante pour coupon fidélité */
.quick-coupon-badge.loyalty,#coupon-effect.loyalty {
    background: linear-gradient(135deg, #fefefe 0%, #facfff 100%);
    box-shadow: 0 5px 10px rgba(245, 87, 245, 0.3);
}

/* Variante pour coupon découverte */
.quick-coupon-badge.discovery,#coupon-effect.discovery {
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    */
    background: linear-gradient(135deg, #f9f9f9 0%, #f0efef 100%);
    box-shadow: 0 5px 10px rgba(100, 100, 100, 0.3);
}

.quick-coupon-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px rgba(203, 102, 234, 0.4);
}

.quick-coupon-badge.loyalty:hover {
    box-shadow: 0 15px 20px rgba(203, 102, 234, 0.4);
}

.quick-coupon-badge.discovery:hover {
    box-shadow: 0 15px 20px rgba(203, 102, 234, 0.4);
}

/* Contenu du coupon */
.quick-coupon-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Icône du coupon */
.coupon-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    /* background: rgba(255, 255, 255, 0.2);
    */border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    

}
.coupon-icon-rotate {
    transform: rotate(60deg);
}

.coupon-icon svg {
    color: #ffffff;
   animation: pointRight 1.3s ease-in-out infinite;
}
@keyframes pointRight {
    0%, 100% {
        transform: scaleY(120%) scaleX(120%);
    }
    50% {
        transform: scaleY(100%) scaleX(100%);
    }
}
.applied .coupon-icon svg {
  animation: none;
}
/* Détails du coupon */
.coupon-details {
    flex: 1;
    color: #000000;
}

.coupon-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    
}

.coupon-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.coupon-subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* Bouton d'application */
.quick-coupon-btn {
    width: 100%;
    padding: 12px 16px;
    background: #90278e;
    border: none;
    
    
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.quick-coupon-badge.discovery .quick-coupon-btn, .quick-coupon-badge.loyalty .quick-coupon-btn {
    color: #ffffff;
}
.ajout-coupon {
  letter-spacing: -0.2px;
  font-size: 14px;
}
.quick-coupon-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #000000;
}
/*
.quick-coupon-btn:active {
    transform: scale(0.98);
}

.quick-coupon-btn .btn-text {
    flex: 1;
    text-align: left;
}

.quick-coupon-btn .btn-icon {
    transition: transform 0.3s ease;
}
*/
.quick-coupon-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* État de chargement */
.quick-coupon-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* État désactivé (coupon déjà appliqué) */
.quick-coupon-btn.disabled,
.quick-coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.quick-coupon-badge.applied {
    opacity: 0.5;
}



.quick-coupon-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Message de confirmation/erreur */
.quick-coupon-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

.quick-coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quick-coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quick-coupon-message .message-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.quick-coupon-message .message-content::before {
    content: '✓';
    font-weight: bold;
    font-size: 18px;
}

.quick-coupon-message.error .message-content::before {
    content: '✕';
}


/* Animation d'apparition */
.quick-coupon-container {
    animation: fadeInUp 0.5s ease;
}

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

/* État appliqué */
.quick-coupon-badge.applied {
    background: linear-gradient(135deg, #f5b1f3 0%, #ed69ea 100%);
}

.quick-coupon-badge.applied .quick-coupon-btn {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    pointer-events: none;
}

.quick-coupon-badge.applied .quick-coupon-btn .btn-text::before {
    content: '✓ ';
    font-weight: bold;
}

small.ptit {
  font-size: 50%;
  font-weight: bold;

}

@media screen and (min-width: 1200px){
.quick-coupon-container {
    max-width: 330px;
}
}

/* ── Badge coupon sur les miniatures (catégories + slides) ── */
.thumbnail-container {
    position: relative;
}

.qc-miniature-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    border-radius: 6px;
    padding: 5px 9px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    line-height: 1.2;
    pointer-events: none;
}

.qc-miniature-badge.qc-loyalty {
    background: linear-gradient(135deg, #fefefe 0%, #facfff 100%);
}

.qc-miniature-badge.qc-discovery {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0efef 100%);
}

.qc-badge-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #90278e;
    letter-spacing: 0.8px;
}

.qc-badge-amount {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    white-space: nowrap;
}