.modal {
    display: none;
    position: fixed;
    z-index: 150;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-body {
    width: 80%;
    max-width: 450px;
    margin: 15% auto;
    border: 1px solid #888;
}

.modal-header {
    display: flex;
    align-items: center;
    background-color: var(--navy);
    color: var(--body);
    padding: var(--medium-padding);
    
}

.modal-message {
    background-color: var(--element);
    padding: var(--medium-padding);
}

.modal-content {
    background-color: var(--element);
    padding: var(--medium-padding);
}

.modal-content div {
    display: flex;
    flex-direction: column;
    margin-top: 0.5em;
}

.modal-content .question {
    margin-top: auto;
}

.modal-submit {
    margin-left: auto;
}
    
.close {
    margin-left: auto;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--Default_Text);
    text-decoration: none;
    cursor: pointer;
}

/* MODALS - DÉBUT */
/* Help icon style */
.help-icon:hover {
    transform: scale(1.2);
}

/* Modal background */
/* Ensure modal is hidden at first */
#help-modal {
    display: none; /* Ensures the modal is always hidden initially */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    justify-content: center;
    align-items: center;
}

/* Modal content */
#help-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close button */
#help-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: black;
}

#help-modal .close:hover {
    color: red;
}
/* MODALS - FIN */