.container_modal {
    height: 100vh;
    width: 100vw;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 100;
    display: none;
    overflow-y: auto;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.container_modal_open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Header sticky de la modale */
.modal-header-mobile {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-title-mobile {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f7fafc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

.modal-close-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #4a5568;
}

/* Contenu de la modale */
.modal-content-mobile {
    padding: 2rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 4rem);
}

.container_modal .form-card {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

/* Amélioration du scroll sur iOS */
.container_modal {
    -webkit-overflow-scrolling: touch;
}
