
/* ═══════════════════════════════════════════════════
   STATUTS JURIDIQUES — Cards + Modal (single-bien)
   ═══════════════════════════════════════════════════ */

/* Section */
.mk-sj-section {
    margin: 40px 0;
    padding: 32px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.mk-sj-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}
.mk-sj-intro {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Cards grid */
.mk-sj-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

/* Card button */
.mk-sj-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    position: relative;
}
.mk-sj-card:hover {
    border-color: var(--sj-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.mk-sj-card--active {
    border-color: var(--sj-color) !important;
    background: color-mix(in srgb, var(--sj-color) 5%, #fff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sj-color) 15%, transparent);
}

.mk-sj-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sj-color);
    flex-shrink: 0;
}
.mk-sj-card-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1e293b;
    flex: 1;
}
.mk-sj-card-badge {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--sj-color);
    background: color-mix(in srgb, var(--sj-color) 10%, #fff);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.mk-sj-card-current {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--sj-color);
    padding: 2px 8px;
    border-radius: 8px;
}
.mk-sj-card-arrow {
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.mk-sj-card:hover .mk-sj-card-arrow {
    transform: translateX(2px);
    color: var(--sj-color);
}

/* ── Modal overlay ── */
.mk-sj-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.mk-sj-modal-overlay[hidden] { display: none; }

/* Modal box */
.mk-sj-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: mkSjModalIn 0.25s ease;
}
@keyframes mkSjModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mk-sj-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 1;
}
.mk-sj-modal-close:hover { background: #e2e8f0; color: #1e293b; }

/* Modal header */
.mk-sj-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 28px 0;
}
.mk-sj-modal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mk-sj-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.mk-sj-modal-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border: 1.5px solid;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}

/* Modal body */
.mk-sj-modal-body {
    padding: 20px 28px 28px;
}
.mk-sj-modal-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Stat grid */
.mk-sj-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.mk-sj-modal-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}
.mk-sj-modal-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 4px;
}
.mk-sj-modal-stat-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

/* Content blocks */
.mk-sj-modal-block {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.mk-sj-modal-block h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}
.mk-sj-modal-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mk-sj-modal-block li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
}
.mk-sj-modal-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

/* Warning block */
.mk-sj-modal-block--warning {
    background: #fef2f2;
    border-color: #fecaca;
}
.mk-sj-modal-block--warning h4 { color: #991b1b; }
.mk-sj-modal-block--warning li { color: #7f1d1d; }
.mk-sj-modal-block--warning li::before { background: #dc2626; }

/* Conseil block */
.mk-sj-modal-block--conseil {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.mk-sj-modal-block--conseil h4 { color: #005DAA; }
.mk-sj-modal-block--conseil p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #0c4a6e;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .mk-sj-section { padding: 20px 16px; margin: 24px 0; }
    .mk-sj-cards { grid-template-columns: 1fr; }
    .mk-sj-modal { max-height: 90vh; border-radius: 16px; }
    .mk-sj-modal-header { padding: 20px 20px 0; }
    .mk-sj-modal-body { padding: 16px 20px 20px; }
    .mk-sj-modal-grid { grid-template-columns: 1fr; }
    .mk-sj-modal-header h3 { font-size: 1.15rem; }
}
