
/* Modal de signalement unifié */
.report-modal {
    display: none;
    position: fixed;
    z-index: 10003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 24, 40, 0.55);
    backdrop-filter: blur(4px);
    animation: reportModalFadeIn 0.3s ease-out;
}

.report-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bug-report-modal {
    z-index: 10060;
}

.report-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.report-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--surface, #fff);
    border-radius: var(--r-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 20px 40px rgba(16, 24, 40, 0.15));
    border: 1px solid var(--border, #e5e7eb);
    animation: reportModalSlideIn 0.3s ease-out;
}

.report-modal-body {
    padding: 20px 22px 22px;
    overflow-y: auto;
}

.report-modal-title {
    text-align: left;
}

.report-modal-description {
    color: var(--text-soft, #6b7280);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 18px;
}

.report-modal-form {
    margin-bottom: 18px;
}

.report-modal-group {
    margin-bottom: 14px;
}

.report-modal-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text, #374151);
    font-weight: 600;
    font-size: 0.88rem;
}

.report-modal-select,
.report-modal-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border, #d1d5db);
    border-radius: var(--r-sm, 8px);
    font-size: 0.9rem;
    background: var(--surface, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    color: var(--text, #111827);
}

.report-modal-select:focus,
.report-modal-textarea:focus {
    outline: none;
    border-color: var(--brand, #ff385c);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
}

.report-modal-textarea {
    resize: vertical;
    min-height: 100px;
}

.report-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
}

.report-modal-btn {
    padding: 11px 18px;
    border: none;
    border-radius: var(--r-pill, 999px);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.report-modal-btn.cancel {
    background: var(--surface, #fff);
    color: var(--text, #374151);
    border: 1px solid var(--border, #e5e7eb);
}

.report-modal-btn.cancel:hover {
    border-color: var(--text-muted, #9ca3af);
}

.report-modal-btn.submit {
    background: var(--brand, #ff385c);
    color: #fff;
    border: 1px solid var(--brand, #ff385c);
}

.report-modal-btn.submit:hover {
    background: var(--brand-dark, #e31c5f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.28);
}

.report-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes reportModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .report-modal.active {
        align-items: flex-end;
        padding: 0;
    }

    .report-modal-content {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .report-modal-body {
        padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    }

    .report-modal-actions {
        flex-direction: column;
    }

    .report-modal-btn {
        width: 100%;
        min-height: 44px;
    }

    .report-modal-select,
    .report-modal-textarea {
        font-size: 16px;
    }
}
