/* EMOCARD - Modal Premium Ultra Minimaliste */
.emocard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.emocard-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.emocard-modal {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 90vw;
    text-align: center;
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    font-family: 'Inter', 'Montserrat', sans-serif;
}

.emocard-modal-overlay.active .emocard-modal {
    transform: scale(1) translateY(0);
}

.emocard-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.emocard-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.emocard-modal-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.emocard-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.emocard-modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.emocard-modal-help {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.emocard-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.emocard-modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.emocard-modal-btn-primary {
    background: #aa7b4c;
    color: white;
}

.emocard-modal-btn-primary:hover {
    background: #9a6b3c;
    transform: translateY(-1px);
}

.emocard-modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.emocard-modal-btn-secondary:hover {
    background: #eee;
    color: #444;
}

.emocard-modal-btn-link {
    background: none;
    color: #aa7b4c;
    text-decoration: underline;
    padding: 0.5rem 1rem;
}

.emocard-modal-btn-link:hover {
    color: #9a6b3c;
}

/* Animation d'entrée premium */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive mobile premium */
@media (max-width: 600px) {
    .emocard-modal {
        padding: 2rem 1.5rem;
        max-width: 95vw;
    }
    
    .emocard-modal-title {
        font-size: 1.3rem;
    }
    
    .emocard-modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .emocard-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Effet de flou sur le contenu derrière */
body.emocard-modal-open {
    overflow: hidden;
}

body.emocard-modal-open .hero,
body.emocard-modal-open .concept-section,
body.emocard-modal-open .card-example-section {
    filter: blur(2px);
    transition: filter 0.3s ease;
}
