#modal {
    box-sizing: border-box;
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    background: var(--blanc);
    color: var(--noir);
    box-shadow:
        rgba(0, 0, 0, 0.4) 0 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
        rgba(0, 0, 0, 0.2) 0 -3px 0 inset
    ;
    overflow: hidden;
}

#modal_header {
    background: var(--vert-sapin);
    padding: 1rem;
    margin: 0;
    flex-shrink: 0;
}

#modal_header h1 {
    color: var(--blanc);
    margin: 0;
}

#modal_body {
    padding: 1rem;
    overflow: hidden;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 50vh;
}

#modal_footer {
    padding: 1rem;
    flex-shrink: 0;
    display: flex;
    justify-content: right;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--gris);
    background: var(--blanc-lo);
    box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
}

#modal_backdrop {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
}
