/* ═══════════════════════════════════════════════════════════════
   SMCL Gift Animations CSS — Étoiles + Feux d'artifice continus
═══════════════════════════════════════════════════════════════ */

/* ── Confettis (burst à l'ouverture) ────────────────────────── */
#smcl-confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
    display: none;
}
.smcl-confetti {
    position: absolute;
    top: -12px;
    border-radius: 2px;
    animation: smclConfettiFall linear forwards;
}
.smcl-confetti.c1  { background: #ff0a54; }
.smcl-confetti.c2  { background: #ff477e; }
.smcl-confetti.c3  { background: #6C63FF; }
.smcl-confetti.c4  { background: #FFD700; }
.smcl-confetti.c5  { background: #FF6584; }
.smcl-confetti.c6  { background: #25D366; }
.smcl-confetti.c7  { background: #00c6ff; }
.smcl-confetti.c8  { background: #FF69B4; }
.smcl-confetti.c9  { background: #f9ca24; }
.smcl-confetti.c10 { background: #a29bfe; }
@keyframes smclConfettiFall {
    0%   { transform: translateY(0) rotate(0deg);       opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ── Étoiles scintillantes en continu ───────────────────────── */
#smcl-stars-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9996;
    overflow: hidden;
}
.smcl-star {
    position: absolute;
    color: #FFD700;
    font-size: 1em;
    animation: smclStarTwinkle ease-in-out infinite;
    transform-origin: center;
    line-height: 1;
    will-change: opacity, transform;
}
@keyframes smclStarTwinkle {
    0%,100% { opacity: 0;    transform: scale(0.4) rotate(0deg);   }
    30%     { opacity: 0.9;  transform: scale(1.1) rotate(20deg);  }
    60%     { opacity: 0.5;  transform: scale(0.8) rotate(-10deg); }
}

/* ── Feux d'artifice en continu ─────────────────────────────── */
#smcl-fireworks-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9995;
    overflow: hidden;
}
/* Fusée montante */
.smcl-rocket {
    position: absolute;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    animation: smclRocketUp linear forwards;
    will-change: transform, opacity;
}
@keyframes smclRocketUp {
    0%   { transform: translateY(0);      opacity: 1; }
    80%  { transform: translateY(-55vh);  opacity: 1; }
    100% { transform: translateY(-60vh);  opacity: 0; }
}
/* Particule d'explosion */
.smcl-spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: smclSparkFly ease-out forwards;
    will-change: transform, opacity;
}
@keyframes smclSparkFly {
    0%   { transform: translate(0, 0) scale(1);   opacity: 1; }
    100% { transform: var(--tx) scale(0.2);        opacity: 0; }
}

/* ── Emoji cadeau (remplace les PNG manquants) ───────────────── */
.smcl-gift-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    cursor: pointer;
    transition: transform .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smcl-gift-image:hover { transform: scale(1.1); }

.smcl-gift-emoji {
    font-size: 88px;
    line-height: 1;
    position: absolute;
    transition: opacity .4s ease, transform .4s ease;
    user-select: none;
}
.smcl-gift-emoji-closed {
    opacity: 1;
    transform: scale(1);
    animation: smclGiftBounce 2.2s ease-in-out infinite;
}
.smcl-gift-emoji-open {
    opacity: 0;
    transform: scale(0.5);
}
/* État ouvert */
.smcl-gift-image.opened .smcl-gift-emoji-closed {
    opacity: 0;
    transform: scale(1.4);
    animation: none;
}
.smcl-gift-image.opened .smcl-gift-emoji-open {
    opacity: 1;
    transform: scale(1);
    animation: smclPopIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes smclGiftBounce {
    0%,100% { transform: scale(1) translateY(0); }
    40%     { transform: scale(1.08) translateY(-6px); }
    60%     { transform: scale(0.97) translateY(0); }
}
@keyframes smclPopIn {
    0%   { opacity: 0; transform: scale(0.3) rotate(-15deg); }
    70%  { transform: scale(1.15) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Overlay ─────────────────────────────────────────────────── */
.smcl-gift-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity .5s ease, visibility .5s ease;
}
.smcl-gift-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.smcl-gift-overlay-content { text-align: center; color: #fff; }

.smcl-overlay-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.6em;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFD700, #FF6B6B, #8B7CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: smclTitleShimmer 3s ease-in-out infinite;
}
@keyframes smclTitleShimmer {
    0%,100% { filter: brightness(1); }
    50%     { filter: brightness(1.3); }
}
.smcl-overlay-subtitle {
    font-size: 1.1em;
    opacity: .8;
    margin-bottom: 28px;
}

/* ── Bouton ouvrir ───────────────────────────────────────────── */
.smcl-open-gift-button {
    background: linear-gradient(135deg, #8B7CF6, #FF6B6B);
    color: #fff;
    border: none;
    padding: 16px 44px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(139,124,246,.5);
    animation: smclBtnPulse 2s ease-in-out infinite;
    transition: transform .2s ease;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: .02em;
}
.smcl-open-gift-button:hover { transform: scale(1.05); }
@keyframes smclBtnPulse {
    0%,100% { box-shadow: 0 6px 28px rgba(139,124,246,.5); }
    50%     { box-shadow: 0 10px 40px rgba(139,124,246,.75); }
}

/* ── Message animé ───────────────────────────────────────────── */
.smcl-message {
    opacity: 0;
    transform: scale(.88) translateY(12px);
    transition: all .7s cubic-bezier(.34, 1.56, .64, 1);
}
.smcl-message.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── WhatsApp ────────────────────────────────────────────────── */
.smcl-whatsapp-button {
    opacity: 0;
    transform: translateY(16px);
    transition: all .5s ease .2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95em;
    box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.smcl-whatsapp-button.visible {
    opacity: 1;
    transform: translateY(0);
    animation: smclWaPulse 2.5s ease-in-out infinite;
}
@keyframes smclWaPulse {
    0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,.35); }
    50%     { box-shadow: 0 8px 28px rgba(37,211,102,.6);  }
}
.smcl-whatsapp-icon { width: 20px; height: 20px; }
