/* ==========================================================
   MODAL DE SIGNALEMENT — ENTITY
   ========================================================== */

#entity-report-modal {
    z-index: 2000 !important;
}

#entity-report-modal .modal-dialog {
    z-index: 2001 !important;
}

#entity-report-modal .modal-content {
    position: relative;
    z-index: 2002 !important;

    border: 0;
    border-radius: 22px;
    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.22),
        0 10px 30px rgba(15, 23, 42, 0.10);
}


/* ==========================================================
   BACKDROP
   ========================================================== */

.modal-backdrop {
    z-index: 1990 !important;
}

.modal-backdrop.show {
    opacity: 0.55;
}


/* ==========================================================
   LEAFLET — NE DOIT JAMAIS PASSER DEVANT
   ========================================================== */

.leaflet-container {
    z-index: 1 !important;
}

.leaflet-pane,
.leaflet-control {
    z-index: 2 !important;
}

.leaflet-popup {
    z-index: 3 !important;
}


/* ==========================================================
   HEADER
   ========================================================== */

#entity-report-modal .modal-header {

    display: flex;
    align-items: flex-start;

    padding: 1.5rem 1.6rem 1.15rem;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbfcfc 100%
        );

    border-bottom: 1px solid #eef1f0;
}


#entity-report-modal .modal-title {

    margin: 0;

    color: #172033;

    font-size: 1.05rem;
    font-weight: 800;

    line-height: 1.4;
}


#entity-report-modal .modal-title i {

    color: #c62828;

    font-size: 1rem;
}


#entity-report-modal .modal-header .btn-close {

    margin-top: 2px;

    opacity: 0.55;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


#entity-report-modal .modal-header .btn-close:hover {

    opacity: 1;

    transform: rotate(90deg);
}


/* ==========================================================
   SOUS-TITRE
   ========================================================== */

.entity-report-subtitle {

    margin: 5px 0 0;

    color: #7b8494;

    font-size: 0.78rem;

    line-height: 1.5;
}


/* ==========================================================
   BODY
   ========================================================== */

#entity-report-modal .modal-body {

    padding: 1.5rem 1.6rem;

    background: #ffffff;
}


/* ==========================================================
   ALERT
   ========================================================== */

#entity-report-alert {

    margin-bottom: 1.15rem;

    border-radius: 12px;

    font-size: 0.8rem;
    font-weight: 600;
}


#entity-report-alert.d-none {
    display: none !important;
}


/* ==========================================================
   BLOC INFORMATION / SÉCURITÉ
   ========================================================== */

.entity-report-info {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 1.4rem;

    padding: 13px 14px;

    border: 1px solid #dcefe8;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #f3fbf8,
            #f8fcfb
        );

    color: #52635f;

    font-size: 0.78rem;

    line-height: 1.55;
}


.entity-report-info i {

    flex: 0 0 auto;

    margin-top: 1px;

    color: #0d6b5d;

    font-size: 1.05rem;
}


/* ==========================================================
   LABELS
   ========================================================== */

#entity-report-modal .form-label {

    margin-bottom: 7px;

    color: #273142;

    font-size: 0.78rem;

    font-weight: 750;
}


/* ==========================================================
   SELECT
   ========================================================== */

#entity-report-modal .form-select {

    min-height: 46px;

    padding-left: 13px;
    padding-right: 38px;

    border: 1px solid #dfe4ea;

    border-radius: 12px;

    background-color: #ffffff;

    color: #273142;

    font-size: 0.8rem;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#entity-report-modal .form-select:hover {

    border-color: #cbd3dc;
}


#entity-report-modal .form-select:focus {

    border-color: #0d6b5d;

    box-shadow:
        0 0 0 4px rgba(13, 107, 93, 0.10);
}


/* ==========================================================
   TEXTAREA
   ========================================================== */

#entity-report-modal textarea.form-control {

    min-height: 110px;

    padding: 12px 13px;

    resize: vertical;

    border: 1px solid #dfe4ea;

    border-radius: 12px;

    background: #ffffff;

    color: #273142;

    font-size: 0.8rem;

    line-height: 1.6;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#entity-report-modal textarea.form-control::placeholder {

    color: #a3aab5;
}


#entity-report-modal textarea.form-control:focus {

    border-color: #0d6b5d;

    box-shadow:
        0 0 0 4px rgba(13, 107, 93, 0.10);
}


