MVC (Model-View-Controller) est un pattern architectural qui sépare une application en trois parties — Model (données/logique), View (UI/présentation), et Controller (gère l'entrée, coordonne) — favorisant la séparation des préoccupations. C'est un pattern fondateur, avec de nombreuses variantes (MVP, MVVM).
Les trois composants
MODEL → data and business LOGIC (the core: data, rules, state) — independent of the UI
VIEW → the UI/PRESENTATION (displays data to the user) — what the user sees
CONTROLLER → handles user INPUT, coordinates between Model and View (processes requests,
updates the model, selects the view)
→ SEPARATION: data/logic (Model) ≠ presentation (View) ≠ input handling (Controller)
