/* 🎮 EMOCARD EASTER EGG - Bloc Mystère style Mario
 * Animation smooth et non-invasive pour récupérer l'attention
 */

.easter-egg-container {
    position: relative;
    display: inline-block;
    margin: 2rem auto;
    cursor: pointer;
}

.easter-egg-block {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        #f4d03f 0%, 
        #f7dc6f 25%,
        #f4d03f 50%,
        #f7dc6f 75%,
        #f4d03f 100%);
    border: 3px solid #d68910;
    border-radius: 12px;
    position: relative;
    box-shadow: 
        0 6px 12px rgba(214, 137, 16, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gentle-float 4s ease-in-out infinite;
}

.easter-egg-block:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 12px 24px rgba(214, 137, 16, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.easter-egg-block:active {
    transform: translateY(-2px) scale(1.05);
    animation: hit-animation 0.2s ease-out;
}

/* Point d'interrogation animé */
.easter-egg-question {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 900;
    color: #8b4513;
    text-shadow: 
        1px 1px 0 rgba(255, 255, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: question-pulse 2s ease-in-out infinite;
}

/* Particules magiques */
.easter-egg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #f7dc6f, #f4d03f);
    border-radius: 50%;
    opacity: 0;
    animation: particle-sparkle 3s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.particle:nth-child(3) { bottom: 15%; left: 25%; animation-delay: 1s; }
.particle:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; }
.particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 2s; }
.particle:nth-child(6) { top: 50%; right: 5%; animation-delay: 2.5s; }

/* Effet de curiosité visuelle */
.easter-egg-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -10px;
    left: -10px;
    background: radial-gradient(circle, rgba(247, 220, 111, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* Tooltip discret */
.easter-egg-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.easter-egg-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

.easter-egg-container:hover .easter-egg-tooltip {
    opacity: 1;
}

/* Animations */
@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

@keyframes particle-sparkle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes hit-animation {
    0% { transform: translateY(-2px) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.15); }
    100% { transform: translateY(-2px) scale(1.05); }
}

/* Modal de personnalisation prénom */
.easter-egg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.easter-egg-modal.active {
    opacity: 1;
    visibility: visible;
}

.easter-egg-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(50px) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easter-egg-modal.active .easter-egg-modal-content {
    transform: translateY(0) scale(1);
}

.easter-egg-modal-header {
    margin-bottom: 1.5rem;
}

.easter-egg-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.easter-egg-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #aa7b4c;
    margin-bottom: 0.5rem;
}

.easter-egg-modal-subtitle {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.easter-egg-form {
    margin-bottom: 1.5rem;
}

.easter-egg-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.easter-egg-input:focus {
    outline: none;
    border-color: #aa7b4c;
    box-shadow: 0 0 0 3px rgba(170, 123, 76, 0.1);
}

.easter-egg-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.easter-egg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.easter-egg-btn.primary {
    background: linear-gradient(135deg, #aa7b4c, #8b6238);
    color: white;
}

.easter-egg-btn.primary:hover {
    background: linear-gradient(135deg, #8b6238, #6d4928);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(170, 123, 76, 0.3);
}

.easter-egg-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.easter-egg-btn.secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .easter-egg-block {
        width: 50px;
        height: 50px;
    }
    
    .easter-egg-question {
        font-size: 20px;
    }
    
    .easter-egg-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .easter-egg-modal-title {
        font-size: 1.3rem;
    }
    
    .easter-egg-actions {
        flex-direction: column;
    }
    
    .easter-egg-btn {
        width: 100%;
    }
}

/* Version coffre au trésor alternative */
.easter-egg-treasure {
    background: linear-gradient(135deg, 
        #8B4513 0%, 
        #A0522D 25%,
        #8B4513 50%,
        #A0522D 75%,
        #8B4513 100%);
    border-color: #654321;
}

.easter-egg-treasure:hover {
    background: linear-gradient(135deg, 
        #A0522D 0%, 
        #CD853F 25%,
        #A0522D 50%,
        #CD853F 75%,
        #A0522D 100%);
}

.easter-egg-treasure .easter-egg-question {
    color: #FFD700;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.3);
}