/* Styles pour créer un sentiment d'urgence sur la page des packs modernisée */

/* Bannière de compte à rebours améliorée */
.countdown-banner {
    background: #1E3A8A;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    z-index: 10;
    border-radius: 0;
    transform: translateY(-5px);
}

.countdown-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    color: #FFD700;
}

.timer-icon {
    color: #FFD700;
    font-size: 24px;
    margin-right: 15px;
    animation: pulse-icon 1.2s infinite;
}

.timer-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.countdown-digits {
    background: #1E3A8A;
    padding: 6px 12px;
    margin: 0 10px;
    border-radius: 8px;
    color: #FFD700;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(255, 53, 71, 0.4);
    position: relative;
    animation: glow 3s infinite alternate;
    letter-spacing: 1px;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.9);
    }
}

@keyframes pulse-badge {
    0% {
        transform: scale(1) rotate(-10deg);
        box-shadow: 0 3px 8px rgba(255, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.1) rotate(-10deg);
        box-shadow: 0 5px 15px rgba(255, 0, 0, 0.7);
    }
    100% {
        transform: scale(1) rotate(-10deg);
        box-shadow: 0 3px 8px rgba(255, 0, 0, 0.4);
    }
}

/* Badges de temps limité pour les packs */
.limited-offer-badge {
    position: absolute;
    top: 15px;
    left: -8px;
    background-color: #ff0000;
    color: white;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 15px 6px 10px;
    border-radius: 0;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    transform: rotate(0deg);
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 8% 50%);
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.limited-offer-badge::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 6px;
    height: 6px;
    background-color: #940000;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 14;
}

/* Ajout d'un contour plus défini pour améliorer la lisibilité */
.limited-offer-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 8% 50%);
    pointer-events: none;
}

.pack-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.pack-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ruban d'urgence sur les cartes */
.ribbon {
    position: absolute;
    right: -30px;
    top: 20px;
    background: #FFD700;
    color: #1E3A8A;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 30px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Style pour les boutons d'action */
.pack-action-button {
    background: #1E3A8A;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
}

.pack-action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.5);
    background: #FFD700;
    color: #1E3A8A;
}

/* Indicateur de stock restant */
.stock-indicator {
    background: rgba(0,0,0,0.1);
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.stock-progress {
    height: 100%;
    background: #ff0000;
    border-radius: 4px;
    width: 15%; /* Sera défini dynamiquement en JS */
    transition: width 1s ease;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.stock-text {
    font-size: 13px;
    color: #333;
    margin-top: 5px;
    font-weight: 700;
}

.stock-text strong {
    color: #ff0000;
}

/* Pour les écrans plus petits */
@media (max-width: 768px) {
    .timer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .timer-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .countdown-digits {
        margin: 10px 0;
        font-size: 18px;
    }
    
    .timer-text {
        font-size: 16px;
    }
}

/* Flash de notification en bas de page */
.flash-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1E3A8A;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    max-width: 300px;
    z-index: 1000;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.5s ease;
}

.flash-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.flash-icon {
    margin-right: 10px;
    color: #FFD700;
}

.flash-text {
    font-size: 14px;
}

.flash-close {
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* Section d'urgence finale */
.urgent-final-cta {
    background: linear-gradient(135deg, #ff3547, #ff6d00);
    padding: 40px 0;
    margin: 40px 0 0 0;
    position: relative;
    text-align: center;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
}

.urgent-final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.urgent-final-cta h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.urgent-final-cta h2 i {
    margin: 0 10px;
    animation: pulse-warning 1.5s infinite;
}

@keyframes pulse-warning {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.urgent-note {
    color: white;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.final-countdown {
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.countdown-label {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.final-timer {
    font-size: 36px;
    font-weight: 700;
    color: #ffcc00;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 204, 0, 0.8), 0 0 30px rgba(255, 204, 0, 0.6);
    }
}

.urgent-action {
    display: inline-block;
    background: white;
    color: #ff3547;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.urgent-action:hover {
    background: #ffcc00;
    color: #1e3c72;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Styles pour les animations d'urgence */
.critical-time {
    animation: flash-critical 1s infinite;
    color: #ffcc00 !important;
}

.very-critical-time {
    animation: flash-very-critical 0.7s infinite;
    color: #ff3547 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

@keyframes flash-critical {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes flash-very-critical {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.urgent-message {
    display: block;
    text-align: center;
    color: #ffcc00;
    font-weight: 600;
    margin-top: 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Amélioration des boutons d'action */
.pack-action-button {
    padding: 15px 30px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
}

.urgent-pulse {
    animation: urgent-button-pulse 1s infinite;
}

@keyframes urgent-button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 53, 71, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 53, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 53, 71, 0);
    }
}

/* Amélioration pour les écrans mobiles */
@media (max-width: 768px) {
    .urgent-final-cta h2 {
        font-size: 24px;
    }
    
    .urgent-note {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .final-timer {
        font-size: 28px;
    }
    
    .urgent-action {
        font-size: 16px;
        padding: 12px 25px;
    }
}
