/* ============================================
   MODAL — Modifier / Ajouter infos
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32, 27, 46, 0.45);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 200;
}
.modal-overlay.open { display: flex; animation: slideDown 0.2s ease; }

.modal {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--ink-mute);
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--cream-deep); color: var(--ink); }

.modal-form { padding: 1.6rem; }
.modal-form .form-group { margin-bottom: 1.1rem; }
.modal-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--ink); }
.modal-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--card-warm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-form input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px var(--terracotta-soft); }

.btn-modal-save {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-modal-save:hover { background: var(--terracotta); transform: translateY(-2px); }
