/**
 * Styles for the filter modals (bottom sheets).
 */
.phcla-filter-modal {
    display: none;
    position: fixed;
    inset: 0; /* Équivalent à top:0; right:0; bottom:0; left:0; */
    z-index: 1200;
}

.phcla-filter-modal.active {
    display: block;
}

.phcla-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    animation: phclaFadeIn 200ms ease-out forwards;
}

.phcla-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    background: var(--phcla-bg, #ffffff);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: phclaSlideUp 300ms ease-out forwards;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    /* Gère l'encoche de l'iPhone */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Animations */
@keyframes phclaSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes phclaSlideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes phclaFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes phclaFadeOut { from { opacity: 1; } to { opacity: 0; } }

.phcla-filter-modal.closing .phcla-modal-content { animation: phclaSlideDown 250ms ease-in forwards; }
.phcla-filter-modal.closing .phcla-modal-overlay { animation: phclaFadeOut 200ms ease-in forwards; }

/* Header, Body, Footer */
.phcla-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--phcla-border, #e0e0e0);
    flex-shrink: 0;
}
.phcla-modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.phcla-modal-close {
    width: 32px; height: 32px; border: none; background: #f1f1f1; border-radius: 50%;
    font-size: 20px; line-height: 1; cursor: pointer; color: var(--phcla-text-secondary, #666);
}

.phcla-modal-body { flex-grow: 1; overflow-y: auto; padding: 0 20px; }

.phcla-modal-footer {
    display: flex; gap: 12px; padding: 16px 20px;
    border-top: 1px solid var(--phcla-border, #e0e0e0);
    flex-shrink: 0;
}

.phcla-modal-footer .phcla-btn-secondary,
.phcla-modal-footer .phcla-btn-primary {
    flex: 1; padding: 12px 24px; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 200ms;
}
.phcla-modal-footer .phcla-btn-secondary { background: #f0f3f6; color: #333; }
.phcla-modal-footer .phcla-btn-primary { background: var(--phcla-primary, #2ecc71); color: white; }

/* Liste de checkboxes */
.phcla-modal-checkbox-list { padding: 0; margin: 0; list-style: none; }
.phcla-modal-checkbox-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.phcla-modal-checkbox-item:last-child { border-bottom: none; }
.phcla-modal-checkbox-item label { flex: 1; display: flex; align-items: center; cursor: pointer; }
.phcla-modal-checkbox-item input[type="checkbox"] { margin-right: 12px; width: 20px; height: 20px; flex-shrink: 0; }
.phcla-modal-checkbox-item label span { flex-grow: 1; }
.phcla-modal-checkbox-count { color: var(--phcla-text-secondary, #666); font-size: 14px; margin-left: 8px; }