/* ============================================================
   MODAL JYGO — GLOBAL (utilisable partout)
   ============================================================ */
/* ============================================================
   1. MODAL DE CONFIRMATION JYGO (jygoConfirm)
   ============================================================ */
.jygo-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jygo-modal {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUpModal 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jygo-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.jygo-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jygo-modal-icon.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.jygo-modal-icon.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.jygo-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
}

.jygo-modal-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    border-left: 3px solid #8b5cf6;
}

.jygo-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.jygo-modal-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
}

.jygo-modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.jygo-modal-btn-cancel:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.jygo-modal-btn-confirm {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.jygo-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.jygo-modal-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.jygo-modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}
   
.jygo-filter-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.jygo-filter-modal.show {
    display: flex;
    animation: jygoFilterFadeIn 0.25s ease-out;
}

@keyframes jygoFilterFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jygo-filter-modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    animation: jygoFilterSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes jygoFilterSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jygo-filter-modal-header {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    position: relative;
}

.jygo-filter-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 0.75rem;
    animation: jygoFilterPulse 1.8s infinite;
}

@keyframes jygoFilterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.jygo-filter-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
}

.jygo-filter-modal-subtitle {
    font-size: 0.8rem;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-weight: 500;
}

.jygo-filter-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.jygo-filter-modal-text {
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.jygo-filter-modal-benefits {
    background: #f9f7ff;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.jygo-filter-modal-benefit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #1e293b;
    padding: 0.35rem 0;
}

.jygo-filter-modal-benefit i {
    color: #10b981;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.jygo-filter-modal-price {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.12));
    border-radius: 12px;
    border: 1px dashed rgba(139, 92, 246, 0.3);
}

.jygo-filter-modal-price-label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.jygo-filter-modal-price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #8b5cf6;
    line-height: 1;
}

.jygo-filter-modal-price-value small {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.jygo-filter-modal-actions {
    display: flex;
    gap: 0.5rem;
}

.jygo-filter-modal-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
}

.jygo-filter-modal-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.jygo-filter-modal-btn-secondary:hover {
    background: #e2e8f0;
}

.jygo-filter-modal-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 8px 20px -5px rgba(139, 92, 246, 0.5);
}

.jygo-filter-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(139, 92, 246, 0.6);
    color: white;
}

/* ============================================================
   BADGE VERROUILLAGE (🔒) — global
   ============================================================ */
.lock-badge-mini {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: lockBounce 2s infinite;
    z-index: 10;
}

@keyframes lockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}