{"objets":[{"id":"home_path","type":"page","objets":["header_section","body_section","footer_section"]},{"id":"header_section","type":"section","xhtml":"<section style='position:relative;height:25vh;background:#444;color:white;display:flex;align-items:center;justify-content:center;'><h1>Voye</h1></section>","calques":[{"id":"menu_section","xhtml":"<div style='position:absolute;top:20px;left:20px;background:white;color:#222;padding:12px 18px;border-radius:8px;font-size:18px;font-weight:bold;box-shadow:0 4px 12px rgba(0,0,0,0.35);'>{contenu}</div>","appel_def":"def_affichage_menu_present_module"}]},{"id":"body_section","type":"section","xhtml":"<section style='height:50vh;background:#888;color:white;display:flex;align-items:center;justify-content:center;'><h2>Page lue depuis voye.json</h2></section>"},{"id":"footer_section","type":"section","xhtml":"<section style='height:25vh;background:#cccccc;color:black;display:flex;align-items:center;justify-content:center;'><p>Voye - serveur JSON vivant</p></section>"},{"id":"def_affichage_menu_present_module","type":"def","python":"resultat = ''\nfor obj in data.get('objets', []):\n    if obj.get('type') == 'module' and obj.get('menu'):\n        resultat += obj.get('menu')"},{"id":"entree_document","type":"module","menu":"<a style='color:#222;text-decoration:none;' href='/page/entree_document'>📄 Entrée document</a>"},{"id":"lecture_json","type":"module","menu":"<div><a style='color:#222;text-decoration:none;' href='/voye_json'>📖 Lecture JSON</a></div>"}]}