/* ------------------------------------------------------------
   MINI VIGNETTES ACTIONS — ULTRA PREMIUM++ (Glass + 3D + Animations)
------------------------------------------------------------ */

/* GRID */
.premium-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeInGrid 0.8s ease forwards;
}

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

/* CARTE ULTRA PREMIUM */
.mini-action-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.6),
        0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.45s cubic-bezier(.22, 1.4, .36, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInCard 0.6s ease forwards;
    min-height: 72px;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ANIMATION DÉCALÉE */
.premium-actions-grid .mini-action-card:nth-child(1) { animation-delay: 0.05s; }
.premium-actions-grid .mini-action-card:nth-child(2) { animation-delay: 0.12s; }
.premium-actions-grid .mini-action-card:nth-child(3) { animation-delay: 0.18s; }
.premium-actions-grid .mini-action-card:nth-child(4) { animation-delay: 0.24s; }
.premium-actions-grid .mini-action-card:nth-child(5) { animation-delay: 0.30s; }

/* HALO ANIMÉ */
@keyframes rotateHalo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mini-action-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 60%);
    opacity: 0.35;
    z-index: 0;
    animation: rotateHalo 18s linear infinite;
}

/* REFLET GLOSSY */
.mini-action-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
}

/* ------------------------------------------------------------
   EFFET iOS-LIKE 100% CSS (sans JS)
------------------------------------------------------------ */

/* HOVER — léger lift */
.mini-action-card:hover {
    transform: translateY(-3px) scale(1.015);
    background: rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.7),
        0 12px 26px rgba(0,0,0,0.18);
    animation: none !important;
}

/* ACTIVE — enfoncement + faux rebond */
.mini-action-card:active {
    animation: iosPress 320ms cubic-bezier(.22, 1.4, .36, 1) forwards;
}

/* Animation iOS simulée 100% CSS */
@keyframes iosPress {
    0% {
        transform: translateY(0) scale(1);
        box-shadow:
            inset 0 1px 2px rgba(255,255,255,0.6),
            0 6px 18px rgba(0,0,0,0.12);
    }
    20% {
        transform: translateY(3px) scale(0.96);
        box-shadow:
            inset 0 3px 6px rgba(0,0,0,0.22),
            0 4px 10px rgba(0,0,0,0.10);
        background: rgba(255, 255, 255, 0.40);
    }
    55% {
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            inset 0 1px 2px rgba(255,255,255,0.7),
            0 14px 28px rgba(0,0,0,0.20);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            inset 0 1px 2px rgba(255,255,255,0.6),
            0 6px 18px rgba(0,0,0,0.12);
        background: rgba(255, 255, 255, 0.28);
    }
}

/* ICÔNE */
.mini-action-icon {
    font-size: 22px;
    z-index: 2;
}

/* TEXTE */
.mini-action-text {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    z-index: 2;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

/* CONFETTIS */
.confetti {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--confetti-color, #ffcc00);
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
    animation: confetti-fall 600ms ease-out forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(18px) scale(0.4); opacity: 0; }
}

/* ÉTOILES */
.star-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffffff 0%, #ffd700 60%, transparent 100%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 60;
    animation: sparkle 700ms ease-out forwards;
}

@keyframes sparkle {
    0%   { transform: scale(0.4) rotate(0deg); opacity: 1; }
    50%  { transform: scale(1.2) rotate(45deg); opacity: 1; }
    100% { transform: scale(0.2) rotate(90deg); opacity: 0; }
}

/* RIPPLE */
.mini-action-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    pointer-events: none;
    z-index: 20;
    animation: ripple-effect 450ms ease-out forwards;
}

@keyframes ripple-effect {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .mini-action-card {
        padding: 12px 14px;
    }
    .mini-action-icon {
        font-size: 20px;
    }
    .mini-action-text {
        font-size: 14px;
    }
}