/* ==========================================================
   TEXTE D'AIDE
   ========================================================== */

#entity-report-modal .form-text {

    margin-top: 6px;

    color: #9aa2af;

    font-size: 0.7rem;

    line-height: 1.45;
}


/* ==========================================================
   ERREUR SELECT
   ========================================================== */

#entity-report-modal .form-select.is-invalid {

    border-color: #dc2626;

    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.08);
}


#entity-report-modal .invalid-feedback {

    margin-top: 6px;

    font-size: 0.7rem;
    font-weight: 600;
}


/* ==========================================================
   FOOTER
   ========================================================== */

#entity-report-modal .modal-footer {

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding: 1rem 1.6rem 1.5rem;

    background: #ffffff;

    border-top: 1px solid #eef1f0;
}


/* ==========================================================
   BOUTON ANNULER
   ========================================================== */

#entity-report-modal .modal-footer .btn-light {

    min-height: 44px;

    padding: 0 17px;

    border: 1px solid #e1e5ea;

    border-radius: 11px;

    background: #ffffff;

    color: #596273;

    font-size: 0.78rem;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


#entity-report-modal .modal-footer .btn-light:hover {

    background: #f8fafb;

    border-color: #d2d8df;

    transform: translateY(-1px);
}


/* ==========================================================
   BOUTON ENVOYER
   ========================================================== */

.entity-report-submit-btn {

    min-height: 44px;

    padding: 0 18px;

    border: 1px solid #c62828;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #c62828 0%,
            #a91f1f 100%
        );

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 750;

    box-shadow:
        0 7px 18px rgba(198, 40, 40, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.entity-report-submit-btn:hover {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #b52222 0%,
            #941b1b 100%
        );

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(198, 40, 40, 0.24);
}


.entity-report-submit-btn:active {

    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(198, 40, 40, 0.16);
}


.entity-report-submit-btn:disabled {

    opacity: 0.7;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* ==========================================================
   BOUTON SIGNALER — ENTITY
   ========================================================== */

.entity-report-btn {

    width: 100%;

    min-height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 5px 22px;

    border: 1px solid #e3e7eb;

    border-radius: 16px;

    background: #ffffff;

    color: #263238;

    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.entity-report-btn i {

    color: #c62828;

    font-size: 1.15rem;

    transition:
        transform 0.2s ease;
}


.entity-report-btn:hover {

    background: #fff7f7;

    border-color: #f0b8b8;

    color: #9f1d1d;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(198, 40, 40, 0.08);
}


.entity-report-btn:hover i {

    transform: scale(1.1);
}


.entity-report-btn:active {

    transform: translateY(0);
}


.entity-report-btn:focus-visible {

    outline: none;

    border-color: #c62828;

    box-shadow:
        0 0 0 4px rgba(198, 40, 40, 0.12);
}


/* ==========================================================
   ÉTAT SIGNALÉ
   ========================================================== */

.entity-report-btn.is-reported {

    background: #f0fdf4;

    border-color: #bbf7d0;

    color: #15803d;

    cursor: default;

    box-shadow: none;

    transform: none;
}


.entity-report-btn.is-reported i {

    color: #16a34a;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 576px) {

    #entity-report-modal .modal-dialog {

        margin: 12px;
    }

    #entity-report-modal .modal-content {

        border-radius: 18px;
    }

    #entity-report-modal .modal-header {

        padding:
            1.25rem
            1.2rem
            1rem;
    }

    #entity-report-modal .modal-body {

        padding:
            1.25rem
            1.2rem;
    }

    #entity-report-modal .modal-footer {

        padding:
            0.9rem
            1.2rem
            1.2rem;

        flex-direction: column-reverse;

        align-items: stretch;
    }

    #entity-report-modal .modal-footer .btn,
    .entity-report-submit-btn {

        width: 100%;
    }

    .entity-report-btn {

        min-height: 56px;

        border-radius: 14px;

        padding: 12px 18px;
    }
}


/* ==========================================================
   MICRO-INTERACTIONS
   ========================================================== */

.entity-report-btn,
.entity-report-submit-btn {

    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.entity-report-btn:focus-visible,
.entity-report-submit-btn:focus-visible {

    outline: 3px solid rgba(198, 40, 40, 0.18);

    outline-offset: 3px;
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    #entity-report-modal *,
    .entity-report-btn,
    .entity-report-submit-btn {

        transition: none !important;
    }
}
