/* Conteneur avec hauteur réglable */
#discount-snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* Flocons généraux */
.discount-snowflake {
    position: absolute;
    top: -50px;
    pointer-events: auto;
    user-select: none;
    will-change: transform, opacity;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mode texte */
.discount-snowflake span {
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    padding: 3px;
    display: block;
}

/* Mode image */
.discount-snowflake img {
    display: block;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

/* Clignotement (texte seulement) */
@keyframes gentleBlink {
    0%, 100% { opacity: 0.9; filter: brightness(1); }
    50% { opacity: 0.7; filter: brightness(1.3); }
}

.discount-snowflake.blinking {
    animation: gentleBlink 1.5s infinite ease-in-out;
}

/* Formes (texte seulement) */
.discount-snowflake.shape-circle {
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255,255,255,0.1);
    border: 2px solid currentColor;
}

.discount-snowflake.shape-square {
    border-radius: 5px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255,255,255,0.1);
    border: 2px solid currentColor;
}

.discount-snowflake.shape-diamond {
    transform: rotate(45deg);
    min-width: 40px;
    min-height: 40px;
    background: rgba(255,255,255,0.1);
    border: 2px solid currentColor;
}
.discount-snowflake.shape-diamond span {
    transform: rotate(-45deg);
}

/* Interactivité */
.discount-snowflake[href] {
    cursor: pointer;
    text-decoration: none;
}

.discount-snowflake[href]:hover {
    transform: scale(1.15) !important;
    z-index: 10000 !important;
    opacity: 1 !important;
}

.discount-snowflake[href]:hover img {
    transform: scale(1.1);
}

/* Mobile */
@media (max-width: 768px) {
    .discount-snowflake {
        font-size: 14px !important;
    }
    
    .discount-snowflake img {
        max-width: 30px !important;
        max-height: 30px !important;
    }
    
    #discount-snowflakes-container {
        /* Éviter la barre de navigation mobile */
        top: 60px;
        height: calc(100vh - 120px) !important;
    }
}